[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in lisp indentation
From: |
Stefan Monnier |
Subject: |
Re: Bug in lisp indentation |
Date: |
Sat, 14 Jul 2007 16:04:18 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
> + ;; The last sexp may not be the first sexp on the line
> + ;; where it begins, so find that one, instead.
> + (when calculate-lisp-indent-last-sexp
> + (goto-char calculate-lisp-indent-last-sexp)
> + (beginning-of-line)
> + (skip-chars-forward " \t")
That's wrong when you have things like
(sdfgsdg dfgsd
asfgasfg) (dfg)
<TAB>sfgsfg
You want something along the lines of
(while (not (at-indentation-p)) (forward-sexp -1))
-- Stefan
Re: Bug in lisp indentation, Thien-Thi Nguyen, 2007/07/14
Re: Fwd: Bug in lisp indentation, Stefan Monnier, 2007/07/15