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

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

bug#11321: 24.0.95; forward-sexp fails on string


From: Stefan Monnier
Subject: bug#11321: 24.0.95; forward-sexp fails on string
Date: Tue, 24 Apr 2012 08:45:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

> Could someone explain what is going on? Is this a bug? Thanks.

Here's my explanation: when you do the first C-M-f, syntax-propertize
has not yet been applied to the end of the triple-quoted-string, so its
end is not properly marked and forward-sexp doesn't find it.  The C-M-f
at point 6 moves point such that the end of the string does get
displayed, thus forcing application of syntax-propertize to the
problematic area, so the C-M-f at point 8 finds that the string has
already been processed in its entirety (or at least both the beginning
and the end have been processed, which are the only parts that matter),
leading to C-M-f working right this time.

IOW, the problem is that syntax-propertize is currently applied "just in
time" for font-lock, but not "just in time" for forward-sexp.


        Stefan





reply via email to

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