1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-04 22:50:59 -08:00
emacs/test/lisp
Michael Albinus 2c0506173d Add make-nearby-temp-file' and temporary-file-directory'
* doc/lispref/files.texi (Unique File Names):
Introduce `make-nearby-temp-file' and `temporary-file-directory'.
(Magic File Names): Mention `make-nearby-temp-file' and
`temporary-file-directory'.

* etc/NEWS (provided): Mention `make-nearby-temp-file' and
`temporary-file-directory'.

* lisp/files.el (mounted-file-systems): New defcustom.
(temporary-file-directory, make-nearby-temp-file): New defuns.
(normal-backup-enable-predicate): Fix docstring.

* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
<make-nearby-temp-file, temporary-file-directory>: Add handler.

* lisp/net/tramp.el (tramp-file-name-for-operation):
Add `make-nearby-temp-file' and `temporary-file-directory'.
(tramp-get-remote-tmpdir): Remove compatibility code.
(tramp-handle-temporary-file-directory)
(tramp-handle-make-nearby-temp-file): New defuns.

* lisp/org/ob-core.el (org-babel-local-file-name):
* lisp/progmodes/gud.el (gud-common-init):
* lisp/vc/vc-hooks.el (vc-user-login-name): Use `file-remote-p'.

* lisp/vc/vc-git.el (vc-git-checkin): Handle remote log message.

* test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
Check `tramp--test-enabled'.
(tramp-test18-file-attributes): Add tests for
`file-ownership-preserved-p'.
(tramp-test27-start-file-process, tramp-test28-shell-command):
Reduce timeouts in `accept-process-output'.
(tramp-test--shell-command-to-string-asynchronously): Add timeout.
(tramp-test29-environment-variables): Remove additional sleep calls.
(tramp-test32-make-nearby-temp-file): New test.
(tramp--test-special-characters, tramp--test-utf8): Adapt docstring.
(tramp-test33-special-characters)
(tramp-test33-special-characters-with-stat)
(tramp-test33-special-characters-with-perl)
(tramp-test33-special-characters-with-ls, tramp-test34-utf8)
(tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
(tramp-test34-utf8-with-ls)
(tramp-test35-asynchronous-requests)
(tramp-test36-recursive-load, tramp-test37-unload): Rename.
(tramp--test-ftp-p): Simplify check.
(tramp--test-sh-p): New defun.
(tramp-test20-file-modes, tramp-test22-file-times)
(tramp-test26-process-file, tramp-test27-start-file-process)
(tramp-test28-shell-command)
(tramp-test29-environment-variables)
(tramp-test30-vc-registered)
(tramp-test33-special-characters-with-stat)
(tramp-test33-special-characters-with-perl)
(tramp-test33-special-characters-with-ls)
(tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
(tramp-test34-utf8-with-ls)
(tramp-test35-asynchronous-requests): Use it.
2016-08-07 13:57:23 +02:00
..
calc Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
calendar Remove ‘ert-with-function-mocked’ macro in favour of ‘cl-letf’ macro 2016-06-08 19:10:59 +02:00
emacs-lisp Fix seq-contains 2016-06-18 10:10:00 +02:00
emulation Spelling and minor grammar fixes 2016-08-05 13:35:13 -07:00
erc Fix failing test 2016-07-21 21:51:24 +09:00
eshell Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
gnus Remove ‘ert-with-function-mocked’ macro in favour of ‘cl-letf’ macro 2016-06-08 19:10:59 +02:00
international Add tests for ucs-normalize.el 2016-07-16 13:01:04 -04:00
legacy Added tests for dos unibyte decoding. 2016-05-21 00:13:43 -04:00
mail ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
net Add make-nearby-temp-file' and temporary-file-directory' 2016-08-07 13:57:23 +02:00
progmodes * cl-generic.el: Fix problems introduced by new load-history format 2016-08-02 13:01:26 -04:00
textmodes Complete "initial" and "unset" in CSS mode 2016-07-06 19:25:10 +02:00
url * test/lisp/url/url-auth-tests.el (url-auth-test-digest-auth): 2016-02-12 21:18:13 -05:00
vc Remove ‘ert-with-function-mocked’ macro in favour of ‘cl-letf’ macro 2016-06-08 19:10:59 +02:00
abbrev-tests.el abbrev-tests.el fix 2016-05-03 19:21:47 +02:00
auth-source-tests.el Move low-level library files from the lisp/gnus directory 2016-02-24 13:04:03 +11:00
autorevert-tests.el autorevert: Resume with polling if file is deleted 2016-04-19 11:05:55 +02:00
char-fold-tests.el Merge from origin/emacs-25 2016-05-26 12:55:06 -07:00
comint-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
dabbrev-tests.el * test/lisp/dabbrev-tests.el: Merge fix: move here from test/automated. 2016-03-16 08:58:10 -07:00
descr-text-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
dired-tests.el Fix dired-test-bug22694 2016-07-27 12:30:43 -04:00
electric-tests.el Merge from origin/emacs-25 2016-05-02 10:46:53 -07:00
epg-tests.el epg: Add a way to detect gpg1 executable for tests 2016-05-20 16:29:04 +09:00
faces-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
filenotify-tests.el ; Simplify in filenotify-tests.el 2016-06-20 15:05:52 +02:00
help-fns-tests.el Detect aliases to built-in functions 2016-07-09 22:56:25 +09:00
htmlfontify-tests.el ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
ibuffer-tests.el ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
imenu-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
info-xref-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
isearch-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
jit-lock-tests.el Fix the jit-lock-fontify-now test names 2016-05-09 12:29:38 +03:00
json-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
man-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
minibuffer-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
mouse-tests.el ; * test/lisp/mouse-tests.el: Standardize license notice. 2016-05-22 17:20:48 -07:00
obarray-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
ps-print-tests.el ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
replace-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
simple-tests.el Merge from origin/emacs-25 2016-08-05 14:07:00 -07:00
sort-tests.el Merge from origin/emacs-25 2016-04-11 09:07:15 -07:00
subr-tests.el Merge from origin/emacs-25 2016-05-31 08:07:41 -07:00
thingatpt-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
xml-tests.el Merge from origin/emacs-25 2016-03-11 13:32:13 -08:00
xt-mouse-tests.el * test/lisp/xt-mouse-tests.el: Move from test/automated/. 2016-04-23 10:46:08 -07:00