Revision: miles@gnu.org--gnu-2004/gnus--devo--0--patch-153
authorMiles Bader <miles@gnu.org>
Tue, 26 Oct 2004 05:03:28 +0000 (05:03 +0000)
committerMiles Bader <miles@gnu.org>
Tue, 26 Oct 2004 05:03:28 +0000 (05:03 +0000)
Merge from gnus--rel--5.10

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-615
   Merge from gnus--rel--5.10

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-620
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-51
 - miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-52
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-53
   Merge from emacs--cvs-trunk--0

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-54
 - miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-55
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-56
   Update from CVS: Add lisp/legacy-gnus-agent.el

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-57
 - miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-59
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-60
   Update from CVS

2004-10-25  Reiner Steib  <Reiner.Steib@gmx.de>

   * lisp/html2text.el (html2text-buffer-head): Removed. Use `goto-char'
   instead.

2004-10-17  Richard M. Stallman  <rms@gnu.org>

   * lisp/gnus-registry.el (gnus-registry-unload-hook):
   Set as a variable with add-hook.

   * lisp/nnspool.el (nnspool-spool-directory): Use news-directory instead
   of news-path.

   * lisp/spam-stat.el (spam-stat-unload-hook): Set as a variable w/ add-hook.

   * lisp/spam.el: Delete duplicate `provide'.
   (spam-unload-hook): Set as a variable with add-hook.

2004-10-15  Reiner Steib  <Reiner.Steib@gmx.de>

   * lisp/pop3.el (pop3-leave-mail-on-server): Describe possible problems
   in the doc string.

   * lisp/message.el (message-ignored-news-headers)
   (message-ignored-supersedes-headers)
   (message-ignored-resent-headers)
   (message-forward-ignored-headers): Improve custom type.

2004-10-15  Reiner Steib  <Reiner.Steib@gmx.de>

   * texi/gnus.texi (New Features): Add 5.11.

   * texi/message.texi (Resending): Remove wrong default value.

   * texi/gnus.texi (Mail Source Specifiers): Describe possible problems
   of `pop3-leave-mail-on-server'.  Add `pop3-movemail' and
   `pop3-leave-mail-on-server' to the index.

12 files changed:
lisp/ChangeLog
lisp/gnus-agent.el
lisp/gnus-registry.el
lisp/html2text.el
lisp/message.el
lisp/nnspool.el
lisp/pop3.el
lisp/spam-stat.el
lisp/spam.el
texi/ChangeLog
texi/gnus.texi
texi/message.texi

index 94aecec..d3eddaf 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-25  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * html2text.el (html2text-buffer-head): Removed.  Use `goto-char'
+       instead.
+
 2004-10-25  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * nnimap.el (nnimap-remove-server-from-buffer-alist): new function
        * nnimap.el (nnimap-open-connection): use
        netrc-machine-user-or-password
 
