From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#65209: 30.0.50; Unexpected behaviour of setq-local Date: Wed, 23 Aug 2023 05:47:18 +0200 Message-ID: <871qfu4dyx.fsf@web.de> References: <87msyu2tmm.fsf@web.de> <80D7C281-C3DD-4DCA-9B14-1569E849CBC7@gmail.com> <87wmxqqq7d.fsf@web.de> <83350exl6h.fsf@gnu.org> <87wmxnojrb.fsf@web.de> <83msyjtkeo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8708"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gerd.moellmann@gmail.com, 65209@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 23 05:48:17 2023 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 1qYeqv-00022h-La for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Aug 2023 05:48:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYeqf-00055q-Am; Tue, 22 Aug 2023 23:48:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYeqd-00055e-Ml for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 23:47:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYeqd-0001g6-3G for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 23:47:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYeqg-0004vZ-7j for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 23:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Aug 2023 03:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65209 X-GNU-PR-Package: emacs Original-Received: via spool by 65209-submit@debbugs.gnu.org id=B65209.169276245718789 (code B ref 65209); Wed, 23 Aug 2023 03:48:02 +0000 Original-Received: (at 65209) by debbugs.gnu.org; 23 Aug 2023 03:47:37 +0000 Original-Received: from localhost ([127.0.0.1]:60774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYeqH-0004sy-AM for submit@debbugs.gnu.org; Tue, 22 Aug 2023 23:47:37 -0400 Original-Received: from mout.web.de ([212.227.15.4]:34131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYeqC-0004sd-Ul for 65209@debbugs.gnu.org; Tue, 22 Aug 2023 23:47:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1692762439; x=1693367239; i=michael_heerdegen@web.de; bh=fCHwxwr1gBDqBtIpfJmFPDWTQsZbrAJPdFRhmuou614=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Uy/ntydGK+uHRbH8arAEKKDkkJeOVbaAvXjlU2przueKvMcVCZtPExWy5mbkrFIKxMKqzcy +tR+20s2DikAjzLkHZ/xqz87C+tASArWsP3c1jEF2i8vfHRCl2dTYoGC66A1khgWiy90gH6Sr VkcdD8C/4R0rHripEffi0iVPrXxbshpD6rSBvgP0EIe2CkgjHwi7AXTATvUVlZPYWmbBxSShV BJwc0da8FFTRKaD+Pfs/paZUUT1ZKQv3GKwpfVLk/LfvxKHPh2K5yR1yya087uOwPq+83VA1m KaujVz+Dj52eeglaLiDGl70fan/lGX3XqdIIjtL8ErjkDRhO2Jww== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([84.60.174.218]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N7xeZ-1pdik82y0J-014pRz; Wed, 23 Aug 2023 05:47:19 +0200 In-Reply-To: <83msyjtkeo.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Aug 2023 13:56:47 +0300") X-Provags-ID: V03:K1:tBAA1aAvOjICDAFqi+rq3LopeTUD3cLvcPHflDjLPnzlnnrjBB7 3ngRhTfQPjttQXs8nEegcO9d5ao8qhtoQSomdclG2WR4iJ/3MtSThRDhViQJZXfA5w58KwM RbrtBb3Mho9TROdc5Vv2NOe+44swOqYmGF4G7CCl8QusA3wVFPZzz7t93BQZ3CMrgoDbter oOFe05WJBHex3z4KG+nXg== UI-OutboundReport: notjunk:1;M01:P0:ub6V9sxd6Fo=;TvigZmJATQxXhst7foPg3i+b5vv xNJFE/c8smroc4LF2w9CMWnQMuveVOTw2CrYWW5PF82E/sOmFxT8pAdNzB+e0DE+TKEOZ4Efo YzPnGqLHNK3tQXjPBgmOnBN+DjfvdHMb1DwVTMs8ijJoFzz90OjlFX75gBgyS61OusBrBOF37 /03QwZuiBnDZPZ7s+7DNr9rDYKd5zfmArOj0miQIjGUKVQw8/nv04OTQHqDIf8sgx3nTjqtOM cRm4T+eLBIvvS6R6cvhfDyFIE8pgX/ZsYsV0rjo4EFJdjeUV5Ag+nlkeRskKKt0EQ/DzLHDXo beue17aHxPPCGie5YHoF5SKxnzP/wgy/h6KGHPrNzQsxrfr99n4c7AEE5f3snLYEnJPWGzmzM 2tYjCFOr+5OldFZ74Jr3ANg1iwcZjCdiEcUxubTjC3cAK9PuK5NrLMBLVmE1+YKL0EdK82YwA a5ReoqxMuAAmvPMqXL3wi18+v79v4OHjgo1cn5Ufg2RYfF1DpqZHITJ8Kg0kPsGezplg6agOk NkvEHCR3I+d1NeZPPszRmauSlxI1k6h/s/6tdNmbSYDICPsMl9BsDhYqvmRzJci+7UgpOCV+b qVO+dYiBqOakk3USDL2J+WsFvYfyINdkPaZdG9N3gRYXFQLkBwGf7tMfuZbi7o4qiUTdV03+i Q0JShAJUgAfcJEwdZW7n6eD8F+Bu12r4Nb+/Pn1cD7KwCjn4HagOahnFWM2irOMtsmdyV7RjD 65ItzxKlLfg+VEMea/wV2dXvblAHkbWD9YjjztEGxVcRQRl5Sg0/6SsxUMdmj4opJtpjahWE 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268202 Archived-At: Eli Zaretskii writes: > IOW, it is impossible for me to judge whether some text is good enough > for the manual without seeing the proposed text. IME, some very > complicated issues are better left unsaid, especially if they > sufficiently rare and obscure, to avoid making the more common > scenarios potentially less clear. True, I know what you mean. OTOH, a good understanding of the underlying language (Elisp) makes the number of things that seem confusing or obscure smaller. Ok - I'm not good at writing documentation. As a start, do you think that it's possible to create a good addition to the manual out of this stub? | The following example demonstrates which binding is "seen" when | let-binding and buffer-local variables are combined: | | (defvar var :default) | | (with-temp-buffer | (let ((var :let-bound)) | var ; --> :let-bound | (setq-local var :buffer-local) | var ; --> :buffer-local | (with-temp-buffer var)) ; --> :let-bound | var ; --> :buffer-local | (with-temp-buffer var)) ; --> :default | | | A lexical variable always refers to its lexical binding even when | a buffer-local variable of the same name exists: | | (let ((lvar :lexical)) | (setq-local lvar :local) | lvar ; --> :lexical | (symbol-value 'lvar)) ; --> :local I would not suggest such an addition if I would not have missed that kind of information in the manual. In some situations the above stuff gets important, and let-binding variables that are made buffer-local is daily business. Maybe this stuff is clear to people with a different background - I don't know. Michael.