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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: michael_heerdegen@HIDDEN; dated Mon, 1 Jun 2015 16:00:06 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 20709 <at> debbugs.gnu.org:


Received: (at 20709) by debbugs.gnu.org; 7 Nov 2019 00:25:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 19:25:08 2019
Received: from localhost ([127.0.0.1]:41445 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSVbn-0007aJ-Ut
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 19:25:08 -0500
Received: from host.gofardesign.uk ([208.79.239.190]:56028)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefan@HIDDEN>) id 1iSVbm-0007Zs-Ph
 for 20709 <at> debbugs.gnu.org; Wed, 06 Nov 2019 19:25:07 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; 
 s=default;
 h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=2VSBu1pnu8whP2CrMXw2qYURfKnl4SdQZcV0P+VbeVU=; b=PVPMItfrVf4jxzmNc9imqt+eDJ
 3SENY2MsrOoT8YrMMlp7vezz7+K0kzStUFponSLOhN74dT+pLBF/pdIo4qLr0k+L5Xo8T54YLk0yG
 GbxbiBz+RXqGxq69fn67EOkV98Qi8PWYPjTdHiVMJ19akK3l6RESatr9mVU+LMlQ0RR0=;
Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:54650
 helo=localhost)
 by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.92) (envelope-from <stefan@HIDDEN>)
 id 1iSVbg-0002aD-9u; Wed, 06 Nov 2019 18:25:01 -0600
From: Stefan Kangas <stefan@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
In-Reply-To: <8736ge5ree.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 30
 Sep 2019 06:39:37 +0200")
References: <CADwFkmkaT5Myho9_-4VzJD4SuAMXQZ9WC7xqn823nehTTeVoBQ@HIDDEN>
 <8736ge5ree.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Date: Thu, 07 Nov 2019 01:24:58 +0100
Message-ID: <87sgn0wn1h.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - host.gofardesign.uk
X-AntiAbuse: Original Domain - debbugs.gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - marxist.se
X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id:
 stefan@HIDDEN
X-Authenticated-Sender: host.gofardesign.uk: stefan@HIDDEN
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 20709
Cc: 20709 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Stefan Kangas <stefan@HIDDEN> writes:
>
>> Did you ever get around to fixing this?
>
> I don't recall - probably not.  I will be absent for three days, I'll
> have a look when I'm back.

Just a reminder to please take a look at this when you find some time.

Thanks in advance.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20709; Package emacs. Full text available.

Message received at 20709 <at> debbugs.gnu.org:


