From unknown Sat Jun 21 04:59:08 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1041 <1041@debbugs.gnu.org> To: bug#1041 <1041@debbugs.gnu.org> Subject: Status: 23.0.60; Custom variable not turned on after autoload Reply-To: bug#1041 <1041@debbugs.gnu.org> Date: Sat, 21 Jun 2025 11:59:08 +0000 retitle 1041 23.0.60; Custom variable not turned on after autoload reassign 1041 emacs submitter 1041 "Lennart Borgman (gmail)" severity 1041 normal tag 1041 moreinfo thanks From lennart.borgman@gmail.com Sat Sep 27 18:30:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.8 required=4.0 tests=AWL,BAYES_00,IMPRONONCABLE_1, MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 28 Sep 2008 01:30:26 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8S1UNCI009032 for ; Sat, 27 Sep 2008 18:30:24 -0700 Received: from mail.gnu.org ([199.232.76.166]:41660 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kjl53-0006jq-2D for emacs-pretest-bug@gnu.org; Sat, 27 Sep 2008 21:28:13 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kjl77-0004P7-Mj for emacs-pretest-bug@gnu.org; Sat, 27 Sep 2008 21:30:22 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:36462) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kjl77-0004Ov-7z for emacs-pretest-bug@gnu.org; Sat, 27 Sep 2008 21:30:21 -0400 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:60633 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kjl75-0007Rc-7q for emacs-pretest-bug@gnu.org; Sun, 28 Sep 2008 03:30:19 +0200 Message-ID: <48DEDE28.90906@gmail.com> Date: Sun, 28 Sep 2008 03:30:16 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; Custom variable not turned on after autoload X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080927-0, 2008-09-27), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Kjl75-0007Rc-7q. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Kjl75-0007Rc-7q 41943d31411036347be3d616cc7af2b8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) I just changed som (require ...) to autoloads and noticed that some things stopped working. It looks like custom variables are not turned on correctly after autoload. The loading is done after custom-set-variables. Here is how I handle one such case now: ;;;###autoload (define-globalized-minor-mode nxhtml-global-minor-mode nxhtml-minor-mode nxhtml-maybe-turn-on-minor-mode :require 'nxhtml-menu :group 'nxhtml) (custom-reevaluate-setting 'nxhtml-global-minor-mode) (when nxhtml-global-minor-mode (nxhtml-global-minor-mode 1)) I am not sure about the details and I do not have time to look into it right now, but it looks like the saved values are not used after the autoload. This is what I use `custom-reevaluate-setting' above for. The line below is for a problem when loading the library with a minor mode after custom-set-variables have been called. I have reported this problem long ago and have a patch for it. (I am not sure if this bug is still there since I distribute most of my libraries with something like the last line above. I get no bug reports about it.) In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-09-27 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' From monnier@iro.umontreal.ca Sun Sep 28 16:19:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_1,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 28 Sep 2008 23:19:31 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8SNJRTx010482 for ; Sun, 28 Sep 2008 16:19:29 -0700 Received: from mx10.gnu.org ([199.232.76.166]:34387) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kk5Vs-00058P-MG for emacs-pretest-bug@gnu.org; Sun, 28 Sep 2008 19:17:16 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kk5Xy-00036R-BI for emacs-pretest-bug@gnu.org; Sun, 28 Sep 2008 19:19:26 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:31085 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kk5Xy-00036J-3F for emacs-pretest-bug@gnu.org; Sun, 28 Sep 2008 19:19:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAIet30jO+KDT/2dsb2JhbACBYrcpgWeBBA X-IronPort-AV: E=Sophos;i="4.33,327,1220241600"; d="scan'208";a="27688926" Received: from 206-248-160-211.dsl.teksavvy.com (HELO ceviche.home) ([206.248.160.211]) by ironport2-out.teksavvy.com with ESMTP; 28 Sep 2008 19:19:25 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 7B3BEB47A6; Sun, 28 Sep 2008 19:19:24 -0400 (EDT) From: Stefan Monnier To: "Lennart Borgman \(gmail\)" Cc: 1041@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1041: 23.0.60; Custom variable not turned on after autoload Message-ID: References: <48DEDE28.90906@gmail.com> Date: Sun, 28 Sep 2008 19:19:24 -0400 In-Reply-To: <48DEDE28.90906@gmail.com> (Lennart Borgman's message of "Sun, 28 Sep 2008 03:30:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > I just changed som (require ...) to autoloads and noticed that some > things stopped working. It looks like custom variables are not turned on > correctly after autoload. The loading is done after > custom-set-variables. Here is how I handle one such case now: > ;;;###autoload > (define-globalized-minor-mode nxhtml-global-minor-mode > nxhtml-minor-mode > nxhtml-maybe-turn-on-minor-mode > :require 'nxhtml-menu > :group 'nxhtml) > (custom-reevaluate-setting 'nxhtml-global-minor-mode) > (when nxhtml-global-minor-mode (nxhtml-global-minor-mode 1)) > I am not sure about the details and I do not have time to look into it > right now, but it looks like the saved values are not used after the > autoload. This is what I use `custom-reevaluate-setting' above for. > The line below is for a problem when loading the library with a minor > mode after custom-set-variables have been called. I have reported this > problem long ago and have a patch for it. (I am not sure if this bug is > still there since I distribute most of my libraries with something like > the last line above. I get no bug reports about it.) In theory, both the custom-reevaluate-setting and the `when' line should not be needed (and are undesirable). Also, please provide a test case (ideally even outside of nxhtml) that shows the problem you're describing. Stefan From rgm@gnu.org Tue Sep 30 00:09:08 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.5 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, MURPHY_DRUGS_REL8,NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 30 Sep 2008 07:09:08 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8U79505031233 for ; Tue, 30 Sep 2008 00:09:06 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KkZJs-0005pG-11; Tue, 30 Sep 2008 03:06:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18657.53259.911419.789296@fencepost.gnu.org> Date: Tue, 30 Sep 2008 03:06:51 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: s_+HQZO@rx),!y]_'g?C2]dqReo&i#?x#Vq3vdl4Azk#!}gdX,6N.hi99FY/xZ3C|tL X-Debbugs-No-Ack: yes tags 1043 patch tags 1047 unreproducible tags 1039 patch tags 1041 moreinfo reassign 1054 emacs,ns From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 20:24:08 2011 Received: (at 1041-done) by debbugs.gnu.org; 10 Jul 2011 00:24:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfhoe-0006CG-Bt for submit@debbugs.gnu.org; Sat, 09 Jul 2011 20:24:08 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfhoc-0006Bf-Hy for 1041-done@debbugs.gnu.org; Sat, 09 Jul 2011 20:24:06 -0400 Received: from localhost ([127.0.0.1]:53473) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfhoW-0005k1-OS; Sat, 09 Jul 2011 20:24:00 -0400 From: Glenn Morris To: 1041-done@debbugs.gnu.org Subject: Re: bug#1041: 23.0.60; Custom variable not turned on after autoload References: <48DEDE28.90906@gmail.com> X-Spook: pre-emptive e-cash brigand Cocaine Hugo Chavez BROMURE X-Ran: x\[Yb0kv@UE0?5IfYejA?_uXLl,:La_8kN?%Ah:LPW7&?X09oRXl:0v;u$bpo#;{$9&U[s X-Hue: white X-Attribution: GM Date: Sat, 09 Jul 2011 20:24:00 -0400 In-Reply-To: (Stefan Monnier's message of "Sun, 28 Sep 2008 19:19:24 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 1041-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Closed due to lack of response. Stefan Monnier wrote: > Also, please provide a test case (ideally even outside of nxhtml) > that shows the problem you're describing. From unknown Sat Jun 21 04:59:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Aug 2011 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator