mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix some minor Tramp problems
* lisp/net/tramp-crypt.el (tramp-crypt-handle-file-exists-p): New defun. (tramp-crypt-file-name-handler-alist): Add it. * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file): Flush proper file properties. * test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs28-p): New defun. (tramp-archive-test48-auto-load): Extend test.
This commit is contained in:
parent
98e8c0b248
commit
8eb129a2ca
3 changed files with 23 additions and 7 deletions
|
|
@ -121,6 +121,12 @@ the origin of the temporary TMPFILE, have no write permissions."
|
|||
(directory-files tmpfile 'full directory-files-no-dot-files-regexp))
|
||||
(delete-directory tmpfile)))
|
||||
|
||||
(defun tramp-archive--test-emacs28-p ()
|
||||
"Check for Emacs version >= 28.1.
|
||||
Some semantics has been changed for there, without new functions or
|
||||
variables, so we check the Emacs version directly."
|
||||
(>= emacs-major-version 28))
|
||||
|
||||
(ert-deftest tramp-archive-test00-availability ()
|
||||
"Test availability of archive file name functions."
|
||||
:expected-result (if tramp-archive-enabled :passed :failed)
|
||||
|
|
@ -912,12 +918,15 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'."
|
|||
(featurep 'tramp-archive))))"))
|
||||
(dolist (enabled '(t nil))
|
||||
(dolist (default-directory
|
||||
`(,temporary-file-directory
|
||||
(append
|
||||
`(,temporary-file-directory)
|
||||
;; Starting Emacs in a directory which has
|
||||
;; `tramp-archive-file-name-regexp' syntax is
|
||||
;; supported only with Emacs > 27.2 (sigh!).
|
||||
;; (Bug#48476)
|
||||
,(file-name-as-directory tramp-archive-test-directory)))
|
||||
(and (tramp-archive--test-emacs28-p)
|
||||
`(,(file-name-as-directory
|
||||
tramp-archive-test-directory)))))
|
||||
(dolist (file `("/mock::foo" ,(concat tramp-archive-test-archive "foo")))
|
||||
(should
|
||||
(string-match
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue