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

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

Re: visiting "~/Application Data" gets "~" instead


From: Jason Rumney
Subject: Re: visiting "~/Application Data" gets "~" instead
Date: Fri, 11 Aug 2006 15:37:24 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666

address@hidden wrote:
This doesn't explain why (find-file-noselect "~/") and
(find-file-noselect "~/Application Data/") return the same buffer.
Shouldn't they be differnet no matter what ~ expands to?
find-file-noselect calls (abbreviate-file-name (expand-file-name FILE)), where expand-file-name is implemented in C and uses egetenv("HOME") to expand "~", while abbreviate-file-name compares against lisp variable abbreviated-home-dir, so if HOME is changed from inside Emacs, these two functions are not going to be consistent with each other. This doesn't explain the above by itself, but I'm sure if you dived deeper you would find the explanation.

The question is - is this worth fixing? Is it reasonable for the user to change the environment variable HOME from within Emacs?







reply via email to

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