From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard M Stallman Newsgroups: gmane.emacs.devel Subject: Re: buffer transactions (was Re: Very interesting analysis of "the state of Emacs") Date: Mon, 05 May 2008 11:14:47 -0400 Message-ID: References: <481693C3.70901@emf.net> <4816CDB6.6000006@pajato.com> <4817D79F.8040508@gmail.com> <874p9jhsa7.fsf@localhorst.mine.nu> <87bq3qodp4.fsf@bar.jrock.us> <87od7qikyc.fsf@catnip.gol.com> <871w4htzzx.fsf_-_@nic.woome.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1210000680 31709 80.91.229.12 (5 May 2008 15:18:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 May 2008 15:18:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 05 17:18:36 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jt2Sa-0007Hm-4p for ged-emacs-devel@m.gmane.org; Mon, 05 May 2008 17:18:36 +0200 Original-Received: from localhost ([127.0.0.1]:60061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jt2Rs-0005ck-9Y for ged-emacs-devel@m.gmane.org; Mon, 05 May 2008 11:17:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jt2PX-0004g0-8R for emacs-devel@gnu.org; Mon, 05 May 2008 11:15:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jt2PT-0004e4-3W for emacs-devel@gnu.org; Mon, 05 May 2008 11:15:26 -0400 Original-Received: from [199.232.76.173] (port=53425 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jt2PS-0004dz-Q8 for emacs-devel@gnu.org; Mon, 05 May 2008 11:15:22 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jt2PS-0005lQ-Bz for emacs-devel@gnu.org; Mon, 05 May 2008 11:15:22 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Jt2Ot-0001GC-GB; Mon, 05 May 2008 11:14:47 -0400 In-reply-to: <871w4htzzx.fsf_-_@nic.woome.com> (message from Nic on Mon, 05 May 2008 00:23:46 +0100) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.devel:96493 Archived-At: Just an idle thought... has anyone considered transactional support for buffer modification in emacs? This would enable simultaneous access to buffers by different processes/threads and (it seems) could be implemented by changing the insert primitives in scope for a background process to record a transaction log of all the changes a it wants to make to a buffer (or variable for that matter) and merging it with the state of the actual buffer on completion of the process. We should just make `atomic-change-group' bind a variable to temporarily prevent thread switches. That would do the job and would be much simpler.