bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-x C-f RET sometimes ignores you


From: Dan Jacobson
Subject: Re: C-x C-f RET sometimes ignores you
Date: 14 Apr 2001 15:53:35 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "K" == Kevin Rodgers <kevinr@ihs.com> writes:

K> Dan Jacobson wrote:
>> Start up emacs, in the scratch buffer do C-x C-f RET
>> This invokes dired on the home directory.  Good.
>> 
>> Start up emacs, find some file, then do C-x C-f RET
>> This does nothing.  Bad.

K> (defadvice find-file (around find-default-filename-run-dired activate)
K>   "Run `\\[dired]' on the current directory (instead of reverting the
K> buffer) when called interactively, if `find-file-run-dired' is set, no
K> FILENAME is specified, and the buffer hasn't been modified."
K>   (if (and find-file-run-dired
K>         (interactive-p)
K>         (equal (ad-get-arg 0) buffer-file-name)
K>         (not (buffer-modified-p)))
K>       (dired (file-name-directory buffer-file-name))
K>     ad-do-it))

Thanks, but I was more looking for a crushing admission from the emacs
maintainers that there is a flaw, rather than a comforting piece of
advice for home use.  Also buffer modified or unmodified doesn't
seem to be a reason for emacs to not at least explain why it
apparently does nothing here.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]