summaryrefslogtreecommitdiff
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
commitb6117df5d3122e429196be3996def8f51c08583e (patch)
tree15f928fc711cc6734b4d399c55f319af0476651d
parentc1f1e17f18ec5a8408dc1b987634349ed3e07c10 (diff)
downloadgeiser-b6117df5d3122e429196be3996def8f51c08583e.tar.gz
geiser-b6117df5d3122e429196be3996def8f51c08583e.tar.bz2
PLT: autodoc: support for languages specified as libs and/or module forms.
-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)