+2004-10-17  Richard M. Stallman  <rms@gnu.org>
+
+       * gnus-registry.el (gnus-registry-unload-hook): 
+       Set as a variable with add-hook.
+
+       * nnspool.el (nnspool-spool-directory): Use news-directory instead
+       of news-path.
+
+       * spam-stat.el (spam-stat-unload-hook): Set as a variable w/ add-hook.
+
+       * spam.el: Delete duplicate `provide'.
+       (spam-unload-hook): Set as a variable with add-hook.
+
+2004-10-15  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * pop3.el (pop3-leave-mail-on-server): Describe possible problems
+       in the doc string.
+
+       * message.el (message-ignored-news-headers)
+       (message-ignored-supersedes-headers)
+       (message-ignored-resent-headers)
+       (message-forward-ignored-headers): Improve custom type.
+
 2004-10-13  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * message.el (message-tokenize-header): Fix 2004-09-06 change
 
 2004-03-04  Kevin Greiner <kgreiner@xpediantsolutions.com>
 
-        * gnus-agent.el (gnus-agent-file-header-cache): Removed.
+       * gnus-agent.el (gnus-agent-file-header-cache): Removed.
        (gnus-agent-possibly-alter-active): Avoid null in numeric
        comparison.
        (gnus-agent-set-local): Refuse to save null in local object table.
index e0f628a..1211fae 100644 (file)
@@ -3249,7 +3249,7 @@ missing NOV entry.  Run gnus-agent-regenerate-group to restore it.")))
 
                     (incf nov-entries-deleted)
 
-                    (let ((from (point-at-bol))
+                    (let ((from (gnus-point-at-bol))
                           (to (progn (forward-line 1) (point))))
                       (incf bytes-freed (- to from))
                       (delete-region from to)))
@@ -3906,7 +3906,7 @@ entry of article %s deleted." l1))
                             gnus-agent-article-alist))))
 
        (when regenerated
-           (gnus-agent-update-files-total-fetched-for group nil)))
+         (gnus-agent-update-files-total-fetched-for group nil)))
 
       (gnus-message 5 "")
       regenerated)))
index 35347ae..314fbc6 100644 (file)
@@ -706,6 +706,8 @@ Returns the first place where the trail finds a group name."
 
   (remove-hook 'gnus-summary-prepare-hook 'gnus-registry-register-message-ids))
 
+(add-hook 'gnus-registry-unload-hook 'gnus-registry-unload-hook)
+
 (when gnus-registry-install
   (gnus-registry-install-hooks)
   (gnus-registry-read))
index c9722a8..5772489 100644 (file)
@@ -116,10 +116,6 @@ formatting, and then moved afterward.")
 ;; <Utility functions>
 ;;
 
-(defun html2text-buffer-head ()
-  (if (string= mode-name "Article")
-      (beginning-of-buffer)
-    (beginning-of-buffer)))
 
 (defun html2text-replace-string (from-string to-string p1 p2)
   (goto-char p1)
@@ -321,11 +317,11 @@ formatting, and then moved afterward.")
   "This _tries_ to fix up the paragraphs - this is done in quite a ad-hook
 fashion, quite close to pure guess-work. It does work in some cases though."
   (interactive)
-  (html2text-buffer-head)
+  (goto-char (point-min))
   (replace-regexp "^<br>$" "")
   ;; Removing lonely <br> on a single line, if they are left intact we
   ;; dont have any paragraphs at all.
-  (html2text-buffer-head)
+  (goto-char (point-min))
   (while (not (eobp))
     (let ((p1 (point)))
       (forward-paragraph 1)
@@ -351,8 +347,8 @@ fashion, quite close to pure guess-work. It does work in some cases though."
 See the documentation for that variable."
   (interactive)
   (dolist (tag tag-list)
-    (html2text-buffer-head)
-    (while (re-search-forward (format "</?%s[^>]*>" tag) (point-max) t)
+    (goto-char (point-min))
+    (while (re-search-forward (format "\\(</?%s[^>]*>\\)" tag) (point-max) t)
       (delete-region (match-beginning 0) (match-end 0)))))
 
 (defun html2text-format-tags ()
@@ -361,8 +357,8 @@ See the documentation for that variable."
   (dolist (tag-and-function html2text-format-tag-list)
     (let ((tag      (car tag-and-function))
          (function (cdr tag-and-function)))
-      (html2text-buffer-head)
-      (while (re-search-forward (format "<%s\\( [^>]*\\)?>" tag)
+      (goto-char (point-min))
+      (while (re-search-forward (format "\\(<%s\\( [^>]*\\)?>\\)" tag)
                                (point-max) t)
        (let ((p1)
              (p2 (point))
@@ -382,7 +378,7 @@ See the documentation for that variable."
   "See the variable \"html2text-replace-list\" for documentation"
   (interactive)
   (dolist (e html2text-replace-list)
-    (html2text-buffer-head)
+    (goto-char (point-min))
     (let ((old-string (car e))
          (new-string (cdr e)))
       (html2text-replace-string old-string new-string (point-min) (point-max)))
@@ -394,8 +390,8 @@ See the documentation for that variable."
   (dolist (tag-and-function html2text-format-single-element-list)
     (let ((tag      (car tag-and-function))
          (function (cdr tag-and-function)))
-      (html2text-buffer-head)
-      (while (re-search-forward (format "<%s\\( [^>]*\\)?>" tag)
+      (goto-char (point-min))
+      (while (re-search-forward (format "\\(<%s\\( [^>]*\\)?>\\)" tag)
                                (point-max) t)
        (let ((p1)
              (p2 (point)))
index aea8223..91a622b 100644 (file)
@@ -252,7 +252,12 @@ included.  Organization and User-Agent are optional."
   :group 'message-news
   :group 'message-headers
   :link '(custom-manual "(message)Message Headers")
-  :type 'regexp)
+  :type '(repeat :value-to-internal (lambda (widget value)
+                                     (custom-split-regexp-maybe value))
+                :match (lambda (widget value)
+                         (or (stringp value)
+                             (widget-editable-list-match widget value)))
+                regexp))
 
 (defcustom message-ignored-mail-headers
   "^[GF]cc:\\|^Resent-Fcc:\\|^Xref:\\|^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:"
@@ -268,7 +273,12 @@ It's best to delete old Path and Date headers before posting to avoid
 any confusion."
   :group 'message-interface
   :link '(custom-manual "(message)Superseding")
-  :type 'regexp)
+  :type '(repeat :value-to-internal (lambda (widget value)
+                                     (custom-split-regexp-maybe value))
+                :match (lambda (widget value)
+                         (or (stringp value)
+                             (widget-editable-list-match widget value)))
+                regexp))
 
 (defcustom message-subject-re-regexp
   "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)*[ \t]*"
@@ -531,13 +541,22 @@ Done before generating the new subject of a forward."
   "*All headers that match this regexp will be deleted when resending a message."
   :group 'message-interface
   :link '(custom-manual "(message)Resending")
-  :type 'regexp)
+  :type '(repeat :value-to-internal (lambda (widget value)
+                                     (custom-split-regexp-maybe value))
+                :match (lambda (widget value)
+                         (or (stringp value)
+                             (widget-editable-list-match widget value)))
+                regexp))
 
 (defcustom message-forward-ignored-headers "^Content-Transfer-Encoding:\\|^X-Gnus"
   "*All headers that match this regexp will be deleted when forwarding a message."
   :version "21.1"
   :group 'message-forwarding
-  :type '(choice (const :tag "None" nil)
+  :type '(repeat :value-to-internal (lambda (widget value)
+                                     (custom-split-regexp-maybe value))
+                :match (lambda (widget value)
+                         (or (stringp value)
+                             (widget-editable-list-match widget value)))
                 regexp))
 
 (defcustom message-ignored-cited-headers "."
index 3c79910..95f907f 100644 (file)
@@ -44,7 +44,7 @@ This is most commonly `inews' or `injnews'.")
   "Switches for nnspool-request-post to pass to `inews' for posting news.
 If you are using Cnews, you probably should set this variable to nil.")
 
