summaryrefslogtreecommitdiff
path: root/elisp/geiser-syntax.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-02 19:58:16 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-02 19:58:16 +0100
commitf275952d107ea4553a45fefefed51d74b2d94183 (patch)
tree297be98f09db7e8c14d2255d0edab9fe7719cad9 /elisp/geiser-syntax.el
parent4826d33808c8c54bbe455639c942fc3f789383c0 (diff)
downloadgeiser-chez-f275952d107ea4553a45fefefed51d74b2d94183.tar.gz
geiser-chez-f275952d107ea4553a45fefefed51d74b2d94183.tar.bz2
Fix for quack users
Apparently, quack makes (thing-at-point 'symbol) to return "#" when point is looking at a hash symbol, causing havoc to geiser. This patch defends us about this behaviour.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r--elisp/geiser-syntax.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 8428f49..4921831 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -294,6 +294,7 @@ implementation-specific entries for font-lock-keywords.")
(forward-sexp)
(let ((s (thing-at-point 'symbol)))
(cond ((not s) (push s elems))
+ ((member s '("#" "`" "'")) (push nil elems))
((not (equal "." s)) (push (make-symbol s) elems)))))))
(nreverse elems)))))