From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: no pangs of guilt that can't turn off M-x shell's ^ ! ? Date: Tue, 18 Mar 2003 08:09:10 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <873cllk02h.fsf@jidanni.org> References: <3E75FA45.2030103@ihs.com> Reply-To: Dan Jacobson NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047964380 5359 80.91.224.249 (18 Mar 2003 05:13:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2003 05:13:00 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 18 06:12:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18v9PG-0001OJ-00 for ; Tue, 18 Mar 2003 06:12:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18v9Op-0002Tb-01 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 18 Mar 2003 00:12:31 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18v9Oi-0002R2-00 for bug-gnu-emacs@gnu.org; Tue, 18 Mar 2003 00:12:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18v9Og-0002Qo-00 for bug-gnu-emacs@gnu.org; Tue, 18 Mar 2003 00:12:23 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18v9Og-0002Nf-00 for bug-gnu-emacs@gnu.org; Tue, 18 Mar 2003 00:12:22 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18v9OC-0001Mr-00 for ; Tue, 18 Mar 2003 06:11:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18v9Nt-0001M5-00 for ; Tue, 18 Mar 2003 06:11:33 +0100 Original-Lines: 38 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4627 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4627 >> 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"...