]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge from gnus--rel--5.10
authorMiles Bader <miles@gnu.org>
Mon, 13 Aug 2007 13:44:55 +0000 (13:44 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 13 Aug 2007 13:44:55 +0000 (13:44 +0000)
Patches applied:

 * gnus--rel--5.10  (patch 242-244)

   - Update from CVS

2007-08-10  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/gnus/nntp.el (nntp-xref-number-is-evil): New server variable.
   (nntp-find-group-and-number): If it is non-nil, don't trust article
   numbers in the Xref header.

2007-08-06  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/gnus/gnus-ems.el (gnus-x-splash): Bind inhibit-read-only to t.

2007-08-04  Reiner Steib  <Reiner.Steib@gmx.de>

   * lisp/gnus/gnus-art.el (article-hide-headers): Bind inhibit-read-only to t.

2007-08-10  Katsumi Yamaoka  <yamaoka@jpl.org>

   * man/gnus.texi (NNTP): Mention nntp-xref-number-is-evil.

Revision: emacs@sv.gnu.org/emacs--rel--22--patch-92

lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el
lisp/gnus/gnus-ems.el
lisp/gnus/nntp.el
man/ChangeLog
man/gnus.texi

index 807a853ba560492d9dff78b614c73268a0ed0f03..7fd187a4aeb7580e88a2146288f4368c1bcdce1d 100644 (file)
@@ -1,3 +1,17 @@
+2007-08-10  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * nntp.el (nntp-xref-number-is-evil): New server variable.
+       (nntp-find-group-and-number): If it is non-nil, don't trust article
+       numbers in the Xref header.
+
+2007-08-06  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-ems.el (gnus-x-splash): Bind inhibit-read-only to t.
+
+2007-08-04  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * gnus-art.el (article-hide-headers): Bind inhibit-read-only to t.
+
 2007-08-08  Glenn Morris  <rgm@gnu.org>
 
        * gmm-utils.el, gnus-async.el, gnus-msg.el, gnus-score.el
index 40de10187f3556b85083a30712ef44e9bd62f918..6ccba3b108f3271f09cc34ca44f22395ee30e08b 100644 (file)
@@ -1743,7 +1743,7 @@ Initialized from `text-mode-syntax-table.")
   (interactive)
   ;; This function might be inhibited.
   (unless gnus-inhibit-hiding
-    (let ((inhibit-read-only nil)
+    (let ((inhibit-read-only t)
          (case-fold-search t)
          (max (1+ (length gnus-sorted-header-list)))
          (inhibit-point-motion-hooks t)
index bacf5581e0dedb53719641bf5285a672c99681db..88190b8085b5f45cc55a9e946088b3f85b3bdb00 100644 (file)
                                                    (interactive-p))
                                                "*gnus-x-splash*"
                                              gnus-group-buffer)))
-  (let ((inhibit-read-only nil)
+  (let ((inhibit-read-only t)
        (file (nnheader-find-etc-directory "images/gnus/x-splash" t))
        pixmap fcw fch width height fringes sbars left yoffset top ls)
     (erase-buffer)
index 869213c9ae5a6ded3836f021f5d658e70049de9d..2623df58e4d9c786d94cf4c250d4b4edd38f11ba 100644 (file)
@@ -183,6 +183,14 @@ by one.")
 If the gap between two consecutive articles is bigger than this
 variable, split the XOVER request into two requests.")
 
+(defvoo nntp-xref-number-is-evil nil
+  "*If non-nil, Gnus never trusts article numbers in the Xref header.
+Some news servers, e.g., ones running Diablo, run multiple engines
+having the same articles but article numbers are not kept synchronized
+between them.  If you connect to such a server, set this to a non-nil
+value, and Gnus never uses article numbers (that appear in the Xref
+header and vary by which engine is chosen) to refer to articles.")
+
 (defvoo nntp-prepare-server-hook nil
   "*Hook run before a server is opened.
 If can be used to set up a server remotely, for instance.  Say you
@@ -1632,7 +1640,8 @@ password contained in '~/.nntp-authinfo'."
                    (match-string 1 xref))
                   (t "")))
          (cond
-          ((and (setq xref (mail-fetch-field "xref"))
+          ((and (not nntp-xref-number-is-evil)
+                (setq xref (mail-fetch-field "xref"))
                 (string-match
                  (if group
                      (concat "\\(" (regexp-quote group) "\\):\\([0-9]+\\)")
index 39895247477121b9967a8a04b7fd695c7ba5dbf5..479f25e7267d584b18e7c4af521a1c017e888cf6 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-10  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus.texi (NNTP): Mention nntp-xref-number-is-evil.
+
 2007-08-08  Glenn Morris  <rgm@gnu.org>
 
        * glossary.texi (Glossary): Deprecate `iff'.
index ff8371df46c63cc37250b47726e1ad04f1ef2d5e..94144b65e3f75555a6865a9b8d258b5b2e506f09 100644 (file)
@@ -12945,6 +12945,34 @@ network is fast, setting this variable to a really small number means
 that fetching will probably be slower.  If this variable is @code{nil},
 @code{nntp} will never split requests.  The default is 5.
 
+@item nntp-xref-number-is-evil
+@vindex nntp-xref-number-is-evil
+When Gnus refers to an article having the @code{Message-ID} that a user
+specifies or having the @code{Message-ID} of the parent article of the
+current one (@pxref{Finding the Parent}), Gnus sends a @code{HEAD}
+command to the @acronym{NNTP} server to know where it is, and the server
+returns the data containing the pairs of a group and an article number
+in the @code{Xref} header.  Gnus normally uses the article number to
+refer to the article if the data shows that that article is in the
+current group, while it uses the @code{Message-ID} otherwise.  However,
+some news servers, e.g., ones running Diablo, run multiple engines
+having the same articles but article numbers are not kept synchronized
+between them.  In that case, the article number that appears in the
+@code{Xref} header varies by which engine is chosen, so you cannot refer
+to the parent article that is in the current group, for instance.  If
+you connect to such a server, set this variable to a non-@code{nil}
+value, and Gnus never uses article numbers.  For example:
+
+@lisp
+(setq gnus-select-method
+      '(nntp "newszilla"
+             (nntp-address "newszilla.example.com")
+             (nntp-xref-number-is-evil t)
+             @dots{}))
+@end lisp
+
+The default value of this server variable is @code{nil}.
+
 @item nntp-prepare-server-hook
 @vindex nntp-prepare-server-hook
 A hook run before attempting to connect to an @acronym{NNTP} server.