diff options
| author | Dario Gjorgjevski | 2019-06-05 11:07:49 +0200 |
|---|---|---|
| committer | Noam Postavsky | 2019-06-05 07:29:23 -0400 |
| commit | dec148939aad8391875e73784af2bcb0a01100bb (patch) | |
| tree | 94b01027c1fd88995c29648decf11ce77e624d7c | |
| parent | 0b3982b1a3892486fd9e4916b9cfafa12ddd9137 (diff) | |
| download | emacs-dec148939aad8391875e73784af2bcb0a01100bb.tar.gz emacs-dec148939aad8391875e73784af2bcb0a01100bb.zip | |
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.
| -rw-r--r-- | lisp/emacs-lisp/syntax.el | 2 |
1 files changed, 1 insertions, 1 deletions
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'." | |||
| 304 | #'syntax-ppss-flush-cache 99 t)) | 304 | #'syntax-ppss-flush-cache 99 t)) |
| 305 | (save-excursion | 305 | (save-excursion |
| 306 | (with-silent-modifications | 306 | (with-silent-modifications |
| 307 | (with-syntax-table syntax-ppss-table | 307 | (with-syntax-table (or syntax-ppss-table (syntax-table)) |
| 308 | (make-local-variable 'syntax-propertize--done) ;Just in case! | 308 | (make-local-variable 'syntax-propertize--done) ;Just in case! |
| 309 | (let* ((start (max (min syntax-propertize--done (point-max)) | 309 | (let* ((start (max (min syntax-propertize--done (point-max)) |
| 310 | (point-min))) | 310 | (point-min))) |