unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Defining directory ~/ on MS-Windows
@ 2004-11-13 22:34 graham
  2004-11-14  4:44 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: graham @ 2004-11-13 22:34 UTC (permalink / raw)



On MS-Windows Emacs understands paths like ~/foo.txt.  It converts
this to c:\foo.txt.  I would like it to convert it to 
c:\Documents and Settings\My User Name\foo.txt instead, like XEmacs does.

How can this be done?

I'm using Emacs from CVS (21.3.50.1) on Windows XP SP2.


Thanks,


Graham

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

* Re: Defining directory ~/ on MS-Windows
  2004-11-13 22:34 Defining directory ~/ on MS-Windows graham
@ 2004-11-14  4:44 ` Eli Zaretskii
  2004-11-14  5:59 ` Slava
       [not found] ` <mailman.2596.1100408165.8225.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2004-11-14  4:44 UTC (permalink / raw)


> From: graham@gorgeous.org
> Date: Sat, 13 Nov 2004 22:34:12 +0000
> 
> On MS-Windows Emacs understands paths like ~/foo.txt.  It converts
> this to c:\foo.txt.  I would like it to convert it to 
> c:\Documents and Settings\My User Name\foo.txt instead, like XEmacs does.
> 
> How can this be done?

"~" is a short for %HOME%.  So, if you define the environment variable
HOME whose value is "c:\Documents and Settings\Your User Name", you
will get what you want.

> I'm using Emacs from CVS (21.3.50.1) on Windows XP SP2.

On Windows XP, environment variables are set thru the Control Panel.

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

* Re: Defining directory ~/ on MS-Windows
  2004-11-13 22:34 Defining directory ~/ on MS-Windows graham
  2004-11-14  4:44 ` Eli Zaretskii
@ 2004-11-14  5:59 ` Slava
       [not found] ` <mailman.2596.1100408165.8225.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Slava @ 2004-11-14  5:59 UTC (permalink / raw)


Define HOME variable with your path.


Best regards, 
                           Slava                                   sawati AT yandex ru
	

----------------------- Original Message -----------------------
From:   graham@gorgeous.org
To:   help-gnu-emacs@gnu.org
Date:   Sat, 13 Nov 2004 22:34:12 +0000
Subject:   Defining directory ~/ on MS-Windows
----

g> On MS-Windows Emacs understands paths like ~/foo.txt.  It converts
g> this to c:\foo.txt.  I would like it to convert it to 
g> c:\Documents and Settings\My User Name\foo.txt instead, like XEmacs does.
g> 
g> How can this be done?
g> 
g> I'm using Emacs from CVS (21.3.50.1) on Windows XP SP2.

----------------------- Original Message -----------------------

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

* Re: Defining directory ~/ on MS-Windows
       [not found] ` <mailman.2596.1100408165.8225.help-gnu-emacs@gnu.org>
@ 2004-11-14 13:56   ` graham
  2004-11-17  3:46     ` hackevin
  0 siblings, 1 reply; 5+ messages in thread
From: graham @ 2004-11-14 13:56 UTC (permalink / raw)


"Eli Zaretskii" <eliz@gnu.org> writes:

>> From: graham@gorgeous.org
>> Date: Sat, 13 Nov 2004 22:34:12 +0000
>> 
>> On MS-Windows Emacs understands paths like ~/foo.txt.  It converts
>> this to c:\foo.txt.  I would like it to convert it to 
>> c:\Documents and Settings\My User Name\foo.txt instead, like XEmacs does.
>> 
>> How can this be done?
>
> "~" is a short for %HOME%.  So, if you define the environment variable
> HOME whose value is "c:\Documents and Settings\Your User Name", you
> will get what you want.


Thanks, this did the trick.


Graham

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

* Re: Defining directory ~/ on MS-Windows
  2004-11-14 13:56   ` graham
@ 2004-11-17  3:46     ` hackevin
  0 siblings, 0 replies; 5+ messages in thread
From: hackevin @ 2004-11-17  3:46 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]

and also you can add the following part to your register
---------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\GNU]

[HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs]
"HOME"="D:\\GNU\\Emacs"
---------------------------------------------------------

<graham@gorgeous.org> дÈëÏûÏ¢ÐÂÎÅ:ud5yg8rg8.fsf@gorgeous.org...
> "Eli Zaretskii" <eliz@gnu.org> writes:
>
>>> From: graham@gorgeous.org
>>> Date: Sat, 13 Nov 2004 22:34:12 +0000
>>>
>>> On MS-Windows Emacs understands paths like ~/foo.txt.  It converts
>>> this to c:\foo.txt.  I would like it to convert it to
>>> c:\Documents and Settings\My User Name\foo.txt instead, like XEmacs 
>>> does.
>>>
>>> How can this be done?
>>
>> "~" is a short for %HOME%.  So, if you define the environment variable
>> HOME whose value is "c:\Documents and Settings\Your User Name", you
>> will get what you want.
>
>
> Thanks, this did the trick.
>
>
> Graham 

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

end of thread, other threads:[~2004-11-17  3:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-13 22:34 Defining directory ~/ on MS-Windows graham
2004-11-14  4:44 ` Eli Zaretskii
2004-11-14  5:59 ` Slava
     [not found] ` <mailman.2596.1100408165.8225.help-gnu-emacs@gnu.org>
2004-11-14 13:56   ` graham
2004-11-17  3:46     ` hackevin

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