From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: master 48aacbf292 2/2: Make many seldom-used generalized variables obsolete Date: Mon, 19 Sep 2022 14:51:59 +0200 Message-ID: <87wn9zjzm8.fsf@gmail.com> References: <166111278304.2846.13033924580993120733@vcs2.savannah.gnu.org> <20220821201303.AD1E6C0088A@vcs2.savannah.gnu.org> <877d29hm53.fsf@melete.silentflame.com> <87bkrcqnxc.fsf@bernoul.li> <878rmf29ak.fsf@gnus.org> <87o7vblm3g.fsf@bernoul.li> <875yhjlhki.fsf@gmail.com> <87czbrv9im.fsf@gnus.org> <871qs7leyy.fsf@gmail.com> <87zgevtu8v.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29343"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Jonas Bernoulli , Sean Whitton , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 19 15:19:53 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oaGgi-0007Ul-LQ for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Sep 2022 15:19:52 +0200 Original-Received: from localhost ([::1]:60204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaGgh-0002NW-D2 for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Sep 2022 09:19:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaGFq-00059w-Dw for emacs-devel@gnu.org; Mon, 19 Sep 2022 08:52:06 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:33711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaGFn-0000w6-5r for emacs-devel@gnu.org; Mon, 19 Sep 2022 08:52:06 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id b35so41158605edf.0 for ; Mon, 19 Sep 2022 05:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date; bh=znSaCCPjIuo12Fv/t0E90Wl8kLRpKXkgLVhKvZAiGys=; b=qonNW4BuCjT0z9J9sRotgVuaOhZZwzjBQ/tkWX/N8vDhyFsWMHQF8lPQsVrhNBrNkf EJ6xu6e8Ncapa6UVC/bZOCqZCyfENi0QZqzwhVYhhYll355bj4fInCtjKilTouQIFNBu /dVDx4b949BcnSi3t/yN/2z7gyB3q4t9e9UomQvNBTfVLURqVmnuKroB4CJEjHzhLpAH rIwdGP8dCMhtWahYJH8Qq+sgRUGjHQo8QqVuqZYC62BeAwCEEu6zV4ZDbItjJv/HE47e Ygbz4S5gdLuoVvolH8GuX/VUUQVAk+Pj1r5FAyjuUgEmMn1xOMno/MDxDkSY7K/H6uw2 tKDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=znSaCCPjIuo12Fv/t0E90Wl8kLRpKXkgLVhKvZAiGys=; b=SNXrDrtFVW5RyUq5LskjJSxdREN2KlIPCNoA+6KD6dSUVf1FbhnvE8tUPh6RZNg5eO B6vybXvBqg9vzKL+D/fIqyule9zs7W70GyVe/h7eWFjuMAx2ZjV9Gp4QI0+M3/5YsM+m jc5dbfSogyELDYoeJrqAfOmsAr+GUQsovfmDzw5PU7GHPZArZ04/8eVOHjZVTo1DSmHC CMVuZBFfRKgRUXDrld9BFXv4cOI1EyLwWpVQ12aBk+y484JR+lFBERCQ0RDe1/QxzGCS V8p2xX6QBw5ibwGE2xmNSxgK6HbyAjwqs2M9sj8/6EZ7Szc0QesCoVlf6a4nVekdNWHw M8wA== X-Gm-Message-State: ACrzQf0uwG5gOd6/MGSo11bGk/knI6RkQ2CWOJ5MjErO/77d5Yps32Cz Z+jq79Z88hXc25KVZY7A+j1WdMJk10l4DA== X-Google-Smtp-Source: AMsMyM4G0UGL/FFDkE1vu1+dLEHtiy6mxgt5Oj8Sjn4Kg3WaO2m+QXvlI2HLNsuoGZP1f6D7lFTsYg== X-Received: by 2002:a05:6402:26cf:b0:451:70af:ecc5 with SMTP id x15-20020a05640226cf00b0045170afecc5mr15213666edd.287.1663591921300; Mon, 19 Sep 2022 05:52:01 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8510]) by smtp.gmail.com with ESMTPSA id 12-20020a170906308c00b0077fbef08212sm11058683ejv.22.2022.09.19.05.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 05:52:00 -0700 (PDT) In-Reply-To: <87zgevtu8v.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 19 Sep 2022 14:37:52 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x534.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295692 Archived-At: On Mon, 19 Sep 2022 at 14:37, Lars Ingebrigtsen wrote: > Augusto Stoffel writes: > >> set-local just relies on set, so if the variable is let-bound, then the >> "toplevel" local value is unchanged: >> >> (progn (setq-local x 1) >> (let (x) (setq-local x 2)) >> x) >> ==> 1 >> >> I've had some trouble with this when a major mode (and therefore its >> mode hook) is called from a place with let-bound variables. But then >> one could argue that working around it is even more problematic... > > But that's with the dynamic binding dialect -- with lexical binding, the > setq-local ignores that binding. True.