unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Antoine Levitt" <smeuuh@gmail.com>
To: "Miles Bader" <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Patch] Behavior of dired when there already is a dired buffer of the same directory
Date: Mon, 1 Sep 2008 02:53:06 +0200	[thread overview]
Message-ID: <6fa54e4e0808311753j3cef9618k514ef0691b2e6d5d@mail.gmail.com> (raw)
In-Reply-To: <87prnohfcw.fsf@catnip.gol.com>

[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]

> If I have a dired open on x, do external modifications on the structure of

> > x, and rerun dired on x, emacs currently advises me to press g to revert
> the
> > buffer. This is inefficient, and I'd much rather be offered to revert by
> a
> > y/n prompt.
>
> How exactly is typing "y" any more efficient than typing "g"?
>
> [It's certainly the case, though that typing nothing is more efficient
> than typing "n"...]
>
> -Miles
>
> --
> Selfish, adj. Devoid of consideration for the selfishness of others.


That's a good point. However, the user is clearly offered a choice, and I
think it would be better if this choice was made explicit by a question,
rather than just a suggestion, particularly given the fact that this
situation is not so common (a user that direds to an existing dired probably
doesn't expect that there's already a dired buffer open). My choice of word
was poor : it's not more efficient, but clearer and more coherent with the
way other emacs programs work (at least I think so, but I'm by no means an
expert)

>I see no reason why the default should not be that the dired buffers are
>just refreshed (with an idle timer and a hook if the user tries to use
>them first).

The problem with refreshing dired buffers is that it may take time if the
dired is operating on remote directories (ssh, ftp ...), or have other side
effects (imagine dired making your cd-rom periodically spin when there's no
need to, even if that's probably cached by the OS anyway). Is there a
reliable way to know if accessing a file is fast and side-effects free ? If
there is, dired could hook to window-configuration change and refresh itself
whenever it's shown after being hidden or something like that.

[-- Attachment #2: Type: text/html, Size: 2117 bytes --]

  reply	other threads:[~2008-09-01  0:53 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 [this message]
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
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

  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=6fa54e4e0808311753j3cef9618k514ef0691b2e6d5d@mail.gmail.com \
    --to=smeuuh@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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).