emacs-devel
[Top][All Lists]
Advanced

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

Re: Fwd: Bug in lisp indentation


From: Stefan Monnier
Subject: Re: Fwd: Bug in lisp indentation
Date: Wed, 18 Jul 2007 14:49:44 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> I think what takes the time is parsing _down_ from the top of the
> function.  Finding the start of the defun is very fast by comparison,
> at least for Lisp.

None of the indentation algorithms I've ever implemented does any
forward parsing.  It's always going backward.  Going backward leads to
better behavior as well: it only looks at nearby code to decide how to
indent, so its behavior is more local and hence easier for the user
to understand.


        Stefan





reply via email to

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