summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-10-31 15:53:12 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-10-31 15:53:12 +0100
commitc96cb3b6e00bae599837c387c89e46f1bcc14b46 (patch)
tree374c81fdbb3e3c52340f0c5269298525c73c9151 /elisp/geiser-completion.el
parentb78e5a74dfab69f65d5ef830da581865bf769802 (diff)
parent237bad79cdeadd26cdfb446d8059c5ac6ca08415 (diff)
downloadgeiser-c96cb3b6e00bae599837c387c89e46f1bcc14b46.tar.gz
geiser-c96cb3b6e00bae599837c387c89e46f1bcc14b46.tar.bz2
Merge branch 'master' into guile-meta
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 5c2f604..d346190 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -214,6 +214,11 @@ we're looking for a module name.")
(defsubst geiser-completion--symbol-begin (module)
(funcall geiser-completion--symbol-begin-function module))
+(defun geiser-completion--module-at-point ()
+ (save-excursion
+ (goto-char (geiser-completion--symbol-begin t))
+ (ignore-errors (thing-at-point 'sexp))))
+
(defsubst geiser-completion--prefix (module)
(buffer-substring-no-properties (geiser-completion--symbol-begin module)
(point)))