From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: %AppData% on Windows instead of %UserProfile% by default? Date: Wed, 12 Nov 2014 05:52:11 +0200 Message-ID: <83vbmlkrdg.fsf@gnu.org> References: <83wq73m1fz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415764368 31812 80.91.229.3 (12 Nov 2014 03:52:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2014 03:52:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Fabrice Popineau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 12 04:52:42 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XoOz4-0000mS-FI for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2014 04:52:42 +0100 Original-Received: from localhost ([::1]:52326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoOz4-0000FR-2y for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2014 22:52:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoOym-0000F7-H2 for emacs-devel@gnu.org; Tue, 11 Nov 2014 22:52:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoOyg-0000Gq-Jb for emacs-devel@gnu.org; Tue, 11 Nov 2014 22:52:24 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:55730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoOyg-0000Gk-AT for emacs-devel@gnu.org; Tue, 11 Nov 2014 22:52:18 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NEW00M00PLDG700@mtaout24.012.net.il> for emacs-devel@gnu.org; Wed, 12 Nov 2014 05:44:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEW00K65QEQKO40@mtaout24.012.net.il>; Wed, 12 Nov 2014 05:44:50 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176795 Archived-At: > From: Fabrice Popineau > Date: Tue, 11 Nov 2014 21:46:19 +0000 (UTC) > > Eli Zaretskii gnu.org> writes: > > > 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. > > I think that it depends on how you interpret "their data". > Applications store data in %APPDATA%, but data which are invisible to the user > (browser web cache, history, etc.) > It is hardly the case for .emacs.d, it is not a byproduct of running Emacs, > or at least not everything in there. That is true, which is why I said we try to be compatible "as is practically possible". Emacs does writes into files we put there. > And from this point of view, %UserProfile% is closer to what $HOME is under Unix. No, it is farther: it sufers from the same problems as %AppData%, and on top of that, platform guidelines request that no files are put there, only directories. > Actually, to make Emacs more "Windows" friendly would probably require > to setup a configuration quite different from the GNU/Unix one. But that's not what we are trying to do. We are trying to pick up a reasonable default for HOME when HOME is not set in the environment.