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: Emacs Installer for MS Windows Date: 26 Aug 2004 17:00:36 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: 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=us-ascii X-Trace: sea.gmane.org 1093554430 12433 80.91.224.253 (26 Aug 2004 21:07:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Aug 2004 21:07:10 +0000 (UTC) Cc: Lennart Borgman , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 26 23:07:01 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 1C0RNA-0006SX-00 for ; Thu, 26 Aug 2004 23:01:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0RRo-0007O8-0r for ged-emacs-devel@m.gmane.org; Thu, 26 Aug 2004 17:06:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0RRg-0007O3-QK for emacs-devel@gnu.org; Thu, 26 Aug 2004 17:06:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0RRf-0007Np-6X for emacs-devel@gnu.org; Thu, 26 Aug 2004 17:06:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0RRf-0007Nf-4Q for emacs-devel@gnu.org; Thu, 26 Aug 2004 17:06:07 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C0RMz-0000Oj-0G; Thu, 26 Aug 2004 17:01:17 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 9747DB3028E; Thu, 26 Aug 2004 17:00:37 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 0B6268CA23; Thu, 26 Aug 2004 17:00:37 -0400 (EDT) Original-To: David Kastrup In-Reply-To: Original-Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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=0, requis 5) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26541 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26541 >> 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. > (customize-set-value 'custom-var "custom value") > ... > (customize-save-customized) Yes, that's better. 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. 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")) This way, if the user already has a .emacs, nothing happens. And if she every changes something via customize, the settings will be added to her .emacs so those settings will apply to any Emacs (which is a good thing: you want to be able to move your .emacs from one place to another, including from w32 to unix and vice-versa). Stefan