[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs and Squiggles as filenames

From: David Kastrup
Subject: Re: Emacs and Squiggles as filenames
Date: Sun, 10 Jul 2005 10:31:31 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

address@hidden (Paul Jarc) writes:

> "D Goel" <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]