From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: Re: ido-read-file-name default-filename Date: Wed, 17 May 2006 17:20:41 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147911660 22679 80.91.229.2 (18 May 2006 00:21:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 May 2006 00:21:00 +0000 (UTC) Cc: Emacs Developement List Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 18 02:20:59 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 1FgWG7-00010x-0r for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 02:20:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgWG6-0002fH-Ci for ged-emacs-devel@m.gmane.org; Wed, 17 May 2006 20:20:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgWFw-0002fC-OX for emacs-devel@gnu.org; Wed, 17 May 2006 20:20:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgWFu-0002f0-Bx for emacs-devel@gnu.org; Wed, 17 May 2006 20:20:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgWFu-0002ex-54 for emacs-devel@gnu.org; Wed, 17 May 2006 20:20:42 -0400 Original-Received: from [128.32.35.215] (helo=roar.quarl.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgWIs-0006ik-GF for emacs-devel@gnu.org; Wed, 17 May 2006 20:23:46 -0400 Original-Received: by roar.quarl.org (Postfix, from userid 18378) id 757D35C561; Wed, 17 May 2006 17:20:41 -0700 (PDT) Original-To: storm@cua.dk (Kim F. Storm) X-Quack-Archive: 1 X-Payment: hashcash 1.2 1:20:060518:storm@cua.dk::Sm0PsMr/roF2bSi9:000000z4l X-Hashcash: 1:20:060518:storm@cua.dk::Sm0PsMr/roF2bSi9:000000z4l X-Payment: hashcash 1.2 1:20:060518:emacs-devel@gnu.org::G88asXt0EF8TvOgJ:0000000000000000000000000000000000000000001Hqn X-Hashcash: 1:20:060518:emacs-devel@gnu.org::G88asXt0EF8TvOgJ:0000000000000000000000000000000000000000001Hqn In-Reply-To: (Kim F. Storm's message of "Wed, 17 May 2006 23:25:03 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) 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:54671 Archived-At: >>>>> On 2006-05-17 14:25 PDT, Kim F Storm writes: Kim> I have installed a change which I think will fix this in Kim> general. Please try the latest version. Hi Kim, it works, but only when ido-show-dot-for-dired is nil. The use case (ido-everywhere 1) M-x diff RET RET for current buffer-file-name Perhaps the solution is if default-filename is not nil, then initially put it before "." even if ido-show-dot-for-dired. Or maybe diff-mode should let-bind ido-show-dot-for-dired nil. I guess one problem is read-file-name is overloaded for 2 different use cases: 1. read a file name (not a directory), and 2. read a file name or a directory name. Separating read-file-name into two functions or adding a flag indicating intent would help. -- Karl 2006-05-17 17:15