english-strings.el 46 KB
Newer Older
1

Linus Tolke's avatar
Linus Tolke committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
;;;;;
;;;;; $Id$
;;;;; Copyright (C) 1991  Lysator Academic Computer Association.
;;;;;
;;;;; This file is part of the LysKOM server.
;;;;; 
;;;;; LysKOM is free software; you can redistribute it and/or modify it
;;;;; under the terms of the GNU General Public License as published by 
;;;;; the Free Software Foundation; either version 1, or (at your option) 
;;;;; 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. 
;;;;;
;;;; ================================================================
;;;; ================================================================
;;;;
Linus Tolke's avatar
Linus Tolke committed
29
;;;; File: english-strings.el
Linus Tolke's avatar
Linus Tolke committed
30
31
32
;;;;
;;;; This file contains all strings in the LysKOM elisp client.
;;;; Language:     English.
33
;;;; Matches version 36.11 of swedish-strings.el
Linus Tolke's avatar
Linus Tolke committed
34
35
36
37
38
39
40
41
42
;;;; ================================================================
;;;;


(setq lyskom-clientversion-long 
      (concat lyskom-clientversion-long
	      "$Id$\n"))


43
44
45
46
47
48
49
50
51
52
53
;;; ================================================================
;;; lyskom-edit-mode-map                             English version

(defvar lyskom-edit-mode-map nil
  "Mode map for LysKOM edit.")

;;; Set the keymap for lyskom-edit-mode

