From: Drew Adams <drew.adams@oracle.com>
To: Michael Heerdegen <michael_heerdegen@web.de>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: revert-buffer in dired
Date: Mon, 23 Dec 2024 22:02:12 +0000 [thread overview]
Message-ID: <DS7PR10MB5232465DC4A7E05F5CB17EB3F3022@DS7PR10MB5232.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87ikraoz8t.fsf@web.de>
> I wrote a note to the bug report where this change had been discussed -
> you are CC'd.
That note is here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74700#34
I see from your note there that the OP here wasn't
complaining that the cursor position changes to
the beginning of the file name, on the same line;
OP here was saying that it changes to the _buffer_
beginning (bob). That indeed sounds like a bug.
FWIW, my code in Dired+ doesn't have that problem.
It puts the cursor on the same line as it was, but
at the beginning of the file name (like ordinary
reverting in Dired).
> > 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.
Yes.
prev parent reply other threads:[~2024-12-23 22:02 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
2024-12-23 22:02 ` Drew Adams [this message]
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=DS7PR10MB5232465DC4A7E05F5CB17EB3F3022@DS7PR10MB5232.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=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.
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.