From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: Documentation for custom-file - is not (load custom-file) needed? Date: Mon, 06 Dec 2004 08:04:40 -0500 Message-ID: References: <075b01c4d9a4$52799460$0200a8c0@sedrcw11488> <00bb01c4daee$5eb81350$0200a8c0@sedrcw11488> <200412051733.iB5HXIX13206@raven.dms.auburn.edu> <000001c4db1a$8d3770f0$0200a8c0@sedrcw11488> <200412060046.iB60kZj15003@raven.dms.auburn.edu> <003e01c4db31$e45a2550$0200a8c0@sedrcw11488> <200412060402.iB6421q15173@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 1102338329 16407 80.91.229.6 (6 Dec 2004 13:05:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2004 13:05:29 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, jpw@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 14:05:18 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CbIYI-0002Tm-00 for ; Mon, 06 Dec 2004 14:05:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbIi2-00021d-E4 for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2004 08:15:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CbIhd-0001yL-I2 for emacs-devel@gnu.org; Mon, 06 Dec 2004 08:14:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CbIhb-0001xp-Ff for emacs-devel@gnu.org; Mon, 06 Dec 2004 08:14:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbIhb-0001xm-Br for emacs-devel@gnu.org; Mon, 06 Dec 2004 08:14:55 -0500 Original-Received: from [206.47.199.166] (helo=simmts8-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CbIXi-0006ss-48; Mon, 06 Dec 2004 08:04:42 -0500 Original-Received: from empanada.home ([67.68.219.169]) by simmts8-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041206130441.YKFA1623.simmts8-srv.bellnexxia.net@empanada.home>; Mon, 6 Dec 2004 08:04:41 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id F340338FC4E; Mon, 6 Dec 2004 08:04:40 -0500 (EST) Original-To: Luc Teirlinck In-Reply-To: <200412060402.iB6421q15173@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sun, 5 Dec 2004 22:02:01 -0600 (CST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) 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:30746 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30746 > If you just set `custom-file' with a setq in the user's init file, the > :set and :get functions will not be called when the user's init file > is loaded. So you will have to insert calls to named functions in the > user's init file that can be updated whenever Custom changes, without > need to update the user's init file. > It seems a _lot_ cleaner to just put in a call to "load" in the user's > init file and let `custom-set-variables' do all the work. You might be right. It does seem however that the :get and :set functions don't need to do anything special. And that's the problem: we need to do something special (like move the big custom-set-variables block) when we move the custom settings from one place (like .emacs) to another, not when we set the custom-file variable. The first happens extremely rarely, the second would happen at every Emacs startup. Stefan