From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#39373: 27.0.50; [PATCH] mode-local-print-bindings broken with lexical-binding Date: Fri, 31 Jan 2020 18:08:01 +0100 Message-ID: <495920D0-A298-43BF-99E6-B5ADA06113CB@acm.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_C00920C9-4DFC-491E-ABCE-040BE57CED9C" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41792"; mail-complaints-to="usenet@ciao.gmane.io" To: 39373@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 31 18:41:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixaIA-000Ap8-VL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Jan 2020 18:41:19 +0100 Original-Received: from localhost ([::1]:57078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixaIA-0001vW-1W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Jan 2020 12:41:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39853) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixaHw-0001uj-Br for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 12:41:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixaHv-0007Ax-Gq for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 12:41:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixaHv-0007AU-Du for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 12:41:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ixaHv-00075e-BO for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 12:41:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jan 2020 17:41:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39373 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158049242127168 (code B ref -1); Fri, 31 Jan 2020 17:41:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jan 2020 17:40:21 +0000 Original-Received: from localhost ([127.0.0.1]:38027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixaHF-000748-KN for submit@debbugs.gnu.org; Fri, 31 Jan 2020 12:40:21 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixaHD-000740-KD for submit@debbugs.gnu.org; Fri, 31 Jan 2020 12:40:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39366) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixaHC-0001hU-9d for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 12:40:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixaHB-0005PF-5N for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 12:40:18 -0500 Original-Received: from mail1441c50.megamailservers.eu ([91.136.14.41]:44958 helo=mail264c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixaHA-0005FH-MM for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 12:40:17 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1580490484; bh=j9dVjvq/qwFNchNmsHbiqfYRTS4Ygcr6rLO/yAN1VDE=; h=From:Subject:Date:To:From; b=q1mUVlYVI169KcHd/A/eoiXxyRswuEQ0qKJje7NlTAZmAvaCeO4kmW9QylLb41XcA bdN0I3T8TVxpA4hIv01Da6TXobKS9J5MPA3rQ8suGTcl9TBq5MhJ01f/D7eXoc6l6P JeJ05+/ealb7wsqKTWDkSBehncQa0maPmV96qgGk= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail264c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 00VH81El005851 for ; Fri, 31 Jan 2020 17:08:03 +0000 X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B020E.5E345EF4.000D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=ar3M9hRV c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=M51BFTxLslgA:10 a=_iGz7pHDUnD4zqnyQnUA:9 a=CjuIK1q_8ugA:10 a=1z7mGcGWJNLIE_uD8nEA:9 a=B2y7HmGcmWMA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175520 Archived-At: --Apple-Mail=_C00920C9-4DFC-491E-ABCE-040BE57CED9C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 'mode-local-print-bindings' in mode-local.el seems to be broken since = the file was converted to lexical binding. Straightforward patch attached -- acceptable for emacs-27? (It's a = regression from Emacs 26.) --Apple-Mail=_C00920C9-4DFC-491E-ABCE-040BE57CED9C Content-Disposition: attachment; filename=0001-Fix-describe-mode-local-bindings-lexical-binding-dam.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Fix-describe-mode-local-bindings-lexical-binding-dam.patch" Content-Transfer-Encoding: quoted-printable =46rom=20ded807b01792e966a4ce4905cc3ed2483c52294a=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Fri,=2031=20Jan=202020=2017:37:17=20+0100=0A= Subject:=20[PATCH]=20Fix=20describe-mode-local-bindings=20= lexical-binding=20damage=0A=0A*=20lisp/cedet/mode-local.el=20= (mode-local-print-bindings):=0ARepair=20code=20that=20relied=20on=20= dynamic=20binding.=0A---=0A=20lisp/cedet/mode-local.el=20|=2013=20= +++++--------=0A=201=20file=20changed,=205=20insertions(+),=208=20= deletions(-)=0A=0Adiff=20--git=20a/lisp/cedet/mode-local.el=20= b/lisp/cedet/mode-local.el=0Aindex=20a6e143cfcd..70ed62f4fb=20100644=0A= ---=20a/lisp/cedet/mode-local.el=0A+++=20b/lisp/cedet/mode-local.el=0A@@=20= -819,14=20+819,11=20@@=20mode-local-print-bindings=0A=20=20=20=20=20=20=20= =20=20)=0A=20=20=20=20=20;;=20Order=20symbols=20by=20type=0A=20=20=20=20=20= (mapatoms=0A-=20=20=20=20=20#'(lambda=20(s)=0A-=20=20=20=20=20=20=20=20=20= (add-to-list=20(cond=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20((get=20s=20'mode-variable-flag)=0A-=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(if=20(get=20s=20= 'constant-flag)=20'mc=20'mv))=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20((get=20s=20'override-flag)=0A-=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(if=20(get=20s=20= 'constant-flag)=20'fo=20'ov))=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20('us))=0A-=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20s))=0A+=20=20=20=20=20(lambda=20(s)=20= (push=20s=20(cond=20((get=20s=20'mode-variable-flag)=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(if=20(get=20s=20'constant-flag)=20mc=20mv))=0A+=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= ((get=20s=20'override-flag)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(if=20(get=20s=20= 'constant-flag)=20fo=20ov))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(t=20us))))=0A=20=20=20= =20=20=20table)=0A=20=20=20=20=20;;=20Print=20symbols=20by=20type=0A=20=20= =20=20=20(when=20us=0A--=20=0A2.21.1=20(Apple=20Git-122.3)=0A=0A= --Apple-Mail=_C00920C9-4DFC-491E-ABCE-040BE57CED9C--