diff options
| author | Chong Yidong | 2011-05-28 15:26:25 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-05-28 15:26:25 -0400 |
| commit | 5d344e883f9e599a1580009a55bcf09230e1da02 (patch) | |
| tree | 469aea4f6f489ab0fe1bef0cf356dd3cc67e405f | |
| parent | 60ed8c727a898dee2c3be447009f31e763c8491a (diff) | |
| download | emacs-5d344e883f9e599a1580009a55bcf09230e1da02.tar.gz emacs-5d344e883f9e599a1580009a55bcf09230e1da02.zip | |
Tweak auto-mode-alist to handle config.h.in (Bug#8547).
* lisp/files.el (auto-mode-alist): Move config rule after the
in-stripping one.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/files.el | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 29fb623cba8..a27a784f0ec 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-05-28 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * files.el (auto-mode-alist): Move config rule after the | ||
| 4 | in-stripping one (Bug#8547). | ||
| 5 | |||
| 1 | 2011-05-28 Alp Aker <aker@pitt.edu> (tiny change) | 6 | 2011-05-28 Alp Aker <aker@pitt.edu> (tiny change) |
| 2 | 7 | ||
| 3 | * buff-menu.el (Buffer-menu-revert-function, Buffer-menu-sort): | 8 | * buff-menu.el (Buffer-menu-revert-function, Buffer-menu-sort): |
diff --git a/lisp/files.el b/lisp/files.el index 6d3d5006448..cc1ad23925d 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2437,8 +2437,6 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode) | |||
| 2437 | ("\\.ppd\\'" . conf-ppd-mode) | 2437 | ("\\.ppd\\'" . conf-ppd-mode) |
| 2438 | ("java.+\\.conf\\'" . conf-javaprop-mode) | 2438 | ("java.+\\.conf\\'" . conf-javaprop-mode) |
| 2439 | ("\\.properties\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-javaprop-mode) | 2439 | ("\\.properties\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-javaprop-mode) |
| 2440 | ;; *.cf, *.cfg, *.conf, *.config[.local|.de_DE.UTF8|...], */config | ||
| 2441 | ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-mode-maybe) | ||
| 2442 | ("\\`/etc/\\(?:DIR_COLORS\\|ethers\\|.?fstab\\|.*hosts\\|lesskey\\|login\\.?de\\(?:fs\\|vperm\\)\\|magic\\|mtab\\|pam\\.d/.*\\|permissions\\(?:\\.d/.+\\)?\\|protocols\\|rpc\\|services\\)\\'" . conf-space-mode) | 2440 | ("\\`/etc/\\(?:DIR_COLORS\\|ethers\\|.?fstab\\|.*hosts\\|lesskey\\|login\\.?de\\(?:fs\\|vperm\\)\\|magic\\|mtab\\|pam\\.d/.*\\|permissions\\(?:\\.d/.+\\)?\\|protocols\\|rpc\\|services\\)\\'" . conf-space-mode) |
| 2443 | ("\\`/etc/\\(?:acpid?/.+\\|aliases\\(?:\\.d/.+\\)?\\|default/.+\\|group-?\\|hosts\\..+\\|inittab\\|ksysguarddrc\\|opera6rc\\|passwd-?\\|shadow-?\\|sysconfig/.+\\)\\'" . conf-mode) | 2441 | ("\\`/etc/\\(?:acpid?/.+\\|aliases\\(?:\\.d/.+\\)?\\|default/.+\\|group-?\\|hosts\\..+\\|inittab\\|ksysguarddrc\\|opera6rc\\|passwd-?\\|shadow-?\\|sysconfig/.+\\)\\'" . conf-mode) |
| 2444 | ;; ChangeLog.old etc. Other change-log-mode entries are above; | 2442 | ;; ChangeLog.old etc. Other change-log-mode entries are above; |
| @@ -2460,11 +2458,14 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode) | |||
| 2460 | ;; Using mode nil rather than `ignore' would let the search continue | 2458 | ;; Using mode nil rather than `ignore' would let the search continue |
| 2461 | ;; through this list (with the shortened name) rather than start over. | 2459 | ;; through this list (with the shortened name) rather than start over. |
| 2462 | ("\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" nil t) | 2460 | ("\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" nil t) |
| 2461 | ("\\.\\(?:orig\\|in\\|[bB][aA][kK]\\)\\'" nil t) | ||
| 2462 | ;; This should come after "in" stripping (e.g. config.h.in). | ||
| 2463 | ;; *.cf, *.cfg, *.conf, *.config[.local|.de_DE.UTF8|...], */config | ||
| 2464 | ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . conf-mode-maybe) | ||
| 2463 | ;; The following should come after the ChangeLog pattern | 2465 | ;; The following should come after the ChangeLog pattern |
| 2464 | ;; for the sake of ChangeLog.1, etc. | 2466 | ;; for the sake of ChangeLog.1, etc. |
| 2465 | ;; and after the .scm.[0-9] and CVS' <file>.<rev> patterns too. | 2467 | ;; and after the .scm.[0-9] and CVS' <file>.<rev> patterns too. |
| 2466 | ("\\.[1-9]\\'" . nroff-mode) | 2468 | ("\\.[1-9]\\'" . nroff-mode))) |
| 2467 | ("\\.\\(?:orig\\|in\\|[bB][aA][kK]\\)\\'" nil t))) | ||
| 2468 | "Alist of filename patterns vs corresponding major mode functions. | 2469 | "Alist of filename patterns vs corresponding major mode functions. |
| 2469 | Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). | 2470 | Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). |
| 2470 | \(NON-NIL stands for anything that is not nil; the value does not matter.) | 2471 | \(NON-NIL stands for anything that is not nil; the value does not matter.) |