]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not use syntax-ppss-table in syntax-propertize when nil (Bug#36095)
authorDario Gjorgjevski <dario.gjorgjevski+git@gmail.com>
Wed, 5 Jun 2019 09:07:49 +0000 (11:07 +0200)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 5 Jun 2019 11:29:23 +0000 (07:29 -0400)
* lisp/emacs-lisp/syntax.el (syntax-propertize): Use (syntax-table)
instead of syntax-ppss-table when the latter is nil.

lisp/emacs-lisp/syntax.el

index 1aec1988ab528528d6abc1c7814f88316c035b57..60ed531e63d3cbf5b6dc3237be2d88fd526940ce 100644 (file)
@@ -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)))