diff options
| author | Michael Albinus | 2017-09-05 15:32:03 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-09-05 15:32:03 +0200 |
| commit | 8d251607e08e1ea4df201928b5bee21782a6526e (patch) | |
| tree | 28cc94f73465a75e1f2ba1ef82cef3807d84ce54 /doc/lispref | |
| parent | c09116e64012534ee244c22f1ba4f2e106f6ed91 (diff) | |
| download | emacs-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.texi | 12 |
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 | |||
| 1116 | simplified away before @code{file-truename} is called. To | 1116 | simplified away before @code{file-truename} is called. To |
| 1117 | eliminate the need for a call to @code{expand-file-name}, | 1117 | eliminate 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. |
| 1120 | that Expand Filenames}. | 1120 | |
| 1121 | If the target of a symbolic links has remote file name syntax, | ||
| 1122 | @code{file-truename} returns it quoted. @xref{File Name Expansion,, | ||
| 1123 | Functions 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. | |||
| 1736 | If @var{ok-if-already-exists} is an integer, indicating interactive | 1739 | If @var{ok-if-already-exists} is an integer, indicating interactive |
| 1737 | use, then leading @samp{~} is expanded and leading @samp{/:} is | 1740 | use, then leading @samp{~} is expanded and leading @samp{/:} is |
| 1738 | stripped in the @var{target} string. | 1741 | stripped in the @var{target} string. |
| 1742 | |||
| 1739 | If @var{target} is a relative file name, the resulting symbolic link | 1743 | If @var{target} is a relative file name, the resulting symbolic link |
| 1740 | is interpreted relative to the directory containing the symbolic link. | 1744 | is interpreted relative to the directory containing the symbolic link. |
| 1741 | @xref{Relative File Names}. | 1745 | @xref{Relative File Names}. |
| 1742 | 1746 | ||
| 1747 | If both @var{target} and @var{newname} have remote file name syntax, | ||
| 1748 | and if both remote identifications are equal, the symbolic link points | ||
| 1749 | to the local file name part of @var{target}. | ||
| 1750 | |||
| 1743 | This function is not available on systems that don't support symbolic | 1751 | This function is not available on systems that don't support symbolic |
| 1744 | links. | 1752 | links. |
| 1745 | @end deffn | 1753 | @end deffn |