From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: M-g in dired Date: Mon, 22 May 2006 16:46:11 +0300 Organization: JURTA Message-ID: <87psi6cgv1.fsf@jurta.org> References: <446C7B73.60907@earthlink.net> <87u07md91o.fsf@jurta.org> <87sln44y1q.fsf@jurta.org> <87lksw58k1.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148305913 1456 80.91.229.2 (22 May 2006 13:51:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 May 2006 13:51:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 22 15:51:45 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 1FiAoY-0000Au-1k for ged-emacs-devel@m.gmane.org; Mon, 22 May 2006 15:51:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FiAoX-0003Ci-JA for ged-emacs-devel@m.gmane.org; Mon, 22 May 2006 09:51:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FiAmy-00026X-LI for emacs-devel@gnu.org; Mon, 22 May 2006 09:49:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FiAmw-00025F-3L for emacs-devel@gnu.org; Mon, 22 May 2006 09:49:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FiAmv-000258-S5 for emacs-devel@gnu.org; Mon, 22 May 2006 09:49:37 -0400 Original-Received: from [217.25.160.1] (helo=relay1.binet.com.ua) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FiAqe-0008Mf-0o; Mon, 22 May 2006 09:53:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by relay1.binet.com.ua (Postfix) with ESMTP id F36BF77DE7; Mon, 22 May 2006 16:49:12 +0300 (EEST) Original-Received: from mail.binet.com.ua (i24.dialup.binet.com.ua [217.25.161.88]) by relay1.binet.com.ua (Postfix) with ESMTP id EE0DA77E00; Mon, 22 May 2006 16:49:10 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sun, 21 May 2006 22:38:30 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by ClamAv at binet.com.ua 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:55045 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? 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/