* riece-history.el (riece-history-insinuate): Don't set
authorDaiki Ueno <ueno@unixuser.org>
Wed, 27 Aug 2003 23:20:33 +0000 (23:20 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Wed, 27 Aug 2003 23:20:33 +0000 (23:20 +0000)
riece-guess-channel-try-functions here.
(riece-history-requires): Don't require riece-guess.

* riece-unread.el (riece-unread-requires): Don't require
riece-guess.
(riece-unread-insinuate): Don't set
riece-guess-channel-try-functions here.

lisp/ChangeLog
lisp/riece-guess.el
lisp/riece-history.el
lisp/riece-unread.el

index e186cf0..e3fc371 100644 (file)
@@ -1,3 +1,14 @@
+2003-08-27  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-history.el (riece-history-insinuate): Don't set
+       riece-guess-channel-try-functions here.
+       (riece-history-requires): Don't require riece-guess.
+
+       * riece-unread.el (riece-unread-requires): Don't require
+       riece-guess.
+       (riece-unread-insinuate): Don't set
+       riece-guess-channel-try-functions here.
+
 2003-08-27  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-unread.el (riece-unread-after-display-message-function):
index 5c01215..3112ce9 100644 (file)
 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 ;; Boston, MA 02111-1307, USA.
 
-;;; Commentary:
-
-;; To use, add the following line to your ~/.riece/init.el:
-;; (add-to-list 'riece-addons 'riece-guess)
-
 ;;; Code:
 
 (require 'riece-identity)
@@ -48,6 +43,7 @@
   (delq nil (copy-sequence riece-current-channels)))
 
 (defun riece-guess-candidates ()
+  "Call \\[riece-guess-channel-try-functions] in turn and merge the results."
   (let ((functions riece-guess-channel-try-functions)
        candidates)
     (while functions
index 435c9fa..65da960 100644 (file)
 
 ;;; Commentary:
 
-;; To use, add the following line to your ~/.riece/init.el:
-;; (add-to-list 'riece-addons 'riece-history)
+;; You can check recently visited channels via `C-c g' in the commands
+;; buffer, by adding the following lines to ~/.riece/init.el:
+
+;;   (add-hook 'riece-guess-channel-try-functions
+;;             'riece-guess-channel-from-history)
 
 ;;; Code:
 
@@ -52,9 +55,9 @@
            index (1+ index)))
     (nreverse result)))
 
-(defun riece-history-requires ()
-  (if (memq 'riece-guess riece-addons)
-      '(riece-guess)))
+;;; (defun riece-history-requires ()
+;;;   (if (memq 'riece-guess riece-addons)
+;;;       '(riece-guess)))
 
 (defun riece-history-insinuate ()
   (add-hook 'riece-startup-hook
   (add-hook 'riece-after-switch-to-channel-functions
            (lambda (last)
              (ring-insert riece-channel-history last)))
-  (if (memq 'riece-guess riece-addons)
-      (add-hook 'riece-guess-channel-try-functions
-               'riece-guess-channel-from-history)))
+;;;  (if (memq 'riece-guess riece-addons)
+;;;      (add-hook 'riece-guess-channel-try-functions
+;;;            'riece-guess-channel-from-history))
+  )
 
 (provide 'riece-history)
 
index eb4a16e..64bb382 100644 (file)
 
 ;;; Commentary:
 
-;; This add-on displays unread mark ("!") for channels which have
-;; "unread messages".
+;; This add-on marks channels where new messages are arrived.
 
-;; To use, add the following line to your ~/.riece/init.el:
-;; (add-to-list 'riece-addons 'riece-unread)
+;; You can check the unread channels via `C-c g' in the commands
+;; buffer, by adding the following lines to ~/.riece/init.el:
+
+;;   (add-hook 'riece-guess-channel-try-functions
+;;             'riece-guess-channel-from-unread)
 
 ;;; Code:
 
   (let (requires)
     (if (memq 'riece-highlight riece-addons)
        (setq requires (cons 'riece-highlight requires)))
-    (if (memq 'riece-guess riece-addons)
-       (setq requires (cons 'riece-guess requires)))
-    ;; riece-guess-channel-from-unread should be prior to
-    ;; riece-guess-channel-from-history.
-    (if (memq 'riece-history riece-addons)
-       (setq requires (cons 'riece-history requires)))
+;;;    (if (memq 'riece-guess riece-addons)
+;;;    (setq requires (cons 'riece-guess requires)))
     requires))
 
 (defun riece-unread-insinuate ()
       (setq riece-channel-list-mark-face-alist
            (cons '(?! . riece-channel-list-unread-face)
                  riece-channel-list-mark-face-alist)))
-  (if (memq 'riece-guess riece-addons)
-      (add-hook 'riece-guess-channel-try-functions
-               'riece-guess-channel-from-unread)))
+;;;  (if (memq 'riece-guess riece-addons)
+;;;      (add-hook 'riece-guess-channel-try-functions
+;;;            'riece-guess-channel-from-unread))
+  )
 
 (provide 'riece-unread)