bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36401: 26.0.90; set-auto-mode uses case-insensitive match for magic-


From: Eli Zaretskii
Subject: bug#36401: 26.0.90; set-auto-mode uses case-insensitive match for magic-mode-alist
Date: Sat, 06 Jul 2019 11:36:21 +0300

> From: Benjamin Riefenstahl <Riefenstahl@mecom.de>
> Date: Thu, 27 Jun 2019 11:30:47 +0200
> 
> It turns out that "set-auto-mode" in lisp/files.el is the function that
> uses magic-mode-alist, and it just calls "looking-at" to test the type.
> Because "case-fold-search" is "t" by default, this catches files
> starting with "mtff".
> 
> Is this intentional?  If so, the documentation for "magic-mode-alist"
> should call this out, so users know they might need to work around it.
> If not, I could propose a patch to fix it.

I think this is an omission.  Please do propose a patch to fix it.

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]