GNU bug report logs -
#27589
Wrong documentation for .emacs lookup on Windows
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27589 in the body.
You can then email your comments to 27589 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27589
; Package
emacs
.
(Wed, 05 Jul 2017 16:09:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Björn Lindqvist <bjourne <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 05 Jul 2017 16:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27589
; Package
emacs
.
(Wed, 05 Jul 2017 16:17:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 27589 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Oops, forgot to mention version 24.5.1. Also if I try to open the file
"c:/Users/bjorn/AppData/Roaming/.emacs" something weird happens and Emacs
redirects me to the file "c:/Users/bjorn/.emacs" instead.
2017-07-05 18:08 GMT+02:00 Björn Lindqvist <bjourne <at> gmail.com>:
> 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
>
--
mvh/best regards Björn Lindqvist
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27589
; Package
emacs
.
(Wed, 05 Jul 2017 17:11:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 27589 <at> debbugs.gnu.org (full text, mbox):
> From: Björn Lindqvist <bjourne <at> gmail.com>
> Date: Wed, 5 Jul 2017 18:08:23 +0200
>
> 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"
The information in the manual is correct, I just verified it both in
Emacs 24.5 and 25. The problems that you see are most probably due to
some local issue on your system, like ownership of directories or some
environment variable.
And btw, what version of Windows is that? And how are you invoking
Emacs? from some shell prompt, from a desktop shortcut, from a
task-bar shortcut, or some other way?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27589
; Package
emacs
.
(Fri, 07 Jul 2017 22:10:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 27589 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
2017-07-05 19:10 GMT+02:00 Eli Zaretskii <eliz <at> gnu.org>:
> > From: Björn Lindqvist <bjourne <at> gmail.com>
> > Date: Wed, 5 Jul 2017 18:08:23 +0200
> >
> > 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"
>
> The information in the manual is correct, I just verified it both in
> Emacs 24.5 and 25. The problems that you see are most probably due to
> some local issue on your system, like ownership of directories or some
> environment variable.
>
> And btw, what version of Windows is that? And how are you invoking
> Emacs? from some shell prompt, from a desktop shortcut, from a
> task-bar shortcut, or some other way?
>
--
mvh/best regards Björn Lindqvist
[Message part 2 (text/html, inline)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 08 Jul 2017 06:48:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Björn Lindqvist <bjourne <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 08 Jul 2017 06:48:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 27589-done <at> debbugs.gnu.org (full text, mbox):
> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 05 Aug 2017 11:24:04 GMT)
Full text and
rfc822 format available.
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.