]> git.eshelyaron.com Git - emacs.git/commit
Put files in mhtml-mode when they have <!DOCTYPE, case-insensitive
authorDaniel Martín <mardani29@yahoo.es>
Sat, 19 Sep 2020 17:15:48 +0000 (19:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 19 Sep 2020 17:15:48 +0000 (19:15 +0200)
commitc9f845a53c946f28820a476de7089f486ccaf6b9
tree89b368ce0a13026807c7dc303c469633ad17f087
parent7222e975be8d3d128086ed49506aa5bd8fccfae5
Put files in mhtml-mode when they have <!DOCTYPE, case-insensitive

* lisp/files.el (magic-fallback-mode-alist): Match "DOCTYPE" in a
case-insensitive way before putting files in mhtml-mode. See
https://html.spec.whatwg.org/multipage/syntax.html#the-doctype for the
standard reference.
* test/lisp/files-tests.el (files-test-magic-mode-alist-doctype): Add
a test (bug#43511).
lisp/files.el
test/lisp/files-tests.el