emacs-devel
[Top][All Lists]
Advanced

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

Re: M-g in dired


From: Richard Stallman
Subject: Re: M-g in dired
Date: Sun, 21 May 2006 22:38:30 -0400

    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?

      But when C-x d
    accepts a file name, it has the different effect: it produces the dired
    buffer with only one file whose name was given for C-x d (all other files
    are filtered out by a wildcard).

Yes, that's what it is supposed to do.

    For me this behavior is useless.  I'd like to display the dired buffer
    with all files and to move point to the file with the name specified
    for C-x d.

I see your point.  Hmm.

    The only difference from the existing dired-goto-file is that when
    used as a global key it would create the dired buffer before moving
    point to the given file name.

Maybe this does belong in M-g.  If so, it should be M-g d,
go to file in Dired.




reply via email to

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