From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: << in shell-script mode Date: Mon, 19 Oct 2015 14:23:45 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98C1FDC617@DAKIYA1.pegasus.local> References: <86oafxeoq1.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445264659 17349 80.91.229.3 (19 Oct 2015 14:24:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 14:24:19 +0000 (UTC) To: Andy Moreton , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 16:24:06 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZoBM3-00072f-Q7 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 16:24:04 +0200 Original-Received: from localhost ([::1]:39761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoBM2-00078h-Eq for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 10:24:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoBLp-00078F-DZ for help-gnu-emacs@gnu.org; Mon, 19 Oct 2015 10:23:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoBLl-0005i1-HO for help-gnu-emacs@gnu.org; Mon, 19 Oct 2015 10:23:48 -0400 Original-Received: from mail-qg0-f97.google.com ([209.85.192.97]:34360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoBLl-0005hi-D7 for help-gnu-emacs@gnu.org; Mon, 19 Oct 2015 10:23:45 -0400 Original-Received: by qgdc107 with SMTP id c107so675211qgd.1 for ; Mon, 19 Oct 2015 07:23:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:thread-topic:thread-index:date :message-id:references:in-reply-to:accept-language:content-language :content-type:content-transfer-encoding:mime-version; bh=MFIg3zp61OA8CZl8CIbG3deUFE9JyZLoMaHmiHFm+fA=; b=iacAZrdmudGum0aSGBKUEjBXcbgis1yQe+QMNWGpC2CQzIYfUFkB5qIin2syRp3IuD 44ZbLQ2SNCmH3+wETfoSIdWaFLhPLeEpwhVmLA5zpO3tp/F0U+ZxBGatYZVSRCDPIghd mCD1Q2FwBy3HwercWqJYyzpGI/sMf2SsMCAxXTca9+LEzc71UrGD8Daidh00jyEZjLDu VPTVTl7RdMNvJPHGtPLLoLjo4ncpOrmDlLhyIOc4cjpvJH6wgLtVHJzBhEzlUeL2IAWt 638daMixAty/oNdrppOVrUcvgcHRELkGOiaIAzTKwKQ4qaiQVX5W40dDJpy+/lFXRfxT GgAw== X-Gm-Message-State: ALoCoQleOc9qTOZF2Aa+vCtzgjpbNuPPTdkJbOp/7KyMNKldBww64W1bGMGp69bBrnRnVoBtmOfNEhpKyVZkkiMXJnQ+1wdyfw== X-Received: by 10.140.234.78 with SMTP id f75mr39096049qhc.20.1445264624701; Mon, 19 Oct 2015 07:23:44 -0700 (PDT) Original-Received: from webmail.shubertorg.com ([207.246.209.200]) by smtp-relay.gmail.com with ESMTPS id m69sm3633564qki.3.2015.10.19.07.23.44 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Oct 2015 07:23:44 -0700 (PDT) X-Relaying-Domain: shubertticketing.com Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.03.0123.003; Mon, 19 Oct 2015 10:23:46 -0400 Thread-Topic: << in shell-script mode Thread-Index: AQHRCMw/Qp53lRxmM0iKsdGwM8/j+55y4XGQ In-Reply-To: <86oafxeoq1.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.97 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107755 Archived-At: Mr. Moreton's answer is the right one. Here's how I do it in my .emacs: (eval-after-load "sh-script" '(add-hook 'sh-mode-hook '(lambda () (sh-electric-here-document-mode 0)))= ) --=20 ,Doug Douglas Lewan Shubert Ticketing (201) 994-4335 Nonfirstorderizability. It's a thing. > -----Original Message----- > On > Behalf Of Andy Moreton > Sent: Saturday, 2015 October 17 07:09 > Subject: Re: << in shell-script mode >=20 > On Sat 17 Oct 2015, Chris F.A. Johnson wrote: >=20 > > On 2015-10-17, Barry Margolin wrote: > >> In article , > >> "Chris F.A. Johnson" wrote: > >> > >>> How do I prevent emacs from inserting a here document: > >>> < >>> > >>> EOF > >>> whenever I type << > >>> ? > >> > >> Type C-q before the second < to insert it literally. > > > > Why should I have to do that? >=20 > This is controlled by sh-electric-here-document-mode, so disable > that minor mode to disable the automatic here document insertion. >=20 > AndyM >=20