emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 5065698: Move the ‘declare’ form before the interactive spec


From: Stefan Monnier
Subject: Re: master 5065698: Move the ‘declare’ form before the interactive spec in 10 functions.
Date: Thu, 21 Jan 2021 19:22:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> -                   (t (message "Warning: Unknown defun property `%S' in %S"
> -                               (car x) name)))))
> +                   (t (message "%S:%d:Warning: Unknown defun property `%S'"
> +                               name (count-lines (point-min) (point))
> +                               (car x))))))

I think `count-lines` is a problem because we don't know in which buffer
we are when this is executed.

Another approach could be to use something like
`macroexp--warn-and-return`.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]