aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-08-22 18:10:21 -0400
committerStefan Monnier2011-08-22 18:10:21 -0400
commit867cab7493ffdaa9de2b06db573a5f6290a2042f (patch)
treef77a42b1df380b2335629bbe7456f6726f547d55
parent4eb613489b98093e31f2a81765a4b644fdb90fb2 (diff)
downloademacs-867cab7493ffdaa9de2b06db573a5f6290a2042f.tar.gz
emacs-867cab7493ffdaa9de2b06db573a5f6290a2042f.zip
* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
strings and comments. Fixes: debbugs:9333
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/sh-script.el2
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4efa1de8e43..82d67fe476d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-08-22 Stefan Monnier <monnier@iro.umontreal.ca> 12011-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
4 strings and comments (bug#9333).
5
3 * emacs-lisp/debug.el (debug-arglist): New function. 6 * emacs-lisp/debug.el (debug-arglist): New function.
4 (debug-convert-byte-code): Use it. Handle lexical byte-codes. 7 (debug-convert-byte-code): Use it. Handle lexical byte-codes.
5 (debug-on-entry-1): Handle interpreted closures (bug#9120). 8 (debug-on-entry-1): Handle interpreted closures (bug#9120).
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 31a4fbaef4d..7b949134c6c 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -460,6 +460,7 @@ This is buffer-local in every such buffer.")
460 (define-key map "\C-c+" 'sh-add) 460 (define-key map "\C-c+" 'sh-add)
461 (define-key map "\C-\M-x" 'sh-execute-region) 461 (define-key map "\C-\M-x" 'sh-execute-region)
462 (define-key map "\C-c\C-x" 'executable-interpret) 462 (define-key map "\C-c\C-x" 'executable-interpret)
463 ;; FIXME: Use post-self-insert-hook.
463 (define-key map "<" 'sh-maybe-here-document) 464 (define-key map "<" 'sh-maybe-here-document)
464 (define-key map "(" 'skeleton-pair-insert-maybe) 465 (define-key map "(" 'skeleton-pair-insert-maybe)
465 (define-key map "{" 'skeleton-pair-insert-maybe) 466 (define-key map "{" 'skeleton-pair-insert-maybe)
@@ -3659,6 +3660,7 @@ The document is bounded by `sh-here-document-word'."
3659 (save-excursion 3660 (save-excursion
3660 (backward-char 2) 3661 (backward-char 2)
3661 (sh-quoted-p)) 3662 (sh-quoted-p))
3663 (nth 8 (syntax-ppss))
3662 (let ((tabs (if (string-match "\\`-" sh-here-document-word) 3664 (let ((tabs (if (string-match "\\`-" sh-here-document-word)
3663 (make-string (/ (current-indentation) tab-width) ?\t) 3665 (make-string (/ (current-indentation) tab-width) ?\t)
3664 "")) 3666 ""))