From: Dario Gjorgjevski Date: Wed, 5 Jun 2019 09:07:49 +0000 (+0200) Subject: Do not use syntax-ppss-table in syntax-propertize when nil (Bug#36095) X-Git-Tag: emacs-27.0.90~2693 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dec148939aad8391875e73784af2bcb0a01100bb;p=emacs.git Do not use syntax-ppss-table in syntax-propertize when nil (Bug#36095) * lisp/emacs-lisp/syntax.el (syntax-propertize): Use (syntax-table) instead of syntax-ppss-table when the latter is nil. --- diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index 1aec1988ab5..60ed531e63d 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el @@ -304,7 +304,7 @@ END) suitable for `syntax-propertize-function'." #'syntax-ppss-flush-cache 99 t)) (save-excursion (with-silent-modifications - (with-syntax-table syntax-ppss-table + (with-syntax-table (or syntax-ppss-table (syntax-table)) (make-local-variable 'syntax-propertize--done) ;Just in case! (let* ((start (max (min syntax-propertize--done (point-max)) (point-min)))