summaryrefslogtreecommitdiff
path: root/elisp/geiser-plt.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-04-01 03:33:59 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-04-01 03:33:59 +0200
commit217e0c77270d1ee23f547bff8b7644f402a51d06 (patch)
tree5e1f32f0b8078910566f7b1467a743349082f41a /elisp/geiser-plt.el
parent51a6838ec13ce2fd8de0b0ecd1fd2bb5a843f511 (diff)
downloadgeiser-217e0c77270d1ee23f547bff8b7644f402a51d06.tar.gz
geiser-217e0c77270d1ee23f547bff8b7644f402a51d06.tar.bz2
Using the scheme reader to read modules names.
Diffstat (limited to 'elisp/geiser-plt.el')
-rw-r--r--elisp/geiser-plt.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-plt.el b/elisp/geiser-plt.el
index 6a804f2..52af728 100644
--- a/elisp/geiser-plt.el
+++ b/elisp/geiser-plt.el
@@ -72,7 +72,7 @@ This function uses `geiser-plt-init-file' if it exists."
(goto-char (point-min))
(if (re-search-forward
"^\\(?:#lang\\|(module +[^ ]+?\\) +\\([^ ]+?\\|([^)]+)\\) *$" nil t)
- (car (read-from-string (match-string-no-properties 1)))
+ (car (geiser-syntax--read-from-string (match-string-no-properties 1)))
:f)))
(defun geiser-plt--geiser-procedure (proc)
@@ -88,7 +88,8 @@ This function uses `geiser-plt-init-file' if it exists."
(goto-char (point-min))
(and (re-search-forward geiser-plt--module-re nil t)
(ignore-errors
- (car (read-from-string (match-string-no-properties 1)))))))
+ (car (geiser-syntax--read-from-string
+ (match-string-no-properties 1)))))))
(defsubst geiser-plt--implicit-module ()
(save-excursion