branch: elpa/eldoc-mouse
commit 8449dcff87134e6b3f6b537cc670bcb742cf2273
Author: huangfeiyu <[email protected]>
Commit: GitHub <[email protected]>
change the variable from private to public
Fix variable name for eldoc documentation functions.
---
eldoc-mouse.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/eldoc-mouse.el b/eldoc-mouse.el
index bb4b2895e3f..3bf1e28d6ea 100644
--- a/eldoc-mouse.el
+++ b/eldoc-mouse.el
@@ -135,9 +135,11 @@ A leading space make the buffer hidden."
(defvar-local eldoc-mouse--original-track-mouse nil
"The original buffer local value of variable `track-mouse'.")
-(defvar-local eldoc-mouse--eldoc-documentation-functions
+(defvar-local eldoc-mouse-eldoc-documentation-functions
(list #'eldoc-mouse--eglot-eldoc-documentation-function
#'eldoc-mouse--elisp-eldoc-documentation-function)
- "The `eldoc-documentation-functions' for `eldoc-mouse-mode'.")
+ "The `eldoc-documentation-functions' for `eldoc-mouse-mode'.
+User can define their customized eldoc documentation function, and add to
+this list for specific mode.")
;;;###autoload
(define-minor-mode eldoc-mouse-mode
@@ -300,7 +302,7 @@ So it won't call `eglot--highlight-piggyback` with `CB`."
(not (function-equal f
#'eglot-highlight-eldoc-function)))
(not (function-equal f
#'eglot-signature-eldoc-function))))
eldoc-documentation-functions))
- (fun-list2 (append eldoc-mouse--eldoc-documentation-functions
fun-list1)))
+ (fun-list2 (append eldoc-mouse-eldoc-documentation-functions
fun-list1)))
(mapcar (lambda (fun) (if (functionp fun)
(lambda (&rest args) (apply
#'eldoc-mouse--hover-edloc-function-advise fun args))
fun))