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#46884: [PATCH] 27.1; Cannot run find-dired with -maxdepth Date: Thu, 04 Mar 2021 11:35:18 +0200 Organization: LINKOV.NET Message-ID: <87r1kv8dnt.fsf@mail.linkov.net> References: <83k0qo699n.fsf@gnu.org> <83ft1c62hk.fsf@gnu.org> <80ft1bed4g.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21376"; 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: 46884@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 04 11:18:47 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 1lHl4B-0005T0-4F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 11:18:47 +0100 Original-Received: from localhost ([::1]:59666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHl4A-0005rp-69 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 05:18:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHl2W-0003Ky-8C for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 05:17:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHl2U-0001pu-Pt for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 05:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHl2U-0007nJ-LK for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 05:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Mar 2021 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46884 X-GNU-PR-Package: emacs Original-Received: via spool by 46884-submit@debbugs.gnu.org id=B46884.161485298829887 (code B ref 46884); Thu, 04 Mar 2021 10:17:02 +0000 Original-Received: (at 46884) by debbugs.gnu.org; 4 Mar 2021 10:16:28 +0000 Original-Received: from localhost ([127.0.0.1]:57778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHl1w-0007lz-09 for submit@debbugs.gnu.org; Thu, 04 Mar 2021 05:16:28 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHl1u-0007lQ-Si for 46884@debbugs.gnu.org; Thu, 04 Mar 2021 05:16:27 -0500 X-Originating-IP: 91.129.96.116 Original-Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9C2EEE000C; Thu, 4 Mar 2021 10:16:19 +0000 (UTC) In-Reply-To: <80ft1bed4g.fsf@felesatra.moe> (Allen Li's message of "Wed, 03 Mar 2021 20:50:23 -0800") 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:201372 Archived-At: > Second, if the user mistakenly omits the C-u, then they might run a > previous command without the global-args that were supplied. > > Consider if the user runs find-dired like so: > > C-u M-x find-dired RET > some/dir RET > -some -query RET > -maxdepth 3 RET > > Then the user wants to repeat the query for another directory: > > M-x find-dired RET > other/dir RET > M-p RET ; get previous input, M-p can be omitted since there's a default > > Because the user didn't supply the C-u, the "-maxdepth 3" is omitted. > Even though it was the user's intent to repeat the last query, the user > is now running a fundamentally different query. Again, this is a poor > user experience. Shouldn't it be compatible with 'rgrep', so 'C-u M-x find-dired' will read the whole constructed command line where the user can add more args, and 'C-u C-u M-x find-dired' will rerun the same command in another directory.