]> git.eshelyaron.com Git - emacs.git/commit
Make REs in magic-(fallback-)mode-alist case-sensitive.
authorBenjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
Sun, 14 Jul 2019 15:09:39 +0000 (17:09 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 20 Jul 2019 09:27:19 +0000 (12:27 +0300)
commite6bfc6753cac7d8eaf67ff3adea0087eb19e7f6e
treee74eb6aada34a6aceb6d6e7284667f2fd18f9915
parent070dd439096c0f72d8f73823649e3c650f31c890
Make REs in magic-(fallback-)mode-alist case-sensitive.

These variables are used for well-defined file formats where relaxed
case matching is not wanted usually.

* lisp/files.el (magic-mode-alist, magic-fallback-mode-alist): Update
the doc string.
(set-auto-mode): Make looking-at for elements of magic-mode-alist and
magic-fallback-mode-alist use case-fold-search == nil.
* lisp/files.el (files-test-magic-mode-alist-re-baseline)
(files-test-magic-mode-alist-re-no-match)
(files-test-magic-mode-alist-re-case-diff): Add.
lisp/files.el
test/lisp/files-tests.el