diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/files.texi | 8 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 11 |
2 files changed, 13 insertions, 6 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 9195bc47efe..fa1f9e53165 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -1611,8 +1611,12 @@ attempts to open file @var{new} will refer to whatever file is named | |||
| 1611 | @var{target} at the time the opening is done, or will get an error if | 1611 | @var{target} at the time the opening is done, or will get an error if |
| 1612 | the name @var{target} is nonexistent at that time. This command does | 1612 | the name @var{target} is nonexistent at that time. This command does |
| 1613 | not expand the argument @var{target}, so that it allows you to specify | 1613 | not expand the argument @var{target}, so that it allows you to specify |
| 1614 | a relative name as the target of the link. On MS-Windows, this | 1614 | a relative name as the target of the link. However, this command |
| 1615 | command works only on MS Windows Vista and later. On remote systems, | 1615 | does expand leading @samp{~} in @var{target} so that you can easily |
| 1616 | specify home directories, and strips leading @samp{/:} so that you can | ||
| 1617 | specify relative names beginning with literal @samp{~} or @samp{/:}. | ||
| 1618 | @xref{Quoted File Names}. On MS-Windows, this command works only on | ||
| 1619 | MS Windows Vista and later. When @var{new} is remote, | ||
| 1616 | it works depending on the system type. | 1620 | it works depending on the system type. |
| 1617 | 1621 | ||
| 1618 | @node Misc File Ops | 1622 | @node Misc File Ops |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index f701d683703..06466c9bba8 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -1726,14 +1726,17 @@ default file permissions (see @code{set-default-file-modes} below), if | |||
| 1726 | SELinux context are not copied over in either case. | 1726 | SELinux context are not copied over in either case. |
| 1727 | @end deffn | 1727 | @end deffn |
| 1728 | 1728 | ||
| 1729 | @deffn Command make-symbolic-link filename newname &optional ok-if-already-exists | 1729 | @deffn Command make-symbolic-link target newname &optional ok-if-already-exists |
| 1730 | @pindex ln | 1730 | @pindex ln |
| 1731 | @kindex file-already-exists | 1731 | @kindex file-already-exists |
| 1732 | This command makes a symbolic link to @var{filename}, named | 1732 | This command makes a symbolic link to @var{target}, named |
| 1733 | @var{newname}. This is like the shell command @samp{ln -s | 1733 | @var{newname}. This is like the shell command @samp{ln -s |
| 1734 | @var{filename} @var{newname}}. The @var{filename} argument | 1734 | @var{target} @var{newname}}. The @var{target} argument |
| 1735 | is treated only as a string; it need not name an existing file. | 1735 | is treated only as a string; it need not name an existing file. |
| 1736 | If @var{filename} is a relative file name, the resulting symbolic link | 1736 | If @var{ok-if-already-exists} is an integer, indicating interactive |
| 1737 | use, then leading @samp{~} is expanded and leading @samp{/:} is | ||
| 1738 | stripped in the @var{target} string. | ||
| 1739 | If @var{target} is a relative file name, the resulting symbolic link | ||
| 1737 | is interpreted relative to the directory containing the symbolic link. | 1740 | is interpreted relative to the directory containing the symbolic link. |
| 1738 | @xref{Relative File Names}. | 1741 | @xref{Relative File Names}. |
| 1739 | 1742 | ||