From 119a9ecfe1183f3b6f99a885689d10739687dcc8 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 11 Aug 2020 16:46:41 +0200 Subject: [PATCH] * lisp/net/tramp.el: Make last change backward compatible. --- lisp/net/tramp.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index fdf26f6b782..d8113a9af9b 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3814,9 +3814,12 @@ support symbolic links." (setq current-buffer-p t) (current-buffer)) (t (get-buffer-create + ;; These variables have been introduced with Emacs 28.1. (if asynchronous - shell-command-buffer-name-async - shell-command-buffer-name))))) + (or (bound-and-true-p shell-command-buffer-name-async) + "*Async Shell Command*") + (or (bound-and-true-p shell-command-buffer-name) + "*Shell Command Output*")))))) (error-buffer (cond ((bufferp error-buffer) error-buffer) -- 2.39.5