GNU bug report logs - #19929
24.4; sh-mode: sh-electric-here-document-mode gets in the way when inserting a here-string

Previous Next

Package: emacs;

Reported by: thibaut.verron <at> gmail.com

Date: Mon, 23 Feb 2015 16:50:01 UTC

Severity: minor

Tags: fixed

Merged with 3226, 43917

Found in version 24.4

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19929 in the body.
You can then email your comments to 19929 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19929; Package emacs. (Mon, 23 Feb 2015 16:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to thibaut.verron <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 23 Feb 2015 16:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thibaut Verron <thibaut.verron <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; sh-mode: sh-electric-here-document-mode gets in the way when
 inserting a here-string
Date: Mon, 23 Feb 2015 09:37:57 +0100
[Message part 1 (text/plain, inline)]
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 <<EOF
       < "Line of text"
       EOF

This report follows from this discussion:
http://thread.gmane.org/gmane.emacs.devel/183318

Solutions are also discussed there, for example tweaking the trigger so
that you need more than just '< <' to insert the here-doc.
[Message part 2 (text/html, inline)]

Forcibly Merged 3226 19929. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sat, 01 Apr 2017 23:19:01 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 11 Oct 2019 19:39:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 3226 <at> debbugs.gnu.org and Paul Nienaber <phox <at> phox.ca> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 11 Oct 2019 19:39:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Nov 2019 12:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 11 Oct 2020 00:34:01 GMT) Full text and rfc822 format available.

Forcibly Merged 3226 19929 43917. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 11 Oct 2020 00:34:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 10 Nov 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.