From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ignacio Casso Newsgroups: gmane.emacs.bugs Subject: bug#54399: 27.2; Problems with (let ((custom-variable ...)) (autoload-function ...)) Date: Tue, 12 Apr 2022 14:16:34 +0200 Message-ID: References: <8335ii5y60.fsf@gnu.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="24208"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 27.2 Cc: michael_heerdegen@web.de, larsi@gnus.org, 54399@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 15:18:53 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 1neGQ1-00069q-6L for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 15:18:53 +0200 Original-Received: from localhost ([::1]:55590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neGQ0-00089p-3e for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 09:18:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neGPC-00087U-9i for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 09:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54104) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neGPC-00066d-1F for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 09:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neGPB-0000og-Tq for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 09:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ignacio Casso Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Apr 2022 13:18: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.16497694723115 (code B ref 54399); Tue, 12 Apr 2022 13:18:01 +0000 Original-Received: (at 54399) by debbugs.gnu.org; 12 Apr 2022 13:17:52 +0000 Original-Received: from localhost ([127.0.0.1]:47999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neGP2-0000oA-6K for submit@debbugs.gnu.org; Tue, 12 Apr 2022 09:17:52 -0400 Original-Received: from mail-db8eur05olkn2014.outbound.protection.outlook.com ([40.92.89.14]:47552 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neGP1-0000nt-5L for 54399@debbugs.gnu.org; Tue, 12 Apr 2022 09:17:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qg6bKfdrWkYx28gKVmUU8wG0SnFUB/XwP7pVsLAK7MCiYo+mu4p8bmlPRttcTHCcPtC/VVgYJRb6tfZRo/+TRzEhIQkY1vQnP3sDSgkKn1SArM9F2v432RizNn8DohMUucUob/tJSm9Ggq09v0ZnrcbWWXbqkSZvto5o+61HHCvItBr0EMzrLqa+1XhicrW5WGTXeH+3KRAwNi4wfnoeMBihy9c/gHBwdMfJhR3ivB1vYlLgyuousaf1qfk1YD9kXBtGOhN9EfIuVdPlqoZ6jWJ0wogF11ew5CUz0vb1wm1ae08gejYqeVJE35GFr786OCyXFhgTNV1Fxs5V6kt+Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oz4u1GWqa2YWBSKaDk+DbYH43ewa3CWe9ukmJzAZVIY=; b=h+9+Of6Aa6pTI5FZZeJ2vjZ2QY3V3KSSfF+sE7N8gHWRHN2NnAKBxRMQd+8omg4SQsb0hvOIcSv9CAJOpGOZZnkqdABjJzak6F8PPq6tIeWwyz268ekr8okXL8kEFs7SKCUBANCIed77kroKdkIFaLchn8EeZgM4/wTpZRYPsBRfJLTYcNJ4Sj2qDY57z8Q8SdkoxExXrjpIWt6/hCon0DYK6gK/6sNy5X6ATa+FLTaugllcsXhGhrbBTqm4V1FjZ2/rkuWZ38XkrsylGxHMKIPIiebPt9KrpFGte6M+YmkrGRKG+yAtgAv9CHMEXRMrxwx3QiUnxMTEzf+EaEFtjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oz4u1GWqa2YWBSKaDk+DbYH43ewa3CWe9ukmJzAZVIY=; b=Xkk8wnrXlxK4j88BPnnQw7QnV7bSpZTzDSOeFec+ekYJdM0oFQ/TRyaFszLNRiEpR6/41ftbs9AspcNjIQmUVBQaSQfTM0TPqDJf+TxgDj+ty/B/PBV4/Y0HWrLeFMBEXELBUqkDnRq2Ql+j7xcPWF8kjQzC3omSvA8eInx2a0wh+0b8LZg3EcHrHq7LeGEU1wCP09A29h8n585whthQS0TozndvqyC0lBOd3ImdsKhx4JQdmuD2k8p+f0LfxR3UZcdax7gm7/GXpSFgc1HLYIwC4OVqugIbHfXYugumuiLEZYm/Dx02fsVJYV7q1DaEA1dUUTPhitsnl6OZJ9wisg== Original-Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by VI1PR06MB4589.eurprd06.prod.outlook.com (2603:10a6:803:a4::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Tue, 12 Apr 2022 13:17:44 +0000 Original-Received: from PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::c43d:998b:8b75:5e3a]) by PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::c43d:998b:8b75:5e3a%5]) with mapi id 15.20.5144.030; Tue, 12 Apr 2022 13:17:44 +0000 In-reply-to: <8335ii5y60.fsf@gnu.org> X-TMN: [7ZRBHPRjHHqwIz4+/4gizLzaoOSh5k0d] X-ClientProxiedBy: MR1P264CA0090.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:3f::14) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87bkx68mqa.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e0b657bc-88d4-46b9-27bc-08da1c86d460 X-MS-TrafficTypeDiagnostic: VI1PR06MB4589:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fcjw+/TAM0muxiqydtWx7uosnDfMXPP3fPTQf3BlZKV+CZWEmzJK/xMScxQSGon5InmmShrDtYK3r4SjNOaNYCm93AaVs0bwf2Pkgd7gVRaF5P/fVmw0W02jvXsNo30rsMaAfWDUG9vJr3hrB8jgRMQHR4w5asJPPiblQCH+nIytOyVdtaCVuRkUqq8tBLpGqIAx9sq/ulrfzOxY0akjQhy5po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x/gJ1nwq8fsB/tekV4EesYXrlCbkOA9jVUIO/u6mG963nBsRniJaqSxxUQTWP/HRTsB0HBzHISLoyQmJDUCNNbEzXJvZxHhaMLipHXqoWwOupZZ9 Zj0CbKqVCSZjX3vGMIaONeD91P327Z0o0lerbRzInrWLjqBU79BhsWYBysFscGcHfEnatzYYU453FgfOY4WphUoZ14WDeCkka2 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: e0b657bc-88d4-46b9-27bc-08da1c86d460 X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2022 13:17:44.5144 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB4589 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:229757 Archived-At: > 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. I explained why I considered some of those cases surprising by themselves in previous emails of the thread. I originally expected `default-value', `set-default' and `default-boundp' to behave like their counterparts `default-toplevel-value' and `set-default-toplevel-value'. But I assumed there was a reason for there being two versions, so I was just going to update some docstrings to make the distinction more clear (or in the case `default-boundp', correct the docstring, which is just wrong). But now, considering all the cases together, I also consider surprising that the behavior, whichever the correct one should be, depends on whether the variable has or not a buffer local binding. So for example, for the following > ;; 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. And the same goes for every two pair of snippets that only differ in whether the form (setq-local varX "buffer-local") is present. So I was no longer sure that the issue was just incomplete or ambiguous documentation, and I wrote all the cases I could think in the last email to see what you think about it. 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