From: Michael Albinus Date: Wed, 13 Dec 2023 12:20:43 +0000 (+0100) Subject: Improve tramp-compat-connection-local-p X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=33aa46fe94f5551d3158a6b2dcb3e81e908bdbd1;p=emacs.git Improve tramp-compat-connection-local-p * lisp/net/tramp-compat.el (tramp-compat-connection-local-p): Make it compatible with Emacs 27. --- diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el index 820d9f07883..e05f371f406 100644 --- a/lisp/net/tramp-compat.el +++ b/lisp/net/tramp-compat.el @@ -310,13 +310,11 @@ Also see `ignore'." ;; Macro `connection-local-p' is new in Emacs 30.1. (if (macrop 'connection-local-p) (defalias 'tramp-compat-connection-local-p #'connection-local-p) - (defmacro tramp-compat-connection-local-p (variable &optional application) - "Non-nil if VARIABLE has a connection-local binding in `default-directory'. -If APPLICATION is nil, the value of -`connection-local-default-application' is used." + (defmacro tramp-compat-connection-local-p (variable) + "Non-nil if VARIABLE has a connection-local binding in `default-directory'." `(let (connection-local-variables-alist file-local-variables-alist) (hack-connection-local-variables - (connection-local-criteria-for-default-directory ,application)) + (connection-local-criteria-for-default-directory)) (and (assq ',variable connection-local-variables-alist) t)))) (dolist (elt (all-completions "tramp-compat-" obarray 'functionp))