From: Alexander Shukaev <haroogan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: ofv@wanadoo.es, emacs-devel <emacs-devel@gnu.org>
Subject: Re: %AppData% on Windows instead of %UserProfile% by default?
Date: Mon, 10 Nov 2014 18:49:27 +0100 [thread overview]
Message-ID: <CAKu-7WyizwELH+tv8+6Ro71fdQ3mHMsxsa6mek7zceY3yoHjSQ@mail.gmail.com> (raw)
In-Reply-To: <83wq73m1fz.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1425 bytes --]
>
> First, %AppData% is a subdirectory of %UserProfile%, so it's not like
> this is a totally different place.
>
> More importantly, we are following the platform guidelines, which
> say:
>
> CSIDL_PROFILE Version 5.0. The user's profile folder. A typical
> FOLDERID_Profile path is C:\Users\username.
> Applications should not create files or folders
> at this level; they should put their data under
> the locations referred to by CSIDL_APPDATA or
> CSIDL_LOCAL_APPDATA.
>
> When Emacs on Windows starts up, if %HOME% is not defined in the
> environment already, Emacs defines it to refer to %AppData%. See
> w32.c:init_environment for more details.
>
> I think we are, as much as practically possible.
>
True, but probably a decent fraction of users still tend to keep "emacs.d"
in %UserProfile% similarly to how they keep "emacs.d" in $HOME on Unix.
Yes, defining %HOME% is a possibility, but once again requires manual
intervention and reading a manual after being surprised with something like
"why the hell my configuration isn't loaded?" So I have the following
proposal:
1. If %HOME% is defined, use it (current);
2. If "emacs.d" is present in %UserProfile%, use it (new);
3. Fallback to %AppData% (current).
In other words, I propose to introduce #2 without ruining the already
existing logic.
[-- Attachment #2: Type: text/html, Size: 1921 bytes --]
next prev parent reply other threads:[~2014-11-10 17:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-10 16:26 %AppData% on Windows instead of %UserProfile% by default? Alexander Shukaev
2014-11-10 16:48 ` Óscar Fuentes
2014-11-10 16:54 ` Eli Zaretskii
2014-11-10 18:26 ` Óscar Fuentes
2014-11-10 17:04 ` Eli Zaretskii
2014-11-10 17:49 ` Alexander Shukaev [this message]
2014-11-10 18:08 ` Eli Zaretskii
2014-11-11 21:46 ` Fabrice Popineau
2014-11-12 3:52 ` Eli Zaretskii
2014-11-12 15:14 ` Matthias Meulien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKu-7WyizwELH+tv8+6Ro71fdQ3mHMsxsa6mek7zceY3yoHjSQ@mail.gmail.com \
--to=haroogan@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=ofv@wanadoo.es \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.