emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 489d646: * lisp/subr.el (run-mode-hooks): Set p


From: Charles A. Roelli
Subject: Re: [Emacs-diffs] master 489d646: * lisp/subr.el (run-mode-hooks): Set parse-sexp-lookup-properties
Date: Tue, 12 Dec 2017 20:52:09 +0100

> Date: Tue, 12 Dec 2017 09:11:24 -0500 (EST)
> From: address@hidden (Stefan Monnier)
> 
> branch: master
> commit 489d6466372f488adc53897435fff290394b62f7
> Author: Stefan Monnier <address@hidden>
> Commit: Stefan Monnier <address@hidden>
> 
>     * lisp/subr.el (run-mode-hooks): Set parse-sexp-lookup-properties
>     
>     if syntax-propertize-function is set (bug#24749).
>     * lisp/progmodes/sh-script.el (sh-set-shell):
>     * lisp/textmodes/texinfo.el (texinfo-mode):
>     * lisp/textmodes/mhtml-mode.el (mhtml-mode):
>     * lisp/progmodes/js.el (js-mode): Don't set parse-sexp-lookup-properties.
> ---
>  lisp/progmodes/js.el         | 1 -
>  lisp/progmodes/sh-script.el  | 1 -
>  lisp/subr.el                 | 9 ++++++++-
>  lisp/textmodes/mhtml-mode.el | 1 -
>  lisp/textmodes/texinfo.el    | 1 -
>  5 files changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/lisp/subr.el b/lisp/subr.el
> index bf51c93..8468255 100644
> --- a/lisp/subr.el
> +++ b/lisp/subr.el
> @@ -1876,8 +1876,15 @@ running their FOO-mode-hook."
>       (push hook delayed-mode-hooks))
>      ;; Normal case, just run the hook as before plus any delayed hooks.
>      (setq hooks (nconc (nreverse delayed-mode-hooks) hooks))
> +    (and syntax-propertize-function
> +         (not (buffer-local-p 'parse-sexp-lookup-properties))

buffer-local-p should be local-variable-p, right?  I don't see a
function called buffer-local-p.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]