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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: jackkamm <at> gmail.com
Subject: bug#34815: closed (Re: bug#34815: 26.1; read-shell-command
 globally sets comint-input-autoexpand to 'history)
Date: Fri, 15 Mar 2019 09:17:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#34815: 26.1; read-shell-command globally sets comint-input-autoexpand to 'history

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 34815 <at> debbugs.gnu.org.

-- 
34815: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34815
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Jack Kamm <jackkamm <at> gmail.com>
Cc: 34815-done <at> debbugs.gnu.org
Subject: Re: bug#34815: 26.1;
 read-shell-command globally sets comint-input-autoexpand to 'history
Date: Fri, 15 Mar 2019 11:16:28 +0200
> From: Jack Kamm <jackkamm <at> gmail.com>
> Cc: 34815 <at> debbugs.gnu.org
> Date: Mon, 11 Mar 2019 13:52:15 -0700
> 
> Yes, replacing setq with setq-local seems to fix the issue.

Thanks, I installed such a change on the emacs-26 branch.

[Message part 3 (message/rfc822, inline)]
From: jackkamm <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1;
 read-shell-command globally sets comint-input-autoexpand to 'history
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.

To reproduce, first "emacs -Q", then check that
"comint-input-autoexpand" has value nil. Then type:
"M-!", "echo foo", "RET".
Then check that comint-input-autoexpand has been set to 'history.

jabranham on the freenode #emacs channel helped me track down and
consistently reproduce this bug.

--Jack



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

Previous Next


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