Subject: lgrep/rgrep not asking to save buffers

From: Tom Tromey <[email-masked]>
Date: Sat, 29 Mar 2008 14:07:48 -0600

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I notice that lgrep and rgrep do not offer to save buffers.
This is different from other search and compilation commands.
This means that sometimes the results are incorrect.

Ideally these would only offer to save files that might actually be
matched by the command -- i.e., filtering buffers based on file
extension and directory.

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'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/22.1/etc/DEBUG for instructions.

In GNU Emacs 22.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.12.1)
 of 2007-11-06 on xenbuilder4.fedora.phx.redhat.com
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-pop' '--with-sound' '--with-gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -DSYSTEM_PURESIZE_EXTRA=16777216 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables''

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: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  auto-fill-function: tjt-c++-do-auto-fill
  compilation-in-progress: (grep compilation compilation compilation compilation compilation grep gid compilation grep ...)
  shell-dirtrack-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  flyspell-mode: t
  erc-status-mode: t
  erc-services-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-readonly-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
5 0 <return> M-> Q y n n SPC 5 0 <return> M-> C-u C-p 
C-n E S-SPC E S-SPC E SPC q n n SPC C-u E E E E E E 
E E E E E E q C-l M-< n n n l s SPC z C-c b C-z o C-a 
C-u C-u C-p C-u C-n C-p M-x g i d <return> <return> 
C-z o <f9> <f9> M-f M-f M-x g i <M-backspace> l g r 
e p <return> <return> <return> <return> C-x o C-x 1 
C-z o C-x 1 <f9> <f9> <f9> <f9> <f9> <f9> <f9> <f9> 
<f9> <switch-frame> <switch-frame> C-x b * g u <tab> 
<return> d e t <backspace> <backspace> <backspace> 
C-c C-c d e t a c h <return> q <return> C-c b <switch-frame> 
C-z o C-s C-g C-SPC C-g C-s C-w C-w C-s C-r C-r C-g 
C-z o C-c C-g C-z o M-f M-f M-f M-b c _ s m a M-/ SPC 
<backspace> <backspace> M-/ M-/ SPC ( C-e C-b ) C-a 
C-s c _ C-w C-s C-f C-f c _ s m a s M-/ SPC ( M-f ) 
C-s C-s C-s C-a C-s c _ a l i g n C-s C-x b <return> 
C-s a l i g n o f C-s C-s C-s C-x C-f c - c o m <tab> 
h <return> C-l C-a M-f M-f M-x g r e p <return> C-g 
M-x l g r e p <return> <return> <return> <return> <f9> 
C-h f l g r e p <return> C-h C-g <help-echo> <down-mouse-1> 
<mouse-2> C-x o C-x 1 C-c C-g C-g C-c b C-x s C-g M-x 
l g r e p <return> M-p <return> <return> <return> M-x 
r e p o r t - e m <tab> g <backspace> b <tab> <ret
urn>

Recent messages:
Saving /home/tromey/.newsrc.eld...done
(No files need saving)
Quit
Mark set
Quit [2 times]
Mark saved where search started [4 times]
Quit
Type C-x 1 to remove help window.  
Auto-saving...done
Quit
Quit
Tom