GNU bug report logs - #20709
25.0.50; anonymous functions in `auto-mode-alist'

Previous Next

Package: emacs;

Reported by: michael_heerdegen <at> web.de

Date: Mon, 1 Jun 2015 16:00:06 UTC

Severity: minor

Found in version 25.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 20709 <at> debbugs.gnu.org
Subject: Re: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
Date: Mon, 24 Jan 2022 15:05:47 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> The problem is these lines in the defun of `set-auto-mode' starting from
> line 2871 in files.el:
>
> (if (and mode
>          (consp mode)
>          (cadr mode))
>     (setq mode (car mode)
>          ...
>
> i.e., the value in the alist pair is not tested whether it is a
> function, and the (REGEXP FUNCTION NON-NIL) case is assumed, which is
> wrong.

I've now fixed this in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 177 days ago.

Previous Next


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