diff options
| author | Michael Albinus | 2016-08-10 12:10:26 +0200 |
|---|---|---|
| committer | Michael Albinus | 2016-08-10 12:10:26 +0200 |
| commit | c2664aaab68759ebd8cfb615c1f2fd73f065caa7 (patch) | |
| tree | f352f5cad05914e9329f04a21cdc784ed9c525ed /test/lisp | |
| parent | 5115743b672ed71d704a3afaac8b9bb2e4f09dd7 (diff) | |
| download | emacs-c2664aaab68759ebd8cfb615c1f2fd73f065caa7.tar.gz emacs-c2664aaab68759ebd8cfb615c1f2fd73f065caa7.zip | |
Add compatibility layer for `temporary-file-directory-function'
* lisp/net/tramp-compat.el
(tramp-compat-temporary-file-directory-function): New defalias.
* lisp/net/tramp.el (tramp-handle-make-nearby-temp-file): Use it.
* test/lisp/net/tramp-tests.el (tramp-test32-make-nearby-temp-file):
Skip for older Emacs versions.
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index af705f6ce67..1735693cc21 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -1934,9 +1934,12 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1934 | (ignore-errors (delete-file tmp-name1)) | 1934 | (ignore-errors (delete-file tmp-name1)) |
| 1935 | (ignore-errors (delete-directory tmp-name2 'recursive))))) | 1935 | (ignore-errors (delete-directory tmp-name2 'recursive))))) |
| 1936 | 1936 | ||
| 1937 | ;; The functions have been introduced in Emacs 25.2. | ||
| 1937 | (ert-deftest tramp-test32-make-nearby-temp-file () | 1938 | (ert-deftest tramp-test32-make-nearby-temp-file () |
| 1938 | "Check `make-nearby-temp-file' and `temporary-file-directory'." | 1939 | "Check `make-nearby-temp-file' and `temporary-file-directory'." |
| 1939 | (skip-unless (tramp--test-enabled)) | 1940 | (skip-unless (tramp--test-enabled)) |
| 1941 | (skip-unless | ||
| 1942 | (and (fboundp 'make-nearby-temp-file) (fboundp 'temporary-file-directory))) | ||
| 1940 | 1943 | ||
| 1941 | (let ((default-directory tramp-test-temporary-file-directory) | 1944 | (let ((default-directory tramp-test-temporary-file-directory) |
| 1942 | tmp-file) | 1945 | tmp-file) |