(spam-stat-buffer-change-to-spam, spam-stat-buffer-change-to-non-spam):
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 14 Jun 2005 15:17:00 +0000 (15:17 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 14 Jun 2005 15:17:00 +0000 (15:17 +0000)
Follow error conventions.

lisp/gnus/spam-stat.el

index ca1cdc6..6af9b2e 100644 (file)
@@ -370,7 +370,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.")
+          (error "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))
@@ -386,7 +386,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.")
+          (error "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))