From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: So clever it's stupid Date: Tue, 14 Oct 2008 07:09:58 -0600 Message-ID: References: <87tzbfqw9h.fsf@nonospaz.fatphil.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223989848 24483 80.91.229.12 (14 Oct 2008 13:10:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 13:10:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 15:11:36 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KpjgW-0004Wo-1Y for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 15:11:36 +0200 Original-Received: from localhost ([127.0.0.1]:51699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpjfQ-0003J6-UC for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 09:10:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpjf6-0003HQ-Ng for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 09:10:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpjf5-0003Eg-3K for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 09:10:08 -0400 Original-Received: from [199.232.76.173] (port=38206 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpjf4-0003EW-W2 for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 09:10:07 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:60521 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kpjf4-0003dT-KK for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 09:10:07 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kpjf1-0002AU-Ht for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 13:10:03 +0000 Original-Received: from c-67-161-145-183.hsd1.co.comcast.net ([67.161.145.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2008 13:10:03 +0000 Original-Received: from kevin.d.rodgers by c-67-161-145-183.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2008 13:10:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-161-145-183.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) In-Reply-To: <87tzbfqw9h.fsf@nonospaz.fatphil.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58761 Archived-At: Phil Carmody wrote: > How do I turn off the utterly obnoxious behaviour of '<' in shell mode? > (Emacs v.21.4.1) > > <<< > sh-maybe-here-document is an interactive compiled Lisp function in `sh-script'. > (sh-maybe-here-document ARG) > > Insert self. Without prefix, following unquoted `<' inserts here document. > The document is bounded by `sh-here-document-word'. > > I give all my heredocs meaningful individual names, and certainly don't want > emacs inanely thinking that I want all the terminators called 'EOF'. > > It's so completely brain-dead that if I try to type a command like > echo '<<< doing phase 2 >>>' > I don't get past the second chevron before it's shat unwanted garbage > in my file. > > Similarly it doesn't seem to understand that people might want to use > both expanded and non-expanded heredocs, or sometimes want leading > tab removal, but at other times not want it. And as for herestrings, > they're right out. > > Magic '<', for me, must die. How do I ensure I never ever see that > abomination again? (Unbind the key and make it self-insert in a > bunch of relevant hooks? Or is there just a variable I can set to > 'off' somehow?) The former: (add-hook 'sh-mode-hook (lambda () (local-unset-key "<"))) -- Kevin Rodgers Denver, Colorado, USA