help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: revert-buffer in dired


From: Drew Adams
Subject: RE: [External] : Re: revert-buffer in dired
Date: Mon, 23 Dec 2024 22:02:12 +0000

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]