[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lisp indentation.
From: |
Lute Kamstra |
Subject: |
Lisp indentation. |
Date: |
Thu, 10 Mar 2005 19:26:20 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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.