From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: SubEthaEdit style networked editing Date: Tue, 21 Mar 2006 11:38:31 -0500 Organization: Bell Sympatico Message-ID: <87irq7g3oh.fsf-monnier+gnu.emacs.help@gnu.org> References: <1142266883.831202.314610@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143491666 2941 80.91.229.2 (27 Mar 2006 20:34:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2006 20:34:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 27 22:34:26 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FNyPY-0002EQ-7J for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Mar 2006 22:34:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FNyPX-0007xV-Mf for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Mar 2006 15:33:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:79Xs5XIhvKt8C7FtCiGEhVwCiTE= Original-Lines: 22 Original-NNTP-Posting-Host: 70.55.140.81 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1142959112 70.55.140.81 (Tue, 21 Mar 2006 11:38:32 EST) Original-NNTP-Posting-Date: Tue, 21 Mar 2006 11:38:32 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:138300 Original-To: help-gnu-emacs@gnu.org 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:34023 Archived-At: > editing of a text file. One computer is designated as the server for > the file, then other users can connect and edit the file... everyone > sees everyone else's edits in realtime in their editor (in different > colours). I'm sure this can be done in an Emacs package, and IIRC someone has done something along these lines several years ago (but maybe it was for XEmacs and used some patches to the C code; can't remember well). Basically you just need to add an after-change-functions hook that sends the changed text&location to the other processes and have each one of those processes listen to those messages and apply the change (after adding some color if needed). The main difficulty might be in ensuring that the changes are seen in the same order by every process or to somehow correctly handle the case where changes are received in a different order. But it shouldn't be that hard, really, as long as you can assume a reliable and fast enough communication between the different machines. Stefan