unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Lisp indentation.
@ 2005-03-10 18:26 Lute Kamstra
  2005-03-10 19:43 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Lute Kamstra @ 2005-03-10 18:26 UTC (permalink / raw)


I was trying to give (with-no-warnings ...) the same indentation as
(progn ...).  Now I have a few question:

In about 25% of the cases the lisp-indent-hook property is used to
specify the desired indentation and in the remaining 75% of the cases,
the lisp-indent-function property is used.  Is the second preferred?
(The docsting of the function lisp-indent-function suggest this.)
Should occurrences of lisp-indent-hook be renamed to
lisp-indent-function?

In most cases the indentation property is put on the symbol at the
place the symbol is defined.  Symbols that are defined in C get their
indentation property in lisp/emacs-lisp/lisp-mode.el.  There are
however a few symbols that are defined in lisp elsewhere that get
their lisp-indent-function property set in lisp-mode.el.  For example
save-selected-window, save-match-data, and with-current-buffer.  Is
there some policy wrt the place where the indentation property should
be set?

Lute.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-03-14 13:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-10 18:26 Lisp indentation Lute Kamstra
2005-03-10 19:43 ` Stefan Monnier
2005-03-11  1:29   ` Lute Kamstra
2005-03-12 17:40     ` Lute Kamstra
2005-03-13 13:23   ` Lute Kamstra
2005-03-13 13:51     ` Stefan Monnier
2005-03-13 16:29       ` Lute Kamstra
2005-03-14 12:58         ` Stefan Monnier
2005-03-14 13:55           ` Lute Kamstra
2005-03-14  3:00     ` 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).