-(defvoo nnspool-spool-directory (file-name-as-directory news-path)
+(defvoo nnspool-spool-directory (file-name-as-directory news-directory)
   "Local news spool directory.")
 
 (defvoo nnspool-nov-directory (concat nnspool-spool-directory "over.view/")
index f69c1d5..edd7a56 100644 (file)
@@ -83,7 +83,14 @@ values are 'apop."
   :group 'pop3)
 
 (defcustom pop3-leave-mail-on-server nil
-  "*Non-nil if the mail is to be left on the POP server after fetching."
+  "*Non-nil if the mail is to be left on the POP server after fetching.
+
+If the `pop3-leave-mail-on-server' is non-`nil' the mail is to be
+left on the POP server after fetching.  Note that POP servers
+maintain no state information between sessions, so what the
+client believes is there and what is actually there may not match
+up.  If they do not, then the whole thing can fall apart and
+leave you with a corrupt mailbox."
   :version "21.4" ;; Oort Gnus
   :type 'boolean
   :group 'pop3)
index cba703f..8e24114 100644 (file)
@@ -605,6 +605,8 @@ COUNT defaults to 5"
   (remove-hook 'gnus-select-article-hook
               'spam-stat-store-gnus-article-buffer))
 
+(add-hook 'spam-stat-unload-hook 'spam-stat-unload-hook)
+
 (provide 'spam-stat)
 
 ;;; arch-tag: ff1d2200-8ddb-42fb-bb7b-1b5e20448554
index 6cb22c8..41e938a 100644 (file)
@@ -2867,6 +2867,8 @@ installed through spam-necessary-extra-headers."
   (remove-hook 'gnus-get-new-news-hook 'spam-setup-widening)
   (remove-hook 'gnus-summary-prepare-hook 'spam-find-spam))
 
+(add-hook 'spam-unload-hook 'spam-unload-hook)
+
 (when spam-install-hooks
   (spam-initialize))
 ;;}}}
index d3dcab3..e0a96b4 100644 (file)
@@ -1,3 +1,13 @@
+2004-10-15  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * gnus.texi (New Features): Add 5.11.
+
+       * message.texi (Resending): Remove wrong default value.
+
+       * gnus.texi (Mail Source Specifiers): Describe possible problems
+       of `pop3-leave-mail-on-server'.  Add `pop3-movemail' and
+       `pop3-leave-mail-on-server' to the index.
+
 2004-10-15  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * gnus.texi (Adaptive Scoring): Added gnus-adaptive-pretty-print.
index 668b18f..29ffe5e 100644 (file)
@@ -881,7 +881,7 @@ New Features
 * Red Gnus::                    Third time best---Gnus 5.4/5.5.
 * Quassia Gnus::                Two times two is four, or Gnus 5.6/5.7.
 * Pterodactyl Gnus::            Pentad also starts with P, AKA Gnus 5.8/5.9.
-* Oort Gnus::                   It's big.  It's far out.  Gnus 5.10.
+* Oort Gnus::                   It's big.  It's far out.  Gnus 5.10/5.11.
 * No Gnus::                     Lars, FIXME!
 
 Customization
@@ -13594,10 +13594,16 @@ and says what authentication scheme to use.  The default is
 
 @end table
 
+@vindex pop3-movemail
+@vindex pop3-leave-mail-on-server
 If the @code{:program} and @code{:function} keywords aren't specified,
 @code{pop3-movemail} will be used.  If the
 @code{pop3-leave-mail-on-server} is non-@code{nil} the mail is to be
-left on the POP server after fetching.
+left on the @acronym{POP} server after fetching when using
+@code{pop3-movemail}.  Note that POP servers maintain no state
+information between sessions, so what the client believes is there and
+what is actually there may not match up.  If they do not, then the whole
+thing can fall apart and leave you with a corrupt mailbox.
 
 Here are some examples.  Fetch from the default @acronym{POP} server,
 using the default user name, and default fetcher:
@@ -25049,7 +25055,7 @@ actually are people who are using Gnus.  Who'd'a thunk it!
 * Red Gnus::                    Third time best---Gnus 5.4/5.5.
 * Quassia Gnus::                Two times two is four, or Gnus 5.6/5.7.
 * Pterodactyl Gnus::            Pentad also starts with P, AKA Gnus 5.8/5.9.
-* Oort Gnus::                   It's big.  It's far out.  Gnus 5.10.
+* Oort Gnus::                   It's big.  It's far out.  Gnus 5.10/5.11.
 * No Gnus::                     Lars, FIXME!
 @end menu
 
index 374b86b..75dd157 100644 (file)
@@ -315,8 +315,7 @@ and resend the message in the current buffer to that address.
 
 @vindex message-ignored-resent-headers
 Headers that match the @code{message-ignored-resent-headers} regexp will
-be removed before sending the message.  The default is
-@samp{^Return-receipt}.
+be removed before sending the message.
 
 
 @node Bouncing