From 96610db57a61d5380eeeb3b4780846c39fb79422 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 26 Nov 2010 23:11:47 +0100 Subject: A couple of uses of intern replaced by make-symbol These ones seem safe: the resulting symbol is not compared for equality anywhere. --- elisp/geiser-company.el | 4 ++-- elisp/geiser-racket.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'elisp') diff --git a/elisp/geiser-company.el b/elisp/geiser-company.el index eadce93..b8381c9 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 (format "%s" 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-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) -- cgit v1.2.3