+2003-10-10 Jesper Harder <harder@ifa.au.dk>
+
+ * mm-decode.el (mm-file-name-delete-gotchas): Avoid infloop in
+ XEmacs.
+
+2003-10-10 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * spam.el (spam-initialize): new function, does the spam-face
+ update and all the hooks, replaces spam-install-hooks-function
+
+ * gnus-registry.el (gnus-registry-initialize): new autoloaded
+ function to explicitly initialize the registry
+
2003-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el (mm-w3m-safe-url-regexp): Doc fix.
(setq gnus-registry-hashtb (alist-to-hashtable gnus-registry-alist))
(setq gnus-registry-dirty t))
+;;;###autoload
+(defun gnus-registry-initialize ()
+ (interactive)
+ (setq gnus-registry-install t)
+ (gnus-registry-install-hooks)
+ (gnus-registry-read))
+
+;;;###autoload
(defun gnus-registry-install-hooks ()
"Install the registry hooks."
(interactive)
(defun mm-file-name-delete-gotchas (filename)
"Delete shell gotchas from FILENAME."
(setq filename (gnus-replace-in-string filename "[<>|]" ""))
- (gnus-replace-in-string filename "^[.-]*" ""))
+ (gnus-replace-in-string filename "^[.-]+" ""))
(defun mm-save-part (handle)
"Write HANDLE to a file."
"Msx" gnus-summary-mark-as-spam
"\M-d" gnus-summary-mark-as-spam)
-;;; How to highlight a spam summary line.
-
-;; TODO: How do we redo this every time spam-face is customized?
-
-(push '((eq mark gnus-spam-mark) . spam-face)
- gnus-summary-highlight)
-
;; convenience functions
(defun spam-group-ham-mark-p (group mark &optional spam)
(when (stringp group)
;;;; Hooks
;;;###autoload
-(defun spam-install-hooks-function ()
- "Install the spam.el hooks"
+(defun spam-initialize ()
+ "Install the spam.el hooks and do other initialization"
(interactive)
+ (setq spam-install-hooks t)
+ ;; TODO: How do we redo this every time spam-face is customized?
+ (push '((eq mark gnus-spam-mark) . spam-face)
+ gnus-summary-highlight)
;; Add hooks for loading and saving the spam stats
(when spam-use-stat
(add-hook 'gnus-save-newsrc-hook 'spam-maybe-spam-stat-save)
(remove-hook 'gnus-get-new-news-hook 'spam-setup-widening))
(when spam-install-hooks
- (spam-install-hooks-function))
+ (spam-initialize))
(provide 'spam)