aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Albinus2017-09-05 15:32:03 +0200
committerMichael Albinus2017-09-05 15:32:03 +0200
commit8d251607e08e1ea4df201928b5bee21782a6526e (patch)
tree28cc94f73465a75e1f2ba1ef82cef3807d84ce54 /etc
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 'etc')
-rw-r--r--etc/NEWS38
1 files changed, 25 insertions, 13 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 2b0c86d7afb..2824349a537 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1210,23 +1210,35 @@ The following changes are involved.
1210--- 1210---
1211*** 'file-attributes' and 'file-symlink-p' no longer prepend "/:" to 1211*** 'file-attributes' and 'file-symlink-p' no longer prepend "/:" to
1212symbolic links whose targets begin with "/" and contain ":". For 1212symbolic links whose targets begin with "/" and contain ":". For
1213example, if a symbolic link "x" has a target "/y:z", (file-symlink-p 1213example, if a symbolic link "x" has a target "/y:z:", '(file-symlink-p
1214"x") now returns "/y:z" rather than "/:/y:z". 1214"x")' now returns "/y:z:" rather than "/:/y:z:".
1215 1215
1216--- 1216---
1217*** 'make-symbolic-link' no longer looks for file name handlers when 1217*** 'make-symbolic-link' no longer looks for file name handlers of
1218creating a local symbolic link. For example, (make-symbolic-link 1218target when creating a symbolic link. For example,
1219"/y:z" "x") now creates a symlink to "/y:z" instead of failing. 1219'(make-symbolic-link "/y:z:" "x")' now creates a symbolic link to
1220"/y:z:" instead of failing.
1221
1222+++
1223*** 'make-symbolic-link' removes the remote part of a link target if
1224target and newname have the same remote part. For example,
1225'(make-symbolic-link "/x:y:a" "/x:y:b")' creates a link with the
1226literal string "a"; and '(make-symbolic-link "/x:y:a" "/x:z:b")'
1227creates a link with the literal string "/x:y:a" instead of failing.
1220 1228
1221+++ 1229+++
1222*** 'make-symbolic-link' now expands a link target with leading "~" 1230*** 'make-symbolic-link' now expands a link target with leading "~"
1223only when the optional third arg is an integer, as when invoked 1231only when the optional third arg is an integer, as when invoked
1224interactively. For example, (make-symbolic-link "~y" "x") now creates 1232interactively. For example, '(make-symbolic-link "~y" "x")' now
1225a link with target the literal string "~y"; to get the old behavior, 1233creates a link with target the literal string "~y"; to get the old
1226use (make-symbolic-link (expand-file-name "~y") "x"). To avoid this 1234behavior, use '(make-symbolic-link (expand-file-name "~y") "x")'. To
1227expansion in interactive use, you can now prefix the link target with 1235avoid this expansion in interactive use, you can now prefix the link
1228"/:". For example, (make-symbolic-link "/:~y" "x" 1) now creates a 1236target with "/:". For example, '(make-symbolic-link "/:~y" "x" 1)'
1229link to literal "~y". 1237now creates a link to literal "~y".
1238
1239+++
1240** 'file-truename' returns a quoted file name if the target of a
1241symbolic link has remote file name syntax.
1230 1242
1231+++ 1243+++
1232** Module functions are now implemented slightly differently; in 1244** Module functions are now implemented slightly differently; in
@@ -1235,8 +1247,8 @@ Code that depends on undocumented internals of the module system might
1235break. 1247break.
1236 1248
1237--- 1249---
1238** The arguments LOCKNAME and MUSTBENEW of 'write-region' are 1250** The argument LOCKNAME of 'write-region' is propagated to file name
1239propagated to file name handlers now. 1251handlers now.
1240 1252
1241--- 1253---
1242** When built against recent versions of GTK+, Emacs always uses 1254** When built against recent versions of GTK+, Emacs always uses