diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-26 16:12:24 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-26 16:12:24 +0100 |
commit | 0233627d20dd483745c8386b2eb5ff26b355f854 (patch) | |
tree | b0d114edc4ead058d661f199d14e04f055cbb88b /elisp/geiser-doc.el | |
parent | 931c38b796dd90897c7039aa7a9afde70131dbb8 (diff) | |
download | geiser-guile-0233627d20dd483745c8386b2eb5ff26b355f854.tar.gz geiser-guile-0233627d20dd483745c8386b2eb5ff26b355f854.tar.bz2 |
Doc browser: better link highlighting
We were adding extra spaces to function signatures.
Diffstat (limited to 'elisp/geiser-doc.el')
-rw-r--r-- | elisp/geiser-doc.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el index 37c069e..19e2075 100644 --- a/elisp/geiser-doc.el +++ b/elisp/geiser-doc.el @@ -150,18 +150,18 @@ help (e.g. browse an HTML page) implementing this method.") (defun geiser-doc--insert-button (target module impl &optional sign) (let ((link (geiser-doc--make-link target module impl)) - (text (format "%s" (or (and sign (geiser-autodoc--str* sign)) + (text (format "%s" (or (and sign + (geiser-autodoc--str* sign)) target module))) (help (format "%smodule %s" (if target (format "%s in " target) "") (or module "<unknown>")))) - (apply 'insert-text-button - `(,text - :type geiser-doc--button - ,@(and (not sign) (list 'face 'geiser-font-lock-doc-link)) - geiser-link ,link - help-echo ,help)))) + (insert-text-button text + :type 'geiser-doc--button + 'face 'geiser-font-lock-doc-link + 'geiser-link link + 'help-echo help))) (defun geiser-doc--xbutton-action (button) (when geiser-doc--buffer-link @@ -238,7 +238,7 @@ help (e.g. browse an HTML page) implementing this method.") (let ((name (car w)) (signature (cdr (assoc 'signature w))) (info (cdr (assoc 'info w)))) - (insert (format "\t- ")) + (insert "\t- ") (if module (geiser-doc--insert-button name module impl signature) (geiser-doc--insert-button nil name impl)) @@ -294,8 +294,7 @@ help (e.g. browse an HTML page) implementing this method.") (geiser-doc--with-buffer (erase-buffer) (geiser-doc--insert-title - (geiser-autodoc--str (list (symbol-name symbol) 0) - (cdr (assoc 'signature ds)))) + (geiser-autodoc--str* (cdr (assoc 'signature ds)))) (newline) (insert (or (cdr (assoc 'docstring ds)) "")) (geiser-doc--buttonize-modules impl) |