From: "Björn Lindqvist" <bjourne@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 27589@debbugs.gnu.org
Subject: bug#27589: Wrong documentation for .emacs lookup on Windows
Date: Sat, 8 Jul 2017 00:09:26 +0200 [thread overview]
Message-ID: <CALG+76c7h+FSO5Wv4NG_Nag5b-Qrp8QGVPSjXjEfrLFYZPmpqA@mail.gmail.com> (raw)
In-Reply-To: <83zicin72p.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]
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@gnu.org>:
> > From: Björn Lindqvist <bjourne@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
[-- Attachment #2: Type: text/html, Size: 2487 bytes --]
next prev parent reply other threads:[~2017-07-07 22:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-05 16:08 bug#27589: Wrong documentation for .emacs lookup on Windows Björn Lindqvist
2017-07-05 16:16 ` Björn Lindqvist
2017-07-05 17:10 ` Eli Zaretskii
2017-07-07 22:09 ` Björn Lindqvist [this message]
2017-07-08 6:47 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALG+76c7h+FSO5Wv4NG_Nag5b-Qrp8QGVPSjXjEfrLFYZPmpqA@mail.gmail.com \
--to=bjourne@gmail.com \
--cc=27589@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).