From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#65209: 30.0.50; Unexpected behaviour of setq-local Date: Thu, 10 Aug 2023 15:50:26 +0200 Message-ID: <953357c8-83b4-5d7f-7638-e79382ad164c@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19142"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 To: 65209@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 10 15:51:19 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 1qU64M-0004nb-EI for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Aug 2023 15:51:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qU648-0006yF-Qi; Thu, 10 Aug 2023 09:51:04 -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 1qU647-0006xp-Uf for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 09:51:03 -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 1qU647-0007MS-MI for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 09:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qU646-0004lm-EH for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 09:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Aug 2023 13:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65209 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169167544118268 (code B ref -1); Thu, 10 Aug 2023 13:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Aug 2023 13:50:41 +0000 Original-Received: from localhost ([127.0.0.1]:41745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU63k-0004ka-Vj for submit@debbugs.gnu.org; Thu, 10 Aug 2023 09:50:41 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:56626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU63i-0004kM-4p for submit@debbugs.gnu.org; Thu, 10 Aug 2023 09:50:39 -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 1qU63c-0006qO-A2 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 09:50:32 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qU63a-0007EQ-O6 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 09:50:32 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5231410ab27so1183634a12.0 for ; Thu, 10 Aug 2023 06:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691675429; x=1692280229; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=ovIESv7QlciMwi44hd3AUsvnfOA1YECJujE4IvhCY48=; b=b9A2PHZcuAuCpgPylrlHZJvOYq0bshW241knQXxObfj289CuUK3IHIvpoC5U0mbcbZ XwogN5M7Mfx9cdA2qk59Y+VnGsVWV6eJz5OiGYWFOgqjW6tS4adJ3WPwIWiw57axySIp mCjdZo+8wwYreYJDwsauB8EzMcFQ1XwaKHRmr3hXdN/5/37uisLuSlAGTdVV0Fnd1PEf C1ehTpxmSVH7slHUlC8UKmgM+KT9JwV74xI3cPSoDym8lcLcwmq9hvc9TaGBwHhNh9bM L55+YMRK9MIBR9Ji1KnK3qL7giG2lQbBAKZz/HJowoOioPLWDZATZhhhy/k9FauOgYiK cAXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691675429; x=1692280229; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ovIESv7QlciMwi44hd3AUsvnfOA1YECJujE4IvhCY48=; b=iLWD9Vtl5kQhOJHMMJP3iFo8GEdJgjfDc1sPif1PA5jBQCVzu+BChnnULokeXEPfEG Vct26fpvPSNyqwDctP4yyn5lPnTfJyYTvDUbv4/aDIrmrMCdgF9MzaJnYacF6TSmkyYa Om92NRSNxlEfGumHcnkpxknSLjRJ5kA2MwB5Ad/nOQ4G97XXWNpyumJUjqns6Hc+i+zC Vv25T4bwhnfmIMcFY6FBQiQwOyuz7ec8drwqtF8waNNX13+wdl4Bl15zEU+wrTHHgfgU A0LOCWjdQYjzXFW9hIvVUddO9HPMjzmtZKxngX8PrGRxE0RuzKjYEBYtOADqLSQ/dx3k ZLAQ== X-Gm-Message-State: AOJu0Ywjd/a85Faux3hn+AFYG0WIMndIaC2jvgieel5RuzLnvnF7QF/b 4Ie65EkFAK4RkqHusNySufZofMnqpW0= X-Google-Smtp-Source: AGHT+IE/L4jOeC0QyddDTOcCfHCZ7ZbRZIAE5AKeDkuvTK4IMJ9RhdWG5d2WGMCDGecHrZodsUECkQ== X-Received: by 2002:a05:6402:1856:b0:523:9c4:544f with SMTP id v22-20020a056402185600b0052309c4544fmr2012488edy.31.1691675428770; Thu, 10 Aug 2023 06:50:28 -0700 (PDT) Original-Received: from [192.168.178.21] (p4fe3a562.dip0.t-ipconnect.de. [79.227.165.98]) by smtp.gmail.com with ESMTPSA id n21-20020a05640204d500b005233885d0c6sm830210edw.41.2023.08.10.06.50.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Aug 2023 06:50:27 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:267135 Archived-At: Evaluate the following (progn (defvar my-var :default-value) (make-variable-buffer-local 'my-var) (let ((my-var :let-value)) (setq-local my-var :buffer-local-new)) my-var) => :default-value (progn (defvar my-var1 :default-value) (make-variable-buffer-local 'my-var1) (setq my-var1 :buffer-local) (let ((my-var1 :let-value)) (setq-local my-var1 :buffer-local-new)) my-var1) => :buffer-local In both cases, setq-local has no effect. (I stumbled over this because lexical-binding is set to nil in *scratch* when using persistent-scratch (MELPA). It's quite convolutetd, but in short: Custom loads persistent-scratch, which loads the contents of *scratch*, and calls lisp-interaction-mode. Lisp-interaction-mode setq-local's lexical-binding to t, but this doesn't work because all this happens during an eval-buffer that has a specbind of lexical-binding to nil.) In GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.5.0, NS appkit-2299.60 Version 13.4.1 (Build 22F82)) of 2023-07-13 built on Mini.fritz.box Repository revision: e0244f58042740c8fe914e7abe5b02611b176bc2 Repository branch: master Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.5