>>>> (expand-file-name (file-name-nondirectory fname) dir)
>> 
>>> This works for me:
>>> (concat (file-name-as-directory "~/tmp")
>>>         (file-name-nondirectory "~/tmp/~"))

Note that other than the issue of filenames like "~", `concat' is useful
also in the case where `dir' is not an absolute directory and you don't
want the output to be an absolute filename either.


        Stefan



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to