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#41633: Prompts incorrect for multi-occur and multi-isearch when using fido-mode Date: Wed, 30 Sep 2020 22:08:30 +0300 Message-ID: <87r1qjf6u1.fsf@mail.linkov.net> References: <877C203C-84D6-4093-AC35-160A9FFCDF2D@schwartzmeyer.com> <87zh9nn7os.fsf@gmail.com> <87eeqys8ol.fsf@mail.linkov.net> <87d0272vjw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17447"; 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: Andrew Schwartzmeyer , 41633@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 30 21:20:19 2020 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 1kNheF-0004Qr-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 21:20:19 +0200 Original-Received: from localhost ([::1]:58272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNheD-0002vH-TF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 15:20:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNhdz-0002s3-9x for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNhdy-00046j-Ve for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNhdy-0003Aj-Q9 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41633 X-GNU-PR-Package: emacs Original-Received: via spool by 41633-submit@debbugs.gnu.org id=B41633.160149358512149 (code B ref 41633); Wed, 30 Sep 2020 19:20:02 +0000 Original-Received: (at 41633) by debbugs.gnu.org; 30 Sep 2020 19:19:45 +0000 Original-Received: from localhost ([127.0.0.1]:33168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNhdg-00039n-VK for submit@debbugs.gnu.org; Wed, 30 Sep 2020 15:19:45 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:59933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNhdU-00038x-OV for 41633@debbugs.gnu.org; Wed, 30 Sep 2020 15:19:33 -0400 Original-Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id D2B01100009; Wed, 30 Sep 2020 19:19:24 +0000 (UTC) In-Reply-To: <87d0272vjw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 27 Sep 2020 15:33:55 +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:189423 Archived-At: >> Something like this is needed indeed, not too complicated. >> If it's not easy to just rephrase the prompt to avoid mentions of >> the key, then I suggest to display the string returned from >> >> (substitute-command-keys "(\\[exit-minibuffer] to end): ") >> >> called in the minibuffer. > > Here's a stupid question -- how do you do that? :-) I looked around for > a primitive to eval something in the minibuffer, but I can't find one. Sorry, I meant just (substitute-command-keys "(\\\\[icomplete-fido-exit] to end): ") => "(M-j to end): " not necessarily called in the minibuffer, but with the minibuffer's keymap. A more complex solution like proposed by Joćo would be to set a certain property set on a command's symbol that exits the minibuffer. But maybe 'cond' in Andrew's path with an additional substitute-command-keys (for the case when the user remaps the default keys) is fine.