From: Chong Yidong Date: Tue, 5 Jun 2007 15:48:44 +0000 (+0000) Subject: (auto-mode-alist): Add lower-priority match for names like X-Git-Tag: emacs-pretest-22.1.90~1427 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ff10f61650860a7e62677ea208f2d1b45667840;p=emacs.git (auto-mode-alist): Add lower-priority match for names like ChangeLog.old. --- diff --git a/lisp/files.el b/lisp/files.el index 5693e40ced5..90451882945 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2010,6 +2010,9 @@ since only a single case-insensitive search through the alist is made." ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-mode) ("\\`/etc/\\(?:DIR_COLORS\\|ethers\\|.?fstab\\|.*hosts\\|lesskey\\|login\\.?de\\(?:fs\\|vperm\\)\\|magic\\|mtab\\|pam\\.d/.*\\|permissions\\(?:\\.d/.+\\)?\\|protocols\\|rpc\\|services\\)\\'" . conf-space-mode) ("\\`/etc/\\(?:acpid?/.+\\|aliases\\(?:\\.d/.+\\)?\\|default/.+\\|group-?\\|hosts\\..+\\|inittab\\|ksysguarddrc\\|opera6rc\\|passwd-?\\|shadow-?\\|sysconfig/.+\\)\\'" . conf-mode) + ;; ChangeLog.old etc. Other change-log-mode entries are above; + ;; this has lower priority to avoid matching changelog.sgml etc. + ("[cC]hange[lL]og[-.][-0-9a-z]+\\'" . change-log-mode) ;; either user's dot-files or under /etc or some such ("/\\.?\\(?:gnokiirc\\|kde.*rc\\|mime\\.types\\|wgetrc\\)\\'" . conf-mode) ;; alas not all ~/.*rc files are like this