From unknown Sat Aug 16 20:56:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19929 <19929@debbugs.gnu.org> To: bug#19929 <19929@debbugs.gnu.org> Subject: Status: 24.4; sh-mode: sh-electric-here-document-mode gets in the way when inserting a here-string Reply-To: bug#19929 <19929@debbugs.gnu.org> Date: Sun, 17 Aug 2025 03:56:52 +0000 retitle 19929 24.4; sh-mode: sh-electric-here-document-mode gets in the way= when inserting a here-string reassign 19929 emacs submitter 19929 thibaut.verron@gmail.com severity 19929 minor tag 19929 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 23 11:49:16 2015 Received: (at submit) by debbugs.gnu.org; 23 Feb 2015 16:49:16 +0000 Received: from localhost ([127.0.0.1]:51595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPwC3-0005hr-Ry for submit@debbugs.gnu.org; Mon, 23 Feb 2015 11:49:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41088) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPoX1-0007li-GL for submit@debbugs.gnu.org; Mon, 23 Feb 2015 03:38:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPoX0-0007bt-7S for submit@debbugs.gnu.org; Mon, 23 Feb 2015 03:38:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPoX0-0007bp-41 for submit@debbugs.gnu.org; Mon, 23 Feb 2015 03:38:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPoWy-0003qg-V9 for bug-gnu-emacs@gnu.org; Mon, 23 Feb 2015 03:38:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPoWx-0007aV-Ku for bug-gnu-emacs@gnu.org; Mon, 23 Feb 2015 03:38:20 -0500 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:34548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPoWx-0007aP-Dk for bug-gnu-emacs@gnu.org; Mon, 23 Feb 2015 03:38:19 -0500 Received: by mail-wi0-f171.google.com with SMTP id hi2so14971210wib.4 for ; Mon, 23 Feb 2015 00:38:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; bh=dZdOxfKosLs22Qz+f0VPGRwAdqkkOckk4gNX+tL0ink=; b=qACVYdPX7pxaPGPDHZ98/Oe73NNwMRir7MkUkj8kzPj3Xo+hFde0+qrf9fmO9OhP3p Kw0SIaWMSv0kI0pMj4p194jpNmNHl0AdMkZxE4oyT9C3fZ9hr/kXllJhX38Wan5QLV/F 71Hv5KKVwZoIXWX7On486BypvhH3gumkRtYNb4Kvp4HdHy2w971RQZhUAMWoznG17cnh U98UG1Nk2fF98IaRjjtZUKKbRMyL5sLInJX5gxHySwVbZXTFqleIM/3WFmp1mCm6yzs9 rYS/0OdJ11fC+cmSAwZyUYI0o8a3cW3EUYWGkMrdaIy2GaZQiOS7vG5kcTP5QoTPPywM 19Mw== X-Received: by 10.194.104.196 with SMTP id gg4mr19284309wjb.31.1424680698097; Mon, 23 Feb 2015 00:38:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.27.179.17 with HTTP; Mon, 23 Feb 2015 00:37:57 -0800 (PST) From: Thibaut Verron Date: Mon, 23 Feb 2015 09:37:57 +0100 Message-ID: Subject: 24.4; sh-mode: sh-electric-here-document-mode gets in the way when inserting a here-string To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e010d83fcedb87f050fbd525c X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 23 Feb 2015 11:49:14 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: thibaut.verron@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e010d83fcedb87f050fbd525c Content-Type: text/plain; charset=UTF-8 The electric behavior of sh-electric-here-document-mode (activated by default) is annoying when someone does not want to insert a here-document. For example, the here-string syntax requires to insert <<<, but the second insertion will trigger the here-document. Steps taken: - activate `shell-script-mode` - enter the following text: read line <<< "Line of text" Expected result: the buffer contains read line <<< "Line of text" Actual result: the buffer contains read line <
The electric behavior of sh-electric-here-document-mo= de (activated by
default) is annoying when someone does not want = to insert a
here-document. For example, the here-string syntax re= quires to insert
<<<, but the second insertion will trig= ger the here-document.

Steps taken:
- ac= tivate `shell-script-mode`
- enter the following text:
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0read line <<< "Line= of text"

Expected result: the buffer contain= s

=C2=A0 =C2=A0 =C2=A0 =C2=A0read line <<<= ; "Line of text"

Actual result: the buff= er contains

=C2=A0 =C2=A0 =C2=A0 =C2=A0read line &= lt;<EOF
=C2=A0 =C2=A0 =C2=A0 =C2=A0< "Line of text&quo= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0EOF

This r= eport follows from this discussion:=C2=A0http://thread.gmane.org/gmane.emacs.devel/183318=

Solutions are also discussed there, for examp= le tweaking the trigger so that you need more than just '< <'= to insert the here-doc.

