From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 8dafacd: * lisp/emacs-lisp/syntax.el (syntax-ppss-table): New var
Date: Tue, 19 Jan 2016 04:25:27 +0300 [thread overview]
Message-ID: <569D9087.2060803@yandex.ru> (raw)
In-Reply-To: <jwvd1symtp7.fsf-monnier+emacsdiffs@gnu.org>
On 01/19/2016 01:12 AM, Stefan Monnier wrote:
>> Doesn't paren-matching code call syntax-ppss anyway?
>
> Not that I know, no.
electric-pair-syntax-info calls syntax-ppss. blink-matching-open calls
(forward-sexp -1).
> Yes, this whole area is rather murky. The font-lock syntax-table should
> mostly disappear (90% of the uses were to turn "_" syntax into "w"
> syntax so as to be able to use \< and \>, but this has been made
> obsolete by the new \_< and \_>), I think.
font-lock-syntax-table should go away, yes. But it's still there.
Are current-syntax-table and syntax-ppss-table allowed to differ more
than that?
> E.g. in TeX and HTML, we want to match parentheses even though the formal
> syntax does not give any special rule to parentheses. Similar thing for
> matching parens when the open and close parens are both inside comments,
> but not inside the same one.
Multiple major modes strike again! Or multiple syntactic regions,
anyway. I'm not sure if having a different value of syntax-table (any
variable) between different comments will help us any.
>> But up-list uses the return value of syntax-ppss, so it will be affected by
>> syntax-ppss-table?
>
> syntax-ppss is indeed used, but only to decide if we're strings or
> comments, so it should be OK.
Never for its 9th element?
>> It doesn't seem easy to reason about.
>
> Indeed, it's not.
So, I'm wondering if we could postpone introducing a new variable, and
implement the same thing in nxml-mode somehow in a different way.
But you've probably already considered that.
next prev parent reply other threads:[~2016-01-19 1:25 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
2016-01-18 20:45 ` Dmitry Gutov
2016-01-18 22:12 ` Stefan Monnier
2016-01-19 1:25 ` Dmitry Gutov [this message]
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=569D9087.2060803@yandex.ru \
--to=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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.