From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: standard-value of display-battery/time-mode Date: Sun, 19 Feb 2006 18:37:14 +0000 Message-ID: References: <140BE1D7-45C0-459A-BFD8-6C1C84CFAAE9@gmail.com> <200602190031.k1J0VKq07514@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140390102 12012 80.91.229.2 (19 Feb 2006 23:01:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2006 23:01:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 20 00:01:40 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FAxYZ-0000UN-Bs for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2006 00:01:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAxYY-00035N-QE for ged-emacs-devel@m.gmane.org; Sun, 19 Feb 2006 18:01:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FAtc9-0007rE-Fc for emacs-devel@gnu.org; Sun, 19 Feb 2006 13:48:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FAtS9-0005MB-UT for emacs-devel@gnu.org; Sun, 19 Feb 2006 13:38:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAtRN-00055T-PA for emacs-devel@gnu.org; Sun, 19 Feb 2006 13:37:50 -0500 Original-Received: from [66.249.92.203] (helo=uproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FAtXF-0002ma-0T for emacs-devel@gnu.org; Sun, 19 Feb 2006 13:43:53 -0500 Original-Received: by uproxy.gmail.com with SMTP id u2so494139uge for ; Sun, 19 Feb 2006 10:37:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=eWBX3oDnMOYbi8nrncr54rp57XE7EXgvcP1v7IToosbWpKUDrfZ/xr5f5R3wNi5odIX6yLzAEmfhfJWgBZdZSfgiYNn3zZE1+JDOF3RmbbaX73bw3gIckbCpyn9isnZWDCuvpJFUASHMGayS+l/A1xnfWt0CfXGdCtKaTnYwyFQ= Original-Received: by 10.66.221.3 with SMTP id t3mr996298ugg; Sun, 19 Feb 2006 10:37:18 -0800 (PST) Original-Received: from ?10.0.0.100? ( [82.41.74.89]) by mx.gmail.com with ESMTP id s1sm2695645uge.2006.02.19.10.37.17; Sun, 19 Feb 2006 10:37:18 -0800 (PST) In-Reply-To: <200602190031.k1J0VKq07514@raven.dms.auburn.edu> Original-To: Emacs-Devel ' X-Mailer: Apple Mail (2.746.2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50768 Archived-At: On 19 Feb 2006, at 00:31, Luc Teirlinck wrote: > (customize-mark-to-save 'display-battery-mode) > > is always t even though now change was made because the standard- > value property is nil / not set. It should probably be (nil). > > `display-battery-mode' is autoloaded. This means that it is defined > with `defvar' in loaddefs.el. The standard-value property remains nil > until the defcustom is evaluated, when it becomes (nil). OK, so something like menu-bar-options-save should contain a few require's then. I've written something that'll automatically save the options at the end of an Emacs session.The user is asked whether to actually do that if they have changed. Obviously, I don't want to ask if there is no change, which means I'll need to load the appropriate libraries at that point. Maybe that's something that menu-bar-options-save should do as well, because as it stands now, the customizations are always written to file, whether there have been changes or not (unless all those libraries have been loaded).