From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1041: 23.0.60; Custom variable not turned on after autoload Date: Sun, 28 Sep 2008 03:30:16 +0200 Message-ID: <48DEDE28.90906@gmail.com> Reply-To: "Lennart Borgman \(gmail\)" , 1041@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222566699 21081 80.91.229.12 (28 Sep 2008 01:51:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2008 01:51:39 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 03:52:37 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KjlSd-0001Pn-1J for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2008 03:52:35 +0200 Original-Received: from localhost ([127.0.0.1]:46604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjlRa-0007Hs-Ix for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Sep 2008 21:51:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjlQC-0006fE-DT for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2008 21:50:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjlQB-0006ef-56 for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2008 21:50:04 -0400 Original-Received: from [199.232.76.173] (port=51698 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjlQB-0006ea-1I for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2008 21:50:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47126) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KjlQA-00075P-EL for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2008 21:50:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8S1nsOK012837; Sat, 27 Sep 2008 18:49:55 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8S1e44k010657; Sat, 27 Sep 2008 18:40:04 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@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: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12225654269201 (code B ref -1); Sun, 28 Sep 2008 01:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 28 Sep 2008 01:30:26 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 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 X-Enigmail-Version: 0.95.7 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!) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 27 Sep 2008 21:50:03 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20839 gmane.emacs.pretest.bugs:23100 Archived-At: 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'