bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24749: Making sure syntax-propertize is called


From: npostavs
Subject: bug#24749: Making sure syntax-propertize is called
Date: Mon, 03 Jun 2019 16:04:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> It seems that the only(?) use case for a nil `parse-sexp-lookup-properties` 
>> is
>> to set it to nil dynamically in specialized lookup code for performance
>> reasons. Such code does let-bind it to nil already.
>
> I can't remember binding it to nil for performance reasons (tho maybe
> that's the reason behind yasnippet.el's case), but we do let-bind it
> temporarily to nil in a few cases as a hackish way to have a "different
> view" of the buffer which happens to fit our needs.  E.g. this is done
> in font-latex.el and sm-c-mode.el.

A "different view" of the buffer is the reason for yasnippet.el's use of
it too: it's parsing braces in "snippet syntax", which is not related to
the major mode's syntax.  (Really, parsing of the snippet syntax should
be done in a separate buffer to remove the need for this, but the
parsing code is intertwined with the evaluation of lisp in some snippet
constructs, so it's tricky to do that.)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]