GNU bug report logs - #27589
Wrong documentation for .emacs lookup on Windows

Previous Next

Package: emacs;

Reported by: Björn Lindqvist <bjourne <at> gmail.com>

Date: Wed, 5 Jul 2017 16:09:01 UTC

Severity: minor

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#27589: closed (Wrong documentation for .emacs lookup on Windows)
Date: Sat, 08 Jul 2017 06:48:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 08 Jul 2017 09:47:29 +0300
with message-id <83shi7l91a.fsf <at> gnu.org>
and subject line Re: bug#27589: Wrong documentation for .emacs lookup on Windows
has caused the debbugs.gnu.org bug report #27589,
regarding Wrong documentation for .emacs lookup on Windows
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
27589: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27589
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Björn Lindqvist <bjourne <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Wrong documentation for .emacs lookup on Windows
Date: Wed, 5 Jul 2017 18:08:23 +0200
[Message part 3 (text/plain, inline)]
Information in these pages is incorrect:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html
https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/Location-of-init-file.html

In my case .emacs is at "C:\Users\bjorn\AppData\Roaming\.emacs" Emacs does
not set the value of the HOME variable to that location:

(getenv "HOME")
"C:\\Users\\bjorn"

And "Within Emacs, <~> at the beginning of a file name is expanded to your
HOME directory, so you can always find your .emacs file by typing the
command C-x C-f ~/.emacs." is therefore not true:

(expand-file-name "~/.emacs")
"c:/Users/bjorn/.emacs"


-- 
mvh/best regards Björn Lindqvist
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Björn Lindqvist <bjourne <at> gmail.com>
Cc: 27589-done <at> debbugs.gnu.org
Subject: Re: bug#27589: Wrong documentation for .emacs lookup on Windows
Date: Sat, 08 Jul 2017 09:47:29 +0300
> From: Björn Lindqvist <bjourne <at> gmail.com>
> Date: Sat, 8 Jul 2017 00:09:26 +0200
> Cc: 27589 <at> debbugs.gnu.org
> 
> Sorry, this was a PEBKAC. I had used (setenv "HOME" (concat (getenv "HOMEDRIVE") (getenv
> "HOMEPATH"))) to set the HOME environment variable from within emacs which I now understand is a
> terrible idea.

Thanks, I'm therefore closing the bug report.


This bug report was last modified 8 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.