From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Close .emacs file after customization? Date: Wed, 26 Feb 2003 16:21:33 +0100 Organization: The Church of Emacs Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046273248 4769 80.91.224.249 (26 Feb 2003 15:27:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2003 15:27:28 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18o3SK-0001C8-00 for ; Wed, 26 Feb 2003 16:26:48 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18o3io-0000HU-00 for ; Wed, 26 Feb 2003 16:43:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18o3RH-0008BS-05 for emacs-devel@quimby.gnus.org; Wed, 26 Feb 2003 10:25:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18o3Qs-0008AY-00 for emacs-devel@gnu.org; Wed, 26 Feb 2003 10:25:18 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18o3Qq-00089e-00 for emacs-devel@gnu.org; Wed, 26 Feb 2003 10:25:17 -0500 Original-Received: from sheridan.dina.kvl.dk ([130.225.40.227]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18o3Nr-0006Yn-00 for emacs-devel@gnu.org; Wed, 26 Feb 2003 10:22:12 -0500 Original-Received: from zuse.dina.kvl.dk (zuse.dina.kvl.dk [130.225.40.245]) QAA30892 for ; Wed, 26 Feb 2003 16:21:36 +0100 Original-Received: (from abraham@localhost) by zuse.dina.kvl.dk (8.11.6+Sun/8.11.6) id h1QFLX423815; Wed, 26 Feb 2003 16:21:33 +0100 (MET) X-Authentication-Warning: zuse.dina.kvl.dk: abraham set sender to abraham@dina.kvl.dk using -f Original-To: emacs-devel@gnu.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ In-Reply-To: (Richard Stallman's message of "Mon, 17 Feb 2003 02:19:09 -0500") Original-Lines: 26 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11981 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11981 Richard Stallman writes: > > If I open the .emacs file in one instance, customize it, then do the > > same in another instance, they both have an open copy of the buffer > > and there are race conditions as to which emacs version should be > > modifying the file. > > > > Can we just fix customization to close the .emacs file after it modifies it? > > It is possible, but it will not solve the problem. > > Emacs interlocking should detect automatically when you lose with one > Emacs edits that were made with another Emacs. If custom visits the > file in the normal way and does not do anything to disable or override > this mechanism, it will operate. It will operate, but changes to all but the last Emacs instance to save the customizations will be lost. You will get a warning if customize *does not* kill the .emacs buffer after saving customization, which is currently the case, but that is precisely what the original poster wanted to change. Also, you will not get a warning if the user manually kills the .emacs buffer.