mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix narrowing problem in tramp-debug-buffer-command-completion-p
* lisp/net/tramp.el (tramp-debug-buffer-command-completion-p): Respect narrowing. (Bug#56225)
This commit is contained in:
parent
a399eeac15
commit
3b7d8dd3b3
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue