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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: bojohan+mail <at> dd.chalmers.se (Johan Bockgård)
Subject: bug#3343 closed by Chong Yidong <cyd <at> stupidchicken.com> (23.0.93;
 Setting grep-command etc has no effect)
Date: Sat, 23 May 2009 00:25:07 +0000
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#3343: 23.0.93; Setting grep-command etc has no effect

It has been closed by Chong Yidong <cyd <at> stupidchicken.com>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Chong Yidong <cyd <at> stupidchicken.com> by
replying to this email.


-- 
3343: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3343
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.
[Message part 3 (message/rfc822, inline)]
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.



This bug report was last modified 16 years and 39 days ago.

Previous Next


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