[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12517: 24.2; (file-name-directory "~") returns nil
From: |
Stefan Monnier |
Subject: |
bug#12517: 24.2; (file-name-directory "~") returns nil |
Date: |
Wed, 26 Sep 2012 09:05:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
>> I was bitten by this corner case that (file-name-directory "~") returns
>> nil. I wonder if this is a bug/oversight?
I don't know if it should be treated as a misfeature, but at least I've
already relies on it in code such as locate-dominating-file, which
I quote:
;; Represent /home/luser/foo as ~/foo so that we don't try to look for
;; `name' in /home or in /.
(setq file (abbreviate-file-name file))
-- Stefan