From unknown Sun Aug 17 01:46:26 2025 X-Loop: don@donarmstrong.com Subject: bug#1041: 23.0.60; Custom variable not turned on after autoload Reply-To: "Lennart Borgman (gmail)" , 1041@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 28 Sep 2008 01:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1041 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12225654269201 (code B ref -1); Sun, 28 Sep 2008 01:40:04 +0000 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 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 unknown Sun Aug 17 01:46:26 2025 X-Loop: don@donarmstrong.com Subject: bug#1041: 23.0.60; Custom variable not turned on after autoload Reply-To: Stefan Monnier , 1041@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 28 Sep 2008 23:25:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1041 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122264397110489 (code B ref -1); Sun, 28 Sep 2008 23:25:03 +0000 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 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 unknown Sun Aug 17 01:46:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Lennart Borgman (gmail)" Subject: bug#1041: closed (Re: bug#1041: 23.0.60; Custom variable not turned on after autoload) Message-ID: References: <48DEDE28.90906@gmail.com> X-Gnu-PR-Message: they-closed 1041 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 1041@debbugs.gnu.org Date: Sun, 10 Jul 2011 00:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1310257502-23894-1" This is a multi-part message in MIME format... ------------=_1310257502-23894-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #1041: 23.0.60; Custom variable not turned on after autoload which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 1041@debbugs.gnu.org. --=20 1041: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1041 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1310257502-23894-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1310257502-23894-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >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' ------------=_1310257502-23894-1--