aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-12 19:54:23 +0000
committerEli Zaretskii2008-10-12 19:54:23 +0000
commit2d6fc764aed5baef16b2b45d7dce20be832e4d20 (patch)
treedc3ed1e05452eb4f58d2af1790108be305d20d6a
parentd2b2930a59174f3240b07e843346dc5d8acc2d3a (diff)
downloademacs-2d6fc764aed5baef16b2b45d7dce20be832e4d20.tar.gz
emacs-2d6fc764aed5baef16b2b45d7dce20be832e4d20.zip
(Minibuffer File): Fix markup in last change. Refer to elsewhere in the manual
instead of describing yet again the intricacies of $HOME on MS-Windows and MS-DOS.
-rw-r--r--doc/emacs/mini.texi34
1 files changed, 21 insertions, 13 deletions
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi
index 2cdc0815626..d8d18009ab5 100644
--- a/doc/emacs/mini.texi
+++ b/doc/emacs/mini.texi
@@ -89,25 +89,33 @@ Find File: /u2/emacs/src//etc/termcap
89@findex file-name-shadow-mode 89@findex file-name-shadow-mode
90Emacs interprets a double slash as ``ignore everything before the 90Emacs interprets a double slash as ``ignore everything before the
91second slash in the pair.'' In the example above, 91second slash in the pair.'' In the example above,
92@samp{/u2/emacs/src/} is ignored, so the argument you supplied is 92@file{/u2/emacs/src/} is ignored, so the argument you supplied is
93@file{/etc/termcap}. The ignored part of the file name is dimmed if 93@file{/etc/termcap}. The ignored part of the file name is dimmed if
94the terminal allows it (to disable this dimming, turn off File Name 94the terminal allows it (to disable this dimming, turn off File Name
95Shadow mode with the command @kbd{M-x file-name-shadow-mode}.) 95Shadow mode with the command @kbd{M-x file-name-shadow-mode}.)
96 96
97@cindex home directory shorthand 97@cindex home directory shorthand
98 Emacs interprets @samp{~/} as your home directory. Thus, 98 Emacs interprets @file{~/} as your home directory. Thus,
99@samp{~/foo/bar.txt} specifies a file named @samp{bar.txt}, inside a 99@file{~/foo/bar.txt} specifies a file named @file{bar.txt}, inside a
100directory named @samp{foo}, which is in turn located in your home 100directory named @file{foo}, which is in turn located in your home
101directory. In addition, @file{~@var{user-id}/} means the home 101directory. In addition, @file{~@var{user-id}/} means the home
102directory of a user whose login name is @code{user-id}. Any leading 102directory of a user whose login name is @var{user-id}. Any leading
103directory name in front of the @samp{~} is ignored: thus, 103directory name in front of the @file{~} is ignored: thus,
104@samp{/u2/emacs/~/foo/bar.txt} is equivalent to @samp{~/foo/bar.txt}. 104@file{/u2/emacs/~/foo/bar.txt} is equivalent to @file{~/foo/bar.txt}.
105 105
106 On MS-Windows and MS-DOS systems, where a user doesn't have a home 106 On MS-Windows and MS-DOS systems, where a user doesn't always have a
107directory, Emacs replaces @file{~/} with the value of the environment 107home directory, Emacs uses several alternatives. For MS-Windows, see
108variable @code{HOME}; see @ref{General Variables}. On these systems, 108@ref{Windows HOME}; for MS-DOS, see
109the @file{~@var{user-id}/} construct is supported only for the current 109@ifnottex
110user, i.e., only if @var{user-id} is the current user's login name. 110@ref{MS-DOS File Names, HOME on MS-DOS}.
111@end ifnottex
112@iftex
113@ref{MS-DOS File Names, HOME on MS-DOS,, emacs, the Emacs Manual}, in
114the main Emacs manual.
115@end iftex
116On these systems, the @file{~@var{user-id}/} construct is supported
117only for the current user, i.e., only if @var{user-id} is the current
118user's login name.
111 119
112@vindex insert-default-directory 120@vindex insert-default-directory
113 To prevent Emacs from inserting the default directory when reading 121 To prevent Emacs from inserting the default directory when reading