summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2017-08-12 12:30:39 +0200
committerMichael Albinus <michael.albinus@gmx.de>2017-08-12 12:30:39 +0200
commitec5cfaa4568327b5b0b299be2664f7fdae123292 (patch)
tree7d79d2a4fd23960763365e192b5934e872f0534c /etc
parente94b0d4d54e39b2601b7f3f724d6c6d8a556e89f (diff)
downloademacs-ec5cfaa4568327b5b0b299be2664f7fdae123292.tar.gz
Implement EXCL of write-region for Tramp
* lisp/net/ange-ftp.el (ange-ftp-write-region): * lisp/net/tramp-adb.el (tramp-adb-handle-write-region) * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region) * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Implement MUSTBENEW. * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file) * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link) (tramp-sh-handle-add-name-to-file) (tramp-do-copy-or-rename-file) * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link): Adapt error message for `file-already-exists'. * src/lisp.h: * src/eval.c (call8): New function. * src/fileio.c (write_region): Pass also lockname and mustbenew to the file name handler. * test/lisp/net/tramp-tests.el (tramp-test10-write-region): Add tests for MUSTBENEW.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 0670a7bbf91..3f38153048c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1200,6 +1200,10 @@ particular, the function 'internal--module-call' has been removed.
Code that depends on undocumented internals of the module system might
break.
+---
+** The arguments LOCKNAME and MUSTBENEW of 'write-region' are
+propagated to file name handlers now.
+
* Lisp Changes in Emacs 26.1