aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-02-21 19:55:46 +0000
committerRichard M. Stallman2006-02-21 19:55:46 +0000
commitf623a9d2e6e89ea12dc80fabc636a6b1fb4af5e9 (patch)
tree97ceb94d1f532471f5fac7082ccfe42b8693c19d
parentfe541a2743944789a066e5bcdf461d88791a18f8 (diff)
downloademacs-f623a9d2e6e89ea12dc80fabc636a6b1fb4af5e9.tar.gz
emacs-f623a9d2e6e89ea12dc80fabc636a6b1fb4af5e9.zip
(sh-mode): Set shell type based on file name if no other specific basis.
-rw-r--r--lisp/ChangeLog22
-rw-r--r--lisp/progmodes/sh-script.el10
2 files changed, 32 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 32f4d243fce..f5d87562709 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,25 @@
12006-02-21 Richard M. Stallman <rms@gnu.org>
2
3 * progmodes/sh-script.el (sh-mode): Set shell type based on file name
4 if there's no other specific basis.
5
6 * emacs-lisp/unsafep.el (unsafep): Don't treat &rest or &optional
7 as variables at all.
8 (unsafep-variable): Rename arg; doc fix.
9
10 * abbrevlist.el (list-one-abbrev-table): Add autoload.
11
12 * calendar/appt.el (diary-selective-display): Add defvar.
13
14 * sort.el (sort-columns): Use Posix arg syntax for `sort'.
15
16 * isearch.el (search-whitespace-regexp): Fix custom type.
17
18 * help.el (describe-key-briefly): Compute interactive args
19 in same was as before previous change.
20
21 * files.el (enable-local-variables): Doc fix.
22
12006-02-21 Kim F. Storm <storm@cua.dk> 232006-02-21 Kim F. Storm <storm@cua.dk>
2 24
3 * fringe.el: Cleanup as file is now pre-loaded. 25 * fringe.el: Cleanup as file is now pre-loaded.
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index e331268391a..02ce4a21c97 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1438,6 +1438,16 @@ with your script for an edit-interpret-debug cycle."
1438 ((and buffer-file-name 1438 ((and buffer-file-name
1439 (string-match "\\.m?spec\\'" buffer-file-name)) 1439 (string-match "\\.m?spec\\'" buffer-file-name))
1440 "rpm"))))) 1440 "rpm")))))
1441 (unless interpreter
1442 (setq interpreter
1443 (cond ((string-match "[.]sh\\>" buffer-file-name)
1444 "sh")
1445 ((string-match "[.]bash\\>" buffer-file-name)
1446 "bash")
1447 ((string-match "[.]ksh\\>" buffer-file-name)
1448 "ksh")
1449 ((string-match "[.]csh\\>" buffer-file-name)
1450 "csh"))))
1441 (sh-set-shell (or interpreter sh-shell-file) nil nil)) 1451 (sh-set-shell (or interpreter sh-shell-file) nil nil))
1442 (run-mode-hooks 'sh-mode-hook)) 1452 (run-mode-hooks 'sh-mode-hook))
1443 1453