From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Customize buttons that change user'scustomfileshouldaskforconfirmation Date: Sun, 13 Feb 2005 18:07:54 -0800 Message-ID: References: <200502121845.j1CIj3R19380@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108347227 19842 80.91.229.2 (14 Feb 2005 02:13:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2005 02:13:47 +0000 (UTC) Cc: storm@cua.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 14 03:13:46 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D0Vk2-0006Ke-V7 for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2005 03:13:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0Vul-000392-Pn for ged-emacs-devel@m.gmane.org; Sun, 13 Feb 2005 21:24:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0VuQ-00032i-AO for emacs-devel@gnu.org; Sun, 13 Feb 2005 21:24:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0Vu7-0002t0-LQ for emacs-devel@gnu.org; Sun, 13 Feb 2005 21:24:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0Vu6-0002rM-35 for emacs-devel@gnu.org; Sun, 13 Feb 2005 21:24:02 -0500 Original-Received: from [141.146.126.231] (helo=agminet04.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D0Vf7-0007y2-GF for emacs-devel@gnu.org; Sun, 13 Feb 2005 21:08:33 -0500 Original-Received: from agminet04.oracle.com (localhost [127.0.0.1]) by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j1E288YA016345; Sun, 13 Feb 2005 18:08:08 -0800 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j1E287Uh016330; Sun, 13 Feb 2005 18:08:07 -0800 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j1E286P7003176; Sun, 13 Feb 2005 19:08:06 -0700 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-82-35.vpn.oracle.com [141.144.82.35]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j1E27sAq003000 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sun, 13 Feb 2005 19:08:01 -0700 Original-To: "Luc Teirlinck" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: <200502121845.j1CIj3R19380@raven.dms.auburn.edu> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 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:33359 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33359 > If it implies reading from the file, this could > be used to load values from a diffent custom-file > (to see what they are) before actually using them. > > No way to do that has yet been proposed. S=>F means > to get the values from the custom-set* in the user's > .emacs (custom file). There is currently no way to > designate a different library to use as the source of > `saved' settings. 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... 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. The question was about "getting" values from a custom file without loading that file. You are confirming, I guess, that there is no way to change custom-file for purposes of get-but-do-not-load.