[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master dec1489: Do not use syntax-ppss-table in syntax-pro
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] master dec1489: Do not use syntax-ppss-table in syntax-propertize when nil (Bug#36095) |
Date: |
Wed, 5 Jun 2019 07:30:13 -0400 (EDT) |
branch: master
commit dec148939aad8391875e73784af2bcb0a01100bb
Author: Dario Gjorgjevski <address@hidden>
Commit: Noam Postavsky <address@hidden>
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.
---
lisp/emacs-lisp/syntax.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index 1aec198..60ed531 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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master dec1489: Do not use syntax-ppss-table in syntax-propertize when nil (Bug#36095),
Noam Postavsky <=