From 14bd99170faa7d0083ac01e6d154bc4976d54225 Mon Sep 17 00:00:00 2001 From: ueno Date: Wed, 26 Mar 2008 14:37:57 +0000 Subject: [PATCH] * riece-keyword.el (riece-keyword-message-filter): Don't match to empty string if riece-keywords is nil, or it only contains regexp matchers. --- lisp/ChangeLog | 6 ++++++ lisp/riece-keyword.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e6341ae..190d0fe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2008-03-26 Takeru Naito + + * riece-keyword.el (riece-keyword-message-filter): Don't match to + empty string if riece-keywords is nil, or it only contains regexp + matchers. + 2008-02-01 Daiki Ueno * riece.el (riece-save-variables-files): Display message diff --git a/lisp/riece-keyword.el b/lisp/riece-keyword.el index 0d5c8e3..22acb0e 100644 --- a/lisp/riece-keyword.el +++ b/lisp/riece-keyword.el @@ -86,7 +86,8 @@ and the matched message object." (setq keywords (cons matcher keywords))) matcher)) riece-keywords)) - (list (cons (regexp-opt keywords) 0)))) + (if keywords + (list (cons (regexp-opt keywords) 0))))) index) (while alist (setq index 0) -- 1.7.10.4