summaryrefslogtreecommitdiff
path: root/elisp/geiser-doc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-24 02:14:11 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-24 02:14:11 +0100
commitd9e03e068d621cd8252ec15765d058be3ccd5f9d (patch)
treeccce0e6530f5af90b3ea2233374f331b44c706a7 /elisp/geiser-doc.el
parent992649e9e6f977943cbae191e3bc057a0393e7ad (diff)
downloadgeiser-chez-d9e03e068d621cd8252ec15765d058be3ccd5f9d.tar.gz
geiser-chez-d9e03e068d621cd8252ec15765d058be3ccd5f9d.tar.bz2
Guile: button for texinfo lookup in doc browser
Diffstat (limited to 'elisp/geiser-doc.el')
-rw-r--r--elisp/geiser-doc.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index f1f0aa0..eec0577 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -170,9 +170,12 @@ help (e.g. browse an HTML page) implementing this method.")
'follow-link t)
(defun geiser-doc--insert-xbutton (&optional manual)
- (insert-text-button (if manual "[manual]" "[source]")
+ (let ((label (if manual "[manual]" "[source]"))
+ (help (if manual "Look up in Scheme manual" "Go to definition")))
+ (insert-text-button label
:type 'geiser-doc--xbutton
- 'x-kind (if manual 'manual 'source)))
+ 'help-echo help
+ 'x-kind (if manual 'manual 'source))))
(defun geiser-doc--insert-xbuttons (impl)
(when (geiser-impl--method 'external-help impl)
@@ -230,15 +233,17 @@ help (e.g. browse an HTML page) implementing this method.")
(or nxt 0)))))
(when (or prev nxt)
(insert (make-string len ?\ )))
- (when (geiser-doc--history-previous-p)
+ (when prev
(insert-text-button "[back]"
'action '(lambda (b) (geiser-doc-previous))
+ 'help-echo "Previous help item"
'face 'geiser-font-lock-doc-button
'follow-link t)
(insert " "))
- (when (geiser-doc--history-next-p)
+ (when nxt
(insert-text-button "[forward]"
'action '(lambda (b) (geiser-doc-next))
+ 'help-echo "Next help item"
'face 'geiser-font-lock-doc-button
'follow-link t))))