unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Boruch Baum <boruch_baum@gmx.com>
To: 23276@debbugs.gnu.org
Subject: bug#23276: autorevert for a deleted dired directory (ref: 23276)
Date: Tue, 29 Dec 2020 15:02:29 -0500	[thread overview]
Message-ID: <20201229200229.2qdkhuhuir573whz@E15-2016.optimum.net> (raw)
In-Reply-To: <CABr8ebZrG2Kk1pnmAkrZoBoad0FUjs+p1b6k9-6g20oNhXUvMQ@mail.gmail.com>

First, thanks to everyone/anyone who documented bug 23276 in the body of
file autorevert.el. Because of that in-line documentation, I was able to
easily find and read the relevant historical discussion.

I don't see in that long discussion treatment of the case of a dired
buffer when the directory it describes is deleted. In such a case, there
isn't any meaningful recovery operation that I can think of, and any
attempted operation on the buffer would only be a waste of time and
throw errors.

The biggest waste-of-time case that I can think of would be entering
wdired-mode on the buffer. I've tried it and it only throws an error on
exit, so a user could spend significant time editing the buffer for
naught. Of course, a solution for that specific case could be coded
outside of autorevert, to have wdired-mode itself refuse to operate on a
non-existent dired directory

  (unless (file-directory-p dired-directory)
    ...

which might be a good idea anyway, but it doesn't address all the other
less potentially time-consuming dired operations.

Personally, I wouldn't want to see the buffer deleted, because that
would mess up package diredc (shameless promo interruption: now on
MELPA!), but the buffer could be somehow prominently labeled as
describing a now-deleted directory, maybe in bold the top visible line.
That way a user would have a record of what was deleted, and would know
that the contents are only documentary and not operational. I've coded
handling in diredc for its history and navigation functions, but there
are also all the 'normal' dired operations to take into account by all
the normal dired users.

NOTE: Because I'm picking up on this thread from the web interface, I
don't have many of the email addresses that contributed to the thread,
so at this point I'm hoping the server will auto-magically copy anyone
who should be copied.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0





  parent reply	other threads:[~2020-12-29 20:02 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12 11:07 bug#23276: 25.0.92; Crash in auto-revert when file no longer present Anders Lindgren
2016-04-12 15:16 ` Eli Zaretskii
2016-04-12 16:14   ` Michael Albinus
2016-04-16 18:44 ` Michael Albinus
2016-04-16 18:55   ` Anders Lindgren
2016-04-16 20:56     ` Michael Albinus
2016-04-16 19:00   ` Eli Zaretskii
2016-04-16 20:35     ` Michael Albinus
2016-04-16 20:56     ` Anders Lindgren
2016-04-16 21:30       ` Michael Albinus
2016-04-17  1:54     ` John Wiegley
2016-04-17  2:39       ` Eli Zaretskii
2016-04-17  2:53         ` John Wiegley
2016-04-17  2:57         ` John Mastro
2016-04-17  8:52           ` Michael Albinus
2016-04-18  8:26           ` Michael Albinus
2016-04-17 13:20         ` Óscar Fuentes
2016-04-17 15:16           ` Eli Zaretskii
2016-04-17 16:01             ` Óscar Fuentes
2016-04-17 16:10               ` Eli Zaretskii
2016-04-18  8:24       ` Michael Albinus
2020-12-29 20:02 ` Boruch Baum [this message]
2020-12-29 20:13   ` bug#23276: autorevert for a deleted dired directory (ref: 23276) Eli Zaretskii
2020-12-29 20:45     ` Boruch Baum
2020-12-29 20:24   ` Drew Adams
2020-12-29 21:18     ` Boruch Baum
2020-12-29 22:07       ` Drew Adams
2022-04-27 14:09   ` bug#23276: 25.0.92; Crash in auto-revert when file no longer present Lars Ingebrigtsen

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=20201229200229.2qdkhuhuir573whz@E15-2016.optimum.net \
    --to=boruch_baum@gmx.com \
    --cc=23276@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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