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: Emacs Installer for MS Windows Date: Thu, 26 Aug 2004 23:41:11 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <007501c48bb5$78a3d200$0200a8c0@sedrcw11488> References: <001401c478de$908a92d0$0200a8c0@sedrcw11488> <1091508072.20683.201576204@webmail.messagingengine.com> <4111491A.4090601@runestig.com> <4111D8D4.1040506@runestig.com> <1091693906.8538.201741376@webmail.messagingengine.com> <001d01c47afa$c1f5f170$0200a8c0@sedrcw11488> <003e01c48946$a8ebfad0$0200a8c0@sedrcw11488> <011201c48a06$469eb6e0$0200a8c0@sedrcw11488> <016f01c48a10$f6081090$0200a8c0@sedrcw11488> <001801c48a37$995d27f0$0200a8c0@sedrcw11488> <000801c48b9a$9ef72d00$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1093556506 12033 80.91.224.253 (26 Aug 2004 21:41:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Aug 2004 21:41:46 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 26 23:41:34 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 1C0Rzx-0001ZA-00 for ; Thu, 26 Aug 2004 23:41:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0S4b-0006Q5-8q for ged-emacs-devel@m.gmane.org; Thu, 26 Aug 2004 17:46:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0S4O-0006N5-Gh for emacs-devel@gnu.org; Thu, 26 Aug 2004 17:46:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0S4M-0006Mg-NK for emacs-devel@gnu.org; Thu, 26 Aug 2004 17:46:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0S4M-0006MW-KE for emacs-devel@gnu.org; Thu, 26 Aug 2004 17:46:06 -0400 Original-Received: from [81.228.9.105] (helo=av1-1-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C0RzN-0006cc-Dq; Thu, 26 Aug 2004 17:40:57 -0400 Original-Received: by av1-1-sn3.vrr.skanova.net (Postfix, from userid 502) id A49EB37E95; Thu, 26 Aug 2004 23:40:56 +0200 (CEST) Original-Received: from smtp1-2-sn3.vrr.skanova.net (smtp1-2-sn3.vrr.skanova.net [81.228.9.178]) by av1-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 943AE37E43; Thu, 26 Aug 2004 23:40:56 +0200 (CEST) Original-Received: from sedrcw11488 (t1o58p197.telia.com [62.20.164.197]) by smtp1-2-sn3.vrr.skanova.net (Postfix) with SMTP id 48EA038004; Thu, 26 Aug 2004 23:40:54 +0200 (CEST) Original-To: "Stefan Monnier" , "David Kastrup" 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26543 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26543 ----- Original Message ----- From: "Stefan Monnier" > >> As Stefan has pointed out to me this will only affect the user that is > >> installing Emacs. However I think that is no big problem on ms windows. > > I think that's only acceptable if there's no good way to do The Right Thing. I really think TRT is undoable here. I will instead leave Emacs untweaked for other users. > > (customize-set-value 'custom-var "custom value") > > ... > > (customize-save-customized) > > Yes, that's better. It looks better, but it however has one big fault - it does not save the changes. > But the problem is still here: this will only affect > the current user, and (worse) this will modify his .emacs, potentially > throwing away some of his own customizations. It seems acceptable to modify .emacs if I ask first. > My take on it is to create a site-start.el (or default.el) file which does > something along the lines of: > > (unless (file-exists-p "~/.emacs") > (customize-set-value 'custom-var1 "custom value1") > (customize-set-value 'custom-var2 "custom value2") > (customize-set-value 'custom-var3 "custom value3")) There have been many good points on this and this is one. The essential thing as I understand it is to honor the users setting. My first idea has been to create a minor mode for the w32 tweaks. Maybe I still can do this, but the discussion shows I have to be very careful then. - Lennart