* lisp/files.el (auto-mode-alist): Use html-mode for *.xhtml.
authorKarel Klíc <kklic@redhat.com>
Sat, 11 Dec 2010 02:48:23 +0000 (18:48 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 11 Dec 2010 02:48:23 +0000 (18:48 -0800)
(This really only affects empty files.)

Fixes: debbugs:7606

lisp/ChangeLog
lisp/files.el

index 9587fab..a63aa19 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-11  Karel Klíč  <kklic@redhat.com>
+
+       * files.el (auto-mode-alist): Use html-mode for *.xhtml.  (Bug#7606)
+
 2010-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        Derive from prog-mode, use derived-mode-p, and fix up various
index 09e2a4e..460b005 100644 (file)
@@ -2232,7 +2232,7 @@ since only a single case-insensitive search through the alist is made."
    (lambda (elt)
      (cons (purecopy (car elt)) (cdr elt)))
    `(;; do this first, so that .html.pl is Polish html, not Perl
-     ("\\.s?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode)
+     ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode)
      ("\\.svgz?\\'" . image-mode)
      ("\\.svgz?\\'" . xml-mode)
      ("\\.x[bp]m\\'" . image-mode)