aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2023-05-16 09:27:27 +0800
committerPo Lu2023-05-16 09:27:27 +0800
commit44da7d75ed3fa6322d64d66d250bc78e91636ff5 (patch)
tree15ce59803522a9ef35c1cd4608063a203eb88ce6
parent4247b2a723e5a3a04c4ea71ffc469cb4d9e094b1 (diff)
parent5289c2b3eba942b93f2b5daab8657008e5fc465d (diff)
downloademacs-44da7d75ed3fa6322d64d66d250bc78e91636ff5.tar.gz
emacs-44da7d75ed3fa6322d64d66d250bc78e91636ff5.zip
Merge remote-tracking branch 'origin/master' into feature/android
-rw-r--r--lisp/net/eudc-vars.el7
-rw-r--r--lisp/net/tramp-crypt.el7
-rw-r--r--lisp/net/tramp-smb.el10
-rw-r--r--nt/mingw-cfg.site2
-rw-r--r--test/lisp/net/tramp-archive-tests.el13
5 files changed, 30 insertions, 9 deletions
diff --git a/lisp/net/eudc-vars.el b/lisp/net/eudc-vars.el
index 12f5347bd35..b3aa23f5827 100644
--- a/lisp/net/eudc-vars.el
+++ b/lisp/net/eudc-vars.el
@@ -441,7 +441,12 @@ BBDB fields. SPECs are sexps which are evaluated:
441 "LDAP attributes which are always searched for without wildcard character. 441 "LDAP attributes which are always searched for without wildcard character.
442This is the list of special dictionary-valued attributes, where 442This is the list of special dictionary-valued attributes, where
443wildcarded search may fail. For example, it fails with 443wildcarded search may fail. For example, it fails with
444objectclass in Active Directory servers." 444objectclass in Active Directory servers.
445
446You may not want functions like `eudc-query-form' and
447`eudc-expand-inline' to do LDAP wildcard expansion by default on
448certain fields. If so, add the relevant symbol to this list, for
449example `samaccountname' for the \"E-Mail\" field."
445 :type '(repeat (symbol :tag "Directory attribute"))) 450 :type '(repeat (symbol :tag "Directory attribute")))
446 451
447 452
diff --git a/lisp/net/tramp-crypt.el b/lisp/net/tramp-crypt.el
index 276b65fcfb3..9d52966b817 100644
--- a/lisp/net/tramp-crypt.el
+++ b/lisp/net/tramp-crypt.el
@@ -180,7 +180,7 @@ If NAME doesn't belong to an encrypted remote directory, return nil."
180 (file-directory-p . tramp-handle-file-directory-p) 180 (file-directory-p . tramp-handle-file-directory-p)
181 (file-equal-p . tramp-handle-file-equal-p) 181 (file-equal-p . tramp-handle-file-equal-p)
182 (file-executable-p . tramp-crypt-handle-file-executable-p) 182 (file-executable-p . tramp-crypt-handle-file-executable-p)
183 (file-exists-p . tramp-handle-file-exists-p) 183 (file-exists-p . tramp-crypt-handle-file-exists-p)
184 ;; `file-group-gid' performed by default-handler. 184 ;; `file-group-gid' performed by default-handler.
185 (file-in-directory-p . tramp-handle-file-in-directory-p) 185 (file-in-directory-p . tramp-handle-file-in-directory-p)
186 (file-local-copy . tramp-handle-file-local-copy) 186 (file-local-copy . tramp-handle-file-local-copy)
@@ -723,6 +723,11 @@ absolute file names."
723 (let (tramp-crypt-enabled) 723 (let (tramp-crypt-enabled)
724 (file-executable-p (tramp-crypt-encrypt-file-name filename)))) 724 (file-executable-p (tramp-crypt-encrypt-file-name filename))))
725 725
726(defun tramp-crypt-handle-file-exists-p (filename)
727 "Like `file-exists-p' for Tramp files."
728 (let (tramp-crypt-enabled)
729 (file-exists-p (tramp-crypt-encrypt-file-name filename))))
730
726(defun tramp-crypt-handle-file-locked-p (filename) 731(defun tramp-crypt-handle-file-locked-p (filename)
727 "Like `file-locked-p' for Tramp files." 732 "Like `file-locked-p' for Tramp files."
728 (let (tramp-crypt-enabled) 733 (let (tramp-crypt-enabled)
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index 1182501e820..dab85c5160e 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -637,9 +637,6 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
637 (not (directory-name-p newname))) 637 (not (directory-name-p newname)))
638 (tramp-error v 'file-error "File is a directory %s" newname)) 638 (tramp-error v 'file-error "File is a directory %s" newname))
639 639
640 ;; We must also flush the cache of the directory, because
641 ;; `file-attributes' reads the values from there.
642 (tramp-flush-file-properties v localname)
643 (unless (tramp-smb-get-share v) 640 (unless (tramp-smb-get-share v)
644 (tramp-error 641 (tramp-error
645 v 'file-error "Target `%s' must contain a share name" newname)) 642 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."
648 (tramp-smb-shell-quote-argument filename) 645 (tramp-smb-shell-quote-argument filename)
649 (tramp-smb-shell-quote-localname v))) 646 (tramp-smb-shell-quote-localname v)))
650 (tramp-error 647 (tramp-error
651 v 'file-error "Cannot copy `%s' to `%s'" filename newname))))) 648 v 'file-error "Cannot copy `%s' to `%s'" filename newname))
649
650 ;; When newname did exist, we have wrong cached values.
651 (when (tramp-tramp-file-p newname)
652 (with-parsed-tramp-file-name newname v2
653 (tramp-flush-file-properties v2 v2-localname))))))
652 654
653 ;; KEEP-DATE handling. 655 ;; KEEP-DATE handling.
654 (when keep-date 656 (when keep-date
diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site
index 0e8c3aca3bb..e8b4711f548 100644
--- a/nt/mingw-cfg.site
+++ b/nt/mingw-cfg.site
@@ -124,7 +124,7 @@ gl_cv_func_pthread_sigmask_return_works=yes
124gl_cv_func_pthread_sigmask_unblock_works="not relevant" 124gl_cv_func_pthread_sigmask_unblock_works="not relevant"
125gl_cv_func_pthread_sigmask_macro=no 125gl_cv_func_pthread_sigmask_macro=no
126# Implemented in w32proc.c 126# Implemented in w32proc.c
127emacs_cv_langinfo_codeset=yes 127am_cv_langinfo_codeset=yes
128emacs_cv_langinfo__nl_paper_width=yes 128emacs_cv_langinfo__nl_paper_width=yes
129# Declared in ms-w32.h 129# Declared in ms-w32.h
130ac_cv_have_decl_alarm=yes 130ac_cv_have_decl_alarm=yes
diff --git a/test/lisp/net/tramp-archive-tests.el b/test/lisp/net/tramp-archive-tests.el
index 80ec67da8d2..5485b12f74f 100644
--- a/test/lisp/net/tramp-archive-tests.el
+++ b/test/lisp/net/tramp-archive-tests.el
@@ -121,6 +121,12 @@ the origin of the temporary TMPFILE, have no write permissions."
121 (directory-files tmpfile 'full directory-files-no-dot-files-regexp)) 121 (directory-files tmpfile 'full directory-files-no-dot-files-regexp))
122 (delete-directory tmpfile))) 122 (delete-directory tmpfile)))
123 123
124(defun tramp-archive--test-emacs28-p ()
125 "Check for Emacs version >= 28.1.
126Some semantics has been changed for there, without new functions or
127variables, so we check the Emacs version directly."
128 (>= emacs-major-version 28))
129
124(ert-deftest tramp-archive-test00-availability () 130(ert-deftest tramp-archive-test00-availability ()
125 "Test availability of archive file name functions." 131 "Test availability of archive file name functions."
126 :expected-result (if tramp-archive-enabled :passed :failed) 132 :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'."
912 (featurep 'tramp-archive))))")) 918 (featurep 'tramp-archive))))"))
913 (dolist (enabled '(t nil)) 919 (dolist (enabled '(t nil))
914 (dolist (default-directory 920 (dolist (default-directory
915 `(,temporary-file-directory 921 (append
922 `(,temporary-file-directory)
916 ;; Starting Emacs in a directory which has 923 ;; Starting Emacs in a directory which has
917 ;; `tramp-archive-file-name-regexp' syntax is 924 ;; `tramp-archive-file-name-regexp' syntax is
918 ;; supported only with Emacs > 27.2 (sigh!). 925 ;; supported only with Emacs > 27.2 (sigh!).
919 ;; (Bug#48476) 926 ;; (Bug#48476)
920 ,(file-name-as-directory tramp-archive-test-directory))) 927 (and (tramp-archive--test-emacs28-p)
928 `(,(file-name-as-directory
929 tramp-archive-test-directory)))))
921 (dolist (file `("/mock::foo" ,(concat tramp-archive-test-archive "foo"))) 930 (dolist (file `("/mock::foo" ,(concat tramp-archive-test-archive "foo")))
922 (should 931 (should
923 (string-match 932 (string-match