[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: |
Tue, 18 Mar 2003 08:09:10 +0800 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) |
>> Come on guys, why so mum about the fact that one cannot turn off the
>> special effects of ! and ^ when running M-x shell?
K> Because I have no idea what you're talking about. You should know
K> how to submit a proper bug report by now.
Only proper bugs deserve proper bug reports. <--original witty phrase debuting
here
I'm talking about [*info* (emacs) History References]
$ emacs --no-site-file -q -nw -f shell
c a t RET ! ^ ! ^ ! ^ ! RET ESC p
One sees
$ cat
!^!^!^!
!^!^!^!
!
It has mangled my last line. I want the three lines to look the same.
>> It is quite disturbing for one who has turned them off years ago in
>> bash (set +o histexpand) to suddenly have them play tricks on one in
>> M-x shell.
K> Isn't your shell initialization file read, even under `M-x shell'?
To be clear, in my above example, I am not talking to the shell
anymore, but to cat. So don't bash bash. shell-mode is to blame.
K> If not, is this the effect you want:
K> (local-set-key "!" 'keyboard-quit)
K> (local-set-key "^" 'keyboard-quit)))
no, you're barfing up the wrong tree. The shell-mode author thought
csh-style ! and ^ history substitutions were so great, he forgot to
leave a way to turn them off. Yes, not being able to type them would
indeed fix the problem, as would snipping my keyboard cable. "rm -r
dangerous??, just local-set-key "r"...