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#46884: [PATCH] 27.1; Cannot run find-dired with -maxdepth Date: Thu, 04 Mar 2021 15:53:50 +0200 Message-ID: <831rcvja8h.fsf@gnu.org> References: <83k0qo699n.fsf@gnu.org> <83ft1c62hk.fsf@gnu.org> <80ft1bed4g.fsf@felesatra.moe> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17514"; mail-complaints-to="usenet@ciao.gmane.io" 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 14:55:40 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 1lHoS4-0004Sg-Az for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 14:55:40 +0100 Original-Received: from localhost ([::1]:47020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHoS3-0003UG-CK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 08:55:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHoRS-0003D8-Fi for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 08:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHoRS-0008Mg-6i for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 08:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHoRS-0005Ej-4J for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 08:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Mar 2021 13:55: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.161486605720063 (code B ref 46884); Thu, 04 Mar 2021 13:55:02 +0000 Original-Received: (at 46884) by debbugs.gnu.org; 4 Mar 2021 13:54:17 +0000 Original-Received: from localhost ([127.0.0.1]:58156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHoQj-0005DX-0P for submit@debbugs.gnu.org; Thu, 04 Mar 2021 08:54:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHoQg-0005DJ-SL for 46884@debbugs.gnu.org; Thu, 04 Mar 2021 08:54:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59557) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHoQb-0007xi-A6; Thu, 04 Mar 2021 08:54:09 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1549 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lHoQY-0003Bk-RA; Thu, 04 Mar 2021 08:54:08 -0500 In-Reply-To: <80ft1bed4g.fsf@felesatra.moe> (message from Allen Li on 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:201394 Archived-At: > From: Allen Li > Cc: 46884@debbugs.gnu.org > Date: Wed, 03 Mar 2021 20:50:23 -0800 > > Eli Zaretskii writes: > >> From: Allen Li > >> > >> This is okay, IMO, but it would be better to allow the user to specify > >> GLOBAL-ARGS interactively if the user invokes the command with a > >> prefix argument. > >> > >> How would that interact with find-args-history? > > > > Sorry, I don't understand the question. What does prefix arg have to > > do with history? Maybe I'm missing something. > > Currently, `find-dired' stores the `completing-read' history for `args' in > `find-args-history'. It also stores the value for `args' in `find-args' > to use as the default for the next `find-dired' interactive call. > > If we were to make `global-args' accessible interactively, how would the > history for it be stored? Just take what the user types for global-args and add it to the history, I'd say. I think this would solve all the problems you mention. Or what am I missing?