From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: Customize custom-file is not useful as it works now Date: Sun, 5 Dec 2004 18:24:25 +0100 Message-ID: <00be01c4daef$5c11b600$0200a8c0@sedrcw11488> References: <075301c4d9a0$9ef2bf00$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102267561 4673 80.91.229.6 (5 Dec 2004 17:26:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Dec 2004 17:26:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 05 18:25:56 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 1Cb08x-0003g5-00 for ; Sun, 05 Dec 2004 18:25:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb0If-0004d3-2L for ged-emacs-devel@m.gmane.org; Sun, 05 Dec 2004 12:35:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cb0IY-0004cy-Av for emacs-devel@gnu.org; Sun, 05 Dec 2004 12:35:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cb0IX-0004cm-V4 for emacs-devel@gnu.org; Sun, 05 Dec 2004 12:35:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb0IX-0004cj-Sc for emacs-devel@gnu.org; Sun, 05 Dec 2004 12:35:49 -0500 Original-Received: from [81.228.11.111] (helo=av5-1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cb08K-0004b7-Hg; Sun, 05 Dec 2004 12:25:16 -0500 Original-Received: by av5-1-sn1.fre.skanova.net (Postfix, from userid 502) id CFCFC37EAD; Sun, 5 Dec 2004 18:25:15 +0100 (CET) Original-Received: from smtp3-1-sn1.fre.skanova.net (smtp3-1-sn1.fre.skanova.net [81.228.11.163]) by av5-1-sn1.fre.skanova.net (Postfix) with ESMTP id BD8A637E5A; Sun, 5 Dec 2004 18:25:15 +0100 (CET) Original-Received: from sedrcw11488 (t3o58p180.telia.com [195.252.56.180]) by smtp3-1-sn1.fre.skanova.net (Postfix) with SMTP id C2A8B37E58; Sun, 5 Dec 2004 18:25:14 +0100 (CET) Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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:30706 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30706 ----- Original Message ----- From: "Richard Stallman" > What is needed is an entry in .emacs like (setq custom-file ".custom"). > > That isn't enough, is it? To make the settings take effect, the user > has to load the file which is specified as custom-file. But I hesitate > to recommend editing .emacs automatically to do this, since one of the > reasons people want to use a separate file is to avoid automatic editing > of .emacs. I have just learned that custom-file is loaded after .emacs by startup.el if it was not loaded before. The editing I proposed shows the old entry if any in .emacs marked and asks the user whether to change it. It looks mostly like query replace, but with some more marking. (Though I forgot to add a question when adding.) This could all be made a bit nicer (it is just not quite finished yet) and I realize that many would not want automatic editing of .emacs. And it is a bit scary to do the editing too. However when the user is asked to accept the change and clearly shown what will be done it might perhaps be accepted by most users? - Lennart