From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Customize buttons that changeuser'scustomfileshouldaskforconfirmation Date: Sat, 12 Feb 2005 22:13:44 -0600 (CST) Message-ID: <200502130413.j1D4Din19798@raven.dms.auburn.edu> References: <200502121845.j1CIj3R19380@raven.dms.auburn.edu> <011001c51146$6b2aff10$0200a8c0@sedrcw11488> <200502122121.j1CLLU119488@raven.dms.auburn.edu> <012201c51149$e4ed2a00$0200a8c0@sedrcw11488> <200502122142.j1CLgFT19512@raven.dms.auburn.edu> <015e01c51161$6658c240$0200a8c0@sedrcw11488> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1108269876 18111 80.91.229.2 (13 Feb 2005 04:44:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2005 04:44:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 13 05:44:35 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D0BcT-0000JY-D8 for ged-emacs-devel@m.gmane.org; Sun, 13 Feb 2005 05:44:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0Brj-0001nP-UH for ged-emacs-devel@m.gmane.org; Sun, 13 Feb 2005 00:00:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0Bo1-0007Y6-EA for emacs-devel@gnu.org; Sat, 12 Feb 2005 23:56:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0Bno-0007UD-ML for emacs-devel@gnu.org; Sat, 12 Feb 2005 23:56:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0Bnk-0007Md-R2 for emacs-devel@gnu.org; Sat, 12 Feb 2005 23:56:09 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D0BAL-0003pa-NG for emacs-devel@gnu.org; Sat, 12 Feb 2005 23:15:26 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j1D4FO9N023000; Sat, 12 Feb 2005 22:15:25 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j1D4Din19798; Sat, 12 Feb 2005 22:13:44 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: lennart.borgman.073@student.lu.se In-reply-to: <015e01c51161$6658c240$0200a8c0@sedrcw11488> (lennart.borgman.073@student.lu.se) 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:33333 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33333 To try to be more clear: Lennart Borgman wrote: Or did I misunderstand that? (setq custom-file "Y") together with the common use of (load custom-file) gives at least me a feeling that many would expect "get saved" to read from Y. I suggested to set: (setq custom-file "Y") (load custom-file) _in your .emacs_. But here we are discussing what happens if you change custom-file in an already running Emacs session, after a custom-file has already been loaded. In that situation loading that _second_ Custom file (which presumably is an empty file to be written into by the current Emacs) does not make a lot of sense. The main type of situation in which one might actually want to change custom-file in a running Emacs is the following. Suppose you are using Emacs 21.4 and Emacs 22 comes out. You now start 21.4 and set custom-file _using Custom_ (important) to ".emacs-custom-22.1.el" or similar. If I remember well (I have actually done such things, but a while ago) that file does _not_ need to exist. Now all your 21.4 customizations are copied in the newly created 22.1 custom file, except for `custom-file', which gets correctly updated. You then write code in your .emacs to load ".emacs-custom-22.1.el" if the Emacs version is 22.1. You start 22.1 and watch out for possible errors due to incompatibilities with 21.4. Then you do M-x customize-changed RET 21.4. But it is actually not defined now of course. Currently, Custom stores the SAVED value in the saved-value property. The resulting behavior seems OK to me. Sincerely, Luc.