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:34:37 +0300 Message-ID: <86cyo396aa.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="15067"; 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:35:03 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 1sMSne-0003Wu-20 for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jun 2024 15:35:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMSnN-0004AU-5Z; Wed, 26 Jun 2024 09:34:45 -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 1sMSnK-00044M-Ux for emacs-devel@gnu.org; Wed, 26 Jun 2024 09:34:43 -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 1sMSnK-0004cp-LX; Wed, 26 Jun 2024 09:34:42 -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=p1zBqUlUhwiF+hFRsRt6uiCceclSNteIhU5hw9htj08=; b=otP2CY/R8ViSTrKb+gbP 27KrJGFfOr9jMb8SDCPkjcMWk5P9/O6aXVd8u02KiRqAksWhMWsWZKrUVVKga6McrAS9dVT/NGmJh qLY3ZiZGipz7btELruF0yNAyDfODrDa0yWRzzEm73PTMaxs8kubIiG6HQltaXBq6FEqhbsXz6wA0F w4A6lShmhDTZtPwYRgfSjwfU3YzMCPJPBMl0SXRMu+8HOMpxBuzLc2SHT+FCB5PuhYzrAYNcbO9gS +yS9L4+vto7J6R4chpqSyTJbtdQhFoCIKofEd4z7Hw1Vhuv+XypM6AtRZLHYZXsVd6CIWbNG2/OfW L+0YyGR4j5Q6fg==; 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:320684 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. -- 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.