GNU bug report logs - #9499
24.0.50; M-x occur + M-x next-error window config problem

Previous Next

Package: emacs;

Reported by: Stefan Reichör <stefan <at> xsteve.at>

Date: Wed, 14 Sep 2011 05:54:01 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9499 in the body.
You can then email your comments to 9499 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9499; Package emacs. (Wed, 14 Sep 2011 05:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Reichör <stefan <at> xsteve.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 14 Sep 2011 05:54:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Reichör <stefan <at> xsteve.at>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; M-x occur + M-x next-error window config problem
Date: Wed, 14 Sep 2011 07:48:52 +0200
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 <up> <up> <up> <up> <up> C-x b <return> M-x o c c 
u r <return> t h <return> M-x n e x t - e r <tab> <return> 
M-x <up> <return> M-x r e p o r t <tab> <return>

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)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9499; Package emacs. (Wed, 14 Sep 2011 09:52:02 GMT) Full text and rfc822 format available.

Message #8 received at 9499 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Reichör <stefan <at> xsteve.at>
Cc: 9499 <at> debbugs.gnu.org
Subject: Re: bug#9499: 24.0.50;
	M-x occur + M-x next-error window config problem
Date: Wed, 14 Sep 2011 11:47:09 +0200
> 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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9499; Package emacs. (Wed, 14 Sep 2011 15:20:01 GMT) Full text and rfc822 format available.

Message #11 received at 9499 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Stefan Reichör <stefan <at> xsteve.at>, 9499 <at> debbugs.gnu.org
Subject: Re: bug#9499: 24.0.50;
	M-x occur + M-x next-error window config problem
Date: Wed, 14 Sep 2011 11:15:00 -0400
martin rudalics <rudalics <at> gmx.at> 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.




bug closed, send any further explanations to 9499 <at> debbugs.gnu.org and Stefan Reichör <stefan <at> xsteve.at> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Wed, 14 Sep 2011 15:20:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 13 Oct 2011 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.