all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, smeuuh@gmail.com, miles@gnu.org
Subject: Re: [Patch] Behavior of dired when there already is a dired buffer of the same directory
Date: Mon, 01 Sep 2008 21:08:58 -0400	[thread overview]
Message-ID: <E1KaKOA-0004YE-UI@fencepost.gnu.org> (raw)
In-Reply-To: <jwv1w04a7no.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 31 Aug 2008 23:06:11 -0400)

    > In general, prompting the user for optional information is a bad idea,
    > and this is especially true for "asynchronous" events.

    I agree, but it's also true that we do exactly that for plain files,
    which is a much more common case, so this same argument would call for
    a similar change to plain files.

Plain files are less likely to change while you have them visited.
If they do, continuing to edit the old contents is probably a grave mistake.

Precisely because this is a rather grave occurrence,
it would be a mistake to revert without telling the user.
Asking the user the question of whether to revert is an ideal
way to inform the user of the anomaly.

Directories often change while you have them in Dired, and that is not
an anomaly.  Continuing to operate on the Dired buffer is probably ok.
Reverting it automatically would be ok, but it is too slow.
I think the message now used is just the right behavior.




  parent reply	other threads:[~2008-09-02  1:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-31 22:50 [Patch] Behavior of dired when there already is a dired buffer of the same directory Antoine Levitt
2008-08-31 23:02 ` Lennart Borgman (gmail)
2008-09-01 17:47   ` Mathias Dahl
2008-09-01 18:00     ` David House
2008-09-01  0:36 ` Miles Bader
2008-09-01  0:53   ` Antoine Levitt
2008-09-01  1:11     ` Lennart Borgman (gmail)
2008-09-01  1:26       ` Antoine Levitt
2008-09-01  2:47     ` Miles Bader
2008-09-01  3:06       ` Stefan Monnier
2008-09-01  7:25         ` Lennart Borgman (gmail)
2008-09-02  1:08         ` Richard M. Stallman [this message]
2008-09-02 14:00           ` Antoine Levitt

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=E1KaKOA-0004YE-UI@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=smeuuh@gmail.com \
    /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.