summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-26 02:29:25 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-26 02:29:25 +0100
commitf661d7c70bd04542d8bbb4da9c9f70b6d6c95791 (patch)
tree66c3a04e2b98fe9f16f605bf6a7722d6b72b2120 /elisp
parent59e53577aff12df02f437b95f46dc2951157eb10 (diff)
downloadgeiser-chez-f661d7c70bd04542d8bbb4da9c9f70b6d6c95791.tar.gz
geiser-chez-f661d7c70bd04542d8bbb4da9c9f70b6d6c95791.tar.bz2
Racket: more information in symbol documentation
When the symbol is imported and re-exported by a second module, we display its definition name and original module, besides the name of the module re-exporting it.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-doc.el6
-rw-r--r--elisp/geiser-racket.el2
2 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index b6a19e9..37c069e 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -274,10 +274,10 @@ help (e.g. browse an HTML page) implementing this method.")
(geiser-eval--send/result
`(:eval (:ge module-exports '(:module ,module)) :f)))
-(defun geiser-doc--buttonize-module (impl)
+(defun geiser-doc--buttonize-modules (impl)
(save-excursion
(goto-char (point-min))
- (when (re-search-forward "in module \\([^.\n]+\\)\\." nil t)
+ (while (re-search-forward "in module \\([^.\n]+\\)\\b" nil t)
(geiser-doc--make-module-button (match-beginning 1)
(match-end 1)
(geiser-doc--module (match-string 1)
@@ -298,7 +298,7 @@ help (e.g. browse an HTML page) implementing this method.")
(cdr (assoc 'signature ds))))
(newline)
(insert (or (cdr (assoc 'docstring ds)) ""))
- (geiser-doc--buttonize-module impl)
+ (geiser-doc--buttonize-modules impl)
(setq geiser-doc--buffer-link
(geiser-doc--history-push (geiser-doc--make-link symbol
module
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el
index 112b3c4..e826bde 100644
--- a/elisp/geiser-racket.el
+++ b/elisp/geiser-racket.el
@@ -178,7 +178,7 @@ This function uses `geiser-racket-init-file' if it exists."
`(:eval (get-help ',symbol '(:module ,module)) geiser/autodoc)))
(defun geiser-racket--external-help (id module)
- (message "Requesting help for '%s'..." id)
+ (message "Looking up manual for '%s'..." id)
(let ((out (geiser-eval--retort-output
(geiser-racket--get-help id module))))
(when (and out (string-match " but provided by:\n +\\(.+\\)\n" out))