diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/files.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d61d838467..56328bbad57 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-09-21 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * files.el (conf-mode-maybe, magic-fallback-mode-alist): Use | ||
| 4 | nxml-mode instead of xml-mode. | ||
| 5 | |||
| 1 | 2009-09-21 Kevin Ryde <user42@zip.com.au> | 6 | 2009-09-21 Kevin Ryde <user42@zip.com.au> |
| 2 | 7 | ||
| 3 | * net/dig.el: Add "Keywords: comm", as per net-utils.el. (Bug#4501) | 8 | * net/dig.el: Add "Keywords: comm", as per net-utils.el. (Bug#4501) |
diff --git a/lisp/files.el b/lisp/files.el index b010b08d883..13f907cd411 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -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 | (xml-mode) | 2347 | (nxml-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 " . xml-mode) | 2445 | ("<\\?xml " . nxml-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 ")) |