From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS native subrs Date: Wed, 26 Jun 2024 16:30:01 +0300 Message-ID: <86ed8j96hy.fsf@gnu.org> References: <87v823xvq1.fsf@localhost> <87sex6ags5.fsf@localhost> <87msne3flr.fsf@gmail.com> <87frt63dvt.fsf@gmail.com> <86o77ulgk8.fsf@gnu.org> <87zfre1p3r.fsf@gmail.com> <87zfreo5u6.fsf@localhost> <87plsa1n8k.fsf@gmail.com> <87wmmio3vq.fsf@localhost> <87jzii1hbs.fsf_-_@gmail.com> <8734p61evv.fsf@gmail.com> <87iky0zvyz.fsf@gmail.com> <87ikxwamor.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31198"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 26 15:30:46 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sMSjW-0007yW-3O for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jun 2024 15:30:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMSiv-0008S6-DF; Wed, 26 Jun 2024 09:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMSis-0008RF-18 for emacs-devel@gnu.org; Wed, 26 Jun 2024 09:30:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMSir-0002zS-2I; Wed, 26 Jun 2024 09:30:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5xbnnPpgbyikIW1gTX8GDArEuXpdBh7sIIDu9ceuFbY=; b=qvPLUFxjxkstRKfi6Ai3 I3zI2m8CmnC84iUGxAtibRJ1s5GmXYJuhYTewfykGd6tbmDnokkYhhqoKm0xYqryVV25xyLcBrfnJ d65czhDrOmEUjmXDbFTTITY5IISZDUsCLq+Bum1A/F5wDXyqiOYbH3tC67eeNPG1evQZhsdNgYKAz ZumqhG9AFDC/sShGJMZOjItdqbxTWtbYpiu+fiBo/D7KcgopETV4CAMrujHXla66aNdidCV3rph2I 0wtMlYkgTHqvZ6b8M2HqdtqX3lk6EBIkjAxxVa7BTFF99N9aifGKQHlqkkON5dgZAYjGhiEfPJbu5 xmWu8jk10myBfA==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Tue, 25 Jun 2024 22:48:01 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320682 Archived-At: > From: Gerd Möllmann > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Tue, 25 Jun 2024 22:48:01 +0200 > > Gerd Möllmann 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 > 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. Feature which uses it is also documented in NEWS.29: ** New key binding after 'M-x' or 'M-X': 'M-X'. Emacs allows different completion predicates to be used with 'M-x' (i.e., 'execute-extended-command') via the 'read-extended-command-predicate' user option. Emacs also has the 'M-X' (note upper case X) command, which only displays commands especially relevant to the current buffer. Emacs now allows toggling between these modes while the user is inputting a command by hitting 'M-X' while in the minibuffer.