[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make M-x TAB not work on (interactive) declaration?
From: |
Jean Louis |
Subject: |
Re: How to make M-x TAB not work on (interactive) declaration? |
Date: |
Mon, 9 Jan 2023 00:35:46 +0300 |
User-agent: |
Mutt/2.2.9+54 (af2080d) (2022-11-21) |
* Tassilo Horn <tsdh@gnu.org> [2023-01-08 11:46]:
> Jean Louis <bugs@gnu.support> writes:
>
> Hi Jean,
>
> > Reference:
> > (describe-function 'interactive)
> >
> > If MODES is present, it should be a list of mode names (symbols) that
> > this command is applicable for. The main effect of this is that ‘M-x
> > TAB’ (by default) won’t list this command if the current buffer’s mode
> > doesn’t match the list. That is, if either the major mode isn’t
> > derived from them, or (when it’s a minor mode) the mode isn’t in
> > effect.
>
> MODES is a &rest argument and the mode symbols shouldn't be quoted, so
> you use it like so:
>
> (defun my-function ()
> (interactive nil text-mode some-other-mode)
> (message "Hello"))
Then is not good to say "it should be a list of mode names". Of course
after &rest the argument becomes list, but is not same thing.
Thanks, this way I find that function does not appear in other modes.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
- Re: How to make M-x TAB not work on (interactive) declaration?, (continued)
Re: How to make M-x TAB not work on (interactive) declaration?, Tassilo Horn, 2023/01/08
- Re: How to make M-x TAB not work on (interactive) declaration?, Eli Zaretskii, 2023/01/08
- Re: How to make M-x TAB not work on (interactive) declaration?,
Jean Louis <=
- RE: [External] : Re: How to make M-x TAB not work on (interactive) declaration?, Drew Adams, 2023/01/08
- Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?, Emanuel Berg, 2023/01/09
- Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?, Jean Louis, 2023/01/09
- Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?, Emanuel Berg, 2023/01/12
- (*)->1, Jean Louis, 2023/01/13
- Re: (*)->1, Michael Heerdegen, 2023/01/14
- Re: (*)->1, Michael Heerdegen, 2023/01/14
Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?, Rudolf Adamkovič, 2023/01/15
Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?, Jean Louis, 2023/01/15
RE: [External] : Re: How to make M-x TAB not work on (interactive) declaration?, Drew Adams, 2023/01/15