all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Manuel Giraud <manuel@ledu-giraud.fr>
Cc: basil@contovou.net, 71264@debbugs.gnu.org
Subject: bug#71264: 30.0.50; Dired deletion moves point under auto-revert
Date: Tue, 04 Jun 2024 17:26:50 +0300	[thread overview]
Message-ID: <867cf4lr6d.fsf@gnu.org> (raw)
In-Reply-To: <87wmn5vlsg.fsf@ledu-giraud.fr> (message from Manuel Giraud on Mon, 03 Jun 2024 22:00:47 +0200)

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: basil@contovou.net,  71264@debbugs.gnu.org
> Date: Mon, 03 Jun 2024 22:00:47 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> [...]
> 
> >> This I'm not sure and I have to check.  But it seems that dired keeps
> >> the information of « what is the current file name » and go there after
> >> having reverted the content.  If it is not found, the point stays at
> >> BOB.
> >
> > So how does Dired DTRT when you simply delete a file at point?  Why
> > doesn't it go to BOB in that case?
> 
> Because the dired buffer is not reverted (it does not re-read the ls
> output in this case).  If I'm not mistaken, this takes place in
> `dired-remove-entry' which removes the buffer line of the file that was
> just deleted.

AFAIR, when the Dired buffer is reverted, Dired attempts to preserve
important information, like markers etc.  So I think the problem could
be that the revert happens before Dired had time to record that
information, in which case rearranging some code should be a way
forward.





  reply	other threads:[~2024-06-04 14:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-29 21:48 bug#71264: 30.0.50; Dired deletion moves point under auto-revert Basil L. Contovounesios
2024-05-31  9:29 ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-31  9:42   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-31 12:10     ` Basil L. Contovounesios
2024-05-31 12:54       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-31 15:48         ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-01 17:19       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-01 17:59         ` Eli Zaretskii
2024-06-02 14:59           ` Basil L. Contovounesios
2024-06-02 15:23             ` Eli Zaretskii
2024-06-02 17:02               ` Basil L. Contovounesios
2024-06-03 18:53                 ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-03 19:02                   ` Eli Zaretskii
2024-06-03 20:00                     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-04 14:26                       ` Eli Zaretskii [this message]
2024-06-04 19:51                         ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-07 10:11                           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-08 16:11                             ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-15  8:52                               ` Eli Zaretskii
2024-06-17  9:29                                 ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-22  8:53                                   ` Eli Zaretskii

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=867cf4lr6d.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71264@debbugs.gnu.org \
    --cc=basil@contovou.net \
    --cc=manuel@ledu-giraud.fr \
    /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.