From: Michael Albinus Date: Wed, 19 Jan 2022 16:16:08 +0000 (+0100) Subject: ; Fix bug#53367 X-Git-Tag: emacs-29.0.90~2937 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=63a03d510190e83debb65075feaaaa2328753923;p=emacs.git ; Fix bug#53367 * lisp/net/tramp.el (tramp-debug-buffer-command-completion-p): Handle small buffers. (Bug#53367) --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 4c6a0bd9645..b258121549d 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -1930,7 +1930,7 @@ The outline level is equal to the verbosity of the Tramp message." "A predicate for Tramp interactive commands. They are completed by \"M-x TAB\" only in Tramp debug buffers." (with-current-buffer buffer - (string-equal (buffer-substring 1 10) ";; Emacs:"))) + (string-equal (buffer-substring 1 (min 10 (point-max))) ";; Emacs:"))) (put #'tramp-debug-buffer-command-completion-p 'tramp-suppress-trace t)