all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: Michael Heerdegen <michael_heerdegen@web.de>, 29513@debbugs.gnu.org
Subject: bug#29513: 25.2; find-dired-centinel
Date: Fri, 1 Dec 2017 11:48:34 -0600	[thread overview]
Message-ID: <38386.76649.232989.23073@gargle.gargle.HOWL> (raw)
In-Reply-To: <11f379e3-0125-4c3a-9980-a38b9078cb88@default>

On Fri Dec 1 2017 Drew Adams wrote:
> > If we do this - wouldn't supporting other sort predicates also make
> > sense (e.g. sort by last change time)?
> 
> My thought exactly.  Pretty much anywhere we sort stuff
> it makes sense to ask ourselves whether it might be
> good to let users specify the sort predicate/order.

Fine with me, I'd be happy to be able to use such a feature.
The only question is how to achieve that.  The point is that (as far
as I understand these things) something like dired-sort-toggle-or-edit
ultimately relies on the shell command ls to sort its output.

Sorting the output of find by predicates such as last change time
requires to parse its output more carefully.  I believe that
currently dired's parsing capabilities are restricted to identifying
the file name, and my patch for find-dired-sentinel relies on that.

In other words, other predicates require somewhat more work than my
patch.

(All this reminds me of when I wrote proced.el years ago.  Initially
this code relied on the shell command ps that comes with zillions of
flavors on different OSs, which made the code rather fragile.
Things got much cleaner when Eli wrote the built-ins
list-system-processes and process-attributes (thank you Eli!!).  But
I expect that we do not want to re-invent the shell command find for
Emacs.  -- Phrased differently: I do not know how many flavors of
find we may have to cover to sort its output by predicates such as
last change time.)





  reply	other threads:[~2017-12-01 17:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-01  0:50 bug#29513: 25.2; find-dired-centinel Roland Winkler
2017-12-01  7:48 ` Eli Zaretskii
2017-12-01 16:28   ` Roland Winkler
2017-12-01 19:38     ` Eli Zaretskii
2017-12-01 20:05       ` Roland Winkler
2019-06-11 21:15         ` Roland Winkler
2017-12-01  8:09 ` Michael Heerdegen
2017-12-01 15:26   ` Drew Adams
2017-12-01 17:48     ` Roland Winkler [this message]
2017-12-01 20:04       ` Eli Zaretskii
2017-12-01 20:16         ` Roland Winkler
2017-12-01 20:27           ` Eli Zaretskii
     [not found] ` <handler.29513.D29513.156028776529426.notifdone@debbugs.gnu.org>
2019-06-11 22:21   ` Noam Postavsky
2019-06-12  3:25     ` Roland Winkler
2019-06-12 10:35       ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38386.76649.232989.23073@gargle.gargle.HOWL \
    --to=winkler@gnu.org \
    --cc=29513@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.