Received: (at 20709) by debbugs.gnu.org; 30 Sep 2019 04:40:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 30 00:40:03 2019
Received: from localhost ([127.0.0.1]:56487 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iEnTe-0002Ud-Vi
	for submit <at> debbugs.gnu.org; Mon, 30 Sep 2019 00:40:03 -0400
Received: from mout.web.de ([212.227.15.14]:41097)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iEnTd-0002U1-4m
 for 20709 <at> debbugs.gnu.org; Mon, 30 Sep 2019 00:40:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1569818378;
 bh=r2fvgAFEl84epdhF8NmAlKAPIGnboMB/BX2HMMdPtsE=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=cE61hdcWs3WywdcTclpRaiIuwOBbIwPh7Rty/jF5dk85wDYEisDuLGHE66G4VJnbL
 rEWO0U4CBKU6MNbGCUjKcwIJh1f5JXqRG9vw/8SutsQW0tXyqIQ1Mkch8ek098wl8Z
 +hzjsO0dml4XEMKsLPbSz3RlI4YoXiYvg5XEDtgA=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([92.208.180.108]) by smtp.web.de (mrweb004
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LlJzS-1hh6cB3fzq-00azPQ; Mon, 30
 Sep 2019 06:39:37 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
References: <CADwFkmkaT5Myho9_-4VzJD4SuAMXQZ9WC7xqn823nehTTeVoBQ@HIDDEN>
Date: Mon, 30 Sep 2019 06:39:37 +0200
In-Reply-To: <CADwFkmkaT5Myho9_-4VzJD4SuAMXQZ9WC7xqn823nehTTeVoBQ@HIDDEN>
 (Stefan Kangas's message of "Mon, 30 Sep 2019 01:32:11 +0200")
Message-ID: <8736ge5ree.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:rRwkn1SXl9Ut+u/YEmqpRsj4bVI1XGL6TlZk04TM/56FD5f+O5N
 u8WW/NCZgH9ToK4Xhd3Jy8d5jLjv41OPKhRInbRxAbme2WW8h7x63/qnfDefknAxADV6tAB
 hB4eGxwYhtIN0q+dITNXOVttkHCujAnHd9PKOsogR934U4/E6i1J8kPBH+uvFCkkFN48M+d
 kd039nX8pZ0eW4uyiWCzg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:k4v2NqkD4Ls=:jdoNxIUvXdWXUhGSfYT0v7
 jGK9ZRyLbI0GXqfg0nX3X7oNhTkz5xG48IMSna0GrNM08IK8Cg2XMxRQ030wTfHYY50c8MyCJ
 NwGI/WJ7MqrkPmvcHG3hKdIRrtux204Gq/qFAispCnnXJhs7dCDjL0IbF1/uZ2Mr8Ovoc0izY
 EuriCdnrQl39TNkwPkRql2GECaa7RVCYbvtDY8Giq3dNRQr5COeDTwBWWApeXHsaQqGBgomJH
 OvQGV0wuFCOjHFjr+Pro1bSZ4+m50i/uTa8DFIQ+GBvWoiP7Mp4EjB99zKMKYfBdRGkdCpK1U
 TSOQhYACJVO32tfmXIhyPSWxzR66iEXVSBb0X2/BtySEP9Os9zyHJ7GdnTunL/K8VMI5zvJ5I
 sL7rD2N4zpc/szEuRQVyWFU2dcvmrmOfJptei6Ng7QSqFseW9yKAYWdxzgUrZ6C1U2yaB1uD0
 Y1dE8u+TEhVD997Fpfw2VouIwnxyT//mkvIzsqfNO6BIBKBkbuBYrPShXIKFimkTpZk9fe0L6
 QuXkW0T7tSNDbdXncOzBaXAYvemf+zQPOJNvL2b9L0+PNAzjKWA20VtfmlRs6wwW40Gsuk2QB
 xOUHdSZ7XAGej4HaNel8fyV4G7BP3OjfJFBFXcajKAhLikLrL/cQc4cJrqCMWoMxhiV4HJPX9
 QW1RVgnkdez2E00YXronsj1Fxr1PpZyxChA0+na+sHNYYmqTeyyVxPvP9nCkoCp5NOwfxyFOp
 Z/RTvggg+AcfE5RJ1eod23aQUV1BuyPTOJHT1sfK/hl5ItDzrIOy/OCmPRn1g9IEWWNVtZhYR
 o+x4GeJcBrTBVL7gFNnes6ney4VTfCwSD5UKcmp2O9wNloZf0DzghP28M3psmpgxhU4zzv47b
 NN6cPJ1uCknfbt5gs+1OwlBe9TllD/fDMMVsMud89BQf+29dxbwG2N2P8U6omJC+wOT5f9v79
 Tiv4wz1rORKOmXCtpTuKs1AZyX4wUP2hTlXgbOw3OdBL+NodjgzatP8dM8b54IdITcnbt7RMi
 xvz7L0Wobk4/Gx82vYH71C1ffreXZfn2Cn4k5sP2x/+3eRowZFi3/h5Ug3Mzkj22Z9ATe2KYJ
 188INIgGuxrawS5/h/Fzc9JdSUbBgSCZoQZGaovZR8SqSXKPs6DHjCMoeEBzvuqshXE9aMmpX
 XAQWqVejWQeskp8jW8QRW+XDXIDEgjMeLg8y6gBBZek/FEAWcMAoX5AS/4xl8bH1VKLQUvcJj
 yc8bi6N+lO3O1e0MtQiG7aLWDCYD/z6MmiGWWTIKm/BgoIuofvcpwZSFNO4A=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20709
Cc: 20709 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Kangas <stefan@HIDDEN> writes:

> Did you ever get around to fixing this?

I don't recall - probably not.  I will be absent for three days, I'll
have a look when I'm back.

Regards,

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20709; Package emacs. Full text available.

Message received at 20709 <at> debbugs.gnu.org:


Received: (at 20709) by debbugs.gnu.org; 29 Sep 2019 23:32:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 29 19:32:29 2019
Received: from localhost ([127.0.0.1]:56139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iEig1-0000hM-1y
	for submit <at> debbugs.gnu.org; Sun, 29 Sep 2019 19:32:29 -0400
Received: from mail-pf1-f178.google.com ([209.85.210.178]:37334)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1iEig0-0000e8-6o
 for 20709 <at> debbugs.gnu.org; Sun, 29 Sep 2019 19:32:28 -0400
Received: by mail-pf1-f178.google.com with SMTP id y5so4484736pfo.4
 for <20709 <at> debbugs.gnu.org>; Sun, 29 Sep 2019 16:32:28 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc;
 bh=IFrJ2vU6vc6v5MvCvcdvnKg7ANe00DsUKoPbVLh/O90=;
 b=HPJ++AgXK9/GHbTYHzMHnku1oB8UYv1rNOq/WermOc5CtXpW1Tmld0vMzCIqGKE2Ln
 +vui6ETiQtsjfpAdJaPlLY0Tzo1vBgvj4g97Ixz+Kt7R73iSxticyJEoQYeWifthrNKf
 4mZmEzt71e8vpY4wZ5peVoCeCaqWv6SGH91Jbz8LPcke3L4HGe2PnaoHQdA78pt9JxzM
 ysvcGgCXt5LgZHT6weFONjh81447RVHBqw2huizuVjK865S1zyNiRO+It2fp81hS2xxd
 YDdWLqlWPB0xGVdr3EO4eL7vw4CQ8y9/f/fK1oedIBUfQn1gzYX63nc9SNlMD4G/aKPs
 nLZg==
X-Gm-Message-State: APjAAAX+7tmL9fRLY3EnrXww9t7TWpXx9LdcnHY5CUAzNETPYCrF3dNY
 JXeSqJbcRG6jQiErXxp4/w6imqNEtPQ30lincgE=
X-Google-Smtp-Source: APXvYqw+Ne7eC7LBkNaDxyW2GidQpblMGrtfqOG0P1aI9Q7e7YQn558yFZLJslRfpa9NauVgYDfTtTaB248sCHvly8M=
X-Received: by 2002:a17:90a:1150:: with SMTP id
 d16mr24090308pje.2.1569799942584; 
 Sun, 29 Sep 2019 16:32:22 -0700 (PDT)
MIME-Version: 1.0
From: Stefan Kangas <stefan@HIDDEN>
Date: Mon, 30 Sep 2019 01:32:11 +0200
Message-ID: <CADwFkmkaT5Myho9_-4VzJD4SuAMXQZ9WC7xqn823nehTTeVoBQ@HIDDEN>
Subject: Re: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20709
Cc: 20709 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Stefan Monnier <monnier@HIDDEN> writes:
>
>> > File mode specification error: (void-function closure)
>>
>> Plain bug, yes.  Please add a (not (functionp mode)) test in there.
>
> Should I do it?  I have the rights now, but it'll be my first commit to
> the emacs repo, so I'll have to read some stuff before to make sure I
> make a commit confirming to the standards.
>
> You don't need to answer, just expect a short delay.

Hi Michael,

Did you ever get around to fixing this?

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20709; Package emacs. Full text available.

Message received at 20709 <at> debbugs.gnu.org:


Received: (at 20709) by debbugs.gnu.org; 2 Jun 2015 18:51:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 02 14:51:43 2015
Received: from localhost ([127.0.0.1]:37928 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YzrHq-0000M7-Uq
	for submit <at> debbugs.gnu.org; Tue, 02 Jun 2015 14:51:43 -0400
Received: from mercure.iro.umontreal.ca ([132.204.24.67]:46867)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1YzrHo-0000Lt-Hk
 for 20709 <at> debbugs.gnu.org; Tue, 02 Jun 2015 14:51:40 -0400
Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
 [132.204.27.50])
 by mercure.iro.umontreal.ca (Postfix) with ESMTP id 399DB9C253;
 Tue,  2 Jun 2015 14:13:46 -0400 (EDT)
Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca
 [132.204.27.242])
 by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id D042B1E5B8D;
 Tue,  2 Jun 2015 14:13:22 -0400 (EDT)
Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848)
 id AC136B416C; Tue,  2 Jun 2015 14:13:22 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
Message-ID: <jwv7frm9dy8.fsf-monnier+emacsbugs@HIDDEN>
References: <87lhg3774u.fsf@HIDDEN>
 <jwvoaky9kxl.fsf-monnier+emacsbugs@HIDDEN> <87382aaxsi.fsf@HIDDEN>
Date: Tue, 02 Jun 2015 14:13:22 -0400
In-Reply-To: <87382aaxsi.fsf@HIDDEN> (Michael Heerdegen's message of "Tue, 02
 Jun 2015 18:18:53 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel,
 SpamAssassin (score=-2.82, requis 5, autolearn=not spam,
 ALL_TRUSTED -2.82, MC_TSTLAST 0.00)
X-DIRO-MailScanner-From: monnier@HIDDEN
X-Spam-Status: No
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 20709
Cc: 20709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

>> > File mode specification error: (void-function closure)
>> Plain bug, yes.  Please add a (not (functionp mode)) test in there.
> Should I do it?

Sure.

> I have the rights now, but it'll be my first commit to
> the emacs repo, so I'll have to read some stuff before to make sure I
> make a commit confirming to the standards.
> You don't need to answer, just expect a short delay.

No hurry,


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20709; Package emacs. Full text available.

Message received at 20709 <at> debbugs.gnu.org:


Received: (at 20709) by debbugs.gnu.org; 2 Jun 2015 16:19:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 02 12:19:05 2015
Received: from localhost ([127.0.0.1]:37798 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yzou8-00059F-Ki
	for submit <at> debbugs.gnu.org; Tue, 02 Jun 2015 12:19:05 -0400
Received: from mout.web.de ([212.227.15.4]:64874)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1Yzou7-00058m-5K
 for 20709 <at> debbugs.gnu.org; Tue, 02 Jun 2015 12:19:03 -0400
Received: from drachen.dragon ([178.10.202.12]) by smtp.web.de (mrweb004) with
 ESMTPSA (Nemesis) id 0Lo4Lo-1Zb4X13FtY-00fwRf;
 Tue, 02 Jun 2015 18:18:55 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
References: <87lhg3774u.fsf@HIDDEN> <jwvoaky9kxl.fsf-monnier+emacsbugs@HIDDEN>
Date: Tue, 02 Jun 2015 18:18:53 +0200
In-Reply-To: <jwvoaky9kxl.fsf-monnier+emacsbugs@HIDDEN> (Stefan Monnier's
 message of "Tue, 02 Jun 2015 11:42:42 -0400")
Message-ID: <87382aaxsi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:+Erp5BRnicr+ru7bozEQylWBbrT3X6llBhk1jLIUIudwNQRvNs5
 1ijjn9qRFPBvkdM4pD82jyDZcsKePNUPz4qaYL5CLfq8iDz9qwCRL6iPVUb5+HpGEQJIpr2
 KW7KMk4i+2/aY/60/Fe7KM0CjV9kFAxUb176Kst/Gx5CJqcsRTLNs4uunEfR5O3iWcp5kOl
 tUBZHHQzqgQeFbbk2SDLw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:K9FxCHxO/j0=:UaXhSaiCEGJonTj6yujVwX
 b1eN7JxfN2NCXD4ik3Bpp8THs6LGNZwK10Oef5loiJghfnWP4BR+a/D36NPa14LuWAlDSmOSs
 S7JSOgEwBKadU79Go2JJN7eW/ovoiQLyAoofW6Joa/57IsBHikMu7HIGFN0chBer02O/jlJMm
 lgwnMy/0B3MVqKrEmBRnf2fSXJTedFH5euL/hKFYSn6koSzlbW4WVM6NeYAXgB3TcF6yUFKsG
 XQObZcwIwHzKtwBounse8Slcemk/IIbjrDzktxXGWEJFB2Wi7WvlajL3Pk647OrYiPMYQ0TPz
 sALyxtUyF42e0TtwH4fLhn3bx3biDuCTEYpJVzxvEiTz+rvj56wabeG4117Kyu8SIM/kp2Gvw
 6zVQQHUonkD+7m1CjjsTQdss1alAJYKSAs/OHFoppobMPryEv+xUve318w4mlECTAJZv6nO4B
 5/QSxkTnh373Bmt4NxrgTltEj0rY26C1xFyGLn63Ir323HlN8yfPDJc0cXGbXu+4gTCEq6bkn
 cf07EDppRNMEhbikHbRwm7WID0A2I6STkz/KUGyVQJB4/NhNhANirMnJmNVabiGef8DOdPh4R
 30W4324bbm26I6ROIMsmtemE7grBbhd6/mhPElm9nyDGeM+hYLKf4D6DRHkEW83j5vNFIEsUj
 lYSWliUOzgXMVASQyIeRdHUO77j1FLMVwGZCqbqKw9lMhfIPyCsllG+7cC3KZtvWJiOE=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 20709
Cc: 20709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Stefan Monnier <monnier@HIDDEN> writes:

> > File mode specification error: (void-function closure)
>
> Plain bug, yes.  Please add a (not (functionp mode)) test in there.

Should I do it?  I have the rights now, but it'll be my first commit to
the emacs repo, so I'll have to read some stuff before to make sure I
make a commit confirming to the standards.

You don't need to answer, just expect a short delay.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20709; Package emacs. Full text available.

Message received at 20709 <at> debbugs.gnu.org:


Received: (at 20709) by debbugs.gnu.org; 2 Jun 2015 16:11:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 02 12:11:13 2015
Received: from localhost ([127.0.0.1]:37782 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YzomX-0004wP-4d
	for submit <at> debbugs.gnu.org; Tue, 02 Jun 2015 12:11:13 -0400
Received: from mercure.iro.umontreal.ca ([132.204.24.67]:52525)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1YzomV-0004wE-Fu
 for 20709 <at> debbugs.gnu.org; Tue, 02 Jun 2015 12:11:11 -0400
Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
 [132.204.27.50])
 by mercure.iro.umontreal.ca (Postfix) with ESMTP id C229711C226;
 Tue,  2 Jun 2015 11:43:14 -0400 (EDT)
Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca
 [132.204.27.242])
 by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id C669B1E5B96;
 Tue,  2 Jun 2015 11:42:42 -0400 (EDT)
Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848)
 id A1189B416C; Tue,  2 Jun 2015 11:42:42 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#20709: 25.0.50; anonymous functions in `auto-mode-alist'
Message-ID: <jwvoaky9kxl.fsf-monnier+emacsbugs@HIDDEN>
References: <87lhg3774u.fsf@HIDDEN>
Date: Tue, 02 Jun 2015 11:42:42 -0400
In-Reply-To: <87lhg3774u.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 01
 Jun 2015 17:58:25 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel,
 SpamAssassin (score=-2.82, requis 5, autolearn=not spam,
 ALL_TRUSTED -2.82, MC_TSTLAST 0.00)
X-DIRO-MailScanner-From: monnier@HIDDEN
X-Spam-Status: No
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 20709
Cc: 20709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

> File mode specification error: (void-function closure)

Plain bug, yes.  Please add a (not (functionp mode)) test in there.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20709; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Jun 2015 15:59:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 01 11:59:03 2015
Received: from localhost ([127.0.0.1]:36315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YzS7D-00033W-9F
	for submit <at> debbugs.gnu.org; Mon, 01 Jun 2015 11:59:03 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47916)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1YzS7A-00032p-Sn
 for submit <at> debbugs.gnu.org; Mon, 01 Jun 2015 11:59:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1YzS74-0000YI-Gx
 for submit <at> debbugs.gnu.org; Mon, 01 Jun 2015 11:58:55 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59510)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1YzS74-0000YD-Dr
 for submit <at> debbugs.gnu.org; Mon, 01 Jun 2015 11:58:54 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33176)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1YzS73-00069g-5l
 for bug-gnu-emacs@HIDDEN; Mon, 01 Jun 2015 11:58:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1YzS6y-0000WQ-2r
 for bug-gnu-emacs@HIDDEN; Mon, 01 Jun 2015 11:58:53 -0400
