diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-26 14:45:00 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-26 14:45:00 +0100 |
commit | c6e745e306a294288a14a6bf2c0d3056b4a637aa (patch) | |
tree | 501af33e9103ee493249e40cf6dfa74a3955a58c /elisp/geiser-syntax.el | |
parent | 1b36531863a45d1ba714b21500069bc6319ee31f (diff) | |
download | geiser-c6e745e306a294288a14a6bf2c0d3056b4a637aa.tar.gz geiser-c6e745e306a294288a14a6bf2c0d3056b4a637aa.tar.bz2 |
Bug fix: don't intern symbols read by scheme reader
We were calling `intern' instead of `make-symbol', polluting emacs'
obarray.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index 65c4813..9bb5e2c 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -161,7 +161,7 @@ implementation-specific entries for font-lock-keywords.") (?\< (geiser-syntax--read/unprintable)) ((?' ?` ?,) (geiser-syntax--read/next-token)) (t (let ((tok (geiser-syntax--read/elisp))) - (if tok (cons 'atom (intern (format "#%s" tok))) + (if tok (cons 'atom (make-symbol (format "#%s" tok))) (geiser-syntax--read/next-token)))))) (?\' (geiser-syntax--read/token '(quote . quote))) (?\` (geiser-syntax--read/token @@ -209,7 +209,7 @@ implementation-specific entries for font-lock-keywords.") (vectorb (apply 'vector (geiser-syntax--read/list))) ((quote backquote unquote splice) (list (cdr token) (geiser-syntax--read))) - (kwd (intern (format ":%s" (cdr token)))) + (kwd (make-symbol (format ":%s" (cdr token)))) (unprintable (format "#<%s>" (cdr token))) ((char string atom) (cdr token)) (t (error "Reading scheme syntax: unexpected token: %s" token))))) |