aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2024-06-01 19:22:21 +0200
committerMichael Albinus2024-06-01 19:22:21 +0200
commitf0cd7eab0967c787703f144ac9d7c04e1d866306 (patch)
tree1dae64242b7b5c9d01d6dbd45bec70f67ecbaefa
parenta154f0aa73bceeaaeefcd243e7db9d09e3f450d7 (diff)
downloademacs-f0cd7eab0967c787703f144ac9d7c04e1d866306.tar.gz
emacs-f0cd7eab0967c787703f144ac9d7c04e1d866306.zip
Minor Tramp changes
* lisp/net/tramp-adb.el: * lisp/net/tramp-container.el: Add myself as maintainer. * lisp/net/tramp-compat.el (connection-local-default-application): Define if not bound. (tramp-compat-connection-local-p, tramp-compat-connection-local-value): Use it.
-rw-r--r--lisp/net/tramp-adb.el1
-rw-r--r--lisp/net/tramp-compat.el20
-rw-r--r--lisp/net/tramp-container.el1
3 files changed, 16 insertions, 6 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index b794d8b481a..9db313e3ed0 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -3,6 +3,7 @@
3;; Copyright (C) 2011-2024 Free Software Foundation, Inc. 3;; Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 4
5;; Author: Jürgen Hötzel <juergen@archlinux.org> 5;; Author: Jürgen Hötzel <juergen@archlinux.org>
6;; Maintainer: Michael Albinus <michael.albinus@gmx.de>
6;; Keywords: comm, processes 7;; Keywords: comm, processes
7;; Package: tramp 8;; Package: tramp
8 9
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index bbffdf7f3d9..f1e7a801ec1 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -304,6 +304,12 @@ Also see `ignore'."
304 (lambda (function sequence) 304 (lambda (function sequence)
305 (delq nil (seq-map function sequence))))) 305 (delq nil (seq-map function sequence)))))
306 306
307;; User option `connection-local-default-application' is new in Emacs 29.1.
308(unless (boundp 'connection-local-default-application)
309 (defvar connection-local-default-application 'tramp
310 "Default application in connection-local functions, a symbol.
311This variable must not be changed globally."))
312
307;; User option `password-colon-equivalents' is new in Emacs 30.1. 313;; User option `password-colon-equivalents' is new in Emacs 30.1.
308(if (boundp 'password-colon-equivalents) 314(if (boundp 'password-colon-equivalents)
309 (defvaralias 315 (defvaralias
@@ -329,9 +335,10 @@ If APPLICATION is nil, the value of
329 (declare (debug (symbolp &optional form))) 335 (declare (debug (symbolp &optional form)))
330 (unless (symbolp variable) 336 (unless (symbolp variable)
331 (signal 'wrong-type-argument (list 'symbolp variable))) 337 (signal 'wrong-type-argument (list 'symbolp variable)))
332 `(let ((criteria 338 `(let* ((connection-local-default-application
333 (connection-local-criteria-for-default-directory ,application)) 339 (or ,application connection-local-default-application))
334 connection-local-variables-alist file-local-variables-alist) 340 (criteria (connection-local-criteria-for-default-directory))
341 connection-local-variables-alist file-local-variables-alist)
335 (when criteria 342 (when criteria
336 (hack-connection-local-variables criteria) 343 (hack-connection-local-variables criteria)
337 (and (assq ',variable connection-local-variables-alist) t))))) 344 (and (assq ',variable connection-local-variables-alist) t)))))
@@ -348,9 +355,10 @@ value is the default binding of the variable."
348 (declare (debug (symbolp &optional form))) 355 (declare (debug (symbolp &optional form)))
349 (unless (symbolp variable) 356 (unless (symbolp variable)
350 (signal 'wrong-type-argument (list 'symbolp variable))) 357 (signal 'wrong-type-argument (list 'symbolp variable)))
351 `(let ((criteria 358 `(let* ((connection-local-default-application
352 (connection-local-criteria-for-default-directory ,application)) 359 (or ,application connection-local-default-application))
353 connection-local-variables-alist file-local-variables-alist) 360 (criteria (connection-local-criteria-for-default-directory))
361 connection-local-variables-alist file-local-variables-alist)
354 (if (not criteria) 362 (if (not criteria)
355 ,variable 363 ,variable
356 (hack-connection-local-variables criteria) 364 (hack-connection-local-variables criteria)
diff --git a/lisp/net/tramp-container.el b/lisp/net/tramp-container.el
index 278ce033da6..d0edbfea1e8 100644
--- a/lisp/net/tramp-container.el
+++ b/lisp/net/tramp-container.el
@@ -3,6 +3,7 @@
3;; Copyright © 2022-2024 Free Software Foundation, Inc. 3;; Copyright © 2022-2024 Free Software Foundation, Inc.
4 4
5;; Author: Brian Cully <bjc@kublai.com> 5;; Author: Brian Cully <bjc@kublai.com>
6;; Maintainer: Michael Albinus <michael.albinus@gmx.de>
6;; Keywords: comm, processes 7;; Keywords: comm, processes
7;; Package: tramp 8;; Package: tramp
8 9