From unknown Mon Aug 18 00:07:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9499 <9499@debbugs.gnu.org> To: bug#9499 <9499@debbugs.gnu.org> Subject: Status: 24.0.50; M-x occur + M-x next-error window config problem Reply-To: bug#9499 <9499@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:07:12 +0000 retitle 9499 24.0.50; M-x occur + M-x next-error window config problem reassign 9499 emacs submitter 9499 Stefan Reich=C3=B6r severity 9499 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 14 01:53:34 2011 Received: (at submit) by debbugs.gnu.org; 14 Sep 2011 05:53:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3iPe-0004fV-5Q for submit@debbugs.gnu.org; Wed, 14 Sep 2011 01:53:34 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3iPb-0004fO-9k for submit@debbugs.gnu.org; Wed, 14 Sep 2011 01:53:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3iLD-00008H-CM for submit@debbugs.gnu.org; Wed, 14 Sep 2011 01:49:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:43119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3iLD-000083-An for submit@debbugs.gnu.org; Wed, 14 Sep 2011 01:48:59 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3iLC-0004pQ-5x for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2011 01:48:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3iLA-0008TQ-Vy for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2011 01:48:58 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:50860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3iLA-0008OV-J9 for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2011 01:48:56 -0400 Received: from pchagakli.ge-research.com (68.186.193.aberger.at [193.186.169.68]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MELXc-1Qsm7x0B8S-00G2uQ; Wed, 14 Sep 2011 07:48:53 +0200 From: Stefan =?iso-8859-1?Q?Reich=F6r?= To: bug-gnu-emacs@gnu.org Subject: 24.0.50; M-x occur + M-x next-error window config problem User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Wed, 14 Sep 2011 07:48:52 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:f9zYllRz/m8KuWbaT5oZAy43mh34e7FvVW4FpCoRK80 jpR4FhIHaizHBAlsMZxsO+sFrhwahJ5UkmNQ0coA7XR4BLGimy +IKkL2QbGRThmIytF3x6lbKXLzFqduScR8XdjVPcZgTM/JI/YF 3/5pSOSatajEoKmjdBRCkz+K/tUFTPj+cxcxdYa18f4kDg88rI BUl4hNC5O7/c7VUI8CJUAFjy2GZ+lhCKmRU85W9eewkvxXWNlE nmMMY5qYl1RlJAUn7Y5YiIwEr9ErucYsInaGdjWG5HruQekSVI uI1NCDHBfQgcq2QQIXTtLf7xK0P8fYEF97i/DsrTxmVcMRt4TG AVDK4Wf3E0rTBbjeTnSN8+xEUv2BZSj6YAY9sPcFPXdVacjYWN NrePc+9FPLKiQ== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Start emacs, switch to the *scratch* buffer M-x occur RET th RET M-x next-error The *Occur* buffer is replaced by another view of the *scratch* buffer I expect the *Occur* buffer to stay If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/emacs/etc/DEBUG. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-09-12 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: f C-x b M-x o c c u r t h M-x n e x t - e r M-x M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. byte-code: Beginning of buffer Searched 1 buffer; 3 matches for `th' You can run the command `occur' with M-s o You can run the command `next-error' with C-x ` [2 times] Load-path shadows: c:/emacs/site-lisp/htmlfontify hides c:/emacs/lisp/htmlfontify c:/emacs/site-lisp/verilog-mode hides c:/emacs/lisp/progmodes/verilog-mode Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug tex-site time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 14 05:51:47 2011 Received: (at 9499) by debbugs.gnu.org; 14 Sep 2011 09:51:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3m8B-00064M-DX for submit@debbugs.gnu.org; Wed, 14 Sep 2011 05:51:47 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1R3m89-00064D-9y for 9499@debbugs.gnu.org; Wed, 14 Sep 2011 05:51:46 -0400 Received: (qmail invoked by alias); 14 Sep 2011 09:47:11 -0000 Received: from 62-47-43-91.adsl.highway.telekom.at (EHLO [62.47.43.91]) [62.47.43.91] by mail.gmx.net (mp035) with SMTP; 14 Sep 2011 11:47:11 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/ie2cXytni25uoObaNkNb4Ti7TKo9OuaKyyu1v+b t2ARi0U5lrHsi6 Message-ID: <4E70781D.9020307@gmx.at> Date: Wed, 14 Sep 2011 11:47:09 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: =?ISO-8859-15?Q?Stefan_Reich=F6r?= Subject: Re: bug#9499: 24.0.50; M-x occur + M-x next-error window config problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 9499 Cc: 9499@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > Start emacs, switch to the *scratch* buffer > M-x occur RET > th RET > M-x next-error > > The *Occur* buffer is replaced by another view of the *scratch* buffer > I expect the *Occur* buffer to stay It's because (pop-to-buffer (marker-buffer pos) t) in `occur-mode-goto-occurrence' has problems reusing the *scratch* window. More precisely, because the *scratch* window is selected and the second argument t means to not use the selected window. If Chong doesn't come up with an easy fix I'll look into it. martin From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 14 11:19:41 2011 Received: (at 9499) by debbugs.gnu.org; 14 Sep 2011 15:19:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3rFT-00062d-8o for submit@debbugs.gnu.org; Wed, 14 Sep 2011 11:19:41 -0400 Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3rFP-00062T-2j for 9499@debbugs.gnu.org; Wed, 14 Sep 2011 11:19:36 -0400 Received: from furball ([128.36.14.25]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p8EFF0qo025453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 14 Sep 2011 11:15:01 -0400 From: Chong Yidong To: martin rudalics Subject: Re: bug#9499: 24.0.50; M-x occur + M-x next-error window config problem References: <4E70781D.9020307@gmx.at> Date: Wed, 14 Sep 2011 11:15:00 -0400 In-Reply-To: <4E70781D.9020307@gmx.at> (martin rudalics's message of "Wed, 14 Sep 2011 11:47:09 +0200") Message-ID: <8739fz2m17.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9499 Cc: Stefan =?utf-8?Q?Reich=C3=B6r?= , 9499@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) martin rudalics writes: >> Start emacs, switch to the *scratch* buffer >> M-x occur RET >> th RET >> M-x next-error >> >> The *Occur* buffer is replaced by another view of the *scratch* buffer >> I expect the *Occur* buffer to stay > > It's because > > (pop-to-buffer (marker-buffer pos) t) > > in `occur-mode-goto-occurrence' has problems reusing the *scratch* > window. More precisely, because the *scratch* window is selected and > the second argument t means to not use the selected window. Sorry, this was my mistake. The second arg should not be t in here. Fixed in trunk. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 14 11:19:49 2011 Received: (at control) by debbugs.gnu.org; 14 Sep 2011 15:19:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3rFd-00062x-8X for submit@debbugs.gnu.org; Wed, 14 Sep 2011 11:19:49 -0400 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3rFa-00062p-9p for control@debbugs.gnu.org; Wed, 14 Sep 2011 11:19:47 -0400 Received: from furball ([128.36.14.25]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p8EFFCfc018818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 14 Sep 2011 11:15:12 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 9499 Date: Wed, 14 Sep 2011 11:15:12 -0400 Message-ID: <874o0fjgu7.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 9499 thanks From unknown Mon Aug 18 00:07:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 13 Oct 2011 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator