From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54399: 27.2; Problems with (let ((custom-variable ...)) (autoload-function ...)) Date: Tue, 12 Apr 2022 09:35:14 -0400 Message-ID: References: <8335ii5y60.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38235"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: michael_heerdegen@web.de, Eli Zaretskii , 54399@debbugs.gnu.org, larsi@gnus.org To: Ignacio Casso Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 15:36:11 2022 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 1neGgl-0009gC-Dg for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 15:36:11 +0200 Original-Received: from localhost ([::1]:34938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neGgk-0005aW-3A for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 09:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neGgc-0005aL-1O for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 09:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neGgb-0001MA-Mt for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 09:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neGgb-0001Kc-In for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 09:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Apr 2022 13:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54399-submit@debbugs.gnu.org id=B54399.16497705265070 (code B ref 54399); Tue, 12 Apr 2022 13:36:01 +0000 Original-Received: (at 54399) by debbugs.gnu.org; 12 Apr 2022 13:35:26 +0000 Original-Received: from localhost ([127.0.0.1]:48047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neGg1-0001Ji-UU for submit@debbugs.gnu.org; Tue, 12 Apr 2022 09:35:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neGg0-0001JS-DI for 54399@debbugs.gnu.org; Tue, 12 Apr 2022 09:35:24 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 63B6410019F; Tue, 12 Apr 2022 09:35:18 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 76087100054; Tue, 12 Apr 2022 09:35:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1649770516; bh=paF/qZ3yWBjJX3OV8Ys0IAZ45bnoPwQa0ddT47S6CwI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bBI2Q6YgHY8MowPE6VozDFFpxLCzphFg8F6dwXnJkPkptgSjKvenvM/HgUC/wgmDb WkOq5PX9oyNw19Vbt7xK8nLZ3Cqf5GW2kUz5CiR1kSKlAQUXU+5czpqiTDsdR5CFMa uPMqR3Zm4xkbYHlKRXvTRMynIdclse9+jcJ88FRRo7i0hPCCDMk8jWB4QbqWNWPW3n Rle4DkTs/mUsQQKUwrT/zco/dwJJSsjMPw0qcK1bdTGgCsAwMVMuRIR4YxJn94ZSfK Pyoklk4TNM4xVHJJT4pVoydWroo6auTjrZUHGeqzKUFkkOnqDSKoECfLbeSFY/Oc8B 8h/y7THWxAtcQ== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CA7641202BE; Tue, 12 Apr 2022 09:35:15 -0400 (EDT) In-Reply-To: (Ignacio Casso's message of "Tue, 12 Apr 2022 14:16:34 +0200") 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:229761 Archived-At: >> ;; default defined, buffer-local undefined >> (defvar var1 "default") >> (let ((var1 "inside let")) (default-value 'var1)) ;; returns "inside let" >> >> ;; default defined, buffer-local defined >> (defvar var2 "default") >> (setq-local var2 "buffer-local") >> (let ((var2 "inside let")) (default-value 'var2)) ;; returns "default" > > I would expect both snippets to return the same. That's because you expect the "default" in `default-value` refers to the let-nesting dimension rather than the buffer dimension. BTW `set-default-toplevel-value` has a running time that's proportional to the stack depth, whereas `default-value`, like `symbol-value` is constant-time. > P.S. By the way, I had deleted the previous emails on these thread, so I > could not properly reply to the last one, and had to just write to > 54399@debbugs.gnu.org instead. What is the proper way to reply to an > debbugs email thread that is no longer or never was in your inbox? For > the org-mode mail list there is a link on the web archives, but not for > debbugs.gnu.org. Is there a quick way from the debbugs package? Or maybe > using some of the info in the mbox file, which can be downloaded from > the archives in debbugs.gnu.org? Thanks You can M-x gnu-emacs-bug RET 54399 RET and then you should be able to select the message to which you want to reply. [ The name is not `gnu-emacs-bug`, but that's the mnemonic I use, and the completion does the rest => `gnus-read-ephemeral-emacs-bug-group`. ] Stefan