Gnus development mailing list
 help / color / mirror / Atom feed
From: Hiroshi Fujishima <pooh@nature.tsukuba.ac.jp>
Subject: spam-stat-reduce-size doesn't (setq spam-stat-dirty t)
Date: Sat, 24 Jan 2004 19:25:37 +0900	[thread overview]
Message-ID: <7chdyl8wym.fsf@nature.tsukuba.ac.jp> (raw)

[-- Attachment #1: Type: text/plain, Size: 118 bytes --]

Hi,

I execute M-x spam-stat-save after M-x spam-stat-reduce-size. But, it
does not save the `spam-stat' hash table.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: spam-stat.el.diff --]
[-- Type: text/x-patch, Size: 927 bytes --]

Index: spam-stat.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/spam-stat.el,v
retrieving revision 7.8
diff -u -r7.8 spam-stat.el
--- spam-stat.el	23 Jan 2004 02:04:44 -0000	7.8
+++ spam-stat.el	24 Jan 2004 10:15:50 -0000
@@ -365,8 +365,9 @@
 ;; Saving and Loading
 
 (defun spam-stat-save (&optional force)
-  "Save the `spam-stat' hash table as lisp file."
-  (interactive)
+  "Save the `spam-stat' hash table as lisp file.
+When executed with '\\[universal-argument]', Save forcely."
+  (interactive "P")
   (when (or force spam-stat-dirty)
     (with-temp-buffer
       (let ((standard-output (current-buffer))
@@ -563,7 +564,8 @@
 			 (spam-stat-bad entry))
 		      count)
 	       (remhash key spam-stat)))
-	   spam-stat))
+	   spam-stat)
+  (setq spam-stat-dirty t))
 
 (defun spam-stat-install-hooks-function ()
   "Install the spam-stat function hooks"

[-- Attachment #3: Type: text/plain, Size: 23 bytes --]


-- 
Hiroshi Fujishima

             reply	other threads:[~2004-01-24 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-24 10:25 Hiroshi Fujishima [this message]
2004-01-24 13:41 ` Jesper Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7chdyl8wym.fsf@nature.tsukuba.ac.jp \
    --to=pooh@nature.tsukuba.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).