Merge remote-tracking branch 'origin/master' into feature/android
This commit is contained in:
commit
44da7d75ed
5 changed files with 30 additions and 9 deletions
|
@ -441,7 +441,12 @@ BBDB fields. SPECs are sexps which are evaluated:
|
|||
"LDAP attributes which are always searched for without wildcard character.
|
||||
This is the list of special dictionary-valued attributes, where
|
||||
wildcarded search may fail. For example, it fails with
|
||||
objectclass in Active Directory servers."
|
||||
objectclass in Active Directory servers.
|
||||
|
||||
You may not want functions like `eudc-query-form' and
|
||||
`eudc-expand-inline' to do LDAP wildcard expansion by default on
|
||||
certain fields. If so, add the relevant symbol to this list, for
|
||||
example `samaccountname' for the \"E-Mail\" field."
|
||||
:type '(repeat (symbol :tag "Directory attribute")))
|
||||
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ If NAME doesn't belong to an encrypted remote directory, return nil."
|
|||
(file-directory-p . tramp-handle-file-directory-p)
|
||||
(file-equal-p . tramp-handle-file-equal-p)
|
||||
(file-executable-p . tramp-crypt-handle-file-executable-p)
|
||||
(file-exists-p . tramp-handle-file-exists-p)
|
||||
(file-exists-p . tramp-crypt-handle-file-exists-p)
|
||||
;; `file-group-gid' performed by default-handler.
|
||||
(file-in-directory-p . tramp-handle-file-in-directory-p)
|
||||
(file-local-copy . tramp-handle-file-local-copy)
|
||||
|
@ -723,6 +723,11 @@ absolute file names."
|
|||
(let (tramp-crypt-enabled)
|
||||
(file-executable-p (tramp-crypt-encrypt-file-name filename))))
|
||||
|
||||
(defun tramp-crypt-handle-file-exists-p (filename)
|
||||
"Like `file-exists-p' for Tramp files."
|
||||
(let (tramp-crypt-enabled)
|
||||
(file-exists-p (tramp-crypt-encrypt-file-name filename))))
|
||||
|
||||
(defun tramp-crypt-handle-file-locked-p (filename)
|
||||
"Like `file-locked-p' for Tramp files."
|
||||
(let (tramp-crypt-enabled)
|
||||
|
|
|
@ -637,9 +637,6 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
|
|||
(not (directory-name-p newname)))
|
||||
(tramp-error v 'file-error "File is a directory %s" newname))
|
||||
|
||||
;; We must also flush the cache of the directory, because
|
||||
;; `file-attributes' reads the values from there.
|
||||
(tramp-flush-file-properties v localname)
|
||||
(unless (tramp-smb-get-share v)
|
||||
(tramp-error
|
||||
v 'file-error "Target `%s' must contain a share name" newname))
|
||||
|
@ -648,7 +645,12 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
|
|||
(tramp-smb-shell-quote-argument filename)
|
||||
(tramp-smb-shell-quote-localname v)))
|
||||
(tramp-error
|
||||
v 'file-error "Cannot copy `%s' to `%s'" filename newname)))))
|
||||
v 'file-error "Cannot copy `%s' to `%s'" filename newname))
|
||||
|
||||
;; When newname did exist, we have wrong cached values.
|
||||
(when (tramp-tramp-file-p newname)
|
||||
(with-parsed-tramp-file-name newname v2
|
||||
(tramp-flush-file-properties v2 v2-localname))))))
|
||||
|
||||
;; KEEP-DATE handling.
|
||||
(when keep-date
|
||||
|
|
|
@ -124,7 +124,7 @@ gl_cv_func_pthread_sigmask_return_works=yes
|
|||
gl_cv_func_pthread_sigmask_unblock_works="not relevant"
|
||||
gl_cv_func_pthread_sigmask_macro=no
|
||||
# Implemented in w32proc.c
|
||||
emacs_cv_langinfo_codeset=yes
|
||||
am_cv_langinfo_codeset=yes
|
||||
emacs_cv_langinfo__nl_paper_width=yes
|
||||
# Declared in ms-w32.h
|
||||
ac_cv_have_decl_alarm=yes
|
||||
|
|
|
@ -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
Reference in a new issue