# HG changeset patch # User Daniel Pfeiffer # Date 1098826877 0 # Node ID 557213a7ca1742836d12c669e2ecb84bd3f72071 # Parent 018ef6100fc5df8bbeaac09f55de08c7a6979a6a (auto-mode-alist): Add pod, js, xbm and xpm and group trivial variants to shorten the list. (xml-based-modes): New var. (set-auto-mode): Give interpreter-mode-alist or :/\\]\\..*\\(emacs\\|gnus\\|viper\\)\\'" . emacs-lisp-mode) @@ -1760,7 +1745,7 @@ ;; or .#.- or VC's .~~. ;; Using mode nil rather than `ignore' would let the search continue ;; through this list (with the shortened name) rather than start over. - ("\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" ignore t) + ("\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" nil t) ;; The following should come after the ChangeLog pattern ;; for the sake of ChangeLog.1, etc. ;; and after the .scm.[0-9] and CVS' . patterns too. @@ -1849,12 +1834,20 @@ regular expression. The mode is then determined as the mode associated with that interpreter in `interpreter-mode-alist'.") +(defvar xml-based-modes '(html-mode) + "Modes that override an XML declaration. +When `set-auto-mode' sees an