[OS X Emacs] Revert-buffer with merge?

Piet van Oostrum piet at vanoostrum.org
Sat Feb 1 16:33:15 EST 2014


David Reitter <david.reitter at gmail.com> writes:

> Hi,
>
> I'm currently working on a paper (LaTeX) with a co-author, and I'm
> wondering how people handle such a situation in Emacs / Aquamacs. The
> co-author does not want to use Git or another VCS, which is fine by me -
> not having to check in every change is good.
>
> We can use a shared volume or something like Dropbox.
>
> The problem is simultaneous edits. `auto-revert-mode' would pick up
> updates to the file and reload it, but it would also discard my own
> unsaved changes. Saves are not prevented.
>
> What I need is a function similar to `revert-buffer', which compares the
> saved file against an ancestor, and merges it with my unsaved changes.
> This could be called periodically, and before saving the file to disk.
> I think this might work nicely with both Dropbox or a shared volume.
>
> Does anyone have such a function?

Have a look at Emerge.
-- 
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]



More information about the MacOSX-Emacs mailing list