[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Absolute/relative pathnames under nt
From: |
Dr Francis J. Wright |
Subject: |
Re: [h-e-w] Absolute/relative pathnames under nt |
Date: |
Thu, 30 May 2002 12:57:14 +0100 |
NTEmacs doesn't need the HOME environment variable. If it's not set then
home defaults to C:\ (or possibly the root of the boot partition). NTEmacs
also happily accepts the ~ notation. I regularly access my .emacs file as
~/.emacs. If you want to check that it works (and check what Emacs thinks
home is) then just run dired on ~.
I guess this means that the manual is wrong.
Francis
----- Original Message -----
From: "Underwood, Jonathan" <address@hidden>
To: <address@hidden>
Sent: Thursday, May 30, 2002 3:53 AM
Subject: [h-e-w] Absolute/relative pathnames under nt
> Hi
>
> Given that ntemacs looks for .emacs in the directory specified by the HOME
> environment variable, it seems odd to me that in ntemacs absolute
filenames
> begin with a drive letter, rather than a ~ as in unix. I quote from the
> emacs lisp manual:
>
> "All the directories in the file system form a tree starting at the root
> directory. A file name can specify all the directory names starting from
the
> root of the tree; then it is called an absolute file name. Or it can
specify
> the position of the file in the tree relative to a default directory; then
> it is called a relative file name. On Unix and GNU/Linux, an absolute file
> name starts with a slash or a tilde (`~'), and a relative one does not. On
> MS-DOS and MS-Windows, an absolute file name starts with a slash or a
> backslash, or with a drive specification `x:/', where x is the drive
letter.
> The rules on VMS are complicated"
>
> It seems to me that for ntemacs, given that ntemacs needs a home directory
> to be specified via the HOME environment variable, and that emacs
> understands the ~ to represent this home directory, that ntemacs should
also
> allow absolute filenames to begin with ~ a la unix.
>
> This would make things a lot easier for eg. using load-file in your .emacs
> for loading files consistently on different platforms etc.
>
> Just a thought
>
> jonathan.
>
>