Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] remote collaborative editing of coq files

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] remote collaborative editing of coq files


Chronological Thread 
  • From: Dominique Unruh <unruh AT ut.ee>
  • To: coq-club AT inria.fr, Abhishek Anand <abhishek.anand.iitg AT gmail.com>
  • Subject: Re: [Coq-Club] remote collaborative editing of coq files
  • Date: Mon, 15 Jun 2020 00:35:45 +0300
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=d.unruh AT gmail.com; spf=Pass smtp.mailfrom=d.unruh AT gmail.com; spf=None smtp.helo=postmaster AT mail-lf1-f66.google.com
  • Ironport-phdr: 9a23:mkA0JRVFHI/SCOB6Drh2UgacTgfV8LGtZVwlr6E/grcLSJyIuqrYbReFt8tkgFKBZ4jH8fUM07OQ7/m9HzVev93Y7StKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sAXcutMLjYZjK6s9xQbFr3tGdu9L2W5mOFWfkgrm6Myt5pBj6SNQu/wg985ET6r3erkzQKJbAjo7LW07/dXnuhbfQwSB4HscSXgWnQFTAwfZ9hH6X4z+vTX8u+FgxSSVJ8z2TbQzWTS/86dmTQLjhSkbOzIl9mzcl8p9h79Zrh28vRxy25XUbpyLOvpwfq3Tft0USmROUclTSyNMGZmzY5cVAucbIepVoYvwql0TphW+HwmsA+bvxydGiH/x2K060uIhEQDf3Aw9Ad0FrXrbrNPvNKcPUeC+0a7FzSjFb/NMxDf96JPFcg09of2WQ71/b9PcxE8yHAzKklues5bqPy+J1usTqWib6fJtW+yshmM6pA98ojihyMkyh4TLhowY107I+ytlzIs3JtC1Vkp2b9CgHZVQuSyXK5V6Tt0tTmxopCs3178Lt56lcCUM1Z8pyRnfa/mdfIiJ5BLuTOmRITFlhH5/f7K/nRmy/VCvyu39Ssm00EtKoTFfntbQsXAN0gTf5dSASvtn+EeuxzKP1wTJ5u5aPE80iKzWIIMizL4ojpcfr1jPEyvslEj1jKKabFgo9+mq5uj9Y7jrp4eQOotohg3kL6gjntGzDf4lPgUMQmSX4/qw2b3/8UD/Xb5ElOc5krPDv5DfPckbprC2AwtS0os77hawFTam0NABkXkDIlJJZQuLj4boNlzPOvz4AvC/g1OjkDdv2f/KJKHuApLILnTbkbfhe6hy61JExQYt0dxS44hYB7IBLf7pR0P8td7VAgU4PgG12+rnDc9y1oIaWWKBGK+ZN6bSvEeV6e41PumMYpUVuCv9K/U+6P7uiGU2mV4ZfaWzwZQXb3W4Eux8I0qFeXrsnssBEWASswUiS+zqkUSOXiJXZ3avRK0x/So7CYKjDYfbXI+hmr2B3CGhHp1XfG9KEF6MEW27P7mDDvwLcWeZJtJruj0CT7moDYE7kVmHvg/70LpqLaL9/CQeudq33dJ15vbTmBJ0/Dp9Ccjb0mCRQEl7m2oJQ3k926Up8mJnzVLW/a99gvpZDMFer85PSBo6fcrByfZnC/jvRkTMc4HaGx6dXty6DGRpHZoKyNgUbhMlQonwvlX4xyOvRoQtufmTHpVtq/DT2nHwI4B2zHOUjPB83WljedNGMCidvoA69wXXANSUwUCQlqLvcapFmSCTqiGMym2BuEweWwl1A/2cDCIvI3DOpNG83XvsCrqnCLApKAxEkJfQJa5Da9mvhlJDFq7u

The approach you describe should also be possible with Emacs' windowed mode.

Requirement: All users log in from a system running X-windows. (I.e., typically linux)

Procedure (not tested in this situation but I did something similar years back):

  • Everyone SSHs into the same account on the same host with X-forwarding enabled. (To test, just run some X-software and see if that works.)
  • Everyone checks what their $DISPLAY environment variable is (echo $DISPLAY in the shell)
  • One person runs Emacs, and for each other user, they run in Emacs "M-x make-frame-on-display <RET> display <RET>" where display is what was in the corresponding users $DISPLAY variable. (See: https://www.gnu.org/software/emacs/manual/html_node/emacs/Multiple-Displays.html)
  • Now each has a different window of the same emacs.

Pro:

  • Emacs GUI mode may be nicer
  • Every user can have different window sizes, even look at/edit different files (but there will be only one running coq, I would guess)
  • Each user has their own cursor

Cons:

  • There may be a strong lag (I only tried this once in a local network, which was fine)
  • Security: you need to trust the users, or use a safe account (because you won't see what commands other users execute)
  • I don't know what happens when one of the connections breaks down
  • At least 20 years ago when I last used this, the undo-function and the clipboard were joined between everyone - confusing
  • Everyone needs Linux (actually, maybe not, but I don't know how this would work with Windows)

Best wishes,
Dominique.


On 6/13/20 10:51 PM, Abhishek Anand wrote:
At our company, people in different cities/countries often need to collaboratively edit Coq files.
We have been using tmux+ssh+emacs-console-mode+PG+company-coq solution for a few years and it works ok.
I have described our setup in the following wiki page:
https://github.com/coq/coq/wiki/Remote-Collaborative-Editing-of-Coq-Files

Are there other ways people remotely collaboratively edit Coq files? 
It would be great to add to that page and/or describe/discuss the setup in this email thread.

Thanks,
-- Abhishek
http://www.cs.cornell.edu/~aa755/



Archive powered by MHonArc 2.6.19+.

Top of Page