unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alexander Shukaev <haroogan@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: %AppData% on Windows instead of %UserProfile% by default?
Date: Mon, 10 Nov 2014 19:04:48 +0200	[thread overview]
Message-ID: <83wq73m1fz.fsf@gnu.org> (raw)
In-Reply-To: <CAKu-7WyDXm67PF6LMrWmoSdNHQOgESy3xQPzOsoYzgC8dXjx-w@mail.gmail.com>

> Date: Mon, 10 Nov 2014 17:26:12 +0100
> From: Alexander Shukaev <haroogan@gmail.com>
> 
> Could you give some motivation behind using %AppData% on Windows instead of
> %UserProfile% by default for "emacs.d" location?

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. 

(You can see this at
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762494%28v=vs.85%29.aspx.)

> Also, why is the location of "emacs.d" on Windows is primarily
> controlled by %HOME%, rather than %UserProfile% once again? %HOME%
> is not a native environment variable on Windows, while %UserProfile%
> is.

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.

> Please, let's be consistent across platforms.

I think we are, as much as practically possible.



  parent reply	other threads:[~2014-11-10 17:04 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 [this message]
2014-11-10 17:49   ` Alexander Shukaev
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

  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=83wq73m1fz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=haroogan@gmail.com \
    /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).