diff options
| -rw-r--r-- | lisp/files.el | 6 | ||||
| -rw-r--r-- | lisp/net/eww.el | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el index 204c26416a6..6848818cad1 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2429,7 +2429,7 @@ since only a single case-insensitive search through the alist is made." | |||
| 2429 | (lambda (elt) | 2429 | (lambda (elt) |
| 2430 | (cons (purecopy (car elt)) (cdr elt))) | 2430 | (cons (purecopy (car elt)) (cdr elt))) |
| 2431 | `(;; do this first, so that .html.pl is Polish html, not Perl | 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 | ("\\.svgz?\\'" . image-mode) | 2433 | ("\\.svgz?\\'" . image-mode) |
| 2434 | ("\\.svgz?\\'" . xml-mode) | 2434 | ("\\.svgz?\\'" . xml-mode) |
| 2435 | ("\\.x[bp]m\\'" . image-mode) | 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 | comment-re "*" | 2791 | comment-re "*" |
| 2792 | "\\(?:!DOCTYPE[ \t\r\n]+[^>]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?" | 2792 | "\\(?:!DOCTYPE[ \t\r\n]+[^>]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?" |
| 2793 | "[Hh][Tt][Mm][Ll]")) | 2793 | "[Hh][Tt][Mm][Ll]")) |
| 2794 | . html-mode) | 2794 | . mhtml-mode) |
| 2795 | ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . html-mode) | 2795 | ("<!DOCTYPE[ \t\r\n]+[Hh][Tt][Mm][Ll]" . mhtml-mode) |
| 2796 | ;; These two must come after html, because they are more general: | 2796 | ;; These two must come after html, because they are more general: |
| 2797 | ("<\\?xml " . xml-mode) | 2797 | ("<\\?xml " . xml-mode) |
| 2798 | (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)") | 2798 | (,(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 () |