diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-04 22:02:54 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-04 22:03:43 +0100 |
commit | 2b84012e105c3f798bbae51c989edb7258d0714b (patch) | |
tree | e2f5467ada2b9a00a295fae09ffe32bd8bcfbeb0 | |
parent | 2603c39ff801aa860420d65b589dfe831240d05d (diff) | |
download | geiser-guile-2b84012e105c3f798bbae51c989edb7258d0714b.tar.gz geiser-guile-2b84012e105c3f798bbae51c989edb7258d0714b.tar.bz2 |
Implementation guessing for scripts with #! ... guile
-rw-r--r-- | elisp/geiser-guile.el | 6 |
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 |