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
> 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
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
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,
> 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
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
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
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-
> 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