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#55800: using rgrep function interactively with fido-mode or fido-vertical-mode causes errors Date: Fri, 10 Jun 2022 10:58:05 +0300 Organization: LINKOV.NET Message-ID: <86ilp8di8q.fsf@mail.linkov.net> References: <83wndvack5.fsf@gnu.org> <83pmjna1di.fsf@gnu.org> <83fskj9sax.fsf@gnu.org> <86zginli36.fsf@mail.linkov.net> <86y1y5bvpc.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36772"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 55800@debbugs.gnu.org, Eli Zaretskii To: Yilkal Argaw Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 10 11:59:46 2022 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 1nzbQf-0009QZ-1W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 11:59:45 +0200 Original-Received: from localhost ([::1]:46086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzbQd-0004YG-SP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 05:59:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzaGO-0007Sb-Rt for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2022 04:45:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzaGM-0004Xy-KT for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2022 04:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzaGM-0003Xx-I3 for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2022 04:45: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: Fri, 10 Jun 2022 08:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55800 X-GNU-PR-Package: emacs Original-Received: via spool by 55800-submit@debbugs.gnu.org id=B55800.165485068613598 (code B ref 55800); Fri, 10 Jun 2022 08:45:02 +0000 Original-Received: (at 55800) by debbugs.gnu.org; 10 Jun 2022 08:44:46 +0000 Original-Received: from localhost ([127.0.0.1]:48661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaG6-0003XB-Aj for submit@debbugs.gnu.org; Fri, 10 Jun 2022 04:44:46 -0400 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:33321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzaFz-0003WU-8K for 55800@debbugs.gnu.org; Fri, 10 Jun 2022 04:44:39 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id DC4B5200006; Fri, 10 Jun 2022 08:44:31 +0000 (UTC) In-Reply-To: (Yilkal Argaw's message of "Fri, 10 Jun 2022 06:34: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" Xref: news.gmane.io gmane.emacs.bugs:234194 Archived-At: >> This is what it already does: for example, when the current file >> is in Emacs Lisp mode, then the default is: (default *.el) > > If this is an intended behaviour that is considered to be intuitive then > sorry about the bug report. I was used to how things like the rg package > worked and that might have been my fault. Actually I don't know the intended behaviour of fido-mode, so your bug report is a valid request to find the source of the problem. If fido-mode works as intended, then rgrep could be fixed. > Again it might be my fault but I don't get the "man" example. Doing > all what you said and using M-x man only presented a single prompt > and that prompt had the word under cursor as the default value. If I > typed nothing the word under cursor(which is displayed in the prompt) > is chosen as the default but if I typed something it searches the man > page for that word. I see no highlighting of candidates there. It looks like your M-x man doesn't find available manual names, so we need to find a better example. Here is a plain call that exposes the problem: (completing-read (format-prompt "Prompt" "default") '("a" "b" "c") nil nil nil nil "default") Without fido-vertical-mode, typing RET returns "default". With fido-vertical-mode, typing RET returns "a". So maybe fido-mode could be fixed to always provide the default value as the first highlighted candidate? Then RET will select it.