]> git.eshelyaron.com Git - emacs.git/commitdiff
Let tty tips disappear automatically
authorGerd Möllmann <gerd@gnu.org>
Wed, 6 Nov 2024 09:22:50 +0000 (10:22 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 14:54:16 +0000 (15:54 +0100)
* lisp/tty-tip.el (tty-tip--create-frame): Delete tip frame after
x-show-tooltip-timeout seconds.

(cherry picked from commit e0bfd3ce23eafb13ab0400f3046074b83784d9f8)

lisp/tty-tip.el

index 92a115b2008578e3053c4856cf1393ccf65a0ac2..7f600fd3772ee28690948f0da975d1aa612ce7a6 100644 (file)
@@ -3,6 +3,8 @@
 
 ;; Copyright (C) 2024 Free Software Foundation, Inc.
 
+;; This file is part of GNU Emacs.
+
 ;; GNU Emacs is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation, either version 3 of the License, or
              (x (car pos))
              (y (cdr pos)))
        (set-frame-position tty-tip--frame x y))
-      (make-frame-visible tty-tip--frame))))
+      (make-frame-visible tty-tip--frame)
+      (run-at-time x-show-tooltip-timeout nil #'tty-tip--delete-frame))))
 
 (defvar tty-tip--help-message nil)
 (defvar tty-tip--hide-time nil)