[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
- Mark custom function for interactive use only, Sebastian Wiesner, 2013/11/24
- Re: Mark custom function for interactive use only, Stefan Monnier, 2013/11/24
- Re: Mark custom function for interactive use only,
Sebastian Wiesner <=
- Re: Mark custom function for interactive use only, Stefan Monnier, 2013/11/24
- Re: Mark custom function for interactive use only, Sebastian Wiesner, 2013/11/25
- Re: Mark custom function for interactive use only, Sebastian Wiesner, 2013/11/25
- Re: Mark custom function for interactive use only, Sebastian Wiesner, 2013/11/25
- Re: Mark custom function for interactive use only, Bozhidar Batsov, 2013/11/25
- Re: Mark custom function for interactive use only, Sebastian Wiesner, 2013/11/25
- Re: Mark custom function for interactive use only, Bozhidar Batsov, 2013/11/25
- Re: Mark custom function for interactive use only, Sebastian Wiesner, 2013/11/25
- Re: Mark custom function for interactive use only, Stefan Monnier, 2013/11/25
- Re: Mark custom function for interactive use only, Sebastian Wiesner, 2013/11/25