From 9f5048456af11b533c8762d8e1f7d63cda896535 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 23 Jan 2022 14:46:55 +0100 Subject: [PATCH] Improve `M-x speedbar' under emacs -nw very slightly * lisp/speedbar.el (speedbar-frame-mode): `M-x speedbar' doesn't seem to do anything visible under -nw, so issue a message in that case to tell the user how to proceed (bug#32597). --- lisp/speedbar.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/speedbar.el b/lisp/speedbar.el index e63a2642fe2..b2e7be1505c 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el @@ -938,7 +938,9 @@ supported at a time. ;; hscroll (setq-local auto-hscroll-mode nil) ;; reset the selection variable - (setq speedbar-last-selected-file nil)) + (setq speedbar-last-selected-file nil) + (unless (display-graphic-p) + (message "Use `M-x speedbar-get-focus' to see the speedbar window"))) (defun speedbar-frame-reposition-smartly () "Reposition the speedbar frame to be next to the attached frame." -- 2.39.5