comparison lisp/progmodes/sh-script.el @ 14026:34049404937e

(interpreter-mode-alist, auto-mode-alist): Don't alter this here.
author Richard M. Stallman <rms@gnu.org>
date Fri, 05 Jan 1996 02:36:06 +0000
parents dd4a20edf654
children 2a05fc406f3a
comparison
equal deleted inserted replaced
14025:c73d14ef6a6a 14026:34049404937e
42 ;; page 2: mode-command and utility functions 42 ;; page 2: mode-command and utility functions
43 ;; page 3: statement syntax-commands for various shells 43 ;; page 3: statement syntax-commands for various shells
44 ;; page 4: various other commands 44 ;; page 4: various other commands
45 45
46 (require 'executable) 46 (require 'executable)
47
48
49
50 ;; Autoload cookie deleted here because it made loaddefs.el fail to load.
51 ;; -rms
52 (or (assoc "sh" interpreter-mode-alist)
53 (setq auto-mode-alist
54 ;; matches files
55 ;; - that have a suffix .sh, .csh or .shar (shell archive)
56 ;; - that contain resources for the various shells
57 ;; - startup files for X11
58 (cons '("\\.c?sh\\'\\|\\.shar\\'\\|/\\.\\(z?profile\\|bash_profile\\|z?login\\|bash_login\\|z?logout\\|bash_logout\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\|rcrc\\|[kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode)
59 auto-mode-alist)
60 interpreter-mode-alist
61 (nconc '(("ash" . sh-mode)
62 ("bash" . sh-mode)
63 ("csh" . sh-mode)
64 ("dtksh" . sh-mode)
65 ("es" . sh-mode)
66 ("itcsh" . sh-mode)
67 ("jsh" . sh-mode)
68 ("ksh" . sh-mode)
69 ("oash" . sh-mode)
70 ("pdksh" . sh-mode)
71 ("rc" . sh-mode)
72 ("sh" . sh-mode)
73 ("sh5" . sh-mode)
74 ("tcsh" . sh-mode)
75 ("wksh" . sh-mode)
76 ("wsh" . sh-mode)
77 ("zsh" . sh-mode))
78 interpreter-mode-alist)))
79
80 47
81 (defvar sh-ancestor-alist 48 (defvar sh-ancestor-alist
82 '((ash . sh) 49 '((ash . sh)
83 (bash . jsh) 50 (bash . jsh)
84 (dtksh . ksh) 51 (dtksh . ksh)