unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 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
* 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
* 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

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: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
  -- strict thread matches above, loose matches on Subject: below --
2007-03-12 10:27 lisp-indent-line A Soare
2007-03-12 10:38 ` lisp-indent-line Andreas Schwab
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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).