From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: always put Customizations in `custom-file', never in `user-init-file' Date: Mon, 10 Dec 2007 23:35:05 +0100 Message-ID: <475DBF19.4050501@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197326126 30995 80.91.229.12 (10 Dec 2007 22:35:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2007 22:35:26 +0000 (UTC) Cc: "Stephen J. Turnbull" , Emacs-Devel To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 10 23:35:36 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J1rDs-0002EO-3d for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2007 23:35:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1rDa-000805-CU for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2007 17:35:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J1rDW-0007wb-4V for emacs-devel@gnu.org; Mon, 10 Dec 2007 17:35:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J1rDS-0007pq-J9 for emacs-devel@gnu.org; Mon, 10 Dec 2007 17:35:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1rDS-0007pe-EB for emacs-devel@gnu.org; Mon, 10 Dec 2007 17:35:10 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J1rDS-0000gD-QG for emacs-devel@gnu.org; Mon, 10 Dec 2007 17:35:11 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:64993 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J1rDO-0005pP-66; Mon, 10 Dec 2007 23:35:07 +0100 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 In-Reply-To: X-Antivirus: avast! (VPS 071210-0, 2007-12-10), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1J1rDO-0005pP-66. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1J1rDO-0005pP-66 a821a17cd064f5342b6e185f5efdf97a X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:84989 Archived-At: Drew Adams wrote: >>> Be very careful. In particular, the natural idea of migrating by >>> loading the init file and using Custom to save its internal state to a >>> custom-file caused no end of pain to users when it was implemented in >>> XEmacs. If there is any error in the init file, you can lose all >>> customizations. >> Then it might be best to avoid automatic migration, but to give a >> command to migrate custom data to custom-file. > > I don't see the problem, if it's understood that `custom-file' would not be > loaded automatically, but only when (where) the user requests via (load-file > custom-file). If you do not mean that custom-file should be loaded automatically then I must have misunderstood you. I thought it would be a good idea to by default have custom-file separate, but as Jason points out there was probably a good reason why this was not done from the beginning. Though I can't remember that reason now. Maybe it had something to do with the order of loading? Maybe it was some problem with custom-set-variables from the beginning?