emacs-devel
[Top][All Lists]
Advanced

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

Re: MPS native subrs


From: Eli Zaretskii
Subject: Re: MPS native subrs
Date: 2024年6月26日 16:34:37 +0300

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
> Date: 2024年6月25日 22:48:01 +0200
>
> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>
> > How command-modes, a defun, is exactly used I don't know either, sorry.
> > I understand the doc string as indicating that certain commands are only
> > applicable in certain modes, in the sense of minor- and major-mode. I
> > don't remember that from the good old days, and it doesn't seem to be
> > explained anywhere.
>
> Seems to have appeared in
>
> 58e0c8ee86e2c36245f1c5a1483f1c73600b4914
> Author: Lars Ingebrigtsen <larsi@gnus.org>
> AuthorDate: Sun Feb 14 13:21:24 2021 +0100
>
> Extend the syntax of `interactive' to list applicable modes
It's documented in the ELisp manual:
 -- Special Form: interactive &optional arg-descriptor &rest modes
 [...]
 The MODES list allows specifying which modes the command is meant
 to be used in. See *note Command Modes:: for more details about
 the effect of specifying MODES, and when to use it.
 -- Macro: declare specs...
 [...]
 ‘(modes MODES)’
 Specify that this command is meant to be applicable only to
 specified MODES. *Note Command Modes::.
See also "Command Modes" in the ELisp manual, which is dedicated to
these features.

reply via email to

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

AltStyle によって変換されたページ (->オリジナル) /