Re: Lisp indentation.

2005-03-14 Thread Lute Kamstra
Stefan Monnier <[EMAIL PROTECTED]> writes: >> I tried it with eval-when-compile in byte-run.el. With current CVS > > Oh, right, the `declare' only works after subr.el has been loaded, > so it's ignored if you use it in byte-run.el or in backquote.el. > > See (setq macro-declaration-function 'macr

Re: Lisp indentation.

2005-03-14 Thread Stefan Monnier
> I tried it with eval-when-compile in byte-run.el. With current CVS Oh, right, the `declare' only works after subr.el has been loaded, so it's ignored if you use it in byte-run.el or in backquote.el. See (setq macro-declaration-function 'macro-declaration-function) in subr.el. Feel free to fix

Re: Lisp indentation.

2005-03-13 Thread Richard Stallman
If (put ... 'lisp-indent-function ...) is used to specify indentation, then that is executed during startup as well. However, if (declare (indent ...)) is used to specify indentation, then the macro is defined during startup, but its lisp-indent-property will not be set. There are

Re: Lisp indentation.

2005-03-13 Thread Lute Kamstra
Stefan Monnier <[EMAIL PROTECTED]> writes: >> However, if (declare (indent ...)) is used to specify indentation, >> then the macro is defined during startup, but its >> lisp-indent-property will not be set. > > Huh? That's not the behavior I see. [...] >> This should probably be fixed somehow,

Re: Lisp indentation.

2005-03-13 Thread Stefan Monnier
> However, if (declare (indent ...)) is used to specify indentation, then > the macro is defined during startup, but its lisp-indent-property will not > be set. Huh? That's not the behavior I see. > [I guess, this is why there is a (put 'when 'lisp-indent-function 1) > in lisp-mode.el, even thou

Re: Lisp indentation.

2005-03-13 Thread Lute Kamstra
Stefan Monnier <[EMAIL PROTECTED]> writes: [...] > I'd say they should be set in the `declare' part of the definition > of the macro. See the definition of `when' or `unless' for > examples. Unless it's common to edit code that uses the macro while > the macro itself is not loaded, in which cas

Re: Lisp indentation.

2005-03-12 Thread Lute Kamstra
Lute Kamstra <[EMAIL PROTECTED]> writes: [...] > So this would be a good patch then. Ai, what was I smoking? The defmacros should get a (declare (indent 0)) of course. Lute. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mail

Re: Lisp indentation.

2005-03-10 Thread Lute Kamstra
Stefan Monnier <[EMAIL PROTECTED]> writes: >> 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-

Re: Lisp indentation.

2005-03-10 Thread Stefan Monnier
> 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 occurrenc