aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/files.el6
-rw-r--r--lisp/net/eww.el7
2 files changed, 8 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 0a023a88b10..bf48bce3b0d 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2424,7 +2424,7 @@ since only a single case-insensitive search through the alist is made."
2424 (lambda (elt) 2424 (lambda (elt)
2425 (cons (purecopy (car elt)) (cdr elt))) 2425 (cons (purecopy (car elt)) (cdr elt)))
2426 `(;; do this first, so that .html.pl is Polish html, not Perl 2426 `(;; do this first, so that .html.pl is Polish html, not Perl
2427 ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode) 2427 ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . mhtml-mode)
2428 ("\\.svgz?\\'" . image-mode) 2428 ("\\.svgz?\\'" . image-mode)
2429 ("\\.svgz?\\'" . xml-mode) 2429 ("\\.svgz?\\'" . xml-mode)
2430 ("\\.x[bp]m\\'" . image-mode) 2430 ("\\.x[bp]m\\'" . image-mode)
@@ -2786,8 +2786,8 @@ If FUNCTION is nil, then it is not called. (That is a way of saying
2786 comment-re "*" 2786 comment-re "*"
2787 "\\(?:!DOCTYPE[ \t\r\n]+[^>]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?" 2787 "\\(?:!DOCTYPE[ \t\r\n]+[^>]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?"
2788 "[Hh][Tt][Mm][Ll]")) 2788 "[Hh][Tt][Mm][Ll]"))
2789 . html-mode) 2789 . mhtml-mode)
2790 ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . html-mode) 2790 ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . mhtml-mode)
2791 ;; These two must come after html, because they are more general: 2791 ;; These two must come after html, because they are more general:
2792 ("<\\?xml " . xml-mode) 2792 ("<\\?xml " . xml-mode)
2793 (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)") 2793 (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 619c703e01c..fe316579142 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -641,8 +641,11 @@ Currently this means either text/html or application/xhtml+xml."
641 (when (coding-system-p cs) 641 (when (coding-system-p cs)
642 (decode-coding-region (point-min) (point-max) cs) 642 (decode-coding-region (point-min) (point-max) cs)
643 (setq buffer-file-coding-system last-coding-system-used)))) 643 (setq buffer-file-coding-system last-coding-system-used))))
644 (when (fboundp 'html-mode) 644 (cond
645 (html-mode)))) 645 ((fboundp 'mhtml-mode)
646 (mhtml-mode))
647 ((fboundp 'html-mode)
648 (html-mode)))))
646 (view-buffer buf))) 649 (view-buffer buf)))
647 650
648(defun eww-toggle-paragraph-direction () 651(defun eww-toggle-paragraph-direction ()