GNU bug report logs -
#3343
23.0.93; Setting grep-command etc has no effect
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 22 May 2009 20:19:43 -0400
with message-id <87pre0ekm8.fsf <at> cyd.mit.edu>
and subject line 23.0.93; Setting grep-command etc has no effect
has caused the Emacs bug report #3343,
regarding 23.0.93; Setting grep-command etc has no effect
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)
--
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)]
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.
[Message part 3 (message/rfc822, inline)]
> 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.
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.