]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Aug 2011 22:10:21 +0000 (18:10 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Aug 2011 22:10:21 +0000 (18:10 -0400)
strings and comments.

Fixes: debbugs:9333
lisp/ChangeLog
lisp/progmodes/sh-script.el

index 4efa1de8e4357513f255d332fc87aff8feb1e791..82d67fe476de6980317b9bc7e3725d790ab90a8e 100644 (file)
@@ -1,5 +1,8 @@
 2011-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
+       strings and comments (bug#9333).
+
        * emacs-lisp/debug.el (debug-arglist): New function.
        (debug-convert-byte-code): Use it.  Handle lexical byte-codes.
        (debug-on-entry-1): Handle interpreted closures (bug#9120).
index 31a4fbaef4d171afa17d48414c76c070daef412e..7b949134c6c1e75b357663167ac0b716c33b3ab4 100644 (file)
@@ -460,6 +460,7 @@ This is buffer-local in every such buffer.")
     (define-key map "\C-c+" 'sh-add)
     (define-key map "\C-\M-x" 'sh-execute-region)
     (define-key map "\C-c\C-x" 'executable-interpret)
+    ;; FIXME: Use post-self-insert-hook.
     (define-key map "<" 'sh-maybe-here-document)
     (define-key map "(" 'skeleton-pair-insert-maybe)
     (define-key map "{" 'skeleton-pair-insert-maybe)
@@ -3659,6 +3660,7 @@ The document is bounded by `sh-here-document-word'."
       (save-excursion
        (backward-char 2)
        (sh-quoted-p))
+      (nth 8 (syntax-ppss))
       (let ((tabs (if (string-match "\\`-" sh-here-document-word)
                       (make-string (/ (current-indentation) tab-width) ?\t)
                     ""))