From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Carmody Newsgroups: gmane.emacs.help Subject: So clever it's stupid Date: Tue, 14 Oct 2008 13:57:46 +0300 Organization: Saunalahti Customer Message-ID: <87tzbfqw9h.fsf@nonospaz.fatphil.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223984476 5615 80.91.229.12 (14 Oct 2008 11:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 11:41:16 +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 13:42:11 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 1KpiHX-0005GT-Rj for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 13:41:44 +0200 Original-Received: from localhost ([127.0.0.1]:44155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpiGT-00029n-0r for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 07:40:37 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!feeder.erje.net!feeder2.news.saunalahti.fi!reader1.news.saunalahti.fi!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:V0IzZU317C3Ry30q5XuyQgbFBRU= Original-Lines: 35 Original-NNTP-Posting-Host: 83.143.57.195 Original-X-Complaints-To: newsmaster@saunalahti.com Original-X-Trace: reader1.news.saunalahti.fi 1223981972 83.143.57.195 (Tue, 14 Oct 2008 13:59:32 EEST) Original-NNTP-Posting-Date: Tue, 14 Oct 2008 13:59:32 EEST Original-Xref: news.stanford.edu gnu.emacs.help:163412 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:58756 Archived-At: 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?) Phil -- The fact that a believer is happier than a sceptic is no more to the point than the fact that a drunken man is happier than a sober one. The happiness of credulity is a cheap and dangerous quality. -- George Bernard Shaw (1856-1950), Preface to Androcles and the Lion