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 | d2d5f62786add57cec8e48782b84a8a45c0f5b78 (patch) | |
tree | 994c09a8ba0fdc7a69adc87a40bdf76b1c0ac645 /elisp/geiser-guile.el | |
parent | d1d05b74f9b7613cd42c4bcd0173bb617e50647f (diff) | |
download | geiser-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.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 |