vars.el.in 139 KB
Newer Older
David Byers's avatar
David Byers committed
1
;;;;; -*-coding: raw-text;mode: emacs-lisp;-*-
Linus Tolke's avatar
Linus Tolke committed
2
;;;;; $Id$
3
;;;;; Copyright (C) 1991-2002  Lysator Academic Computer Association.
Linus Tolke's avatar
Linus Tolke committed
4
;;;;;
5
;;;;; This file is part of the LysKOM Emacs LISP client.
Linus Tolke's avatar
Linus Tolke committed
6
7
8
;;;;; 
;;;;; LysKOM is free software; you can redistribute it and/or modify it
;;;;; under the terms of the GNU General Public License as published by 
9
;;;;; the Free Software Foundation; either version 2, or (at your option) 
Linus Tolke's avatar
Linus Tolke committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;;;; any later version.
;;;;; 
;;;;; LysKOM 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 LysKOM; see the file COPYING.  If not, write to
;;;;; Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
;;;;; or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 
;;;;; MA 02139, USA.
;;;;;
;;;;; Please mail bug reports to bug-lyskom@lysator.liu.se. 
;;;;;
Per Cederqvist's avatar
.  
Per Cederqvist committed
25
26
27
28
29
30
31
32
;;;; ================================================================
;;;; ================================================================
;;;;
;;;; File: vars.el
;;;;
;;;; This file contains almost all the variables used in lyskom.
;;;;

33
34
35
;;;; Note: put "**" at the front of docstrings that are ready
;;;; for use in DocBook autogeneration.

Per Cederqvist's avatar
.  
Per Cederqvist committed
36

David Byers's avatar
X    
David Byers committed
37
38
39
(setq lyskom-clientversion-long 
      (concat lyskom-clientversion-long
	      "$Id$\n"))
40

41
42
(defvar lyskom-dummy-variable-to-fool-the-byte-compiler)

