From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9923: 24.0.91; `where-is' does not find recentf menu items (cmds, not files) Date: Tue, 31 Aug 2021 09:41:57 +0300 Organization: LINKOV.NET Message-ID: <87v93mazvm.fsf@mail.linkov.net> References: <76FA3F83D086455EAA01FF0FB000FCDB@us.oracle.com> <871r6hk99k.fsf@gnus.org> <87bl5k2ug1.fsf@gnus.org> <87czpwb4gw.fsf@mail.linkov.net> <87y28kf5sn.fsf@gnus.org> <87r1ebz98c.fsf@mail.linkov.net> <875yvm8oqk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27164"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 9923@debbugs.gnu.org, Stefan Monnier To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 31 09:12:25 2021 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 1mKxwX-0006sP-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 09:12:25 +0200 Original-Received: from localhost ([::1]:52828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKxwV-0007m4-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 03:12:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKxwB-0007lV-Nk for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 03:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKxwB-0001YC-G4 for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 03:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKxwB-0004rF-Bx for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 03:12:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Aug 2021 07:12:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 9923-submit@debbugs.gnu.org id=B9923.163039386318541 (code B ref 9923); Tue, 31 Aug 2021 07:12:03 +0000 Original-Received: (at 9923) by debbugs.gnu.org; 31 Aug 2021 07:11:03 +0000 Original-Received: from localhost ([127.0.0.1]:32780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKxvC-0004oz-Od for submit@debbugs.gnu.org; Tue, 31 Aug 2021 03:11:02 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:39749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKxv8-0004oP-VR for 9923@debbugs.gnu.org; Tue, 31 Aug 2021 03:11:01 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 95505240013; Tue, 31 Aug 2021 07:10:50 +0000 (UTC) In-Reply-To: <875yvm8oqk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 31 Aug 2021 02:03:15 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:213081 Archived-At: --=-=-= Content-Type: text/plain >> This patch fixes the error, but still e.g. in Info buffer >> typing 'C-h m q' moves point in the Info buffer to some fixed position >> (maybe related to a position in *Help* buffer), i.e. still something is wrong. > > Hm... it doesn't seem like anything in `context-menu-map' should be > moving point (unless there's a bug in some of those functions it's > calling, which is possible)... Actually, this was caused by thing-at-mouse that uses mouse-set-point in bug#50256 (a detailed description added in bug#50256). But regarding this bug#9923, and the question about avoiding :filter evaluation for context menus - since the context menu is bound to 'ignore': `(menu-item ,(purecopy "Context Menu") ignore :filter (lambda (_) (context-menu-map))) does it make sense to ignore 'ignore' like in this patch? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=help-fns--list-local-commands-ignore.patch diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 2c7956d968..85f305617d 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -1898,6 +1898,8 @@ help-fns--list-local-commands (mapatoms (lambda (sym) (when (and (commandp sym) + ;; Ignore 'ignore'. + (not (eq sym 'ignore)) ;; Ignore aliases. (not (symbolp (symbol-function sym))) ;; Ignore everything bound. --=-=-=--