diff options
| author | Glenn Morris | 2011-03-12 11:19:47 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-03-12 11:19:47 -0800 |
| commit | 09d9db2c4921cb2eb0974892164dd03d6bffdd80 (patch) | |
| tree | 7165f97f16ea0eaab567db2a45f69d1cdf66bdce /doc | |
| parent | 54ce11a161cd756047fccdfc128dc0527692ea06 (diff) | |
| parent | 6efb972c00a9ea8ffa84118199aa59c2d3a3b50e (diff) | |
| download | emacs-09d9db2c4921cb2eb0974892164dd03d6bffdd80.tar.gz emacs-09d9db2c4921cb2eb0974892164dd03d6bffdd80.zip | |
Merge from emacs-23; up to 2010-06-03T22:16:02Z!dann@ics.uci.edu
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/msdog.texi | 53 |
2 files changed, 36 insertions, 22 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index a53aa095cc2..a30ffc07971 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-12 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * msdog.texi (Windows HOME): Fix the wording to clarify how Emacs sets | ||
| 4 | HOME on Windows and where it looks for init files. (Bug#8221) | ||
| 5 | |||
| 1 | 2011-03-10 Eli Zaretskii <eliz@gnu.org> | 6 | 2011-03-10 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * search.texi (Regexp Example): | 8 | * search.texi (Regexp Example): |
diff --git a/doc/emacs/msdog.texi b/doc/emacs/msdog.texi index 7358773485d..0a454db86bb 100644 --- a/doc/emacs/msdog.texi +++ b/doc/emacs/msdog.texi | |||
| @@ -404,36 +404,45 @@ names, which might cause misalignment of columns in Dired display. | |||
| 404 | @dfn{user-specific application data directory}. The actual location | 404 | @dfn{user-specific application data directory}. The actual location |
| 405 | depends on your Windows version and system configuration; typical values | 405 | depends on your Windows version and system configuration; typical values |
| 406 | are @file{C:\Documents and Settings\@var{username}\Application Data} on | 406 | are @file{C:\Documents and Settings\@var{username}\Application Data} on |
| 407 | Windows 2K/XP and later, and either @file{C:\WINDOWS\Application Data} | 407 | Windows 2K/XP/2K3, @file{C:\Users\@var{username}\AppData\Roaming} on |
| 408 | Windows Vista/7/2K8, and either @file{C:\WINDOWS\Application Data} | ||
| 408 | or @file{C:\WINDOWS\Profiles\@var{username}\Application Data} on the | 409 | or @file{C:\WINDOWS\Profiles\@var{username}\Application Data} on the |
| 409 | older Windows 9X/ME systems. | 410 | older Windows 9X/ME systems. If this directory does not exist or |
| 410 | 411 | cannot be accessed, Emacs falls back to @file{C:\} as the default | |
| 411 | @code{HOME} can also be set in the system registry, for details see | 412 | value of @code{HOME}. |
| 413 | |||
| 414 | You can override this default value of @code{HOME} by explicitly | ||
| 415 | setting the environment variable @env{HOME} to point to any directory | ||
| 416 | on your system. @env{HOME} can be set either from the command shell | ||
| 417 | prompt or from the @samp{My Computer}s @samp{Properties} dialog. | ||
| 418 | @code{HOME} can also be set in the system registry, for details see | ||
| 412 | @ref{MS-Windows Registry}. | 419 | @ref{MS-Windows Registry}. |
| 413 | 420 | ||
| 414 | @cindex init file @file{.emacs} on MS-Windows | 421 | For compatibility with older versions of Emacs@footnote{ |
| 415 | The home directory is where your init file @file{.emacs} is stored. | 422 | Older versions of Emacs didn't check the application data directory. |
| 416 | When Emacs starts, it first checks whether the environment variable | 423 | }, if there is a file named @file{.emacs} in @file{C:\}, the root |
| 417 | @env{HOME} is set. If it is, it looks for the init file in the | 424 | directory of drive @file{C:}, and @env{HOME} is set neither in the |
| 418 | directory pointed by @env{HOME}. If @env{HOME} is not defined, Emacs | 425 | environment nor in the Registry, Emacs will treat @file{C:\} as the |
| 419 | checks for an existing @file{.emacs} file in @file{C:\}, the root | 426 | default @code{HOME} location, and will not look in the application |
| 420 | directory of drive @file{C:}@footnote{ | 427 | data directory, even if it exists. Note that only @file{.emacs} is |
| 421 | The check in @file{C:\} is for compatibility with older versions of Emacs, | 428 | looked for in @file{C:\}; the older name @file{_emacs} (see below) is |
| 422 | which didn't check the application data directory. | 429 | not. This use of @file{C:\.emacs} to define @code{HOME} is |
| 423 | }. If there's no such file in @file{C:\}, Emacs next uses the Windows | 430 | deprecated. |
| 424 | system calls to find out the exact location of your application data | 431 | |
| 425 | directory. If that system call fails, Emacs falls back to @file{C:\}. | 432 | Whatever the final place is, Emacs sets the internal value of the |
| 426 | 433 | @env{HOME} environment variable to point to it, and it will use that | |
| 427 | Whatever the final place is, Emacs sets the value of the @env{HOME} | 434 | location for other files and directories it normally looks for or |
| 428 | environment variable to point to it, and it will use that location for | 435 | creates in the user's home directory. |
| 429 | other files and directories it normally creates in the user's home | ||
| 430 | directory. | ||
| 431 | 436 | ||
| 432 | You can always find out where Emacs thinks is your home directory's | 437 | You can always find out where Emacs thinks is your home directory's |
| 433 | location by typing @kbd{C-x d ~/ @key{RET}}. This should present the | 438 | location by typing @kbd{C-x d ~/ @key{RET}}. This should present the |
| 434 | list of files in the home directory, and show its full name on the | 439 | list of files in the home directory, and show its full name on the |
| 435 | first line. Likewise, to visit your init file, type @kbd{C-x C-f | 440 | first line. Likewise, to visit your init file, type @kbd{C-x C-f |
| 436 | ~/.emacs @key{RET}}. | 441 | ~/.emacs @key{RET}} (assuming the file's name is @file{.emacs}). |
| 442 | |||
| 443 | @cindex init file @file{.emacs} on MS-Windows | ||
| 444 | The home directory is where your init file is stored. It can have | ||
| 445 | any name mentioned in @ref{Init File}. | ||
| 437 | 446 | ||
| 438 | @cindex @file{_emacs} init file, MS-Windows | 447 | @cindex @file{_emacs} init file, MS-Windows |
| 439 | Because MS-DOS does not allow file names with leading dots, and | 448 | Because MS-DOS does not allow file names with leading dots, and |