summaryrefslogtreecommitdiff
path: root/elisp/geiser-guile.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-04 22:02:54 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-04 22:03:43 +0100
commitd2d5f62786add57cec8e48782b84a8a45c0f5b78 (patch)
tree994c09a8ba0fdc7a69adc87a40bdf76b1c0ac645 /elisp/geiser-guile.el
parentd1d05b74f9b7613cd42c4bcd0173bb617e50647f (diff)
downloadgeiser-guile-d2d5f62786add57cec8e48782b84a8a45c0f5b78.tar.gz
geiser-guile-d2d5f62786add57cec8e48782b84a8a45c0f5b78.tar.bz2
Implementation guessing for scripts with #! ... guile
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r--elisp/geiser-guile.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 3e1c03f..f13fab6 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -193,10 +193,14 @@ This function uses `geiser-guile-init-file' if it exists."
;;; Trying to ascertain whether a buffer is Guile Scheme:
+(defconst geiser-guile--guess-re
+ (format "\\(%s\\|#! *.+\\(/\\| \\)guile\\( *\\\\\\)?\\)"
+ geiser-guile--module-re))
+
(defun geiser-guile--guess ()
(save-excursion
(goto-char (point-min))
- (re-search-forward geiser-guile--module-re nil t)))
+ (re-search-forward geiser-guile--guess-re nil t)))
;;; Compilation shell regexps