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#55800: using rgrep function interactively with fido-mode or fido-vertical-mode causes errors Date: Sun, 05 Jun 2022 16:02:46 +0300 Message-ID: <83fskj9sax.fsf@gnu.org> References: <83wndvack5.fsf@gnu.org> <83pmjna1di.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9086"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55800@debbugs.gnu.org To: Yilkal Argaw Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 05 15:04:18 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 1nxpvV-0002AQ-II for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 15:04:17 +0200 Original-Received: from localhost ([::1]:36200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxpvU-0005GB-2j for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 09:04:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxpvH-0005G1-UH for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 09:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxpvH-000789-LD for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 09:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxpvG-0006Nu-Gf for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 09:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 13:04: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.165443418824484 (code B ref 55800); Sun, 05 Jun 2022 13:04:02 +0000 Original-Received: (at 55800) by debbugs.gnu.org; 5 Jun 2022 13:03:08 +0000 Original-Received: from localhost ([127.0.0.1]:60267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxpuN-0006Mq-TQ for submit@debbugs.gnu.org; Sun, 05 Jun 2022 09:03:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxpuL-0006ML-9s for 55800@debbugs.gnu.org; Sun, 05 Jun 2022 09:03:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxpuG-0006wP-0F; Sun, 05 Jun 2022 09:03:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qUIhPrZsk1KxiLgv/IB4iB+1cbuTUUqx80nWypcuXJQ=; b=Zg8OE9EiOiEF T/QgLYviW3q2Hf5gFhZTR+KhhhN/zXWU0QILOSF3aCH4IZBOQ0isp0FiTCBAo1MwwR/g3CwqPx6FJ 7Mv8Z0qr1FWdnqSIaimEkfj/faFOSGfXC6nLOlkhURiI7yqiDeWfJbbfDK/wL5SmSZ7Rxr59hC6Dc 1gf4bIN6+R8qDh87uXa3q3PxSbfMQWuwGI8GSM8U7XV5VLQRNvQqHbJdt/JAPxIqXp94f48pxH575 iW2Q6QsuJppPyHAbITaJ7qZ/uQqxyeZGJD8vVO2EdYk8kcAKXxO2ZSBW5Y+cndVt08XHhNEWRRr6T 7uvVtosJ0nXX8Mdy1RuPHQ==; Original-Received: from [87.69.77.57] (port=4564 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 1nxpuF-0000Pq-Ji; Sun, 05 Jun 2022 09:02:59 -0400 In-Reply-To: (message from Yilkal Argaw on Sun, 5 Jun 2022 15:36:37 +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:233706 Archived-At: [Please use Reply All to keep the discussion recorded by the bug tracker.] > From: Yilkal Argaw > Date: Sun, 5 Jun 2022 15:36:37 +0300 > > > from:Eli Zaretskii > > to:Yilkal Argaw > > cc:55800@debbugs.gnu.org > > date:Jun 5, 2022, 12:47 PM > > > > The problem seems to be in grep-read-files, when fido-mode is used: > > the prompt says "default all", but fido understands RET as selecting > > the currently-highlighted candidate, which happens to be "./" -- and > > that, of course, makes no sense as an argument to "-name". > > Why does the completion even show file names? In counsel-rg which > is a command that does similar thing from in the counsel package,the > second step shows file extension types like c,cpp,el. Can the behaviour > of the behaviour be modified to show such completion options. The completion shows file names because the code calls read-file-name-internal. Try the same without fido, and at the prompt for the wildcard type '?' -- you will see a list of files. That's what fido shows. Why that code calls read-file-name-internal, I don't know; perhaps because it wants to support the use case of searching a single file or files in a directory?