From: "Drew Adams" <drew.adams@oracle.com>
Cc: bug-gnu-emacs@gnu.org
Subject: RE: dired-sort-toggle-or-edit and point on first file
Date: Sun, 29 Jan 2006 07:56:28 -0800 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICAEPKDBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <87oe1x1gqe.fsf@jidanni.org>
s runs the command dired-sort-toggle-or-edit
Toggle between sort by date/name and refresh the dired buffer.
Nice, but when we hit it we don't stay at the top of the list, but are
sent tumbling below, cursor glued to that former (often) first file.
Yes, a feature I know, but no way offered to start afresh at top
without adding stuff to ~/.emacs.
As you say, this is not a bug - it is by design. But perhaps the design
could be improved (made more flexible).
I must admit that I too have been annoyed by this. I've grown used to it, so
I work around it in various ways unconsciously.
The design is to permit the current line to stay in view, and that makes
sense in many contexts - in particular, if you have inserted subdirectories.
However, sorting the directory listing is an operation on the whole listing,
not on an individual entry, and there are other contexts (or work habits) in
which it makes more sense to redisplay the listing starting at the top.
I think it would be good if this behavior were configurable. Personally, I
usually do not care about keeping the current line in view; I prefer to see
the top of the listing.
(Follow-ups should go to emacs-devel, not bug-gnu-emacs, since this is a
design issue, not a bug.)
next prev parent reply other threads:[~2006-01-29 15:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-27 21:52 dired-sort-toggle-or-edit and point on first file Dan Jacobson
2006-01-29 15:56 ` Drew Adams [this message]
2006-01-31 19:38 ` Kevin Rodgers
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=DNEMKBNJBGPAOPIJOOICAEPKDBAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=bug-gnu-emacs@gnu.org \
/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.