emacs-devel
[Top][All Lists]
Advanced

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

Re: Mark custom function for interactive use only


From: Sebastian Wiesner
Subject: Re: Mark custom function for interactive use only
Date: Sun, 24 Nov 2013 20:52:29 +0100

2013/11/24 Stefan Monnier <address@hidden>:
>> as you all know, the byte compiler warns if some functions (e.g.
>> "next-line") are called from Lisp.
>
>> Is there a way to mark my own functions for "interactive use only" and
>> have the byte compiler emit the same warning for these functions, too?
>>  Do I need to set a special symbol property, etc.?
>
> You can add them to byte-compile-interactive-only-functions, but it's
> rather inconvenient.  We should replace this list with a symbol
> property, indeed.  Patch welcome,

I presume I'd just patch `byte-compile-form' in bytecomp.el to also
look at a corresponding property, e.g. `interactive-use-only`.
Anything else?

>
>
>         Stefan



reply via email to

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