From: Michael Albinus Date: Sun, 14 Mar 2021 08:27:42 +0000 (+0100) Subject: * lisp/net/tramp-crypt.el (tramp-crypt-add-directory): X-Git-Tag: emacs-28.0.90~3282 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ebfb4c2789733d7ff11d08a595faa5804196c8e5;p=emacs.git * lisp/net/tramp-crypt.el (tramp-crypt-add-directory): Don't autoload setting property `completion-predicate'. --- diff --git a/lisp/net/tramp-crypt.el b/lisp/net/tramp-crypt.el index 278fb9d8732..f44be449e25 100644 --- a/lisp/net/tramp-crypt.el +++ b/lisp/net/tramp-crypt.el @@ -477,7 +477,6 @@ See `tramp-crypt-do-encrypt-or-decrypt-file'." Files in that directory and all subdirectories will be encrypted before copying to, and decrypted after copying from that directory. File names will be also encrypted." - ;; (declare (completion tramp-crypt-enabled-p)) (interactive "DRemote directory name: ") (unless tramp-crypt-enabled (tramp-user-error nil "Feature is not enabled.")) @@ -490,8 +489,7 @@ directory. File names will be also encrypted." (setq tramp-crypt-directories (cons name tramp-crypt-directories))) (tramp-register-file-name-handlers)) -;; Starting with Emacs 28.1, this can be replaced by the "(declare ...)" form. -;;;###tramp-autoload +;; `tramp-crypt-enabled-p' is not autoloaded, and this setting isn't either. (function-put #'tramp-crypt-add-directory 'completion-predicate #'tramp-crypt-enabled-p)