File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2429,7 +2429,7 @@ since only a single case-insensitive search through the alist is made."
2429
2429
(lambda (elt)
2430
2430
(cons (purecopy (car elt)) (cdr elt)))
2431
2431
`(;; do this first, so that .html.pl is Polish html, not Perl
2432
- ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html -mode)
2432
+ ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . mhtml -mode)
2433
2433
("\\.svgz?\\'" . image-mode)
2434
2434
("\\.svgz?\\'" . xml-mode)
2435
2435
("\\.x[bp]m\\'" . image-mode)
@@ -2791,8 +2791,8 @@ If FUNCTION is nil, then it is not called. (That is a way of saying
2791
2791
comment-re "*"
2792
2792
"\\(?:!DOCTYPE[ \t\r\n]+[^>]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?"
2793
2793
"[Hh][Tt][Mm][Ll]"))
2794
- . html -mode)
2795
- ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . html -mode)
2794
+ . mhtml -mode)
2795
+ ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . mhtml -mode)
2796
2796
;; These two must come after html, because they are more general:
2797
2797
("<\\?xml " . xml-mode)
2798
2798
(,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
Original file line number Diff line number Diff line change @@ -641,8 +641,11 @@ Currently this means either text/html or application/xhtml+xml."
641
641
(when (coding-system-p cs)
642
642
(decode-coding-region (point-min ) (point-max ) cs)
643
643
(setq buffer-file-coding-system last-coding-system-used))))
644
- (when (fboundp 'html-mode )
645
- (html-mode ))))
644
+ (cond
645
+ ((fboundp 'mhtml-mode )
646
+ (mhtml-mode ))
647
+ ((fboundp 'html-mode )
648
+ (html-mode )))))
646
649
(view-buffer buf)))
647
650
648
651
(defun eww-toggle-paragraph-direction ()
You can’t perform that action at this time.
0 commit comments