From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Al Haji-Ali Newsgroups: gmane.emacs.bugs Subject: bug#73609: 29.1; use-package overwrites custom variables in byte-compiled files Date: Fri, 11 Oct 2024 23:25:08 +0100 Message-ID: References: <86frpdzby8.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="10150"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73609@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 12 00:27:07 2024 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 1szO6E-0002Wt-QG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Oct 2024 00:27:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szO5y-0002cd-LV; Fri, 11 Oct 2024 18:26:50 -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 1szO5w-0002cO-UH for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 18:26:48 -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 1szO5w-00050d-LQ for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 18:26:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=DM7ud30gcmwzPixbEKuhq6T3sIgKPgr7mi1GzQRUSso=; b=FsP3ZFkDeLT/U8OM7x/rqbjFTj8oh5dzRt+/CbgB5aO6Nd2KnAZV326lPIbfYNT+D/8LJwP94iV8pki5q22iDbKFDEuAPMxQXsKVW3WSz7bQY/zD5SHHP9PxqnZCJCj+MyvNf6PjSIcvXFu2aK3oXxqwE9xKksOmD98vR5nXYrYGIrU9E8abDxQ7nkQzlfjS6wGq6t9b7SWipB+1G0pY3GPeStkzgytW29B1IKmoz5jYG3ydcR0ie6d0Q0VDhaPCvFVqR7XylDvVpgImRTdeKfLoUAtXcUAPQvA37tIqNnewRCdpSVqabDQFQD3Hk8aJWZILcpN5LAXnU5rLj/KQtw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szO69-0007B9-RJ for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 18:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Oct 2024 22:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73609 X-GNU-PR-Package: emacs Original-Received: via spool by 73609-submit@debbugs.gnu.org id=B73609.172868559527556 (code B ref 73609); Fri, 11 Oct 2024 22:27:01 +0000 Original-Received: (at 73609) by debbugs.gnu.org; 11 Oct 2024 22:26:35 +0000 Original-Received: from localhost ([127.0.0.1]:35600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szO5i-0007AO-N6 for submit@debbugs.gnu.org; Fri, 11 Oct 2024 18:26:34 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:55656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szO5g-0007AF-Ul for 73609@debbugs.gnu.org; Fri, 11 Oct 2024 18:26:33 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-37d51055097so1170443f8f.3 for <73609@debbugs.gnu.org>; Fri, 11 Oct 2024 15:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728685518; x=1729290318; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=DM7ud30gcmwzPixbEKuhq6T3sIgKPgr7mi1GzQRUSso=; b=hOMz4/kcQ0zFaeBtkMDqTapgQEqRluE4iUl2AGOtNCUJDzNhHnkIpkh6Wmpo6N3WTv UbC6NwskQzECFlnzjWiEwAw66XZh6DndpqnXLgp7mwHiPWYrBmEd1ZKDhwxBjxIv4YQo fb9p0+taMCiogmd9eKdXBnhU61imLD7xLblnBj2V6xw7ebaWym+Eh4xZ8gjloZ4XdoG8 ULScgfHy7mi+C6XOiaDFK9pNoEHMqKP0HUJID1dsa1pcQrr2GD2ZNZgof4pI78wU/HRK UIhPHSRkndm04ly7kUoGDW/rXUIezXQ7YHQrCMOGlcTLkEa8pICGR7XGEOgqpeDQNTlM w+1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728685518; x=1729290318; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DM7ud30gcmwzPixbEKuhq6T3sIgKPgr7mi1GzQRUSso=; b=To7fk0jWcHoTYXqlo8kc48a9I++kLDZLyCv8IKxTuLOfUfYXQfSpckJzk8YXBQSkM0 VmfRKgkaDSIZtUHd572Fb2aTAzaoPTvywrLvjd61uoGoD861df77S8NFUcjoLDdPy0Wh pfB/80wlb4/TrPJscSLl94i5BuAzNlntcM2u1wRMzuLlI5cd+p/BbBMxcuxTF/juUbnn Xd5n6kU3rT//zWdCfMN74YQ4TT+3DDQ2LN5i5Tkg4qgEM7823djY+b19whr08Ok1tZnG EH8zMRa+VCg38Y+J6JvL9/qmp3eBModTmwkawy6tW6kPbwvMoaVLI3XpPtZGT13b1QTW 5EkA== X-Gm-Message-State: AOJu0YxyjOKNR/6+d8L6ndxXb3lwYkXNRiWZjFV998IgOsjh5/0ReYJ0 w2r5zWBOniUCXRWRG28WG6UsMmStgHFLLW7ZFEuJPPCBYUkWLzQZp48c4Q== X-Google-Smtp-Source: AGHT+IFDYG3WNOBEsPkiqMfZGeVSHTQVeuvZpWBu/XnSHnms7Plc87q6MQjYg2Ceo2I2W9Cb4ZpIXg== X-Received: by 2002:adf:f703:0:b0:37d:38a1:6470 with SMTP id ffacd0b85a97d-37d5ffc0320mr612335f8f.46.1728685518224; Fri, 11 Oct 2024 15:25:18 -0700 (PDT) Original-Received: from localhost (sgyl-45-b2-v4wan-166941-cust3717.vm6.cable.virginm.net. [82.37.190.134]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d4b917f54sm4829926f8f.110.2024.10.11.15.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 15:25:17 -0700 (PDT) In-Reply-To: <86frpdzby8.fsf@gnu.org> 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:293387 Archived-At: > Can you try this with the latest emacs-30 branch of the Emacs Git > repository? I believe some changes were done to use-package there, > and they might fix your problem as well. I just tried it on the main branch (version 31.0.50) and saw the same behaviour. I also checked the part of the code that I think is the reason and it remains the same. Here's how I am able to reproduce the issue: --8<---------------cut here---------------start------------->8--- ;;; 1. Run emacs -Q ;;; 2. Define the following function (defun bug-73609 (&optional setup) (let ((filename (file-name-concat temporary-file-directory "temp.el"))) (if setup (progn (write-region "(use-package org\n:custom\n(org-log-reschedule 'note))" nil filename) (require 'use-package) (byte-compile-file filename)) (load (concat filename "c")) (message "START value is %S, use-package is%s loaded" org-log-reschedule (if (featurep 'use-package) "" " NOT")) (setq org-log-reschedule t) (message "BEFORE value is %S" org-log-reschedule) (define-advice enable-theme (:before (theme) enable-theme@debug) (message "Loading theme %S" theme)) (require 'use-package) (message "AFTER value is %S" org-log-reschedule)))) ;;; 3. Call (bug-73609 t) ;;; 4. Restart `emacs -Q` and redefine the function above ;;; 5. Run (bug-73609) ;; The output is ; START value is note, use-package is NOT loaded ; BEFORE value is t ; Loading theme use-package ; Loading theme user ; AFTER value is note --8<---------------cut here---------------end--------------->8--- I expect the final line to be ; AFTER value is t as I do not expect that loading `use-package` would change the value of the variable `org-log-reschedule`. -- Al