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.

Full log


View this message in rfc822 format

From: Thibaut Verron <thibaut.verron <at> gmail.com>
To: 19929 <at> debbugs.gnu.org
Subject: bug#19929: 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)]

This bug report was last modified 4 years and 282 days ago.

Previous Next


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