aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorMichael Albinus2017-09-05 15:32:03 +0200
committerMichael Albinus2017-09-05 15:32:03 +0200
commit8d251607e08e1ea4df201928b5bee21782a6526e (patch)
tree28cc94f73465a75e1f2ba1ef82cef3807d84ce54 /doc/lispref
parentc09116e64012534ee244c22f1ba4f2e106f6ed91 (diff)
downloademacs-8d251607e08e1ea4df201928b5bee21782a6526e.tar.gz
emacs-8d251607e08e1ea4df201928b5bee21782a6526e.zip
Doc precisment about remote link targets
* doc/lispref/files.texi (Truenames): Explain handling of targets of `file-truename' and `make-symbolic-link', which look like a remote file name. * etc/NEWS: Precise examples for symlinks which look like remote file names. MUSTBENEW of `write-region' is not propagated to file name handlers.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/files.texi12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 06466c9bba8..d04be63d7ec 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1116,8 +1116,11 @@ file name component immediately preceding @samp{..} will be
1116simplified away before @code{file-truename} is called. To 1116simplified away before @code{file-truename} is called. To
1117eliminate the need for a call to @code{expand-file-name}, 1117eliminate the need for a call to @code{expand-file-name},
1118@code{file-truename} handles @samp{~} in the same way that 1118@code{file-truename} handles @samp{~} in the same way that
1119@code{expand-file-name} does. @xref{File Name Expansion,, Functions 1119@code{expand-file-name} does.
1120that Expand Filenames}. 1120
1121If the target of a symbolic links has remote file name syntax,
1122@code{file-truename} returns it quoted. @xref{File Name Expansion,,
1123Functions that Expand Filenames}.
1121@end defun 1124@end defun
1122 1125
1123@defun file-chase-links filename &optional limit 1126@defun file-chase-links filename &optional limit
@@ -1736,10 +1739,15 @@ is treated only as a string; it need not name an existing file.
1736If @var{ok-if-already-exists} is an integer, indicating interactive 1739If @var{ok-if-already-exists} is an integer, indicating interactive
1737use, then leading @samp{~} is expanded and leading @samp{/:} is 1740use, then leading @samp{~} is expanded and leading @samp{/:} is
1738stripped in the @var{target} string. 1741stripped in the @var{target} string.
1742
1739If @var{target} is a relative file name, the resulting symbolic link 1743If @var{target} is a relative file name, the resulting symbolic link
1740is interpreted relative to the directory containing the symbolic link. 1744is interpreted relative to the directory containing the symbolic link.
1741@xref{Relative File Names}. 1745@xref{Relative File Names}.
1742 1746
1747If both @var{target} and @var{newname} have remote file name syntax,
1748and if both remote identifications are equal, the symbolic link points
1749to the local file name part of @var{target}.
1750
1743This function is not available on systems that don't support symbolic 1751This function is not available on systems that don't support symbolic
1744links. 1752links.
1745@end deffn 1753@end deffn