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
commit8d2734a4cfa7c95597c156868310096e1229e562 (patch)
treea53e2438e14048f8e6b1bd3b68aebd3b48923ce1 /elisp
parent67bf9186531f919ce92d5099e3949d527d605f79 (diff)
downloadgeiser-8d2734a4cfa7c95597c156868310096e1229e562.tar.gz
geiser-8d2734a4cfa7c95597c156868310096e1229e562.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))))