1. xemacs
  2. sh-script

Commits

scop  committed 2dc8b50

Make auto-mode and interpreter-mode-alist modifications autoload-only <1041811344.31380.82.camel@bobcat.ods.org>.

  • Participants
  • Parent commits f935bd5
  • Branches default

Comments (0)

Files changed (2)

File ChangeLog

View file
 
 	* sh-script.el: Append .m?spec to auto-mode-alist instead of
 	adding to the front to restore order with this and rpm-spec-mode.
+	Make auto-mode and interpreter-mode-alist modifications
+	autoload-only.
 
 2002-11-29  Ben Wing  <ben@xemacs.org>
 

File sh-script.el

View file
       (goto-char (match-end 1))))
 
 ;; XEmacs additions
-;;;###autoload
-(add-to-list
- 'auto-mode-alist
- ;; Unix specific
- '("/\\.\\(?:bash_\\|z\\)?\\(profile\\|login\\|logout\\)\\'" . sh-mode))
-;;;###autoload
-(add-to-list
- 'auto-mode-alist
- ;; Unix specific
- '("/\\.\\(?:[ckz]sh\\|bash\\|tcsh\\|es\\|xinit\\|startx\\)rc\\'" . sh-mode))
-;;;###autoload
-(add-to-list
- ;; Unix specific
- 'auto-mode-alist '("/\\.\\(?:[kz]shenv\\|xsession\\)\\'" . sh-mode))
-;;;###autoload
-(setq auto-mode-alist
-      (append auto-mode-alist '(("\\.m?spec$" . sh-mode))))
-;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.\\(?:[ckz]?sh\\|shar\\)\\'" . sh-mode))
-;;;###autoload
-(add-to-list 'interpreter-mode-alist '("^#!.*csh" . sh-mode))
-;;;###autoload
-(add-to-list 'interpreter-mode-alist '("^#!.*sh\\b" . sh-mode))
-;;;###autoload
-(add-to-list 'interpreter-mode-alist '("^:" . sh-mode))
+;;;###autoload(add-to-list 'auto-mode-alist '("/\\.\\(?:bash_\\|z\\)?\\(profile\\|login\\|logout\\)\\'" . sh-mode))
+;;;###autoload(add-to-list 'auto-mode-alist '("/\\.\\(?:[ckz]sh\\|bash\\|tcsh\\|es\\|xinit\\|startx\\)rc\\'" . sh-mode))
+;;;###autoload(add-to-list 'auto-mode-alist '("/\\.\\(?:[kz]shenv\\|xsession\\)\\'" . sh-mode))
+;;;###autoload(setq auto-mode-alist (append auto-mode-alist '(("\\.m?spec$" . sh-mode))))
+;;;###autoload(add-to-list 'auto-mode-alist '("\\.\\(?:[ckz]?sh\\|shar\\)\\'" . sh-mode))
+;;;###autoload(add-to-list 'interpreter-mode-alist '("^#!.*csh" . sh-mode))
+;;;###autoload(add-to-list 'interpreter-mode-alist '("^#!.*sh\\b" . sh-mode))
+;;;###autoload(add-to-list 'interpreter-mode-alist '("^:" . sh-mode))
 
 (provide 'sh-script)