ChangeLog 413 KB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1 2 3 4 5 6 7 8
2013-12-31  Per Cederqvist  <ceder@lysator.liu.se>

	Use utf-8 in menus on Mac.
	* menus.el (lyskom-menu-encoding-rules): Use utf-8 if
	window-system is eq to 'ns.  This fixes a crash on MacOS X 10.9.
	It might possibly cause issues on older MacOS X releases and/or
	GNUstep.  If so, please report the issue!

9 10 11 12
2013-05-11  Per Cederqvist  <cederp@opera.com>

	* <all files>: Removed $Id$ and lyskom-clientversion-long.

13 14 15 16 17 18 19 20 21
2013-05-07  Per Cederqvist  <ceder@lysator.liu.se>

	Include more info in the version string.
	* Makefile (version.el): Include the git ref in the version, and
	add a trailing asterisk to indicate that the working tree has
	uncommitted changes.
	* commands1.el (lyskom-list-clients-collect): Handle the new form
	of the version number.

22 23
2013-05-06  Per Cederqvist  <ceder@lysator.liu.se>

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
	Don't process vars.el.in with sed. At least on MacOS X, sed fails
	with "sed: RE error: illegal byte sequence" if LC_CTYPE is set to
	an UTF-8 encoding, probably due to the Latin-1 characters in the
	definition of lyskom-mule-compiled.  Since the substitution of the
	version number was the only reason to process vars.el.in, stop
	doing so to avoid this problem.  Thanks to Calle Dybedahl for
	reporting this problem.
	* vars.el.in: Renamed to vars.el.
	* .gitignore: Don't ignore vars.el.
	* Makefile (HEADER): Include vars.el instead of $(VARS-EL).  Don't
	set $(VARS-EL).
	(vars.el): Target removed. This is a regular file now.
	(vars.el-release): Target removed. This file is no longer used.
	($(TARGET-EL) lyskom-all-$(CLIENTVERSION).el): Don't handle
	$(VARS-EL).
	(release): Don't depend on $(VARS-EL).
	(clean): Don't remove vars.el or vars.el-release.

42 43 44 45 46 47 48 49 50 51 52 53 54
	Move the version number from vars.el.in to a separate file.
	* version.el.in: New file.
	(lyskom-clientversion): Moved from vars.el.in.
	* vars.el.in (lyskom-clientversion): Moved to version.el.in.
	* Makefile (HEADER): Added $(VERSION-EL).
	(VERSION-EL): Set to version.el or version.el-release.
	(version.el): New target.
	(version.el-release): New target.
	($(TARGET-EL) lyskom-all-$(CLIENTVERSION).el): Rebuild version.el.
	(release): Depend on $(VERSION-EL).
	(clean): Remove version.el and version.el-release.
	* .gitignore: Ignore version.el

55 56
2013-05-04  Per Cederqvist  <ceder@lysator.liu.se>

57
	Some basic Git adjustments.
58 59
	* commands1.el (lyskom-list-clients-collect): Handle Git client
	versions.
60
	* Makefile (vars.el): Use "Git" instead of "CVS" in CLIENTVERSION.
61 62
	* .gitignore: Ignore files created by running "make".

63 64 65 66
	* Repository converted from CVS to Git.
	http://git.lysator.liu.se/lyskom-elisp-client is the new home of
	the source code.

67 68
2013-03-23  Per Cederqvist  <ceder@lysator.liu.se>

Per Cederqvist's avatar
Per Cederqvist committed
69 70 71 72 73 74 75
	Emacs 24.3 compatibility.

	* compatibility.el: Fix the definition of
	lyskom-set-process-query-on-exit-flag, which had an extra set of
	parentheses that caused a compile-failure with emacs-24.3_rc3.
	Patch by Christer Ekholm <che@chrekh.se>.

76 77 78 79 80 81
	Make the kom-status-session output easier to read when multiple
	sessions are found.

	* commands1.el (kom-status-session, lyskom-status-session-9):
	Print a separator between the sessions.

82 83 84 85 86 87 88 89 90 91 92 93
2012-10-27  David Byers  <david.byers@liu.se>

	* lyskom-rest.el (lyskom-unity-text): Rewrote without "some"
	because the code did not require cl, which results in a
	compilation warning. Note that cl is not loaded by default in Gnu
	Emacs, and this is the only function that needed cl. Can't test,
	because I don't have XEmacs.
	(lyskom-format-pdf): New function to show PDF texts.
	(lyskom-doc-view-end): New function.
	(lyskom-doc-view-text): New function that displays PDF texts in
	doc-view-mode.

Per Cederqvist's avatar
Per Cederqvist committed
94 95 96 97 98 99 100 101 102
2012-10-01  Per Cederqvist  <cederp@opera.com>

	Fix user-area parsing.

	* flags.el (lyskom-get-holerith): Only strip *initial*
	whitespace. (When given the string "3Hfoo 7Hx\n asdf" as input, it
	would treat "3Hfoo 7Hx\n " as initial whitespace, and fail when it
	attempted to parse "asdf" as a Hollerith string.)

103 104 105 106 107 108 109 110
2011-01-06  David Byers  <davby@ida.liu.se>

	Compatibility with Emacs 24:
	* compatibility.el (function-obsolete-p): Count functions as
	obsolete if they are undefined (for Emacs 24).
	(process-kill-without-query): Handle case where
	set-process-query-on-exit-flag is undefined.

111 112 113 114 115 116
2012-05-24  Per Cederqvist  <cederp@opera.com>

	Fixed typo in doc-string.

	* vars.el.in (kom-www-proxy): Fixed typo ("POSRT"->"PORT").

117 118 119 120 121 122 123 124
2011-06-09  Ulrik Haugen  <ulrik@haugen.se>

	Tuned patch from Marcus Comstedt.

	* edit-text.el (lyskom-edit-send): Only bother with
	lyskom-unity-text if latin-unity-remap-region is defined as a
	function.

125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
2011-06-06  Ulrik Haugen  <ulrik@haugen.se>

	Patch from Marcus Comstedt to select charsets latin-x more often.

	"Buggarna var:

	1) kom-edit-send gjorde (lyskom-mime-charset-for-text) p texten
	utan att kra (lyskom-unity-text) p den frst. Det var detta som
	fick UTF-8 att okynnesvljas s snart det fanns mer n ett
	teckenset, ven om de kunde unifieras.

	2) lyskom-unity-text provade inte alla preferred-coding-system i
	listan, utan bara det frsta."

	* edit-text.el (lyskom-edit-send): Call lyskom-unity-text before
	selecting charset.

	* lyskom-rest.el (lyskom-unity-text): Try all elements in
	preferred-coding-system.

