Make the example more intuitive.
* doc/lispref/files.texi (File Name Expansion): Make the example more intuitive.
This commit is contained in:
parent
8e16fb987d
commit
823777b533
2 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-06-11 Xue Fuqiao <xfq.free@gmail.com>
|
||||
|
||||
* files.texi (File Name Expansion): Make the example more
|
||||
intuitive.
|
||||
|
||||
2013-06-10 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Documentation fix for 'ls' and hard links.
|
||||
|
|
|
@ -2105,10 +2105,6 @@ start with @samp{~}.) Otherwise, the current buffer's value of
|
|||
(expand-file-name "foo" "/usr/spool/")
|
||||
@result{} "/usr/spool/foo"
|
||||
@end group
|
||||
@group
|
||||
(expand-file-name "$HOME/foo")
|
||||
@result{} "/xcssun/users/rms/lewis/$HOME/foo"
|
||||
@end group
|
||||
@end example
|
||||
|
||||
If the part of the combined file name before the first slash is
|
||||
|
@ -2142,7 +2138,14 @@ This is for the sake of filesystems that have the concept of a
|
|||
@file{/../} is interpreted exactly the same as @file{/}.
|
||||
|
||||
Note that @code{expand-file-name} does @emph{not} expand environment
|
||||
variables; only @code{substitute-in-file-name} does that.
|
||||
variables; only @code{substitute-in-file-name} does that:
|
||||
|
||||
@example
|
||||
@group
|
||||
(expand-file-name "$HOME/foo")
|
||||
@result{} "/xcssun/users/rms/lewis/$HOME/foo"
|
||||
@end group
|
||||
@end example
|
||||
|
||||
Note also that @code{expand-file-name} does not follow symbolic links
|
||||
at any level. This results in a difference between the way
|
||||
|
|
Loading…
Add table
Reference in a new issue