summaryrefslogtreecommitdiff
path: root/doc/emacs/cmdargs.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-11-14 09:31:28 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-11-14 09:32:28 -0800
commit454f7923a7de9f65f55050dfab48eefc40d0ce29 (patch)
tree49b5bc42234e0accb94af1af8f81de5551de5f9b /doc/emacs/cmdargs.texi
parentfb2514f3e29c140735e2ffccda4affffdb5b253d (diff)
downloademacs-454f7923a7de9f65f55050dfab48eefc40d0ce29.tar.gz
Document recent change to HOME handling
* doc/emacs/cmdargs.texi (General Variables): * doc/emacs/custom.texi (Find Init): * doc/lispref/files.texi (File Name Expansion): * etc/NEWS: Document behavior when HOME is a relative file name.
Diffstat (limited to 'doc/emacs/cmdargs.texi')
-rw-r--r--doc/emacs/cmdargs.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi
index 2e2767ccada..25a25268889 100644
--- a/doc/emacs/cmdargs.texi
+++ b/doc/emacs/cmdargs.texi
@@ -529,7 +529,11 @@ otherwise.
@item HOME
@vindex HOME@r{, environment variable}
The location of your files in the directory tree; used for
-expansion of file names starting with a tilde (@file{~}). On MS-DOS,
+expansion of file names starting with a tilde (@file{~}).
+If set to a relative file name, Emacs expands @file{~} to the
+corresponding absolute file name. If unset, it normally defaults to
+the home directory of the user given by @env{LOGNAME}, @env{USER} or
+your user ID, or to @file{/} if all else fails. On MS-DOS,
it defaults to the directory from which Emacs was started, with
@samp{/bin} removed from the end if it was present. On Windows, the
default value of @env{HOME} is the @file{Application Data}