From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: A widget-based version of find-cmd Date: Tue, 04 Jun 2019 00:53:28 +0200 Message-ID: <871s0ap9g7.fsf@web.de> References: <87v9xrfjyj.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="161608"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 04 00:59:35 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXvvS-000fvM-NL for ged-emacs-devel@m.gmane.org; Tue, 04 Jun 2019 00:59:34 +0200 Original-Received: from localhost ([127.0.0.1]:42033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXvvR-0007CS-P3 for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2019 18:59:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXvuq-0007C9-CL for emacs-devel@gnu.org; Mon, 03 Jun 2019 18:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXvup-00085E-Ak for emacs-devel@gnu.org; Mon, 03 Jun 2019 18:58:56 -0400 Original-Received: from mout.web.de ([212.227.15.4]:41847) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXvuo-00083N-Th for emacs-devel@gnu.org; Mon, 03 Jun 2019 18:58:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1559602730; bh=T2gweS6AIGdCIqIgkLa+bIB94FC515k6pwyV/MAVAWs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=C+8fj55k25znDh1qA9YwMOVXebv9ne/t2ared5EwTHpo3TXjlTKq2u1SkXyjmavgI JLPPnvJ0RB5bKQIJCbLjvwOMB0RBRxBi9/gnAqW5bMsyI6WmU6JHEnvPEv46ULULVY RpRnwvWWA6JLB+qDjEcXEggWG4DwSKBeouQ10Xak= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([188.110.143.34]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MgwSG-1hC1EX3vpg-00M7RV; Tue, 04 Jun 2019 00:53:30 +0200 In-Reply-To: (Drew Adams's message of "Mon, 3 Jun 2019 13:41:33 -0700 (PDT)") X-Provags-ID: V03:K1:wl2TKoAofbmGzjeaRx51AoF7Symxkd1+MJt5uZSwjP9ykpdLgPK oEvFEipcEr6jRSHbU6Kc5o7Lw73zQsqdu1ppycF6JgjpqvA80e26KhLHLwOBi/j9xlW5PFs T/c8lrciCKIL6z+YhGg7do30bJs1fnVuOycVDvgQ+Z2EItwQdT01y95F4gHaRD642W0MzZ4 doI5GRIDCPKcrhr5f0J0A== X-UI-Out-Filterresults: notjunk:1;V03:K0:6YezMwowwMs=:zGFFDm3uQNiBh/gUVrRhKw p2I5osFJYT3mEvLGxWQqrCiR0xw+HyYEoYO01cO80AIjCxzv1BMWpO9QALWiOqtUpF+LqqhpB oJTT+GfQcumdPeTAhS+me16CUENlqDVXd3yKYpttWpDzNMb/dUcfrWYS72RkXN7QXItw8zqbM ok4WuMdOfb5RmCcnpSpDCpJ5Gt5JB9EefMrfiG5ngEDWXcdEeV75SumgXGvdN/Eosq+AVoStw ADq57XSdgnCE6x5LyXITNDVYLGx5oSSmpu1eoxj8+Qm6qQkUcwuC8llLag/VsPjhyP/AIIBck WrG1/Z4MypdhFKxdYnAVezSq0lN8/JC9ejsesNaoCdn21T1VR9RF4V7l47Uim4ynum/WhM0At 8HGyeGYUZy/H7Dtx22jz8jZgm/mLDgT5cfpuGU7gcjThg2qYg4p8mVMTyAbtwB/8ggRKi2SN1 c9iZDp/ANT+WTg9p7/7ZJbXXB/LrmQU7weYkl2b17Lct3k5Y/hpzz6h2MZWP7/m5irrc7g48m +1cowvy8ggMXdh/GcHEynWyJeCQ8AH1OQuMYNmyaMfBb3T2wi8GHacf7/KsEofPavP7YTPi// u2XPHglwowAd0+6B4/vuClcGjlwStkSt4rxkpG5G948trCbRGgs60/1TeyNJno5LNlO76wlgx vAjSfMUHkEbRg5vzqme4WoNmdj1/swipApCbUYgNGZUNxEcyV31Y62KhBctA55+omCMXXAVnw TjG+Mx3MfVi9Lk1lTYVoAzQGO6Igo/7T5mP8JH/58ops1MoJM71kZCffPnxeBd0lDesjoLvv X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237233 Archived-At: Drew Adams writes: > One of the advantages of a dialog box in such contexts > is setting it and reusing it for multiple search actions > (interspersed with other, non-search actions). Currently it's only planned to let the buffers stay alive. I dunno if I can save a buffer showing arbitrary widgets? I guess I would have to create the widget view from an internal representation, preferably in the format of a "find" call or the s-exp format used by find-cmd. What I want to have is an export to these formats so that you can save the results in these forms. I guess the reverse should not be too hard. > In fact, that's about the only advantage I find for such a dialog box. Another advantage is that it can help you to remember what you have forgotten. I for example repeatedly forget that e.g. for -ctime n File's status was last changed n*24 hours ago. See the comments for -atime to under=E2=80=90 stand how rounding affe= cts the interpretation of file status change times. what I want is -n for less than n, e.g. -ctime -1 for "status changed since last day" but I tend to try with -ctime 1 and wonder why it fails until I remember that I need "-". With the widget based version I can force the user to think about the sign by making it mandatory (with a reasonable default). > > I think you're looking for the `lazy` widget. > > Or maybe just split it up, having part of it use `repeat'? `lazy' is perfect. AFAIU `repeat' won't do since the syntax of "find" is actually recursive, so there is no way to avoid recursive widgets. Thanks, Michael.