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 | 2896240921784f0b7f6b9bcf1c658024c9d9dc25 (patch) | |
tree | 7260f7d3bdf78724736d6acf55d7dc364a5b0e6a /elisp/geiser-syntax.el | |
parent | 97d1170d4170933a317782dbf353eddf41f09802 (diff) | |
download | geiser-guile-2896240921784f0b7f6b9bcf1c658024c9d9dc25.tar.gz geiser-guile-2896240921784f0b7f6b9bcf1c658024c9d9dc25.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))) |