From 37cef5fbfef31fdbdaaab48a0ff428a6f0ed60b6 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 7 Jul 2016 21:14:48 -0400 Subject: [PATCH] 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 39e970714c3..7a9e6c7422d 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 -- 2.11.4.GIT