From: yamaoka Date: Fri, 13 Jun 2003 01:32:54 +0000 (+0000) Subject: Synch to Gnus 200306122244. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=6f2405ec8fc60645c7f631d245731d14db3cb13c;p=elisp%2Fgnus.git- Synch to Gnus 200306122244. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d649eec..1914599 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,13 @@ +2003-06-12 Dave Love + + * nnheader.el (nnheader-functionp): Deleted. + + * nnmail.el (nnmail-split-fancy-syntax-table): Define all in + defvar. + (nnmail-version): Deleted. + (nnmail-check-duplication, nnmail-expiry-target-group): Don't use + nnheader-functionp. + 2003-06-10 Teodor Zlatanov * spam.el (spam-check-bogofilter-headers): fix for when the score diff --git a/lisp/nnheader.el b/lisp/nnheader.el index afb1824..07cbbe9 100644 --- a/lisp/nnheader.el +++ b/lisp/nnheader.el @@ -83,10 +83,10 @@ Integer values will in effect be rounded up to the nearest multiple of (defvar nnheader-read-timeout (if (string-match "windows-nt\\|os/2\\|emx\\|cygwin" (symbol-name system-type)) - 1.0 + 1.0 ; why? 0.1) "How long nntp should wait between checking for the end of output. -Shorter values mean quicker response, but is more CPU intensive.") +Shorter values mean quicker response, but are more CPU intensive.") (defvar nnheader-file-name-translation-alist (let ((case-fold-search t)) @@ -1460,11 +1460,6 @@ without formatting." ((numberp file) (int-to-string file)) (t file)))) -(defun nnheader-functionp (form) - "Return non-nil if FORM is funcallable." - (or (and (symbolp form) (fboundp form)) - (and (listp form) (eq (car form) 'lambda)))) - (defun nnheader-concat (dir &rest files) "Concat DIR as directory to FILES." (apply 'concat (file-name-as-directory dir) files)) diff --git a/lisp/nnmail.el b/lisp/nnmail.el index 843892e..77acad6 100644 --- a/lisp/nnmail.el +++ b/lisp/nnmail.el @@ -519,13 +519,12 @@ by anything." (defvar nnmail-split-history nil "List of group/article elements that say where the previous split put messages.") -(defvar nnmail-split-fancy-syntax-table nil +(defvar nnmail-split-fancy-syntax-table + (let ((table (make-syntax-table))) + ;; support the %-hack + (modify-syntax-entry ?\% "." table) + table) "Syntax table used by `nnmail-split-fancy'.") -(unless (syntax-table-p nnmail-split-fancy-syntax-table) - (setq nnmail-split-fancy-syntax-table - (copy-syntax-table (standard-syntax-table))) - ;; support the %-hack - (modify-syntax-entry ?\% "." nnmail-split-fancy-syntax-table)) (defvar nnmail-prepare-save-mail-hook nil "Hook called before saving mail.") @@ -535,11 +534,6 @@ by anything." -(defconst nnmail-version "nnmail 1.0" - "nnmail version.") - - - (defun nnmail-request-post (&optional server) (mail-send-and-exit nil)) @@ -1610,7 +1604,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." (cond ((memq nnmail-treat-duplicates '(warn delete)) nnmail-treat-duplicates) - ((nnheader-functionp nnmail-treat-duplicates) + ((functionp nnmail-treat-duplicates) (funcall nnmail-treat-duplicates message-id)) (t nnmail-treat-duplicates)))) @@ -1776,7 +1770,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." (let (nnmail-cache-accepted-message-ids) ;; Don't enter Message-IDs into cache. ;; Let users hack it in TARGET function. - (when (nnheader-functionp target) + (when (functionp target) (setq target (funcall target group))) (unless (eq target 'delete) (when (or (gnus-request-group target)