changeset 108302:de84b07503b4

* textmodes/dns-mode.el (auto-mode-alist): Add entry for .zone files. * files.el (auto-mode-alist): Remove redundant entries.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 07 May 2010 10:18:27 -0400
parents 68fc9037b502
children 8b307cedcd04
files lisp/ChangeLog lisp/files.el lisp/textmodes/dns-mode.el
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri May 07 17:07:51 2010 +0300
+++ b/lisp/ChangeLog	Fri May 07 10:18:27 2010 -0400
@@ -4,6 +4,9 @@
 
 2010-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* textmodes/dns-mode.el (auto-mode-alist): Add entry for .zone files.
+	* files.el (auto-mode-alist): Remove redundant entries.
+
 	* files.el (auto-save-mode): Move to simple.el to fix bootstrap.
 	* simple.el (auto-save-mode): Move from files.el.
 	* minibuffer.el (completion--common-suffix): Fix copy&paste error.
--- a/lisp/files.el	Fri May 07 17:07:51 2010 +0300
+++ b/lisp/files.el	Fri May 07 10:18:27 2010 -0400
@@ -2260,7 +2260,6 @@
      ;; /tmp/Re.... or Message
      ("\\`/tmp/Re" . text-mode)
      ("/Message[0-9]*\\'" . text-mode)
-     ("\\.zone\\'" . zone-mode)
      ;; some news reader is reported to use this
      ("\\`/tmp/fol/" . text-mode)
      ("\\.oak\\'" . scheme-mode)
@@ -2294,7 +2293,6 @@
      ("#\\*mail\\*" . mail-mode)
      ("\\.g\\'" . antlr-mode)
      ("\\.ses\\'" . ses-mode)
-     ("\\.\\(soa\\|zone\\)\\'" . dns-mode)
      ("\\.docbook\\'" . sgml-mode)
      ("\\.com\\'" . dcl-mode)
      ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode)
--- a/lisp/textmodes/dns-mode.el	Fri May 07 17:07:51 2010 +0300
+++ b/lisp/textmodes/dns-mode.el	Fri May 07 10:18:27 2010 -0400
@@ -151,6 +151,7 @@
   (easy-menu-add dns-mode-menu dns-mode-map))
 
 ;;;###autoload (defalias 'zone-mode 'dns-mode)
+;;;###autoload (add-to-list 'auto-mode-alist (purecopy '("\\.zone\\'" . zone-mode)))
 
 ;; Tools.