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: Fri, 10 Dec 2004 19:36:07 +0100 Message-ID: <00e301c4dee7$283b19b0$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> 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 1102707563 27755 80.91.229.6 (10 Dec 2004 19:39:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2004 19:39:23 +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 Fri Dec 10 20:39:13 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 1Ccpfe-0007ir-00 for ; Fri, 10 Dec 2004 19:39:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ccppc-00019p-9q for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2004 13:49:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcppR-00018N-K7 for emacs-devel@gnu.org; Fri, 10 Dec 2004 13:49:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcppP-00017H-TT for emacs-devel@gnu.org; Fri, 10 Dec 2004 13:49:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcppP-000178-Pa for emacs-devel@gnu.org; Fri, 10 Dec 2004 13:49:19 -0500 Original-Received: from [81.228.11.112] (helo=av5-2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CcpdE-0007A6-Op for emacs-devel@gnu.org; Fri, 10 Dec 2004 13:36:45 -0500 Original-Received: by av5-2-sn1.fre.skanova.net (Postfix, from userid 502) id 07DD638200; Fri, 10 Dec 2004 19:36:44 +0100 (CET) Original-Received: from smtp3-2-sn1.fre.skanova.net (smtp3-2-sn1.fre.skanova.net [81.228.11.164]) by av5-2-sn1.fre.skanova.net (Postfix) with ESMTP id EB49837E8C; Fri, 10 Dec 2004 19:36:43 +0100 (CET) Original-Received: from sedrcw11488 (t5o58p239.telia.com [195.67.196.239]) by smtp3-2-sn1.fre.skanova.net (Postfix) with SMTP id 6105837E61; Fri, 10 Dec 2004 19:36:41 +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:30979 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30979 ----- Original Message ----- From: "Stefan Monnier" > W.r.t removing custom-file: some users may set custom-file in their .emacs > and expect it to do something, so we may as well keep it. Sorry, I disagree on this. The only thing I really can think of where custom-file is used to do something is in CVS Emacs where custom-file is loaded by startup.el if it was not loaded before. I do not think it is any big problem if this does not work any more since it is only in CVS. That is not to say I do not like the feature, it is just that I believe it would be good to get rid of the name custom-file since it could be in (custom-set-variables ...) right now and that could cause problems as we have seen earlier in this discussion. > > Agree, but: As I pointed out earlier I think that if an eval is beeing done > > then (buffer-file-name) should be used instead. This gives the same file > > name as load-file-name would have given during load. The reason is that I > > think this makes it easier to change "custom file". > > I'd rather not try to be too clever. > 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". It is however tricky anyway if we do not reach a state where "custom file" could be changed by "easy customization". > I suggest we do this slowly and progressively. E.g. we can start by making > custom-file a defvar (the current defcustom is just misleading since you > can't really customize it meaningfully). Then we can introduce the > custom-files thingy that uses load-file-name to keep track of where things > are saved. This would at first only be used to detect strange situations > and warn the user about it. After that, we can start thinking again what it > is exactly that we want and how to get it. Agree, except that I believe we should immidieately also change the name of custom-file to something else, perhaps custom-file-in-use (since it is going to be set by custom-set-variables). - Lennart