vars.el.in 98.3 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
33
;;;; ================================================================
;;;; ================================================================
;;;;
;;;; File: vars.el
;;;;
;;;; This file contains almost all the variables used in lyskom.
;;;;


David Byers's avatar
X    
David Byers committed
34
35
36
(setq lyskom-clientversion-long 
      (concat lyskom-clientversion-long
	      "$Id$\n"))
37

David Byers's avatar
David Byers committed
38
(defvar lyskom-mule-compiled
39
40
  (eval-when-compile (and (fboundp 'multibyte-string-p)
                          (multibyte-string-p "ÅÄÖ")))
David Byers's avatar
David Byers committed
41
42
  "Non-nil if the client was compiled with multibyte characters enabled")

David Byers's avatar
X    
David Byers committed
43
(provide 'lyskom)
44

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

David Byers's avatar
David Byers committed
47
48
49
50
51
52
53
54
55
56
57
(defconst lyskom-global-boolean-variables '(
  kom-created-texts-are-read
  kom-dashed-lines
  kom-presence-messages
  kom-print-number-of-unread-on-entrance
  kom-read-depth-first
  kom-reading-puts-comments-in-pointers-last
  kom-confirm-multiple-recipients
)
  "List of flags that are to be saved as booleans in the common block.

58
Don't change these. They are defined by the protocol.")
David Byers's avatar
David Byers committed
59
60
61
62
63
64
65
				  
(defconst lyskom-global-non-boolean-variables '(
  kom-default-mark
)
  "List of flags that are to be saved in the common block.
These are the non-boolean ones. See: lyskom-global-boolean-variables.

66
Don't change these. They are defined by the protocol.")
David Byers's avatar
David Byers committed
67
68


David Byers's avatar
X    
David Byers committed
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

(defun lyskom-protect-variable (sym) 
  (put sym 'permanent-local t)
  (lyskom-local-variable sym)
  (add-to-list 'lyskom-protected-variables sym))

(defun lyskom-local-variable (sym)
  (add-to-list 'lyskom-local-variables sym))

(defun lyskom-inherited-variable (sym)
  (add-to-list 'lyskom-inherited-variable sym)
  (lyskom-protect-variable sym))

(defun lyskom-setup-local-variables ()
  (mapcar 'make-local-variable lyskom-local-variables)
  (mapcar 'make-local-hook lyskom-local-hooks))
Per Cederqvist's avatar
.    
Per Cederqvist committed
85

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


David Byers's avatar
David Byers committed
90
91
(def-kom-var kom-dont-read-saved-variables '(kom-dont-read-saved-variables
                                             lyskom-login-hook)
92
  "*Non-nil means don't read some variables from the server.
David Byers's avatar
David Byers committed
93
94
95
t means don't read any variables. A list means don't read variables that
are in the list.")

Per Cederqvist's avatar
.    
Per Cederqvist committed
96
97
98
99
100
101
102
103


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


;;; User flags

104
105
106
107
108
109
(def-kom-var kom-edit-hide-add-button nil
  "*If non-nil, hide the add button shown after the headers when editing
a text."
  server
)

110
(def-kom-var kom-highlight-text-body t
111
112
113
114
115
116
  "*If t, use an alternate background color for texts in LysKOM.
If nil, do not use an alternate background. Other values are reserved
for future use."
  server
)

117
118
119
120
121
122
123
124
125
126
(def-kom-var kom-highlight-first-line t
  "*If t, use kom-first-line-face to highlight the first line of each text."
  server
)

(def-kom-var kom-highlight-dashed-lines t
  "*If t, use kom-dashed-lines-face to highlight dashed lines around texts."
  server
)

127
128
129
130
131
132
133
(def-kom-var kom-extended-status-information t
  "*If t, list extended status information for all objects in LysKOM.
Extended status information include such information as read FAQs.
Values other than t or nil are reserved for future extensions."
  server
)

David Byers's avatar
David Byers committed
134
135
136
137
138
139
(def-kom-var kom-auto-list-faqs t
  "*If non-nil, list unread FAQs when entering a conference or logging
on to the server."
  server
)

140
(def-kom-var kom-auto-review-faqs t
David Byers's avatar
David Byers committed
141
142
  "*If non-nil, automatically review unread FAQs when entering a
conference or logging on to the server."
143
144
145
  server
)

David Byers's avatar
X    
David Byers committed
146
(def-kom-var kom-allow-incompleteness nil
147
148
  "*If nil, commands like kom-list-news will wait for the prefetch.
If this flag is set to t, some commands may give incomplete answers,
149
but it might make them faster, especially during the login phase."
David Byers's avatar
X    
David Byers committed
150
151
  server
)
152

David Byers's avatar
X    
David Byers committed
153
(def-kom-var kom-bury-buffers t
154
155
156
  "*Controls the behaviour of kom-next-kom and its cousins.
If this variable is non-nil the current buffer is sent to the back
of the buffer list when one of the commands `kom-next-kom',
David Byers's avatar
X    
David Byers committed
157
158
`kom-previous-kom' or `kom-next-unread-kom' is invoked."
  server)
159

David Byers's avatar
X    
David Byers committed
160
(def-kom-var kom-write-texts-in-window nil
161
  "*Where to edit texts. One of nil, 'other, 'new-frame, 'other-frame, a string
David Byers's avatar
David Byers committed
162
163
164
or a buffer.

nil means edit texts in the same window as the LysKOM buffer.
165
166
167
'other means edit in another window, creating it if necessary.
'other-frame means edit in another frame, if there is one.
'new-frame means create a new frame for editing. The frame will be removed 
David Byers's avatar
David Byers committed
168
          when editing is finished.
169
A string or buffer means edit in the indicated buffer."
David Byers's avatar
X    
David Byers committed
170
  server)
171

David Byers's avatar
X    
David Byers committed
172
(def-kom-var kom-view-commented-in-window 'other
173
  "*Where to view commented texts. See kom-write-texts-in-window for details."
David Byers's avatar
X    
David Byers committed
174
  server)
David Byers's avatar
David Byers committed
175

David Byers's avatar
X    
David Byers committed
176
177
178
179
(def-kom-var kom-edit-filters-in-window nil
  "*Where to edit filters. See kom-write-texts-in-window for
more information."
  server)
David Byers's avatar
David Byers committed
180

David Byers's avatar
X    
David Byers committed
181
182
183
184
(def-kom-var kom-list-membership-in-window 'other
  "*Where to list membership. See kom-write-texts-in-window for
more information."
  server)
185

186
187
188
189
190
(def-kom-var kom-personal-messages-in-window 'other
  "*Where to display personal messages. See kom-write-texts-in-window 
for more information."
  server)

David Byers's avatar
X    
David Byers committed
191
192
193
(def-kom-var kom-customize-format 'long
  "*Format of the customize buffer. Must be long or short."
  server)
194

David Byers's avatar
X    
David Byers committed
195
196
197
(def-kom-var kom-user-prompt-format "%[%c% %m%] - "
  "*Format of LysKOM prompt when waiting for input."
  server)
David Byers's avatar
David Byers committed
198

Per Cederqvist's avatar
.    
Per Cederqvist committed
199

David Byers's avatar
X    
David Byers committed
200
201
202
(def-kom-var kom-user-prompt-format-executing "%[%c% %m%]."
  "*Format of LysKOM prompt when executing a default command"
  server)
David Byers's avatar
David Byers committed
203
204


David Byers's avatar
X    
David Byers committed
205
206
207
(def-kom-var kom-enabled-prompt-format "%[%c% %m%] # "
  "*Format of LysKOM prompt when in enabled mode."
  server)
David Byers's avatar
David Byers committed
208

209

David Byers's avatar
X    
David Byers committed
210
211
212
213
(def-kom-var kom-enabled-prompt-format-executing "%[%c% %m%]."
  "*Format of LysKOM prompt when executing a default command in 
enabled mode."
  server)
David Byers's avatar
David Byers committed
214

David Byers's avatar
David Byers committed
215
216
217
218
219
220
221
222
(def-kom-var kom-anonymous-prompt-format "%[%c% %m%] (%a) - "
  "*Format of the LysKOM prompt when running anonymously."
  server)

(def-kom-var kom-anonymous-prompt-format-executing "%[%c% %m%] (%a)."
  "*Format of the LysKOM prompt when executing a command anonymously."
  server)

223
224
225
226
(def-kom-var kom-show-week-number t
  "*If non-nil show the ISO week number when displaying the time."
  server)

David Byers's avatar
David Byers committed
227

David Byers's avatar
X    
David Byers committed
228
229
230
(def-kom-var kom-cite-string ">"
  "*String to insert before each line of a commented text."
  server)
231

232
233
234
235
236
237
(def-kom-var kom-created-texts-are-saved nil
  "*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."
  server
  inherited)

David Byers's avatar
X    
David Byers committed
238
239
240
(def-kom-var kom-created-texts-are-read t
  "*Non-nil means automatically mark texts that you create as read."
  server)
David Byers's avatar
David Byers committed
241

David Byers's avatar
X    
David Byers committed
242
(def-kom-var kom-customize-in-window nil
243
  "*Where to customize LysKOM. See kom-write-texts-in-window."
David Byers's avatar
X    
David Byers committed
244
  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
245

David Byers's avatar
X    
David Byers committed
246
(def-kom-var kom-prioritize-in-window nil
247
  "*Where to prioritize conferences. See kom-write-texts-in-window."
David Byers's avatar
X    
David Byers committed
248
  server)
David Byers's avatar
David Byers committed
249

250
(def-kom-var kom-default-mark nil
251
  "*If non-nil (must be an integer), the user is not asked for type of mark."
David Byers's avatar
X    
David Byers committed
252
  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
253

254
255
256
257
(def-kom-var kom-symbolic-marks-alist '(("Standard" . 100))
  "*Assoc list which maps symbolic mark strings to mark numbers."
  server)

David Byers's avatar
X    
David Byers committed
258
(def-kom-var kom-reading-puts-comments-in-pointers-last t
259
  "*If non-nil, the texts are shown with comment references at the end."
David Byers's avatar
David Byers committed
260
261
  server
  inherited)
David Byers's avatar
David Byers committed
262

263
264
265
266
267
(def-kom-var kom-review-uses-cache t
  "*If non-nil, review commands don't use the cache."
  server
  inherited)

268
269
270
271
272
(def-kom-var kom-review-marks-texts-as-read nil
  "*If non-nil, review commands mark the reviewed texts as read."
  server
  inherited)

David Byers's avatar
David Byers committed
273
274
275
276
277
(def-kom-var kom-postpone-default 17
  "*The number of articles to postpone by default."
  server)


David Byers's avatar
X    
David Byers committed
278
(def-kom-var kom-dashed-lines t
279
  "*If non-nil, all texts will be surrounded by lines of dashes."
David Byers's avatar
David Byers committed
280
281
  server
  inherited)
Per Cederqvist's avatar
.    
Per Cederqvist committed
282

283
(def-kom-var kom-long-lines nil
284
  "*If non-nil, some lines and borders will be made longer."
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
  server
  inherited)

(def-kom-var kom-text-footer-dash-length 52
  "*If non-nil, the total length of the text footer, when dashes are in use.
Note that the footer may end up longer than this if one or more elements
together are longer than this length.

This length is currently ignored when kom-text-footer-format is used."
  server
  inherited)

(def-kom-var kom-text-header-dash-length 60
  "*If non-nil, the total length of the dashes before a text body.
If kom-dashed-lines is non-nil, this is ignored."
  server
  inherited)



305
306
307
308
309
310
311
312
313
314
315
316
317
318
(def-kom-var kom-text-footer-format nil
  "*If non-nil, this specifies the format of a text footer.

The following format directives are legal:

    %n      The text number.
    %p      The number of the author.
    %P      The name of the author
    %-      A bunch of dashes
    %f      Information about the text in parentheses.

Format letters can be prefixed with a number specifying the minimum
field width. The field width can be prefixed with an equals sign which
means that the field is exactly as wide as specified (contents may be
319
truncated). A negative field width means left justify the contents.
320
321

The field width of %- is special. It specifies the maximum number of
322
dashes printed. The actual number will be the maximum minus the
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
length of the author's name, if it is included anywhere in the format
string.

When set, this variable overrides kom-dashed-lines and
kom-show-author-at-end.

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

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\"
"
  server
  inherited)



343
(def-kom-var kom-show-creating-software nil
344
  "*If non-nil, show the creating software of each text, if specified."
345
346
347
  server
  inherited)

David Byers's avatar
David Byers committed
348
(def-kom-var kom-show-author-at-end t
349
  "*If non-nil, the author will be shown at the end of each text."
David Byers's avatar
David Byers committed
350
351
  server
  inherited)
David Byers's avatar
David Byers committed
352

353
(def-kom-var kom-truncate-threshold nil
354
355
  "*If non-nil, truncate long texts when reviewing.
If the text is longer (in lines), the threshold it will be
356
357
358
truncated to `kom-truncate-show-lines' length."
  server)

359
(def-kom-var kom-truncate-show-lines 10
360
361
362
363
364
365
366
  "*How many lines to show after truncating.
If the text is truncated by `kom-truncate-threshold', show this many
lines.  If this is greater than the threshold, the threshold will be
used."
  server)


David Byers's avatar
X    
David Byers committed
367
(def-kom-var kom-print-number-of-unread-on-entrance t
368
  "*If non-nil, print automatically the number of unread articles when
David Byers's avatar
X    
David Byers committed
369
370
entering a conference."
  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
371

372
(def-kom-var kom-show-unread-in-frame-title t
373
  "*If non-nil, show an unread indicator in the frame title of each
374
375
376
LysKOM session."
  server)

David Byers's avatar
X    
David Byers committed
377
(def-kom-var kom-presence-messages t
378
  "*If non-nil, LysKOM prints continuous info about what other people are doing.
Per Cederqvist's avatar
.    
Per Cederqvist committed
379
Info is printed on the message line and never in the buffer. If minibuffer is
380
used, no message is printed.
Linus Tolke's avatar
Linus Tolke committed
381

David Byers's avatar
David Byers committed
382
383
384
385
A list of integers means show messages for those users.

The value 'friends means show messages for the users in kom-friends.

386
387
388
389
390
The value 'morons means show messages for the users in kom-morons.

The value 'friends-and-morons means show messages for the users in 
kom-friends and kom-morons.

391
If you want the messages in the buffer, you could set the variable 
David Byers's avatar
X    
David Byers committed
392
393
kom-presence-messages-in-buffer."
  server)
David Byers's avatar
David Byers committed
394

David Byers's avatar
X    
David Byers committed
395
(def-kom-var kom-presence-messages-in-buffer nil
396
  "*If t, LysKOM prints information about what other people are doing in the buffer.
Per Cederqvist's avatar
.    
Per Cederqvist committed
397
398
All printing is done just before the prompt.
If nil no messages are printed.
399
400
If 'presence, messages about people logging in, out and people 
changing name are printed."
David Byers's avatar
X    
David Byers committed
401
  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
402

David Byers's avatar
X    
David Byers committed
403
(def-kom-var kom-show-where-and-what t
Per Cederqvist's avatar
.    
Per Cederqvist committed
404
  "*Non-nil means kom-who-is-on shows from which machine the user is running
David Byers's avatar
X    
David Byers committed
405
406
and what he is doing."
  server)
David Byers's avatar
David Byers committed
407

408
409
(def-kom-var kom-show-since-and-when nil
  "*Non-nil means kom-who-is-on shows when the user connected and when
410
he last was active."
411
  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
412

David Byers's avatar
X    
David Byers committed
413
(def-kom-var kom-idle-hide 30
414
  "*The number of minutes of idle-time before a user is excluded from the list
David Byers's avatar
X    
David Byers committed
415
416
of users. This can be overridden by a prefix argument to `kom-who-is-on'."
  server)
417

David Byers's avatar
X    
David Byers committed
418
419
420
(def-kom-var kom-show-footnotes-immediately t
  "*Non-nil means show footnotes immediately following the text."
  server)
421

David Byers's avatar
X    
David Byers committed
422
(def-kom-var kom-follow-comments-outside-membership nil
423
424
425
  "*Show comments in conferences you are not a member of.

If this variable is nil, texts with no recipient you are a member of
David Byers's avatar
X    
David Byers committed
426
427
will not be shown."
  server)
428

David Byers's avatar
David Byers committed
429
430
431
432
(def-kom-var kom-follow-attachments t
  "*Follow attachments as if they are regular comments."
  server)

433
434
435
436
;;(def-kom-var kom-who-buffer-size-when-displaying 10
;;  "Size of window to display the who-buffer.
;;This is used when executing the kom-display-who-buffer command."
;;  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
437

David Byers's avatar
X    
David Byers committed
438
439
440
(def-kom-var kom-read-depth-first t
  "*Non-nil means read comments and footnotes to a text before other texts."
  server)
David Byers's avatar
David Byers committed
441

David Byers's avatar
X    
David Byers committed
442
(def-kom-var kom-continuous-scrolling t
443
  "*Non-nil means scroll LysKOM window as text is inserted. The last viewed
David Byers's avatar
X    
David Byers committed
444
445
position (generally the most recent prompt) will always be visible."
  server)
446
447


448
;; Should this be set to nil if baud-rate is low?
David Byers's avatar
X    
David Byers committed
449
(def-kom-var kom-deferred-printing t
450
  "*Non-nil means delay printing of some information not in the cache.
451
452
You might want to turn this off to have the old, linear behaviour."
  server)
453

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

457
458
459
460
461
462
(def-kom-var kom-review-priority nil
  "*If non-nil, the priority to use when reviewing texts. Set this to
255 or higher to avoid texts and conferences with higher priority to
break in while reviewing."
  server)

David Byers's avatar
X    
David Byers committed
463
(def-kom-var kom-higher-priority-breaks nil
464
465
466
  "*Non-nil means allow texts from conferences with higher priority to break in.
If the value is 'express, texts are allowed to break in the middle of a
comment chain. Otherwise we don't let them in until the end of the comment
David Byers's avatar
X    
David Byers committed
467
468
tree."
  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
469

470
471
(def-kom-var kom-server-priority-breaks nil
  "*Non-nil means allow servers with a higher priority to break in.
472
473
Valid values are 'express, 'express-letters, 'letters, 'after-conf, 
'after-conf-letters, t and 'when-done.
474

475
'express means break immediately when a text arrives in a prioritized
476
477
session.

478
'express-letters means break immediately when a letter arrives in a 
479
480
481
482
483
prioritized session.

t means break after the current comment chain when a text arrives in 
a prioritized session.

484
'letters means break after the current comment chain when a letter
485
486
arrives in a prioritized session.

487
'after-conf means break after the current conference when a text
488
489
arrives in a prioritized session.

490
'after-conf-letters means break after the current conference when a
491
492
letter arrives in a prioritized session.

493
'when-done means prompt user to go to the next session with unreads
494
495
496
497
498
after everything has been read. This overrides kom-do-when-done as
long as there are sessions with unread texts.
"
  server)

David Byers's avatar
X    
David Byers committed
499
(def-kom-var lyskom-view-text-hook nil
500
  "*Hook that is called before a text is shown. When the hooks are
501
502
called, lyskom-view-text-text is bound to the text mass of the 
text and lyskom-view-text-text-stat to the text-stat of the text
503
504
to be shown."
  local-hook)
505
506


David Byers's avatar
X    
David Byers committed
507
(def-kom-var lyskom-send-message-hook '(lyskom-send-message-trim-newlines)
David Byers's avatar
David Byers committed
508
509
510
511
512
513
514
  "*Hook that is called before a personal, group or common message is sent. 

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.

If lyskom-message-string is set to nil by a hook, the message will not
515
516
be sent."
  local-hook)
David Byers's avatar
David Byers committed
517

David Byers's avatar
X    
David Byers committed
518
(def-kom-var lyskom-send-message-setup-hook nil
519
520
  "*Hook that is called when the minibuffer is entered to read a message."
  local-hook)
521

David Byers's avatar
X    
David Byers committed
522
(def-kom-var lyskom-send-message-exit-hook nil
523
524
  "*Hook that is called when the minibuffer is exited after reading a message."
  local-hook)
525

David Byers's avatar
David Byers committed
526
527
(def-kom-var lyskom-send-text-hook nil
  "*Hook that is called before sending a text. Hook functions return t to
528
signal success and nil to prevent the text from being sent."
529
  local-hook)
David Byers's avatar
David Byers committed
530

David Byers's avatar
X    
David Byers committed
531
(def-kom-var lyskom-after-load-hook nil
532
  "*Hook to run once after LysKOM is loaded.")
David Byers's avatar
David Byers committed
533

David Byers's avatar
David Byers committed
534
535
536
(def-kom-var lyskom-change-conf-hook nil
  "*Hook to run when changing conferences.
The functions in this list are run with two arguments. The first is the 
537
538
539
540
541
542
543
544
545
546
547
548
549
current conf-no and the second is the conf-no being changed to.

This hook is run before lyskom-current-conf is changed, and before any
standard messages have been printed."
  local-hook)

(def-kom-var lyskom-after-change-conf-hook nil
  "*Hook to run when changing conferences.
The functions in this list are run with two arguments. The first is the 
current conf-no and the second is the conf-no being changed to.

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

David Byers's avatar
X    
David Byers committed
552
(def-kom-var lyskom-login-hook nil
553
  "*What to do when logged in.
554
This hook is called after we have logged in but before any command is
555
accepted from the keyboard. It is called immediately before
556
557
kom-login-hook."
  local-hook)
558

David Byers's avatar
X    
David Byers committed
559
(def-kom-var kom-login-hook nil
Per Cederqvist's avatar
.    
Per Cederqvist committed
560
561
  "*What to do when logged in.
This is a list of commands that are executed after we have logged in but before
David Byers's avatar
X    
David Byers committed
562
563
any command is accepted from the keyboard. See also lyskom-login-hook."
  server)
David Byers's avatar
David Byers committed
564

565
566
567
(def-kom-var kom-confirm-add-recipients t
  "*When non-nil, offer to add cc-recipient instead of full recipient."
  server)
568

Per Cederqvist's avatar
.    
Per Cederqvist committed
569

David Byers's avatar
X    
David Byers committed
570
(def-kom-var kom-do-when-done '(kom-review-all-marked-texts kom-display-time)
Per Cederqvist's avatar
.    
Per Cederqvist committed
571
572
573
574
575
  "*What to do when all texts are read.
This is a list of commands and lists of commands that are prompted for
and executed when there are no more new texts.  The last element in
the list is the one that will never be removed from the list.
A command can be one of:
576

Per Cederqvist's avatar
.    
Per Cederqvist committed
577
type			prompt
578
579
580
581
582
------------------------------
lyskom-function		from the lyskom-command-name function
command			\"Command:\" (name of function or definition of
			lambda expression)
keyboard macro		\"Command:\" (keyboard macro definition)"
David Byers's avatar
X    
David Byers committed
583
  server)
David Byers's avatar
David Byers committed
584

David Byers's avatar
X    
David Byers committed
585
(def-kom-var kom-page-before-command nil
586
  "*This is a list of all commands before which the screen is cleared.
David Byers's avatar
X    
David Byers committed
587
588
If it isn't a list and isn't nil the screen is cleared before all commands."
  server)
Per Cederqvist's avatar
.    
Per Cederqvist committed
589

David Byers's avatar
X    
David Byers committed
590
(def-kom-var kom-permissive-completion t
591
592
  "*If t, completion on logged-in persons will usually also include
persons who are not logged in. Values other than t or nil are reserved
David Byers's avatar
X    
David Byers committed
593
594
for future use."
  server)
595

596
597
598
599
600
(def-kom-var kom-unsubscribe-makes-passive t
  "*If non-nil subtracting oneself from a conference makes the membership
passive. A second leave will actually remove the membership."
  server)

David Byers's avatar
David Byers committed
601
(def-kom-var kom-membership-default-priority 'ask
Per Cederqvist's avatar
.    
Per Cederqvist committed
602
603
604
605
  "*Default priority when joining a new conference.
If a valid priority then new conferences are read with this priority. 
Otherwise ask the user for a priority.

David Byers's avatar
X    
David Byers committed
606
607
Valid priorities are only the range 0-255."
  server)
David Byers's avatar
David Byers committed
608

David Byers's avatar
X    
David Byers committed
609
(def-kom-var kom-membership-default-placement 'last
Per Cederqvist's avatar
.    
Per Cederqvist committed
610
611
612
613
614
  "*Tells the system where to put new conferences.
The value can be one of the following:
'first => before all other conferences.
'last => after all other conferences.
a number => at that position
615
otherwise => the new conference is entered after all conferences."
David Byers's avatar
X    
David Byers committed
616
  server)
David Byers's avatar
David Byers committed
617

David Byers's avatar
X    
David Byers committed
618
(def-kom-var lyskom-current-prompt nil
619
620
  "The current prompt or nil.
This is either nil, indicating that there is currently no prompt, or
621
a symbol indicating which command is prompted in the LysKOM buffer."
David Byers's avatar
X    
David Byers committed
622
  local)
David Byers's avatar
David Byers committed
623

David Byers's avatar
X    
David Byers committed
624
625
626
627
628
629
(def-kom-var lyskom-current-prompt-text nil
  "The current prompt text or nil.
This is either nil, indicating that there is currently no prompt, or
a string indicating the prompt shown in the LysKOM buffer."
  local)

630
(def-kom-var lyskom-current-prompt-args nil
631
  "The current prompt arguments.
632
633
634
These are arguments used to format the current prompt."
  local)

635
636
637
638
639
(def-kom-var lyskom-current-prompt-timestamp nil
  "The creationtime of the current prompt.
This is used when updating the prompt and on lyskom-start-of-command."
  local)

640
641
642
643
(def-kom-var lyskom-need-prompt-update nil
  "Non-nil if all prompts need to be updated."
  local)

David Byers's avatar
X    
David Byers committed
644
(def-kom-var kom-show-personal-messages-in-buffer t
645
646
647
648
  "*Buffer to show personal messages in.
If nil, discard them.
If t, insert them in the *kom* buffert.
If non-nil and non-t this should be a buffer or a name of a (possibly
David Byers's avatar
X    
David Byers committed
649
650
nonexistent) buffer in which the message is inserted."
  server)
David Byers's avatar
David Byers committed
651

David Byers's avatar
X    
David Byers committed
652
(def-kom-var kom-pop-personal-messages nil
653
  "*Non-nil means pop up a buffer with personal messages as they arrive.
David Byers's avatar
X    
David Byers committed
654
655
kom-show-personal-messages-in-buffer decides which buffer to pop."
  server)
656

657
658
659
(def-kom-var kom-ding-pause-amount 0.1
  "*Amount of time to wait between successive beeps.")

David Byers's avatar
X    
David Byers committed
660
(def-kom-var kom-ding-on-new-letter nil
661
  "*Non-nil means ding if a message arrives in the letter box. See 
David Byers's avatar
X    
David Byers committed
662
663
kom-ding-on-priority-break for valid values."
  server)
664
665


David Byers's avatar
X    
David Byers committed
666
(def-kom-var kom-ding-on-priority-break 1
667
668
  "*Non-nil means ding if a higher priority text or conference breaks in.
A number means the number of times to ding. A string is an argument for the
David Byers's avatar
X    
David Byers committed
669
670
program named by kom-audio-player."
  server)
David Byers's avatar
David Byers committed
671

David Byers's avatar
X    
David Byers committed
672
(def-kom-var kom-ding-on-wait-done 1
673
674
675
  "*Non-nil means ding when busy-waiting finishes.
A number means the number of times to ding. A string is an argument
for the program named by kom-audio-player. A symbol is interpreted as a 
David Byers's avatar
X    
David Byers committed
676
677
function to call."
  server)
678

David Byers's avatar
X    
David Byers committed
679
(def-kom-var kom-ding-on-common-messages 0
680
681
682
683
684
685
686
  "*Non-nil means ding as alarm messages arrive. 
A number means the number of times to ding. A string is an argument
for the program named by kom-audio-player. A symbol is interpreted as
a function to call. A list consisting of pairs (KEY . VALUE) is used
for fine-grained control. The list is searched for a pair where KEY
matches the sender identity. The corresponding VALUE is used as the
specification on how to beep."
David Byers's avatar
X    
David Byers committed
687
  server)
David Byers's avatar
David Byers committed
688

David Byers's avatar
X    
David Byers committed
689
(def-kom-var kom-ding-on-group-messages 1
690
  "*Non-nil means ding as group messages arrive.
691
692
693
694
695
696
A number means the number of times to ding. A string is an argument
for the program named by kom-audio-player. A symbol is interpreted as
a function to call. A list consisting of pairs (KEY . VALUE) is used
for fine-grained control. The list is searched for a pair where KEY
matches the recipient identity. The corresponding VALUE is used as the
specification on how to beep."
David Byers's avatar
X    
David Byers committed
697
  server)
698

David Byers's avatar
X    
David Byers committed
699
(def-kom-var kom-ding-on-personal-messages 2
700
  "*Non-nil means ding as personal messages arrive.
701
702
703
704
705
706
A number means the number of times to ding. A string is an argument
for the program named by kom-audio-player. A symbol is interpreted as
a function to call. A list consisting of pairs (KEY . VALUE) is used
for fine-grained control. The list is searched for a pair where KEY
matches the sender identity. The corresponding VALUE is used as the
specification on how to beep."
David Byers's avatar
X    
David Byers committed
707
  server)
David Byers's avatar
David Byers committed
708
709


David Byers's avatar
David Byers committed
710
(def-kom-var kom-ding-on-no-subject 2
711
  "*How to ding if the user has not entered a subject line.
712
713
A number means the number of times to ding. A string is an argument for the
program named by kom-audio-player. A symbol is interpreted as a function 
David Byers's avatar
David Byers committed
714
715
to call."
  server)
David Byers's avatar
David Byers committed
716

717

David Byers's avatar
X    
David Byers committed
718
(def-kom-var kom-audio-player "audioplay"
David Byers's avatar
David Byers committed
719
720
  "*Program to play audio files."
  server)
David Byers's avatar
David Byers committed
721

Per Cederqvist's avatar
.    
Per Cederqvist committed
722

723
724
725
726
727
728
729
730
(def-kom-var kom-ignore-message-senders nil
  "*List of senders whose personal, group and alarm messages are ignored."
  server)

(def-kom-var kom-ignore-message-recipients nil
  "*List of recipients you do not want group messages to."
  server)

731
732
733
734
(def-kom-var kom-show-personal-message-date t
  "*Show date on personal messages is non-nil."
  server)

David Byers's avatar
X    
David Byers committed
735
(def-kom-var kom-default-message-recipient 'group
David Byers's avatar
David Byers committed
736
737
  "*Determines default recipient of personal messages.

738
739
740
741
742
743
'everybody means the default recipient is everybody.
'group     means the default recipient is the group to which the last
           message was sent, if it was a group message. If the last message
           was a personal message or a common message, it means the same as 
           'sender. 
'sender    means the sender of the last message received."
David Byers's avatar
X    
David Byers committed
744
  server)
David Byers's avatar
David Byers committed
745
746


David Byers's avatar
X    
David Byers committed
747
(def-kom-var lyskom-filter-outgoing-messages t
748
  "*t if outgoing remote-control messages and automatic replies are not
749
750
to be displayed in the buffer."
  server)
David Byers's avatar
David Byers committed
751
752


David Byers's avatar
X    
David Byers committed
753
(def-kom-var kom-friends nil
David Byers's avatar
David Byers committed
754
755
756
  "*List of people whose names should be formatted using kom-friends-face.
Also used in kom-who-is-on-and-friend. This is a list of integers (person
numbers)."
David Byers's avatar
X    
David Byers committed
757
  server)
758

759
760
761
762
(def-kom-var kom-morons nil
  "*List of people whose names should be formatted using kom-morons-face."
  server)

763
764
765
(def-kom-var kom-dont-check-commented-authors nil
  "*List of recipients who do not need to be added to comments that they
might not see. Typically this list consists of import agents."
766
767
  server
  inherited)
768

David Byers's avatar
X    
David Byers committed
769
770
(def-kom-var kom-default-face-scheme nil  
  "*Face scheme to use per default for new logins.")
David Byers's avatar
David Byers committed
771

David Byers's avatar
David Byers committed
772
773
774
775
(def-kom-var kom-smileys t
  "*Non-nil means to reformat smileys in text."
  server)

David Byers's avatar
X    
David Byers committed
776
(def-kom-var kom-text-properties t
777
  "*Non-nil means to insert text properties in the Emacs buffer for
David Byers's avatar
X    
David Byers committed
778
various LysKOM elements.")
779

David Byers's avatar
X    
David Byers committed
780
781
(def-kom-var kom-use-button-hints t
  "*Non-nil means use button hints for overriding default actions.")
David Byers's avatar
David Byers committed
782

David Byers's avatar
David Byers committed
783
(def-kom-var kom-autowrap t
David Byers's avatar
David Byers committed
784
785
  "*Non-nil means auto wrap articles with discretion.
A number means wrap articles shorter than the number (in bytes)."
David Byers's avatar
David Byers committed
786
787
  server)

788
789
790
(def-kom-var kom-keep-alive-interval 180
  "*The number of seconds between periodic requests used to keep the session alive"
  server)
791

792
793
794
795
(defvar lyskom-transforming-external-text nil
  "Dynamically bound to non-nil when transforming text in which text,
conference and person buttons are not expected.")

David Byers's avatar
David Byers committed
796
(def-kom-var lyskom-url-protocol-regexp
797
798
  "\\(file\\|ftp\\|gopher\\|http\\|https\\|news\\|wais\\|mailto\\|telnet\\):"
  "Regexp to match the protocol part of a URL.")
David Byers's avatar
David Byers committed
799

David Byers's avatar
X    
David Byers committed
800
(def-kom-var lyskom-text-buttons
801
802
  '(
    ;; Text numbers
803
804
805
806
807
808
    ("\\(\\<[0-9][0-9][0-9][0-9]\\([0-9]\\)?\\([0-9]\\)?\\([0-9]\\)?\\>\\)" 
                                        ; Match
     text                               ; Button type
     0                                  ; Portion that's a button
     1                                  ; Portion that's the arg
     nil                                ; Face or nil (=default)
809
810
     )

David Byers's avatar
David Byers committed
811
812
    ;; Email

David Byers's avatar
David Byers committed
813
    ("\\(\\b\\|^\\)[^()<>@,;:\"\\\\\000- ]+@[^\000- <>;,.'\"!:?) \t\012\014]+\\(\\.[^\000- <>;,.'\"!:?)]+\\)+"
David Byers's avatar
David Byers committed
814
815
     email 0 0 kom-url-face)

816
817
    ;; URLs

818
    ("\\b\\(www\\|ftp\\|home\\)\\.[^\t \012\014\"<>|\\]*[^\t \012\014\"<>|.,!(){}?'`:]" 
David Byers's avatar
David Byers committed
819
820
     pseudo-url 0 nil kom-url-face)

821
    ("\\(file://\\|ftp://\\|gopher://\\|http://\\|https://\\|news:\\|wais://\\|mailto:\\|telnet:\\)[^\t \012\014\"<>|\\]*[^\t \012\014\"<>|.,!(){}?'`:]" 
822
     url 0 nil kom-url-face)
David Byers's avatar
X    
David Byers committed
823
824
825
    ("<URL:\\s-*\\([^>]*\\)\\s-*>"
     url 1 1 kom-url-face)

826
827
    ;; JySKom enhancements

828
829
830
831
832
833
    ("<(?m[|ö]te[ \t\n]*\\([0-9]+\\)\\([^0-9>]?\\|[^0-9>][^>]*\\))?>"
     conf 0 1 nil)
    ("<(?text[ \t\n]*\\([0-9]+\\)\\([^0-9>]?\\|[^0-9>][^>]*\\))?>"
     text 0 1 nil)
    ("<(?person[ \t\n]*\\([0-9]+\\)\\([^0-9>]?\\|[^0-9>][^>]*\\))?>"
     pers 0 1 nil)
David Byers's avatar
David Byers committed
834

835
836
    ;; Info node reference

David Byers's avatar
David Byers committed
837
    ("\\*Note[ \n\t]+\\([^:\n]*\\(\n[^:\n]*\\)?\\):\\s-*\\(\\(([^\)]+)\\)?[^.,\t\n]*\\(\n[^.,\t\n]*\\)?\\)[.,\t]" 
838
     info-node 1 3 kom-url-face)
839

David Kågedal's avatar
David Kågedal committed
840
    )
841
842
843
  "List of buttons to install in the text mass of LysKOM objects. Each element is
a list consisting of REGEXP TYPE BUTTON-MATCH BUTTON-ARG-MATCH FACE.
REGEXP is the regexp to look for in the text.
844
TYPE is the button type. Valid button types are defined in lyskom-button-actions.
845
BUTTON-MATCH is the number of the parenthesized expression that is the actual button.
846
BUTTON-ARG-MATCH is the number of the expression to be used as the button argument.
David Byers's avatar
X    
David Byers committed
847
FACE is the text face to apply to the button, or nil to use the default face.")
848

David Byers's avatar
X    
David Byers committed
849
(def-kom-var kom-url-viewer-preferences '("emacs"
850
851
                                          "windows"
                                          "w3")
David Byers's avatar
David Byers committed
852

853
  "*LysKOM will attempt to use URL viewers in the order specified here.
David Byers's avatar
David Byers committed
854
855
856
kom-url-managers is a list of all available viewers. Note that the elements
are all strings.

857
When you select a URL, this list is used to determine which URL
David Byers's avatar
David Byers committed
858
859
860
861
862
863
viewer to use in the following manner: Each element is in turn matched
against the manager regexp for each manager in kom-url-managers, and the
first manager found that matches is used to display the URL.

See kom-url-managers for a list of all available URL viewers. See
kom-netscape-command and kom-mosaic-command for information specific 
David Byers's avatar
David Byers committed
864
865
to some URL viewers."
  server)
866
867


David Byers's avatar
X    
David Byers committed
868
869
(def-kom-var kom-url-managers '(("default"
                            ".*"
870
                            "Browse-URL"
David Byers's avatar
X    
David Byers committed
871
872
                            lyskom-view-url-browse-url)
                           ("w3" 
873
874
875
			    "\\(http\\|gopher\\|ftp\\)"
			    "Emacs W3" 
			    lyskom-view-url-w3)
876
877
                           ("windows"
                            ".*"
878
                            "web browser"
879
                            lyskom-view-url-windows)
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
			   ("netscape"
			    ".*"
			    "Netscape Navigator"
			    lyskom-view-url-netscape)
			   ("\\(emacs\\|dired\\)"
			    "\\(ftp\\|file\\)"
			    "dired"
			    lyskom-view-url-dired)
			   ("\\(emacs\\|telnet-mode\\)"
			    "telnet"
			    "emacs telnet"
			    lyskom-view-url-telnet)
			   ("\\(emacs\\|mail-mode\\)"
			    "mailto"
			    "mail-mode"
			    lyskom-view-url-mailmode)
			   ("mosaic"
Peter Liljenberg's avatar
Peter Liljenberg committed
897
898
899
900
901
902
			    "\\(http\\|gopher\\|ftp\\|mailto\\|news\\|wais\\|file\\|telnet\\)"
			    "NCSA Mosaic"
			    lyskom-view-url-mosaic)
			   ("lynx"
			    "\\(http\\|gopher\\|ftp\\|mailto\\|news\\|wais\\|file\\|telnet\\)"
			    "Lynx"
Ulrik Haugen's avatar
Ulrik Haugen committed
903
904
905
906
907
			    lyskom-view-url-lynx)
			   ("galeon"
			    "\\(http\\|gopher\\|ftp\\|mailto\\|news\\|wais\\|file\\|telnet\\)"
			    "Galeon"
			    lyskom-view-url-galeon))
908
909

  "List of URL managers. Each element is a list consisting of
David Byers's avatar
David Byers committed
910
(MANAGER-REGEXP PROTOCOLS NAME VIEW-FUNCTION). When LysKOM attempts to
911
view a URL, kom-url-viewer-preferences is scanned, and the URL
David Byers's avatar
David Byers committed
912
913
914
manager whose MANAGER-REGEXP first matches an element in
kom-url-viewer-preferences and whose PROTOCOLS matches the protocol of
the selected URL is used to view the URL by calling its VIEW-FUNCTION
David Byers's avatar
X    
David Byers committed
915
with the URL and the manager entry as arguments.")
David Byers's avatar
David Byers committed
916

917
918
919
920
921
922
(def-kom-var kom-windows-browser-command ""
  "*Program to run to open a URL in Windows. If it is the empty
string, a couple of commands that are likely the work on Windows will
be tried."
  server)

David Byers's avatar
X    
David Byers committed
923
(def-kom-var kom-mosaic-command "/usr/local/bin/mosaic"
924
  "*Command to run to start Mosaic."
David Byers's avatar
David Byers committed
925
  server)
David Byers's avatar
David Byers committed
926

David Byers's avatar
X    
David Byers committed
927
(def-kom-var kom-netscape-command "netscape"
David Byers's avatar
David Byers committed
928
929
930
931
932
933
934
  "*Command to run to start Netscape.

If a string, it should be a command that starts Netscape with no
arguments. If a list, the first element must be a command that starts
Netscape. The remaining elements are used as arguments to Netscape.

For instance, a value of \"netscape\" is valid, but \"netscape -d host:0\"
David Byers's avatar
David Byers committed
935
936
is not. Instead, the latter should be \(\"netscape\" \"-d\" \"host:0\"\)"
  server)
David Byers's avatar
David Byers committed
937

Ulrik Haugen's avatar
Ulrik Haugen committed
938
939
940
941
942
943
944
945
946
947
948
(def-kom-var kom-galeon-command "galeon"
  "*Command to run to start Galeon.

If a string, it should be a command that starts Galeon with no
arguments. If a list, the first element must be a command that starts
Galeon. The remaining elements are used as arguments to Galeon.

For instance, a value of \"galeon\" is valid, but \"galeon --display host:0\"
is not. Instead, the latter should be \(\"galeon\" \"--display\" \"host:0\"\)"
  server)

Peter Liljenberg's avatar
Peter Liljenberg committed
949
950
951
(def-kom-var kom-lynx-terminal 'xterm
  "*Where to start Lynx.
Valid values are 'xterm (start Lynx in an xterm) and 'terminal (start
952
Lynx in Emacs terminal mode).")
Peter Liljenberg's avatar
Peter Liljenberg committed
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967

(def-kom-var kom-lynx-xterm-command
  '("xterm" "-geometry" "90x50+100+100" "-e" "lynx")
  "*Command to run to start Lynx in an xterm.
Must be a list of strings, where the first element is the name of the
xterm program, and the remaining elements are arguments to the
xterm. The last elements should be \"-e\" \"lynx\", or something similar,
to start Lynx.")

(def-kom-var kom-lynx-terminal-command "lynx"
  "*Command to run Lynx in Emacs terminal mode.

This can be either a string, to start Lynx with no arguments, or a
list of strings, where the first element is the command, and the rest
are arguments to Lynx.")
968

David Byers's avatar
X    
David Byers committed
969
(def-kom-var kom-confirm-multiple-recipients 'after
970
971
  "*Non-nil means ask the user for confirmation about recipients.
When the user writes a comment to a text with more than one recipient
972
973
he gets a y-or-n-p question for all recipients. 'before means check
before opening the edit buffer. Anything else means check before
David Byers's avatar
X    
David Byers committed
974
975
sending the article."
  server)
976

David Byers's avatar
David Byers committed
977
978
979
980
981
982
983
984
(def-kom-var kom-check-for-new-comments t
  "*Non-nil means check that no new comments have been written to a commented
texts since the last check. A list means check in all conferences except
those listed. A function means call the function and check if non-nil is
returned. The function is called with the commented text's text-stat as
an argument."
  server)

David Byers's avatar
X    
David Byers committed
985
(def-kom-var kom-check-commented-author-membership t
986
987
  "*Non-nil means check that the authors of the commented texts are
members of at least one of the recipient conferences. If not, offer to
David Byers's avatar
X    
David Byers committed
988
989
add them as recipients."
  server)
990

David Byers's avatar
X    
David Byers committed
991
(def-kom-var kom-inhibit-typeahead nil
992
  "*If non-nil, discard keyboard input that arrives while a LysKOM command is
David Byers's avatar
X    
David Byers committed
993
994
executing. "
  server)
995

David Byers's avatar
X    
David Byers committed
996
(def-kom-var kom-max-buffer-size nil
997
  "*If non-nil, ensure that buffers won't grow any larger than this."
998
  server)
David Byers's avatar
David Byers committed
999

1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
(def-kom-var kom-print-relative-dates t
  "*If non-nil, print today's and yesterday's date as \"today\" and
\"yesterday\" (respectively) in some places instead of the default,
numeric format."
  server)

(def-kom-var kom-print-seconds-in-time-strings nil
  "*If non-nil, include seconds, minutes and hours when printing
time in some places. If nil, only include minutes and hours."
  server)
1010

David Byers's avatar
David Byers committed
1011
(def-kom-var kom-show-namedays nil
1012
  "*Non-nil means display namedays when running in Swedish.
David Byers's avatar
David Byers committed
1013
1014
1015
This variable will eventually be replaced with something else."
  server)

David Byers's avatar
David Byers committed
1016
1017
1018
1019
1020
1021
1022
(def-kom-var kom-www-proxy nil
  "*Non-nil indicates a WWW proxy to use for the connection.
This is useful behind a firewall if the proxy supports the CONNECT
method. 

If this variable is a string, it is assumed to be a proxy
specification for all LysKOM servers. If it is a list, it is assumed
1023
1024
to be a list of pairs, (SERVER . PROXY), where SERVER is the server for
which PROXY specification is to be used. The special value t
David Byers's avatar
David Byers committed
1025
1026
1027
1028
1029
1030
can be used for SERVER to indicate a default proxy.

A proxy specification has the form \"HOST:PORT\" where HOST is the
host name of the proxy and PORT is the port to connect to. The :PORT
part is optional. If it is not specified, port 80 is assumed.")

1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
(def-kom-var kom-www-proxy-headers
  "User-Agent: Mozilla/4.7C-CCK-MCD  [en] (X11; I; SunOS 5.6 sun4u)"
  "*Headers to send to the proxy when connecting to LysKOM through a WWW
proxy. The value of this variable should either be a single string, which
is sent verbatim to the proxy, or a list of strings which will be sent to
the proxy separated by CRLF, or a list of elements like (NAME H1 H2 ... Hn)
where NAME is the name of a proxy and the remaining elements are headers
to send when connecting through that proxy.

Do not use this variable for proxy authentication.")



David Byers's avatar
X    
David Byers committed
1044
(def-kom-var kom-server-aliases
David Kågedal's avatar
David Kågedal committed
1045
  '(("kom.lysator.liu.se" . "LysKOM")
1046
    ("com.lysator.liu.se" . "LysCOM (LysKOM in English)")
David Kågedal's avatar
David Kågedal committed
1047
    ("kom.ludd.luth.se" . "LuddKOM")
1048
    ("kom.hem.liu.se" . "RydKOM")
1049
    ("kom.update.uu.se" . "UppKOM")
1050
    ("kom.mds.mdh.se" . "MdS-KOM")
1051
    ("kom.stacken.kth.se" . "TokKOM")
1052
    ("com.helsinki.fi" . "HesaKOM")
1053
    ("kom.cd.chalmers.se" . "CD-KOM")
1054
    ("community.roxen.com" . "Roxen Community KOM")
1055
    ("kom.ds.hj.se" . "DSKOM")
David Byers's avatar
David Byers committed
1056
    ("kom.sno.pp.se" . "SnoppKOM"))
David Byers's avatar
X    
David Byers committed
1057
  "*An alist mapping server names to shorter identification strings")
David Byers's avatar
David Byers committed
1058

David Byers's avatar
X    
David Byers committed
1059
1060
1061
(def-kom-var kom-ansaphone-on nil
  "t if automatic replies to personal messages are in effect."
  local)
1062

1063
1064
1065
1066
(def-kom-var kom-silent-ansaphone nil
  "*Non-nil if messages should not cause beeps when the ansaphone is on."
  server)

David Byers's avatar
X    
David Byers committed
1067
1068
1069
(def-kom-var kom-ansaphone-record-messages t
  "*t if messages are recorded while the ansaphone is on."
  server)
1070