--089e010d83fcedb87f050fbd525c-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 01 19:18:45 2017 Received: (at control) by debbugs.gnu.org; 1 Apr 2017 23:18:45 +0000 Received: from localhost ([127.0.0.1]:56067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuSI8-0008J4-SJ for submit@debbugs.gnu.org; Sat, 01 Apr 2017 19:18:44 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:35953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuSI6-0008Iq-WB for control@debbugs.gnu.org; Sat, 01 Apr 2017 19:18:43 -0400 Received: by mail-it0-f41.google.com with SMTP id e75so30353651itd.1 for ; Sat, 01 Apr 2017 16:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=fomXJ6s1/SgEzC6bdQtQ+rPb/dlsNOVZLHXYoYw+uIA=; b=H85vYcKXmYSu3pkAm6Fk8Knv9555OhdK/o0cjdzPxV8iZXfkP2Z3AOs7CQsIXJOtbX Ce1T+R1Ap+eIAFbGTu5ctXu/qbes1XLTZphDNMhGVUUztK5cRTNhs2yTMohvnx2Q/3aN bAxJq2bV1SxqQvks+dS1cbKjGzwLENyNaKxHZIYINQ+6UtphP862kxBDxiNyWoWUm2ev aOAbYimz8tg9JYM/6XWcQ+Pw1XZX9GaAnQ+ZRXvemHpwbrFu5Czn8cfnS7KrIw6AJSTw 5MPLiXAsoKKZzmBm5EVeGdM4qXWBrNbN0Fpw/htvHdZmyCbvFyCIDNqxHeiF3LRDjOoU jrkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=fomXJ6s1/SgEzC6bdQtQ+rPb/dlsNOVZLHXYoYw+uIA=; b=sh7dvZf9orLTlOt/9zWEE1CGo8AyY0s8RQngBzskquni0t50Zg1JdHBreyjdI/Rv2J P4oHhEmvPByIVOWoyc2MDYnYFoPfosn2LFBKLEVck6GqO9PSYHfORR/SOhYTN+wnQEI1 UrssYvfbyMMxwNuk9WkPHxLH6GV3O71DfQg9z6fRF12SB0IMkUvh0sVwNH+DPWIz9kUl 8vD9eYkrj/4lzhMo4mjYMGy0S1LDSDHxrhUXXAQQB7RKYyq+HnyqAIywc5NHywbGhfhw /Dn0IjPBa1fXlrBCI5vtuEYFmbTj3Mp8vuXlp/2Bxjyvmbr01CEKZqyg8rhspUX0OrwU QrgA== X-Gm-Message-State: AFeK/H0jtsDWJ908+fN5Eh812pkeVozRNXkl8FoP+N0RAZx6o7m3cOjq Sw8INQ8AppXb5c1z X-Received: by 10.36.194.67 with SMTP id i64mr4395425itg.68.1491088717356; Sat, 01 Apr 2017 16:18:37 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id n73sm5434773ioe.10.2017.04.01.16.18.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Apr 2017 16:18:36 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #19929 Date: Sat, 01 Apr 2017 19:20:01 -0400 Message-ID: <878tnj1zry.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) retitle 3226 [sh-mode] here-document syntax inference and completion is broken forcemerge 19929 3226 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 11 15:38:24 2019 Received: (at control) by debbugs.gnu.org; 11 Oct 2019 19:38:24 +0000 Received: from localhost ([127.0.0.1]:60381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJ0k4-0000Zf-67 for submit@debbugs.gnu.org; Fri, 11 Oct 2019 15:38:24 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJ0k1-0000ZW-Uh for control@debbugs.gnu.org; Fri, 11 Oct 2019 15:38:23 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJ0jz-0001hq-56 for control@debbugs.gnu.org; Fri, 11 Oct 2019 21:38:21 +0200 Date: Fri, 11 Oct 2019 21:38:18 +0200 Message-Id: <87d0f3m5sl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #3226 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 3226 fixed close 3226 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 3226 fixed close 3226 27.1 quit From unknown Sat Aug 16 20:56:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 Nov 2019 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 10 20:33:35 2020 Received: (at control) by debbugs.gnu.org; 11 Oct 2020 00:33:35 +0000 Received: from localhost ([127.0.0.1]:38843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRPIt-0001bM-ML for submit@debbugs.gnu.org; Sat, 10 Oct 2020 20:33:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRPIq-0001b7-Bh for control@debbugs.gnu.org; Sat, 10 Oct 2020 20:33:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44628) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRPIl-0005Bs-1f for control@debbugs.gnu.org; Sat, 10 Oct 2020 20:33:27 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kRPIk-0007tU-OE for control@debbugs.gnu.org; Sat, 10 Oct 2020 20:33:26 -0400 Subject: control message for bug 43917 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 10 Oct 2020 20:33:26 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) unarchive 3226 forcemerge 3226 43917 From unknown Sat Aug 16 20:56:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 10 Nov 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator