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.bugs Subject: bug#60645: 30.0.50; interactive MODES not detected properly Date: Sun, 8 Jan 2023 14:26:18 +0300 Message-ID: References: <83fsclqtdt.fsf@gnu.org> 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="3508"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Cc: 60645@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 08 12:49:16 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pEUAu-0000g6-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Jan 2023 12:49:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEUAl-0006q2-0C; Sun, 08 Jan 2023 06:49:07 -0500 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 1pEUAh-0006pQ-D9 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 06:49:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEUAh-0008Mi-05 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 06:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEUAg-0005pc-Nj for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 06:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2023 11:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60645 X-GNU-PR-Package: emacs Original-Received: via spool by 60645-submit@debbugs.gnu.org id=B60645.167317849522327 (code B ref 60645); Sun, 08 Jan 2023 11:49:02 +0000 Original-Received: (at 60645) by debbugs.gnu.org; 8 Jan 2023 11:48:15 +0000 Original-Received: from localhost ([127.0.0.1]:60064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEU9v-0005o1-7K for submit@debbugs.gnu.org; Sun, 08 Jan 2023 06:48:15 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:52485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEU9t-0005nK-33 for 60645@debbugs.gnu.org; Sun, 08 Jan 2023 06:48:13 -0500 Original-Received: from localhost ([::ffff:197.239.14.179]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D58.0000000063BAAD7F.00001DA2; Sun, 08 Jan 2023 04:48:15 -0700 Content-Disposition: inline In-Reply-To: <83fsclqtdt.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252911 Archived-At: * Eli Zaretskii [2023-01-08 12:15]: > Maybe one of the inconsistencies is your expectations. What did you > expect to happen in each case, and why? For this function: (defun my-function () (interactive nil '(text-mode mail-mode)) (message "Hello")) > 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. I expect that M-x TAB shows it in this mail-mode, but it does not show it this time. That is one of expectations, among several. In general, I would like to setup functions NOT to show in modes where they should not be shown. I feel this function does not work. If you have working example, show me. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/