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 change user's customfileshouldaskforconfirmation Date: Sat, 12 Feb 2005 12:45:03 -0600 (CST) Message-ID: <200502121845.j1CIj3R19380@raven.dms.auburn.edu> References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1108234206 17171 80.91.229.2 (12 Feb 2005 18:50:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2005 18:50:06 +0000 (UTC) Cc: emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 12 19:50:04 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D02L1-0003Ln-3O for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2005 19:49:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D02aC-0000Qg-L9 for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2005 14:05:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D02XE-0007Uq-O4 for emacs-devel@gnu.org; Sat, 12 Feb 2005 14:02:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D02XC-0007TZ-Lf for emacs-devel@gnu.org; Sat, 12 Feb 2005 14:02:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D02XC-0007T0-27 for emacs-devel@gnu.org; Sat, 12 Feb 2005 14:02:26 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D02IJ-00086G-4a for emacs-devel@gnu.org; Sat, 12 Feb 2005 13:47:03 -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 j1CIkh9N021079; Sat, 12 Feb 2005 12:46:43 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j1CIj3R19380; Sat, 12 Feb 2005 12:45:03 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: drew.adams@oracle.com In-reply-to: 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:33305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33305 M-: (setq custom-file "X") M-x customize do some editing save (into X) M-: (setq custom-file "Y") get (from ?) Question is "from X" or "from Y"? Good point. I would think it should be Y. Absolutely not. `(setq custom-file "Y")' means that you want Custom to _write_ to Y. If you want Y to be read you have to load Y. By the way, loading a file with a second custom-set-variables form is not something Custom currently expects you to do. It will work fine and can be useful, _if_ you know what you are doing. Some packages use several files with separate `custom-set-variables' forms. But, if you do not know Custom really well, unexpected things may happen. If you want Y to be your Custom file, write: (setq custom-file "Y") (load custom-file) in your .emacs, as the docstring of `custom-file' recommends. Sincerely, Luc.