From: Dario Gjorgjevski <dario.gjorgjevski@gmail.com>
To: 36095@debbugs.gnu.org
Subject: bug#36095: [PATCH] Do not use syntax-ppss-table in syntax-propertize when nil
Date: Wed, 05 Jun 2019 11:15:48 +0200 [thread overview]
Message-ID: <87a7ew1jgb.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
Commit 0b3982b1a3 changed syntax-propertize to use syntax-ppss-table
explicitly, similarly to syntax-ppss. However, it also attempts to do
this when syntax-ppss-table is nil, resulting in an error. This patch
fixes that.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Do not use syntax-ppss-table in syntax-propertize when nil --]
[-- Type: text/x-diff, Size: 1082 bytes --]
From bfa012db3b137262cbdfff827c3b8d367750e0ab Mon Sep 17 00:00:00 2001
From: Dario Gjorgjevski <dario.gjorgjevski+git@gmail.com>
Date: Wed, 5 Jun 2019 11:07:49 +0200
Subject: [PATCH] Do not use syntax-ppss-table in syntax-propertize when nil
* 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 1aec1988ab..60ed531e63 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -304,7 +304,7 @@ syntax-propertize
#'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)))
--
2.20.1
[-- Attachment #3: Type: text/plain, Size: 135 bytes --]
--
Dario Gjorgjevski :: <dario.gjorgjevski@gmail.com>
:: 744A 4F0B 4F1C 9371
:: +48 1525 8666837
next reply other threads:[~2019-06-05 9:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-05 9:15 Dario Gjorgjevski [this message]
2019-06-05 11:30 ` bug#36095: [PATCH] Do not use syntax-ppss-table in syntax-propertize when nil Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a7ew1jgb.fsf@gmail.com \
--to=dario.gjorgjevski@gmail.com \
--cc=36095@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.