]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix hiding tips from pre-command-hook
authorGerd Möllmann <gerd@gnu.org>
Wed, 6 Nov 2024 13:55:59 +0000 (14:55 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 14:54:19 +0000 (15:54 +0100)
* 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

index 33b4c81bfca01d54071a98108a6bcd7b2308f1a9..728c16b6856bc78f9cff329f8fe5c4b610a767c1 100644 (file)
   (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)