From: Alan Mackenzie <acm@muc.de>
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: emacs-devel@gnu.org
Subject: Re: Beyond release
Date: Mon, 27 Jun 2016 20:29:44 +0000 [thread overview]
Message-ID: <20160627202944.GE4526@acm.fritz.box> (raw)
In-Reply-To: <7c2ab4b6-4781-e553-53f3-52fca9b647fc@online.de>
Hello, Andreas.
On Mon, Jun 27, 2016 at 08:10:25PM +0200, Andreas Röhler wrote:
> On 27.06.2016 18:55, Dmitry Gutov wrote:
> > On 06/27/2016 07:25 PM, Andreas Röhler wrote:
> >>> Until someone presents concrete evidence, this is just FUD. You can
> >>> pay it no attention.
> >> syntax-propertize-function:
> > Quotes from Emacs's source code are not sufficient evidence of your
> > claims.
They can be. Or they can be very powerful supporting evidence.
> Not if you snip a relevant part.
Indeed not.
> (defun syntax-propertize (pos)
> "Ensure that syntax-table properties are set until POS (a buffer point)."
> (when (< syntax-propertize--done pos)
> (if (null syntax-propertize-function)
> (setq syntax-propertize--done (max (point-max) pos))
> ;; (message "Needs to syntax-propertize from %s to %s"
> ;; syntax-propertize--done pos)
> (set (make-local-variable 'parse-sexp-lookup-properties) t)
> (save-excursion
> (with-silent-modifications ...
> where
> (if (null syntax-propertize-function)
> wouldn't pos a problem.
> However, when called from syntax-propertize-function, this certainly
> wont be null, .....
It might well be when syntax-propertize is called directly from
syntax-ppss. This happens even when syntax-propertize-function is nil.
> .... then the propertize-branch is entered. Might the branches be
> simple bound wrong, i.e. reverse?
No, I don't think so. syntax-propertize--done is supposed to be the
marker of upper limit of where the properties are valid. In the case
where there's no syntax-propertize-function, one might as well set this
to a high value, which likely prevents syntax-propertize being called too
often.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2016-06-27 20:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-27 9:58 Beyond release Andreas Röhler
2016-06-27 14:18 ` Clément Pit--Claudel
2016-06-27 15:33 ` Andreas Röhler
2016-06-27 15:52 ` Clément Pit--Claudel
2016-06-27 16:10 ` Dmitry Gutov
2016-06-27 16:25 ` Andreas Röhler
2016-06-27 16:55 ` Dmitry Gutov
2016-06-27 18:10 ` Andreas Röhler
2016-06-27 19:55 ` Dmitry Gutov
2016-06-28 6:14 ` Andreas Röhler
2016-06-28 11:13 ` Dmitry Gutov
2016-06-27 20:29 ` Alan Mackenzie [this message]
2016-06-28 8:39 ` Andreas Röhler
2016-06-27 16:21 ` Andreas Röhler
2016-06-27 16:40 ` Phillip Lord
2016-06-27 18:00 ` Clément Pit--Claudel
2016-06-27 18:05 ` Clément Pit--Claudel
2016-06-27 20:35 ` Phillip Lord
2016-06-27 15:53 ` Clément Pit--Claudel
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=20160627202944.GE4526@acm.fritz.box \
--to=acm@muc.de \
--cc=andreas.roehler@online.de \
--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.