summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-21 02:00:34 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-21 02:00:34 +0100
commit1710566476f5230d95e43cdceeab3487df76b69e (patch)
treebadc07f168d1a5abac89619c7c91daa8731c58a3 /elisp
parent1d725a8c087b66b2cd2c0e5006c376faf612d6ff (diff)
downloadgeiser-chez-1710566476f5230d95e43cdceeab3487df76b69e.tar.gz
geiser-chez-1710566476f5230d95e43cdceeab3487df76b69e.tar.bz2
Bug fix: (symbol-at-point) thinks that '.' is a symbol
And, as a consequence, we were sending broken sexps to poor schemes.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-syntax.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 40f2def..65c4813 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -231,7 +231,9 @@ implementation-specific entries for font-lock-keywords.")
;;; Code parsing:
(defsubst geiser-syntax--symbol-at-point ()
- (and (not (nth 8 (syntax-ppss))) (symbol-at-point)))
+ (and (not (nth 8 (syntax-ppss)))
+ (let ((s (symbol-at-point)))
+ (and (not (eq s '.)) s))))
(defsubst geiser-syntax--skip-comment/string ()
(let ((pos (nth 8 (syntax-ppss))))