summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-21 00:01:27 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-21 00:01:27 +0100
commit7a3d1f828a12b3d1b570b4e6cda540fd98b7f7fc (patch)
treeb6348ec8f07d4771f612169968303f897c0848d7 /elisp/geiser-completion.el
parent850964a87d826954aeb128a5c6f4d78e6bd78841 (diff)
downloadgeiser-7a3d1f828a12b3d1b570b4e6cda540fd98b7f7fc.tar.gz
geiser-7a3d1f828a12b3d1b570b4e6cda540fd98b7f7fc.tar.bz2
Offer also local bindings as possible completions in M-TAB.
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index fd22044..accbd3d 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -155,7 +155,8 @@ terminates a current completion."
(defun geiser-completion--complete (prefix modules)
(let* ((symbols (if modules (geiser-completion--module-list)
- (geiser-completion--symbol-list prefix)))
+ (append (geiser-syntax--local-bindings)
+ (geiser-completion--symbol-list prefix))))
(completions (all-completions prefix symbols))
(partial (try-completion prefix symbols))
(partial (if (eq partial t) prefix partial)))