From: Eli Zaretskii <eliz@gnu.org>
To: Benjamin Riefenstahl <Riefenstahl@mecom.de>
Cc: 36401@debbugs.gnu.org
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 [thread overview]
Message-ID: <83y31b8sqi.fsf@gnu.org> (raw)
In-Reply-To: <87o92jtlx4.fsf@riefenstahl-linux.mecom.de> (message from Benjamin Riefenstahl on Thu, 27 Jun 2019 11:30:47 +0200)
> 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.
next prev parent reply other threads:[~2019-07-06 8:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-27 9:30 bug#36401: 26.0.90; set-auto-mode uses case-insensitive match for magic-mode-alist Benjamin Riefenstahl
2019-07-06 8:36 ` Eli Zaretskii [this message]
2019-07-14 15:23 ` Benjamin Riefenstahl
2019-07-20 9:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y31b8sqi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=36401@debbugs.gnu.org \
--cc=Riefenstahl@mecom.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.