aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPo Lu2023-05-16 09:27:27 +0800
committerPo Lu2023-05-16 09:27:27 +0800
commit44da7d75ed3fa6322d64d66d250bc78e91636ff5 (patch)
tree15ce59803522a9ef35c1cd4608063a203eb88ce6 /lisp
parent4247b2a723e5a3a04c4ea71ffc469cb4d9e094b1 (diff)
parent5289c2b3eba942b93f2b5daab8657008e5fc465d (diff)
downloademacs-44da7d75ed3fa6322d64d66d250bc78e91636ff5.tar.gz
emacs-44da7d75ed3fa6322d64d66d250bc78e91636ff5.zip
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/eudc-vars.el7
-rw-r--r--lisp/net/tramp-crypt.el7
-rw-r--r--lisp/net/tramp-smb.el10
3 files changed, 18 insertions, 6 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