From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Sat, 20 Feb 2021 14:49:28 +0300 Message-ID: References: <87v9aubm96.fsf@gnus.org> <87czwzfn9p.fsf@telefonica.net> 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="34124"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: emacs-devel@gnu.org To: =?utf-8?B?w5NzY2Fy?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 20 12:51:15 2021 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 1lDQn5-0008nG-Jz for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 12:51:15 +0100 Original-Received: from localhost ([::1]:44032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDQn4-0001OF-MV for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 06:51:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDQmH-0000nf-Q6 for emacs-devel@gnu.org; Sat, 20 Feb 2021 06:50:25 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:53289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDQmB-000829-B4 for emacs-devel@gnu.org; Sat, 20 Feb 2021 06:50:25 -0500 Original-Received: from localhost ([::ffff:41.210.155.197]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E1B8.000000006030F776.00003965; Sat, 20 Feb 2021 04:50:13 -0700 Mail-Followup-To: =?utf-8?B?w5NzY2Fy?= Fuentes , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <87czwzfn9p.fsf@telefonica.net> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:265298 Archived-At: * Óscar Fuentes [2021-02-17 05:21]: > So we need a mechanism for saying `foo-bar-command' belongs to > `foo-mode', but it is not specific of that mode. 1. A new variable can be introduced automatically when defining a mode, similarly how it is already done. 2. Package author OR user, could then just add function names as list items to that variable. 3. M-x and Emacs can then know that specific commands belong to foo-mode.