emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/boxy aa6a077 01/10: Added variable boxy-tooltip-show-fu


From: ELPA Syncer
Subject: [elpa] externals/boxy aa6a077 01/10: Added variable boxy-tooltip-show-function
Date: Fri, 15 Oct 2021 10:57:10 -0400 (EDT)

branch: externals/boxy
commit aa6a07700b3298c60f5a95f8330a8460a6f935f8
Author: Tyler Grinn <tylergrinn@gmail.com>
Commit: Tyler Grinn <tylergrinn@gmail.com>

    Added variable boxy-tooltip-show-function
---
 boxy.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/boxy.el b/boxy.el
index 7d0cdd2..04c9089 100644
--- a/boxy.el
+++ b/boxy.el
@@ -159,6 +159,11 @@
   "Maximum width of all tooltips."
   :type 'number)
 
+;;;; Variables
+
+(defvar boxy-tooltip-show-function #'boxy--tooltip-show
+  "A function which takes a multi-line string and displays it immediately.")
+
 ;;;; Faces
 
 (defface boxy-default nil
@@ -1607,7 +1612,7 @@ characters if possible."
                       (current-buffer))
                   (eq (marker-position marker)
                       (point)))
-             (boxy--tooltip-show content)))))))
+             (funcall boxy-tooltip-show-function content)))))))
 
 (defun boxy--tooltip-show (content)
   "Show tooltip with CONTENT at point immediately."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]