From: Chong Yidong Date: Thu, 24 Sep 2009 23:22:17 +0000 (+0000) Subject: * nxml/nxml-mode.el: Alias xml-mode to nxml-mode. X-Git-Tag: emacs-pretest-23.1.90~1157 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e477ca8496f8170d1857ed92b51c27aa5ad22b95;p=emacs.git * 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 --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d1d6dd6576..669c27f5fce 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/files.el b/lisp/files.el index 13f907cd411..9d6218cc4eb 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2249,7 +2249,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\)\\'" . archive-mode) ("\\`/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 @@ and `magic-mode-alist', which determines modes based on file contents.") (widen) (goto-char (point-min)) (looking-at "<\\?xml \\|[ \t\r\n]*<\\)"))) (concat "[ \t\r\n]*<" comment-re "*!DOCTYPE ")) diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index b2ad12b3243..054ec3c9c2c 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -2652,6 +2652,9 @@ With a prefix argument, inserts the character directly." (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 --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 9d9dcf3d89a..74cf99bd865 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -495,11 +495,6 @@ Do \\[describe-key] on the following bindings to discover what they do. "\\)\\(" 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))