emacs-diffs
[Top][All Lists]
Advanced

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

master 3b7d8dd3b3: Fix narrowing problem in tramp-debug-buffer-command-c


From: Michael Albinus
Subject: master 3b7d8dd3b3: Fix narrowing problem in tramp-debug-buffer-command-completion-p
Date: Sun, 26 Jun 2022 04:57:19 -0400 (EDT)

branch: master
commit 3b7d8dd3b3ee2b28ea5aa86e84f5a355698b29a8
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Fix narrowing problem in tramp-debug-buffer-command-completion-p
    
    * lisp/net/tramp.el (tramp-debug-buffer-command-completion-p):
    Respect narrowing.  (Bug#56225)
---
 lisp/net/tramp.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index c6665c2792..9d5a02456e 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1955,7 +1955,8 @@ 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 (min 10 (point-max))) ";; Emacs:")))
+    (string-equal
+     (buffer-substring (point-min) (min 10 (point-max))) ";; Emacs:")))
 
 (put #'tramp-debug-buffer-command-completion-p 'tramp-suppress-trace t)
 



reply via email to

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