* Find outermost containing sexp
@ 2007-05-02 11:31 A Soare
0 siblings, 0 replies; 4+ messages in thread
From: A Soare @ 2007-05-02 11:31 UTC (permalink / raw)
To: Emacs Help [help-gnu-emacs]
In function calculate-lisp-indent:
;; Find outermost containing sexp
(while (< (point) indent-point)
(setq state (parse-partial-sexp (point) indent-point 0)))
Cn somebody give me an example where (setq ... is executed here more than once, please?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Find outermost containing sexp
[not found] <mailman.85.1178105915.32220.help-gnu-emacs@gnu.org>
@ 2007-05-02 12:51 ` weber
0 siblings, 0 replies; 4+ messages in thread
From: weber @ 2007-05-02 12:51 UTC (permalink / raw)
To: help-gnu-emacs
On 2 maio, 08:31, A Soare <alins...@voila.fr> wrote:
> In function calculate-lisp-indent:
>
> ;; Find outermost containing sexp
> (while (< (point) indent-point)
> (setq state (parse-partial-sexp (point) indent-point 0)))
>
> Cn somebody give me an example where (setq ... is executed here more than once, please?
You mean this?
(while (< (point) indent-point)
(progn
(setq another-thing another-value)
(setq state (parse-partial-sexp (point) indent-point 0))))
Cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Find outermost containing sexp
@ 2007-05-03 6:45 martin rudalics
0 siblings, 0 replies; 4+ messages in thread
From: martin rudalics @ 2007-05-03 6:45 UTC (permalink / raw)
To: alinsoar; +Cc: help-gnu-emacs
Put `point' on an empty line between two top-level sexps say
(foo)
(bar)
and do `lisp-indent-line'.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Find outermost containing sexp
@ 2007-05-03 10:04 A Soare
0 siblings, 0 replies; 4+ messages in thread
From: A Soare @ 2007-05-03 10:04 UTC (permalink / raw)
To: martin rudalics; +Cc: Emacs Help [help-gnu-emacs]
> Put `point' on an empty line between two top-level sexps say
>
>
> (foo)
>
> (bar)
>
>
> and do `lisp-indent-line'.
:)
You are right. Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-03 10:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 10:04 Find outermost containing sexp A Soare
-- strict thread matches above, loose matches on Subject: below --
2007-05-03 6:45 martin rudalics
[not found] <mailman.85.1178105915.32220.help-gnu-emacs@gnu.org>
2007-05-02 12:51 ` weber
2007-05-02 11:31 A Soare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).