diff options
| author | Miles Bader | 2007-08-13 13:44:55 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-08-13 13:44:55 +0000 |
| commit | 3b807f0d2dfdd28895e3b998bce2c06955faf030 (patch) | |
| tree | 11b94bbbc294e99e230cc5c8346029d2ac065240 | |
| parent | 9d2db4c6637fe37d75f947063bcb2ecce319a1bc (diff) | |
| download | emacs-3b807f0d2dfdd28895e3b998bce2c06955faf030.tar.gz emacs-3b807f0d2dfdd28895e3b998bce2c06955faf030.zip | |
Merge from gnus--rel--5.10
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
| -rw-r--r-- | lisp/gnus/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-ems.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 11 | ||||
| -rw-r--r-- | man/ChangeLog | 4 | ||||
| -rw-r--r-- | man/gnus.texi | 28 |
6 files changed, 58 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 807a853ba56..7fd187a4aeb 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2007-08-10 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * nntp.el (nntp-xref-number-is-evil): New server variable. | ||
| 4 | (nntp-find-group-and-number): If it is non-nil, don't trust article | ||
| 5 | numbers in the Xref header. | ||
| 6 | |||
| 7 | 2007-08-06 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 8 | |||
| 9 | * gnus-ems.el (gnus-x-splash): Bind inhibit-read-only to t. | ||
| 10 | |||
| 11 | 2007-08-04 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 12 | |||
| 13 | * gnus-art.el (article-hide-headers): Bind inhibit-read-only to t. | ||
| 14 | |||
| 1 | 2007-08-08 Glenn Morris <rgm@gnu.org> | 15 | 2007-08-08 Glenn Morris <rgm@gnu.org> |
| 2 | 16 | ||
| 3 | * gmm-utils.el, gnus-async.el, gnus-msg.el, gnus-score.el | 17 | * gmm-utils.el, gnus-async.el, gnus-msg.el, gnus-score.el |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 40de10187f3..6ccba3b108f 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1743,7 +1743,7 @@ Initialized from `text-mode-syntax-table.") | |||
| 1743 | (interactive) | 1743 | (interactive) |
| 1744 | ;; This function might be inhibited. | 1744 | ;; This function might be inhibited. |
| 1745 | (unless gnus-inhibit-hiding | 1745 | (unless gnus-inhibit-hiding |
| 1746 | (let ((inhibit-read-only nil) | 1746 | (let ((inhibit-read-only t) |
| 1747 | (case-fold-search t) | 1747 | (case-fold-search t) |
| 1748 | (max (1+ (length gnus-sorted-header-list))) | 1748 | (max (1+ (length gnus-sorted-header-list))) |
| 1749 | (inhibit-point-motion-hooks t) | 1749 | (inhibit-point-motion-hooks t) |
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el index bacf5581e0d..88190b8085b 100644 --- a/lisp/gnus/gnus-ems.el +++ b/lisp/gnus/gnus-ems.el | |||
| @@ -179,7 +179,7 @@ | |||
| 179 | (interactive-p)) | 179 | (interactive-p)) |
| 180 | "*gnus-x-splash*" | 180 | "*gnus-x-splash*" |
| 181 | gnus-group-buffer))) | 181 | gnus-group-buffer))) |
| 182 | (let ((inhibit-read-only nil) | 182 | (let ((inhibit-read-only t) |
| 183 | (file (nnheader-find-etc-directory "images/gnus/x-splash" t)) | 183 | (file (nnheader-find-etc-directory "images/gnus/x-splash" t)) |
| 184 | pixmap fcw fch width height fringes sbars left yoffset top ls) | 184 | pixmap fcw fch width height fringes sbars left yoffset top ls) |
| 185 | (erase-buffer) | 185 | (erase-buffer) |
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 869213c9ae5..2623df58e4d 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -183,6 +183,14 @@ by one.") | |||
| 183 | If the gap between two consecutive articles is bigger than this | 183 | If the gap between two consecutive articles is bigger than this |
| 184 | variable, split the XOVER request into two requests.") | 184 | variable, split the XOVER request into two requests.") |
| 185 | 185 | ||
| 186 | (defvoo nntp-xref-number-is-evil nil | ||
| 187 | "*If non-nil, Gnus never trusts article numbers in the Xref header. | ||
| 188 | Some news servers, e.g., ones running Diablo, run multiple engines | ||
| 189 | having the same articles but article numbers are not kept synchronized | ||
| 190 | between them. If you connect to such a server, set this to a non-nil | ||
| 191 | value, and Gnus never uses article numbers (that appear in the Xref | ||
| 192 | header and vary by which engine is chosen) to refer to articles.") | ||
| 193 | |||
| 186 | (defvoo nntp-prepare-server-hook nil | 194 | (defvoo nntp-prepare-server-hook nil |
| 187 | "*Hook run before a server is opened. | 195 | "*Hook run before a server is opened. |
| 188 | If can be used to set up a server remotely, for instance. Say you | 196 | If can be used to set up a server remotely, for instance. Say you |
| @@ -1632,7 +1640,8 @@ password contained in '~/.nntp-authinfo'." | |||
| 1632 | (match-string 1 xref)) | 1640 | (match-string 1 xref)) |
| 1633 | (t ""))) | 1641 | (t ""))) |
| 1634 | (cond | 1642 | (cond |
| 1635 | ((and (setq xref (mail-fetch-field "xref")) | 1643 | ((and (not nntp-xref-number-is-evil) |
| 1644 | (setq xref (mail-fetch-field "xref")) | ||
| 1636 | (string-match | 1645 | (string-match |
| 1637 | (if group | 1646 | (if group |
| 1638 | (concat "\\(" (regexp-quote group) "\\):\\([0-9]+\\)") | 1647 | (concat "\\(" (regexp-quote group) "\\):\\([0-9]+\\)") |
diff --git a/man/ChangeLog b/man/ChangeLog index 39895247477..479f25e7267 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-08-10 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus.texi (NNTP): Mention nntp-xref-number-is-evil. | ||
| 4 | |||
| 1 | 2007-08-08 Glenn Morris <rgm@gnu.org> | 5 | 2007-08-08 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * glossary.texi (Glossary): Deprecate `iff'. | 7 | * glossary.texi (Glossary): Deprecate `iff'. |
diff --git a/man/gnus.texi b/man/gnus.texi index ff8371df46c..94144b65e3f 100644 --- a/man/gnus.texi +++ b/man/gnus.texi | |||
| @@ -12945,6 +12945,34 @@ network is fast, setting this variable to a really small number means | |||
| 12945 | that fetching will probably be slower. If this variable is @code{nil}, | 12945 | that fetching will probably be slower. If this variable is @code{nil}, |
| 12946 | @code{nntp} will never split requests. The default is 5. | 12946 | @code{nntp} will never split requests. The default is 5. |
| 12947 | 12947 | ||
| 12948 | @item nntp-xref-number-is-evil | ||
| 12949 | @vindex nntp-xref-number-is-evil | ||
| 12950 | When Gnus refers to an article having the @code{Message-ID} that a user | ||
| 12951 | specifies or having the @code{Message-ID} of the parent article of the | ||
| 12952 | current one (@pxref{Finding the Parent}), Gnus sends a @code{HEAD} | ||
| 12953 | command to the @acronym{NNTP} server to know where it is, and the server | ||
| 12954 | returns the data containing the pairs of a group and an article number | ||
| 12955 | in the @code{Xref} header. Gnus normally uses the article number to | ||
| 12956 | refer to the article if the data shows that that article is in the | ||
| 12957 | current group, while it uses the @code{Message-ID} otherwise. However, | ||
| 12958 | some news servers, e.g., ones running Diablo, run multiple engines | ||
| 12959 | having the same articles but article numbers are not kept synchronized | ||
| 12960 | between them. In that case, the article number that appears in the | ||
| 12961 | @code{Xref} header varies by which engine is chosen, so you cannot refer | ||
| 12962 | to the parent article that is in the current group, for instance. If | ||
| 12963 | you connect to such a server, set this variable to a non-@code{nil} | ||
| 12964 | value, and Gnus never uses article numbers. For example: | ||
| 12965 | |||
| 12966 | @lisp | ||
| 12967 | (setq gnus-select-method | ||
| 12968 | '(nntp "newszilla" | ||
| 12969 | (nntp-address "newszilla.example.com") | ||
| 12970 | (nntp-xref-number-is-evil t) | ||
| 12971 | @dots{})) | ||
| 12972 | @end lisp | ||
| 12973 | |||
| 12974 | The default value of this server variable is @code{nil}. | ||
| 12975 | |||
| 12948 | @item nntp-prepare-server-hook | 12976 | @item nntp-prepare-server-hook |
| 12949 | @vindex nntp-prepare-server-hook | 12977 | @vindex nntp-prepare-server-hook |
| 12950 | A hook run before attempting to connect to an @acronym{NNTP} server. | 12978 | A hook run before attempting to connect to an @acronym{NNTP} server. |