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.bugs Subject: bug#60645: 30.0.50; interactive MODES not detected properly Date: Sun, 08 Jan 2023 11:15:42 +0200 Message-ID: <83fsclqtdt.fsf@gnu.org> References: 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="6011"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60645@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 08 10:16:15 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 1pERmo-0001P8-QJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Jan 2023 10:16:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pERmf-0004YA-4W; Sun, 08 Jan 2023 04:16:05 -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 1pERmd-0004Y1-EA for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 04:16: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 1pERmc-0008OG-Cj for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 04:16:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pERmc-0001Yp-1g for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 04:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2023 09:16: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.16731693285950 (code B ref 60645); Sun, 08 Jan 2023 09:16:02 +0000 Original-Received: (at 60645) by debbugs.gnu.org; 8 Jan 2023 09:15:28 +0000 Original-Received: from localhost ([127.0.0.1]:59843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pERm4-0001Xu-9V for submit@debbugs.gnu.org; Sun, 08 Jan 2023 04:15:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pERm2-0001Xi-KS for 60645@debbugs.gnu.org; Sun, 08 Jan 2023 04:15:27 -0500 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 1pERlw-00087C-Sr; Sun, 08 Jan 2023 04:15:20 -0500 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=pG6TF74qbiCTFIN3AQZvLE5spRUbTU1/OTD0YUHTstI=; b=LcGdGnEHRCthnp33eZps 7o5Q7pP67kuumkDeBJ+C17LX/dm9fDsDQes3zX8FpgtS0cHX6cbtlbnDbLF/6wptjlWfzknyVzf1M MeTfUtLCR0DfI9Jdp3MDjxavZeEQ9wb7TteFFuQrN45uQSnh4NbbefXCvqcjKtGVntQ1iG6flsOdN cvQJ9qSGGzBLIXnSrIrH/TizZWE1iPENHwkpcZ1QrKR7FTVADo26y+NWdnomdYk8PXciFVlKfmCk8 hRgXny9PbSrIU3yDqYoBeKtEiwsWH1WVnDgp8ah9Td4Hva6TafiJm5wQRbjmv6r8kTfRiGdwuOyUV hZMelg7b5uX6gw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pERlw-00023r-3Q; Sun, 08 Jan 2023 04:15:20 -0500 In-Reply-To: (message from Jean Louis on Sun, 08 Jan 2023 09:19:35 +0300) 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:252887 Archived-At: > Date: Sun, 08 Jan 2023 09:19:35 +0300 > From: Jean Louis > > > * Eli Zaretskii [2023-01-08 09:07]: > > > And I expect not to see it. > > > > > > What am I doing wrong? > > > > The doc string is wrong: the default is to show all commands. If you > > want to see only those relevant to MODES, either use M-X (upper-case > > X) or customize read-extended-command-predicate's value to be the > > function command-completion-default-include-p. > > Now we know that there is some inconsistency, thanks for confirming > it. > > For this function: > > (defun my-function () > (interactive nil '(text-mode mail-mode)) > (message "Hello")) > > major-mode ➜ mail-mode > > My default was: > (setq read-extended-command-predicate nil) > > - I can see 90 possible completions with M-X in mail-mode, WITHOUT `my-function' > > - I can see 9819 possible completions with M-x in mail-mode, WITH `my-function' > > when I turn it on: > > (setq read-extended-command-predicate 'command-completion-default-include-p) > > - I can see 90 possible completions with M-X in mail-mode, WITHOUT `my-function' > > - I can see 9819 possible completions with M-x in mail-mode, WITHOUT `my-function' > > Which means that my function cannot be found with recommended > settings in mail-mode, so there must be more inconsistencies. Maybe one of the inconsistencies is your expectations. What did you expect to happen in each case, and why?