bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39138: 28.0.50; Add variables for shell command output buffer names


From: Michael Albinus
Subject: bug#39138: 28.0.50; Add variables for shell command output buffer names
Date: Tue, 14 Jan 2020 23:43:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Tino Calancha <tino.calancha@gmail.com> writes:

> --- a/lisp/net/tramp.el
> +++ b/lisp/net/tramp.el
> @@ -3658,8 +3658,8 @@ tramp-handle-shell-command
>           (current-buffer))
>          (t (get-buffer-create
>              (if asynchronous
> -                "*Async Shell Command*"
> -              "*Shell Command Output*")))))
> +                shell-command-buffer-name-async
> +              shell-command-buffer-name)))))
>        (error-buffer
>         (cond
>          ((bufferp error-buffer) error-buffer)

OK for me. However, I will tweak this a little bit once committed, in
order to keep Tramp's backward compatibility. Likely like this:

(or (bound-and-true-p shell-command-buffer-name-async) "*Async Shell Command*")

etc. Plus a comment, which Emacs version has introduced the variables,
in order to know when this compatibility hack can be removed.

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]