* Emacs on Windows, isn't ~ supposed to be home dir?
@ 2009-06-05 17:52 Xah Lee
2009-06-05 19:30 ` B. T. Raven
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Xah Lee @ 2009-06-05 17:52 UTC (permalink / raw
To: help-gnu-emacs
in emacsW32 on Windows, “~/” points to
“c:/Users/xah/AppData/Roaming/”
but i was expecting it to point to:
“c:/Users/xah/”.
can anyone know why? Is this just a emacsW32 quirk or is this supposed
to be that way? Is this just a Windows env var that i didn't set, or
is it some emacs setup? (am not familiar with windows env var or
cmd.exe)
am asking because i have many init files and elisp functions that take
a path, and on unix ~ is user home root.
thanks.
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows, isn't ~ supposed to be home dir?
2009-06-05 17:52 Emacs on Windows, isn't ~ supposed to be home dir? Xah Lee
@ 2009-06-05 19:30 ` B. T. Raven
2009-06-05 21:29 ` Lennart Borgman
2009-06-06 1:12 ` Eli Zaretskii
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: B. T. Raven @ 2009-06-05 19:30 UTC (permalink / raw
To: help-gnu-emacs
Xah Lee wrote:
> in emacsW32 on Windows, “~/” points to
> “c:/Users/xah/AppData/Roaming/”
> but i was expecting it to point to:
> “c:/Users/xah/”.
>
> can anyone know why? Is this just a emacsW32 quirk or is this supposed
> to be that way? Is this just a Windows env var that i didn't set, or
> is it some emacs setup? (am not familiar with windows env var or
> cmd.exe)
>
> am asking because i have many init files and elisp functions that take
> a path, and on unix ~ is user home root.
>
> thanks.
>
> Xah
> ∑ http://xahlee.org/
>
> ☄
You can go to Control panel / System / Advanced / Environment Variables
and edit the HOME variable to make it C:\Users\xah
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows, isn't ~ supposed to be home dir?
2009-06-05 19:30 ` B. T. Raven
@ 2009-06-05 21:29 ` Lennart Borgman
0 siblings, 0 replies; 8+ messages in thread
From: Lennart Borgman @ 2009-06-05 21:29 UTC (permalink / raw
To: B. T. Raven, Xah Lee; +Cc: help-gnu-emacs
On Fri, Jun 5, 2009 at 9:30 PM, B. T. Raven<nihil@nihilo.net> wrote:
> Xah Lee wrote:
>>
>> in emacsW32 on Windows, “~/” points to
>> “c:/Users/xah/AppData/Roaming/”
>> but i was expecting it to point to:
>> “c:/Users/xah/”.
>>
>> can anyone know why? Is this just a emacsW32 quirk or is this supposed
>> to be that way? Is this just a Windows env var that i didn't set, or
>> is it some emacs setup? (am not familiar with windows env var or
>> cmd.exe)
>>
>> am asking because i have many init files and elisp functions that take
>> a path, and on unix ~ is user home root.
It should be on Windows too. Xah, could you please download the
unpatched version and see if you get the same problem there? I am not
aware of that I have done something special in Emacs+EmacsW32, but
just in case...
>> thanks.
>>
>> Xah
>> ∑ http://xahlee.org/
>>
>> ☄
>
> You can go to Control panel / System / Advanced / Environment Variables
> and edit the HOME variable to make it C:\Users\xah
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows, isn't ~ supposed to be home dir?
2009-06-05 17:52 Emacs on Windows, isn't ~ supposed to be home dir? Xah Lee
2009-06-05 19:30 ` B. T. Raven
@ 2009-06-06 1:12 ` Eli Zaretskii
[not found] ` <mailman.95.1244250736.2239.help-gnu-emacs@gnu.org>
2009-06-06 13:26 ` Jason Rumney
3 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2009-06-06 1:12 UTC (permalink / raw
To: help-gnu-emacs
> From: Xah Lee <xahlee@gmail.com>
> Newsgroups: gnu.emacs.help,comp.emacs
> Date: Fri, 5 Jun 2009 10:52:53 -0700 (PDT)
>
> in emacsW32 on Windows, “~/” points to
> “c:/Users/xah/AppData/Roaming/”
> but i was expecting it to point to:
> “c:/Users/xah/”.
It is supposed to point by default to whatever CSIDL_APPDATA is set to
on that machine. That is, to the `Application Data' subdirectory of
your user profile directory. Setting HOME in the environment
overrides that. If Emacs does not behave like that, it's a bug that
should be reported.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows, isn't ~ supposed to be home dir?
[not found] ` <mailman.95.1244250736.2239.help-gnu-emacs@gnu.org>
@ 2009-06-06 13:00 ` Xah Lee
2009-06-07 9:19 ` Lennart Borgman
[not found] ` <mailman.138.1244366348.2239.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 8+ messages in thread
From: Xah Lee @ 2009-06-06 13:00 UTC (permalink / raw
To: help-gnu-emacs
On Jun 5, 6:12 pm, Eli Zaretskii <e...@gnu.org> wrote:
> > From: Xah Lee <xah...@gmail.com>
> > Newsgroups: gnu.emacs.help,comp.emacs
> > Date: Fri, 5 Jun 2009 10:52:53 -0700 (PDT)
>
> > in emacsW32 on Windows, “~/” points to
> > “c:/Users/xah/AppData/Roaming/”
> > but i was expecting it to point to:
> > “c:/Users/xah/”.
>
> It is supposed to point by default to whatever CSIDL_APPDATA is set to
> on that machine. That is, to the `Application Data' subdirectory of
> your user profile directory. Setting HOME in the environment
> overrides that. If Emacs does not behave like that, it's a bug that
> should be reported.
Thanks all.
Setting Windows's env var HOME to c:\Users\xah helped. However, it
seems that when emacs starts as server/client, it still loads from “c:/
Users/xah/AppData/Roaming/”.
I vaguely recall similar question asked here recently.
Am not familiar with server/client feature of emacs 23 yet... in
particular, how can i make it so that emacs just have one single dir
for the init files? (or if i should try to do that at all?)
Thanks.
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows, isn't ~ supposed to be home dir?
2009-06-05 17:52 Emacs on Windows, isn't ~ supposed to be home dir? Xah Lee
` (2 preceding siblings ...)
[not found] ` <mailman.95.1244250736.2239.help-gnu-emacs@gnu.org>
@ 2009-06-06 13:26 ` Jason Rumney
3 siblings, 0 replies; 8+ messages in thread
From: Jason Rumney @ 2009-06-06 13:26 UTC (permalink / raw
To: help-gnu-emacs
On Jun 6, 1:52 am, Xah Lee <xah...@gmail.com> wrote:
> in emacsW32 on Windows, “~/” points to
> “c:/Users/xah/AppData/Roaming/”
> but i was expecting it to point to:
> “c:/Users/xah/”.
c:\Users\xah is not guaranteed to be writable by the user xah. The
directory pointed to by Windows system variable CSIDL_APPDATA is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows, isn't ~ supposed to be home dir?
2009-06-06 13:00 ` Xah Lee
@ 2009-06-07 9:19 ` Lennart Borgman
[not found] ` <mailman.138.1244366348.2239.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 8+ messages in thread
From: Lennart Borgman @ 2009-06-07 9:19 UTC (permalink / raw
To: Xah Lee; +Cc: help-gnu-emacs
On Sat, Jun 6, 2009 at 3:00 PM, Xah Lee<xahlee@gmail.com> wrote:
> On Jun 5, 6:12 pm, Eli Zaretskii <e...@gnu.org> wrote:
>> > From: Xah Lee <xah...@gmail.com>
>> > Newsgroups: gnu.emacs.help,comp.emacs
>> > Date: Fri, 5 Jun 2009 10:52:53 -0700 (PDT)
>>
>> > in emacsW32 on Windows, “~/” points to
>> > “c:/Users/xah/AppData/Roaming/”
>> > but i was expecting it to point to:
>> > “c:/Users/xah/”.
>>
>> It is supposed to point by default to whatever CSIDL_APPDATA is set to
>> on that machine. That is, to the `Application Data' subdirectory of
>> your user profile directory. Setting HOME in the environment
>> overrides that. If Emacs does not behave like that, it's a bug that
>> should be reported.
>
> Thanks all.
>
> Setting Windows's env var HOME to c:\Users\xah helped. However, it
> seems that when emacs starts as server/client, it still loads from “c:/
> Users/xah/AppData/Roaming/”.
It should work the same. Perhaps you need to restart your pc?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows, isn't ~ supposed to be home dir?
[not found] ` <mailman.138.1244366348.2239.help-gnu-emacs@gnu.org>
@ 2009-06-07 11:56 ` Xah Lee
0 siblings, 0 replies; 8+ messages in thread
From: Xah Lee @ 2009-06-07 11:56 UTC (permalink / raw
To: help-gnu-emacs
On Jun 7, 2:19 am, Lennart Borgman <lennart.borg...@gmail.com> wrote:
> On Sat, Jun 6, 2009 at 3:00 PM, Xah Lee<xah...@gmail.com> wrote:
> > On Jun 5, 6:12 pm, Eli Zaretskii <e...@gnu.org> wrote:
> >> > From: Xah Lee <xah...@gmail.com>
> >> > Newsgroups: gnu.emacs.help,comp.emacs
> >> > Date: Fri, 5 Jun 2009 10:52:53 -0700 (PDT)
>
> >> > in emacsW32 on Windows, “~/” points to
> >> > “c:/Users/xah/AppData/Roaming/”
> >> > but i was expecting it to point to:
> >> > “c:/Users/xah/”.
>
> >> It is supposed to point by default to whatever CSIDL_APPDATA is set to
> >> on that machine. That is, to the `Application Data' subdirectory of
> >> your user profile directory. Setting HOME in the environment
> >> overrides that. If Emacs does not behave like that, it's a bug that
> >> should be reported.
>
> > Thanks all.
>
> > Setting Windows's env var HOME to c:\Users\xah helped. However, it
> > seems that when emacs starts as server/client, it still loads from “c:/
> > Users/xah/AppData/Roaming/”.
>
> It should work the same. Perhaps you need to restart your pc?
restart Windows took care of it. Thannks Len.
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-06-07 11:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-05 17:52 Emacs on Windows, isn't ~ supposed to be home dir? Xah Lee
2009-06-05 19:30 ` B. T. Raven
2009-06-05 21:29 ` Lennart Borgman
2009-06-06 1:12 ` Eli Zaretskii
[not found] ` <mailman.95.1244250736.2239.help-gnu-emacs@gnu.org>
2009-06-06 13:00 ` Xah Lee
2009-06-07 9:19 ` Lennart Borgman
[not found] ` <mailman.138.1244366348.2239.help-gnu-emacs@gnu.org>
2009-06-07 11:56 ` Xah Lee
2009-06-06 13:26 ` Jason Rumney
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.