unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: revert-buffer in dired
Date: Mon, 23 Dec 2024 22:39:30 +0100	[thread overview]
Message-ID: <87ikraoz8t.fsf@web.de> (raw)
In-Reply-To: rie1pxy9y2o.fsf@faulbaum.in-berlin.de

Dieter Faulbaum <mail@faulbaum.in-berlin.de> writes:

> I think, it would be nice, if the newly introduced:
>
> *** Clicking on base name of directory reverts buffer.
> When 'dired-make-directory-clickable' is non-nil, clicking on the base
> name of the directory now reverts the Dired buffer.
>
> should not change the position of the cursor.
> Is this possible?

I wrote a note to the bug report where this change had been discussed -
you are CC'd.

> The 'revert-buffer' in dired also changes the position of the cursor
> (to the filename of the "actual" line).
> What is the idea of this?

Dired saves a lot of information to restore for reverting.  Since the
file name point is on can appear on a different line after reverting, we save
the file name and, I think, don't care about the position to a finer
degree since it is not really relevant for the sake of dired commands.


Michael.




  parent reply	other threads:[~2024-12-23 21:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-23 16:13 revert-buffer in dired Dieter Faulbaum
2024-12-23 16:39 ` [External] : " Drew Adams
2024-12-24  9:34   ` Dieter Faulbaum
2024-12-23 21:39 ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]
2024-12-23 22:02   ` [External] : " Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ikraoz8t.fsf@web.de \
    --to=help-gnu-emacs@gnu.org \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).