]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve tramp-compat-connection-local-p
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 13 Dec 2023 12:20:43 +0000 (13:20 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 13 Dec 2023 12:20:43 +0000 (13:20 +0100)
* lisp/net/tramp-compat.el (tramp-compat-connection-local-p):
Make it compatible with Emacs 27.

lisp/net/tramp-compat.el

index 820d9f07883f081ad8dc29e2903fbe7cc42315fc..e05f371f4062b152edfdfc1d96805fe10b12d8a8 100644 (file)
@@ -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))