(if lyskom-edit-mode-map
    nil
  (setq lyskom-edit-mode-map (make-sparse-keymap))
54
55
56
  (define-prefix-command 'lyskom-edit-prefix)
  (define-prefix-command 'lyskom-edit-review-prefix)
  (define-prefix-command 'lyskom-edit-insert-prefix)
57
58
59
60
61
62
63
64
65
66
67
  (define-key lyskom-edit-mode-map "\C-c"	'lyskom-edit-prefix)
  (define-key lyskom-edit-mode-map "\C-c?"	'lyskom-help)
  (define-key lyskom-edit-mode-map "\C-cr"	'lyskom-edit-review-prefix)
  (define-key lyskom-edit-mode-map "\C-ci"	'lyskom-edit-insert-prefix)
  (define-key lyskom-edit-mode-map "\C-c\C-c"	'kom-edit-send)
  (define-key lyskom-edit-mode-map "\C-ck"	'kom-edit-quit)
  (define-key lyskom-edit-mode-map "\C-c\C-k"	'kom-edit-quit)
  (define-key lyskom-edit-mode-map "\C-cr?"	'lyskom-help)
  (define-key lyskom-edit-mode-map "\C-crc"	'kom-edit-show-commented)
  (define-key lyskom-edit-mode-map "\C-ci?"	'lyskom-help)
  (define-key lyskom-edit-mode-map "\C-cic"	'kom-edit-insert-commented)
68
  (define-key lyskom-edit-mode-map "\C-ci\C-y"	'kom-edit-insert-commented)
69
70
71
72
73
74
75
76
77
78
  (define-key lyskom-edit-mode-map "\C-ci1"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci2"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci3"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci4"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci5"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci6"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci7"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci8"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci9"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci "	'kom-edit-insert-text)
79
  (define-prefix-command 'lyskom-edit-add-prefix)
80
81
82
83
84
85
86
87
88
89
90
91
92
93
  (define-key lyskom-edit-mode-map "\C-ca" 'lyskom-edit-add-prefix)
  (define-key lyskom-edit-mode-map "\C-car" 'kom-edit-add-recipient)
  (define-key lyskom-edit-mode-map "\C-cac" 'kom-edit-add-copy)
  (define-key lyskom-edit-mode-map "\C-ca?" 'lyskom-help))


(defvar lyskom-header-separator
  (substitute-command-keys
   "\\<lyskom-edit-mode-map>\
--- Write below. \
Post: \\[kom-edit-send], \
Kill: \\[kom-edit-quit], \
Help: \\[describe-mode] ---")
  "*String to separate headers from text body.")
Linus Tolke's avatar
Linus Tolke committed
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111


(defvar lyskom-header-subject "Subject: "
  "*String to prompt for subject in the edit buffer.")


(defconst lyskom-strings 
  '(
    ; From vars.el: 
    ; From komtypes.el: nil
    ; From clienttypes.el: nil
    ; From startup.el:
    (server-q . "LysKOM server? (%#1s) ")
    (try-connect . "LysKOM elisp client version %#1s.\nAttempting to connect to %#2s.\n")
    (protocoll-error . "Protocol error. Servers says: %#1s")
    (connection-done . "Connection established. Server version is %#1s.\n\n")
    (what-is-your-name . "What is your name? ")
    (password . "Your Password? ")
112
    (wrong-password . "Password incorrect\n")
Linus Tolke's avatar
Linus Tolke committed
113
114
    (are-logged-in . "You are now logged on. Please wait...\n")
    (you-have-motd . "\nYou have a note on the door:\n\n")
115
116
    (presentation-encouragement .
     "You have not written a presentation. Please write a presentation by using the command p. If you do not want to write a presentations, type fk.\n")
Linus Tolke's avatar
Linus Tolke committed
117
118

    (first-greeting . "%#1s
David Byers's avatar
David Byers committed
119
This appears to be the first time you use LysKOM. Welcome!
Linus Tolke's avatar
Linus Tolke committed
120
Please make sure you have spelled your name correctly. You should use your
121
full name and organisation, eg. \"Joe Hacker, MIT\". If you spelled your name
Linus Tolke's avatar
Linus Tolke committed
122
123
124
incorrectly, or you wish to change it, answer 'no' to the question below.

For the time being the LysKOM server stores most of the information so that
125
anybody can read it. Only passwords are encrypted.
Linus Tolke's avatar
Linus Tolke committed
126
127
128
129
130
131
132
133

If you ar uncertain about how to use LysKOM, you can retreive a manual by
anonymous ftp to ftp.lysator.liu.se. Ask your system administrator for help
on how to do this.")

    (is-name-correct . "Is the name %#1s correct? ")
    (personal-password . "Enter a personal password: ")
    (repeat-password . "Repeat for confirmation: ")
David Byers's avatar
David Byers committed
134
    (repeat-failure . "The passwords were not the same.\n")
Linus Tolke's avatar
Linus Tolke committed
135

David Byers's avatar
David Byers committed
136
    (could-not-create-you .  "LysKOM couldn't create that user.\n")
Linus Tolke's avatar
Linus Tolke committed
137
138
139
    (presentation-subject . "%#1s")
    (presentation-form . "Name:\t\nAddress:\t\n\t\nTelephone:
Email-address:\n\nOther:\t")
140
    (presentation-help . "You are writing your presentation.\n")
Linus Tolke's avatar
Linus Tolke committed
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
    (not-present-anywhere . "Not in any conference.")



    ; From internal.el:
    (shaky-tcp . "At the moment I can't reach the server. The TCP/IP connection is shaky%#1s")
    (retrying-tcp . "Retrying.")

    ; From parse.el:
    ; No entries.

    ; From services.el:
    ; No entries.

    ; From cache.el:
    ; No entries.

    ; From commands1.el:
    (appreciation . "Tap, tap.\n\n")
    (abuse . "Thomp! Ouch!")


163
    (what-conf-to-delete . "Conference/user to delete: ")
Linus Tolke's avatar
Linus Tolke committed
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
    (confirm-delete-pers-or-conf . "Really delete %#1s %#2s? ")
    (the-pers . "the user")
    (the-conf . "the conference")
    (deletion-not-confirmed . "Delete canceled\n")
    (somebody-else-deleted-that-conf . "Somebody else just deleted the conference.\n")
    (conf-is-deleted . "Ok, %#1s has now been deleted.\n")
    (you-could-not-delete . "%#1s can't be deleted by you.\n")

    (what-text-to-delete . "Article to remove?")
    (deleting-text . "Removing article %#1d...")

    (presentation-for-whom . "Which conference/user: ")
    (somebody-deleted-that-conf . "Somebody just deleted that conference.\n")
    (review-presentation-of . "Review presentation of %#1s.\n")
    (has-no-presentation . "%#1s has no presentation.\n")

    (have-to-read . "You must read an article first.\n")

182
    (review-text-no . "Review article %#1d.\n")
Linus Tolke's avatar
Linus Tolke committed
183
184
    (no-comment-to . "There is no commented article.\n")

185
    (who-letter-to . "Send a letter to whom: ")
Linus Tolke's avatar
Linus Tolke committed
186
187
188
    (has-motd . "%#1s has a note on the door:\n\n")
    (motd-persist-q . "Send the letter? ")

189
190
191
    (who-to-add . "Whom do you want to add: ")
    (where-to-add . "To which conference: ")
    (where-to-add-self . "Subscribe to which conference: ")
Linus Tolke's avatar
Linus Tolke committed
192
193
194
195
    (priority-q . "Conference priority? (0 (low) - 255 (high)) ")
    (done . "done.\n")
    (nope . "didn't work.\n")

196
197
198
199
    (cant-find-supervisor . "Can't find supervisor of %#1s.\n")
    (is-read-protected-contact-supervisor . "%#1s \344r closed.
Send a letter to  %#2s to be granted membership.")

200
    (conf-does-not-exist . "\nThe conference doesn't exist.\n")
Linus Tolke's avatar
Linus Tolke committed
201

202
203
    (who-to-exclude . "Whom do you want to unsubscribe: ")
    (where-from-exclude . "From which conference: ")
Linus Tolke's avatar
Linus Tolke committed
204

205
    (leave-what-conf . "Unsubscribe to which conference: ")
Linus Tolke's avatar
Linus Tolke committed
206
207
208
209

    (error-fetching-person . "Error fetching user.\n")
    (error-fetching-conf . "Error fetching conference.\n")

210
211
    (name-of-conf . "Conference name: ")
    (anyone-member . "May anyone subscribe? ")
Linus Tolke's avatar
Linus Tolke committed
212
    (secret-conf . "Secret conference? ")
213
    (comments-allowed . "Are comments permitted? ")
214
    (what-comment-no . "Comment article number: ")
Linus Tolke's avatar
Linus Tolke committed
215
216
    (confusion-what-to-comment . "I can't figure out which article you want to comment.\n")
    (confusion-what-to-footnote . "I can't figure out to which article you want to write a footnote to.\n")
217
    (what-private-no . "Private reply to article number: ")
Linus Tolke's avatar
Linus Tolke committed
218
219
220

    (confusion-who-to-reply-to . "I can't figure out which article you want to write a private reply to.\n")
    (confusion-what-to-answer-to . "I can't figure out which article you want write a reply to.")
221
    (quit-in-spite-of-unsent . "You have an unsent article. Do you really want to quit? ")
Linus Tolke's avatar
Linus Tolke committed
222
223
    (really-quit . "Do you really want to quit LysKOM? ")
    (session-ended . "
224
225
226
227
--------------------------------------------
  LysKOM session finished
  You are now disconnected from the server
--------------------------------------------\n")
Linus Tolke's avatar
Linus Tolke committed
228
229
230
    (what-to-change-pres-you . "Change presentation of what/who (yourself): ")
    (who-to-put-motd-for . "Post note on the door of who/what (yourself): ")

231
    (cant-get-conf-stat . "Cannot get the status of that conference.")
232
    (go-to-conf-p . "Go to conference: ")
Linus Tolke's avatar
Linus Tolke committed
233
234
235
236
237
    (want-become-member . "Subscribe? ")
    (no-ok . "Okiedokie, whatever you say.\n")

    (who-to-remove-motd-for . "Remove note from the door of who/what: ")

238
    (conf-all-read . "%#1s - no unread articles.\n")
Linus Tolke's avatar
Linus Tolke committed
239
240
241
242
243
    (no-in-conf . "You are not present in any conference.\n")

    (search-for-pers . "Enter search key (RETURN for all users) ")
    (search-for-conf . "Enter search key (RETURN for all conferences) ")
    (name-to-be-changed . "Name to change: ")
244
    (no-such-conf-or-pers . "The conference or user doesn't exist.\n")
Linus Tolke's avatar
Linus Tolke committed
245
    (new-name . "New name: ")
246
247
    (who-to-change-supervisor-for . "Change supervisor of who/what: ")
    (new-supervisor . "New supervisor: ")
248
249
250
    (text-to-mark . "Mark which article: ")
    (text-to-unmark . "Unmark which article: ")
    (what-mark . "Set which mark: ")
Linus Tolke's avatar
Linus Tolke committed
251
252
253
254
    (unmarking-textno . "Unmarking article %#1d...")
    (marking-textno . "Marking article %#1d...")

    (new-passwd-again . "Repeat the new password for confirmation: ")
255
256
    (what-mark-to-view . "Review which mark: ")
    (whos-passwd . "Change password for whom (yourself): ")
Linus Tolke's avatar
Linus Tolke committed
257
258
259
    (old-passwd . "Your old password: ")
    (new-passwd . "Your new password: ")
    (changing-passwd . "Changing password...")
David Byers's avatar
David Byers committed
260
    (retype-dont-match . "You didn't reenter the same passwrod. Try again.\n")
Linus Tolke's avatar
Linus Tolke committed
261
262
263
264
265
    (palindrome . "(a palindrome!) ")
    (lyskom-name . "User")
    (is-in-conf . "In conference")
    (from-machine . "At")
    (is-doing . "Activity")
266
    (text-to-add-recipient . "Add recipient to which article: ")
267
    (text-to-add-copy . "Add recipient of carbon copy of which article: ")
268
269
270
    (text-to-delete-recipient . "Remove recipient from which article: ")
    (text-to-add-comment-to . "Add comment to which article: ")
    (text-to-delete-comment-from . "Remove comment from which article: ")
Linus Tolke's avatar
Linus Tolke committed
271

272
    (where-on-list-q . "Placement in your list? (0-%#1d) ")
Linus Tolke's avatar
Linus Tolke committed
273
274
275
276
277
278
    (member-in-conf . "Subscribe to %#1s...")
    (add-member-in . "Adding %#1s as a subscriber to %#2s...")
    (unsubscribe-to . "Unsubscribe from %#1s...")

    (exclude-from . "Unsubscribing %#1s from %#2s...")

279
    (unsubscribe-failed . "\nDidn't work. Perhaps %#1s doesn't subscribe to %#2s?\n")
Linus Tolke's avatar
Linus Tolke committed
280
281
282
283
284
285

    (You . "You")
    (could-not-create-conf . "Couldn't create the conference \"%#1s\".\nError: %#2d.\n")
    (created-conf-no-name . "Conference number %#1d %#2s has been created.\n")
    (cant-read-textno . "You are not permitted to read article %#1d")

286
287
    (not-supervisor-for . "You are not the supervisor of %#1s.\n")
    (not-supervisor-for . "You are not the supervisor of %#1s.\n")
Linus Tolke's avatar
Linus Tolke committed
288
289
    (go-to-conf . "Go to conference %#1s.\n")
    (cant-go-to-his-mailbox . "You are not permitted to go to %#1ss mailbox.\n")
David Byers's avatar
David Byers committed
290
    (not-member-of-conf . "You don't subscribe to %#1s.\n")
Linus Tolke's avatar
Linus Tolke committed
291
    (change-name-done . "\nDone. New name: %#1s.\n")
292
293
    (change-name-nope . "\nDidn't work. Error code %#3d. %#2s.\n")
    (change-supervisor-from-to . "Change supervisor of %#1s to %#2s...")
Linus Tolke's avatar
Linus Tolke committed
294
    (change-supervisor-nope . 
295
     "\nDidn't work. Perhaps you are not permitted to change the supervisor of %#1s?\n")
Linus Tolke's avatar
Linus Tolke committed
296
297
298
299
300
301
    
    (no-marked-texts . "You have no marked articles.\n")
    (no-marked-texts-mark . 
     "You have no marked any articles with mark %#1d.\n")
    (time-is . "The time is %4#1d-%02#2d-%02#3d %02#4d:%02#5d:%02#6d %#7s(according to the server).\n")
    (total-users . "    A total of %#1d users.\n")
302
    (who-to-add-q . "Add who/what as a recipient: ")
303
    (who-to-add-copy-q . "Add which conference/user as recipient of a carbon copy: ")
304
    (who-to-sub-q . "Remove who/what as a recipient: ")
305

Linus Tolke's avatar
Linus Tolke committed
306
    (adding-name-as-recipient . "Adding %#1s as recipient of article %#2d...")
307
    (adding-name-as-copy . "%#1s will receive a carbon copy of article %#2d...")
Linus Tolke's avatar
Linus Tolke committed
308
309
    (remove-name-as-recipient .
     "Removing %#1s as recipient of article %#2d...")
310
311
    (text-to-add-q . "Add which article as a comment: ")
    (text-to-remove-q . "Remove which article as a comment: ")
Linus Tolke's avatar
Linus Tolke committed
312
313
    (add-comment-to . "Adding article %#1d as a comment to text %#2d...")
    (sub-comment-to . "Removing article %#1d as a comment to article %#2d...")
314
    (comment-keep-recpt-p ."Shall %#1s remain a recipient? ")
Linus Tolke's avatar
Linus Tolke committed
315
316
317
318
319
320

    ; From commands2.el:

    (your-memberships . "Your LysKOM conference subscriptions:\n")
    (memberships-header . "Last access	   Prio	Unread	Conference\n")
    
321
    (conf-for-status . "Get status of which conference: ")
David Byers's avatar
David Byers committed
322
    (no-such-conf . "The conference doesn't exist.")
Linus Tolke's avatar
Linus Tolke committed
323
324
325
326
327
    (status-record . "Status of conference %#1s (%#2s) %#3s\n\n")
    (Mailbox . "Mailbox")
    (Protected . "Protected")
    (no-comments . "No comments")
    (closed . "Closed")
328
329
330
331
332
333
334
                   
    (created-by . "Created by %31#1s %#2s\n")
    (created-at . "Created:%34#1s\n")
    (members .    "Number of subscribers: %19#1d\n")
    (garb-nice . "Expiration time (in days):%16#1d\n")
    (lowest-local-no . "Lowest local number: %21#1d\n")
    (highest-local-no . "Highest local number: %20#1d\n")
Linus Tolke's avatar
Linus Tolke committed
335
    (last-text-time . 
336
337
338
339
     "Time of last article: %20#1s (accordning to your cache)\n")
    (no-of-motd . "Note on the door in article: %13#1d\n")
    (superconf-is-no-name . "Superconference:       %19#1d %#2s\n")
    (permitted-submitters-no-name . "Admitted authors:%25#1d %#2s\n")
340
    (supervisor-is-no-name . "Supervisor:     %27#1d %#2s\n")
Linus Tolke's avatar
Linus Tolke committed
341
342
343
344
345
346
    (presentation-no . "Presentation:    %25#1d\n")
    (conf-has-motd . "\n%#1s has a note on the door:\n")

    (Everybody . "Everyone")
    (show-members-list-also-q . "List subscribers? ")
    (conf-has-these-members . "\n%#1s has the following subscribers:\n")
347
    (member-list-header . "Last entered       Unread  Name\n\n")
Linus Tolke's avatar
Linus Tolke committed
348
    (secret-membership . "*** Secret line ***\n")
349
    (pers-for-status . "Get status of which user: ")
David Byers's avatar
David Byers committed
350
    (no-such-pers . "The user doesn't exist.")
351
    (pers-status-record . "Status of user %#1s (%#2d)\n")
Linus Tolke's avatar
Linus Tolke committed
352
    (created-time .  "Created:%34#1s\n\n")
353
354
355
356
357
358
359
    (created-confs . "Conferences created:%22#1d\n")
    (created-persons . "Users created:%28#1d\n")
    (created-texts . "Articles created:%25#1d\n")
    (created-lines . "Lines created:%28#1d\n")
    (created-chars . "Characters created:%23#1d\n")
    (no-of-sessions . "Session count:%28#1d\n")
    (present-time-d-h-m-s . "Total presence:%16#1d d %02#2d:%02#3d:%02#4d\n")
Linus Tolke's avatar
Linus Tolke committed
360
    (last-log-in . "Last session:%29#1s\n")
361
    (user-name . "User: %36#1s\n")
Linus Tolke's avatar
Linus Tolke committed
362
363

    (read-texts . "Articles read:%28#1d\n")
364
365
    (time-for-last-letter . "Time of last letter:%22#1s (accordning to your cache)\n")
    (superconf . "Superconference:%26#1d %#2s\n")
366
    (supervisor . "Supervisor:%32#1d %#2s\n")
367
368
369
    (member-of-confs . "Subscribed to (conferences):%14#1d\n")
    (presentation . "Presentation:    %25#1d\n")
    (show-membership-list-also-q . "List subscriptions? ")
Linus Tolke's avatar
Linus Tolke committed
370
371
    (not-allowed-see-confs . "You are not premitted to see which conferences %#1s subscribes to.\n")
    (is-member-of . "\n%#1s subscribes to the following conferences:\n")
372
373
    (membership-list-header . "Last access       Unread Conference\n\n")
    (who-to-send-message-to . "Send message to whom? (Everyone) ")
Linus Tolke's avatar
Linus Tolke committed
374
375
    (his-total-unread . "\n%#1s has a total of %#2d unread articles.\n")
    (message-prompt . "Message: ")
376
377
    (message-sent-to-user .
     "================================================================
378
Your message for %#2s:
379
380
381
382
383
384
385
386
387
388
389

%#1s
----------------------------------------------------------------
")
    (message-sent-to-all . 
     "================================================================
Your public message:

%#1s
----------------------------------------------------------------
")
Linus Tolke's avatar
Linus Tolke committed
390
    (message-nope .
391
     "Unable to send the message. Perhaps the recipient isn't logged on.\n")
392
    (only-last . "Last (0 - %#1d) by %#2s: ")
Linus Tolke's avatar
Linus Tolke committed
393
    (only-error . "Something went wrong. Sorry.\n")
394
    
Linus Tolke's avatar
Linus Tolke committed
395
396
397
398
399
400
401
402
403
    (you-have-unreads . "You have %#1d unread articles in %#2s\n")
    (you-have-an-unread . "You have 1 unread article in %#1s\n")
    (you-have-read-everything . "No news (is bad news).\n")
    (total-unreads . "\nYou have %#1d unread articles.\n")
    (total-unread . "\nYou have 1 unread article.\n")
    (waiting-for-anything .
     "You are waiting for an article in any conference.\n")
    (waiting-higher-than . 
     "You are waiting for an article in any conference with a priority higher than %#1d.\n")
404
    
405
    (have-to-be-in-conf-with-unread . "You must go to a non-empty conference first.\n")
Linus Tolke's avatar
Linus Tolke committed
406
407
408
409
410
    (Texts . "Article")
    (Date . "Date")
    (Lines . "Lines")
    (Author . "  Author")
    (Subject . "  Subject")
David Byers's avatar
David Byers committed
411
    (could-not-read . "You couldn't read the article (%#1d).\n")
Linus Tolke's avatar
Linus Tolke committed
412
    (multiple-choice . "There are several alternatives.")
413
    (does-not-exist . "Unknown command.") ; Only people fixing bugs or recieving bug-reports should change these:
414
415

    ; Only people fixing bugs or recieving bugg-reports should change these:
416
417
    (buggrepport-compilestart . "Creating bug report...")
    (buggrepport-compileend . "Creating bug report...done")
418
419
    (buggreport-description . "This is what I was doing:
(Fill in your comments below)\n\n\n
420
421
422
423
424
425
Among the information below are the 100 most recently pressed keys from
your emacs. If you recently logged on, you password may be contained in
this list. If that is the case, change the characters corresponding to
your password to asterisks.

When you have completed writing this, send your bug report to the LysKOM
426
427
428
429
430
developers. You can do this either by email to bug-lyskom@lysator.liu.se or
through Lysator's LysKOM in the conference \"LysKOM; Elispkilentens
buggrapporter\", or if nothing else works, you can send a normal letter to
Lysator, c/0 ISY, Linkoping Univerity, S-581 83 Linkoping, SWEDEN.
Mark the envelope with \"LysKOM bug report\"\n\n")
Linus Tolke's avatar
Linus Tolke committed
431
432
    (buggreport-internals . "LysKOM's internal information:\n\n")
    (buggreport-version . "lyskom-version:")
433
434
435
    (buggreport-emacs-version . "emacs-version:")
    (buggreport-system-id . "system-id:")
    (buggreport-ctl-arrow-doc . "ctrl-doc:")
Linus Tolke's avatar
Linus Tolke committed
436
    (buggreport-unparsed . "\nlyskom-unparsed-buffer:")
437
    (buggreport-command-keys . "Recently pressed keys:")
Linus Tolke's avatar
Linus Tolke committed
438
439
    (buggreport-backtrace . "\n*Backtrace*:\n%#1s\n")
    (buggreport-communications . "\nlyskom-debug-communications-to-buffer-buffer:")
440
    (buggreport-all-kom-variables . "\n\nOther variables:\n***** *********")
Linus Tolke's avatar
Linus Tolke committed
441
442
443
    (buggreport-instead-of-byte-comp . "byte-code(\"byte-string\"")
    (buggreport-subject . "Bugreport elisp-client version %#1s")

444

Linus Tolke's avatar
Linus Tolke committed
445
446
447
448
    (not-logged-in . "You are not logged on.  ")
    (name-is-not-in-conf . "%#1s is in any conference.\n")
    (name-is-in-conf . "%#1s is in\n%#2s\n")
    (connected-during . "Connect time: %#1d seconds.\n")
449

450
    (conf-to-set-permitted-submitters-q . "For which conference do you want to set the admitted authors: ")
451
    (conf-to-set-super-conf-q . "Set superconference of which conference: ")
452
453
    (new-super-conf-q . "Which conferece do you want as superconference: ")
    (new-permitted-submitters-q . "Admit members of which conference as authors in %#1s (all): ")
454
    (super-conf-for-is . "Changing superconference of %#1s to %#2s...")
455
456
    (permitted-submitters-removed-for-conf . "Admitting all authors to conference %#1s...")
    (submitters-conf-for-is . "Changing authors admitted to conference %#1s to the members of %#2s...") 
457
   
458
459
    (conf-to-set-garb-nice-q . "Set expiration time for which conference: ")
    (new-garb-nice-q . "What do you want to set the expiration time to: ")
Linus Tolke's avatar
Linus Tolke committed
460
461
462
463
464
465
466
467
468
469
470
471
    (garb-nice-for-is . "Changing expiration for %#1s to %#2d...")

    (really-shutdown . "Are you sure you want to shut down the server? ")
    (closing-server . "Shutting down the server...")
    (administrator . "administrator")
    (no-longer-administrator . "a regular user again")
    (you-are-now . "Ok, you are now running as %#1s.\n")
    (setting-motd . "Changing login message to article %#1d.\n")
    (set-motd-success . "You have set a new login message.\n")
    (set-motd-failed . "Didn't work. Perhaps you were not an administrator.\n")
    (removing-motd . "Removing the login message.\n")
    (removed-motd . "You have removed the login message.\n")
472
    (who-to-throw-out . "Which session do you want to kill: ")
Linus Tolke's avatar
Linus Tolke committed
473
    (throwing-out . "Killing session %#1d... ")
474
    (postpone-prompt . "How much do you want to read now: ")
Linus Tolke's avatar
Linus Tolke committed
475
476
477
478

    ; From review.el:
    (latest-n . "last %#1d")
    (first-n . "first %#1d")
479
    (info-by-whom . "%#1s by whom: ")
Linus Tolke's avatar
Linus Tolke committed
480
481
482
483
    (info-to-conf . "%#1s to conference: ")
    (info-by-to . "%#1s by %#2s to %#3s forward.")
    (all-confs . "all conferences")
    (no-get-conf . "You are not permitted to access that conferene.\n")
484
    (no-get-pers . "You are not permitted to access that user.\n")
Linus Tolke's avatar
Linus Tolke committed
485
486
487
488
489
490
491
492
493
494
    (no-review-info . "You are not permitted to review %#1s\n")
    (review-info . "Review %#1s\n")
    (you-review . "You are now reviewing %#1s.\n")
    (read-text-first . "You must read a article first.\n")
    (cannot-read-last-text . "You cannot review the last read article.\n")
    (review-n-texts . "Review %#1d articles.\n")
    (review-marked . "Review %#1d marked articles.\n")
    (review-text-no . "Review article %#1d")
    (review-one-comment . "Review one comment to article %#1d.\n")
    (review-many-comments . "Review %#2d comments to article %#1d.\n")
495
    (read-normally-read . "How many articles to you want to review: ")
Linus Tolke's avatar
Linus Tolke committed
496
497

    ; From edit-text.el:
498
    (press-C-c-C-c . "Enter C-c C-c to post the article.")
Linus Tolke's avatar
Linus Tolke committed
499
500
501
502
    (recipient . "Recipient:")
    (carbon-copy . "Carbon copy:")
    (text-mass . "%#4s%#1s\n%#2s\n%#3s")
    (comment-to-by . "%#1s to article %#2d%#3s.\n")
503
    (already-sent . "You have already posted this article. Post it anyway? ")
Linus Tolke's avatar
Linus Tolke committed
504
    (subject . "Subject: ")
505
    (which-text-include . "Include which article: ")
Linus Tolke's avatar
Linus Tolke committed
506
507
508
509
    (added-recipient . "Recipient: ")
    (added-carbon-copy . "Carbon copy to conference: ")
    (conf-has-motd-no . "The conference has a note on the door. (%#1d)\n\n%#2s")
    (still-want-to-add . "Do you still want to add the conference as a recipient? ")
510
    (could-not-create-text . "\nCouldn't create the article. Error: %#2s.\n")
Linus Tolke's avatar
Linus Tolke committed
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
    (no-get-text . "You were not permitted to retreive the article.")


    ; From view-text.el:
    (line . " /1 line/ ")
    (lines ." /%#1d lines/ ")

    (marked-by-you . "Marked by you.\n")
    (marked-by-you-and-one . "Marked by dig and someone else.\n")
    (marked-by-you-and-several . "Marked by you and %#1d other users.\n")
    (marked-by-one . "Marked by 1 user.\n")
    (marked-by-several . "Marked by %#1d users.\n")

;; The format of this function should coincide with the format of the 
;; lyskom-text-start variable. DONT change one without changing the other.

; used by lyskom-print-time
    (time-y-m-d-h-m . "%4#1d-%02#2d-%02#3d  %02#4d:%02#5d ")
; used by lyskom-return-time
    (time-yyyy-mm-dd-hh-mm . "%4#1d-%02#2d-%02#3d %02#4d:%02#5d")
David Byers's avatar
David Byers committed
531
    (no-such-text-no . "The article doesn't exist. (%#1d)\n")
Linus Tolke's avatar
Linus Tolke committed
532
533
534
535

    (head-Subject . "Subject: ")
    (Recipient . "Recipient")
    (Extra-recipient . "CC")
536
537
    (send-at . "   Posted:     %#1s\n")
    (sent-by . "   Posted by ")
Linus Tolke's avatar
Linus Tolke committed
538
539
540
541
542
543
544
545
546
547
548
    (recieved-at . "    Received: %#1s\n")
    (written-by . "by %#1s")
    (comment-to-text-by . "Comment to article %#1d %#2s\n")
    (footnote-to-text-by . "Footnote to article %#1d %#2s\n")
    (comment-in-text-by . "Comment in article %#1d %#2s\n")
    (footnote-in-text-by . "Footnote in article %#1d %#2s\n")

    ; From async.el:

    (name-has-changed-to-name . "%#1s has changed name to %#2s")
    (name-has-changed-to-name-r . "%#1s has changed name to %#2s\n")
549
    (you-changed-name-to . "You have now changed your name to %#1s.\n")
Linus Tolke's avatar
Linus Tolke committed
550
551
552
553
554
555
556
557
558
559
560
561
562
    (database-sync . "Synching database.")
    (lyskom-is-full . "\
===========================================================
Message from the LysKOM-system: Somebody tried to connect,
but failed since all connections available to LysKOM are in
use. Please try later.
===========================================================\n")
    (has-entered . "%#1s has logged onto LysKOM.")
    (has-entered-r . "%#1s has logged onto LysKOM.\n")
    (has-left . "%#1s has left LysKOM.")
    (has-left-r . "%#1s has left LysKOM.\n")
    (unknown . "unknown")

563
564
565
566
567
568
569
570
571
572
573
574
575
576
    (message-broadcast .
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public message from %#1s (%#3s):

%#2s
----------------------------------------------------------------
")
    (message-from . 
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Personal message from %#1s (%#3s):

%#2s
----------------------------------------------------------------
")
Linus Tolke's avatar
Linus Tolke committed
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
    (text-is-created . "Article %#1d has been created!")


    ; From completing-read.el:

    (person-or-conf-no-regexp . "\\`[ \t]*[mpMP]\\w*[ \t]+\\([0-9]+\\)\\'")

    ; From prioritize.el:
    (cannot-get-membership . "Cannot retreive your subscription list.")
    (cannot-get-pers-stat . "Cannot retreive your personal status.")
    (your-membship . "Your subscriptions:
  Prio Conf# Conference\n")
    (prio-row . " %5#1d%5#2d  %#3s\n")
    (too-high-goto-2 . "You are too high,  move down to line two.")
    (too-low-go-up . "You can't push the last line. Move up one line.")
    (all-confs-popped .  "All conferences have been popped.")
    (prio-died . "Couldn't complete the move. Sorry. Kill the buffer.")
    (new-priority . "New priority? (0 (low) - 255 (high)) ")
    (new-prio . "%6#1d")

    ; From flags.el:
    (saving-settings . "Saving options")
    (hang-on . "Wait a moment...\n")
    (could-not-create-area . "Couldn't create the article.\n")
    (could-not-set-user-area . "Couldn't alter the user-area. The server says error: %#1d\n")
    (you-dont-exist . "You don't exist. Go away.\n")

    ; From elib-string.el:
    ; No entries.

    ; From lyskom-rest.el:

    (error-code . "Error code %#2d: %#1s.\n")
    (extended-command . "LysKOM: ")
    (wait-for-server . "LysKOM is waiting for a response from the server. Wait for the prompt.\n")
    (review-text-q . "Review article: ")
    (review-text-no . "Review article %#1d.\n")

    (completely-read-conf . "You have seen all the articles in this conference.\n")
    (not-in-any-conf . "You are not in a conference now.\n")

    (all-conf-unread-r . "You have nothing unread.\n")
    (all-conf-unread-s . "You have nothing unread. ")
    (one-unread . " - one unread article\n")
    (several-unread . " - %#1d unread articles\n")

623
    (save-on-file-q . "Save which article in file: (%#1s) ")
Linus Tolke's avatar
Linus Tolke committed
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
    (wait-for-prompt . "Wait for the prompt!")
    (go-to-pri-conf-prompt . "Go to next prioritized conference")
    (read-pri-text-conf . "Read next prioritized article")
    (review-next-text-prompt . "Review next article")
    (review-next-comment-prompt . "Review next comment")
    (review-next-marked-prompt . "Review next marked article")
    (read-next-letter-prompt . "Read next letter")
    (read-next-footnote-prompt . "Read next footnote")
    (read-next-comment-prompt . "Read next comment")
    (read-next-text-prompt . "Read next article")
    (go-to-conf-of-marked-prompt . "Review next marked")
    (go-to-next-conf-prompt . "Go to next conference")
    (go-to-your-mailbox-prompt . "Go to your mailbox")
    (the-command . "Command:%#1s")
    (error-in-do-when-starting . "Error in your kom-do-when-starting. %#1s\n")

    (give-a-number . "Enter a number: ")

    (yes-regexp . "\\`[yY][eE][sS]\\'")
    (no-regexp . "\\`[nN][oO]\\'")
    (yes-or-no-nag . "Answer yes or no.")
    (yes-or-no . "(yes or no) ")

647
    (y-or-n-instring . "yYnN")
Linus Tolke's avatar
Linus Tolke committed
648
649
    (j-or-n-nag . "Answer y or n. ")
    (j-or-n . "(y or n) ")
650
    (y-instring . "yY")
Linus Tolke's avatar
Linus Tolke committed
651

652
    (person-does-not-exist . "User %#1d (does not exist).")
Linus Tolke's avatar
Linus Tolke committed
653
654
655
656
657
658
659
660
661
662
663
    (conf-does-not-exist . "Conference %#1d (does not exist).")

    (process-signal . "Signal from the process.")
    (closed-connection . "
**************************************************
LysKOM session killed abnormallly
Error message: %#1s**************************************************")
    (error-not-found . "Error code %#1d. No explanation available.")

    ; Useful in more place than one:
    (illegal-command . "Illegal command.\n")
David Byers's avatar
David Byers committed
664
665
    (no-such-text . "The article doesn't exist.\n")
    (no-such-text-m . "The article doesn't exist.")
Linus Tolke's avatar
Linus Tolke committed
666
667
668
669
670
671
672
673
    (everybody . "everyone")
    (anybody . "anyone")
    (forward . "forward")
    (backward . "backward")
    (wait . "Wait a moment...\n")
    (comment . "Comment")
    (footnote . "Footnote")
    (by . " by %#1s")
674
    (text-created .  "Article %#1d has been created.\n")
Linus Tolke's avatar
Linus Tolke committed
675
676
677
678
679
680
681
682
683
684
685
686
    )
  "Assoc list containing pairs of atoms and strings")



;;; ================================================================
;;;              The commands and their associated functions


(defconst lyskom-commands
  '(
    (describe-mode              "Help")
687
688
    (kom-slow-mode		"Long commands")
    (kom-quick-mode		"Short commands")
Linus Tolke's avatar
Linus Tolke committed
689
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
715
    (kom-send-message           "Send message")
    (kom-create-conf		"Create conference")
    (kom-delete-conf            "Delete conference")
    (kom-delete-text            "Remove article")
    (kom-display-time		"Time")
    (kom-go-to-conf		"Go (to) conference")
    (kom-go-to-next-conf	"(Go to) next conference")
    (kom-jump			"Skip (all) comments")
    (kom-list-conferences 	"List conferences") 
    (kom-list-persons		"List users")
    (kom-list-news              "List news")
    (kom-membership		"List subscriptions")
    (kom-postpone		"Postpone reading")
    (kom-prioritize		"Prioritize conferences")
    (kom-status-person		"Status (of) user")
    (kom-status-conf		"Status (of) conference")
    (kom-add-self		"Subscribe (to) conference")
    (kom-list-summary		"List article (subjects)")
    (kom-sub-self               "Unsubscribe (to) conference")
    (kom-quit			"Quit")
    (kom-recover		"Recover") 
    (kom-start-anew		"New User")
    (kom-view			"Review article")
    (kom-find-root-review	"Review tree")
    (kom-review-comments	"Review all comments")
    (kom-review-tree		"Review all comments recursively")
    (kom-review-clear           "Review and skip")
716
717
    (kom-review-last-normally-read
     				"Review again")
718
    (kom-review-noconversion	"Review unconverted")
Linus Tolke's avatar
Linus Tolke committed
719
720
    (kom-review-next            "Review next")
    (kom-find-root		"Review original (article)")
David Byers's avatar
David Byers committed
721
    (kom-review-by-to           "Review last")
Linus Tolke's avatar
Linus Tolke committed
722
723
724
725
726
727
728
729
730
731
732
733
    (kom-view-commented-text    "Review (the) commented (article)")
    (kom-review-stack           "Review stack")
    (kom-review-presentation    "Review presentation")
    (kom-review-backward        "(Review) Backwards")
    (kom-view-next-text		"(Read) next article")
    (kom-who-is-on		"Who (is on)") 
    (kom-display-who-buffer	"Display who (list)")
    (kom-busy-wait		"Wait (for news)")
    (kom-write-comment		"(Write) comment")
    (kom-comment-previous	"(Write) comment (to) previous article")
    (kom-write-footnote         "(Write) footnote")
    (kom-private-answer         "(Write) personal reply (by letter)")
734
735
    (kom-private-answer-previous
     "(Write) personal (reply to) previous article (by letter)")
Linus Tolke's avatar
Linus Tolke committed
736
737
738
739
740
    (kom-set-unread		"Only (the) last")
    (kom-write-text		"Write (an) article")
    (kom-send-letter		"Write (a) letter")
    (kom-change-name		"Change name")
    (kom-change-password        "Change password")
741
    (kom-change-supervisor	"Change supervisor")
Linus Tolke's avatar
Linus Tolke committed
742
743
744
745
746
747
748
749
    (kom-change-presentation	"Change presentation")
    (kom-get-appreciation       "(Please) pat my head")
    (kom-get-abuse              "(Please) kick my butt")
    (kom-mark-text              "Mark (article)")
    (kom-unmark-text            "Unmark (article)")
    (kom-review-marked-texts    "Review marked (articles)")
    (kom-review-all-marked-texts "Review all marked (articles)")
    (kom-add-recipient          "Add recipient")
750
    (kom-add-copy		"Add (recipient of) carbon copy")
Linus Tolke's avatar
Linus Tolke committed
751
752
753
754
755
756
757
    (kom-sub-recipient          "Remove recipient")
    (kom-add-comment		"Add comment")
    (kom-sub-comment		"Remove comment")
    (kom-add-member		"Add subscriber")
    (kom-sub-member             "Remove subscriber")
    (kom-change-conf-motd	"(Post) note (on the) door")
    (kom-set-garb-nice          "Change expiration")
758
    (kom-set-super-conf         "Change superconference")
759
    (kom-set-permitted-submitters  "Change admitted authors")
Linus Tolke's avatar
Linus Tolke committed
760
761
762
763
764
765
766
767
    (kom-unset-conf-motd	"Remove note (from the door)")
    (kom-save-text		"Save article (in file)")
    (kom-edit-options		"Change options")
    (kom-shutdown-server        "Shut down (server)")
    (kom-enable-adm-caps        "Become administrator")
    (kom-disable-adm-caps       "Become (normal) user")
    (kom-set-motd               "Change login message")
    (kom-remove-motd            "Remove login message")
768
    (kom-force-logout           "Kill session")
Linus Tolke's avatar
Linus Tolke committed
769
770
771
772
773
774
775
776
777
778
779
780
781
782
    )
  "A list of LysKOM-commands recognized by the extended parser.")


(defvar lyskom-text-start "
[0-9]+ 199[0-9]-[0-1][0-9]-[0-3][0-9] +[0-2][0-9]:[0-5][0-9]  /[0-9]+ line\\(s\\)?/ "
  "Regexp matching beginning of a article in LysKOM buffer.
Cf. paragraph-start.")


(if lyskom-mode-map
    nil
  (setq lyskom-mode-map (make-keymap))
  (suppress-keymap lyskom-mode-map)
783
784
785
786
787
788
  (define-prefix-command 'lyskom-review-prefix)
  (define-prefix-command 'lyskom-change-prefix)
  (define-prefix-command 'lyskom-next-prefix)
  (define-prefix-command 'lyskom-list-prefix)
  (define-prefix-command 'lyskom-get-prefix)
  (define-prefix-command 'lyskom-S-prefix)
Linus Tolke's avatar
Linus Tolke committed
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
  (define-key lyskom-mode-map "A" 'lyskom-change-prefix)
  (define-key lyskom-mode-map "r" 'lyskom-review-prefix)
  (define-key lyskom-mode-map "f" 'lyskom-get-prefix)
  (define-key lyskom-mode-map "n" 'lyskom-next-prefix)
  (define-key lyskom-mode-map "l" 'lyskom-list-prefix)
  (define-key lyskom-mode-map "s" 'lyskom-S-prefix)
  ; These should be first in order to be last in the menu of alternatives.
  (define-key lyskom-mode-map "A?" 'lyskom-help)
  (define-key lyskom-mode-map "r?" 'lyskom-help)
  (define-key lyskom-mode-map "f?" 'lyskom-help)
  (define-key lyskom-mode-map "n?" 'lyskom-help)
  (define-key lyskom-mode-map "l?" 'lyskom-help)
  (define-key lyskom-mode-map "s?" 'lyskom-help)
  

  (define-key lyskom-mode-map "o" 'kom-set-unread)
  (define-key lyskom-mode-map "x" 'kom-extended-command)
  (define-key lyskom-mode-map " " 'kom-next-command)
  (define-key lyskom-mode-map "\n" 'kom-page-next-command)
  (define-key lyskom-mode-map "\r" 'kom-line-next-command)

  (define-key lyskom-mode-map "?"  'describe-mode)
  (define-key lyskom-mode-map "m"  'kom-send-letter)
  (define-key lyskom-mode-map "g"  'kom-go-to-conf)
  (define-key lyskom-mode-map "a"  'kom-write-text)
  (define-key lyskom-mode-map "c"  'kom-write-comment)
  (define-key lyskom-mode-map "C"  'kom-comment-previous)
  (define-key lyskom-mode-map "F"  'kom-write-footnote)
  (define-key lyskom-mode-map "p"  'kom-private-answer)
818
  (define-key lyskom-mode-map "P"  'kom-private-answer-previous)
Linus Tolke's avatar
Linus Tolke committed
819
820
821
822
823
824
825
826
827
828
829
830
  (define-key lyskom-mode-map "j"  'kom-jump)
  (define-key lyskom-mode-map "lc" 'kom-list-conferences)
  (define-key lyskom-mode-map "ln" 'kom-list-news)
  (define-key lyskom-mode-map "lN" 'kom-list-news-old)
  (define-key lyskom-mode-map "lu" 'kom-list-persons)
  (define-key lyskom-mode-map "ls" 'kom-membership)
  (define-key lyskom-mode-map "la" 'kom-list-summary)
  (define-key lyskom-mode-map "S"  'kom-add-self)
  (define-key lyskom-mode-map "M"  'kom-mark-text)
  (define-key lyskom-mode-map "U"  'kom-unmark-text)
  (define-key lyskom-mode-map "na" 'kom-view-next-new-text)
  (define-key lyskom-mode-map "nc" 'kom-go-to-next-conf)
831
  (define-key lyskom-mode-map "nl" 'kom-bext-kom)
Linus Tolke's avatar
Linus Tolke committed
832
  (define-key lyskom-mode-map "q"  'kom-quit)
833
  (define-key lyskom-mode-map "z"  'kom-bury)
Linus Tolke's avatar
Linus Tolke committed
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
  (define-key lyskom-mode-map "R"  'kom-recover)
  (define-key lyskom-mode-map "t"  'kom-display-time)
  (define-key lyskom-mode-map "fp" 'kom-get-appreciation)
  (define-key lyskom-mode-map "fk" 'kom-get-abuse)
  (define-key lyskom-mode-map "w"  'kom-who-is-on)
  (define-key lyskom-mode-map "W"  'kom-busy-wait)
  (define-key lyskom-mode-map "Ap" 'kom-change-presentation)
  (define-key lyskom-mode-map "r " 'kom-view)
  (define-key lyskom-mode-map "r0" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r1" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r2" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r3" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r4" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r5" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r6" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r7" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r8" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "r9" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "rc" 'kom-view-commented-text)
  (define-key lyskom-mode-map "ra?" 'lyskom-help)
  (define-key lyskom-mode-map "rac" 'kom-review-comments)
  (define-key lyskom-mode-map "rar" 'kom-review-tree)
  (define-key lyskom-mode-map "rj" 'kom-review-clear)
  (define-key lyskom-mode-map "rn" 'kom-review-next)
858
  (define-key lyskom-mode-map "ru" 'kom-review-noconversion)
Linus Tolke's avatar
Linus Tolke committed
859
860
  (define-key lyskom-mode-map "ro" 'kom-find-root)
  (define-key lyskom-mode-map "rl" 'kom-review-by-to)
861
  (define-key lyskom-mode-map "rg" 'kom-review-last-normally-read)
Linus Tolke's avatar
Linus Tolke committed
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
  (define-key lyskom-mode-map "B"  'kom-review-backward)
  (define-key lyskom-mode-map "rs" 'kom-review-stack)
  (define-key lyskom-mode-map "rp" 'kom-review-presentation)
  (define-key lyskom-mode-map "rr" 'kom-find-root-review)
  (define-key lyskom-mode-map "rm" 'kom-review-marked-texts)
  (define-key lyskom-mode-map "ram" 'kom-review-all-marked-texts)
  (define-key lyskom-mode-map "sc" 'kom-status-conf)
  (define-key lyskom-mode-map "su" 'kom-status-person)

  ;; Running in buffer

  (define-key lyskom-mode-map "\033p" 'backward-text)
  (define-key lyskom-mode-map "\033n" 'forward-text)
  (define-key lyskom-mode-map "sa" 'kom-save-text)

  (define-key lyskom-mode-map "\C-?" 'scroll-down)
)



882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
(defvar lyskom-prioritize-mode-map nil
  "Keymap used in lyskom-prioritize-mode.")


(if lyskom-prioritize-mode-map
    nil
  (setq lyskom-prioritize-mode-map (make-keymap))
  (suppress-keymap lyskom-prioritize-mode-map)
  (define-key lyskom-prioritize-mode-map "\C-?" 'previous-line)
  (define-key lyskom-prioritize-mode-map " "    'next-line)
  (define-key lyskom-prioritize-mode-map "\C-k" 'kom-prioritize-kill)
  (define-key lyskom-prioritize-mode-map "\C-y" 'kom-prioritize-yank)
  (define-key lyskom-prioritize-mode-map "p"     'kom-prioritize-set-priority)
  (define-key lyskom-prioritize-mode-map "\C-c\C-c" 'kom-prioritize-quit)
  (define-key lyskom-prioritize-mode-map "q"     'kom-prioritize-quit)
  (define-key lyskom-prioritize-mode-map "Q"     'kom-prioritize-quit)
  (define-key lyskom-prioritize-mode-map "u"     'kom-prioritize-move-up)
  (define-key lyskom-prioritize-mode-map "d"     'kom-prioritize-move-down)
)

Linus Tolke's avatar
Linus Tolke committed
902
903
904
905
906
907
908
909
910
911
;;;; ================================================================
;;;; Tell phrases should be configured with the default language used
;;;; at the server and not for person reading if they happens to
;;;; differ. This is of coarse because they are sent to the server for
;;;; everybody else to see.

;;;; Aronsson was here 4 DEC 1990, thus creating version 0.18
					; Created *-tell-*


912
;;; To coders of the elisp-client:
913
914
915
;;; You not only have to change the text here, you also have to modify
;;; kom-tell-phrases-validation-list in vars.el if you add or remove
;;; one of these.
916

Linus Tolke's avatar
Linus Tolke committed
917
918
919
(defconst kom-tell-phrases
  '(
    (kom-tell-silence		"") ; Why ?
920
    (kom-tell-send		"Is trying to post an article.")
921
922
923
924
925
926
927
    (kom-tell-login		"Is logging in.")
    (kom-tell-read		"Is reading.")
    (kom-tell-1st-pres		"Is writing the first presentation.")
    (kom-tell-write-comment	"Is writing a comment.")
    (kom-tell-write-footnote	"Is writing a footnote.")
    (kom-tell-write-letter	"Is writing a letter.")
    (kom-tell-write-reply	"Is writing a personal reply.")
928
    (kom-tell-write-text	"Is writing an article.")
929
930
931
    (kom-tell-conf-pres		"Is writing the presentation for a new conference.")
    (kom-tell-recover		"Performs a reset. Sigh.")
    (kom-tell-wait		"Is waiting.")
932
    (kom-tell-regret		"Decides to throw away the article.")
933
    (kom-tell-review		"Is reviewing.")
Linus Tolke's avatar
Linus Tolke committed
934
    (kom-tell-change-name       "Takes on a new name.")
935
936
    (kom-tell-change-supervisor "Changes the supervisor of something.")
    (kom-tell-next-lyskom	"Moves to a different LysKOM.")
Linus Tolke's avatar
Linus Tolke committed
937
938
    )
  "These texts are used as arguments to lyskom-tell-server.
Linus Tolke's avatar
Linus Tolke committed
939
The variable kom-mercial defaults to kom-tell-wait.")
Linus Tolke's avatar
Linus Tolke committed
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960


;; Placed here because this must NOT be evaluated before 
;; kom-tell-phrases is defined:

(defvar kom-mercial (car (cdr (assoc 'kom-tell-wait kom-tell-phrases)))
  "*When the user has seen all articles and has reached the view-time prompt,
this string is used as the argument to lyskom-tell-server.
Users are encouraged to use their best sense of humor.")


(defconst lyskom-error-texts
  '((0 . "No error")
    (2 . "Not yet implemented")
    (3 . "No longer implemented")
    (4 . "Wrong password")
    (5 . "String too long")
    (6 . "You have not logged in")
    (7 . "Nobody may enter LysKOM at this time")
    (8 . "You attempted to use conference number 0")
    (9 . "Undefined or secret conference")
961
    (10 . "Undefined or secret user")
Linus Tolke's avatar
Linus Tolke committed
962
963
    (11 . "No read or write permission")
    (12 . "Illegal operation")
964
    (13 . "You do not subscribe to that conference")
Linus Tolke's avatar
Linus Tolke committed
965
966
967
    (14 . "There is no article with that number")
    (15 . "You cannot use global article number 0")
    (16 . "There is no article with that local number")
968
969
    (17 . "You cannot use local article number 0")
    (18 . "Name too short, to long or containing illegal characters")
Linus Tolke's avatar
Linus Tolke committed
970
971
    (19 . "Index out of bounds")
    (20 . "The conference already exists")
972
    (21 . "The user already exists")
973
    (22 . "Secret but not read-protected")
974
    (23 . "You are not permitted to change the erson/conference flag")
Linus Tolke's avatar
Linus Tolke committed
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
    (24 . "Error in the dtabase. Tough luck.")
    (25 . "Illegal misc-field. (Internal error)")
    (26 . "Illegal info type. (Bug in the client)")
    (27 . "Already recipient of this article")
    (28 . "Already comment to this article")
    (29 . "Already footnote to this article")
    (30 . "Not a recipient of this article")
    (31 . "Not a comment to this article")
    (32 . "Not a footnote to this article")
    (33 . "Too many recipients")
    (34 . "Too many commentsp")
    (35 . "Too many footnotes")
    (36 . "Too many marks")
    (37 . "You are not the author of this article")
    (38 . "You cannot connect to the server")
    (39 . "Out of memory")
    (40 . "The server is gone crazy")
    (41 . "The client thinks that the server says that it does not understand the client")
    (42 . "No such session"))
  "All the errors reported from the server in plain text.")
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
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
1041
1042
1043
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
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085


     
;;;; This file contains the code that makes it possible to run a 
;;;; long-commands mode in the lyskom-buffer.
;;;;

;;; Author: Linus Tolke 

(setq lyskom-slow-mode-map
      (make-sparse-keymap))
(define-key lyskom-slow-mode-map "\r" 'lyskom-parse-command-and-execute)

(defun lyskom-parse-command-and-execute ()
  "Reads a command from the last line in the buffer and executes it."
  (interactive)
  (goto-char (point-max))
  (save-restriction
    (narrow-to-region lyskom-last-viewed (point-max))
    (search-backward lyskom-prompt-text))
  (forward-char (length lyskom-prompt-text))
  (while (looking-at "\\s-")
    (forward-char 1))
  (let* ((text (buffer-substring (point) (point-max)))
	 (completion-ignore-case t)
	 (alternatives (mapcar (function reverse)
			       (if kom-emacs-knows-iso-8859-1
				   lyskom-commands
				 lyskom-swascii-commands)))
	 (completes (all-completions text alternatives)))
    (cond
     ((zerop (length text))
      (kom-next-command))
     ((> (length completes) 1)
      (lyskom-insert "\nYou might mean one of the following:\n")
      (mapcar (function (lambda (string) 
			  (lyskom-insert string)
			  (lyskom-insert "\n")))
	      completes)
      (lyskom-end-of-command))
     ((= (length completes) 1)
      (delete-region (point) (point-max))
      (call-interactively (car (reverse-assoc (car completes)
					      (if kom-emacs-knows-iso-8859-1
						  lyskom-commands
						lyskom-swascii-commands)))))
     (t
      (lyskom-insert "There is not such command.\n")
      (lyskom-end-of-command)))
  ))


(defun kom-slow-mode ()
  "Starts the slow-command-mode."
  (interactive)
  (lyskom-start-of-command 'kom-slow-mode)
  (use-local-map lyskom-slow-mode-map)
  (lyskom-end-of-command))

(defun kom-quick-mode ()
  "Starts the quick-command-mode."
  (interactive)
  (lyskom-start-of-command 'kom-quick-mode)
  (use-local-map lyskom-mode-map)
  (lyskom-end-of-command))


;; Review a non-converted text
;; Author: Linus Tolke
 

(defun kom-review-noconversion (&optional text-no)
  "Displays the last read text without any conversion."
  (interactive (list 
		(cond
		 ((null current-prefix-arg)
		  lyskom-current-text)
		 ((integerp current-prefix-arg)
		  current-prefix-arg)
		 ((and (listp current-prefix-arg) 
		       (integerp (car current-prefix-arg)) 
		       (null (cdr current-prefix-arg)))
		  (car current-prefix-arg))
		 (t
		  (signal 'lyskom-internal-error '(kom-review-noconversion))))))
  (lyskom-start-of-command 'kom-review-noconversion)
  (let ((knows-iso-8859-1 kom-emacs-knows-iso-8859-1))
    (setq kom-emacs-knows-iso-8859-1 t)
    (lyskom-view-text 'main text-no)
    (lyskom-run 'main 'set 'kom-emacs-knows-iso-8859-1 knows-iso-8859-1)
    (lyskom-run 'main 'lyskom-end-of-command)))
1086
1087