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: Sun, 29 Aug 2021 19:48:15 +0300 Message-ID: <87czpwb4gw.fsf@mail.linkov.net> References: <76FA3F83D086455EAA01FF0FB000FCDB@us.oracle.com> <871r6hk99k.fsf@gnus.org> <87bl5k2ug1.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32648"; 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 Sun Aug 29 18:57:18 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 1mKO7L-00084T-0R for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Aug 2021 18:57:11 +0200 Original-Received: from localhost ([::1]:38968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKO7J-0005Js-0l for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Aug 2021 12:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKO6F-0003I2-SS for bug-gnu-emacs@gnu.org; Sun, 29 Aug 2021 12:56:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKO6F-0000bD-LF for bug-gnu-emacs@gnu.org; Sun, 29 Aug 2021 12:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKO6F-0003Rm-Fm for bug-gnu-emacs@gnu.org; Sun, 29 Aug 2021 12:56: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: Sun, 29 Aug 2021 16:56: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.163025611813136 (code B ref 9923); Sun, 29 Aug 2021 16:56:03 +0000 Original-Received: (at 9923) by debbugs.gnu.org; 29 Aug 2021 16:55:18 +0000 Original-Received: from localhost ([127.0.0.1]:57275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKO5W-0003Po-58 for submit@debbugs.gnu.org; Sun, 29 Aug 2021 12:55:18 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:57831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKO5R-0003PG-06 for 9923@debbugs.gnu.org; Sun, 29 Aug 2021 12:55:13 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 703E620005; Sun, 29 Aug 2021 16:55:04 +0000 (UTC) In-Reply-To: <87bl5k2ug1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 26 Aug 2021 15:42:54 +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:212940 Archived-At: > I'm wondering whether where-is could go at this the opposite direction. > I mean, the menu system knows how to expand all this stuff... so... > could we ask it to do that, and then look at the results of that instead > of parsing the keymap ourselves in where-is? Another question: is it possible not to evaluate :filter in where-is as all? Yesterday I added to context-menu-map such lines: (let ((fun (mouse-posn-property (event-start last-input-event) 'context-menu-function))) but now noticed that after typing 'C-h m' it fails with: Debugger entered--Lisp error: (args-out-of-range 1786) mouse-posn-property((# 1786 (0 . 0) 0) context-menu-function) context-menu-map() (lambda (_) (context-menu-map))(ignore) where-is-internal(ignore nil t) #f(compiled-function (sym) #)(ignore) help-fns--list-local-commands() describe-mode() funcall-interactively(describe-mode) command-execute(describe-mode) because context-menu functions are called from where-is-internal without a mouse click. Some time ago I already tried to workaround this problem in help-mode-context-menu with: (when (and ;; First check if `help-fns--list-local-commands' ;; used `where-is-internal' to call this function ;; with wrong `last-input-event'. (eq (current-buffer) (window-buffer (posn-window (event-start last-input-event)))) (mouse-posn-property (event-start last-input-event) 'mouse-face)) And now it reared its ugly head again.