* bug#7606: Add xhtml to auto-mode-alist
@ 2010-12-10 10:37 Karel Klíč
2010-12-11 2:51 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Karel Klíč @ 2010-12-10 10:37 UTC (permalink / raw)
To: 7606
Files with the .xhtml extension are frequently used to store XHTML
documents. There are reasons why people use .xhtml instead of .html: for
example Firefox treats files with .xhtml extension differently from
files with .html extension. Sometimes Firefox completely fails to
display local XHTML document in .html file.
Emacs should open new files with the .xhtml extension in the html mode,
and not in the fundamental mode.
Please consider the following change.
diff -up ./lisp/files.el.xhtml ./lisp/files.el
--- ./lisp/files.el.xhtml 2010-12-10 11:06:40.372710147 +0100
+++ ./lisp/files.el 2010-12-10 11:06:46.124618115 +0100
@@ -2232,7 +2232,7 @@ since only a single case-insensitive sea
(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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-11 2:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-10 10:37 bug#7606: Add xhtml to auto-mode-alist Karel Klíč
2010-12-11 2:51 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).