summaryrefslogtreecommitdiff
path: root/elisp/geiser-company.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-26 12:23:53 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-26 12:23:53 +0200
commitcee169c2de13d30f213b03578e70ca7c370e2684 (patch)
tree9111729fad059dd1c55527c5d22303a72edba495 /elisp/geiser-company.el
parent2f5a1cce9e66e6f931749e5d3df6fe3fb220ad1f (diff)
downloadgeiser-guile-cee169c2de13d30f213b03578e70ca7c370e2684.tar.gz
geiser-guile-cee169c2de13d30f213b03578e70ca7c370e2684.tar.bz2
Company's go to location working also for locations in same file.
Diffstat (limited to 'elisp/geiser-company.el')
-rw-r--r--elisp/geiser-company.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/elisp/geiser-company.el b/elisp/geiser-company.el
index 15b9cb8..2fb89f4 100644
--- a/elisp/geiser-company.el
+++ b/elisp/geiser-company.el
@@ -41,7 +41,8 @@
(ignore-errors
(if module
(format "%s [module]" id)
- (geiser-autodoc--autodoc (list (list (intern id) 0)) t))))
+ (or (geiser-autodoc--autodoc (list (list (intern id) 0)) t)
+ (format "%s [local id]" id)))))
(defsubst geiser-company--doc-buffer (id module)
nil)
@@ -49,9 +50,10 @@
(defun geiser-company--location (id module)
(ignore-errors
(let ((id (intern id)))
- (save-current-buffer
- (if module (geiser-edit-module id) (geiser-edit-symbol id))
- (cons (current-buffer) (point))))))
+ (save-excursion
+ (if module
+ (geiser-edit-module id 'noselect)
+ (geiser-edit-symbol id 'noselect))))))
(defun geiser-company--prefix-at-point (module)
(when geiser-company--enabled-flag