X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-unread.el;h=9283cd750661497b117a6eaa78257c0442ef0116;hp=a36b72fe36b55ca45d798c1bb87988a22d57c77d;hb=d6b8a453e01fe5a3dbeee844d490af8479d79a83;hpb=9a212feb322ba025c7fe290b29e830ea6e3bfaab diff --git a/lisp/riece-unread.el b/lisp/riece-unread.el index a36b72f..9283cd7 100644 --- a/lisp/riece-unread.el +++ b/lisp/riece-unread.el @@ -1,4 +1,4 @@ -;;; riece-unread.el --- "unread message mark" add-on +;;; riece-unread.el --- mark channels where new messages arrived ;; Copyright (C) 1998-2003 Daiki Ueno ;; Author: Daiki Ueno @@ -23,7 +23,9 @@ ;;; Commentary: -;; This add-on marks channels where new messages are arrived. +;; NOTE: This is an add-on module for Riece. + +;; This add-on marks channels where new messages arrived. ;; You can check the unread channels via `C-c g' in the commands ;; buffer, by adding the following lines to ~/.riece/init.el: @@ -36,11 +38,10 @@ (require 'riece-message) (require 'riece-commands) (require 'riece-signal) - -(eval-when-compile (require 'riece-highlight)) +(require 'riece-highlight) (defgroup riece-unread nil - "Mark unread channels" + "Mark unread channels." :tag "Unread" :prefix "riece-" :group 'riece) @@ -71,7 +72,7 @@ (defvar riece-unread-enabled nil) (defconst riece-unread-description - "Mark channels where \"unread\" messages arrived") + "Mark channels where new messages arrived.") (defun riece-unread-after-display-message-function (message) (if riece-unread-enabled @@ -151,6 +152,23 @@ ;;; 'riece-guess-channel-from-unread)) ) +(defun riece-unread-uninstall () + (remove-hook 'riece-after-display-message-functions + 'riece-unread-after-display-message-function) + (remove-hook 'riece-after-switch-to-channel-functions + 'riece-unread-after-switch-to-channel-function) + (remove-hook 'riece-format-identity-for-channel-list-buffer-functions + 'riece-unread-format-identity-for-channel-list-buffer) + (remove-hook 'riece-format-identity-for-channel-list-indicator-functions + 'riece-unread-format-identity-for-channel-list-indicator) + (setq riece-channel-list-mark-face-alist + (delq (assq ?! riece-channel-list-mark-face-alist) + riece-channel-list-mark-face-alist)) +;;; (if (memq 'riece-guess riece-addons) +;;; (add-hook 'riece-guess-channel-try-functions +;;; 'riece-guess-channel-from-unread)) + ) + (defvar riece-command-mode-map) (defvar riece-dialogue-mode-map) (defvar riece-channel-list-mode-map)