summaryrefslogtreecommitdiff
path: root/elisp/geiser-doc.el
diff options
context:
space:
mode:
authorLockywolf <lockywolf@gmail.com>2019-10-23 12:24:05 +0800
committerLockywolf <lockywolf@gmail.com>2019-10-23 12:24:05 +0800
commit526d5ed4c2437d5d9a87dce67551451448bd853e (patch)
tree19aad8d5abca920250dca534412eff51ac1adf3d /elisp/geiser-doc.el
parent7ba2cb0ccb64a6e8cba37eb94e7c61a5f1118ca8 (diff)
parent8d84a1fbc45de10f934aff2680bfba188a514a71 (diff)
downloadgeiser-guile-526d5ed4c2437d5d9a87dce67551451448bd853e.tar.gz
geiser-guile-526d5ed4c2437d5d9a87dce67551451448bd853e.tar.bz2
Merge branch 'master' into ChibiExperiments
Diffstat (limited to 'elisp/geiser-doc.el')
-rw-r--r--elisp/geiser-doc.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index 7810957..a982997 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -382,6 +382,11 @@ With prefix argument, ask for symbol (with completion)."
"Symbol: " (geiser--symbol-at-point)))))
(when symbol (geiser-doc-symbol symbol))))
+(defun geiser-doc-manual-for-symbol (symbol)
+ (geiser-doc--external-help geiser-impl--implementation
+ symbol
+ (geiser-eval--get-module)))
+
(defun geiser-doc-look-up-manual (&optional arg)
"Look up manual for symbol at point.
With prefix argument, ask for the lookup symbol (with completion)."
@@ -390,9 +395,7 @@ With prefix argument, ask for the lookup symbol (with completion)."
(error "No manual available"))
(let ((symbol (or (and (not arg) (geiser--symbol-at-point))
(geiser-completion--read-symbol "Symbol: "))))
- (geiser-doc--external-help geiser-impl--implementation
- symbol
- (geiser-eval--get-module))))
+ (geiser-doc-manual-for-symbol symbol)))
(defconst geiser-doc--sections '(("Procedures:" "procs")
("Syntax:" "syntax")