David Byers's avatar
David Byers committed
145 146 147 148 149 150 151 152 153 154 155 156 157
2010-05-14  David Byers  <davby@ida.liu.se>

	Fix bug 1679:
	* view-text.el (lyskom-format-mx-date): New function.
	(lyskom-view-text): Use it.
	(lyskom-mx-date-to-time): New implementation.

	* utilities.el (lyskom-replace-in-list): New function.

	* komtypes.el (def-komtype): Support :write-only keyword.
	(time): Make yday and isdst read-only and write-only (we don't use
	them and don't always set them correctly).

158 159
2010-05-13  David Byers  <davby@ida.liu.se>

160 161 162 163 164
	Emacs 24 compatibility
	* all: replaces many save-excursion with save-current-buffer in
	order to avoid meaningless warnings in Gnu Emacs 24.1.

	Menus on Macintosh:
165 166 167
	* menus.el (lyskom-menu-encoding-rules): Applied patch from Mrten
	Svensson for bug 1655.

168
	Handle root review of root texts:
169 170 171 172 173 174 175 176
	* view-text.el (lyskom-get-root-text-belongs-to): In node
	transform, explicitly look in the cache (it's faster), and pass
	text-no, not text-stat to lyskom-find-dag-roots.

	* review.el (lyskom-find-root): In node transform, explicitly look
	in the cache (it's faster), and pass text-no, not text-stat to
	lyskom-find-dag-roots. 

177
	Improve handing of startup compatbility check:
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
	* utilities.el (lyskom-check-configuration): Also look at
	mime-charset.
	(lyskom-magic-minibuffer-post-command): Check that
	lyskom-minibuffer-point is bound before trying to use it.
	(lyskom-find-dag-roots): Apply node-transform to start node.

	* startup.el (lyskom-setup-ssh-relay): Removed hard-coded relay
	port.

	* menus.el (lyskom-menu-encoding-rules): Inserted menu coding
	rules for mac (blindly, I can't test).

2010-05-08  David Byers  <davby@ida.liu.se>

	* utilities.el (lyskom-check-configuration): Check
	coding-system-aliases for the server coding system too.

195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
2009-05-09  Pontus Freyhult  <pont@soua.net>

	* vars.el.in (lyskom-default-password): Fixed typo.

	* startup.el (kom-start-anew): Only store password in
	lyskom-default-password if requested (kom-remember-password),
	instead of keeping it there and clearing it if not desired..

2009-05-08  Pontus Freyhult  <pont@soua.net>

	* command.el (lyskom-start-of-command): No longer protect obsolete
	variable lyskom-default-username.

	* vars.el.in (kom-default-password): Removed lyskom-default-username.

	* startup.el (lyskom): Get rid of lyskom-default-username. Pass
	username and password to kom-start-anew instead.

	* startup.el (kom-start-anew): Use parameter username instead
	of lyskom-default-username. Use password for input password (if
	any).

217 218
2009-03-08  David Byers  <davby@ida.liu.se>

219 220 221 222 223 224
	Add access to command descriptions:
	* help.el (lyskom-help-on-command): New function.

	XEmacs compatibility:
	* compatibility.el (detect-coding-string): Compatibility
	definition for XEmacs.
David Byers's avatar
David Byers committed
225

226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
	Defensive coding for bug 1660:
	* edit-text.el (lyskom-create-text-handler): New parameter
	callback-buffer. Use instead of lyskom-buffer when calling
	callback.
	(lyskom-edit-handler-buffer): New variable.
	(lyskom-dispatch-edit-text): Initialize callback buffer to lyskom-buffer.
	(lyskom-edit-send): Pass callback buffer to create-text handler.

	Fix bug 1658 again:
	* review.el (kom-review-rot13): Rewrote to use unwind-protect to
	remove the rot13 filter rather than use let to override the hook
	variable.

	Fixed text viewing in Emacs 23:
	* komtypes.el (text->decoded-text-mass): Use detect-coding-string
	on texts with no specified charset.

	Fix compilation warnings in Emacs 23:
	* macros.el (lyskom-end-of-compilation): mapcar->mapc

	* commands2.el (lyskom-stop-keep-alive): mapcar->mapc
	(lyskom-available-language-list): mapcar->mapc

	* review.el (kom-review-more-comments): mapcar->mapc

	* edit-text.el (lyskom-edit-insert-miscs): mapcar->mapc
	(lyskom-edit-send-check-recipients): mapcar->mapc

	* option-edit.el (lyskom-custom-insert): mapcar->mapc

2009-03-04  David Byers  <davby@ida.liu.se>

	Fix compilation warnings in Emacs 23:
	* lyskom-rest.el (lyskom-limited-make-overlay): mapcar->mapc
	(kom-save-text): mapcar->mapc
	(lyskom-is-loaded): mapcar->mapc

	* talkback.el (lyskom-insert-bug-report): mapcar->mapc

	* option-edit.el (lyskom-customize-send): mapcar->mapc
	(lyskom-customize-mode): mapcar->mapc
	(lyskom-widget-kbd-macro-action): mapcar->mapc

	* menus.el (lyskom-popup-menu-template): Removed old-style backquotes.
	(lyskom-set-menus-xemacs): mapcar->mapc

	* view-text.el (lyskom-view-text): mapcar->mapc

	* filter.el (lyskom-create-filter-function-body): Removed
	old-style backquotes.

	* cache.el (clear-all-caches): mapcar->mapc

	* startup.el (kom-start-anew): mapcar->mapc

	* aux-items.el (def-aux-item): Removed last old-style backquotes

	* completing-read.el (lyskom-complete-string-next-char): mapcar->mapc

	* komtypes.el (def-komtype): mapcar->mapc

	* language.el (lyskom-language-strings-internal): mapcar->mapc

	* macros.el: Removed last old-style backquotes.

	* vars.el.in (lyskom-setup-local-variables): mapcar->mapc

293 294
2008-05-11    <David Byers@GULAG>

David Byers's avatar
David Byers committed
295 296 297
	Fix bug 1654:
	* edit-text.el (lyskom-edit-send): Use accessors to access parsed
	headers.
298

299 300 301 302 303 304 305 306 307 308 309 310 311 312
	Fix bug 1660:
	* edit-text.el (lyskom-create-text-handler): Added callback and
	callback-data parameters. Juggling buffers to get these right is
	somewhat tricky, but worst is that it is *possible* for the buffer
	containing the callback to be deleted before this is called.
	(lyskom-edit-send): Pass lyskom-edit-handler and data to
	lyskom-create-text-handler.

	Fix bug 1658:
	* review.el (kom-review-rot13): Removed local arg from add-hook.

	* commands2.el (kom-limit-import): Add support for limiting import
	by regexp.

313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
2008-03-17  Per Cederqvist  <ceder@ingate.com>

	Make it configurable if the client should search for unread
	parents or relatives of a text before displaying it.  Also, add a
	new strategy ('oldest-ancestor) that only searches among parents.

	* vars.el.in (kom-read-related-first): New configuration
	variable.  Set this to nil to get the old-style behaviour,
	'oldest-related to get the behaviour before this commit, or
	'oldest-ancestor to get the new default behaviour.

	* lyskom-rest.el (lyskom-find-lowest-text): Moved internal
	documentation from the doc-string to an internal comment.
	(lyskom-find-unread-ancestor): New defun.  This code is based on
	lyskom-find-lowest-text, but works in a more sensible way.
	(lyskom-select-text-to-read): New defun, extracted from
	kom-view-next-text.  Handle the new oldest-ancestor strategy.
	(kom-view-next-text): Use lyskom-select-text-to-read to simplify
	the code.

	* swedish-strings.el, english-strings.el (lyskom-custom-strings):
	Added ancestor, relative, kom-read-related-first-doc and
	kom-read-related-first-tag.

	* option-edit.el (lyskom-customize-buffer-format): Added
	kom-read-related-first.
	(lyskom-custom-variables): Ditto.

341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
2007-11-10    <David Byers@GULAG>

	* view-text.el (lyskom-follow-comments): Only look at
	kom-follow-comments-outside membership if we actually aren't a
	member of any of the recipients.

2007-07-12    <David Byers@GULAG>

	* edit-text.el (lyskom-create-text-handler): Be a bit more
	conservative when changing buffers.

	* services.el (lyskom-server-call): Changed old-style backquotes
	to new-style backquotes.

	* utilities.el: Recompute timeouts only once, not each time the
	client is loaded.

358 359 360 361 362 363 364 365
2007-11-10  David Byers  <davby@ida.liu.se>

	* mime.el (lyskom-mime-charset-for-text-xemacs): Better
	diagnostics for XEmacs. Use server charset if text is ascii.

	* edit-text.el (lyskom-edit-send): Don't even attempt to send text
	with too many charsets.

366 367 368 369 370 371 372 373 374 375
2007-08-01  Per Cederqvist  <ceder@ingate.com>

	Fixed typos in docstrings.

	* lyskom-rest.el (kom-go-to-pri-session): Fixed typo in
	docstring.

	* vars.el.in (kom-show-where-and-what): Fixed typo in docstring.
	(kom-show-since-and-when): Ditto.

Per Cederqvist's avatar
Per Cederqvist committed
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
2007-07-28  Per Cederqvist  <ceder@lysator.liu.se>

	New command: "View URL".

	* commands2.el (kom-view-url-in-text): New command.

	* vars.el.in (lyskom-commands): Added kom-view-url-in-text.

	* swedish-strings.el (lyskom-command): Add kom-view-url-in-text as
	"Visa URL".
	(lyskom-sv-mode-map): Bind "vu" to "Visa URL".

	* english-strings.el (lyskom-command): Add kom-view-url-in-text as
	"View URL".
	(lyskom-en-view-prefix): New prefix, bound to "v".
	(lyskom-en-mode-map): Bind "vu" to "View URL".

393
2007-07-20  Hans Eric Svensson  <eric+lyskom@lysator.liu.se>
394

395 396 397 398
	* view-text.el (lyskom-follow-comments): Adjusted to take into
	account that text-read-p doesn't know if a text *should* be read,
	it only only knows if a text *is marked* as read.

399 400 401 402 403 404 405 406 407 408
2007-07-14  Per Cederqvist  <ceder@lysator.liu.se>

	Make sure all elisp files end in a newline.
	* utilities.el: Add a newline at end of file.
	* review.el: Add a newline at end of file.
	* Makefile (check-eof): New target.  Check that all elisp files
	ends in a newline, to avoid strange code in the concatenated
	lyskom.el.
	(check): Depend on check-eof.

David Byers's avatar
David Byers committed
409 410
2007-07-11    <David Byers@GULAG>

411 412 413 414 415 416
	* async.el (lyskom-delete-old-text): Changed text-stat argument to
	text-no.
	(lyskom-async-deleted-text): Changed the caller too.
	(lyskom-parse-async): Remove text from readling lists if a
	recipient is removed.

417 418 419 420 421 422 423 424
	* commands2.el (lyskom-help-get-keylist): Changed name of variable
	list to keylist. In Emacs 22.1, map-keymap-internal (which is
	called by map-keymap) uses "list" as an internal variable.

	Fix bug 1262:
	* edit-text.el (lyskom-edit-move-recipients): Don't alter
	recipients that are letterboxes.

David Byers's avatar
David Byers committed
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
	Fix bug 281:
	* vars.el.in (lyskom-format-special): Cover all IANA mime type
	allocations, and include fallback for anything unknown.

	* lyskom-rest.el (lyskom-text-stat-content-type): New function.
	(lyskom-format-audio): New function.
	(lyskom-format-video): New function.
	(lyskom-format-multipart): New function.
	(lyskom-format-message): New function.
	(lyskom-format-model): New function.
	(lyskom-format-application): New function.
	(lyskom-format-image): Show content type when failing to show image.
	(lyskom-format-unknown): New function.

	* view-text.el (lyskom-format-text-footer): Allow strings as format flags.

	* vars.el.in (kom-respect-ancient-content-types): New variable.

	* lyskom-rest.el (lyskom-format-text-body): Don't get content type
	from text body unless kom-respect-ancient-content-types is
	non-nil.

David Byers's avatar
David Byers committed
447 448 449 450 451 452
	Fix bug 818:
	* startup.el (lyskom-read-server-name): Use programmed completion.
	(lyskom-complete-server-name): Programmed completion function for
	server names.

	Fix bug 1308:
David Byers's avatar
David Byers committed
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
	* commands1.el (lyskom-get-recipients-from-misc-list): Rewrote
	ugly code recursive code to pretty pointer manipulating code.
	Added optional GET-TYPES argument.
	(lyskom-recipient-type->): New function.
	(lyskom-recipient-type-string): New function.
	(lyskom-recipient-sender): New function.

2007-07-10    <David Byers@GULAG>

	* commands1.el (lyskom-text-stat-commented-texts): Added optional
	argument type and rewrote from scratch.
	(lyskom-move-comment): New function.
	(lyskom-compute-text-recipients): New function.
	(kom-move-comment): New command.

2007-07-08    <David Byers@GULAG>

	* edit-text.el (lyskom-edit-send-check-recipients): Use
	lyskom-compute-recipients-commented-authors.

	* utilities.el (lyskom-compute-recipients-commented-authors): New function.

2007-07-07    <David Byers@GULAG>

	* review.el (lyskom-find-root): Rewrote using
	lyskom-find-dag-roots. So much simpler! And prettier!

	* utilities.el (lyskom-find-dag-roots): New utility function.

	* view-text.el (lyskom-get-text-belongs-to): Added optional
	argument footnotes.

David Byers's avatar
David Byers committed
485 486 487 488 489
2007-07-07  David Byers  <davby@sysinst-gw.sysinst.ida.liu.se>

	* vars.el.in (kom-ssh-general-errors): New variable.
	(kom-ssh-forwarding-errors): New variable.

David Byers's avatar
David Byers committed
490 491
2007-07-07    <David Byers@GULAG>

David Byers's avatar
David Byers committed
492 493 494
	* startup.el (lyskom-setup-ssh-relay): Detect failure to set up
	local forwarding.

David Byers's avatar
David Byers committed
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
	* commands2.el (kom-delete-user-area): New command.

	Fix bug 1542:
	* flags.el (kom-copy-options): Pass portable-only to
	lyskom-read-options.
	(lyskom-copy-indirect-assq): New function.

	* command.el (lyskom-start-of-command): Don't mess up
	lyskom-default-user-name when reconnecting.

	* vars.el.in: Marked a bunch of non-portable variables as such.
	Marked some indirect assqs for copy-transition.

	* flags.el (lyskom-read-options): Added portable-only argument.
	(lyskom-read-options-eval): Same here.
	(lyskom-maybe-set-var-from-string): Same here, and convert
	variables when portable-only as requested.

	* defvar.el (lyskom-save-variables): Cleaned up old backquote
	syntax.
	(lyskom-with-lyskom-minibuffer): Same here.
	(def-kom-var): Same here.
	(lyskom-non-portable-server-variables): New variable.
	(def-kom-var): Support non-portable and copy-transition variable
	specs.

	Fix bug 1638:
	* review.el (lyskom-maybe-run-mouse-2): New function to run unread
	mouse-2 event under certain circumstances.
	(kom-toggle-mark-as-read-prefix): Use lyskom-maybe-run-mouse-2
	(kom-toggle-cache-prefix): Here too.

527 528 529 530 531 532 533 534
2007-07-07  David Byers  <davby@sysinst-gw.sysinst.ida.liu.se>

	* edit-text.el (lyskom-edit-insert-buglist): Don't use interactive
	functions for non-interactive work (replace-regexp).

	* compatibility.el (lyskom-pos-visible-in-window-p-22-1):
	Workaround for bug in Gnu Emacs 22.1 pos-visible-in-window-p

535 536 537 538 539 540 541 542
2007-06-30    <David Byers@GULAG>

	* lyskom-rest.el (lyskom-do-insert): Support format state directly
	within this function.
	(lyskom-format-insert-before-prompt): Support deferred insertions.
	(lyskom-format-insert-at-point): Simplified.
	(lyskom-format-insert): Simplified.

543 544 545 546 547
2007-06-26    <David Byers@GULAG>

	* utilities.el (lyskom-indirect-assq): If assoc-list is t, then
	return t. This is a (very) special case.

David Byers's avatar
David Byers committed
548 549
2007-06-24    <David Byers@GULAG>

550 551 552 553 554 555 556 557 558 559 560
	More customization:
	* lyskom-rest.el (lyskom-format-html): Use lyskom-indirect-assq to
	look stuff up in kom-format-html-authors.

	Fix settings buffer:
	* option-edit.el (lyskom-custom-variables): Updated definitions
	for kom-highlight-conferences, kom-presence-messages-in-buffer,
	kom-presence-messages-in-echo-area. Updated widget definitions so
	we don't get newlines in unexpected places (and get then where we
	really want them). Removed indent from most lists. 

David Byers's avatar
David Byers committed
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
	Fix bug 1143:
	* review.el (lyskom-last-review-filter): New variable.
	(kom-review-all-roots): New command.
	(kom-unread-all-roots): New command.
	(kom-review-more): Use saved filter when getting more texts.
	(kom-unread-more): Use saved filter when getting more texts.
	(kom-review-first-roots): New command.
	(kom-unread-first-roots): New command.
	(kom-review-roots-by-to): New command.
	(lyskom-review-by-to): New filter argument. Get default filter
	from global variable. Pass filter on to other functions.
	(kom-unread-roots-by-to): New command.
	(lyskom-unread-by-to): New filter argument. Get default filter
	from global variable. Pass filter on to other commands.
	(lyskom-get-texts-by-to): New filter argument. Pass to sub
	functions and use in predicate for lyskom-get-texts-by-generic.
	(lyskom-get-texts-by): New filter argument. Pass filter to
	lyskom-get-texts-by-generic.
	(lyskom-get-texts-by-and-to): New argument filter.
	(lyskom-get-texts-globally): New argument filter.
	(lyskom-get-texts-to): New argument filter.
	(lyskom-get-letters-to): New argument filter.

	* utilities.el (lyskom-set-connection-time-format): Use
	make-local-variable instead of make-variable-buffer-local.

	* view-mode.el (lyskom-view-base-mode): Use make-local-variable
	instead of make-variable-buffer-local.

	* vars.el.in (kom-unread-mode-line-type): Make this server-stored.

	* compatibility.el: Don't defvar enable-multibyte-characters
	unless it's unbound.

	* english-strings.el,swedish-strings.el (lyskom-sv-mode-map):
	Rebound A from kom-review-all to kom-review-all-roots.

David Byers's avatar
David Byers committed
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 623 624 625 626 627 628 629 630 631 632 633 634 635 636
	Fix bug 673:
	* async.el (lyskom-show-personal-message): Don't run
	lyskom-personal-message-hook.
	(lyskom-default-new-recipient-hook): Don't run
	lyskom-new-recipient-hook.
	(lyskom-default-new-text-hook): Don't run lyskom-new-text-hook.
	(lyskom-default-deleted-text-hook): Don't run
	lyskom-deleted-text-hook.

	* edit-text.el (lyskom-edit-send): Don't run lyskom-send-text-hook.
	(lyskom-edit-send): Don't run lyskom-create-text-hook.

	* lyskom-rest.el (lyskom-enter-conf): Don't run
	lyskom-change-conf-hook or lyskom-after-change-conf-hook.
	(lyskom-leave-current-conf): Run kom-change-conf-hook and
	kom-after-change-conf-hook instead of the obsolete names.

	* commands1.el (lyskom-go-to-empty-conf): Don't run
	lyskom-change-conf-hook or lyskom-after-change-conf-hook.

	* commands2.el (lyskom-send-message-minibuffer-setup-hook): Don't
	run lyskom-send-message-setup-hook.
	(lyskom-send-message-minibuffer-exit-hook): Don't run
	lyskom-send-message-exit-hook.

	* view-text.el (lyskom-view-text): Don't run
	lyskom-view-text-hook.

	* vars.el.in (lyskom-view-text-hook): Removed.
	(lyskom-send-message-hook): Removed.
	(lyskom-send-message-setup-hook): Removed.
	(lyskom-send-message-exit-hook): Removed.
	(lyskom-change-conf-hook): Removed.
	(lyskom-after-change-conf-hook): Removed.
	(lyskom-create-text-hook): Removed.
	(lyskom-deleted-text-hook): Removed.
	(lyskom-new-recipient-hook): Removed.
	(lyskom-personal-message-hook): Removed.

637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666
	Prepare to print more info on logins:
	* async.el (lyskom-parse-async): Parse the session number in the
	login message. Get static session info.
	(lyskom-show-logged-in-person): Accept the session info. Added
	code (disabled) to show from where a user logged in.
	(lyskom-parse-async): Get both conf-stat and session info for new
	logins.

	Fix bug 1637:
	* lyskom-buttons.el (lyskom-generate-button): Use
	lyskom-indirect-assq to match names against
	kom-highlight-conferences.

	Add some utility lists:
	* option-edit.el (lyskom-custom-variables): Added
	kom-person-list-1, kom-person-list-2, kom-person-list-3,
	kom-person-list-4.
	(lyskom-customize-buffer-format): Same here.

	* vars.el.in (kom-person-list-4): New variable.
	(kom-person-list-3): New variable.
	(kom-person-list-2): New variable.
	(kom-person-list-1): New variable.

	Fix bug 1621:
	* async.el (lyskom-show-presence): Use lyskom-indirect-assq when
	the flag is a list.
	(lyskom-parse-async): Show presence messages for self.


David Byers's avatar
David Byers committed
667 668 669 670 671
	Fixed bug 1608:
	* async.el (lyskom-show-logged-in-person): Applied modified patch
	from Per Jonsson (unlike the original patch, still print the
	server name).

David Byers's avatar
David Byers committed
672
	Fix bug 1620:
David Byers's avatar
David Byers committed
673
	* commands2.el (lyskom-send-message): Applied patch from Per
David Byers's avatar
David Byers committed
674 675 676 677 678 679 680 681
	Jonsson.

2007-06-13    <David Byers@GULAG>

	Generalized support for lists like kom-highlight-conferences:
	* utilities.el (lyskom-indirect-assq): New function.
	(lyskom-indirect-assq-2): Utility function.

682 683
2007-06-12    <David Byers@GULAG>

David Byers's avatar
David Byers committed
684 685 686 687 688
	Fix bug 1619:
	* commands2.el (kom-diff-texts): Use lyskom-compatible insertion
	commands for the diff.

	Fix bug 1636:
689 690 691 692 693 694 695 696 697 698 699 700 701 702 703
	* mime.el (lyskom-mime-encode-string): Added mime-charset
	parameter.

	* edit-text.el (lyskom-edit-parse-headers): Changed the return
	value to a data type (i was going to extend it, but ended up not
	doing so, but the new version is easier to follow anyway).
	(lyskom-edit-send): Use a temporary buffer (necessary since
	transformation functions may alter the text) and
	lyskom-mime-charset-for-text to determing text encoding.

	* mime.el (lyskom-mime-charset-for-text): New function
	(lyskom-mime-charset-for-string): Removed.
	(lyskom-charset-alist): Removed. From now on, we shall rely on
	mm-util in XEmacs.

David Byers's avatar
David Byers committed
704 705 706 707 708 709 710 711 712 713 714 715 716 717
2007-06-10    <David Byers@GULAG>

	Better display of texts claiming to be us-ascii:
	* mime.el (lyskom-mime-decode-content-type): Pretend us-ascii
	texts are really latin-1.

	Fix bug 819:
	* completing-read.el (lyskom-read-conf-internal): When an exact
	match is found, return t only if the input string is equal to the
	only alternative.

	Fix bug 1277:
	* swedish-strings.el (coding-system-mismatch-warning): Added
	reference to Emacs manual.
718

David Byers's avatar
David Byers committed
719 720 721 722 723 724 725
	* utilities.el (lyskom-check-configuration): Don't warn about
	coding system if UTF-8 is supported.

	* lyskom-buttons.el (lyskom-make-button-menu): Encode menu strings
	properly.

2007-06-09    <David Byers@GULAG>
726

David Byers's avatar
David Byers committed
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741
	Prefer UTF-8 over all but latin-1:
	* mime.el (lyskom-charset-alist): Never choose us-ascii. When
	us-ascii text is detected, assume latin-1 instead. For some
	reason, us-ascii is detected on some emacsen even when this is not
	the case. A more powerful charset would perhaps be a better
	choice, but chances are if charset detection is broken, then what
	are the chances that e.g. unicode conversion works?
	(lyskom-charset-alist): Include utf-8 early in the list, making it
	the preferred charset (when it works).

	Follow links with mouse-1 in Emacs 22.1:
	* language.el (lyskom-language-keymap-internal): Bind follow-links
	in the global LysKOM keymaps.

	Fix various naming issues:
742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777
	* filter.el (lyskom-copy-filter): Renamed from copy-filter.
	(lyskom-filter-p): Renamed from filter-p.
	(lyskom-make-filter): Renamed from make-filter.

	* lyskom-rest.el (kom-backward-text): Renamed backward-text to
	kom-backward-text. Renamed forward-text to kom-forward-text.
	(lyskom-silent-read): Renamed silent-read to lyskom-silent-read.

	* parse.el: Renamed apply-parser lyskom-apply-parser.

	* review.el: Replaced all calls to nfirst with lyskom-nfirst.

	* lyskom-rest.el (lyskom-startup-check-recommended-memberships):
	Use lyskom-filter-list, not filter-list.

	* faqs.el (lyskom-get-unread-faqs): Same.

	* completing-read.el (lyskom-read-conf-guess-initial): Same.

	* utilities.el (lyskom-filter-list): Renamed from filter-list.
	(lyskom-nfirst): Renamed from nfirst.

	Fix menu display in Gnu Emacs 22.1:
	* menus.el (lyskom-define-menu-gnu-title-encoding-type): New
	variable used to encode top-level menu titles differently from
	nested menus.

	* language.el (lyskom-get-menu-string): Don't encode the menu
	strings here, since encoding needs to be different in different
	places.

	* menus.el (lyskom-menu-encoding-rules): New variable.
	(lyskom-menu-encode): New function.
	(lyskom-define-menu-xemacs): Encode menu strings.
	(lyskom-define-menu-gnu): Encode menu strings.

778 779
2007-06-08    <David Byers@TAMIZDAT>

780
	Compatibility fixes for Gnu Emacs 22.1:
781 782 783 784 785 786 787 788 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 818 819 820 821 822 823 824 825 826 827 828 829 830
	* lyskom-rest.el (lyskom-sentinel): Check that proc is a process
	before using it as such. Call lyskom-remove-unread-buffer with the
	right argument (the buffer, not the process).
	(lyskom-session-nickname): Don't croak if the process is nil.

	* language.el (lyskom-get-menu-string): Decode menu string from
	latin-1 rather than encoding it.

	* compatibility.el (lyskom-frame-width): Dummy definition of
	lyskom-frame-width to suppress compilation warning.

	* view-text.el: Replaced string-to-int with
	lyskom-string-to-number.

	* aux-items.el: Same.

	* commands1.el: Same.

	* compatibility.el: Same.

	* completing-read.el: Same.

	* edit-text.el: Same.

	* faqs.el: Same.

	* filter-edit.el: Same.

	* flags.el: Same.

	* lyskom-buttons.el: Same.

	* lyskom-rest.el: Same.

	* option-edit.el: Same.

	* parse.el: Same.

	* regexp.el: Same.

	* review.el: Same.

	* startup.el: Same.

	* utilities.el: Same.

	* utilities.el: Fix for Emacs 22.1 (should also improve
	performance on XEmacs).
	(lyskom-string-to-int): Clarifyig comment in docstring.

831
2007-04-26  Hans Eric Svensson  <eric+lyskom@lysator.liu.se>
832

833 834 835 836 837 838 839 840 841 842 843 844 845 846
	* lyskom-rest.el (lyskom-cache-all-memberships): New function
	which loads memberships into cache, so that we can be really sure
	that we haven't read a specific text.
	(lyskom-find-best-text): Use new function to load
	passive memberships into cache.
	(lyskom-find-lowest-text): Use new function to load
	passive memberships into cache.

	* view-text.el (lyskom-follow-comments): Moved use of variable
	kom-follow-comments-outside-membership to this function from
	lyskom-text-read-p.
	(lyskom-text-read-p): Moved use of the variable
	kom-follow-comments-outside-membership to lyskom-follow-comments.

847 848 849 850 851
2007-02-04  Per Cederqvist  <ceder@ryttargardskyrkan.se>

	* edit-text.el (lyskom-edit-send): Document the hooks that this
	function runs.

Ulrik Haugen's avatar
Ulrik Haugen committed
852 853 854 855
2007-01-01  Ulrik Haugen  <qha@lysator.liu.se>

	* names.el (sv-1993): Remove empty string for 1/1.

856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878
2006-11-21  Hans Eric Svensson  <eric+lyskom@lysator.liu.se>

	* lyskom-rest.el (lyskom-view-next-text): Modified to read
	commented texts in other conferences before the texts that comment
	them in the current conference. See M-x describe-function
	lyskom-find-best-text and M-x describe-function lyskom-find-lowest
	text for more information.
	(lyskom-member-of-at-least-one-p): New helper function.
	(lyskom-member-one-priority-p): New helper function.
	(lyskom-up-to): New helper function.
	(lyskom-find-best-text): New helper function.
	(lyskom-find-lowest-text): New helper function.
	(lyskom-get-max-priority): New helper function.

	* commands1.el (kom-who-is-on-in-conference): Spelling error
	fixed.

	* view-text.el (lyskom-view-text): Fixed sudden Swedish in
	comment.
	(lyskom-text-read-p): Added optional parameter want-passive.
	(lyskom-follow-comments): Adjusted to use the new additional
	parameter in one of the calls to lyskom-text-read-p.
	
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898
2006-06-27  David Byers  <davby@ida.liu.se>

	* lyskom-rest.el (lyskom-fill-next-paragraph): Fixed off-by-one
	error causing the last character on the last line to (sometimes)
	be put on a line of its own in XEmacs.
	(lyskom-maybe-fill-region): Fixed off-by-one error causing lines
	just under fill-column long to be wrapped.

2006-05-14  David Byers  <davby@ida.liu.se>

	* utilities.el (lyskom-text-comments): Added parameter
	skip-footnotes.

2006-04-26  David Byers  <davby@ida.liu.se>

	* lyskom-rest.el (lyskom-fill-next-paragraph): Eliminated the
	inner catch, as this seemed to cost more time than adding a
	clause to each conditional in the loop.
	(lyskom-fill-message-line-length): Make this a subst.

899 900 901 902 903
2006-05-03  Pontus Freyhult  <pont@soua.net>

	* option-edit.el, vars.el.in, swedish-strings.el,english-strings.el,
	commands1.el: Reverted previous bad check in.

904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919
2006-05-03  Pontus Freyhult  <pont@soua.net>

	* option-edit.el (lyskom-customize-buffer-format): Added 
	kom-write-text-recipient-strategy.
	(lyskom-custom-variables): Dito.

	* vars.el.in (kom-write-text-recipient-strategy): New variable.

	* swedish-strings.el,english-strings.el (lyskom-custom-strings):
	Added current-meeting. Added kom-write-text-recipient-strategy-doc 
	and kom-write-text-recipient-strategy-tag.

	* commands1.el (lyskom-write-text): Use current-conf is 
	kom-write-text-recipient-strategy is 'current and we're called
	from kom-write-text.

920 921 922 923 924
2006-04-25  David Byers  <davby@ida.liu.se>

	* lyskom-rest.el (lyskom-fill-next-paragraph): Fixed off-by-one
	error in handling indented paragraphs.

925 926 927 928 929 930 931
2006-04-25  Per Cederqvist  <ceder@lysator.liu.se>

	Get rid of compiler warning probably introduced 2006-04-05.
	* lyskom-rest.el (lyskom-fill-message): Removed pointless
	"(buffer-substring (point-min) (point))" whose value was not
	used.

932 933 934 935 936 937
2006-04-24  Per Cederqvist  <ceder@ingate.com>

	Fixed typo in docstring.
	* vars.el.in (kom-tell-phrases): Fixed spelling error in docstring
	that tried to refer to lyskom-tell-phrases-validation-keyword-list.

938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958
2006-04-05  David Byers  <davby@ida.liu.se>

	Re-implement line breaking heuristics:
	* lyskom-rest.el (lyskom-fill-disqualifying-regexp): Broken out
	from lyskom-fill-message to make regexp easier to understand.
	(lyskom-fill-message-next-line): New macro.
	(lyskom-fill-message-return): New macro.
	(lyskom-maybe-fill-region): New macro.
	(lyskom-fill-inline-text-regexp): New regexp to prevent concating
	it every time a line was examined, and to make it handle inlined
	texts with the wrong language.
	(lyskom-fill-message): New implementation.
	(lyskom-fill-next-paragraph): Guts of new lyskom-fill-message.
	(lyskom-fill-scan-quoted-paragraph): New function.
	(lyskom-fill-scan-empty-lines): New function.

	Fix bug 766:
	* swedish-strings.el,english-strings.el (lyskom-custom-strings):
	Adjusted kom-autowrap-doc.


959 960 961 962 963 964 965
2006-04-03  David Byers  <davby@ida.liu.se>

	* lyskom-buttons.el (lyskom-button-befriend): New function
	(i guess jhs forgot to check it in).
	(lyskom-button-moronify): New function (i guess jhs forgot to
	check it in).

David Byers's avatar
David Byers committed
966 967 968 969 970 971
2006-03-31  David Byers  <davby@ida.liu.se>

	* menus.el (lyskom-menu-template): Added kom-review-more-comments
	to menu.

	Fix bug 1510:
972
	* vars.el.in (lyskom-commands): Added kom-review-more-comments.
David Byers's avatar
David Byers committed
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 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

	* swedish-strings.el,english-strings.el
	(lyskom-sv-mode-map,lyskom-en-mode-map): Added
	kom-review-more-comments.

	* review.el (lyskom-review-by-to): Set lyskom-have-review to
	indicate what kind of review.
	(lyskom-last-review-comments): New variable.
	(lyskom-review-comments): Set lyskom-last-review-comments.
	(lyskom-review-comments): Handle a list of text-stats as the input
	to this function.
	(kom-review-more-comments): New command.

	Fix bug 1535:
	* commands1.el (lyskom-write-text): Added add-self parameter.
	(kom-send-letter): Always add sender as recipient.

	Fix bug 1589:
	* mime.el (lyskom-mime-string-charset): Handle server coding
	system in found charset.

	* compatibility.el (find-charset-string): Default to server
	coding-system or latin-1 if server coding system is unknown.

	Fix bug 1602:
	* mime.el (lyskom-mime-decode-content-type): Correctly match the
	type and subtype fields of content types. Downcase all values.

	Fix bug 1391:
	* commands2.el (lyskom-help): Handle printing top-level keymap.

	* help.el (lyskom-help-format-keymap): New function.

	* help-english.xml,help-swedish.xml: Added keyboard commands
	section.

	* help-compile.el (lyskom-help-syntax): Added keymap directive.

	Probably fix bug 1570:
	* compatibility.el (lyskom-map-keymap): Do not attempt to car or
	cdr non-conses when mapping over keymap.

2006-03-30  David Byers  <davby@ida.liu.se>

	Update handling of text/enriched:
	* lyskom-rest.el (lyskom-format-enriched): Handle new-style
	enriched text, with headers in a special aux-item.

	* edit-text.el (lyskom-edit-send): Handle aborted sending without
	error message.

	* aux-items.el (elisp-client-enriched-headers): Added aux-item
	definition. 

	* edit-text.el (lyskom-edit-send): Replaced
	lyskom-send-text-transform-function with more general
	lyskom-send-text-transform-hook, which allows multiple
	transformations and changes to more than just the text.

	* vars.el.in (lyskom-send-text-transform-hook): Ditto.

2005-03-22  David Byers  <davby@ida.liu.se>

	* english-strings.el (lyskom-custom-strings): Fxied speling erorr
	in me.

1039 1040
2006-02-16  Johan Sundstrm  <jhs@lysator.liu.se>

1041 1042 1043 1044
	* vars.el.in (lyskom-default-conference-strategy): Made
	kom-filter-author, kom-moronify and kom-befriend use the new
	lyskom-default-conference-author-of-text-at-point strategy.

1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059
	* commands2.el (kom-moronify, kom-befriend): New commands to add
	persons to `kom-morons' and `kom-friends' right in the kom buffer.

	* vars.el.in (lyskom-default-conference-strategy): Associated
	default strategies.
	(lyskom-button-actions): ...and button actions for persons.

	* completing-read.el
	(lyskom-default-conference-author-of-text-at-point): New strategy
	helper function. Should be used with kom-filter-author as well,
	but I leave that for a separate commit, to make good change sets.

	* english-strings.el, swedish-strings.el (lyskom-message):
	Associated texts. Naming of these things could probably improve.

1060 1061 1062 1063 1064 1065
2005-10-26  Pontus Freyhult  <pont@soua.net>

	* prefetch.el (lyskom-setup-prefetch): Set lyskom-inhibit-prefetch to
	nil. Hopefully fixes bad behavior sometimes seen when using 
	kom-recover.

1066 1067 1068 1069 1070
2005-03-15  Pontus Freyhult  <pont@soua.net>

	* perf.el (fields-new): Dispose of marker when done.

	* help.el (lyskom-help-format-p): Dito.
David Byers's avatar
David Byers committed
1071

1072 1073 1074
	* lyskom-rest.el (lyskom-do-special-inserts): Dito.
	(lyskom-insert-before-prompt): Dito.
	(lyskom-render-html-region): Dito.
David Byers's avatar
David Byers committed
1075

1076 1077 1078 1079 1080 1081 1082 1083
	* commands2.el (lyskom-list-new-conferences): Dispose of marker when
	we're done with it.

	* edit-text.el (lyskom-edit-insert-miscs): Dito.
	(kom-edit-add-comment): Dito.
	(lyskom-edit-add-recipient/copy): Dito.
	(lyskom-edit-insert-aux-item): Added FIXME about marker.
	(lyskom-edit-replace-headers): Dispose of markers when done.
David Byers's avatar
David Byers committed
1084

1085 1086 1087 1088 1089 1090
2005-03-08  David Byers  <byers@lysator.liu.se>

	* compatibility.el (lyskom-encode-coding-string): Renamed
	functions used when detecting copy bug. Detect multibyte bug. 
	This hopefully fixes bug 1524.

1091 1092 1093 1094 1095
2005-03-07  David Byers  <byers@lysator.liu.se>

	* lyskom-rest.el (lyskom-face-default-p): New implementation since
	face-equal didn't really do the job.

1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107
2005-03-02  Pontus Freyhult  <pont@soua.net>

        Bugfix: Revert didn't work properly
	* filter-edit.el (lyskom-filter-edit-revert): Use 
	filter-edit-filter-list instead of lyskom-filter-list.
	Update filter-edit-list-end marker.

	Give some guidance when editing filters:
	* english-strings.el, swedish-strings.el (lyskom-messages):
	Added filter-edit-footer.

	* filter-edit.el (kom-filter-edit): Output filter-edit-footer.
1108

1109 1110 1111 1112
2005-02-25  Pontus Freyhult  <pont@soua.net>

	* swedish-strings.el, english-string.el (lyskom-custom-strings): 
	Fixed spelling of Gopher in emacs-w3-viewer.
1113

1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124
	Fix bug 297:
	* vars.el.in (kom-netscape-command): Added Firefox and Opera to 
	variable description.
	(kom-netscape-variant): Dito.
	(kom-url-viewer-preferences): Dito.

	* swedish-strings.el, english-strings (lyskom-custom-strings): Dito 
	for kom-netscape-command-doc, kom-netscape-variant-doc,
	kom-netscape-command-tag, kom-netscape-variant-tag,
	netscape-viewer and windows-viewer.

Pontus Freyhult's avatar
Pontus Freyhult committed
1125 1126
2005-02-24  Pontus Freyhult  <pont@soua.net>

Pontus Freyhult's avatar
Pontus Freyhult committed
1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140
	Fix bug 1091:
	* vars.el.in (kom-lost-session-notification): New variable.

	* option-edit.el (lyskom-custom-variables): Added 
	kom-lost-session-notification.
	(lyskom-customize-buffer-format): Dito.

	* english-strings.el, swedish-strings.el (lyskom-custom-strings): 
	Added kom-lost-session-notification-tag and
	kom-lost-session-notification-doc.

	* englist-strings.el, swedish-strings.el (local): Added 
	closed-connection-other-buf, session-lost-beep and 
	session-lost-all-buffers.
1141

Pontus Freyhult's avatar
Pontus Freyhult committed
1142 1143 1144
	* lyskom-rest.el (lyskom-sentinel): Do notification in other buffers
	if desired.

Pontus Freyhult's avatar
Pontus Freyhult committed
1145 1146 1147 1148
	Fix bug 1536:
	* command.el (lyskom-start-of-command): Pass port if non-standard.
	Also explicitly send current password (if available).

David Byers's avatar
David Byers committed
1149 1150 1151 1152 1153 1154 1155
2005-02-15  David Byers  <byers@lysator.liu.se>

	Fix bug 1512:
	* menus.el (lyskom-define-menu-xemacs): Handle case when
	current-local-map is nil (don't attempt to guess shortcuts in this
	case).

1156 1157
2005-02-14  David Byers  <byers@lysator.liu.se>

1158 1159 1160 1161 1162 1163 1164
	Fix ugliness when default server is unset:
	* startup.el (lyskom): New calling conventions for
	lyskom-read-server-name.
	(lyskom-read-server-name): New parameter list. Do not accept empty
	input. Use initial value and magic minibuffer instead of default
	value.

David Byers's avatar
David Byers committed
1165 1166 1167
	Fix bug 1511:
	* commands1.el (lyskom-combine-username): Downcase hostnames.

David Byers's avatar
David Byers committed
1168 1169 1170 1171 1172 1173 1174 1175 1176
	Fixed bug 1520:
	* lyskom-buttons.el (lyskom-button-menu): Pass filter to functions
	that build menus.
	(lyskom-make-button-menu): Changed old-style backquote to
	new-style backquote. Removed function quotes.

	* vars.el.in (lyskom-button-actions): Introduced filter function
	for the context menu.

David Byers's avatar
David Byers committed
1177 1178 1179 1180
	Fix bug 1519:
	* lyskom-buttons.el (lyskom-button-add-self): Pass conf-stat, not
	conf-no to kom-add-self.

1181 1182 1183 1184 1185 1186 1187 1188 1189
	Fix bug 1533:
	* commands2.el (lyskom-list-summary): Copy the read-list before
	passing it to lyskom-list-text-summary.

2005-01-23  David Byers  <byers@lysator.liu.se>

	* startup.el (kom-start-anew): Init membership structures really
	early since there is a race condition during first logon otherwise.

1190 1191 1192 1193 1194 1195 1196 1197 1198 1199
2005-01-26  Johan Sundstrm  <jhs@lysator.liu.se>

	* view-text.el
	(lyskom-view-text-convert-UTF-8-to-ISO-8859-1): New function
	that, when put in `kom-view-text-hook', translates basic UTF-8
	characters available in ISO-8859-1 to their such counterparts.

	* swedish-strings.el, english-strings.el (lyskom-message): Added
	the string `reformat-utf-8'.

1200 1201 1202 1203
2005-01-23  David Byers  <byers@lysator.liu.se>

	* Release of 0.48.

1204 1205 1206 1207 1208 1209 1210 1211 1212
2005-01-23  David Byers  <byers@lysator.liu.se>

	* utilities.el (lyskom-check-configuration): Don't print a warning
	about the coding system when using UTF-8.

2005-01-22  David Byers  <byers@lysator.liu.se>

	* lyskom-elisp-client.spec: New file from C C Magnus Gustavsson.

1213 1214 1215 1216 1217 1218
2005-01-19  Pontus Freyhult  <pont@soua.net>

	* lyskom-rest.el (kom-save-text-body): Use coding system of text
	for saving if available, or fall back to server default coding 
	system if not.

1219 1220 1221 1222 1223
2005-01-18  Pontus Freyhult  <pont@soua.net>

	* swedish-strings.el: Added compatibility key bindings for XEmacs
	21.4 in UTF-8 mode (on tty).

1224 1225 1226
2005-01-16  Pontus Freyhult  <pont@soua.net>

	* swedish-strings.el: Added compatibility key bindings to make GNU
1227
	Emacs 21 in UTF-8 mode (on tty) work correctly.
1228

1229 1230 1231 1232 1233
2005-01-12  Ulrik Haugen  <qha@lysator.liu.se>

	* english-strings.el (lyskom-en-mode-map): replaced reference to
	lyskom-sv-mode-map with lyskom-en-mode-map.

1234 1235
2005-01-12  David Byers  <byers@lysator.liu.se>

David Byers's avatar
David Byers committed
1236 1237 1238 1239 1240 1241 1242 1243
	* check-strings.el (lcs-check-strings): If environment variable
	LYSKOM_CHECK_IDENTICAL is set, check for strings identical in two
	languages (many are expected, so this is off by default).

	* english-strings.el: Found four swedish strings. Fixed.

	* NEWS-0.48: Updated to here.

1244 1245 1246 1247 1248 1249 1250 1251 1252
	* swedish-strings.el (lyskom-sv-mode-map): Added M-c for
	kom-toggle-cache-prefix.

	* english-strings.el (lyskom-en-mode-map): Same.

	* review.el (kom-toggle-cache-prefix): New function. M-c will
	toggle whether review uses the cache or not (like M-m toggles if
	review marks as read).

Pontus Freyhult's avatar
Pontus Freyhult committed
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272
2005-01-12  Pontus Freyhult  <pont@soua.net>

	Fix bug 1402:
	* english-strings.el, swedish-strings.el (lyskom-custom-strings): 
	Added kom-membership-default-message-flag-tag and
	kom-membership-default-message-flag-doc.

	* english-strings.el (lyskom-custom-strings): Fixed typo for
	kom-membership-default-priority-doc.

	* option-edit.el (lyskom-custom-variables): Added 
	kom-membership-default-message-flag.
	(lyskom-customize-buffer-format): Dito.

	* vars.el.in (kom-membership-default-message-flag): New variable.

	* commands1.el (lyskom-add-member): Use 
	kom-membership-default-message-flag.


1273 1274
2005-01-11  Pontus Freyhult  <pont@soua.net>

1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297
	Applied patch from calle@lysator.liu.se, fixes bug 1487:
	* english-strings.el (lyskom-message): Added reformat-rot13, 
	review-rot13-q and lyskom-button-review-rot13-action.
	(lyskom-command): Added kom-review-rot13.

	* swedish-strings.el (lyskom-message): Added reformat-rot13, 
	review-rot13-q and lyskom-button-review-rot13-action.
	(lyskom-command): Added kom-review-rot13.

	* view-text.el (lyskom-rot13-string): New function.
	(lyskom-filter-rot13): Dito.

	* lyskom-buttons.el (lyskom-button-review-rot13): New button
	action.

	* menus.el (lyskom-menu-template): Added kom-review-rot13.

	* review.el (kom-review-rot13): New function.

	* vars.el.in (lyskom-button-actions): Added rot13 review action.
	(lyskom-commands): Added kom-review-rot13.

	Fix for bug 1491:
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310
	* english-strings.el, swedish-strings.el: 
	(lyskom-custom-strings): Added kom-relogin-inhibit-commands-tag
	and kom-relogin-inhibit-commands-doc.

	* option-edit.el (lyskom-customize-buffer-format): Added
	kom-relogin-inhibit-commands.
	(lyskom-custom-variables): Dito.

	* vars.el.in (kom-relogin-inhibit-commands): New variable.

	* command.el (lyskom-start-of-command): Treat commands in
	kom-relogin-inhibit-commands as having dead-ok.

David Byers's avatar
David Byers committed
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336
2005-01-09  David Byers  <byers@lysator.liu.se>

	* commands1.el (kom-move-text-tree): Handle missing text in the
	tree.
	(lyskom-move-recipient): Add leave-cc argument.

	* lyskom-rest.el (lyskom-a-or-b-or-c-p): Display chosen option
	when just pressing RET. Show default choice in bold. Compact
	display a bit.

	* commands1.el (kom-move-text-tree): Use lyskom-a-or-b-or-c-p to
	ask about what to do. Support a null source (useful to just add a
	recipient, not remove anything).

	* NEWS-0.48: Updated to here.

	* commands2.el (kom-list-sessions): Docstring fixes.

	* vars.el.in (kom-default-server): No default server in default
	build.
	Variois docstring fixes.

	* mship-edit.el (lp--show-hide-read-memberships): Toggle filter.
	(lp--show-hide-passive-memberships): Ditto.
	(lp--mode): Fixed key binding references in docstring.

1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373
2005-01-08  David Byers  <byers@lysator.liu.se>

	* vars.el.in: Documentation updates in preparation for generating
	DocBook from the documentation strings.

	* startup.el (lyskom-refetch): We were prefetching unread confs in
	the reverse order, which was stupid as it slows down starting to
	read and may cause us to read texts in the wrong order.

2005-01-07  David Byers  <byers@lysator.liu.se>

	* mship-edit.el (lyskom-change-membership-position): Removed
	binding of old-position (it was never used).

	* english-strings.el (lyskom-en-edit-mode-map): Changed key
	bindings to explicitly use prefixes. 

	* swedish-strings.el (lyskom-sv-edit-mode-map): Changed key
	bindings to explicitly use prefixes. Better variants of the
	swedish key binding. Use lyskom-try-define-key for swedish
	bindings.

	* edit-text.el: Updated documentation for most commands so that it
	can be extracted into the user manual in the future. All commands
	with the prefix `kom-edit-' are expected to be documented unless
	the documentation string ends in "Excluded from manual."
	(kom-ispell-message): Renamed to
	kom-edit-ispell-message.
	(kom-yank-info-nodename): Renamed to kom-edit-yank-info-nodename.

	* filter-edit.el (kom-filter-edit): Wrote docstring.

	* review.el: Various docstring updates (changed "text" to article
	in several places).

	* vars.el.in (kom-unread-mode-line-type): Updated docstring.

1374 1375 1376 1377
2005-01-04  Ulrik Haugen  <qha@lysator.liu.se>

	* swedish-strings.el (lyskom-sv-mode-map): Added keybindings for
	unaccelerated < and >.
David Byers's avatar
David Byers committed
1378

1379 1380
	* english-strings.el (lyskom-en-mode-map): Ditto.

1381 1382 1383 1384 1385 1386
2004-12-06  Pontus Freyhult  <pont@soua.net>

	Bugfix: Handle case when started from buffer with no local keymap
	* menus.el (lyskom-define-menu-gnu): Only call 
	lyskom-menu-guess-shortcuts if we (current-local-map) is non-nil.

1387 1388 1389 1390 1391 1392
2004-12-04  Pontus Freyhult  <pont@soua.net>

	Bugfix: Do not leak password from session started in LysKOM buffer.
	* startup.el (lyskom): Do not send password if host
	differs from the server it was given for.

1393 1394 1395 1396
2004-11-16  Pontus Freyhult  <pont@soua.net>

	* lyskom-rest.el (lyskom-update-prompt): Use lyskom-session-nickname.

1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421
2004-11-15  Pontus Freyhult  <pont@soua.net>

	Implement alternate unread mode line:
	* option-edit.el (lyskom-customize-buffer-format): Added 
	kom-unread-mode-line-type.
	(lyskom-custom-variables): Dito.	

	* english-strings.el, swedish-strings.el: 
	(lyskom-custom-strings): Added kom-unread-mode-line-type-tag
	and kom-unread-mode-line-type-doc. Added simple-unread-mode-line
	and explicit-unread-mode-line.

	* lyskom-rest.el (lyskom-make-alternate-unread-mode-line): New 
	function.
	(lyskom-make-lyskom-unread-mode-line): Use 
	lyskom-make-alternate-unread-mode-line if applicable.

	* buffers.el (lyskom-update-unread-mode-line): New function.
	(lyskom-clean-all-buffer-lists): Call lyskom-update-unread-mode-line.
	(lyskom-remove-buffer-from-lists): Dito.
	(lyskom-remove-unread-buffer): Dito.
	(lyskom-add-unread-buffer): Dito.

	* vars.el.in (kom-unread-mode-line-type): New global variable.

1422 1423
2004-11-12  Pontus Freyhult  <pont@soua.net>

David Byers's avatar
David Byers committed
1424
	* commands2.el (kom-list-sessions): Use session-list-no-unread-in
1425 1426 1427 1428
	if there are no texts in the session.

	* english-strings.el, swedish-strings.el (local):
	Added session-list-no-unread-in.
David Byers's avatar
David Byers committed
1429

1430 1431 1432 1433 1434 1435 1436
	* commands2.el (kom-modeline-select-unread-kom): Use 
	lyskom-session-nickname.
	(kom-status-server): Dito.

	* lyskom-rest.el (lyskom-session-nickname): Take additional argument
	if the nick name is to be put in the mode line.
	(lyskom-mode-name-from-host): Pass mode-line arg.
David Byers's avatar
David Byers committed
1437

1438 1439
	* async.el (lyskom-show-logged-in-person): Use lyskom-session-nickname.
	(lyskom-show-logged-out-person): Dito.
David Byers's avatar
David Byers committed
1440

1441 1442 1443 1444
	* utilities.el (lyskom-get-server-alias): Deleted (almost) unused
	function.
	(lyskom-nag-about-presentation): Use lyskom-session-nickname instead.

1445 1446 1447 1448
	* vars.el.in (lyskom-commands): Added kom-list-sessions.

	* menus.el (lyskom-menu-template): Added kom-list-sessions.

1449 1450 1451
	* commands2.el (kom-list-sessions): Sort first on priority, 
	then on session name. Corrected bad usage of sort.
	Handle nil entries in lyskom-list-news result.
David Byers's avatar
David Byers committed
1452

1453 1454 1455
	* swedish-strings.el (local): Corrected singular form for 
	unread letters in session-list-unreads-in-conf.

1456 1457
2004-11-11  Pontus Freyhult  <pont@soua.net>

1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488
	Fix bug 279, implement list sessions (with extras):
	* vars.el.in (kom-session-nickname): New variable.
	(mode-line-server-name): New variable.

	* english-strings.el, swedish-strings.el (local):
	Added session-list-unreads-in-conf.
	(global): Added kom-list-sessions.
	(lyskom-{sv,en}-list-prefix): Bound kom-list-sessions to l k. 
	(lyskom-custom-strings): Added automatic-session-name and 
	given-session-name. Added kom-session-nickname-doc and 
	kom-session-nickname-tag.

	* startup.el (kom-start-anew): Cosmetical if not -> unless.
	Call lyskom-mode-name-from-host after variables are read from
	server.

	* startup.el (lyskom-mode): Use mode-line-server-name in
	mode-line-buffer-identification.

	* option-edit.el (lyskom-customize-buffer-format): Added 
	kom-session-nickname.
	(lyskom-custom-variables): Dito.	

	* lyskom-rest.el (lyskom-set-mode-line): Call 
	lyskom-mode-name-from-host.
	(lyskom-session-nickname): New function.
	(lyskom-mode-name-from-host): Use lyskom-session-nickname, update
	mode-line-server-name.

	* commands2.el (kom-list-sessions): New command.

1489 1490 1491 1492
	Handle UTF-8 postings created by Rasmus Stens Weblatte:
	* mime.el (lyskom-mime-decode-content-type): Allow whitespace
	after ";" in content-types.

1493 1494
2004-11-03  Pontus Freyhult  <pont@soua.net>

1495 1496 1497 1498 1499 1500 1501
	Use kom-default-* as user variables, not lyskom-default-*:
	* vars.el.in (kom-default-server): Updated documentation and value.
	(lyskom-default-server): Dito.
	(kom-default-password): Dito.	
	(lyskom-default-password): Dito.
	(kom-default-user-name): Dito.
	(lyskom-default-user-name): Dito.
David Byers's avatar
David Byers committed
1502

1503 1504
	* startup.el (lyskom): Use kom-default-server, kom-default-user-name
	and kom-default-password.
David Byers's avatar
David Byers committed
1505

1506 1507 1508
	* commands1.el (kom-view-commented-text): Cleanup (progn removal),
	inhibit immediate display of footnotes.

1509 1510 1511 1512 1513 1514 1515
2004-10-31  Pontus Freyhult  <pont@soua.net>

	* mship-edit.el (lp--selected-or-current-arg): New function.
	(lp--toggle-flag): New function.
	(lp--postpone): New function.
	(lp--set-unread): New function.
	(lp--toggle-message-flag, lp--toggle-invitiation,
David Byers's avatar
David Byers committed
1516
	lp--toggle-secret, lp--toggle-passive): Use
1517 1518
	lp--selected-or-current-arg and lp--toggle-flag.

David Byers's avatar
David Byers committed
1519
	* english-strings.el, swedish-strings.el (lyskom-messages):
1520 1521
	Added lp--only-last and lp-skipping-missing-meeting. 
	Changed lp-footer-help.
David Byers's avatar
David Byers committed
1522
	(lyskom-menu): Added lp--set-unread.
1523 1524
	(lyskom-prioritize-mode-map): Added keyboard mappings
	for lp--postpone and lp--set-unread.
David Byers's avatar
David Byers committed
1525

1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537
2004-10-29  Pontus Freyhult  <pont@soua.net>

	* mship-edit.el (lp--entry-set-background): Use 
	lyskom-safe-color-name.
	(lp--entry-set-foreground): Dito.

	* utilities.el (lyskom-safe-color-name): New function.

	* compatibility.el (color-name): New alias.
	(color-specifier-p): New alias.
	(face-background): Reverted previous change, alias again.
	(face-foreground): Reverted previous change, alias again.
David Byers's avatar
David Byers committed
1538

1539 1540 1541 1542 1543 1544 1545 1546 1547
2004-10-29  Pontus Freyhult  <pont@pontus.its.uu.se>

	* lyskom-rest.el (lyskom-format-image): Disabled run time 
	test for image functions, use aliases instead.

	* compatibility.el (display-images-p): New alias.
	(put-image): New alias.
	(create-image): New alias.

1548 1549
2004-10-29  Pontus Freyhult  <pont@soua.net>

David Byers's avatar
David Byers committed
1550
	* lyskom-rest.el (lyskom-format-image): Bugfix: Used let instead
1551 1552
	of let*.

1553 1554 1555 1556
2004-10-28  David Byers  <byers@lysator.liu.se>

	* vars.el.in: Updated some documentation strings.

1557 1558 1559 1560 1561 1562 1563 1564
2004-10-28  Pontus Freyhult  <pont@soua.net>

	* mship-edit.el (lp--entry-set-foreground): Do not try to handle
	missing start-marker or end-marker.
	(lp--entry-set-background): Dito.
	(lp--print-entry): Add end-marker before calling 
	lp--format-insert-entry and correct it afterwards.

1565 1566 1567 1568 1569 1570
2004-10-27  Pontus Freyhult  <pont@soua.net>

	* mship-edit.el (lp--erase-entry): Point old markers to nil before
	forgetting them.
	(lp--print-entry): Dito.

1571 1572
2004-10-26  Pontus Freyhult  <pont@soua.net>

1573 1574 1575
	* mship-edit.el (lp--redraw-entry-mark): Use lyskom-face-background,
	not face-background.

1576 1577 1578 1579 1580
	Fix XEmacs problems with kom-prioritize:
	* compatibility.el (lyskom-face-background): Changed to a wrapper
	function that returns a string (not a color-specifier) or nil.
	(lyskom-face-foreground): Dito.

Pontus Freyhult's avatar
Pontus Freyhult committed
1581 1582 1583 1584 1585 1586 1587 1588 1589 1590
2004-10-25  Pontus Freyhult  <pont@soua.net>

	* review.el (kom-review-noconversion): Use nil for 
	kom-show-footnotes-immediately during review with noconversion.

	Fix bug 1324:
	* view-text.el (lyskom-follow-comments): Removed possible
	footnote display.
	(lyskom-view-text): Show footnotes if desired.

1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602
2004-10-23  Pontus Freyhult  <pont@soua.net>

	Fix bug 284:
	* english-strings.el, swedish-strings.el: 
	(lyskom-custom-strings): Added kom-show-imported-message-id-tag
	and kom-show-imported-message-id-doc.
	(lyskom-message): Added message-id.

	* option-edit.el (lyskom-customize-buffer-format): Added 
	kom-show-imported-message-id.
	(lyskom-custom-variables): Dito.	

David Byers's avatar
David Byers committed
1603
	* vars.el.in (kom-show-imported-message-id): New variable.
1604 1605 1606 1607 1608
	(kom-show-imported-external-recipients): Changed documentation
	(added kom-show-imported-message-id as "see also").

	* view-text.el (lyskom-view-text): Show Message-Id if available
	and kom-show-imported-message-id is true.
1609

1610 1611
2004-10-19  Pontus Freyhult  <pont@soua.net>

1612 1613 1614 1615 1616 1617 1618
	Allow for easy relogin from dead sessions (bug 1278):
	* command.el (lyskom-start-of-command): Possibly rerun 
	lyskom according to kom-relogin-behaviour.

	* startup.el (kom-start-anew): Handle the case of 
	lyskom-default-user-name being an integer.

David Byers's avatar
David Byers committed
1619
	* vars.el.in (kom-relogin-behaviour): New variable.
1620 1621 1622 1623 1624 1625 1626 1627 1628 1629
	(lyskom-default-user-name): Changed documentation.

	* english-strings.el, swedish-strings.el: 
	(lyskom-message): Added resurrect-session.
	(lyskom-custom-strings): Added kom-relogin-behaviour-doc 
	and kom-relogin-behaviour-tag.

	* option-edit.el (lyskom-customize-buffer-format): Added 
	kom-relogin-behaviour.
	(lyskom-custom-variables): Dito.	
1630

1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647
	Clean up lyskom-default-password, enable password storing:
	* english-strings.el, swedish-strings.el: 
	(lyskom-custom-strings): Added kom-remember-password-tag
	and kom-remember-password-doc.

	* option-edit.el (lyskom-customize-buffer-format): Added 
	kom-remember-password.
	(lyskom-custom-variables): Dito.

	* vars.el.in (kom-remember-password): New variable.

	* startup.el (lyskom): Use lyskom-default-user-name and
	lyskom-default-password if set (with higher priority than
	environment variables).
	(kom-start-anew): Store the password used to login in 
	lyskom-default-password if kom-remember-password is true.

1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662
	Handle texts with content-type image/something:
	* english-strings.el, swedish-strings.el: 
	(lyskom-message): Added reformat-image and image-no-show.
	(lyskom-custom-strings): Added kom-format-show-images-doc and
	kom-format-show-images-tag.

	* lyskom-rest.el (lyskom-format-image): New function.

	* option-edit.el (lyskom-customize-buffer-format): Added 
	kom-format-show-images.
	(lyskom-custom-variables): Dito.

	* vars.el.in (kom-format-show-images): New variable.
	(lyskom-format-special): Use lyskom-format-image for
	texts with content-type starting with image.
1663

1664 1665
2004-10-17  David Byers  <byers@lysator.liu.se>

1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676
	Keep last read column in kom-handle-membership updated:
	* services.el (initiate-pepsi): Update last-time-entered when
	going to a conference with a cached membership. This makes it
	possible to update the corresponding column in the membership
	buffer correctly.

	Visual tweaks:
	* faces.el (kom-face--default--morons-face): Changed background to
	something slightly more legible.

	Mode documentation for kom-handle-membership:
1677 1678 1679 1680
	* mship-edit.el (lp--mode): Added mode documentation.

2004-09-27  David Byers  <byers@lysator.liu.se>

1681
	Menus for kom-handle-membership:
1682 1683 1684 1685 1686 1687
	* menus.el (lyskom-prioritize-menu-template): New template.
	(lyskom-prioritize-menu): New variable.
	(lyskom-build-menus-xemacs): Build prioritize menu.
	(lyskom-build-menus-gnu): Build prioritize menu.
	(lyskom-menu-list): Add prioritize menu.

1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704
2004-07-21  David Byers  <byers@lysator.liu.se>

	* mship-edit.el (lp--update-buffer): When updating an existing
	membership, use its position if it has one, or things could go
	very wrong.

	* commands1.el (lyskom-add-member): Query the membership cache for
	the new position of the membership instead of attempting (and
	failing) to duplicate the logic here.

	* reading.el (lyskom-membership-list-prepend): Summport
	simulation.
	(lyskom-membership-list-insert-position): New function.
	(lyskom-membership-list-insert): Support simulation.
	(lyskom-query-membership-position): New function.
	(lyskom-membership-list-append): Support simulation.

1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735
2004-07-20  David Byers  <byers@lysator.liu.se>

	* lyskom-rest.el (lyskom-enter-conf): Update the membership buffer
	when going to a conference.

	* commands1.el (lyskom-go-to-empty-conf): Update the membership
	buffer when going to a conference.

	Improve handling of hidden entries in mship-edit:
	* mship-edit.el (lp--entry-set-visible): New function that handles
	bookkeeping for visibility.
	(lp--update-mode-line): Compute hidden information.
	(lp--mode-line-hidden): New variable.
	(lp--mode-line): Show number of hidden. Don't show modified
	status (what would the point be).
	(lp--entry-filter-after): New function.
	(lp--entry-filter-before): New function.
	(lp--show-all): New implementation. Moved.
	(lp--show-hide-memberships-by-date): New implementation.
	(lp--show-hide-read-memberships): New command.
	(lp--show-hide-passive-memberships): New command.
	(lp--mode): Set some local vars to nil on entry to mode.
	(lp--apply-entry-filter): Preserve cursor position.
	(lp--replace-entry-filter): New function.

	Fixed some remaining places where unreads weren't updated:
	* clienttypes.el (read-list-enter-first): Maybe update unreads in
	membership buffer.
	(set-read-list-del-first): Same here
	(set-read-list-empty): Same here

1736 1737
2004-07-19  David Byers  <byers@lysator.liu.se>

1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782
	Support for entry filters and buffer headers:
	* mship-edit.el (lp--add-entry-filter): New function.
	(lp--del-entry-filter): New function.
	(lp--apply-entry-filter): New function.
	(lp--entry-filter-description): New function.
	(lp--update-filter-description): New function.
	(lp--entry-filter-read): New function.
	(lp--entry-filter-passive): New function.
	(lp--entry-filter-hidden): New function.
	(lp--set-header): New function.
	(lp--create-buffer): Enable use of lp--set-header.

	Integrate mship-edit:
	* commands2.el (kom-membership): Removed old implementation and
	associated functions. Turned into an alias for kom-prioritize.

	* mship-edit.el (kom-prioritize): Renamed from
	kom-handle-membership.

	Improve membership edit:
	* mship-edit.el: Numerous minor changes. No details :-/

	* prioritize.el: Removed.

	* avltree.el: Removed.

	* elib-node.el: Removed.

	* clienttypes.el (read-list-delete-read-info): Update unreads in
	the membership buffer.

	* commands1.el (lyskom-add-member): Do replace-membership even
	when working under the session priority.
	(lyskom-add-member): Removed lp--update-buffer when adding a new
	membership or changing priority since lyskom-replace-membership
	will take care of that.

	* mship-edit.el (lp--print-entry): Recompute and obey visibility
	of entry. Erase entries that are invisible.
	(lp--erase-entry): Survive being called on an undrawn entry.
	(lp--entry-at): New implementation based on linear search that
	deals with invisible entries.
	(lp--maybe-update-unreads): Handle entry visibility and visibility
	changes correctly.

1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796
	Nicen up lyskom-end-of-command:
	* command.el (def-kom-command): Use make-symbol, not intern, to
	get an uninterned symbol for the macro. Added winsym to save
	selected window.
	(def-kom-emacs-command): Ditto.
	(def-kom-command): Select the correct window for
	lyskom-end-of-command so point can be moved to the end of the
	prompt in that window.
	(def-kom-emacs-command): Same here.

	Fix problem tracking unreads in membership buffer:
	* clienttypes.el (read-list-enter-text): When updating unreads,
	pass conf-no, not conf-stat, to lp--maybe-update-unreads.

1797 1798
2004-07-18  David Byers  <byers@lysator.liu.se>

1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814
	* mship-edit.el (lp--maybe-update-unreads): Zero unreads are
	formatted as "", even if there is a read-info on the to-do list.

	* clienttypes.el (read-list-enter-read-info): Update unreads when
	appending unread texts to old read-infos and adding new
	read-infos.

	* view-text.el (lyskom-mark-as-read): Removed the callback. We
	update the membership buffer elsewhere.

	* clienttypes.el (read-list-enter-text): Update unreads in the
	membership buffer.
	(read-list-delete-text): Update unreads in the membership buffer.

	* komtypes.el (text-list->memq): New subst.

1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841
	* reading.el (lyskom-membership-list-move): Return non-nil if
	moved.
	(lyskom-replace-membership): Sort the to-do list if the membership
	moved.

	* mship-edit.el (lp--update-buffer): Use regular save-excursion
	around the complete function, not lp--save-excursion.

	* reading.el (lyskom-replace-membership): Make it actually work.

	* lyskom-rest.el (lyskom-binsearch-internal): Use elt, not aref,
	so the thing can work on lists too -- searching for elt n in C is
	a lot faster than linear search in lisp.
	(lyskom-binsearch): Accept comparison function.
	(lyskom-binsearch-internal): User-supplied comparison function.

	* mship-edit.el (lp--mode-map): Added bindings for M-up and
	M-down (same as M-p and M-n).
	(lp--do-select-priority): Prompt for priority (defaults to
	priority of current entry)
	(lp--mode-map): M-# now bound to lp--deselect-priority
	(lp--mode-map): M-w now bound to lp--select-region (my fingers
	refuse to hit C-w when I don't want text to be deleted)
	(lp--mode-map): Bound <home> and <end>
	(lp--expand-entry): New function. Replaces lp--expand-all
	(lp--contract-entry): New function. Replaces lp--contract-all

1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879
	New membership list data structure:
	* mship-edit.el (lyskom-change-membership-priority): New API for
	lyskom-replace-membership.
	(lyskom-change-membership-position): Ditto.
	(lyskom-prioritize-flag-toggle): Ditto.
	(lp--set-entry-pri-and-pos): Ditto. Set position correctly.

	* macros.el (lyskom-traverse-membership): New implementation.

	* reading.el: New implementation of the sorted conference list.
	Using AVL trees ended up causing too much trouble when changing
	position and priority of memberships.
	(mship-list-node): New type.
	(membership-list): New type.
	(lyskom-membership-list-compare-next): New function (internal)
	(lyskom-membership-list-compare-prev): New function (internal)
	(lyskom-membership-list-insert): New function (API)
	(lyskom-membership-list-prepend): New function (internal)
	(lyskom-membership-list-append): New function (internal)
	(lyskom-membership-list-delete): New function (API)
	(lyskom-membership-list-move): New function (API)
	(lyskom-mship-cache-create): Don't use AVL trees.
	(lyskom-mship-cache-get): Now returns mship-list-nodes.
	(lyskom-mship-cache-put): Don't use AVL trees.
	(lyskom-mship-cache-append): New function (internal)
	(lyskom-mship-cache-del): Don't use AVL trees.
	(lyskom-update-membership-positions): Do nothing.
	(lyskom-add-memberships-to-membership): Append memberships 
	(lyskom-try-get-membership): Deal with a cache that returns
	mship-list-nodes instead of memberships.
	(lyskom-replace-membership): Function, not macro, again.
	(lyskom-membership-<): Removed

2004-07-16  David Byers  <byers@lysator.liu.se>

	* reading.el (lyskom-membership-<): If the conf-nos are not the
	same, always return t.

1880 1881
2004-07-15  David Byers  <byers@lysator.liu.se>

1882 1883 1884 1885
	* commands1.el (lyskom-add-member): Delete the new conference from
	the to-do-list so we get the correct number of unread when
	accepting an invitation.

1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926
	* startup.el (lyskom-refetch): Prefetch membership *after*
	prefetching unread confs. This should let us get started reading
	just a little quicker.

	* prefetch.el (lyskom-prefetch-read-texts-handler): If we get here
	and already have a cached membership, then replace its read-texts
	field since the membership we have may come from a call where we
	didn't ask for read texts.

2004-07-13  David Byers  <byers@lysator.liu.se>

	* mship-edit.el (lp--update-buffer): Call lp--remove-from-list
	with the correct parameters.

	Removed obsolete backwards compatibility setting:
	* vars.el.in (kom-default-session-priority): Changed default
	session priority to zero. By now everyone who used the old
	convention of priority zero meaning passive memberships should
	have saved their settings at least once, so they'll still have one
	as the default. New users shouldn't be burdened (or confused) by
	old baggage.

	Clean up XEmacs compile:
	* prefetch.el (lyskom-prefetch-one-item): Eliminate compiler
	warnings from XEmacs.

	* avltree.el (lyskom-elib-avl-enter-balance1): Eliminate compiler
	warnings from XEmacs.

	* utilities.el (lyskom-list-text-summary): Eliminate compiler
	warnings from XEmacs.

	Fix membership cache related bug:
	* startup.el (kom-start-anew): Call lyskom-init-membership here
	since a valid cache structure may be needed before we get to
	lyskom-refetch.

	Extend status information:
	* commands2.el (kom-is-person-member-of-conference): Show
	membership priority.

1927 1928
2004-07-12  David Byers  <byers@lysator.liu.se>

1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939
	Make kom-handle-membership work again:
	* reading.el (lyskom-replace-membership): Turned this into a macro
	so the membership can be altered while replacing it.

	* mship-edit.el (lyskom-change-membership-priority): Use
	lyskom-replace-membership properly.
	(lyskom-change-membership-position): Ditto.
	(lp--set-entry-pri-and-pos): Ditto. Also inhibit buffer updates to
	avoid infinite recursion due to calling lp--update-buffer from
	within lyskom-replace-membership.

1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986
	Deal with changes in 21.4 widget package:
	* option-edit.el (lyskom-create-widget): Don't mask errors when
	creating the storage widget. Changed args for the storage widget
	to a list.
	(lyskom-widget-number-value-to-external): Convert from pretty much
	anything to numbers.
	(lyskom-widget-number-value-to-internal): Convert from pretty much
	anything to strings.
	(lyskom-ding-widget): Set values to numbers, not strings.
	(lyskom-number-widget): Provide a default value.

	Deal with Gnu Emacs 19.34:
	* menus.el (lyskom-define-menu-gnu): Use
	lyskom-encode-coding-string instead of encode-coding-string.

	Eliminate warnings when compiling with Gnu Emacs 21.4:
	* compatibility.el (function-obsolete-p): New alias.
	(set-process-query-on-exit-flag): New alias.
	(make-local-hook): New alias.
	(lyskom-make-self-evaluating): New implementation that works in
	all Emacsen yet doesn't generate warnings in 21.4

	* startup.el (lyskom): Use lyskom-set-process-query-on-exit
	instead of process-kill-without-query.
	(lyskom-setup-ssh-relay): Same here.

	* defvar.el (lyskom-clientversion-long): We don't treat
	lyskom-clientversion-long as a constant in the rest of the code,
	so let's not pretend that it is one, shall we?

	Work on porting kom-handle-membership to new membership cache:
	* mship-edit.el (lyskom-change-membership-priority): Don't attempt
	to sort the membership list. Just replace the membership in the
	cache to put it in the correct position. Explicitly sort the to-do
	list since we no longer call lyskom-sort-membership.
	(lyskom-change-membership-position): Use lyskom-replace-membership
	to move the membership in the membership list.

	* macros.el (lyskom-traverse-membership): Ensure that we get
	lyskom-mship-cache from the right buffer.

	* prioritize.el: Removed lyskom-prioritize-add-membership,
	lyskom-prioritize-remove-membership and
	lyskom-prioritize-replace-membership. As a result the prioritize
	buffer can no longer deal with new, removed and altered
	memberships.

1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007
	* clienttypes.el (read-list-enter-read-info): When checking
	whether to append texts to an existing read-list item, don't check
	that conf-stats are eq. Just check that the conf-nos are the same.

	* prefetch.el (lyskom-prefetch-read-texts-handler): There was a
	race condition here which could cause unread texts never to be
	read properly.

	Provide hash-table-like functions in Emacs 19 and 20:
	* reading.el (lyskom-mship-cache-create): Use
	lyskom-make-hash-table instead of make-hash-table so compatibility
	defun is used when needed.
	(lyskom-mship-cache-get): Ditto for gethash.
	(lyskom-mship-cache-put): Ditto for puthash.
	(lyskom-mship-cache-del): Ditto for remhash.

	* compatibility.el (make-hash-table): Provide compatibility defun.
	(gethash): Ditto.
	(puthash): Ditto.
	(remhash): Ditto.

2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080
2004-07-11  David Byers  <byers@lysator.liu.se>

	Performance improvements:
	* prefetch.el: Completely new implementation.

	New implementation of lyskom-membership using AVL trees:
	* commands2.el (kom-list-news): Use lyskom-traverse-membership
	instead of mapping over lyskom-membership.
	(lyskom-update-membership-buffer): Use lyskom-traverse-membership
	instead of traversing lyskom-membership

	* stack-m.el: New file. Copied from elib with modifications.

	* elib-node.el: New file. Copied from elib with modifications.

	* avltree.el: New file. Copied from elib with modifications.

	* prefetch.el (lyskom-prefetch-membership-handler): Use
	lyskom-add-memberships-to-membership since this function now
	maintains a sorted membership list.

	* reading.el (lyskom-membership-<): Moved here from lyskom-rest.el.
	(lyskom-membership-length): New function.
	(lyskom-init-membership): New function.
	(lyskom-membership-position): New implementation.
	(lyskom-remove-membership): New implementation.
	(lyskom-replace-membership): New implementation.
	(lyskom-insert-membership): New implementation.
	(lyskom-add-memberships-to-membership): New implementation.
	(lyskom-update-membership-positions): New implementation.
	(lyskom-mship-cache-del): New function.
	(lyskom-mship-cache-put): New function.
	(lyskom-mship-cache-get): New function.
	(lyskom-mship-cache-create): New function.
	(lyskom-mship-cache-data): New function.
	(lyskom-mship-cache-index): New function.
	(lyskom-mship-cache): New variable.
	(lyskom-get-membership): Moved here from lyskom-rest.el. New
	implementation.
	(lyskom-try-get-membership): Ditto.

	* commands1.el (lyskom-add-member): Reimplement position
	calculation using lyskom-traverse-membership and possibly fixing a
	bug along the way.

	* macros.el (lyskom-traverse): New implementation using catch and
	no hard-coded variable names.
	(lyskom-traverse-break): New implementation using throw.
	(lyskom-traverse-aux): New implementation using catch and
	new-style backqoutes.
	(lyskom-traverse-membership): New macro.

	* commands1.el (kom-delete-conf): Don't manipulate
	lyskom-membership directly.
	(lyskom-add-member): Ditto.

	* startup.el (lyskom-set-membership): Removed. Not used.
	(lyskom-clear-vars): Don't save lyskom-membership or
	lyskom-membership-is read. They're overwritten anyway.

	* macros.el (lyskom-with-lyskom-buffer): New macro.

2004-06-28  David Byers  <byers@lysator.liu.se>

	Fix a bug where texts were not marked as read when they got a new
	recipient and also weren't placed in the read-list:
	* view-text.el (lyskom-mark-as-read): Use lyskom-recpt-types-list
	instead of hard-coding the list.

	* async.el (lyskom-async-new-recipient): When processing a new
	recipient, call mark-as-read with the text's local number, not
	it's global number.

2081 2082 2083 2084 2085
2004-07-03  Ulrik Haugen  <qha@lysator.liu.se>

	* Makefile (DPKG_BUILDPACKAGE_OPTIONS): Buggfix, don't set
	DPKG_BUILDPACKAGE_OPTIONS to "''".

2086 2087
2004-06-26  David Byers  <byers@lysator.liu.se>

2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099
	* reading.el (lyskom-add-memberships-to-membership): Use
	lyskom-membership-table.
	(lyskom-insert-memberships-in-membership): Ditto.
	(lyskom-do-insert-membership): Ditto.
	(lyskom-do-remove-membership): Ditto.

	Speed up lyskom-get-membership (a lot):
	* lyskom-rest.el (lyskom-membership-table): New variable
	(lyskom-membership-table-add): New function.
	(lyskom-membership-table-del): New function.
	(lyskom-try-get-membership): Use lyskom-membership-table. 

2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144
	Fix Emacs 19.34 compatibility problems:
	* compatibility.el (map-keymap): Bug fix-

	* menus.el (lyskom-swedish-bindings): Moved here from vars.el.in
	to make Emacs 19.34 work again.
	(lyskom-swedish-bindings-reverse): Ditto.

2004-06-25  David Byers  <byers@lysator.liu.se>

	New abstraction for listing texts:
	* faqs.el (lyskom-present-unread-faqs): Implement using new
	functions.
	(lyskom-do-list-faqs): Ditto.

	* commands2.el (lyskom-do-list-summary): Removed. Not used.
	(lyskom-list-summary): Implement using new functions.
	(lyskom-print-summary-line): Not used any more. Removed.
	(lyskom-construct-summary-format-string): Ditto.

	* utilities.el (lyskom-max-text-no-width): Moved here from
	commands2.el.
	(lyskom-symbolic-mark-type-string): Ditto.
	(lyskom-max-text-no-width): Ditto.

	* commands2.el (kom-list-marks): Implement using
	lyskom-list-text-summary. Show number of marks for each text.
	(lyskom-print-mark-summary-line): No longer used. Removed.
	(lyskom-max-mark-width): Cleaned up this code a little.

	* utilities.el (lyskom-list-text-summary-get): New support function.
	(lyskom-list-text-summary-put): Ditto.
	(lyskom-text-summary-fields): New variable.
	(lyskom-list-text-summary-subject): New support function.
	(lyskom-summary-line-format-string): Ditto.
	(lyskom-list-text-summary-print): Ditto.
	(lyskom-list-text-summary): Generic function for printing lists of
	texts. Incorporates support for all features in older text list
	functions.

2004-06-24  David Byers  <byers@lysator.liu.se>

	Fix bug 1362:
	* parse.el (lyskom-parse-float): Relaxed the regexp matching
	floats to avoid terminating the parse too early.

2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162
2004-06-23  David Byers  <byers@lysator.liu.se>

	Make kom-join-all-conferences more responsive:
	* commands2.el (kom-leave-all-conferences): Update display after
	each conf.
	(kom-join-all-conferences): Same here.

	Improve startup performance:
	* vars.el.in (lyskom-fetch-membership-length): Changed default to
	100 and updated the documentation. We no longer fetch the map this
	way, and a large value cuts down on the number of calls the client
	has to make to the server.

2004-06-13  David Byers  <byers@lysator.liu.se>

	* utilities.el (lyskom-set-connection-time-format): Refuse to set
	UTC if encode-time is broken (i.e. XEmacs 21.4 under Windows).

2163 2164 2165 2166 2167 2168 2169 2170
2004-06-09  Ulrik Haugen  <qha@lysator.liu.se>

	* vars.el.in (kom-builtin-server-aliases): Added MysKOM.

	* Makefile (DPKG_BUILDPACKAGE_OPTIONS): New variable.
	(debian-packages): Pass DPKG_BUILDPACKAGE_OPTIONS along to
	dpkg-buildpackage.

David Byers's avatar
David Byers committed
2171 2172 2173 2174 2175 2176
2004-05-26  David Byers  <byers@lysator.liu.se>

	Fix bug 1326:
	* lyskom-rest.el (lyskom-format-html-plaintext): Corrected
	arguments to lyskom-button-transform-text.

2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206
2004-05-25  David Byers  <byers@lysator.liu.se>

	* lyskom-rest.el (lyskom-format-aux-help): Handle non-integer
	(i.e. floating point) numbers somewhat more gracefully.

2004-05-23  David Byers  <byers@lysator.liu.se>

	* lyskom-buttons.el (kom-button-click): Support w3m links.

	Support w3m; fontify urls when not rendering html:
	* lyskom-rest.el (lyskom-w3m-region): New function.
	(lyskom-w3-region): Use lyskom-render-html-region.
	(lyskom-render-html-region): New function.
	(lyskom-format-htmal-plaintext): New function.
	(lyskom-format-html): Made generic.
	(lyskom-format-html-w3): New function.
	(lyskom-format-html-w3m): New function.

	* vars.el.in (lyskom-format-special): When HTML formatting is off,
	fontify URLs and stuff.

	* lyskom-rest.el (w3-fetch): Don't call w3-finish-drawing. It used
	to be necessary, but now it causes the client to hang.
	(smiley-region): Support a stack of formatting functions.

2004-05-12  David Byers  <byers@lysator.liu.se>

	Fix bug 1320:
	* lyskom-rest.el (lyskom-is-loaded): Seed the randomizer.

2207 2208 2209 2210 2211
2004-05-04  David Byers  <byers@lysator.liu.se>

	* vars.el.in (kom-old-farts-text-prompt-strategy): Corrected
	format of this variable.

David Byers's avatar
David Byers committed
2212 2213 2214 2215
2004-05-03  David Byers  <byers@lysator.liu.se>

	* NEWS-0.48: Updated to here.

2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280
2004-05-02  David Byers  <byers@lysator.liu.se>

	* utilities.el (lyskom-eq-dash): New function.
	(lyskom-tnpa-prompt): New function.
	(lyskom-tnpa-valid): New function.
	(lyskom-tnpa-add-property): New function.
	(lyskom-tnpa-text-no): New function.
	(lyskom-tnpa-text-property): New function.
	(lyskom-tnpa-apply-strategy): New function.
	(lyskom-read-text-no-prefix-arg): Reimplementation.
	(lyskom-maybe-get-commented-text): Emptied parameter list.
	(lyskom-maybe-get-footnoted-text): Ditto.
	(lyskom-get-explicit-text): Removed.
	(lyskom-get-command-specified-default-text): Removed.
	(lyskom-get-last-read-text): Removed parameters.
	(lyskom-get-previous-text): Ditto. Get value from LysKOM buffer,
	not current buffer.
	(lyskom-get-text-at-point): Removed parameters. No error message
	returned from here.
	(lyskom-get-text-at-point-ancestor): Removed optional parameters.
	No error reporting by returning strings; signal instead.
	(lyskom-prompt-for-text-no): Removed.
	(lyskom-get-last-text-written-by-me): Removed optional parameters.
	(lyskom-get-last-written-or-read-by-me): Ditto.
	(lyskom-get-text-above-point): Ditto.
	(lyskom-get-text-below-point): Ditto.
	(lyskom-get-text-below-point): New heuristic. Positiv arg higher
	than 20 is treated literally.

	* vars.el.in (kom-pick-text-no-strategy-alist): New format.
	(kom-old-farts-text-prompt-strategy): New format.

	* commands2.el (kom-add-no-comments): Removed params from
	lyskom-read-text-no-prefix-arg.
	(kom-add-private-answer): Ditto.
	(kom-add-request-confirm): Ditto.
	(kom-will-person-read-text): Ditto.
	(kom-compare-texts): Ditto.
	(kom-diff-texts): Ditto.

	* commands1.el (kom-view-previous-commented-text): Removed params
	from lyskom-read-text-no-prefix-arg.
	(kom-unread-previous-commented-text): Ditto.
	(kom-write-footnote): Ditto.
	(kom-comment-previous): Ditto.
	(kom-private-answer-previous): Ditto.
	(kom-set-presentation): Ditto.
	(kom-set-motd-text): Ditto.
	(lyskom-add-cross-reference): Ditto.

2004-04-28  David Byers  <byers@lysator.liu.se>

	* services.el (initiate-get-part-of-membership): Get the first
	read range so we can figure out the last read text.

2004-04-27  David Byers  <byers@lysator.liu.se>

	* lyskom-buttons.el (lyskom-button-unread-text): New function.

	* vars.el.in (lyskom-text-buttons): Added rtsp urls.

2004-04-11  David Byers  <byers@lysator.liu.se>

	* lyskom-rest.el (lyskom-save-text): Fix bug 1307.

2281 2282 2283 2284 2285 2286 2287 2288
2004-04-13  Johan Sundstrm  <jhs@lysator.liu.se>

	* english-strings.el, swedish-strings.el (global): Give a name for
	kom-review-cross-references too.

	* menus.el (lyskom-menu-template): Add kom-review-cross-references
	here too.

Johan Sundström's avatar
Johan Sundström committed
2289 2290 2291 2292
2004-04-12  Johan Sundstrm  <jhs@lysator.liu.se>

	* vars.el.in (lyskom-commands): Add kom-review-cross-references.

2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307
2004-04-11  Johan Sundstrm  <jhs@lysator.liu.se>

	* review.el (kom-review-cross-references): New command. Reviews
	all [aux info] cross refeferenced texts.

	* review.el (lyskom-cross-referenced-text,
	lyskom-review-cross-references): New support functions.

	* english-strings.el (lyskom-en-mode-map): Bind it to "r a x".

	* swedish-strings.el (lyskom-sv-mode-map): Bind it to " a x".

	* english-strings.el, swedish-strings.el (local): added
	review-xrefs-q.

2308 2309
2004-02-29  David Byers  <byers@lysator.liu.se>

2310 2311 2312 2313 2314
	* lyskom-rest.el (lyskom-format-plaintext-fonts-body): Updated
	revexp to reduce false positives.
	(lyskom-format-plaintext-fonts-body): More features. Put / back
	again, but only if it's near decent delimiters.

David Byers's avatar
David Byers committed
2315 2316 2317 2318 2319 2320 2321 2322
	Make fontification turn-offable:
	* option-edit.el (lyskom-customize-buffer-format): Added
	kom-text-properties and kom-fontify-text.
	(lyskom-custom-variables): Same here.

	* vars.el.in (kom-fontify-text): New variable.
	(kom-text-properties): Make server-stored by default.

David Byers's avatar
David Byers committed
2323 2324 2325 2326 2327 2328
	Better fontification code:
	* lyskom-rest.el: (lyskom-format-plaintext-fonts-body): New macro.
	For internal use only.
	(lyskom-format-plaintext-fonts): Don't use / as an italics
	delimiter.

2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340
	Fix bug 1282:
	* services.el (initiate-query-read-texts): Call correct membership
	parser. Use new names.
	(initiate-get-membership): Ditto.
	(initiate-get-part-of-membership): Ditto.

	* parse.el (lyskom-parse-membership-10) New name.
	(lyskom-parse-membership-list-10): New name.

	Goofing off:
	* lyskom-rest.el (lyskom-format-plaintext-fonts): New function.

2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389
	* macros.el (lyskom-mime-content-type-get): Moved here from
	mime.el.
	(lyskom-mime-content-type): Moved here from mime.el.

	Fix bug 744 (I think):
	* flags.el (lyskom-save-options): Save unknown variables too.
	(lyskom-save-options): Encode variable names too. Despite them
	being all ASCII, Emacs will sometimes think one is a multibyte
	string, and then convert everything back to multibyte format,
	which will break the user area. Refuse to save if any part of the
	user area is a multibyte string.

	Don't throw away contents of unknown variables:
	* vars.el.in (lyskom-saved-unknown-variables): New variable.
	(lyskom-settings-version): New variable.

	* flags.el (kom-copy-options): Don't discard unknown variables.

	* startup.el (kom-start-anew): Tell the user that unknown
	variables may be due to changing client versions (if settings were
	saved in a different version than we're running right now).

	* flags.el (kom-save-options): Accept prefix argument to delete
	unknown variables.

	* async.el (lyskom-async-new-user-area): Tell the user when
	re-reading settings from the server. Don't discard unknown
	variables.

	* flags.el (lyskom-read-options-eval): The list of ignored
	variables is an alist of name and value.

	* startup.el (kom-start-anew): lyskom-read-flags now returns a
	alist for ignored variables. Don't discard unknown variables.

2004-02-28  David Byers  <byers@lysator.liu.se>

	Prepare for dealing with format=flowed texts:
	* komtypes.el (text->decoded-text-mass): Use new content-type
	functions and format.

	* edit-text.el (lyskom-edit-send): Use new content-type functions
	and format.

	* mime.el (lyskom-mime-decode-content-type): Rewrote to handle
	arbitrary parameters to the content type.
	(lyskom-mime-content-type): New function.
	(lyskom-mime-content-type-get): New function.

2390 2391
2004-02-27  David Byers  <byers@lysator.liu.se>

2392
	Fix bug 1281 and related issues:
2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410
	* commands1.el (kom-write-comment): Use new def-kom-command
	features.
	(kom-private-answer): Ditto.
	(kom-write-footnote): Ditto.
	(kom-comment-previous): Ditto.
	(kom-private-answer): Ditto.
	(kom-private-answer-previous): Ditto.

	* slow.el (kom-slow-mode): Use def-kom-command instead of defun.
	(kom-quick-mode): Ditto.

	* commands2.el (kom-show-user-area): Use def-kom-command instead
	of defun.

	* command.el (def-kom-command): Added keyword support.
	(def-kom-emacs-command): Ditto.
	(lyskom-start-of-command): Added PROMPT-FORMAT.

2411 2412 2413 2414 2415 2416 2417 2418
2004-02-23  David Byers  <byers@lysator.liu.se>

	Further reduce the likelihood of sending alarm messages
	unintentionally:
	* commands2.el (lyskom-interactive-send-message): New function.
	(kom-send-alarm): Use it.
	(kom-send-message): Use it.

David Byers's avatar
David Byers committed
2419 2420
2004-02-22  David Byers  <byers@lysator.liu.se>

2421 2422
	* NEWS-0.48: Updated to here.

David Byers's avatar
David Byers committed
2423 2424 2425 2426 2427 2428 2429 2430 2431
	Clean up for XEmacs:
	* lyskom-rest.el (lyskom-startup-check-recommended-memberships):
	Don't bind pers-stat. It's not used.
	(smiley-region): Don't bind plaintext. It's not used.
	(lyskom-fill-message): Suppress warning about variable timer.

	* defvar.el (def-kom-var): Don't ever do a null doc-string. XEmacs
	will complain quite loudly.

David Byers's avatar
David Byers committed
2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443
	Fix bug 1125:
	* commands1.el (lyskom-read-cross-reference-and-get-aux-item): Use
	lyskom-a-or-b-or-c-p instead of completing-read.

	* edit-text.el (lyskom-read-link): Moved here from commands1.el
	since this is the only file that uses it.
	(lyskom-read-link): Use lyskom-a-or-b-or-c instead of
	completing-read.

	* commands1.el (kom-list-re): Ask what to search for before asking
	for the search string.

2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467
	Fix new bug in kom-is-person-member-of-conference:
	* lyskom-rest.el (lyskom-get-read-texts-for-membership): Removed
	this function again. It isn't used anywhere any more.

	* commands2.el (kom-is-person-member-of-conference): Don't use
	lyskom-get-read-texts-for-membership. Don't need it.

	Refactoring of adding members to simplify all callers:
	* lyskom-rest.el (lyskom-check-go-to-conf): Use lyskom-add-member
	to add self when going to a conference we have been invited to or
	need to depassivate.
	(lyskom-startup-check-recommended-memberships): Use
	lyskom-add-member to accept recommendations.

	* commands1.el (lyskom-add-member): New function.
	(kom-add-self): Use lyskom-add-member.
	(kom-add-member): Use lyskom-add-member.
	(lyskom-add-member-by-no): Use lyskom-add-member.
	(lyskom-go-to-conf): Don't ask for number of unread here.
	(lyskom-add-member-answer): Removed this junk.
	(lyskom-try-add-member): Removed this junk too.
	(kom-change-priority): Use lyskom-add-member. Refuse to change
	priority of passive memberships.

David Byers's avatar
David Byers committed
2468 2469 2470 2471
	Fix bug 1251:
	* commands1.el (kom-move-text): Don't try to move footnotes and
	attachments that we can't read.

David Byers's avatar
David Byers committed
2472 2473 2474
	* option-edit.el: Added kom-auto-confirm-new-conferences to the
	settings buffer.

David Byers's avatar
David Byers committed
2475 2476
2004-02-21  David Byers  <byers@lysator.liu.se>

David Byers's avatar
David Byers committed
2477 2478 2479 2480 2481 2482
	Fix bug 1276:
	* startup.el (lyskom-setup-ssh-relay): Use kom-ssh-command instead
	of hardcoding the ssh command name.

	* vars.el.in (kom-ssh-command): New variable.

David Byers's avatar
David Byers committed
2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494
	Fix bug 1250:
	* view-text.el (lyskom-text-read-at-least-once-p): Don't consider
	passive memberships.
	(lyskom-text-read-p): Same here.

	* services.el (initiate-get-part-of-membership): Don't get read texts.

	* lyskom-rest.el (lyskom-get-read-texts-for-membership): New
	function.

	* commands2.el (kom-is-person-member-of-conference): Use it here.

2495 2496 2497 2498 2499
2004-02-12  David Byers  <byers@lysator.liu.se>

	Make kom-list-new-conferences quittable:
	* commands2.el (lyskom-list-new-conferences): Handle C-g when
	listing conferences or persons using the new lyskom-cancel-calls.
David Byers's avatar
David Byers committed
2500
 
2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557
	* internal.el (lyskom-cancel-calls): It works now.

2004-02-11  David Byers  <byers@lysator.liu.se>

	Improve ability to cancel calls:
	* services.el (initiate-get-text): Add lyskom-ref-no to PARSED.
	(initiate-get-text-stat): Ditto.
	(initiate-get-pers-stat): Ditto.
	(initiate-get-conf-stat): Ditto.
	(initiate-get-uconf-stat): Ditto.
	(initiate-get-static-session-info): Ditto.
	(initiate-get-stats-description): Ditto.
	(initiate-get-boottime-info): Ditto.

	* internal.el (lyskom-apply-handler): Allow ref-no in PARSED.

	* parse.el (lyskom-tr-call-to-parsed): Leave the ref-no in PARSED.

	* internal.el (lyskom-cancel-calls): New function.

	Prevent lyskom-ref-no from going negative:
	* macros.el (lyskom-ref-no): New macro to get and increment
	lyskom-ref-no.

	* internal.el (lyskom-send-packet): Ensure that lyskom-ref-no
	never goes negative.

	Fix bug 1272:
	* review.el (kom-review-converted): Don't bind
	lyskom-format-special (why did we *ever* bind it here?)

2004-02-09  David Byers  <byers@lysator.liu.se>

	* clienttypes.el (lyskom-queue-remove-matching): New function.

2004-02-07  David Byers  <byers@lysator.liu.se>

	* utilities.el (lyskom-read-date): Added optional parameter empty.

	Speed up behavior after changing user area:
	* async.el (lyskom-parse-async): Don't re-read settings if the new
	user area is one we've already read (or just created).

	* flags.el (lyskom-save-options-2): Set lyskom-current-user-area.
	(lyskom-read-options-eval): Ditto.

	Bug 1271 (and then some):
	* commands2.el (kom-list-new-conferences): Accept prefix arg to
	list from a specific date.
	(kom-list-new-persons): Ditto.
	(lyskom-list-new-conferences): Prompt for start date if the caller
	requests it or the command has never been used before.

2004-02-06  David Byers  <byers@lysator.liu.se>

	* utilities.el (lyskom-find-conf-by-date): New function.

David Byers's avatar
David Byers committed
2558 2559
2004-01-29  David Byers  <byers@lysator.liu.se>

2560 2561 2562
	* macros.el (blocking-do-multiple): Use modern backquote syntax to
	make the code more readable.

David Byers's avatar
David Byers committed
2563 2564 2565 2566 2567 2568 2569
	* vars.el.in (lyskom-text-buttons): Improved performance of some
	regexps in lyskom-text-buttons.

	* commands1.el (kom-move-text): Prevent moving from a conference
	back to the same conference. Doing this deletes the recipient
	completely.

2570 2571 2572 2573
2004-01-26  David Byers  <byers@lysator.liu.se>

	* vars.el.in (lyskom-format-special): Explicitly format plaintext
	types.
David Byers's avatar
David Byers committed
2574
	(lyskom-text-buttons): Simplified the regexps for URLs.
2575 2576 2577 2578 2579