1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix hiding tips from pre-command-hook

* lisp/tty-tip.el (tty-tip-mode): Put #'tty-tip--hide on the
pre-command-hook.
This commit is contained in:
Gerd Möllmann 2024-11-06 14:55:59 +01:00
parent cc3c05cad9
commit 6cd7ce7cf2

View file

@ -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)