[Top][All Lists]

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

Re: better `up-list' for emacs-lisp, fundamental modes

From: Stefan Monnier
Subject: Re: better `up-list' for emacs-lisp, fundamental modes
Date: Tue, 22 Feb 2005 11:48:35 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> However, `up-list' does not let you move up out of a string:

That's because you have to know whether you're inside or outside in order to
know whether a " closes or opens a string.  In contrast a ( or )
unambiguously identifies whether it closes or opens a paren.

Knowing whether you're inside a string can require scanning the whole buffer
from point-min, which can be problematic.  The new function syntax-ppss can
be used to try and make this efficient, but any such change should be
postponed to after Emacs-22.1.


reply via email to

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