all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: SubEthaEdit style networked editing
Date: Tue, 21 Mar 2006 11:38:31 -0500	[thread overview]
Message-ID: <87irq7g3oh.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 1142266883.831202.314610@i39g2000cwa.googlegroups.com

> 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

  parent reply	other threads:[~2006-03-21 16:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-13 16:21 SubEthaEdit style networked editing Shug Boabby
2006-03-13 16:27 ` David Kastrup
2006-03-13 17:09   ` Shug Boabby
2006-03-14 14:13     ` david.reitter
2006-03-14 17:57       ` Shug Boabby
2006-03-15 16:03     ` Mathias Dahl
2006-03-15 16:54       ` Shug Boabby
2006-03-15 17:04       ` Shug Boabby
2006-03-16 15:31         ` Mathias Dahl
2006-03-21 16:38 ` Stefan Monnier [this message]
2006-03-22 14:45   ` Shug Boabby
2006-03-22 15:56     ` Kevin Rodgers
     [not found]     ` <mailman.32.1143043283.14011.help-gnu-emacs@gnu.org>
2006-03-22 17:14       ` Shug Boabby
2006-03-22 17:17         ` Shug Boabby
2006-03-22 19:32         ` Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2006-03-16  0:15 David Reitter
     [not found] <mailman.94.1142468136.9686.help-gnu-emacs@gnu.org>
2006-03-16 20:04 ` Shug Boabby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87irq7g3oh.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.