unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 20709@debbugs.gnu.org
Subject: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
Date: Mon, 24 Jan 2022 15:05:47 +0100	[thread overview]
Message-ID: <87czkh6xfo.fsf@gnus.org> (raw)
In-Reply-To: <87lhg3774u.fsf@web.de> (Michael Heerdegen's message of "Mon, 01 Jun 2015 17:58:25 +0200")

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





      parent reply	other threads:[~2022-01-24 14:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01 15:58 bug#20709: 25.0.50; anonymous functions in `auto-mode-alist' Michael Heerdegen
2015-06-02 15:42 ` Stefan Monnier
2015-06-02 16:18   ` Michael Heerdegen
2015-06-02 18:13     ` Stefan Monnier
2019-09-29 23:32 ` Stefan Kangas
2019-09-30  4:39   ` Michael Heerdegen
2019-11-07  0:24     ` Stefan Kangas
2022-01-24 14:05 ` Lars Ingebrigtsen [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czkh6xfo.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=20709@debbugs.gnu.org \
    --cc=michael_heerdegen@web.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).