emacs-devel
[Top][All Lists]
Advanced

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

Re: What should the prefix to prog-indent-sexp do?


From: Andreas Röhler
Subject: Re: What should the prefix to prog-indent-sexp do?
Date: Wed, 15 May 2013 15:07:16 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Am 15.05.2013 13:57, schrieb Leo Liu:
On 2013-05-15 17:36 +0800, Andreas Röhler wrote:
What about to use the arg as indent of top-level-form?
I.e. use syntax-ppss, not reg-exp jumping.
That would indent defuns, but also loops, defvars etc.

Should work for these cases already.

Leo




In most cases it works, in some it fails, for example from behind a badly 
indented

(defvar a nil "make
(beginning-more more visible
")

Whilst syntax-ppss wouldn't be irritated.



reply via email to

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