* lisp-indent-line
@ 2007-03-12 10:22 A Soare
2007-03-12 10:45 ` lisp-indent-line martin rudalics
2007-03-13 2:43 ` lisp-indent-line Richard Stallman
0 siblings, 2 replies; 8+ messages in thread
From: A Soare @ 2007-03-12 10:22 UTC (permalink / raw)
To: Emacs Dev [emacs-devel]
(defun new-lisp-indent-line (&optional whole-exp)
"Indent current line as Lisp code.
With argument, indent any additional lines of the same expression
rigidly along with this one."
(interactive "P")
...)
lisp-indent-line has one parameter.
However, it is never used in the code as far as I see... I do not understand its logic...
Can somebody explain me its logic , please?
what means that: "With argument, indent any additional lines of the same expression rigidly along with this one." ?
Is it an important feature that worth to be kept in future?
a soare.
^ permalink raw reply [flat|nested] 8+ messages in thread
* lisp-indent-line
@ 2007-03-12 10:27 A Soare
2007-03-12 10:38 ` lisp-indent-line Andreas Schwab
0 siblings, 1 reply; 8+ messages in thread
From: A Soare @ 2007-03-12 10:27 UTC (permalink / raw)
To: Emacs Dev [emacs-devel]
(defun new-lisp-indent-line (&optional whole-exp)
"Indent current line as Lisp code.
With argument, indent any additional lines of the same expression
rigidly along with this one."
(interactive "P")
...)
And also when I call it using C-u <parameter> TAB the effect is the same as the simple TAB.
So what it shoud have been useful for?
a soare.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: lisp-indent-line
2007-03-12 10:27 lisp-indent-line A Soare
@ 2007-03-12 10:38 ` Andreas Schwab
0 siblings, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2007-03-12 10:38 UTC (permalink / raw)
To: alinsoar; +Cc: Emacs Dev [emacs-devel]
A Soare <alinsoar@voila.fr> writes:
> So what it shoud have been useful for?
Try it on a multi-line sexp.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: lisp-indent-line
2007-03-12 10:22 lisp-indent-line A Soare
@ 2007-03-12 10:45 ` martin rudalics
2007-03-13 2:43 ` lisp-indent-line Richard Stallman
1 sibling, 0 replies; 8+ messages in thread
From: martin rudalics @ 2007-03-12 10:45 UTC (permalink / raw)
To: alinsoar; +Cc: Emacs Dev [emacs-devel]
> lisp-indent-line has one parameter.
>
> However, it is never used in the code as far as I see... I do not understand its logic...
Look for
(and whole-exp (not (zerop shift-amt))
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: lisp-indent-line
@ 2007-03-12 10:50 A Soare
2007-03-12 10:55 ` lisp-indent-line Andreas Schwab
0 siblings, 1 reply; 8+ messages in thread
From: A Soare @ 2007-03-12 10:50 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Emacs Dev [emacs-devel]
Look at this code:
(save-excursion
(goto-char beg)
(forward-sexp 1)
(setq end (point))
(goto-char beg)
(forward-line 1)
(setq beg (point))
(> end beg))
Press C-u 1 TAB. with the cursor on the 1st line.
Do you think that such a feature is useful for something?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: lisp-indent-line
2007-03-12 10:50 lisp-indent-line A Soare
@ 2007-03-12 10:55 ` Andreas Schwab
2007-03-12 14:52 ` lisp-indent-line Stefan Monnier
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2007-03-12 10:55 UTC (permalink / raw)
To: alinsoar; +Cc: Emacs Dev [emacs-devel]
A Soare <alinsoar@voila.fr> writes:
> Do you think that such a feature is useful for something?
I use it all the time.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: lisp-indent-line
2007-03-12 10:55 ` lisp-indent-line Andreas Schwab
@ 2007-03-12 14:52 ` Stefan Monnier
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2007-03-12 14:52 UTC (permalink / raw)
To: Andreas Schwab; +Cc: alinsoar, Emacs Dev [emacs-devel]
> A Soare <alinsoar@voila.fr> writes:
>> Do you think that such a feature is useful for something?
> I use it all the time.
Agreed, but I think it should be implemented in indent-for-tab-command
rather than in the indent-line-functions.
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: lisp-indent-line
2007-03-12 10:22 lisp-indent-line A Soare
2007-03-12 10:45 ` lisp-indent-line martin rudalics
@ 2007-03-13 2:43 ` Richard Stallman
1 sibling, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2007-03-13 2:43 UTC (permalink / raw)
To: alinsoar; +Cc: emacs-devel
lisp-indent-line has one parameter.
However, it is never used in the code as far as I see... I do not understand its logic...
If this is the C-u TAB feature, it is very important.
And it works when I try it.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-03-13 2:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-12 10:27 lisp-indent-line A Soare
2007-03-12 10:38 ` lisp-indent-line Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2007-03-12 10:50 lisp-indent-line A Soare
2007-03-12 10:55 ` lisp-indent-line Andreas Schwab
2007-03-12 14:52 ` lisp-indent-line Stefan Monnier
2007-03-12 10:22 lisp-indent-line A Soare
2007-03-12 10:45 ` lisp-indent-line martin rudalics
2007-03-13 2:43 ` lisp-indent-line Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.