diff options
| author | Michael Albinus | 2017-08-12 12:30:39 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-08-12 12:30:39 +0200 |
| commit | ec5cfaa4568327b5b0b299be2664f7fdae123292 (patch) | |
| tree | 7d79d2a4fd23960763365e192b5934e872f0534c /src/eval.c | |
| parent | e94b0d4d54e39b2601b7f3f724d6c6d8a556e89f (diff) | |
| download | emacs-ec5cfaa4568327b5b0b299be2664f7fdae123292.tar.gz emacs-ec5cfaa4568327b5b0b299be2664f7fdae123292.zip | |
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 'src/eval.c')
| -rw-r--r-- | src/eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index fe2708b1bbc..e3e7d8e26b2 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2660,6 +2660,17 @@ call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | |||
| 2660 | return CALLN (Ffuncall, fn, arg1, arg2, arg3, arg4, arg5, arg6, arg7); | 2660 | return CALLN (Ffuncall, fn, arg1, arg2, arg3, arg4, arg5, arg6, arg7); |
| 2661 | } | 2661 | } |
| 2662 | 2662 | ||
| 2663 | /* Call function fn with 8 arguments arg1, arg2, arg3, arg4, arg5, | ||
| 2664 | arg6, arg7, arg8. */ | ||
| 2665 | /* ARGSUSED */ | ||
| 2666 | Lisp_Object | ||
| 2667 | call8 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | ||
| 2668 | Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6, Lisp_Object arg7, | ||
| 2669 | Lisp_Object arg8) | ||
| 2670 | { | ||
| 2671 | return CALLN (Ffuncall, fn, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); | ||
| 2672 | } | ||
| 2673 | |||
| 2663 | DEFUN ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0, | 2674 | DEFUN ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0, |
| 2664 | doc: /* Non-nil if OBJECT is a function. */) | 2675 | doc: /* Non-nil if OBJECT is a function. */) |
| 2665 | (Lisp_Object object) | 2676 | (Lisp_Object object) |