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
commite7cdf10b94d7f5e66a5b3a6e7e65439ef35f874f (patch)
tree9e8a158bc843df47047dde625b432e037936b40b /elisp/geiser-company.el
parent69643a0d6d214a164117a49696b08073cfbe58e5 (diff)
downloadgeiser-e7cdf10b94d7f5e66a5b3a6e7e65439ef35f874f.tar.gz
geiser-e7cdf10b94d7f5e66a5b3a6e7e65439ef35f874f.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