From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Documentation for custom-file - is not (load custom-file) needed? Date: Wed, 08 Dec 2004 13:04:26 -0500 Message-ID: References: <075b01c4d9a4$52799460$0200a8c0@sedrcw11488> <00bb01c4daee$5eb81350$0200a8c0@sedrcw11488> <200412051733.iB5HXIX13206@raven.dms.auburn.edu> <000001c4db1a$8d3770f0$0200a8c0@sedrcw11488> <200412060046.iB60kZj15003@raven.dms.auburn.edu> <003e01c4db31$e45a2550$0200a8c0@sedrcw11488> <200412060402.iB6421q15173@raven.dms.auburn.edu> <200412070539.iB75dV924747@raven.dms.auburn.edu> <03be01c4dcbf$139bfa30$0200a8c0@sedrcw11488> <87is7dienm.fsf@jurta.org> <87u0qwc43f.fsf@jurta.org> <002001c4dd4e$b4578a40$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102529174 7429 80.91.229.6 (8 Dec 2004 18:06:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2004 18:06:14 +0000 (UTC) Cc: Juri Linkov , Luc Teirlinck , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 08 19:06:05 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 1Cc6CS-0001SQ-00 for ; Wed, 08 Dec 2004 19:06:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cc6MJ-0007z7-NS for ged-emacs-devel@m.gmane.org; Wed, 08 Dec 2004 13:16:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cc6Lv-0007vj-V8 for emacs-devel@gnu.org; Wed, 08 Dec 2004 13:15:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cc6Lv-0007vP-71 for emacs-devel@gnu.org; Wed, 08 Dec 2004 13:15:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cc6Lv-0007vF-41 for emacs-devel@gnu.org; Wed, 08 Dec 2004 13:15:51 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cc6Ay-0000bh-A1 for emacs-devel@gnu.org; Wed, 08 Dec 2004 13:04:32 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id F14A78282A5; Wed, 8 Dec 2004 13:04:31 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 384C54AC67C; Wed, 8 Dec 2004 13:04:27 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id B64A08CA69; Wed, 8 Dec 2004 13:04:26 -0500 (EST) Original-To: "Lennart Borgman" In-Reply-To: <002001c4dd4e$b4578a40$0200a8c0@sedrcw11488> (Lennart Borgman's message of "Wed, 8 Dec 2004 18:52:23 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.348, requis 5, autolearn=not spam, AWL 0.55, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:30873 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30873 How 'bout something like the following: 1 - remove custom-file 2 - custom-set-variables does internally: (push load-file-name custom-files) 3 - when saving, if custom-files is nil, use .emacs, if it has length 1, use (car custom-files), otherwise query the user to know where to save the settings and whether to remove the settings in the other files. Of course, there can be many variations around this idea. For one, we don't actually have to remove custom-file. Instead Custom could (when saving) compare custom-file to custom-files in order to detect unexpected situations and query the user about what he really wants to do. Stefan