diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-02 01:06:14 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-02 01:06:14 +0100 |
commit | b8e5c1e0138321f713df437cc08c39c66ea9eefe (patch) | |
tree | 4871868f714dbc5b62c0c9568cd632ce2e2a03fb /elisp/geiser-syntax.el | |
parent | cb6dbc1528f332abde8569dc5f9bda20f8137d7f (diff) | |
download | geiser-b8e5c1e0138321f713df437cc08c39c66ea9eefe.tar.gz geiser-b8e5c1e0138321f713df437cc08c39c66ea9eefe.tar.bz2 |
Fix (again!) completion for symbols outside enclosing forms.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index dcc8359..9cb38c0 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -95,7 +95,8 @@ (insert "XXXpointXX")) (let ((depth (nth 0 (parse-partial-sexp (point-min) (point))))) (unless (zerop depth) (insert (make-string depth ?\))))) - (buffer-substring-no-properties (point-min) (point)))) + (let ((res (buffer-substring-no-properties (point-min) (point)))) + (and (not (zerop (length res))) res)))) (defsubst geiser-syntax--get-partial-sexp () (unless (zerop (nth 0 (syntax-ppss))) |