From: Gerd Möllmann Date: Wed, 6 Nov 2024 13:55:59 +0000 (+0100) Subject: Fix hiding tips from pre-command-hook X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0499135d41f0a33078aa24933a532768e11cf5d;p=emacs.git 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) --- 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)