From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: M-g in dired Date: Sun, 21 May 2006 22:38:30 -0400 Message-ID: References: <446C7B73.60907@earthlink.net> <87u07md91o.fsf@jurta.org> <87sln44y1q.fsf@jurta.org> <87lksw58k1.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1148265560 14635 80.91.229.2 (22 May 2006 02:39:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 May 2006 02:39:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 22 04:39:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fi0KC-0004ki-C7 for ged-emacs-devel@m.gmane.org; Mon, 22 May 2006 04:39:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fi0KB-0007od-R7 for ged-emacs-devel@m.gmane.org; Sun, 21 May 2006 22:39:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fi0JU-0007VR-7n for emacs-devel@gnu.org; Sun, 21 May 2006 22:38:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fi0JT-0007VB-PH for emacs-devel@gnu.org; Sun, 21 May 2006 22:38:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fi0JT-0007V6-Mq for emacs-devel@gnu.org; Sun, 21 May 2006 22:38:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fi0NN-00085p-CN for emacs-devel@gnu.org; Sun, 21 May 2006 22:42:33 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Fi0JS-0002sx-RF; Sun, 21 May 2006 22:38:30 -0400 Original-To: Juri Linkov In-reply-to: <87lksw58k1.fsf@jurta.org> (message from Juri Linkov on Sun, 21 May 2006 07:28:54 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54985 Archived-At: 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.