[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
From: |
Lars Ingebrigtsen |
Subject: |
bug#20709: 25.0.50; anonymous functions in `auto-mode-alist' |
Date: |
Mon, 24 Jan 2022 15:05:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#20709: 25.0.50; anonymous functions in `auto-mode-alist',
Lars Ingebrigtsen <=