From: Colin Walters <walters@verbum.org>
Subject: Re: C-x C-f RET problem...
Date: 16 May 2002 15:02:02 -0400 [thread overview]
Message-ID: <1021575722.24318.936.camel@space-ghost> (raw)
In-Reply-To: <m3y9ekv8mj.fsf@Janik.cz>
On Thu, 2002-05-16 at 03:45, Pavel Janík wrote:
> my users found the behavior of C-x C-f RET quite inconsistent with the rest
> of Emacs. After typing C-x C-f you will see the current directory in the
> minibuffer. Just after RET you *can* expect to see your current directory
> opened in dired. Well, I'm quite used to the current behavior so
> I personally do not have problem with it, but my users found it quite
> irritating: "How is it possible that C-x C-f and the directory opens file
> and not that directory?".
>
> What do you think?
I agree with Miles in that it's not something we should change lightly.
But I've been using Kevin Rodgers' defadvice for a long time, and been
very happy:
;; From Kevin Rodgers
(defadvice find-file (around find-default-filename-run-dired activate)
"Run `\\[dired]' on the current directory (instead of reverting the
buffer) when called interactively, if `find-file-run-dired' is set, no
FILENAME is specified, and the buffer hasn't been modified."
(if (and find-file-run-dired
(interactive-p)
(equal (ad-get-arg 0) buffer-file-name)
(not (buffer-modified-p)))
(dired (file-name-directory buffer-file-name))
ad-do-it))
next prev parent reply other threads:[~2002-05-16 19:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-16 7:45 C-x C-f RET problem Pavel Janík
2002-05-16 8:02 ` Miles Bader
2002-05-16 19:02 ` Colin Walters [this message]
2002-05-16 19:24 ` Miles Bader
2002-05-16 21:51 ` Kim F. Storm
2002-05-16 21:13 ` Alan Shutko
2002-05-16 21:18 ` Miles Bader
2002-05-17 19:29 ` Richard Stallman
2002-05-17 21:43 ` Colin Walters
2002-05-18 2:02 ` Miles Bader
2002-05-18 6:36 ` Eli Zaretskii
2002-05-18 7:12 ` Miles Bader
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=1021575722.24318.936.camel@space-ghost \
--to=walters@verbum.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).