GNU bug report logs - #34815
26.1; read-shell-command globally sets comint-input-autoexpand to 'history

Previous Next

Package: emacs;

Reported by: jackkamm <at> gmail.com

Date: Mon, 11 Mar 2019 18:09:02 UTC

Severity: normal

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Jack Kamm <jackkamm <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 34815 <at> debbugs.gnu.org
Subject: Re: bug#34815: 26.1;
 read-shell-command globally sets comint-input-autoexpand to 'history
Date: Mon, 11 Mar 2019 13:52:15 -0700
Yes, replacing setq with setq-local seems to fix the issue.

Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: jackkamm <at> gmail.com
>> Date: Mon, 11 Mar 2019 11:08:42 -0700
>> 
>> Calling "shell-command", "async-shell-command", or any other command
>> calling "read-shell-command", globally sets the variable
>> "comint-input-autoexpand" to 'history. "comint-input-autoexpand" is
>> supposed to be a buffer-local variable with a default value of nil, and
>> setting it globally can interfere with other shells that use the "!"
>> symbol, e.g. the IPython shell.
>
> Does it help to replace setq with setq-local in shell-completion-vars
> where it sets the value of comint-input-autoexpand?




This bug report was last modified 6 years and 66 days ago.

Previous Next


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