From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54399: 27.2; Problems with (let ((custom-variable ...)) (autoload-function ...)) Date: Tue, 12 Apr 2022 14:38:47 +0300 Message-ID: <8335ii5y60.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24634"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, larsi@gnus.org, 54399@debbugs.gnu.org To: Ignacio Casso , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 13:39:33 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 1neErs-0006HN-Rv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 13:39:33 +0200 Original-Received: from localhost ([::1]:48776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neErr-0003Wm-9x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 07:39:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neErO-0003Tj-F0 for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 07:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neErO-00038P-6M for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 07:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neErO-0006JZ-2t for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 07:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Apr 2022 11:39:02 +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.164976353124249 (code B ref 54399); Tue, 12 Apr 2022 11:39:02 +0000 Original-Received: (at 54399) by debbugs.gnu.org; 12 Apr 2022 11:38:51 +0000 Original-Received: from localhost ([127.0.0.1]:47802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neErC-0006J3-Oj for submit@debbugs.gnu.org; Tue, 12 Apr 2022 07:38:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neErC-0006Iq-5O for 54399@debbugs.gnu.org; Tue, 12 Apr 2022 07:38:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neEr5-00036W-Vv; Tue, 12 Apr 2022 07:38:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EunXXZclFxgj9J8gXUuXqGm5QZAd+DhBdPt0WHoF+f0=; b=Q0MlAPaQBLTw KOaMj2tfSbWxEwc2+g/MrNsI+jE06v1M47JpTS9Yf9fICVIqLI/1LMTi/ChY1d2w1A7yfAI+P4pEU VD8b0OtMksIrDN40y4t0b4wsziZibz4+qmMsh7wZC0NkWznedk0AGhjAkkYYFw2IIC+xMAFN20QeS SEjeH2v5zSWKQcbF4YaP0oFf5rd4nyTv9fKevW6y1tIuE5wst3JmDhjxBA5MiqUx0A6uoEj2w7aW9 /rNDmegVPBYltF7PLN8E9AdakzE4wekGsCxkzy/WumDERvC2XvNnbuMYoBZGXAp/iqQ0kQf2y25oO k5NXBGq+Bq3Q08YETOyZDg==; Original-Received: from [87.69.77.57] (port=4616 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neEr5-0000J2-9C; Tue, 12 Apr 2022 07:38:43 -0400 In-Reply-To: (message from Ignacio Casso on Tue, 12 Apr 2022 11:13:27 +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:229756 Archived-At: [Adding Stefan to the discussion.] > From: Ignacio Casso > Date: Tue, 12 Apr 2022 11:13:27 +0200 > > I was revisiting this bug report and writing a patch to correct and > update some docstrings, both in custom.el and for `default-value', > `set-default' and `default-boundp'. But for the last three, I'm no > longer sure if the errors are in the implementation or the docstrings, > since I have found more strange cases while experimenting. In a few > words, those functions behave differently inside let bindings depending > on whether the current buffer has or not a local value for the variable, > which I find a little bit inconsistent. If it has, they behave as they > "toplevel" counterparts (`default-toplevel-value', > `set-default-toplevel-value'). If they don't, they behave as I explained > in previous emails. I describe those cases below, with code snippets and > comments. Note that the behavior also depends on whether lexical binding > is enabled or not. I use dynamic binding in these examples. Please tell more in each case where you consider the behavior "surprising" why did you expect something different. I think it's important to make the subsequent discussion focused and efficient. Thanks.