forked from scymtym/rudel
/
README
274 lines (198 loc) · 8.81 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
* INTRODUCTION
Rudel is a collaborative editing environment for GNU Emacs. Its
purpose is to share buffers with other users in order to edit the
contents of those buffers collaboratively. Rudel supports multiple
backends to enable communication with other collaborative editors
using different protocols, though currently Obby (for use with the
Gobby editor) is the only fully-functional one.
Since Rudel is not an application, but an extension to Emacs, it is
not started and used like most applications (not even Emacs
applications like Gnus). Rudel mostly works in the background to
change the behavior of the set of Emacs buffers for which it has
been activated.
The user interface consists of a set of key bindings, a menu entry
and some visual status indicators, which are added to the text,
header line and/or mode line of buffers for which Rudel has been
activated.
* GETTING STARTED
Assuming Rudel has already been installed (see file:INSTALL) and
auto loading has been set up, a global Rudel mode can be enabled as
follows:
: M-x global-rudel-minor-mode
This will enable key bindings to list available backends, join, and
host Rudel sessions (see below). To enable this mode permanently,
the following fragment can be added to the Emacs initialization
file (usually file:~/.emacs):
#+BEGIN_SRC emacs-lisp
(global-rudel-minor-mode 1)
#+END_SRC
** LISTING BACKENDS
: M-x rudel-backend-dump
This command is available through the Rudel drop down menu.
However, typically this is only used for debugging, since backends
are chosen automatically when joining or hosting a session.
** JOINING A SESSION
: M-x rudel-join-session [ C-c c j ]
Depending on the installed Rudel backends, system environment and
configuration, a number of questions will be asked, followed by an
attempt to join session described by your answers.
A typical example of the questions asked when joining a session may
look like this:
#+BEGIN_EXAMPLE
Server: localhost RET
Port (default 6522): RET
Username: jan RET
Color: light sky blue RET
Use Encryption (y or n): n RET
Global Password: RET
User Password: RET
#+END_EXAMPLE
*IMPORTANT*: For sessions using the obby backend (like in the
example above), the following restriction has to be taken into
account:
+ When the server is Rudel inside an Emacs process:
Encryption cannot be used currently in this case. Consequently
the answer to the `Use Encryption (y or n):' prompt above has to
be `n RET'.
+ When the server is a Gobby process:
Gobby only supports encrypted connections. So the answer has to
be `y RET' is this case.
It is possible to configure frequently used sessions using the
customization options `rudel-configured-sessions'. When one or more
sessions are configured, `rudel-join-session' will provide choices
like "my-configured-session", ... and "ask-protocol". Selecting
"ask-protocol" invokes the behavior described above. Selecting one
of the configured sessions connects to that session without asking
for all the data.
*** SAVING AND REUSING CONFIGURED SESSIONS
Each session is described as a plist (a list of keys and values
see Info node `(elisp)Property Lists'). Keys are specified using
keywords and look like this: :host, :username, :color. Values are
mostly strings, but symbols and numbers are possible as well.
The following keys are required for any session:
* :name (string)
* :transport-backend (string or symbol)
* :protocol-backend (string or symbol)
Other keys are optional and depend on the selected
backend. Required keys for which no value is specified will be
prompted for when selecting the session. The values of the :name
properties have to be distinct for all configured sessions.
Additional keys required by most backends:
* :host (string)
* :port (number)
* :username (string)
* :color (string)
Here is a complete example of customized values for the obby
backend:
* :name "sonian"
* :transport-backend tcp
* :protocol-backend obby
* :host "sobby"
* :port 6522
* :encryption t
* :username "phil"
* :color "white"
* :global-password "" (this means "no password")
* :user-password ""
The programmatic equivalent looks like this:
#+BEGIN_SRC emacs-lisp
(add-to-list
'rudel-configured-sessions
(list :name "myserver"
:protocol-backend 'tcp
:transport-backend 'obby
:host "my.sobby-server.net"
:username user-login-name
;; Use M-x list-colors-display to see color choices.
:color "white"
:encryption t
:port 6522
;; empty string means no password
:global-password ""
:user-password ""))
#+END_SRC
** WORKING WITHIN A CONNECTED SESSION
*** SHARING BUFFERS
: M-x rudel-publish-buffer [ C-c c p ]
Make a buffer available for subscription to peers in a
collaborative editing session.
: M-x rudel-subscribe [ C-c c s ]
Subscribe to a document offered by a peer in a collaborative
editing session. Invoking this command will prompt for the name
of the document to subscribe to; TAB will show a list of
available documents.
: M-x rudel-unsubscribe [ C-c c u ]
Detaches the current buffer from the collaborative editing
session. The most recent version of the content will remain in
the buffer but not be affected by future changes from other
peers.
*** CHANGING COLORS
: M-x rudel-change-color [ C-c c c ]
Change the color associated with your edits.
*** LEAVING A SESSION
: M-x rudel-end-session [ C-c c e ]
Exit the current collaborative editing session.
** HOSTING A SESSION
: M-x rudel-host-session [ C-c c h ]
Note that the session starts out without any participating users
(This is sometimes referred to as being a dedicated server). If you
want to participate in the session you host, you have to join it as
described above.
* EXTRA MINOR MODES
** [Global] Header Subscriptions minor mode
: rudel-header-subscriptions-minor-mode
Displays subscribed users and information concerning their
respective status in the header line of a buffer.
: global-rudel-header-subscriptions-mode
Enables or disables rudel-header-subscriptions-minor-mode
automatically for all buffers.
** [Global] Mode line publish state minor mode
: rudel-mode-line-publish-state-minor-mode
Displays an indicator of the publication status of a buffer in its
mode line. This indicator is similar to the read-only
vs. read-write and the remote vs. local indicators. Publication is
indicated by a the letter P. Buffers that are not published have
an - indicator.
: global-rudel-mode-line-publish-state-mode
Enables or disables rudel-mode-line-publish-state-minor-mode
automatically for all buffers.
* REPORTING BUGS AND GETTING HELP
** EmacsWiki
The EmacsWiki page about Rudel has
[[http://www.emacswiki.org/emacs/Rudel#toc8][a section for feedback and questions]].
Feel free leave feedback or ask questions there. If a reply does
not occur promptly, try writing to the mailing list of visiting the
IRC channel.
** Issue Tracker
Bugs can be reported using the issue tracker on the sourceforge
project page: http://sourceforge.net/tracker/?group_id=249139
** Mailing List
Another possibility for getting help and reporting problems is
writing to the Rudel mailing list:
http://sourceforge.net/mail/?group_id=249139
** IRC Channel
Rudel users and developers can also be reached on the #rudel IRC
channel on the freenode network: irc:/irc.freenode.net:6667/#rudel
* KNOWN ISSUES
+ Publishing eshell buffers will cause your session to be
disconnected since eshell disables the hooks that Rudel uses to
catch changes to the buffer. As a workaround, you can use M-x
ansi-term or another terminal emulator.
* LICENSE
This file is part of Rudel.
Rudel is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Rudel is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License
along with Rudel. If not, see <http://www.gnu.org/licenses/>.
#+TITLE: Rudel README
#+AUTHOR: Jan Moringen
#+STARTUP: showeverything
# Local variables:
# mode: org
# end: