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: Mon, 31 Oct 2005 22:15:01 +0200 Message-ID: References: <87ll0bvd9t.fsf@tiger.rapttech.com.au> <87acgrsieb.fsf@thalassa.informatimago.com> <8764reun7j.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1130789791 11452 80.91.229.2 (31 Oct 2005 20:16:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Oct 2005 20:16:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 31 21:16:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWg4Z-0000HL-IT for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Oct 2005 21:16:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWg4Y-0001kW-GV for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Oct 2005 15:16:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWg46-0001ji-OF for help-gnu-emacs@gnu.org; Mon, 31 Oct 2005 15:15:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWg43-0001i1-1x for help-gnu-emacs@gnu.org; Mon, 31 Oct 2005 15:15:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWg42-0001hp-Pn for help-gnu-emacs@gnu.org; Mon, 31 Oct 2005 15:15:30 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EWg42-0005YR-Lk for help-gnu-emacs@gnu.org; Mon, 31 Oct 2005 15:15:30 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-36-136.inter.net.il [80.230.36.136]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CVU12827 (AUTH halo1); Mon, 31 Oct 2005 22:15:01 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: <8764reun7j.fsf@tiger.rapttech.com.au> (message from Tim X on 31 Oct 2005 19:04:16 +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:30719 Archived-At: > From: Tim X > Date: 31 Oct 2005 19:04:16 +1100 > > I find it amazing this will work. The big problem is how can emacs, > which doesn't support threads, handle simultaneous input from two > distinct frames? I can't see how it can handle input from two > different input devices simultaneously either. I don't see why you cannot see that: quite simply, Emacs tries to read from every possible input source, one after the other (that includes any subprocesses that happen to run in some Emacs buffers, such as compilation, Grep, spell-checker, etc.). Emacs uses the system call `select' or its equivalent to do that; `select' actually allows you to set up a kind of ``poor man's threading'' in a single thread. > The physical displaying > of the frame on another display is easy enough to understand - this is > a feature of X windows which emacs is able to take advantage of when > it is built with X lib support - but coping with input from two > sources at the same time is a very different matter. Not really. Provided that you know what source each input even came from, it's quite easy to DTRT with each one of them.