From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: howto: 2 users interactively edit the same file ? Date: Fri, 04 Nov 2005 12:52:19 +0200 Message-ID: References: <87ll0bvd9t.fsf@tiger.rapttech.com.au> <87acgrsieb.fsf@thalassa.informatimago.com> <8764reun7j.fsf@tiger.rapttech.com.au> <87zmomdz7x.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1131105639 2659 80.91.229.2 (4 Nov 2005 12:00:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2005 12:00:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 04 13:00:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EY0DX-0004b0-V2 for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Nov 2005 12:58:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EY0DX-0003TT-FZ for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Nov 2005 06:58:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EXzBU-0004yF-Hg for help-gnu-emacs@gnu.org; Fri, 04 Nov 2005 05:52:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EXzBS-0004vr-2I for help-gnu-emacs@gnu.org; Fri, 04 Nov 2005 05:52:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXzBA-0004kl-F1 for help-gnu-emacs@gnu.org; Fri, 04 Nov 2005 05:52:17 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EXzBA-0003jh-Hu for help-gnu-emacs@gnu.org; Fri, 04 Nov 2005 05:52:16 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-72-192.inter.net.il [80.230.72.192]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CWW66587 (AUTH halo1); Fri, 4 Nov 2005 12:52:14 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: <87zmomdz7x.fsf@tiger.rapttech.com.au> (message from Tim X on 03 Nov 2005 17:25:54 +1100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30816 Archived-At: > From: Tim X > Date: 03 Nov 2005 17:25:54 +1100 > > OK, I'm quite willing to accept all of that, though I'd still have > concerns about how performance would be. If I understand you > corrrectly, wouldn't there be a high likelihood of one input source > "hogging" things - effectively causing a sort of starvation for the > other user? There doesn't seem to be any sense of "fair" access in the > model your describing and I still feel this would be problematic. It's a round-robin model: whenever some input is found pending, Emacs retrieves it and processes it, then it goes to see if there's any more input. If the input event invokes some expensive processing, the next event will not be processed until the expensive part is done. There's no preemption. So yes, it could be that one user hogs Emacs and starves the other, but only for the duration of processing of a single input event (e.g., a single keypress or one mouse event). However, this can happen even with a single user: you type something that starts a prolonged operation, then the rest of your input waits in the queue until the prolonged operation is done. > I also wonder how emacs will handle things like local variables when > you have two different users editing in the same buffer. Wouldn't this > have consequences for things like point and region related commands? Yes. But two users using the same Emacs are not supposed to be fighting each other, they're supposed to cooperate ;-)