(spam-stat-buffer-change-to-spam)
authorTeodor Zlatanov <tzz@lifelogs.com>
Mon, 12 Apr 2004 15:15:52 +0000 (15:15 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Mon, 12 Apr 2004 15:15:52 +0000 (15:15 +0000)
(spam-stat-buffer-change-to-non-spam): change (error) to
(gnus-message 8) invocation

lisp/ChangeLog
lisp/spam-stat.el

index 55ab168..b900469 100644 (file)
@@ -1,3 +1,9 @@
+2004-04-12  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * spam-stat.el (spam-stat-buffer-change-to-spam)
+       (spam-stat-buffer-change-to-non-spam): change (error) to
+       (gnus-message 8) invocation
+
 2004-04-12  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * nntp.el (nntp-via-netcat-command): New variable.
index e0265fa..2fdad4e 100644 (file)
@@ -356,7 +356,7 @@ Use `spam-stat-ngood', `spam-stat-nbad', `spam-stat-good',
    (lambda (word count)
      (let ((entry (gethash word spam-stat)))
        (if (not entry)
-          (error "This buffer has unknown words in it")
+          (gnus-message 8 "This buffer has unknown words in it")
         (spam-stat-set-good entry (- (spam-stat-good entry) count))
         (spam-stat-set-bad entry (+ (spam-stat-bad entry) count))
         (spam-stat-set-score entry (spam-stat-compute-score entry))
@@ -372,7 +372,7 @@ Use `spam-stat-ngood', `spam-stat-nbad', `spam-stat-good',
    (lambda (word count)
      (let ((entry (gethash word spam-stat)))
        (if (not entry)
-          (error "This buffer has unknown words in it")
+          (gnus-message 8 "This buffer has unknown words in it")
         (spam-stat-set-good entry (+ (spam-stat-good entry) count))
         (spam-stat-set-bad entry (- (spam-stat-bad entry) count))
         (spam-stat-set-score entry (spam-stat-compute-score entry))