# HG changeset patch # User Chong Yidong # Date 1253834537 0 # Node ID 064e6af6adba9fc70bb78f53fea9d7cfb4b1bf53 # Parent d6ddd512e29c848121c00c31a40e1c7a9878518f * nxml/nxml-mode.el: Alias xml-mode to nxml-mode. * textmodes/sgml-mode.el: Remove xml-mode alias. * files.el (auto-mode-alist, conf-mode-maybe) (magic-fallback-mode-alist): Revert 2009-09-18 and 2009-09-21 changes. diff -r d6ddd512e29c -r 064e6af6adba lisp/ChangeLog --- a/lisp/ChangeLog Thu Sep 24 20:19:58 2009 +0000 +++ b/lisp/ChangeLog Thu Sep 24 23:22:17 2009 +0000 @@ -1,3 +1,13 @@ +2009-09-24 Chong Yidong + + * nxml/nxml-mode.el: Alias xml-mode to nxml-mode. + + * textmodes/sgml-mode.el: Remove xml-mode alias. + + * files.el (auto-mode-alist, conf-mode-maybe) + (magic-fallback-mode-alist): Revert 2009-09-18 and 2009-09-21 + changes. + 2009-09-24 Alan Mackenzie * progmodes/cc-cmds.el (c-scan-conditionals): A new function like diff -r d6ddd512e29c -r 064e6af6adba lisp/files.el --- a/lisp/files.el Thu Sep 24 20:19:58 2009 +0000 +++ b/lisp/files.el Thu Sep 24 23:22:17 2009 +0000 @@ -2249,7 +2249,7 @@ ("\\`/tmp/fol/" . text-mode) ("\\.oak\\'" . scheme-mode) ("\\.sgml?\\'" . sgml-mode) - ("\\.x[ms]l\\'" . nxml-mode) + ("\\.x[ms]l\\'" . xml-mode) ("\\.dtd\\'" . sgml-mode) ("\\.ds\\(ss\\)?l\\'" . dsssl-mode) ("\\.js\\'" . js-mode) ; javascript-mode would be better @@ -2344,7 +2344,7 @@ (widen) (goto-char (point-min)) (looking-at "<\\?xml \\|[ \t\r\n]*<\\)"))) (concat "[ \t\r\n]*<" comment-re "*!DOCTYPE ")) diff -r d6ddd512e29c -r 064e6af6adba lisp/nxml/nxml-mode.el --- a/lisp/nxml/nxml-mode.el Thu Sep 24 20:19:58 2009 +0000 +++ b/lisp/nxml/nxml-mode.el Thu Sep 24 23:22:17 2009 +0000 @@ -2652,6 +2652,9 @@ (put 'entity-ref 'nxml-friendly-name "entity reference") (put 'char-ref 'nxml-friendly-name "character reference") +;;;###autoload +(defalias 'xml-mode 'nxml-mode) + (provide 'nxml-mode) ;; arch-tag: 8603bc5f-1ef9-4021-b223-322fb2ca708e diff -r d6ddd512e29c -r 064e6af6adba lisp/textmodes/sgml-mode.el --- a/lisp/textmodes/sgml-mode.el Thu Sep 24 20:19:58 2009 +0000 +++ b/lisp/textmodes/sgml-mode.el Thu Sep 24 23:22:17 2009 +0000 @@ -495,11 +495,6 @@ "\\)\\(" sgml-name-re "\\)\\1") 2)))) -;; Some programs (such as Glade 2) generate XML which has -;; -*- mode: xml -*-. -;;;###autoload -(defalias 'xml-mode 'sgml-mode) - (defun sgml-comment-indent () (if (looking-at "--") comment-column 0))