aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-09-24 23:22:17 +0000
committerChong Yidong2009-09-24 23:22:17 +0000
commite477ca8496f8170d1857ed92b51c27aa5ad22b95 (patch)
treee197743865efca4fdbd2e00ee27300d89b7ec8c3
parent0a218d34a2110a5b3120a50dc089c9275309e419 (diff)
downloademacs-e477ca8496f8170d1857ed92b51c27aa5ad22b95.tar.gz
emacs-e477ca8496f8170d1857ed92b51c27aa5ad22b95.zip
* 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.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/files.el6
-rw-r--r--lisp/nxml/nxml-mode.el3
-rw-r--r--lisp/textmodes/sgml-mode.el5
4 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6d1d6dd6576..669c27f5fce 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12009-09-24 Chong Yidong <cyd@stupidchicken.com>
2
3 * nxml/nxml-mode.el: Alias xml-mode to nxml-mode.
4
5 * textmodes/sgml-mode.el: Remove xml-mode alias.
6
7 * files.el (auto-mode-alist, conf-mode-maybe)
8 (magic-fallback-mode-alist): Revert 2009-09-18 and 2009-09-21
9 changes.
10
12009-09-24 Alan Mackenzie <acm@muc.de> 112009-09-24 Alan Mackenzie <acm@muc.de>
2 12
3 * progmodes/cc-cmds.el (c-scan-conditionals): A new function like 13 * 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)
2249 ("\\`/tmp/fol/" . text-mode) 2249 ("\\`/tmp/fol/" . text-mode)
2250 ("\\.oak\\'" . scheme-mode) 2250 ("\\.oak\\'" . scheme-mode)
2251 ("\\.sgml?\\'" . sgml-mode) 2251 ("\\.sgml?\\'" . sgml-mode)
2252 ("\\.x[ms]l\\'" . nxml-mode) 2252 ("\\.x[ms]l\\'" . xml-mode)
2253 ("\\.dtd\\'" . sgml-mode) 2253 ("\\.dtd\\'" . sgml-mode)
2254 ("\\.ds\\(ss\\)?l\\'" . dsssl-mode) 2254 ("\\.ds\\(ss\\)?l\\'" . dsssl-mode)
2255 ("\\.js\\'" . js-mode) ; javascript-mode would be better 2255 ("\\.js\\'" . js-mode) ; javascript-mode would be better
@@ -2344,7 +2344,7 @@ and `magic-mode-alist', which determines modes based on file contents.")
2344 (widen) 2344 (widen)
2345 (goto-char (point-min)) 2345 (goto-char (point-min))
2346 (looking-at "<\\?xml \\|<!-- \\|<!DOCTYPE "))) 2346 (looking-at "<\\?xml \\|<!-- \\|<!DOCTYPE ")))
2347 (nxml-mode) 2347 (xml-mode)
2348 (conf-mode))) 2348 (conf-mode)))
2349 2349
2350(defvar interpreter-mode-alist 2350(defvar interpreter-mode-alist
@@ -2442,7 +2442,7 @@ If FUNCTION is nil, then it is not called. (That is a way of saying
2442 . html-mode) 2442 . html-mode)
2443 ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . html-mode) 2443 ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . html-mode)
2444 ;; These two must come after html, because they are more general: 2444 ;; These two must come after html, because they are more general:
2445 ("<\\?xml " . nxml-mode) 2445 ("<\\?xml " . xml-mode)
2446 (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)") 2446 (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
2447 (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)"))) 2447 (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)")))
2448 (concat "[ \t\r\n]*<" comment-re "*!DOCTYPE ")) 2448 (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."
2652(put 'entity-ref 'nxml-friendly-name "entity reference") 2652(put 'entity-ref 'nxml-friendly-name "entity reference")
2653(put 'char-ref 'nxml-friendly-name "character reference") 2653(put 'char-ref 'nxml-friendly-name "character reference")
2654 2654
2655;;;###autoload
2656(defalias 'xml-mode 'nxml-mode)
2657
2655(provide 'nxml-mode) 2658(provide 'nxml-mode)
2656 2659
2657;; arch-tag: 8603bc5f-1ef9-4021-b223-322fb2ca708e 2660;; 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.
495 "\\)\\(" sgml-name-re "\\)\\1") 495 "\\)\\(" sgml-name-re "\\)\\1")
496 2)))) 496 2))))
497 497
498;; Some programs (such as Glade 2) generate XML which has
499;; -*- mode: xml -*-.
500;;;###autoload
501(defalias 'xml-mode 'sgml-mode)
502
503(defun sgml-comment-indent () 498(defun sgml-comment-indent ()
504 (if (looking-at "--") comment-column 0)) 499 (if (looking-at "--") comment-column 0))
505 500