emacs-devel
[Top][All Lists]
Advanced

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

Re: M-g in dired


From: Juri Linkov
Subject: Re: M-g in dired
Date: Mon, 22 May 2006 16:46:11 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

>     C-x d already puts the file name of the current buffer into the default
>     value of the minibuffer accessible by the single M-n.
>
> Strange, it didn't work that way when I tried it.  It doesn't work for
> me now.  Looking at the code, I see that dired-read-dir-and-switches,
> when it calls read-file-name, passes default-directory as the default
> file name.
>
> Can you investigate how does this work when you try it?

Oops, this default was inserted by ffap.  When ffap-read-file-or-url
reads a directory/file name it uses the current buffer's file name as
default.  dired could do the same.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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