An Emacs interface for editing Etherpad pads
Find a file
2021-11-28 02:06:19 +01:00
notes Unspoken (film), Capsulotomy, Battle of An, Allium stamineum. 2021-11-28 02:06:19 +01:00
.gitignore What else is this like? 2021-01-24 12:10:58 +01:00
etherpad.el Sorghum leiocladum, SH3BP1 & Pedicularia granulata. 2021-11-27 17:12:11 +01:00
ethersync.el Unspoken (film), Capsulotomy, Battle of An, Allium stamineum. 2021-11-28 02:06:19 +01:00
layered-0.jpg Astro 2459129 2020-10-06 12:50:50 +02:00
LICENSE Astro 2459129 2020-10-06 12:50:50 +02:00
README.org Astro 2459239 2021-01-24 12:10:58 +01:00

Etherpad & collaborative editing

“Etherpad is a highly customizable Open Source online editor providing collaborative editing in really real-time. Etherpad allows you to edit documents collaboratively in real-time, much like a live multi-player editor that runs in your browser. Write articles, press releases, to-do lists, etc. together with your friends, fellow students or colleagues, all working on the same document at the same time.” https://etherpad.org/

The Etherpad API provides a way to add, delete and edit pads. It also enables access to changesets and author information required for displaying changes between revisions but doesnt appear to provide a way to send changesets (c.f. using the API call getRevisionChangeset and the changeset format)

layered-0.jpg

un-collaborative editing

This package enables read-write access to pads with emacs, but is not (yet) suitable for general use as an Etherpad client (compare etherpad-cli-client)

It provides a quick&dirty way to edit pads on an Etherpad server from emacs as if they were filelike (It uses the Etherpad API rather than the socket.io interface). It doesnt provide an efficient real-time interface for collaborative editing and will overwrite author information. It tries to warn you if the pad on the server has been changed if editing asynchronously (c.f file changed on disk) There is a simplistic autosync mode where every change to the local buffer is written to the server, which is slow (there is a complete pad update for every character) inefficient, and collision prone (since it relies on revision numbers to sync). There is no diff interface or way to resolve divergent changes.

realtime collaborative editing

There is an experimental branch ethersync which enables realtime editing using the socket.io interface to an etherpad server. Its currently unstable and incomplete, but works as a proof-of-concept and basis for further development.

install & configure

The etherpad emacs interface can be installed from MELPA or manually via github.

To connect to an existing etherpad server you need to configure the server url and have an API key.

(use-package etherpad
:config (setq etherpad-server "http://example.org/"
          etherpad-apikey "…"
          etherpad-autosync nil)
:bind (("C-c e" . etherpad-edit)
       :map etherpad-mode-map
       ("C-c c" . etherpad-save)))

To open a pad for editing try M-x etherpad-edit and enter the name of the pad.

To update a pad with changes from the current buffer use etherpad-save (which can be bound to C-c c). If the pad has changed there may be a warning about changes/sync/etc.

Automatic sync between an emacs buffer and the etherpad server can be enabled by setting etherpad-autosync or interactively with etherpad-autosync-enable or etherpad-autosync-disable (and/or toggled with etherpad-autosync-toggle)

Further