GNU bug report logs - #75961
set-auto-mode--apply-alist

Previous Next

Package: emacs;

Reported by: nat chapman <nat.chapman <at> proton.me>

Date: Fri, 31 Jan 2025 07:59:02 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 75961 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: nat.chapman <at> proton.me, 75961 <at> debbugs.gnu.org, tom <at> tromey.com
Subject: Re: bug#75961: set-auto-mode--apply-alist
Date: Sun, 16 Feb 2025 08:19:16 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: nat chapman <nat.chapman <at> proton.me>,  75961 <at> debbugs.gnu.org,
>   tom <at> tromey.com
> Date: Sat, 15 Feb 2025 18:53:16 -0500
> 
> >> emacs -Q --eval '(progn (define-derived-mode test-mode fundamental-mode
> >> "TEST" (message "Test mode called")) (add-to-list (quote auto-mode-alist)
> >> (quote ("\\.test$" test-mode t))))' file.html.test file.test
> >> 
> >> Buffer visiting file.html.test is in mhtml-mode, buffer visiting file.test
> >> is in fundamental mode, no message is emitted. 
> 
> Yup.
> 
> The patch below seems to do the trick.  Any comment/objection?

Not from me.




This bug report was last modified 96 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.