[Top][All Lists]
[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
- Re: Bug in lisp indentation, (continued)
Re: Bug in lisp indentation, Thien-Thi Nguyen, 2007/07/14
Re: Fwd: Bug in lisp indentation, Stefan Monnier, 2007/07/15