From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Eliminating "changed in Emacs outside of Customize" Date: Tue, 1 Feb 2005 14:40:10 -0800 Message-ID: References: <200502012211.j11MBnj02899@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107297805 6663 80.91.229.2 (1 Feb 2005 22:43:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2005 22:43:25 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, rms@gnu.org, abraham@dina.kvl.dk, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 01 23:43:24 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cw6jv-0006x2-07 for ged-emacs-devel@m.gmane.org; Tue, 01 Feb 2005 23:43:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cw6wu-00034a-Pz for ged-emacs-devel@m.gmane.org; Tue, 01 Feb 2005 17:56:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cw6vr-0002j4-CO for emacs-devel@gnu.org; Tue, 01 Feb 2005 17:55:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cw6vh-0002eZ-8u for emacs-devel@gnu.org; Tue, 01 Feb 2005 17:55:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cw6vg-0002e7-UZ for emacs-devel@gnu.org; Tue, 01 Feb 2005 17:55:28 -0500 Original-Received: from [141.146.126.229] (helo=agminet02.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Cw6hA-0008IN-Iy; Tue, 01 Feb 2005 17:40:28 -0500 Original-Received: from agminet02.oracle.com (localhost [127.0.0.1]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j11MeK9l030694; Tue, 1 Feb 2005 14:40:20 -0800 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j11MeIZE030645; Tue, 1 Feb 2005 14:40:18 -0800 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j11MeHbe023231; Tue, 1 Feb 2005 15:40:18 -0700 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-81-59.vpn.oracle.com [141.144.81.59]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j11MeEqj023198 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 1 Feb 2005 15:40:16 -0700 Original-To: "Luc Teirlinck" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <200502012211.j11MBnj02899@raven.dms.auburn.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:32732 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32732 I believe that you were confusing with the defcustom form, which does not override an already set value (_unless_ the :set function does so) and its default :initialize function `custom-initialize-reset', which nevertheless executes the :set function _even_ if the value is already set. ... Interesting. I wasn't aware of these keyword args to defcustom. Something I discovered recently that is perhaps related (perhaps not), and I'm not sure is documented: subsequent defcustom's redefine the `standard' value of the variable (that is, the value that you can reset to with Reset to Standard). The current value is not changed; only the `standard' value is changed. Of course, it's not recommended for multiple libraries to use defcustom's for the same variable, but if they do, the last one executed wins, in this respect.