diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-11-13 01:58:35 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-11-13 01:58:35 +0100 |
commit | 3a9ce0781e3b3b9cd51db35ef417475d2a4dddf6 (patch) | |
tree | 3860150c67d3a990465d8938ce0ec3b6be2191e7 /elisp/geiser-xref.el | |
parent | 6c58b24bfe84292d813adff6531be15c9f7c9cfc (diff) | |
download | geiser-3a9ce0781e3b3b9cd51db35ef417475d2a4dddf6.tar.gz geiser-3a9ce0781e3b3b9cd51db35ef417475d2a4dddf6.tar.bz2 |
Bug fix: displaying signatures correctly in xref buffers.
Diffstat (limited to 'elisp/geiser-xref.el')
-rw-r--r-- | elisp/geiser-xref.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/elisp/geiser-xref.el b/elisp/geiser-xref.el index b53338a..657cfbc 100644 --- a/elisp/geiser-xref.el +++ b/elisp/geiser-xref.el @@ -12,6 +12,7 @@ (require' geiser-edit) +(require 'geiser-autodoc) (require 'geiser-eval) (require 'geiser-popup) (require 'geiser-custom) @@ -53,21 +54,24 @@ geiser-xref-follow-link-method)))) (defun geiser-xref--insert-button (xref) + (message "inserting %s" xref) (let* ((location (cdr (assoc 'location xref))) (file (geiser-edit--location-file location)) (signature (cdr (assoc 'signature xref))) + (signature-txt (and signature + (geiser-autodoc--str* signature))) (module (cdr (assoc 'module xref))) (p (point))) (when signature (insert " - ") (if (stringp file) - (insert-text-button (format "%s" signature) + (insert-text-button signature-txt :type 'geiser-xref--button 'location location 'name (car signature) - 'help-echo (format "%s in %s" (car signature) - file)) - (insert (format "%s" signature))) + 'help-echo (format "%s in %s" + (car signature) file)) + (insert (format "%s" signature-txt))) (fill-region p (point)) (save-excursion (goto-char p) (indent-sexp)) (newline)))) |