David Byers's avatar
David Byers committed
43
(defvar lyskom-mule-compiled
44
45
  (eval-when-compile (and (fboundp 'multibyte-string-p)
                          (multibyte-string-p "ÅÄÖ")))
David Byers's avatar
David Byers committed
46
47
  "Non-nil if the client was compiled with multibyte characters enabled")

David Byers's avatar
X    
David Byers committed
48
(provide 'lyskom)
49

David Byers's avatar
X    
David Byers committed
50
(require 'lyskom-defvar "defvar")
Per Cederqvist's avatar
.  
Per Cederqvist committed
51

52
53
54
(defconst lyskom-global-variable-types
  '((boolean (read . lyskom-flag-read-boolean)
             (write . lyskom-flag-write-boolean))
55
56
    (integer (read . lyskom-flag-read-integer)
             (write . lyskom-flag-write-integer))
57
58
59
60
    (symbol-list (read . lyskom-flag-read-symbol-list)
                 (write . lyskom-flag-write-symbol-list))
    (t (read . lyskom-flag-read-from-string)
       (write . prin1-to-string))))
David Byers's avatar
David Byers committed
61

David Byers's avatar
X    
David Byers committed
62
63

(defun lyskom-protect-variable (sym) 
David Byers's avatar
David Byers committed
64
  "Protect SYM from being killed when deleting local variables."
David Byers's avatar
X    
David Byers committed
65
66
67
68
69
  (put sym 'permanent-local t)
  (lyskom-local-variable sym)
  (add-to-list 'lyskom-protected-variables sym))

(defun lyskom-local-variable (sym)
David Byers's avatar
David Byers committed
70
  "Define SYM as a buffer-local variable"
David Byers's avatar
X    
David Byers committed
71
72
73
  (add-to-list 'lyskom-local-variables sym))

(defun lyskom-inherited-variable (sym)
David Byers's avatar
David Byers committed
74
75
  "Define SYM as a variable that is inherited when creating new buffers.
Inheritance only works with the LysKOM buffer handling functions."
David Byers's avatar
X    
David Byers committed
76
77
78
79
  (add-to-list 'lyskom-inherited-variable sym)
  (lyskom-protect-variable sym))

(defun lyskom-setup-local-variables ()
David Byers's avatar
David Byers committed
80
  "Set up all globally defined local variables in the current buffer."
David Byers's avatar
X    
David Byers committed
81
82
  (mapcar 'make-local-variable lyskom-local-variables)
  (mapcar 'make-local-hook lyskom-local-hooks))
Per Cederqvist's avatar
.  
Per Cederqvist committed
83

David Byers's avatar
David Byers committed
84
85
86
(defvar lyskom-is-loaded nil
  "Non-nil when lyskom has been loaded.")

87
88
89
(defvar lyskom-have-one-login nil
  "Non-nil after the first login")

David Byers's avatar
David Byers committed
90

David Byers's avatar
David Byers committed
91
92
(def-kom-var kom-dont-read-saved-variables '(kom-dont-read-saved-variables
                                             lyskom-login-hook)
David Byers's avatar
David Byers committed
93
  "**Determines which LysKOM variables to not store in the server.
94
95
96
97
98
99
100
101
102
103

For the most part you do not have to modify this variable. Any variables
set before LysKOM is loaded will not be read from the server.
This variable should `nil', `t' or a list of symbols. 

The value `nil' means read all variables from the server. The value
`t' means read no variables from the server. When the value is a list
of symbols, those variables will not be read from the server.

Any other values are reserved for future use.")
David Byers's avatar
David Byers committed
104

105
106
107
108
(defmacro lyskom-maybe-setq (var value)
  "This is a wrapper around setq that does nothing
if the variable is in kom-dont-read-saved-variables."
  `(cond ((eq kom-dont-read-saved-variables t) nil)
109
         ((memq ,var kom-dont-read-saved-variables) nil)
David Byers's avatar
David Byers committed
110
         (t (set ,var ,value))))
111
112
113
114
115

(defmacro lyskom-maybe-setq-default (var value)
  "This is a wrapper around setq-default that does nothing
if the variable is in kom-dont-read-saved-variables."
  `(cond ((eq kom-dont-read-saved-variables t) nil)
116
         ((memq ,var kom-dont-read-saved-variables) nil)
117
         (t (set-default ',var ,value))))
Per Cederqvist's avatar
.  
Per Cederqvist committed
118
119
120
121
122
123
124

;;;; ================================================================
;;;;                     Variables and constants.


;;; User flags

David Byers's avatar
David Byers committed
125
126
127
128
129
130
131
132
133
(def-kom-var kom-dont-complain-about-missing-presentation nil
  "*Controls whether the client complains when you don't have
a presentation. When set to non-nil, the client will never
complain.

This variable should not be documented. Anybody asocial enough
to want this feature ought to have to work to find it."
  server)

134
135
136
137
138
139
140
141
142
143
144
145
(def-kom-var kom-show-sync-messages nil
  "**Controls display of database saving message.

When this variable is set to `t', the client will show a message in
the echo area when the LysKOM server signals that it is saving the
database. When set to `nil', no message is shown (the mode line is
changed regardless of the setting of this variable).

Values other than `t' and `nil' are reserved for future use."
  server)


146
147
148
149
(def-kom-var kom-text-links
  '((t ("\\<bug[ \t\n]+\\([0-9]+\\)\\>"
	"http://bugzilla.lysator.liu.se/show_bug.cgi?id=\\1"
	0 t)))
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
  "**Defines patterns for automatic links in the text.

This variable defines patterns to look for in text and convert to
links to URLs. The value of this variable must be an alist, where the
key (car) is a conference number and the value (cdr) is a list of link
specifications for that conference. The special value `t' for the key
indicates a list of patterns to apply in all conferences. Key values
other than positive integers and `t' are reserved for future use.

Each link specification is in turn a list \(`PATTERN' `REPLACEMENT'
`HIGHLIGHT' `IGNORE-CASE'), where `PATTERN' is a regular expression to
look for in the text, `REPLACEMENT' is used to generate a URL from the
text matching `PATTERN', `HIGHLIGHT' is the pattern group to highlight
as a URL and `IGNORE-CASE' specifies whether matching is
case-sensitive or not.

Each text is examined for each `PATTERN'. If a match is found, a URL
is created from `REPLACEMENT'. All characters except \ are copied
verbatim. The backslash character starts one of the following
sequences:

    Sequence    Meaning
    \&          Substitute the matched text
    \N          Substitute match for text matching the Nth (...)
                group in `PATTERN'
    \\          Insert one backslash.

The `HIGHLIGHT' parameter specifies which (...) group in `PATTERN'
to highlight as an URL. Use `0' to highlight the entire match.

Finally, if `IGNORE-CASE' is `t', then ignore character case while
looking for `PATTERN'. Values other than `t' and `nil' are reserved
for future use.

When a text has more than one recipient, links will be generated for
all recipients. The order in which the recipients are examined and
the priority among links that match the same text is undefined."
187
188
  server)

189

190
(defconst kom-old-farts-text-prompt-strategy
David Byers's avatar
David Byers committed
191
192
  '((kom-comment-previous . ((t   . lyskom-get-previous-text)
			     (nil . lyskom-get-previous-text)))
David Byers's avatar
David Byers committed
193
194
195
196
    (kom-view-previous-commented-text . ((t   . lyskom-get-previous-text)
                                         (nil . lyskom-get-previous-text)))
    (kom-private-answer-previous . ((t   . lyskom-get-previous-text)
                                    (nil . lyskom-get-previous-text)))
David Byers's avatar
David Byers committed
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
    (t . ((t   . lyskom-get-last-read-text)
	  (nil . lyskom-get-last-read-text)
	  (0   . lyskom-get-text-at-point)
	  (-     lyskom-get-text-above-point (lambda (&optional args) 1))
	  (listp . lyskom-prompt-for-text-no)
	  (lyskom-plusp . lyskom-get-explicit-text)
	  (lyskom-minusp  lyskom-get-text-above-point abs))))
"Put in your `kom-pick-text-no-strategy-alist' to get the 0.46 behaviour:
 * No prefix argument refers to the most recently read text.
 * The prefix argument zero refers to the text under point.
 * A positive prefix argument is interpreted as a text-no.
 * A negative prefix argument will try to find the text-no
   of the text `arg' messages above point from the current
   kom buffer.")

212
213
214
215
(defconst lyskom-old-farts-text-prompt-strategy
  kom-old-farts-text-prompt-strategy
  "Obsolete: Alias for kom-old-farts-text-prompt-strategy.")

David Byers's avatar
David Byers committed
216
(def-kom-var kom-pick-text-no-strategy-alist
David Byers's avatar
David Byers committed
217
218
  '((kom-comment-previous . ((t   . lyskom-get-previous-text)
                             (nil . lyskom-get-previous-text)))
David Byers's avatar
David Byers committed
219
220
    (kom-view-previous-commented-text . ((t   . lyskom-get-previous-text)
                                         (nil . lyskom-get-previous-text)))
David Byers's avatar
David Byers committed
221
222
    (kom-private-answer-previous . ((t   . lyskom-get-previous-text)
                                    (nil . lyskom-get-previous-text)))
223
224
225
226
    (kom-sub-comment . ((t . lyskom-maybe-get-commented-text)
                        (nil . lyskom-maybe-get-commented-text)))
    (kom-sub-footnote . ((t . lyskom-maybe-get-footnoted-text)
                         (nil . lyskom-maybe-get-footnoted-text)))
David Byers's avatar
David Byers committed
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
    (t . ((t   . lyskom-get-text-at-point) ; default for prompts
          (nil . lyskom-get-text-at-point) ; no prefix arg
          (0   . lyskom-prompt-for-text-no)
          (-     lyskom-get-text-above-point (lambda (&optional arg) 1))
          (listp lyskom-get-text-at-point-ancestor
                 (lambda (arg) (/ (logb (car arg)) 2)))
          (lyskom-plusp . lyskom-get-text-below-point)
          (lyskom-minusp  lyskom-get-text-above-point abs))))
  "**Defines how prefix arguments are used by commands to find a text to operate on.

The keys \(cars) of the list are either one of the functions that
invoke `lyskom-read-text-no-prefix-arg' or the value `t' for the
strategy common to all such functions. For functions in the list, the
strategy is chosen from the cdr of that entry and, if and when no
matching rule was found that way, from the common strategy.

Each value \(cdr) of the list is an alist specifying how to do when
mapping a prefix argument to a text number.

The keys \(cars) of this alist are the predicates for which the values
\(cdrs) map functions that retrieve the text number to operate on.
Each predicate is tested in turn on the prefix argument, and when one
returns non-nil, the cdr gets invoked. This process is repeated until
all predicates have been tested or a cdr returned a non-nil value,
whichever comes first. If you like, the cars can also be the actual
prefix-arg values (-, 0 or nil, for example) that you want to invoke
some special rule for. The value `t' means that the behaviour given by
the cdr stipulates the default value for the prompt, when one is
shown.
David Byers's avatar
David Byers committed
256
257
258

The cdrs on the list may be either of:

David Byers's avatar
David Byers committed
259
260
261
262
263
264
265
266
* a function, in which case it gets called with four parameters: the
  prefix argument, the `PROMPT' that would be used to ask the user for a
  text number, a (possibly nil) `DEFAULT' choice for that prompt, and a
  `CONSTRAINT' value, all as provided in the call to
  `lyskom-read-text-no-prefix-arg' (see its docs). Returning a positive
  integer means return that text number. Returning a common lyskom
  format string aborts, showing your helpful error description. A
  `nil' return value means try the next rule to get a text number.
David Byers's avatar
David Byers committed
267
268
269
270
271

* a list of two functions, optionally followed by additional list items,
  in which case the second function is called to change the prefix argument
  parameter for the first function, which is then called as above. Any extra
  items on the argument list will be appended to its argument list. Hence, a
David Byers's avatar
David Byers committed
272
273
  `\(my-get-text-no abs 17 4711)' entry would result in the following call:
  `\(funcall my-get-text-no (abs prefix-arg) prompt default nil 17 4711)'."
David Byers's avatar
David Byers committed
274
275
  )

David Byers's avatar
David Byers committed
276
(def-kom-var kom-url-transformation-rules 
277
278
279
  '(
    ("^http://[^/]*aftonbladet\\.se/.*/story/.*html?$" . "\\&.")
    )
David Byers's avatar
David Byers committed
280
281
282
283
284
285
  "**An alist specifying transformations to be applied to URLs.

Elements in this list are of the form `(PATTERN . REPLACEMENT)'.
Before an URL is opened, it is transformed by matching the URL against
each `PATTERN' in turn, and when a match is found, generating a new
URL according to `REPLACEMENT'.
David Byers's avatar
David Byers committed
286

David Byers's avatar
David Byers committed
287
288
All characters in `REPLACEMENT' except \ are copied verbatim. The
backslash character starts one of the following sequences:
David Byers's avatar
David Byers committed
289

David Byers's avatar
David Byers committed
290
291
292
293
294
295
    Sequence    Meaning
    \&          Substitute the matched text
    \N          Substitute match for text matching the Nth (...)
                group in `PATTERN'
    \\          Insert one backslash.
"
David Byers's avatar
David Byers committed
296
297
298
299
  server
  )


300
(def-kom-var kom-check-configuration-on-startup t
David Byers's avatar
David Byers committed
301
302
303
304
305
306
307
308
309
310
311
312
313
  "**When non-nil, check Emacs configuration on client startup.

Valid values for this variable are `t' and `nil'. All other values are
reserved for future extensions. When non-nil, several checks will be
performed:

* Check that multibyte character support is enabled, if available.

* Check that the character coding Emacs uses matches the coding system
  used by the server.

Warnings will be shown in the LysKOM buffer on logon.
")
314

David Byers's avatar
David Byers committed
315

316
(def-kom-var kom-keyboard-menu-immediate-selection nil
David Byers's avatar
David Byers committed
317
318
319
320
321
322
323
324
325
  "**Controls how keyboard menus work.

When displaying text-based menus (typically by pressing the `=' key
when the cursor is on an active area), there are two modes of
selection. Setting this variable to `t' means pressing the letter
corresponding to an item selects that item. When this variable is
`nil', selection has to be confirmed by pressing enter.

Values other tha `t' and `nil' are reserved for future use."
326
327
328
  server)


329
(def-kom-var kom-edit-hide-add-button nil
David Byers's avatar
David Byers committed
330
331
332
333
334
  "**Controls the \"add\" button in the edit buffer.

When set to `t', hide the add button shown after the headers when
editing a text. When set to `nil' (the default), show the button.
Values other than `t' and `nil' are reserved for future use."
335
336
337
  server
)

David Byers's avatar
David Byers committed
338
(def-kom-var kom-max-overlays 120
David Byers's avatar
David Byers committed
339
340
341
342
343
344
345
346
347
348
349
350
351
352
  "**Maximum number of overlays to use to highlight texts.

When a text is displayed with its own background color (see
`kom-highlight-text-body', `kom-highlight-first-line',
`kom-highligh-dashed-linse', `kom-async-highlight-text-body' and
`kom-async-highlight-dashed-lines') one or more overlays are created.
Since a large number of overlays has a serious impact on performance,
the total number of overlays in the buffer can be limited using this
variable.

When set to a positive integer, limit the number of overlays to that
number. When set to `nil', do not limit the number of overlays. Values
other than a positive integer and `nil' are reserved for future use
and may cause unpredictible results."
David Byers's avatar
David Byers committed
353
354
355
  server
)

356
(def-kom-var kom-highlight-text-body t
David Byers's avatar
David Byers committed
357
358
359
  "**Controls highlighting of text bodies.

If `t', overlay `kom-text-body-face' on printed text bodies in LysKOM.
David Byers's avatar
David Byers committed
360
361
When this is enabled, an overlay or extent will be created that may
override certain aspects of the underlying text's formatting. Values
David Byers's avatar
David Byers committed
362
363
364
365
other than `t' or `nil' are reserved for future use.

See `kom-max-overlays' for information on how to limit the number of
overlays."
366
367
368
  server
)

369
(def-kom-var kom-highlight-first-line t
David Byers's avatar
David Byers committed
370
371
372
373
374
375
376
377
378
  "**Controls highlighting of the first line of text headers.

If `t', overlay `kom-first-line-face' on the first header line of
texts. When this is enabled, an overlay or extent will be created that
may override certain aspects of the underlying text's formatting.
Values other than `t' or `nil' are reserved for future use.

See `kom-max-overlays' for information on how to limit the number of
overlays."
379
380
381
382
  server
)

(def-kom-var kom-highlight-dashed-lines t
David Byers's avatar
David Byers committed
383
384
385
386
387
388
389
390
391
  "**Controls highlighting of dashed lines around texts.

If `t', overlay `kom-dashed-lines-face' on the lines surrounding
texts. When this is enabled, an overlay or extent will be created that
may override certain aspects of the underlying text's formatting.
Values other than `t' or `nil' are reserved for future use.

See `kom-max-overlays' for information on how to limit the number of
overlays."
392
393
394
  server
)

395
(def-kom-var kom-async-highlight-text-body t
David Byers's avatar
David Byers committed
396
397
398
399
400
401
402
403
404
  "**Controls highlighting of asynchronous messages.

If `t', overlay `kom-async-text-body-face' on asynchronous messages in
LysKOM. When this is enabled, an overlay or extent will be created
that may override certain aspects of the underlying text's formatting.
Values other than `t' or `nil' are reserved for future use.

See `kom-max-overlays' for information on how to limit the number of
overlays."
405
406
407
408
  server
)

(def-kom-var kom-async-highlight-dashed-lines t
David Byers's avatar
David Byers committed
409
410
411
412
413
414
415
416
417
  "**Controls highlighting of dashed lines around asynchronous messages.

If `t', overlay `kom-dashed-lines-face' on the lines surrounding
messages. When this is enabled, an overlay or extent will be created
that may override certain aspects of the underlying text's formatting.
Values other than `t' or `nil' are reserved for future use.

See `kom-max-overlays' for information on how to limit the number of
overlays."
418
419
420
  server
)

David Byers's avatar
David Byers committed
421
(def-kom-var kom-extended-status-information nil
David Byers's avatar
David Byers committed
422
423
424
425
426
427
428
429
430
431
432
  "**Controls display of extra information when displaying LysKOM objects.

If `t', extended status information is listed for all objects in
LysKOM. The information controlled by this variable is the kind of
data that most users are not interested in, and, if displayed, would
make more important information hard to find.

Currently this includes read FAQs (on conferences).

Values other than `t' or `nil' are reserved for future extensions."
server )
433

David Byers's avatar
David Byers committed
434
(def-kom-var kom-auto-list-faqs t
David Byers's avatar
David Byers committed
435
436
437
438
439
440
441
442
  "**Controls automatic display of FAQs.

When this variable is set to `t', list unread FAQs when entering a
conference or logging on to the server. When entering a conference,
list FAQs for that conference that have not been read. When logging
on, list FAQs for the server that have not been read.

Values other than `t' or `nil' are reserved for future extension."
David Byers's avatar
David Byers committed
443
444
445
  server
)

446
(def-kom-var kom-auto-review-faqs t
David Byers's avatar
David Byers committed
447
448
449
450
451
452
453
454
455
  "**Controls automatic review of FAQs.

When set to `t', automatically review unread FAQs when entering a
conference or logging on to the server. When entering a conference,
FAQs that are unread for that conference will be reviewed. When
logging on, FAQs that are unread for the server will be reviewed.

Values other than `t' or `nil' are reserved for future use."

456
457
458
  server
)

David Byers's avatar
X    
David Byers committed
459
(def-kom-var kom-allow-incompleteness nil
David Byers's avatar
David Byers committed
460
461
462
463
464
465
466
467
468
469
  "**Allow or disallow operation on incomplete membership information.

If `nil', commands like `kom-list-news' will wait for all membership
information to be read. If this flag is set to `t', commands will not
wait for all membership information. Not waiting for complete
information allows certain commands to execute faster, particularly
during the login phase, but may result in incorrect or incomplete
answers.

Values other than `t' or `nil' are reserved for future use."
David Byers's avatar
X    
David Byers committed
470
471
  server
)
472

David Byers's avatar
X    
David Byers committed
473
(def-kom-var kom-bury-buffers t
David Byers's avatar
David Byers committed
474
475
476
477
478
479
480
  "**Controls the behaviour of `kom-next-kom' and its cousins.

If this variable is `t' the current buffer is sent to the back of the
buffer list when one of the commands `kom-next-kom',
`kom-previous-kom' or `kom-next-unread-kom' is invoked.

Values other than `t' or `nil' are reserved for future use."
David Byers's avatar
X    
David Byers committed
481
  server)
482

David Byers's avatar
X    
David Byers committed
483
(def-kom-var kom-write-texts-in-window nil
David Byers's avatar
David Byers committed
484
  "**Determines where to edit texts.
David Byers's avatar
David Byers committed
485

David Byers's avatar
David Byers committed
486
487
488
489
490
491
492
493
494
495
The value must be one of `nil', `other', `new-frame', `other-frame', a
string or a buffer.

When set to `nil', edit texts in the same window as the LysKOM buffer.
When set to `other', edit in another window, creating it if necessary.
When set to `other-frame', edit in another frame, if there is one
\(otherwise edit in the same window as the LysKOM buffer). When set to
`new-frame', create a new frame for editing. This frame will be
removed when editing is finished. A string means edit in the buffer
with that name. A buffer means edit in that buffer."
David Byers's avatar
X    
David Byers committed
496
  server)
497

David Byers's avatar
X    
David Byers committed
498
(def-kom-var kom-view-commented-in-window 'other
David Byers's avatar
David Byers committed
499
500
501
  "**Where to view commented texts. 

See the documentation for `kom-write-texts-in-window' for details."
David Byers's avatar
X    
David Byers committed
502
  server)
David Byers's avatar
David Byers committed
503

David Byers's avatar
X    
David Byers committed
504
(def-kom-var kom-edit-filters-in-window nil
David Byers's avatar
David Byers committed
505
506
507
  "**Where to edit filters with `kom-filter-edit'.

See the documentation for `kom-write-texts-in-window' for details."
David Byers's avatar
X    
David Byers committed
508
  server)
David Byers's avatar
David Byers committed
509

David Byers's avatar
X    
David Byers committed
510
(def-kom-var kom-list-membership-in-window 'other
David Byers's avatar
David Byers committed
511
512
513
  "**Where to list membership with `kom-list-membership'.

See the documentation for `kom-write-texts-in-window' for details."
David Byers's avatar
X    
David Byers committed
514
  server)
515

516
(def-kom-var kom-personal-messages-in-window 'other
David Byers's avatar
David Byers committed
517
518
519
  "**Where to display personal messages. 

See the documentation for `kom-write-texts-in-window' for details."
520
521
  server)

David Byers's avatar
X    
David Byers committed
522
(def-kom-var kom-customize-format 'long
David Byers's avatar
David Byers committed
523
524
525
526
527
528
529
530
  "**Determines the format of the customize buffer.

This variable currently only controls initial display of documentation
in the customize buffer (the buffer shown by `kom-customize'. When set
to the symbol `long', display documentation. When set to the symbol
`short', don't display documentation.

Values other than `long' or `short' are reserved for future use."
David Byers's avatar
X    
David Byers committed
531
  server)
532

David Byers's avatar
X    
David Byers committed
533
(def-kom-var kom-user-prompt-format "%[%c% %m%] - "
David Byers's avatar
David Byers committed
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
  "**Format of LysKOM prompt when waiting for input.

The value of this variable must be a string, which is displayed as the
LysKOM prompt, while waiting for a command. The string may contain the
following special sequences:

    Sequence    Meaning
    %c          Inserts the current default command.
    %[          Inserts `[' if the ansaphone is on.
    %]          Inserts `]' is the ansaphone is on.
    %m          Inserts information about recorded messages.
    %s          Inserts the name of the LysKOM system
    %S          Inserts the server name.
    %p          Inserts the name of the user currently logged on.
    %w          Inserts the name of the current conference.
    %a          Inserts `anonymous' in the current language.
    %A          Inserts `Anonymous' in the current language.
    %#          Inserts the current session number.
    %           Inserts a space if it seems necessary (percent SPC).
    %%          Inserts a percent sign.

Here are a few examples:

    \"%[%c% %m%] - \"             The default prompt
    \"%[%s: %c% %m%] - \"         Could display \"LysKOM: Time - \"

Note that multiline prompts are not supported."
David Byers's avatar
X    
David Byers committed
561
  server)
David Byers's avatar
David Byers committed
562

Per Cederqvist's avatar
.  
Per Cederqvist committed
563

David Byers's avatar
X    
David Byers committed
564
(def-kom-var kom-user-prompt-format-executing "%[%c% %m%]."
David Byers's avatar
David Byers committed
565
566
567
568
  "**Format of LysKOM prompt when executing a default command.

The value of this variable must be a string. See
`kom-user-prompt-format' for details."
David Byers's avatar
X    
David Byers committed
569
  server)
David Byers's avatar
David Byers committed
570
571


David Byers's avatar
X    
David Byers committed
572
(def-kom-var kom-enabled-prompt-format "%[%c% %m%] # "
David Byers's avatar
David Byers committed
573
574
575
576
  "**Format of LysKOM prompt when privileges are enabled..

The value of this variable must be a string. See
`kom-user-prompt-format' for details."
David Byers's avatar
X    
David Byers committed
577
  server)
David Byers's avatar
David Byers committed
578

579

David Byers's avatar
X    
David Byers committed
580
(def-kom-var kom-enabled-prompt-format-executing "%[%c% %m%]."
David Byers's avatar
David Byers committed
581
  "**Format of LysKOM prompt when executing a default command when
David Byers's avatar
David Byers committed
582
583
584
585
privileges are enabled. 

The value of this variable must be a string. See
`kom-user-prompt-format' for details."
David Byers's avatar
X    
David Byers committed
586
  server)
David Byers's avatar
David Byers committed
587

David Byers's avatar
David Byers committed
588
(def-kom-var kom-anonymous-prompt-format "%[%c% %m%] (%a) - "
David Byers's avatar
David Byers committed
589
590
591
592
593
594
  "**Format of the LysKOM prompt when running anonymously.

The value of this variable must be a string. See
`kom-user-prompt-format' for details. See `kom-become-anonymous' for
information on anonymous mode.
"
David Byers's avatar
David Byers committed
595
596
597
  server)

(def-kom-var kom-anonymous-prompt-format-executing "%[%c% %m%] (%a)."
David Byers's avatar
David Byers committed
598
599
600
601
602
  "**Format of the LysKOM prompt when executing a command anonymously.

The value of this variable must be a string. See
`kom-user-prompt-format' for details. See `kom-become-anonymous' for
information on anonymous mode."
David Byers's avatar
David Byers committed
603
604
  server)

605
(def-kom-var kom-show-week-number t
David Byers's avatar
David Byers committed
606
607
608
609
610
611
612
  "**Controls display of week numbers in `kom-display-time'.

If set to `t' show the ISO week number when displaying the time. If
set to `nil', don't display the time. All other values are reserved
for future use.

For this feature to work, the calendar package must be installed."
613
614
  server)

David Byers's avatar
David Byers committed
615

David Byers's avatar
X    
David Byers committed
616
(def-kom-var kom-cite-string ">"
David Byers's avatar
David Byers committed
617
618
619
620
621
  "**String to insert before each line of a commented text.

When citing a text in edit-mode, this string will be inserted before
each line. Although citing is not common and usually not useful in
LysKOM, there is occasionally reason to cite a commented text."
David Byers's avatar
X    
David Byers committed
622
  server)
623

624
(def-kom-var kom-created-texts-are-saved nil
David Byers's avatar
David Byers committed
625
626
627
628
629
630
  "**If non-`nil', save all created texts to a file. 

The value of this variable is the file name on which to save new
texts. Each time a text is created, it is appended to this file.
Values other than a string may produce unpredictible results, and are
reserved for future extensions."
631
632
633
  server
  inherited)

634
(def-kom-var kom-created-texts-are-read nil
David Byers's avatar
David Byers committed
635
636
637
638
639
640
641
  "**Non-`nil' means automatically mark texts that you create as read.

When set to `t', all text you write are automatically marked as read,
except when running in anonymous mode. When set to `nil', your texts
will be shown as all others.

Values other than `t' and `nil' are reserved for future extensions."
642
  common created-texts-are-read boolean)
David Byers's avatar
David Byers committed
643

644
(def-kom-var kom-mark-read-texts-as-read-in-new-recipient t
David Byers's avatar
David Byers committed
645
646
647
648
649
650
651
652
653
  "**Controls whether to mark read texts as read in new recipients the acquire.

When this is set to `t', silently mark texts as read when they are
added to a new recipient, if they have been read in any conference.
When `nil', do not mark as read. This feature only works when you are
logged on. Texts added to new conferences while you are not logged on
will not be marked as read in the new recipient.

Values other than `t' or `nil' are reserved for future extensions."
654
655
  server)

David Byers's avatar
X    
David Byers committed
656
(def-kom-var kom-customize-in-window nil
David Byers's avatar
David Byers committed
657
658
659
  "**Where to customize LysKOM with `kom-customize'.

See the documentation for `kom-write-texts-in-window' for details."
David Byers's avatar
X    
David Byers committed
660
  server)
Per Cederqvist's avatar
.  
Per Cederqvist committed
661

David Byers's avatar
X    
David Byers committed
662
(def-kom-var kom-prioritize-in-window nil
David Byers's avatar
David Byers committed
663
664
665
  "**Where to prioritize conferences with `kom-prioritize'.

See the documentation for `kom-write-texts-in-window' for details."
David Byers's avatar
X    
David Byers committed
666
  server)
David Byers's avatar
David Byers committed
667

668
(def-kom-var kom-default-mark nil
David Byers's avatar
David Byers committed
669
670
671
672
673
674
675
  "**The default mark used by `kom-mark-text'.

When set to an integer, `kom-mark-text' will not ask for a mark, but
simply mark with that number. When set to `nil', `kom-mark-text' will
ask for a mark.

Values other than integers and `nil' are reserved for future use."
676
677
  common default-mark integer
  server)
Per Cederqvist's avatar
.  
Per Cederqvist committed
678

679
(def-kom-var kom-symbolic-marks-alist '(("Standard" . 100))
David Byers's avatar
David Byers committed
680
681
682
683
684
685
686
  "**Association list that maps symbolic marks to mark numbers.

Internally, texts can only be marked with numbers. The elisp client
implements symbolic marks through this mapping from mark names to
numbers. Each element of this list is a pair \(`NAME' . `MARK'), where
`NAME' is the name of the mark, and `MARK' is the corresponding
numeric mark."
687
688
  server)

David Byers's avatar
X    
David Byers committed
689
(def-kom-var kom-reading-puts-comments-in-pointers-last t
David Byers's avatar
David Byers committed
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
  "**Controls the location where comment pointers are shown.

When set to `t', comment references are shwon at the end of texts.
When set to `nil', comment references are shwon in the headers.

`kom-reading-puts-comments-in-pointers-last' set to `nil'

    398331 1996-09-24  13:22  /2 lines/ George Berkeley
    Recipient: Philosophy <1226>
    Comment in text 398374 by John Locke
    Subject: 
    ------------------------------------------------------------
    An abstract idea is a contradiction in terms.
    (398331) -----------------------------------

`kom-reading-puts-comments-in-pointers-last' set to `t'

    398331 1996-09-24  13:22  /2 lines/ George Berkeley
    Recipient: Philosophy <1226>
    Subject: 
    ------------------------------------------------------------
    An abstract idea is a contradiction in terms.
    (398331) -----------------------------------
    Comment in text 398374 by John Locke
"
715
  common reading-puts-comments-in-pointers-last boolean
David Byers's avatar
David Byers committed
716
  inherited)
David Byers's avatar
David Byers committed
717

718
(def-kom-var kom-review-uses-cache t
David Byers's avatar
David Byers committed
719
720
721
722
723
724
725
726
  "**Controls whether review commands use the cache or not.

When set to `t', review commands (such as `kom-review-by-to') will get
texts from the client cache, if possible. This improves performance,
but texts may have changed since they were cached. When set to `nil',
review commands will always get texts from the server.

Values other than `t' and `nil' are reserved for future use."
727
728
729
  server
  inherited)

730
(def-kom-var kom-review-marks-texts-as-read nil
David Byers's avatar
David Byers committed
731
732
733
734
735
736
737
738
739
740
741
742
  "**Controls whether viewing texts with review commands marks then as read.

When set to `t', viewing texts with review commands (e.g.
`kom-review-by-to') will mark unread texts as read. When set to `nil',
texts are not marked as read. 

It is possible to change this setting for a single review command with
the key sequence for `kom-toggle-mark-as-read-prefix'. The value can
be changed for the entire session by using
`kom-make-review-mark-as-read' or `kom-make-review-not-mark-as-read'.

Values other than `t' and `nil' are reserved for future use."
743
744
745
  server
  inherited)

David Byers's avatar
David Byers committed
746
(def-kom-var kom-postpone-default 17
David Byers's avatar
David Byers committed
747
748
749
750
  "**The default number of texts to postpone with `kom-postpone'.

The value of this variable must be a positive integer or zero. All
other values are reserved for future use."
David Byers's avatar
David Byers committed
751
752
753
  server)


David Byers's avatar
X    
David Byers committed
754
(def-kom-var kom-dashed-lines t
David Byers's avatar
David Byers committed
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
  "**Controls display of dashed lines before and after texts.

when set to `t' display dashed lines. When set to `nil', don't display
dashed lines.

`kom-dashed-lines' set to `t'

    892343 1996-09-24  19:21  /2 lines/ Tycho Brahe
    Recipien: Presentation (of new) Members
    Subject: Tycho Brahe
    ------------------------------------------------------------
    Astronomer and discoverer of stars resident on the island of Ven.
    (892343) -----------------------------------

`kom-dashed-lines' set to `nil'

    892343 1996-09-24  19:21  /2 lines/ Tycho Brahe
    Recipien: Presentation (of new) Members
    Subject: Tycho Brahe

    Astronomer and discoverer of stars resident on the island of Ven.
    (892343)

Values other than `t' and `nil' are reserved for future use. 

See `kom-highlight-dashed-lines' and
`kom-async-highlight-dashed-lines' for additional settings that affect
these lines."
783
  common dashed-lines boolean
David Byers's avatar
David Byers committed
784
  inherited)
Per Cederqvist's avatar
.  
Per Cederqvist committed
785

786
(def-kom-var kom-long-lines nil
David Byers's avatar
David Byers committed
787
788
789
790
791
792
793
  "**If non-`nil', some lines and borders will be made longer.

When set to `t', most dashed lines will be longer than the default.
When set to `nil',  use the standard length.

See `kom-text-footer-dash-length', `kom-text-header-dash-length' and
`kom-footer-format' for other related settings."
794
795
796
797
  server
  inherited)

(def-kom-var kom-text-footer-dash-length 52
David Byers's avatar
David Byers committed
798
799
800
801
802
803
804
  "**Control the length of the text footer.

When dashed lines (see `kom-dashed-lines') are in effect, and this is
set to a positive integer, make the text footer at least that many
characters long. Values other than a positive integer are reserved for
future use.

805
806
807
Note that the footer may end up longer than this if one or more elements
together are longer than this length.

David Byers's avatar
David Byers committed
808
This length is currently ignored when `kom-text-footer-format' is used."
809
810
811
812
  server
  inherited)

(def-kom-var kom-text-header-dash-length 60
David Byers's avatar
David Byers committed
813
814
815
816
817
818
819
  "**Control the length of the text footer.

When dashed lines (see `kom-dashed-lines') are in effect, and this is
set to a positive integer, make the dashed line before the text that
many characters long. 

Values other than a positive integer are reserved for future use."
820
821
822
823
824
  server
  inherited)



825
(def-kom-var kom-text-footer-format nil
David Byers's avatar
David Byers committed
826
  "**Defines the format of the text footer.
827

David Byers's avatar
David Byers committed
828
829
830
When set to a string, use that string as the text footer, overriding
all other settings that affect the text footer. The string may contain
the following special sequences:
831

David Byers's avatar
David Byers committed
832
833
834
835
836
837
    Directive   Meaning
    %n          Insert the text number
    %p          Insert the number of the author
    %P          Insert the name of the author
    %-          Insert a bunch of dashes
    %f          Insert special formatting information
838

David Byers's avatar
David Byers committed
839
840
841
842
843
Format directives can be prefixed with a number specifying the minimum
field width (e.g. `%20-'. The field width can be prefixed with an
equals sign (e.g. `%=20p' which means that the field is exactly as
wide as specified (contents may be truncated). A negative field width
means left justify the contents.
844
845

The field width of %- is special. It specifies the maximum number of
David Byers's avatar
David Byers committed
846
847
dashes printed. The actual number will be the maximum minus the length
of the author's name, if it is included anywhere in the format string.
848

David Byers's avatar
David Byers committed
849
850
When set, this variable overrides `kom-dashed-lines' and
`kom-show-author-at-end'.
851
852
853
854

The default format is equivalent to the following strings, depending on 
the settings of kom-dashed-lines and kom-show-author-at-end.

David Byers's avatar
David Byers committed
855
856
857
858
859
`kom-dashed-lines'  `kom-show-author-at-end'    Format
       t                    t                   \"(%n) /%P/%42-%f\"
       t                   nil                  \"(%n) %42-%f\"
      nil                   t                   \"(%n) /%P/ %f\"
      nil                  nil                  \"(%n) %f\"
860
861
862
863
864
865
"
  server
  inherited)



866
(def-kom-var kom-show-creating-software nil
David Byers's avatar
David Byers committed
867
868
869
870
871
872
873
874
875
876
877
  "**Controls display of the software used to create each text.

When creating a text, it is possible to attach information about which
client was used to create the text. When this variable is set to `t',
this information, when available,  is displayed in all text headers.
When this variable is set to `nil', the information is not shown.

To display creating software for a text when this is off, review the
text using `kom-review-noconversion'.

Values other than `t' and `nil' are reserved for future use."
878
879
880
  server
  inherited)

David Byers's avatar
David Byers committed
881
(def-kom-var kom-show-author-at-end t
David Byers's avatar
David Byers committed
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
  "**Controls display of author information in the text footer.

When this is set to `t', display the author of each text immediately
after the text. When set to `nil', the author is not displayed.

`kom-show-author-at-end' set to `t' (with dashed lines on):

  892342 1996-09-24  19:21  /2 lines/ Claude Shannon
  Mottagare: Presentation (of new) Members
  Ärende: Claude Shannon
  ------------------------------------------------------------
  Information theoretician
  (892342) /Claude Shannon/------------------------------

`kom-show-author-at-end' set to `nil':

  892342 1996-09-24  19:21  /2 lines/ Claude Shannon
  Recipient: Presentation (of new) Members
  Subject: Claude Shannon
  ------------------------------------------------------------
  Information theoretician
  (892342) -----------------------------------

If `kom-text-footer-format' is set, the value of this variable is
ignored. Values other than `t' and `nil' are reserved for future use."
David Byers's avatar
David Byers committed
907
908
  server
  inherited)
David Byers's avatar
David Byers committed
909

910
(def-kom-var kom-truncate-threshold nil
David Byers's avatar
David Byers committed
911
912
913
914
915
916
917
918
919
920
921
  "**Controls truncation of text when reviewing.

When set to a positive integer, truncate long texts when reviewing. If
the text has more lines than the value of this variable, it will be
truncated to `kom-truncate-show-lines' lines. When a message is
truncated, a note to that effect will be shown in the message footer
unless `kom-text-footer-format' has been set to a string that does not
include the `%f' directive.

When set to `nil', no truncation will occur. Values other than
positive integers and `nil' are reserved for future use."
922
923
  server)

924
(def-kom-var kom-truncate-show-lines 10
David Byers's avatar
David Byers committed
925
926
927
928
929
930
931
  "**Number of lines to display when truncating texts.

The value must be a positive integer. When a text is truncated \(see
`kom-truncate-threshold', the minimum of `kom-truncate-threshold' and
`kom-truncate-show-lines' determines the number of lines to show.

Values other than positive integers are reserved for future use."
932
933
934
  server)


David Byers's avatar
X    
David Byers committed
935
(def-kom-var kom-print-number-of-unread-on-entrance t
David Byers's avatar
David Byers committed
936
937
938
939
940
941
942
943
944
  "**Controls display of number of unread when entering a conference.

When set to `t', the number of unread texts in a conference is
displayed when entering that conference. When set to `nil', the number
of unread texts is not shown. Shortly after logging on, using
`kom-set-unread' or using `kom-recover', the number shown may be
incorrect.

Values other than `t' and `nil' are reserved for future use."
945
  common print-number-of-unread-on-entrance boolean)
Per Cederqvist's avatar
.  
Per Cederqvist committed
946

947
(def-kom-var kom-show-unread-in-frame-title t
David Byers's avatar
David Byers committed
948
949
950
951
952
953
954
  "**Controls display of the unread indicator in the frame title.

When set to `t', an indicator will be shown in the title of each frame
containing a selected LysKOM session with unread texts. When set to
`nil' no indicator will be shown.

Values other than `t' and `nil' are reserved for future extensions."
955
956
  server)

David Byers's avatar
David Byers committed
957
958
959
960
961
962
963
964
965
966
967
;; In the common block of the user-area is a simple boolean variable
;; `presence-messages'.  The control of presence messages in the Emacs
;; Lisp client is more advanced, using two non-boolean variables instead
;; (`kom-presence-messages-in-echo' and `kom-presence-messages-in-buffer').
;;
;; Keep track of the common block variable too, although it isn't used here.
;; `lyskom-save-options' sets it before saving it in obvious cases,
;; but generally it's not possible to know what value it should have.
;; (It could also be used for default values for the presence options for
;; users converting from another client, but that isn't done.)

David Byers's avatar
X    
David Byers committed
968
(def-kom-var kom-presence-messages t
David Byers's avatar
David Byers committed
969
970
971
972
973
974
  "Equivalent of the variable `presence-messages' in the user-area.
This is a boolean where other clients may store whether the user wants
messages about people logging in and out of LysKOM.  Here this is instead
controlled by `kom-presence-messages-in-echo-area' and
`kom-presence-messages-in-buffer', so only use this variable to
influence what this client stores in the common block of the user-area."
975
  common presence-messages boolean)
David Byers's avatar
David Byers committed
976
977

(def-kom-var kom-presence-messages-in-echo-area t
David Byers's avatar
David Byers committed
978
979
980
981
982
  "**Controls display of presence messages in the echo area.

If non-`nil', LysKOM prints continuous info about what other people
are doing. Info is printed on the echo area and never in the buffer.
If minibuffer is used, no message is printed.
Linus Tolke's avatar
Linus Tolke committed
983

David Byers's avatar
David Byers committed
984
985
A list of integers means show messages for those users.

David Byers's avatar
David Byers committed
986
987
988
The value `friends' means show messages for the users in `kom-friends'.

The value `morons' means show messages for the users in `kom-morons'.
David Byers's avatar
David Byers committed
989

David Byers's avatar
David Byers committed
990
991
The value `friends-and-morons' means show messages for the users in 
`kom-friends' and `kom-morons'.
992

David Byers's avatar
David Byers committed
993
994
If you want the messages in the buffer, set the variable 
`kom-presence-messages-in-buffer'.
995

David Byers's avatar
David Byers committed
996
Values other than those listed are reserved for future use."
David Byers's avatar
X    
David Byers committed
997
  server)
David Byers's avatar
David Byers committed
998

David Byers's avatar
David Byers committed
999
1000


David Byers's avatar
X    
David Byers committed
1001
(def-kom-var kom-presence-messages-in-buffer nil
David Byers's avatar
David Byers committed
1002
  "**Controls display of presence messages in the LysKOM buffer.
David Byers's avatar
David Byers committed
1003

David Byers's avatar
David Byers committed
1004
1005
1006
1007
1008
1009
1010
1011
If non-`nil', LysKOM prints information about what other people are
doing in the LysKOM buffer. All printing is done just before the
prompt.

If `nil' no messages are printed. If `presence', messages about people
logging in, out and people changing name are printed.

All other values are reserved for future use."
David Byers's avatar
X    
David Byers committed
1012
  server)
Per Cederqvist's avatar
.  
Per Cederqvist committed
1013

David Byers's avatar
X    
David Byers committed
1014
(def-kom-var kom-show-where-and-what t
David Byers's avatar
David Byers committed
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
  "**Controls display of hostname and activity information in `kom-who-is-on'. 

When this is set to `t', `kom-who-is-on' and related commands will
display the machine the session is connected from and what the user is
doing. When set to `nil', this information will not be shwon.

Listing frmo `kom-who-is-on' with `kom-show-where-and-what' set to `t':

      User                                   Is in conference             
      At                                     Activity                        
  --------------------------------------------------------------------------
   6810 George Berkeley                      Philosophy                     
        berkeley@emp1.tcd.ie                 (Writing a comment.)           
   7571 John Locke                           Philosophy                     
        eridy@cc.ox.ac.uk                    (Waiting.)                     
  --------------------------------------------------------------------------

Listing frmo `kom-who-is-on' with `kom-show-where-and-what' set to `nil':

      User                                   Is in conference             
  --------------------------------------------------------------------------
   6810 George Berkeley                      Philosophy                     
   7571 John Locke                           Philosophy
  --------------------------------------------------------------------------

Values other than `t' and `nil' are reserved for future use."
David Byers's avatar
X    
David Byers committed
1041
  server)
David Byers's avatar
David Byers committed
1042

1043
(def-kom-var kom-show-since-and-when nil
David Byers's avatar
David Byers committed
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
  "**Controls display of connection time in `kom-who-is-on'.

When set to `t', `kom-who-is-on' and related commands will display the
time when each session connected to the server and when each session
last indicated activity.

Listing frmo `kom-who-is-on' with `kom-show-since-and-when' set to `t':

        User                                 Is in conference             
        Connected                            Active last                  
  --------------------------------------------------------------------------
   6810 George Berkeley                      Philosophy                     
        Thursday 2003-01-09 09:24:56         Active                         
   7571 John Locke                           Philosophy                     
        Saturday 2003-01-11 14:02:47         12 minutes                     
  --------------------------------------------------------------------------


Listing frmo `kom-who-is-on' with `kom-show-since-and-when' set to `nil':

        User                                 Is in conference             
  --------------------------------------------------------------------------
   6810 George Berkeley                      Philosophy                     
   7571 John Locke                           Philosophy
  --------------------------------------------------------------------------

Values other than `t' and `nil' are reserved for future use."
1071
  server)
Per Cederqvist's avatar
.  
Per Cederqvist committed
1072

David Byers's avatar
X    
David Byers committed
1073
(def-kom-var kom-idle-hide 30
David Byers's avatar
David Byers committed
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
  "**Controls display of idle sessions in `kom-who-is-on'.

When set to a positive integer, the number of minutes of idletime
before a user is excluded from the list of users shown by
`kom-who-is-on' and related commands. This can be overridden by a
prefix argument to these commands. When set to `nil', do not hide idle
sessions.

Variables other than positive integers and `nil' are reserved for
future use."
David Byers's avatar
X    
David Byers committed
1084
  server)
1085

David Byers's avatar
X    
David Byers committed
1086
(def-kom-var kom-show-footnotes-immediately t
David Byers's avatar
David Byers committed
1087
1088
1089
1090
1091
1092
1093
  "**Controls display of footnotes.

When set to `t', footnotes will be displayed immediately following the
text. When set to `nil', footnotes will be displayed like regular
comments.

Values other than t and `nil' are reserved for future use."
David Byers's avatar
X    
David Byers committed
1094
  server)
1095

David Byers's avatar
X    
David Byers committed
1096
(def-kom-var kom-follow-comments-outside-membership nil
David Byers's avatar
David Byers committed
1097
1098
1099
1100
1101
1102
1103
  "**Controls display of comments in conferences you are not a member of.

If this variable is set to `nil', texts with no recipient you are a
member of will be ignored when selecting comments to display when
reading. When set to `t', the client will follow comment links
regardless of whether you are a member of any of the recipients of the
comment.
1104

David Byers's avatar
David Byers committed
1105
Values other than `t' and `nil' are reserved for future use."
David Byers's avatar
X    
David Byers committed
1106
  server)
1107

David Byers's avatar
David Byers committed
1108
(def-kom-var kom-follow-attachments t
David Byers's avatar
David Byers committed
1109
1110
1111
1112
1113
  "**Controls how attachments to imported e-mail messages are handled.

When this is set to `t', attachments are followed like regular
comments. When set to `nil', attachments are not followed. To see them
you have to review them manually.
David Byers's avatar
David Byers committed
1114

David Byers's avatar
David Byers committed
1115
1116
Values other than `t' and `nil' are reserved for future use."
  server)
Per Cederqvist's avatar
.  
Per Cederqvist committed
1117

David Byers's avatar
X    
David Byers committed
1118
(def-kom-var kom-read-depth-first t
David Byers's avatar
David Byers committed
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
  "**Determines the order in which to read texts.

When set to `t' \(the default), texts are read in comment order. When
set to `nil', texts are read in chronological order.

When reading in comment order, the next text to read is the first
comment of the most recently read text. If there are no comments, the
next text is a comment to another text. Reading in comment order lets
you view threads of discussion.

Values other than `t' or `nil' are reserved for future use."
1130
  common read-depth-first boolean)
David Byers's avatar
David Byers committed
1131

David Byers's avatar
X    
David Byers committed
1132
(def-kom-var kom-continuous-scrolling t
David Byers's avatar
David Byers committed
1133
  "**Controls frequency of scrolling.
1134

David Byers's avatar
David Byers committed
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
When set to `t', the LysKOM buffer is scrolled whenever text is
inserted. The last viewed position \(usually the most recent prompt)
will always be visible.

When set to `nil', scrolling takes place less frequently. This is
a suitable setting when running Emacs over a slow link, such as an old
modem.

Values other than `t' and `nil' are reserved for future use."
  server)
1145

David Byers's avatar
X    
David Byers committed
1146
(def-kom-var kom-deferred-printing t
David Byers's avatar
David Byers committed
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
  "**Controls background display of non-cached information.

When set to `t', delay display of \(some) information that has to be
retreived from the server. A placeholder is shown where the
information will be printed, until it is available. This setting
results in a significant improvement in interactive performance.

When set to `nil', do not delay display of any information. This
lowers interactive performance, but may be suitable when running Emacs
over a slow connection.

Values other than `t' and `nil' are reserved for future use."
1159
  server)
1160

David Byers's avatar
David Byers committed
1161
1162
1163
1164
(def-kom-var lyskom-overlay-pool nil  
  "Pool of overlays"
  local)

David Byers's avatar
X    
David Byers committed
1165
1166
(def-kom-var lyskom-defer-indicator "[...]"
  "String to display while LysKOM is waiting for the real string.")
1167

1168
(def-kom-var kom-review-priority nil
David Byers's avatar
David Byers committed
1169
  "**Priority to use when reviewing texts.
1170

David Byers's avatar
David Byers committed
1171
1172
1173
1174
When set to a positive integer, use that as the priority to use when
reviewing texts. By setting `kom-review-priority' higher than 255 (the
maximum conference priority), new texts to conferences will not break
in while reviewing.
1175

David Byers's avatar
David Byers committed
1176
1177
1178
1179
If set to `nil', use the current priority while reviewing. This allows
texts to conferences with priorities higher than that of the current
conference to break in while reviewing (depending on the setting of
`kom-higher-priority-breaks').
1180

David Byers's avatar
David Byers committed
1181
1182
1183
Values other than positive integers and `nil' are reserved for future
use."
  server)
1184

David Byers's avatar
David Byers committed
1185
1186
(def-kom-var kom-higher-priority-breaks nil
  "**Controls how conference priorities are handled.
1187

David Byers's avatar
David Byers committed
1188
1189
1190
1191
1192
When set to `express', texts to conferences with a higher priority
than the current conferences will be shown as soon as the arrive. When
set to `t', texts to prioritized conferences will be shown after the
current comment tree. When set to `nil', prioritized conferences will
be visited when all texts in the current conference have been read.
1193

David Byers's avatar
David Byers committed
1194
1195
1196
Values other than `express', `t' and `nil' are reserved for future
use."
  server)
1197

David Byers's avatar
David Byers committed
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
(def-kom-var kom-server-priority-breaks nil
  "**Controls how server priorities are handled.

A non-`nil' value allows servers with a higher priority than the
current server to break in when new texts arrive. This can be used to
give a work-related server a higher priority than a server used for
frivolous purposes (or, indeed, the other way around).

The following settings are available:

  Value                 Meaning
  `express'             Break in immediately when there are unread
                        texts.
  `express-letters'     Break in immediately when there are unread
                        letters.
  `t'                   Break in after the current comment chain when
                        there are unread texts.
  `letters'             Break in after the current comment-chain when
                        there are unread letters.
  `after-conf'          Break in after the current conference when
                        there are unread texts.
  `after-conf-letters'  Break in after the current conference when
                        there are unread letters.
  `when-done'           Prompt the user to go to the next session with
                        unreads after everything has been read. This
                        overrides `kom-do-when-done' as long as there
                        are sessions with unread texts. 

Values other than those listed above are reserved for future use and
may result in unpredictible behavior.

See `kom-server-priority' for information on setting the server
priority."
1231
1232
  server)

David Byers's avatar
David Byers committed
1233
(def-kom-var kom-view-text-hook nil
David Byers's avatar
David Byers committed
1234
1235
1236
1237
1238
  "**Hook that is called before a text is shown. 

When the hooks are called, `kom-view-text-text' is bound to the text
mass of the text and `kom-view-text-text-stat' to the text-stat of the
text to be shown."
1239
  local-hook)
1240

David Byers's avatar
David Byers committed
1241
1242
1243
1244
1245
1246
(def-kom-var lyskom-view-text-hook nil
  "Obsolete synonym for kom-view-text-hook."
  local-hook)


(def-kom-var lyskom-send-message-hook nil
David Byers's avatar
David Byers committed
1247
  "Obsolete synonym for lyskom-send-message-hook."
David Byers's avatar
David Byers committed
1248
  local-hook)
1249

David Byers's avatar
David Byers committed
1250
(def-kom-var kom-send-message-hook '(lyskom-send-message-trim-newlines)
David Byers's avatar
David Byers committed
1251
  "**Hook that is called before a personal, group or common message is sent. 
David Byers's avatar
David Byers committed
1252

David Byers's avatar
David Byers committed
1253
1254
1255
1256
When called, `lyskom-message-string' is bound to the message that will
be sent and `lyskom-message-recipient' to the conf-stat of the
recipient or nil if the recipient does not exist or if the message is
a common message.
David Byers's avatar
David Byers committed
1257

David Byers's avatar
David Byers committed
1258
If `lyskom-message-string' is set to nil by a hook, the message will not
1259
1260
be sent."
  local-hook)
David Byers's avatar
David Byers committed
1261

David Byers's avatar
David Byers committed
1262
(def-kom-var kom-send-message-setup-hook nil
David Byers's avatar
David Byers committed
1263
1264
1265
1266
1267
  "**Hook that is called when the minibuffer is entered to read a message.

This hook can be used to set up the minibuffer in a way suitable for
writing messages. For example, the hook might enable `auto-fill-mode'
or set up automatic resizing of the minibuffer."
1268
  local-hook)
1269

David Byers's avatar
David Byers committed
1270
(def-kom-var lyskom-send-message-setup-hook nil
David Byers's avatar
David Byers committed
1271
  "Obsolete synonym for kom-send-message-setup-hook."
David Byers's avatar
David Byers committed
1272
1273
1274
  local-hook)

(def-kom-var kom-send-message-exit-hook nil
David Byers's avatar
David Byers committed
1275
1276
1277
1278
  "**Hook that is called when the minibuffer is exited after reading a message.

Typically this hook will be used to undo the effects of
`kom-send-message-setup-hook'."
1279
  local-hook)
1280

David Byers's avatar
David Byers committed
1281
(def-kom-var lyskom-send-message-exit-hook nil
David Byers's avatar
David Byers committed
1282
  "Obsolete synonym for kom-send-message-exit-hook."
David Byers's avatar
David Byers committed
1283
1284
1285
  local-hook)

(def-kom-var kom-send-text-hook nil
David Byers's avatar
David Byers committed
1286
1287
1288
1289
1290
  "**Hook that is called before sending a text.

This hook is called before the headers are parsed, so it is possible
for the headers to be modified after this hook is called. It is also
possible that the text will not be sent at all."
1291
  local-hook)
David Byers's avatar
David Byers committed
1292

David Byers's avatar
David Byers committed
1293
(def-kom-var lyskom-send-text-hook nil
David Byers's avatar
David Byers committed
1294
  "Obsolete synonym for kom-send-text-hook."
David Byers's avatar
David Byers committed
1295
1296
1297
  local-hook)

(def-kom-var kom-after-load-hook nil
David Byers's avatar
David Byers committed
1298
1299
1300
1301
  "**Hook to run once after LysKOM is loaded.

This is similar in effect to using `eval-after-load', but is
independent of the file name of the client.")
David Byers's avatar
David Byers committed
1302

David Byers's avatar
David Byers committed
1303
(def-kom-var lyskom-after-load-hook nil
David Byers's avatar
David Byers committed
1304
  "Obsolete synonym for kom-after-load-hook.")
David Byers's avatar
David Byers committed
1305
1306

(def-kom-var kom-change-conf-hook nil
David Byers's avatar
David Byers committed
1307
1308
  "**Hook to run when changing conferences.

David Byers's avatar
David Byers committed
1309
The functions in this list are run with two arguments. The first is the 
David Byers's avatar
David Byers committed
1310
1311
current conference number and the second is the number of the
conference being changed to.
1312

David Byers's avatar
David Byers committed
1313
1314
This hook is run before `lyskom-current-conf' is changed, and before
any standard messages have been printed."
1315
1316
  local-hook)

David Byers's avatar
David Byers committed
1317
(def-kom-var lyskom-change-conf-hook nil
David Byers's avatar
David Byers committed
1318
  "Obsolete synonym for kom-change-conf-hook"
David Byers's avatar
David Byers committed
1319
1320
1321
  local-hook)

(def-kom-var kom-after-change-conf-hook nil
David Byers's avatar
David Byers committed
1322
1323
  "**Hook to run when changing conferences.

1324
The functions in this list are run with two arguments. The first is the 
David Byers's avatar
David Byers committed
1325
1326
current conference number and the second is the conference number
being changed to.
1327

David Byers's avatar
David Byers committed
1328
This hook is run after `lyskom-current-conf' is changed, and after any
1329
standard messages have been printed."
1330
  local-hook)
David Byers's avatar
David Byers committed
1331

David Byers's avatar
David Byers committed
1332
(def-kom-var lyskom-after-change-conf-hook nil
David Byers's avatar
David Byers committed
1333
  "Obsolete synonym for kom-after-change-conf-hook."