summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-02 06:15:58 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-02 06:15:58 +0200
commit12d77d75b267a9c41994d24a3ee7a9a1d63d023b (patch)
tree4d2a10bab8c21d3844f949b7b73864b8f2d3b4be
parent2d060d01b4fe318ca7b59fe3acf665491499bc08 (diff)
downloadgeiser-12d77d75b267a9c41994d24a3ee7a9a1d63d023b.tar.gz
geiser-12d77d75b267a9c41994d24a3ee7a9a1d63d023b.tar.bz2
Yet another fix for scan locals (completion)
-rw-r--r--elisp/geiser-syntax.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index e7c2a9f..773f71f 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -265,7 +265,8 @@
(when name (push name locals))
(when use-names (dolist (n names) (push n locals)))
(dolist (f (butlast rest))
- (when (eq (car f) 'define) (push (cadr f) locals)))
+ (when (and (listp f) (eq (car f) 'define))
+ (push (cadr f) locals)))
(geiser-syntax--scan-locals bfs sbfs
(car (last (or rest names)))
partial