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: read-directory-name Date: Tue, 10 May 2005 00:32:29 +0300 Organization: JURTA Message-ID: <878y2ouj3y.fsf@jurta.org> References: <200505070120.j471Kjq20923@raven.dms.auburn.edu> <200505070148.j471mtT20941@raven.dms.auburn.edu> <200505070234.j472YTN21017@raven.dms.auburn.edu> <200505070247.j472lRJ21027@raven.dms.auburn.edu> <200505070256.j472uDZ21054@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115680270 32319 80.91.229.2 (9 May 2005 23:11:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 May 2005 23:11:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 10 01:11:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVHOq-0004iY-8s for ged-emacs-devel@m.gmane.org; Tue, 10 May 2005 01:10:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVHXF-0003RR-Ra for ged-emacs-devel@m.gmane.org; Mon, 09 May 2005 19:19:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVHU7-0002vZ-2T for emacs-devel@gnu.org; Mon, 09 May 2005 19:16:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVHTx-0002sn-RA for emacs-devel@gnu.org; Mon, 09 May 2005 19:16:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVHTw-0002jx-46 for emacs-devel@gnu.org; Mon, 09 May 2005 19:16:12 -0400 Original-Received: from [194.126.101.116] (helo=HOT-Bounce1.hot.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVHTW-0004cQ-NF for emacs-devel@gnu.org; Mon, 09 May 2005 19:15:47 -0400 Original-Received: from MXR-8.estpak.ee (unknown [192.168.1.27]) by HOT-Bounce1.hot.ee (Postfix) with ESMTP id 37C861166B4 for ; Tue, 10 May 2005 00:58:51 +0200 (EET) Original-Received: from mail.neti.ee (80-235-35-254-dsl.mus.estpak.ee [80.235.35.254]) by MXR-8.estpak.ee (Postfix) with ESMTP id A23C55997C; Tue, 10 May 2005 02:09:22 +0300 (EEST) Original-To: Luc Teirlinck In-Reply-To: <200505070256.j472uDZ21054@raven.dms.auburn.edu> (Luc Teirlinck's message of "Fri, 6 May 2005 21:56:13 -0500 (CDT)") User-Agent: Gnus/5.110002 (No Gnus v0.2) 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:36920 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36920 > Sorry, that was wrong. It should have been: > > ! (if initial (concat dir initial) dir default-directory))) > > Obviously, that was even _more_ wrong. > It should have been the following, as in Juri's original patch: > > - (if initial (concat dir initial) default-directory))) > + (or (if initial (concat dir initial)) > + dir > + default-directory))) I haven't installed this patch, because I've found that `read-directory-name' inherits its behavior from `read-file-name', so changing `read-directory-name' would make it inconsistent with `read-file-name'. -- Juri Linkov http://www.jurta.org/emacs/