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#52384: [External] : bug#52384: 26.3; dired buffer navigation tweak Date: Sun, 12 Dec 2021 20:52:10 +0200 Organization: LINKOV.NET Message-ID: <86czm1k65h.fsf@mail.linkov.net> References: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> <86y24rlylf.fsf@mail.linkov.net> <86zgp68c8j.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="2371"; 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: Michael Perry , Stefan Kangas , Arthur Miller , "52384@debbugs.gnu.org" <52384@debbugs.gnu.org> To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 12 19:57:18 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 1mwU29-0000Od-4s for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 19:57:17 +0100 Original-Received: from localhost ([::1]:38386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwU27-0000Fl-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 13:57:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwU1v-0000E0-Am for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 13:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwU1v-0007Se-2x for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 13:57:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwU1v-0004ND-1y for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 13:57:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Dec 2021 18:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52384 X-GNU-PR-Package: emacs Original-Received: via spool by 52384-submit@debbugs.gnu.org id=B52384.163933537216720 (code B ref 52384); Sun, 12 Dec 2021 18:57:03 +0000 Original-Received: (at 52384) by debbugs.gnu.org; 12 Dec 2021 18:56:12 +0000 Original-Received: from localhost ([127.0.0.1]:53136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwU15-0004Lb-Ot for submit@debbugs.gnu.org; Sun, 12 Dec 2021 13:56:12 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:57405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwU12-0004L7-Vi for 52384@debbugs.gnu.org; Sun, 12 Dec 2021 13:56:11 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 92DC66000B; Sun, 12 Dec 2021 18:55:59 +0000 (UTC) In-Reply-To: (Drew Adams's message of "Sun, 12 Dec 2021 18:35:22 +0000") 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:222252 Archived-At: >> >> > (The Dired+ versions of these commands wrap >> >> > around, if option `diredp-wrap-around-flag' >> >> > has its default value of `t'.) >> >> >> >> Yet another feature I had already implemented >> >> since Emacs 21.1 and sent to you for review in 2007. >> > >> > Interesting. Or is that tongue in cheek? >> > >> > I just searched all messages I've received from >> > you, including those in 2007, from mailing lists >> > and direct mails, and I don't find any such >> > suggestion or review request. Could you point >> > to it - I'm curious. I expect that if that were >> > the case I would most likely have added it to >> > Dired+ long before I did (which was not until >> > July 12, 2013). >> >> I don't remember exactly, but the closest is in the >> thread "TAB for non-editing modes" on emacs-devel >> with the discussion about using TAB in dired >> to move between directories. When TAB/S-TAB will go >> to the next/previous directory, then `<' and `>' >> will be free to use for going to the first/last file. > > This is that thread: > > https://lists.gnu.org/archive/html/emacs-devel/2007-09/msg01976.html > > I see nothing there that resembles anything like an > implementation of wraparound navigation for Dired, > let alone a request by you to review that. I don't > even find any suggestion that such wraparound be > added to Dired. I see nothing even vaguely related > to a suggestion about wraparound navigation. > > Checking your and my posts (and others) in that > thread, I find nothing about any of this. Could > you point to the message(s) you're referring to? > A URL would be good. Strange, I have a message in the archive from 24 Sep, but it doesn't exist on the thread that you posted. > More importantly, `<' and `>' going to the first > and last file, respectively, has nothing to do with > wraparound. So if that's what you suggested or > implemented, it's something else entirely. I suggested to use TAB that goes to the next file and wraps around at boundaries. Then '>' could be reused to go to the last file. >> >> But I don't use it too much because it's not >> >> so useful with --group-directories-first >> >> that really should be the default. >> > >> > I have that as default for my own use. But I >> > often change sort orders, especially for date. >> >> When you change sort orders, directories still >> remain at the top? So first are directories >> sorted by date, then below files sorted by date? > > For my own use, I use non-nil `ls-lisp-dirs-first', > so directories remain listed first. (But I use > `emacs -Q` for some testing and some bug filing.) > > When `ls-lisp-dirs-first' is non-nil, dirs are > listed first. And yes, their order changes when > sorting is by date vs name, or some other order. > But as a group, yes, they remain listed first, > before ordinary files, within any given dir > listing. > > The point is that it can be useful to sometimes > see some or all dir lines interspersed with > ordinary-file lines. > > Again, a classic example is when subdir listings > are inserted: Directory lines in those listings > are separated from those of the main listing and > from those of other subdir listings. `>' and > `<' let you move among consecutive dir lines > throughout the buffer. > > `<' and `>' have their own raisons d'etre. They > are not the same as `p' and `n'. (And yes, it > makes sense for both >/< and n/p to optionally > wrap around.) Maybe then like there is a user option `ls-lisp-dirs-first' for ls-lisp.el, a similar option should be added to dired as well, so users won't need to manually add "--group-directories-first" to `dired-listing-switches'. Do you agree?