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: Eli Zaretskii
Subject: Re: visiting "~/Application Data" gets "~" instead
Date: Fri, 11 Aug 2006 15:50:15 +0300

> From: Eric Hanchrow <address@hidden>
> Date: Thu, 10 Aug 2006 17:49:58 -0700
> 
> * paste or type this into the *scratch* buffer, and hit C-x C-e
> 
> (progn
>   (setenv "HOME" (getenv "USERPROFILE"))
>   ;;(setq abbreviated-home-dir nil)
>   (let ((home (find-file-noselect "~/"))
>         (ad (find-file-noselect "~/Application Data/")))
>     (when (eq home ad)
>       (error "Aha.  We found the bug."))
>     (message "I guess the bug is fixed or hidden.")))
> 
> I predict you'll see the error "Aha.  We found the bug."
> 
> I think this is a bug because I've changed the HOME variable to be
> "c:/Documents and Settings/erich/"

setenv only changes the environment passed to child processes that
Emacs runs, but does not change Emacs's own environment.  So this
behavior is quite intentional.




reply via email to

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