aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-02-19 08:13:10 +0000
committerKarl Heuer1996-02-19 08:13:10 +0000
commitdfeadd842f22d67218e78d59d779dd4b7e0ee143 (patch)
treef05dd11a9650d9e0128367b26b5b0c8c069e040f
parentdb188a6121eca7e6a48f54462cb95a125c0819d5 (diff)
downloademacs-dfeadd842f22d67218e78d59d779dd4b7e0ee143.tar.gz
emacs-dfeadd842f22d67218e78d59d779dd4b7e0ee143.zip
(interpreter-mode-alist): Add mawk.
(set-auto-mode): Allow either space or tab in #! line.
-rw-r--r--lisp/files.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 4ceab9c5d1d..31c7f257ce7 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1018,6 +1018,7 @@ REGEXP and search the list again for another match.")
1018 ("tcl" . tcl-mode) 1018 ("tcl" . tcl-mode)
1019 ("tclsh" . tcl-mode) 1019 ("tclsh" . tcl-mode)
1020 ("awk" . awk-mode) 1020 ("awk" . awk-mode)
1021 ("mawk" . awk-mode)
1021 ("nawk" . awk-mode) 1022 ("nawk" . awk-mode)
1022 ("gawk" . awk-mode) 1023 ("gawk" . awk-mode)
1023 ("scm" . scheme-mode) 1024 ("scm" . scheme-mode)
@@ -1172,7 +1173,7 @@ If `enable-local-variables' is nil, this function does not check for a
1172 (let ((interpreter 1173 (let ((interpreter
1173 (save-excursion 1174 (save-excursion
1174 (goto-char (point-min)) 1175 (goto-char (point-min))
1175 (if (looking-at "#! *\\([^ \t\n]*/bin/env +\\)?\\([^ \t\n]+\\)") 1176 (if (looking-at "#![ \t]?\\([^ \t\n]*/bin/env[ \t]\\)?\\([^ \t\n]+\\)")
1176 (buffer-substring (match-beginning 2) 1177 (buffer-substring (match-beginning 2)
1177 (match-end 2)) 1178 (match-end 2))
1178 ""))) 1179 "")))