unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Default HOME to USERPROFILE on w32?
@ 2005-05-24 21:58 Lennart Borgman
  2005-05-24 22:53 ` Juanma Barranquero
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Lennart Borgman @ 2005-05-24 21:58 UTC (permalink / raw)


There was a discussion in oct 2004 about what to do on w32 if HOME env 
var was not set. I think the decision pretty much was to use 
USERPROFILE. There was one exception: If c:\.emacs existed then this 
should be used instead. (See for example 
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg01168.html).

It does not seem like this has been implemented. Are there any 
objections do this?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Default HOME to USERPROFILE on w32?
  2005-05-24 21:58 Default HOME to USERPROFILE on w32? Lennart Borgman
@ 2005-05-24 22:53 ` Juanma Barranquero
  2005-05-24 22:58 ` Jason Rumney
  2005-05-24 23:22 ` Jason Rumney
  2 siblings, 0 replies; 5+ messages in thread
From: Juanma Barranquero @ 2005-05-24 22:53 UTC (permalink / raw)


On 5/24/05, Lennart Borgman <lennart.borgman.073@student.lu.se> wrote:
> There was a discussion in oct 2004 about what to do on w32 if HOME env
> var was not set. I think the decision pretty much was to use
> USERPROFILE.

I didn't read it, but, why USERPROFILE and not, for example, APPDATA?
Emacs uses HOME to read .emacs.el, but also to write quite a lot of
stuff, and that seems more appropriate for %APPDATA%\.emacs\, for
example, that %USERPROFILE%\

-- 
                    /L/e/k/t/u

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Default HOME to USERPROFILE on w32?
  2005-05-24 21:58 Default HOME to USERPROFILE on w32? Lennart Borgman
  2005-05-24 22:53 ` Juanma Barranquero
@ 2005-05-24 22:58 ` Jason Rumney
  2005-05-24 23:22 ` Jason Rumney
  2 siblings, 0 replies; 5+ messages in thread
From: Jason Rumney @ 2005-05-24 22:58 UTC (permalink / raw)
  Cc: emacs-devel

Lennart Borgman <lennart.borgman.073@student.lu.se> writes:

> There was a discussion in oct 2004 about what to do on w32 if HOME env
> var was not set. I think the decision pretty much was to use
> USERPROFILE. There was one exception: If c:\.emacs existed then this
> should be used instead. (See for example
> http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg01168.html).
>
> It does not seem like this has been implemented. Are there any
> objections do this?

No objections, I think there was consensus that it should be done, and
Stefan implemented something in Lisp, but Eli and I thought it better
to do in the C code where the environment is initialized, to avoid
some code getting a different value during startup.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Default HOME to USERPROFILE on w32?
  2005-05-24 21:58 Default HOME to USERPROFILE on w32? Lennart Borgman
  2005-05-24 22:53 ` Juanma Barranquero
  2005-05-24 22:58 ` Jason Rumney
@ 2005-05-24 23:22 ` Jason Rumney
  2 siblings, 0 replies; 5+ messages in thread
From: Jason Rumney @ 2005-05-24 23:22 UTC (permalink / raw)
  Cc: emacs-devel

Lennart Borgman <lennart.borgman.073@student.lu.se> writes:

> There was a discussion in oct 2004 about what to do on w32 if HOME env
> var was not set. I think the decision pretty much was to use
> USERPROFILE.

Note that it is probably more portable (but more work) to use
SHGetSpecialFolderLocation(..., CSIDL_PROFILE,...) than the
USERPROFILE environment variable.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Default HOME to USERPROFILE on w32?
@ 2005-05-25  7:04 LENNART BORGMAN
  0 siblings, 0 replies; 5+ messages in thread
From: LENNART BORGMAN @ 2005-05-25  7:04 UTC (permalink / raw)
  Cc: emacs-devel

Maybe you could read the arguments from last october about this?

Kind regards,
Lennart


----- Original Message -----
From: Juanma Barranquero <lekktu@gmail.com>
Date: Wednesday, May 25, 2005 0:53 am
Subject: Re: Default HOME to USERPROFILE on w32?

> On 5/24/05, Lennart Borgman <lennart.borgman.073@student.lu.se> wrote:
> > There was a discussion in oct 2004 about what to do on w32 if 
> HOME env
> > var was not set. I think the decision pretty much was to use
> > USERPROFILE.
> 
> I didn't read it, but, why USERPROFILE and not, for example, APPDATA?
> Emacs uses HOME to read .emacs.el, but also to write quite a lot of
> stuff, and that seems more appropriate for %APPDATA%\.emacs\, for
> example, that %USERPROFILE%\
> 
> -- 
>                    /L/e/k/t/u
> 
> 
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-25  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-24 21:58 Default HOME to USERPROFILE on w32? Lennart Borgman
2005-05-24 22:53 ` Juanma Barranquero
2005-05-24 22:58 ` Jason Rumney
2005-05-24 23:22 ` Jason Rumney
  -- strict thread matches above, loose matches on Subject: below --
2005-05-25  7:04 LENNART BORGMAN

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).