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-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):
Rename from riece-unread-display-message-function.
(riece-unread-after-switch-to-channel-function): Rename from
;; 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)
(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
;;; 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:
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)
;;; 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)