summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-01 00:41:08 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-01 00:41:08 +0100
commit40a36416f5a09a4941bb183a7fabc973ddfa0354 (patch)
tree0c65ff889d68aeecd1c7362e72bf6778a55d849b /elisp
parentee0d020521b46652f98278e46e61adb606b195d5 (diff)
downloadgeiser-40a36416f5a09a4941bb183a7fabc973ddfa0354.tar.gz
geiser-40a36416f5a09a4941bb183a7fabc973ddfa0354.tar.bz2
Miscellaneous little fixes.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-autodoc.el5
-rw-r--r--elisp/geiser-completion.el5
2 files changed, 6 insertions, 4 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 4c936cf..63eb3b9 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -88,7 +88,10 @@ when `geiser-autodoc-display-module-p' is on."
(let ((p (point))
(str (format "%s" (if (eq arg '\#:rest) "." arg))))
(insert str)
- (when (listp arg) (replace-regexp "(quote \\(.*\\))" "'\\1" nil p (point)))
+ (when (listp arg)
+ (save-excursion
+ (replace-regexp "(quote \\(.*\\))" "'\\1" nil p (point))
+ (replace-string "nil" "()" t p (point))))
(when (= current pos)
(put-text-property p (point) 'face 'geiser-font-lock-autodoc-current-arg))))
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 7e1f642..3605ed5 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -150,7 +150,7 @@ terminates a current completion."
(delete-duplicates
(geiser-eval--send/result
`(:eval ((:ge completions) ,prefix
- (quote (:scm ,(geiser-syntax--get-partial-sexp))))))
+ (quote (:scm ,(or (geiser-syntax--get-partial-sexp) "()"))))))
:test 'string=))
(defsubst geiser-completion--module-list ()
@@ -161,8 +161,7 @@ terminates a current completion."
(defun geiser-completion--complete (prefix modules)
(let* ((symbols (if modules (geiser-completion--module-list)
- (append (geiser-syntax--local-bindings)
- (geiser-completion--symbol-list prefix))))
+ (geiser-completion--symbol-list prefix)))
(completions (all-completions prefix symbols))
(partial (try-completion prefix symbols))
(partial (if (eq partial t) prefix partial)))