From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 8dafacd: * lisp/emacs-lisp/syntax.el (syntax-ppss-table): New var
Date: Sun, 17 Jan 2016 16:32:42 -0500 [thread overview]
Message-ID: <jwv8u3nhpcv.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <m2mvs3di2e.fsf@newartisans.com> (John Wiegley's message of "Sun, 17 Jan 2016 13:14:49 -0800")
>>> * lisp/emacs-lisp/syntax.el (syntax-ppss-table): New var
>> Are there any particular cases where we should use it?
Any time where you want to use a different syntax-table. E.g. e use it
in nxml-mode where the syntax-table to use normally should be
"text-like" (e.g. parens are matched), but where actual formal parsing
needs something very different (since nothing guarantees that parens
are matched, whereas matching <..> is a lot more useful).
I expect it to be handy as well in cases where the "normal" syntax table
may be changed at various times. E.g. this allows the use of
syntax-ppss within with-syntax-table. I actually imagine it may become
"normal and recommended" to set syntax-ppss-table in any buffer where
with-syntax-table may be used, since syntax-ppss can very easily be
triggered by accident (e.g. via forward-sexp -> syntax-propertize ->
syntax-ppss).
>> You've added the var, but without any usages.
Actually there is one usage in trunk (in nxml). I just mistakenly
installed it before installing the corresponding change in syntax.el.
Stefan
next prev parent reply other threads:[~2016-01-17 21:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160116200607.22534.62936@vcs.savannah.gnu.org>
[not found] ` <E1aKX6t-0005s4-NF@vcs.savannah.gnu.org>
2016-01-17 10:56 ` [Emacs-diffs] master 8dafacd: * lisp/emacs-lisp/syntax.el (syntax-ppss-table): New var Dmitry Gutov
2016-01-17 21:14 ` John Wiegley
2016-01-17 21:32 ` Stefan Monnier [this message]
2016-01-18 20:45 ` Dmitry Gutov
2016-01-18 22:12 ` Stefan Monnier
2016-01-19 1:25 ` Dmitry Gutov
2016-01-19 14:30 ` Stefan Monnier
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=jwv8u3nhpcv.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dgutov@yandex.ru \
--cc=emacs-devel@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.