diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-02 19:58:16 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-02 19:58:16 +0100 |
commit | 5a32c9ee1240ecfc5d43cd2b975a448878dcc396 (patch) | |
tree | aafd91175e828f99cefc7c65fbadc91263d7c30e | |
parent | 741976424b6d3cbe5b4266e6ce0a8831311949d2 (diff) | |
download | geiser-5a32c9ee1240ecfc5d43cd2b975a448878dcc396.tar.gz geiser-5a32c9ee1240ecfc5d43cd2b975a448878dcc396.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.
-rw-r--r-- | elisp/geiser-syntax.el | 1 |
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))))) |