From c0499135d41f0a33078aa24933a532768e11cf5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Wed, 6 Nov 2024 14:55:59 +0100 Subject: [PATCH] Fix hiding tips from pre-command-hook * lisp/tty-tip.el (tty-tip-mode): Put #'tty-tip--hide on the pre-command-hook. (cherry picked from commit 6cd7ce7cf2a36a790c7e1e0a5496c35fc9d56495) --- lisp/tty-tip.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/tty-tip.el b/lisp/tty-tip.el index 33b4c81bfca..728c16b6856 100644 --- a/lisp/tty-tip.el +++ b/lisp/tty-tip.el @@ -192,10 +192,10 @@ (unless (display-graphic-p) (cond (tty-tip-mode (setq show-help-function #'tty-tip--show-help) - (add-hook 'pre-command-hook #'tty-tip--delete-frame)) + (add-hook 'pre-command-hook #'tty-tip--hide)) (t (setq show-help-function nil) - (remove-hook 'pre-command-hook #'tty-tip--delete-frame))))) + (remove-hook 'pre-command-hook #'tty-tip--hide))))) (provide 'tty-tip) -- 2.39.5