[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 37cef5f 7/7: Make sh-mode always use p-s-lookup-pro
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] master 37cef5f 7/7: Make sh-mode always use p-s-lookup-properties |
Date: |
Sat, 6 Aug 2016 20:16:33 +0000 (UTC) |
branch: master
commit 37cef5fbfef31fdbdaaab48a0ff428a6f0ed60b6
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
Make sh-mode always use p-s-lookup-properties
This lets functions which rely on syntax-propertize for parsing
work correctly even before font lock has a chance to run.
* lisp/progmodes/sh-script.el (sh-set-shell): Set
parse-sexp-lookup-properties unconditionally (Bug #4920).
---
lisp/progmodes/sh-script.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 39e9707..7a9e6c7 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -2430,8 +2430,8 @@ whose value is the shell name (don't quote it)."
(funcall mksym "rules")
:forward-token (funcall mksym "forward-token")
:backward-token (funcall mksym "backward-token")))
+ (setq-local parse-sexp-lookup-properties t)
(unless sh-use-smie
- (setq-local parse-sexp-lookup-properties t)
(setq-local sh-kw-alist (sh-feature sh-kw))
(let ((regexp (sh-feature sh-kws-for-done)))
(if regexp
- [Emacs-diffs] master updated (b593ea1 -> 37cef5f), Noam Postavsky, 2016/08/06
- [Emacs-diffs] master 4dec928 2/7: Fix quoted lambda warning from lexical-let, Noam Postavsky, 2016/08/06
- [Emacs-diffs] master a90d5e6 3/7: Error if --eval arg has text beyond 1 expression, Noam Postavsky, 2016/08/06
- [Emacs-diffs] master ff40055 1/7: Make emerge always use shell-quote-argument, Noam Postavsky, 2016/08/06
- [Emacs-diffs] master 031af49 4/7: Fix byte-compile of interactive closures, Noam Postavsky, 2016/08/06
- [Emacs-diffs] master 37cef5f 7/7: Make sh-mode always use p-s-lookup-properties,
Noam Postavsky <=
- [Emacs-diffs] master 9ae89c2 5/7: Don't delete selection after indent-rigidly, Noam Postavsky, 2016/08/06
- [Emacs-diffs] master 0095837 6/7: Fix cl-assert with atomp FORM, non-nil SHOW-ARGS, Noam Postavsky, 2016/08/06