bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no pangs of guilt that can't turn off M-x shell's ^ ! ?


From: Dan Jacobson
Subject: Re: no pangs of guilt that can't turn off M-x shell's ^ ! ?
Date: Wed, 19 Mar 2003 14:52:55 +0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

>> The shell-mode author thought csh-style ! and ^ history
>> substitutions were so great, he forgot to leave a way to turn them off.

K> C-h v comint-input-autoexpand

K> Does setting that variable to nil in a shell-mod-hook function fix your 
problem?

Hmm, I already had
(add-hook 'comint-mode-hook
  (function (lambda ()(setq comint-input-autoexpand nil)))) ;no more "!" 
surprizes
OK, now I will add
(add-hook 'shell-mode-hook
  (function (lambda ()(setq comint-input-autoexpand nil)))) ;no more "!" 
surprizes
for double protection. Thanks.

Blame
-----
Blame for my troubles can be conveniently shifted onto the Info page for saying

      Shell mode can optionally expand history references in the buffer
   when you send them to the shell.  To request this, set the variable
   `comint-input-autoexpand' to `input'.  You can make <SPC> perform
   history expansion by binding <SPC> to the command `comint-magic-space'.

It said 'optionally' when indeed it is doing it somewhat already by default.

Odd, in the source it says
(defcustom comint-input-autoexpand nil
But when I do
$ LC_ALL=C emacs --no-site-file -q -nw -f shell
and check its value, it is 'history.
Yes, I wish it was history, as in out of here :-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]