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: Documentation for custom-file - is not (load custom-file) needed? Date: Mon, 6 Dec 2004 20:34:08 -0600 (CST) Message-ID: <200412070234.iB72Y8t24576@raven.dms.auburn.edu> 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> <200412061834.iB6IYBu20015@raven.dms.auburn.edu> <009401c4dbdd$fb874c60$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102387893 24879 80.91.229.6 (7 Dec 2004 02:51:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Dec 2004 02:51:33 +0000 (UTC) Cc: monnier@iro.umontreal.ca, jpw@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 07 03:51:26 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 1CbVRm-0002kL-00 for ; Tue, 07 Dec 2004 03:51:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbVbY-0000lE-43 for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2004 22:01:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CbVUt-0006pz-N7 for emacs-devel@gnu.org; Mon, 06 Dec 2004 21:54:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CbVUe-0006hv-2s for emacs-devel@gnu.org; Mon, 06 Dec 2004 21:54:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbVUd-0006eC-O9 for emacs-devel@gnu.org; Mon, 06 Dec 2004 21:54:23 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CbVCi-0001hU-2W; Mon, 06 Dec 2004 21:35:52 -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 iB72ZpFu000886; Mon, 6 Dec 2004 20:35:51 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id iB72Y8t24576; Mon, 6 Dec 2004 20:34:08 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: lennart.borgman.073@student.lu.se In-reply-to: <009401c4dbdd$fb874c60$0200a8c0@sedrcw11488> (lennart.borgman.073@student.lu.se) 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:30783 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30783 On second thought, I start doubting the utility of the feature you are proposing. One of the main reasons to have a custom file is to have different custom files for different versions of Emacs. Those versions share .emacs. So Custom should not write anything into .emacs of the type you are proposing, since the custom file usually is version dependent and .emacs is version independent. If Custom is to write anything in .emacs, it should allow the user to specify different custom files for different ranges of Emacs versions and write a `cond' form into .emacs of the type below. That might be useful, but I believe we should wait with that until after the release. (cond ((< emacs-major-version 21) (load "~/.custom-20.el")) ((< emacs-minor-version 4) (load "~/.custom-21.el")) (t (load "~/.custom-21.4.el"))) Sincerely, Luc.