From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Getting more info on a variable in Customize buffers Date: Wed, 05 Jan 2005 09:33:06 +0100 Organization: The Church of Emacs Message-ID: References: <200501022044.j02KiBL08651@raven.dms.auburn.edu> <200501041555.j04FtG815571@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104914059 25675 80.91.229.6 (5 Jan 2005 08:34:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2005 08:34:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 05 09:34:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cm6cJ-0003dz-00 for ; Wed, 05 Jan 2005 09:34:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cm6nY-0006ub-Vl for ged-emacs-devel@m.gmane.org; Wed, 05 Jan 2005 03:45:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cm6nQ-0006uS-Ag for emacs-devel@gnu.org; Wed, 05 Jan 2005 03:45:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cm6nP-0006u0-GB for emacs-devel@gnu.org; Wed, 05 Jan 2005 03:45:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cm6nP-0006ti-Aw for emacs-devel@gnu.org; Wed, 05 Jan 2005 03:45:35 -0500 Original-Received: from [130.225.40.227] (helo=sheridan.dina.kvl.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cm6bQ-0000gG-Ua for emacs-devel@gnu.org; Wed, 05 Jan 2005 03:33:13 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by sheridan.dina.kvl.dk (Postfix) with ESMTP id ABB1D13D02; Wed, 5 Jan 2005 09:33:07 +0100 (CET) Original-Received: from sheridan.dina.kvl.dk ([127.0.0.1]) by localhost (sheridan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06395-06; Wed, 5 Jan 2005 09:33:06 +0100 (CET) Original-Received: by sheridan.dina.kvl.dk (Postfix, from userid 304) id C081C13CEF; Wed, 5 Jan 2005 09:33:06 +0100 (CET) Original-To: Luc Teirlinck X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ In-Reply-To: <200501041555.j04FtG815571@raven.dms.auburn.edu> (Luc Teirlinck's message of "Tue, 4 Jan 2005 09:55:16 -0600 (CST)") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dina.kvl.dk 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: main.gmane.org gmane.emacs.devel:31881 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31881 Luc Teirlinck writes: > If you set, say, auto-revert-interval, which is 5 by default, to 10 > and save for future sessions, then set it to 20 for this session > only, "show initial Lisp expression" will show 10, not 5. If the standard value is 5, the saved value is 10, and the current value is 20, then "the *unevaluated* expression that is used to initialize the variable at start-up" is 10. The "defcustom" form will use the saved value for initialization over the standard value, provided that a saved value exists. I guess the name "custom-set-variables" was a mistake. It makes people think of it as a command (like setq), rather than a declaration. It does not (in the prototypical case) set any variables, it just mark what their saved value are for use when the appropriate defcustom is evaluated. It should have been called "custom-saved-variables", that would have avoided a lot of confusion.