From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Documentation for custom-file - is not (load custom-file) needed? Date: Mon, 13 Dec 2004 14:51:17 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102968047 23121 80.91.229.6 (13 Dec 2004 20:00:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2004 20:00:47 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 13 21:00:38 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 1CdwN4-0007UG-00 for ; Mon, 13 Dec 2004 21:00:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CdwXA-0007MT-Sg for ged-emacs-devel@m.gmane.org; Mon, 13 Dec 2004 15:11:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CdwT5-0002ZG-VK for emacs-devel@gnu.org; Mon, 13 Dec 2004 15:06:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CdwT2-0002XO-Fr for emacs-devel@gnu.org; Mon, 13 Dec 2004 15:06:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CdwSz-0002SO-L5 for emacs-devel@gnu.org; Mon, 13 Dec 2004 15:06:45 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CdwI9-0007ch-PJ for emacs-devel@gnu.org; Mon, 13 Dec 2004 14:55:33 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CdwE1-0005Q3-JO; Mon, 13 Dec 2004 14:51:18 -0500 Original-To: emacs-devel@gnu.org 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:31079 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31079 I read the various messages about custom-file, and this is what I think we should do. 1. We should eliminate custom-file as a defcustom. 2. We should eliminate loading custom-file on startup. We should tell users that .emacs should load the appropriate file where custom values are stored. 3. Calling custom-set-variables in a file should add that file to a list of files that have done so. 4. Evaluating a custom-set-variables call in a buffer should not do any such thing. 5. When saving custom variables, if custom-file is set, save in that file. Otherwise, if they have only been loaded from one file, save in that file. Otherwise, if they have been loaded from more than one file, save in the most recently loaded such file. 6. If the user wants to specify which file to save in, he can set custom-file or else just load that file. 7. Eventually, in the future, we might figure out some clean UI for specifying which custom files to use and load under which conditions, and for moving definitions between them, but that is something for later.