summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-26 14:45:00 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-26 14:45:00 +0100
commit801422d1558f488059ede4f9abab5163ca610900 (patch)
treea76033f766600746ca8c7272577403b3255f0ebf /elisp
parentf661d7c70bd04542d8bbb4da9c9f70b6d6c95791 (diff)
downloadgeiser-guile-801422d1558f488059ede4f9abab5163ca610900.tar.gz
geiser-guile-801422d1558f488059ede4f9abab5163ca610900.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')
-rw-r--r--elisp/geiser-base.el1
-rw-r--r--elisp/geiser-company.el4
-rw-r--r--elisp/geiser-guile.el3
-rw-r--r--elisp/geiser-impl.el4
-rw-r--r--elisp/geiser-racket.el2
-rw-r--r--elisp/geiser-syntax.el4
6 files changed, 9 insertions, 9 deletions
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el
index 41fb6fc..d232d2f 100644
--- a/elisp/geiser-base.el
+++ b/elisp/geiser-base.el
@@ -72,4 +72,3 @@
(provide 'geiser-base)
-;;; geiser-base.el ends here
diff --git a/elisp/geiser-company.el b/elisp/geiser-company.el
index eadce93..d6f89e1 100644
--- a/elisp/geiser-company.el
+++ b/elisp/geiser-company.el
@@ -32,7 +32,7 @@
(ignore-errors
(if module
(format "%s [module]" id)
- (or (geiser-autodoc--autodoc (list (list (intern id) 0)) t)
+ (or (geiser-autodoc--autodoc (list (list (make-symbol id) 0)) t)
(format "%s [local id]" id)))))
(defsubst geiser-company--doc-buffer (id module)
@@ -40,7 +40,7 @@
(defun geiser-company--location (id module)
(ignore-errors
- (let ((id (intern id)))
+ (let ((id (make-symbol id)))
(save-excursion
(if module
(geiser-edit-module id 'noselect)
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index e4473d8..432c0fc 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -114,7 +114,8 @@ This function uses `geiser-guile-init-file' if it exists."
(expand-file-name geiser-guile-init-file))))
`(,@(and (listp geiser-guile-binary) (cdr geiser-guile-binary))
"-q" "-L" ,(expand-file-name "guile/" geiser-scheme-dir)
- ,@(apply 'append (mapcar (lambda (p) (list "-L" p)) geiser-guile-load-path))
+ ,@(apply 'append (mapcar (lambda (p) (list "-L" p))
+ geiser-guile-load-path))
,@(and init-file (file-readable-p init-file) (list "-l" init-file)))))
;;(defconst geiser-guile--prompt-regexp "^[^() \n]+@([^)]*?)> ")
diff --git a/elisp/geiser-impl.el b/elisp/geiser-impl.el
index 7df87cf..038e72f 100644
--- a/elisp/geiser-impl.el
+++ b/elisp/geiser-impl.el
@@ -208,8 +208,8 @@ switcher (switch-to-NAME), and provides geiser-NAME."
(parent (and (listp name) (cadr name))))
(unless (symbolp name)
(error "Malformed implementation name: %s" name))
- (let ((runner (intern (format "run-%s" name)))
- (switcher (intern (format "switch-to-%s" name)))
+ (let ((runner (make-symbol (format "run-%s" name)))
+ (switcher (make-symbol (format "switch-to-%s" name)))
(runner-doc (format "Start a new %s REPL." name))
(switcher-doc (format "Switch to a running %s REPL, or start one."
name))
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el
index e826bde..cafaac9 100644
--- a/elisp/geiser-racket.el
+++ b/elisp/geiser-racket.el
@@ -144,7 +144,7 @@ This function uses `geiser-racket-init-file' if it exists."
((null module) (geiser-racket--implicit-module))
((symbolp module) module)
((and (stringp module) (file-name-absolute-p module)) module)
- ((stringp module) (intern module))
+ ((stringp module) (make-symbol module))
(t nil)))
(defun geiser-racket--symbol-begin (module)
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)))))