GNU bug report logs - #3343
23.0.93; Setting grep-command etc has no effect

Previous Next

Package: emacs;

Reported by: bojohan+mail <at> dd.chalmers.se (Johan Bockgård)

Date: Thu, 21 May 2009 14:20:03 UTC

Severity: serious

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 3343 in the body.
You can then email your comments to 3343 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 bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3343; Package emacs. (Thu, 21 May 2009 14:20:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to bojohan+mail <at> dd.chalmers.se (Johan Bockgård):
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 21 May 2009 14:20:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: bojohan+mail <at> dd.chalmers.se (Johan Bockgård)
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.93; Setting grep-command etc has no effect
Date: Thu, 21 May 2009 16:14:47 +0200
The problem is that grep-compute-defaults overwrites `grep-command',
`grep-find-command' et al.


emacs -Q
M-x set-variable RET grep-command RET "ls" RET
M-x grep RET RET
M-x set-variable RET grep-command RET "ll" RET
M-x grep RET   => The old command is still used.


This used to work in Emacs 22.




Severity set to `serious' from `normal' Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Fri, 22 May 2009 13:40:07 GMT) Full text and rfc822 format available.

Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Sat, 23 May 2009 00:25:07 GMT) Full text and rfc822 format available.

Notification sent to bojohan+mail <at> dd.chalmers.se (Johan Bockgård):
bug acknowledged by developer. (Sat, 23 May 2009 00:25:07 GMT) Full text and rfc822 format available.

Message #12 received at 3343-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: bojohan+mail <at> dd.chalmers.se (Johan Bockgård)
Cc: 3343-done <at> debbugs.gnu.org
Subject: 23.0.93; Setting grep-command etc has no effect
Date: Fri, 22 May 2009 20:19:43 -0400
> emacs -Q
> M-x set-variable RET grep-command RET "ls" RET
> M-x grep RET RET
> M-x set-variable RET grep-command RET "ll" RET
> M-x grep RET   => The old command is still used.
>
> This used to work in Emacs 22.

This is due to the introduction of grep-compute-defaults and
grep-host-defaults-alist, which is supposed to offer "smarter" defaults
for these variables when you call grep on remote files.  Unfortunately,
this means that if you simply change these variables, those changes get
overwritten during the next interactive call to grep.

We should probably revisit the design of this code after the release.

In the meantime, I've made a change so that if you change these
variables via the Customize interface, the new values will take effect
correctly.



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 20 Jun 2009 14:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 364 days ago.

Previous Next


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