Received: from mout.web.de ([212.227.17.11]:50772)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1YzS6x-0000Vz-H0
 for bug-gnu-emacs@HIDDEN; Mon, 01 Jun 2015 11:58:47 -0400
Received: from drachen.dragon ([178.10.202.12]) by smtp.web.de (mrweb101) with
 ESMTPSA (Nemesis) id 0M7snk-1ZLOs83r8a-00vP53 for
 <bug-gnu-emacs@HIDDEN>; Mon, 01 Jun 2015 17:58:45 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.50; anonymous functions in `auto-mode-alist'
Date: Mon, 01 Jun 2015 17:58:25 +0200
Message-ID: <87lhg3774u.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:+LKJiq0SKFHzCwDmLX2Q8+xeeZ/ZSK+xEahlVfRPuWXIzbIZKPj
 P1pls3Z673+m6z4BERFcdE0pfybQxIup1STXEwUyRvf4aRijdqAWnRv/udpFx+ZApod3pXk
 26UMKQty1ioJcw3eKigA2fCdGppIM4OtjwJro048ZOAv/GX3ZhiNkmEk90LQR6uij0Vou5p
 EW3mWjXxvf44dhqRRK4OQ==
X-UI-Out-Filterresults: notjunk:1;
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: michael_heerdegen@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)


Hello,

the doc of `auto-mode-alist' doesn't say that the mode functions
specified must be named functions.  That's good IMO, since using
anonymous functions in the alist e.g. while let-binding it can sometimes
be useful.


But this is buggy.  Try this:

--8<---------------cut here---------------start------------->8---
;; -*- lexical-binding: t -*-

(setq auto-mode-alist
      `((".*" . ,(lambda ()
                   (emacs-lisp-mode)
                   'and-do-something-in-addition))))
--8<---------------cut here---------------end--------------->8---

Save it in a file, and load it (uncompiled) so that

  auto-mode-alist
   => ((".*" closure (t) nil (emacs-lisp-mode) (quote and-do-something-in-addition)))

Now open any file.  You get:

File mode specification error: (void-function closure)

The problem is these lines in the defun of `set-auto-mode' starting from
line 2871 in files.el:

--8<---------------cut here---------------start------------->8---
(if (and mode
         (consp mode)
         (cadr mode))
    (setq mode (car mode)
         ...
--8<---------------cut here---------------end--------------->8---

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.


Thanks,

Michael.




In GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
 of 2015-05-30 on drachen
Windowing system distributor `The X.Org Foundation', version 11.0.11701000
System Description:	Debian GNU/Linux testing (stretch)





Acknowledgement sent to michael_heerdegen@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#20709; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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