From: Michael Albinus Date: Wed, 23 Aug 2023 09:01:58 +0000 (+0200) Subject: Tramp cleanup X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5bdffc2ddb2d5fcd1c1dc97ae6c433512ef6e02a;p=emacs.git Tramp cleanup * lisp/net/tramp-compat.el (tramp-compat-temporary-file-directory): Adapt docstring. --- diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el index 87651d60328..8d95adb597c 100644 --- a/lisp/net/tramp-cmds.el +++ b/lisp/net/tramp-cmds.el @@ -52,6 +52,7 @@ SYNTAX can be one of the symbols `default' (default), (when syntax (customize-set-variable 'tramp-syntax syntax))) +;; Use `match-buffers' starting with Emacs 29.1. ;;;###tramp-autoload (defun tramp-list-tramp-buffers () "Return a list of all Tramp connection buffers." @@ -63,6 +64,7 @@ SYNTAX can be one of the symbols `default' (default), (all-completions "*trace tramp" (mapcar #'list (mapcar #'buffer-name (buffer-list)))))) +;; Use `match-buffers' starting with Emacs 29.1. ;;;###tramp-autoload (defun tramp-list-remote-buffers () "Return a list of all buffers with remote `default-directory'." diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el index 5bd3dff3d21..7c10c6530e9 100644 --- a/lisp/net/tramp-compat.el +++ b/lisp/net/tramp-compat.el @@ -75,7 +75,7 @@ (prog1 (setq xdg (concat (file-name-as-directory xdg) "emacs")) (make-directory xdg t)) (eval (car (get 'temporary-file-directory 'standard-value)) t))) - "The default value of `temporary-file-directory'.") + "The default value of `temporary-file-directory' for Tramp.") (defsubst tramp-compat-make-temp-name () "Generate a local temporary file name (compat function)."