summaryrefslogtreecommitdiff
path: root/elisp/geiser-plt.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-10-15 22:03:52 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-10-15 22:03:52 +0200
commite42bfdb26e7ce33f80ed8dc501824431f57473cb (patch)
tree68233033e037727e8bd1e13a006f190d04676e47 /elisp/geiser-plt.el
parenta17dad508cc8ef98d0a35c017a2ebad6cbc55e92 (diff)
downloadgeiser-guile-e42bfdb26e7ce33f80ed8dc501824431f57473cb.tar.gz
geiser-guile-e42bfdb26e7ce33f80ed8dc501824431f57473cb.tar.bz2
PLT: autodoc: support for languages specified as libs and/or module forms.
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 01e10a2..9fcd3f5 100644
--- a/elisp/geiser-plt.el
+++ b/elisp/geiser-plt.el
@@ -70,8 +70,9 @@ This function uses `geiser-plt-init-file' if it exists."
(defun geiser-plt--language ()
(save-excursion
(goto-char (point-min))
- (if (re-search-forward "^#lang +\\([^ ]+?\\) *$" nil t)
- (intern (match-string-no-properties 1))
+ (if (re-search-forward
+ "^\\(?:#lang\\|(module +[^ ]+?\\) +\\([^ ]+?\\|([^)]+)\\) *$" nil t)
+ (car (read-from-string (match-string-no-properties 1)))
:f)))
(defun geiser-plt--geiser-procedure (proc)