From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Emacs and Squiggles as filenames Date: Sun, 10 Jul 2005 10:31:31 +0200 Message-ID: <8564vjhxjw.fsf@lola.goethe.zz> References: <87ll4iph80.fsf@gnufans.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120985742 17443 80.91.229.2 (10 Jul 2005 08:55:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2005 08:55:42 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 10 10:55:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DrXax-0002P9-VF for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2005 10:55:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrXcS-0001Q0-TZ for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2005 04:57:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrXb6-0000y4-6q for emacs-devel@gnu.org; Sun, 10 Jul 2005 04:55:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrXb2-0000va-PY for emacs-devel@gnu.org; Sun, 10 Jul 2005 04:55:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrXb2-0000Vo-55 for emacs-devel@gnu.org; Sun, 10 Jul 2005 04:55:32 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrXKu-0007V9-5d for emacs-devel@gnu.org; Sun, 10 Jul 2005 04:38:52 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DrXB6-0007GR-FT; Sun, 10 Jul 2005 04:28:44 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C2A541C3C783; Sun, 10 Jul 2005 10:31:31 +0200 (CEST) Original-To: "D Goel" In-Reply-To: (Paul Jarc's message of "Sun, 10 Jul 2005 00:05:57 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) 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:40720 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40720 prj@po.cwru.edu (Paul Jarc) writes: > "D Goel" wrote: >> (expand-file-name (file-name-nondirectory fname) dir) >> >> >> should return fname back. It is like an identity, right? If not, >> what is the way to *always* correctly do an expand-file-name ? > > This works for me: > (concat (file-name-as-directory "~/tmp") > (file-name-nondirectory "~/tmp/~")) I am afraid that the former version is _so_ ingrained into Elisp code that we should add advice into DOC strings and Elisp manual. _If_ the latter is sure to work under all circumstances. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum