From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: Documentation for custom-file - is not (load custom-file) needed? Date: Sat, 11 Dec 2004 02:00:30 +0100 Message-ID: <025901c4df1c$f2ac8f50$0200a8c0@sedrcw11488> 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> <200412070539.iB75dV924747@raven.dms.auburn.edu> <200412090220.iB92KHR16407@raven.dms.auburn.edu> <874qiusno3.fsf@jurta.org> <00d101c4ded0$37cad4e0$0200a8c0@sedrcw11488> <87653am6wd.fsf-monnier+emacs@gnu.org> <00e301c4dee7$283b19b0$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102727126 5840 80.91.229.6 (11 Dec 2004 01:05:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Dec 2004 01:05:26 +0000 (UTC) Cc: Juri Linkov , teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 11 02:05:20 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 1CcvhI-0002sE-00 for ; Sat, 11 Dec 2004 02:05:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcvrG-0001Gs-GT for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2004 20:15:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcvqY-00015o-IU for emacs-devel@gnu.org; Fri, 10 Dec 2004 20:14:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcvqW-00014b-Ix for emacs-devel@gnu.org; Fri, 10 Dec 2004 20:14:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcvqW-00014Y-EC for emacs-devel@gnu.org; Fri, 10 Dec 2004 20:14:52 -0500 Original-Received: from [81.228.11.109] (helo=av3-1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ccvds-0006BL-Iq for emacs-devel@gnu.org; Fri, 10 Dec 2004 20:01:49 -0500 Original-Received: by av3-1-sn1.fre.skanova.net (Postfix, from userid 502) id DDA3D37EA2; Sat, 11 Dec 2004 02:01:47 +0100 (CET) Original-Received: from smtp3-2-sn1.fre.skanova.net (smtp3-2-sn1.fre.skanova.net [81.228.11.164]) by av3-1-sn1.fre.skanova.net (Postfix) with ESMTP id CF64137E91; Sat, 11 Dec 2004 02:01:47 +0100 (CET) Original-Received: from sedrcw11488 (t3o58p184.telia.com [195.252.56.184]) by smtp3-2-sn1.fre.skanova.net (Postfix) with SMTP id 9B67837E55; Sat, 11 Dec 2004 02:01:44 +0100 (CET) Original-To: "Stefan Monnier" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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:30991 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30991 ----- Original Message ----- From: "Stefan Monnier" > >> After all, when moving the custom file, you need to tell future Emacsen > >> where it'll be, so you need to change your .emacs to either > >> (setq custom-file "newfile") or (load "newfile"). Just M-C-x won't cut it. > > > I am not sure about this, > > but I can see situations where it would be good if eval set the "custom > > file". > > No, I think this would be very wrong. THE custom file should only be set > by a very explicit user action. Not just by eval'ing some random expression > that might contain a custom-set-variables. One benefit of setting "custom file" on eval would be that the user may proceed and use the new "custom file" without having to restart Emacs. (As you say more things have to be done to use it in the next session.) This could be of use if you want to save different collections of options states in different "custom files". But I did not mean THE custom file here, I meant "push it on custom-files". (What I was not sure about was the value of this benefit.) > Again my sugestion is to (for now) only introduce custom-files and only use > it to double-check the value of custom-file. > In a subsequent step we can change custom-file so that when it is nil, it > means "use the file found in custom-files" (in which case > custom-set-variables would indeed indirectly set the custom file, tho > setting custom-file explicitly would still take precedence, or at least > cause some prompting to occur). > > `custom-file' is a user variable and should thus never be changed behind the > user's back. It is a good suggestion. Maybe we can combine this with "cleaning" custom-file from the property that makes it beeing saved by custom? - Lennart