1. 09 Jan, 2005 2 commits
    • David Byers's avatar
      Initial checkin · a4d01471
      David Byers authored
      a4d01471
    • David Byers's avatar
      Documentation fixes, minor bugfixes and naming fixes. · 94506c0c
      David Byers authored
      Detailed changes:
      > 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.
      >
      94506c0c
  2. 04 Jan, 2005 1 commit
  3. 06 Dec, 2004 1 commit
  4. 04 Dec, 2004 1 commit
  5. 16 Nov, 2004 1 commit
  6. 15 Nov, 2004 1 commit
  7. 12 Nov, 2004 5 commits
  8. 11 Nov, 2004 2 commits
  9. 03 Nov, 2004 2 commits
  10. 31 Oct, 2004 1 commit
  11. 29 Oct, 2004 3 commits
  12. 28 Oct, 2004 2 commits
    • David Byers's avatar
      Documentation updates and code tweaks. · 34ba9a22
      David Byers authored
      Detailed changes:
      > 	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:
      >
      > 	Menus for kom-handle-membership:
      34ba9a22
    • Pontus Freyhult's avatar
      Do not try to handle missing markers in routines to set foreground and · 70354b85
      Pontus Freyhult authored
      background. Set end-marker before calling lp--format-insert-entry and
      correct it afterwards.
      70354b85
  13. 27 Oct, 2004 1 commit
  14. 26 Oct, 2004 2 commits
  15. 25 Oct, 2004 1 commit
  16. 23 Oct, 2004 1 commit
  17. 19 Oct, 2004 3 commits
  18. 17 Oct, 2004 1 commit
    • David Byers's avatar
      Added menus and documentation for membership buffer. · e2ecdddc
      David Byers authored
      Detailed changes:
      > 2004-10-17  David Byers  <byers@lysator.liu.se>
      >
      > 	* mship-edit.el (lp--mode): Added mode documentation.
      >
      > 2004-09-27  David Byers  <byers@lysator.liu.se>
      >
      > 	* 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.
      >
      e2ecdddc
  19. 21 Jul, 2004 1 commit
    • David Byers's avatar
      Fix problem with positioning reprioritized memberships. · d6669dff
      David Byers authored
      Detailed changes:
      > 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.
      >
      d6669dff
  20. 20 Jul, 2004 1 commit
    • David Byers's avatar
      More membership buffer improvements. · 5e6c884b
      David Byers authored
      Detailed changes:
      > 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
      >
      5e6c884b
  21. 19 Jul, 2004 2 commits
    • David Byers's avatar
      Integrated mship-edit. Fixed a number of bugs. Support filtering in mship-edit. · 1e57b7e8
      David Byers authored
      Detailed changes:
      > 	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.
      >
      1e57b7e8
    • David Byers's avatar
      Update unreads in membership buffer. Position cursor correctly at end of command. · 1dcdc47e
      David Byers authored
      Detailed changes:
      > 2004-07-19  David Byers  <byers@lysator.liu.se>
      >
      > 	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.
      >
      1dcdc47e
  22. 18 Jul, 2004 3 commits
    • David Byers's avatar
      Keep the unread counter in the membership buffer up-to-date · bec35a53
      David Byers authored
      Detailed changes:
      > 	* 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.
      >
      bec35a53
    • David Byers's avatar
      Membership-related improvements and bug fixes · 595e3bef
      David Byers authored
      Detailed changes:
      > 	* 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
      >
      595e3bef
    • David Byers's avatar
      New data structure for membership list · bc4b0f34
      David Byers authored
      Detailed changes:
      > 2004-07-18  David Byers  <byers@lysator.liu.se>
      >
      > 	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.
      >
      1a42,45
      >
      > 	* 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.
      bc4b0f34
  23. 15 Jul, 2004 1 commit
    • David Byers's avatar
      Clean up XEmacs compile. Fix some issues in mship-edit. Fix failure to... · a2376eaf
      David Byers authored
      Clean up XEmacs compile. Fix some issues in mship-edit. Fix failure to register all read texts. Fix problem logging in with notice.
      
      Detailed changes:
      > 2004-07-15  David Byers  <byers@lysator.liu.se>
      >
      > 	* 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.
      >
      a2376eaf
  24. 12 Jul, 2004 1 commit
    • David Byers's avatar
      Made kom-handle-membership (maybe) work again. · ba42276d
      David Byers authored
      Detailed changes:
      > 	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.
      >
      ba42276d