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's customfileshouldaskforconfirmation Date: Sat, 12 Feb 2005 10:04:37 -0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108232122 12153 80.91.229.2 (12 Feb 2005 18:15:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2005 18:15:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 12 19:15:21 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D01nV-0007E8-DK for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2005 19:15:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D01yL-000504-Bk for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2005 13:26:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D01xo-0004pT-93 for emacs-devel@gnu.org; Sat, 12 Feb 2005 13:25:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D01xd-0004kB-I4 for emacs-devel@gnu.org; Sat, 12 Feb 2005 13:25:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D01xd-0004k0-Bc for emacs-devel@gnu.org; Sat, 12 Feb 2005 13:25:41 -0500 Original-Received: from [148.87.122.31] (helo=rgminet02.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D01fY-0005k1-9r for emacs-devel@gnu.org; Sat, 12 Feb 2005 13:07:00 -0500 Original-Received: from rgminet02.oracle.com (localhost [127.0.0.1]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j1CI6qRG014265; Sat, 12 Feb 2005 13:06:52 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j1CI4eIZ012902; Sat, 12 Feb 2005 13:05:13 -0500 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 j1CI4dal021611; Sat, 12 Feb 2005 11:04:39 -0700 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-81-21.vpn.oracle.com [141.144.81.21]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j1CI4ce7021604 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 12 Feb 2005 11:04:39 -0700 Original-To: "Kim F. Storm" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:33302 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33302 > I don't know if "S =>" imply that [1] we actually read > the values from the > custom-file (e.g. .emacs) or if [2] it just restores the > value that was > initially read from that file, or [3] the last value that > was written by this emacs to that file. > > What is the difference between [1] and [3]? If custom-file is updated by another emacs instance, [1] != [3]. Thanks. I didn't pay attention to the "this emacs". Since we're dealing with a file (persistence), I would think that [1] would be the best approach. (I don't know either what we do currently.) > 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. In any case, we should tell the user just what will happen (with a dynamically defined tooltip? "Get values from file `Y'") and echo what did actually happen with a message ("Values read from file `Y'").