From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#39373: 27.0.50; [PATCH] mode-local-print-bindings broken with lexical-binding Date: Sun, 09 Aug 2020 13:39:10 +0200 Message-ID: <87lfiot5ep.fsf@gnus.org> References: <495920D0-A298-43BF-99E6-B5ADA06113CB@acm.org> <83lfpnjuiz.fsf@gnu.org> <928DB820-6899-4653-8872-82CE3CF567CD@acm.org> <83imkrjrvh.fsf@gnu.org> <8EF7D3C6-041D-493F-859B-55D8D35AF588@acm.org> <83eevekat8.fsf@gnu.org> <3FB58E0B-E1DB-4709-98AB-92A45508486A@acm.org> <83lfplis1e.fsf@gnu.org> <45DBB63C-62BC-483F-BF01-FEE39F2ED9F5@acm.org> <82110A68-1F5C-4B0B-AB0E-67B710B33C1A@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15632"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Monnier , 39373@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 09 13:40:12 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 1k4jgS-0003xQ-3Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Aug 2020 13:40:12 +0200 Original-Received: from localhost ([::1]:55518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4jgR-00025S-4R for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Aug 2020 07:40:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4jgI-000239-Jt for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 07:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4jgI-0003tp-9T for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 07:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k4jgI-0003Rz-74 for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 07:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Aug 2020 11:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39373 X-GNU-PR-Package: emacs Original-Received: via spool by 39373-submit@debbugs.gnu.org id=B39373.159697316413212 (code B ref 39373); Sun, 09 Aug 2020 11:40:02 +0000 Original-Received: (at 39373) by debbugs.gnu.org; 9 Aug 2020 11:39:24 +0000 Original-Received: from localhost ([127.0.0.1]:60147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4jff-0003R2-LN for submit@debbugs.gnu.org; Sun, 09 Aug 2020 07:39:23 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:35034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4jfd-0003Qp-Bx for 39373@debbugs.gnu.org; Sun, 09 Aug 2020 07:39:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=rFx/VhhBPEDfHAEQgXtH5ZgJhuYJZ6UFKDb1Nlfm6Io=; b=L2RBHO0OUUeCFFb6dTGu8++Bjl aMD2bCO+ZYb4Q2J1es4j1+/0rQk8EfKHtEYgrgD57/W25Q9jvugTKLwDXCVV6lFZs6PJcn3vAO4oA JC1qcUe/mrPEfwvQTcCtBhYm6fXRKy5/QnExWRX3TavXNIWsHRHC625pIh3HHxlTr+3Y=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4jfU-0001JT-4t; Sun, 09 Aug 2020 13:39:14 +0200 In-Reply-To: <82110A68-1F5C-4B0B-AB0E-67B710B33C1A@acm.org> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Sun, 2 Feb 2020 15:14:35 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:184403 Archived-At: Mattias Engdeg=C3=A5rd writes: > 2 feb. 2020 kl. 14.55 skrev Stefan Monnier : > >> I also expected so, but I've already changed a handful of >> `(run-hooks 'foo)` to `(mapcar #'funcall foo)`. The problem is a bit >> different, tho: it's *also* wrong to use it on dynamically-scoped let-bo= und >> vars (tho it mostly works), so the doc should not focus on lexical >> vars but on the difference between vars and hooks. > > Very well, in that case you are probably better placed to provide the > nuanced modifications necessary, if any. If I'm reading this thread right, the specific problem in this bug report was fixed (and the documentation of add-to-list updated), but the more general problem of going through all the instances of add-to-list (and friends) in lexical files hasn't been done? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no