bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#12517: 24.2; (file-name-directory "~") returns nil


From: Andreas Schwab
Subject: bug#12517: 24.2; (file-name-directory "~") returns nil
Date: Wed, 26 Sep 2012 09:14:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Leo <sdl.web@gmail.com> writes:

> I was bitten by this corner case that (file-name-directory "~") returns
> nil. I wonder if this is a bug/oversight?

That's not different from (file-name-directory "a").  The function works
purely textual and does not expand the argument, you have to call
expand-file-name yourself.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

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