aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/ChangeLog14
-rw-r--r--lisp/gnus/gnus-diary.el12
-rw-r--r--lisp/gnus/gnus-logic.el13
-rw-r--r--lisp/gnus/gnus-score.el17
-rw-r--r--lisp/gnus/pop3.el2
5 files changed, 37 insertions, 21 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 5f635e59cdf..dd493d383a3 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,17 @@
12012-11-16 Jan Tatarik <jan.tatarik@gmail.com>
2
3 * gnus-score.el (gnus-score-body):
4 * gnus-logic.el (gnus-advanced-body): Don't score by headers when
5 scoring by body.
6
72012-11-16 Glenn Morris <rgm@gnu.org>
8
9 * gnus-diary.el (nndiary-request-create-group-functions)
10 (nndiary-request-update-info-functions)
11 (gnus-subscribe-newsgroup-functions)
12 (nndiary-request-accept-article-functions):
13 Use new names for hooks rather than obsolete aliases.
14
12012-11-08 Katsumi Yamaoka <yamaoka@jpl.org> 152012-11-08 Katsumi Yamaoka <yamaoka@jpl.org>
2 16
3 * gnus-art.el (gnus-article-browse-html-parts): Always replace charset 17 * gnus-art.el (gnus-article-browse-html-parts): Always replace charset
diff --git a/lisp/gnus/gnus-diary.el b/lisp/gnus/gnus-diary.el
index 854af2f5d76..bca307b19b6 100644
--- a/lisp/gnus/gnus-diary.el
+++ b/lisp/gnus/gnus-diary.el
@@ -277,18 +277,18 @@ Optional prefix (or REVERSE argument) means sort in reverse order."
277 277
278;; Called when a group is subscribed. This is needed because groups created 278;; Called when a group is subscribed. This is needed because groups created
279;; because of mail splitting are *not* created with the back end function. 279;; because of mail splitting are *not* created with the back end function.
280;; Thus, `nndiary-request-create-group-hooks' is inoperative. 280;; Thus, `nndiary-request-create-group-functions' is inoperative.
281(defun gnus-diary-maybe-update-group-parameters (group) 281(defun gnus-diary-maybe-update-group-parameters (group)
282 (when (eq (car (gnus-find-method-for-group group)) 'nndiary) 282 (when (eq (car (gnus-find-method-for-group group)) 'nndiary)
283 (gnus-diary-update-group-parameters group))) 283 (gnus-diary-update-group-parameters group)))
284 284
285(add-hook 'nndiary-request-create-group-hooks 285(add-hook 'nndiary-request-create-group-functions
286 'gnus-diary-update-group-parameters) 286 'gnus-diary-update-group-parameters)
287;; Now that we have `gnus-subscribe-newsgroup-hooks', this is not needed 287;; Now that we have `gnus-subscribe-newsgroup-functions', this is not needed
288;; anymore. Maybe I should remove this completely. 288;; anymore. Maybe I should remove this completely.
289(add-hook 'nndiary-request-update-info-hooks 289(add-hook 'nndiary-request-update-info-functions
290 'gnus-diary-update-group-parameters) 290 'gnus-diary-update-group-parameters)
291(add-hook 'gnus-subscribe-newsgroup-hooks 291(add-hook 'gnus-subscribe-newsgroup-functions
292 'gnus-diary-maybe-update-group-parameters) 292 'gnus-diary-maybe-update-group-parameters)
293 293
294 294
@@ -384,7 +384,7 @@ If ARG (or prefix) is non-nil, force prompting for all fields."
384 nndiary-headers) 384 nndiary-headers)
385 )) 385 ))
386 386
387(add-hook 'nndiary-request-accept-article-hooks 387(add-hook 'nndiary-request-accept-article-functions
388 (lambda () (gnus-diary-check-message nil))) 388 (lambda () (gnus-diary-check-message nil)))
389 389
390(define-key message-mode-map "\C-c\C-fd" 'gnus-diary-check-message) 390(define-key message-mode-map "\C-c\C-fd" 'gnus-diary-check-message)
diff --git a/lisp/gnus/gnus-logic.el b/lisp/gnus/gnus-logic.el
index a440b779930..60d7b31713b 100644
--- a/lisp/gnus/gnus-logic.el
+++ b/lisp/gnus/gnus-logic.el
@@ -181,17 +181,18 @@
181 (with-current-buffer nntp-server-buffer 181 (with-current-buffer nntp-server-buffer
182 (let* ((request-func (cond ((string= "head" header) 182 (let* ((request-func (cond ((string= "head" header)
183 'gnus-request-head) 183 'gnus-request-head)
184 ;; We need to peek at the headers to detect the
185 ;; content encoding
186 ((string= "body" header) 184 ((string= "body" header)
187 'gnus-request-article) 185 'gnus-request-body)
188 (t 'gnus-request-article))) 186 (t 'gnus-request-article)))
189 ofunc article handles) 187 ofunc article handles)
190 ;; Not all backends support partial fetching. In that case, we 188 ;; Not all backends support partial fetching. In that case, we
191 ;; just fetch the entire article. 189 ;; just fetch the entire article.
192 (unless (gnus-check-backend-function 190 ;; When scoring by body, we need to peek at the headers to detect the
193 (intern (concat "request-" header)) 191 ;; content encoding
194 gnus-newsgroup-name) 192 (unless (or (gnus-check-backend-function
193 (intern (concat "request-" header))
194 gnus-newsgroup-name)
195 (string= "body" header))
195 (setq ofunc request-func) 196 (setq ofunc request-func)
196 (setq request-func 'gnus-request-article)) 197 (setq request-func 'gnus-request-article))
197 (setq article (mail-header-number gnus-advanced-headers)) 198 (setq article (mail-header-number gnus-advanced-headers))
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index f215b845514..b7061960839 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -1762,21 +1762,22 @@ score in `gnus-newsgroup-scored' by SCORE."
1762 (all-scores scores) 1762 (all-scores scores)
1763 (request-func (cond ((string= "head" header) 1763 (request-func (cond ((string= "head" header)
1764 'gnus-request-head) 1764 'gnus-request-head)
1765 ;; We need to peek at the headers to detect
1766 ;; the content encoding
1767 ((string= "body" header) 1765 ((string= "body" header)
1768 'gnus-request-article) 1766 'gnus-request-body)
1769 (t 'gnus-request-article))) 1767 (t 'gnus-request-article)))
1770 entries alist ofunc article last) 1768 entries alist ofunc article last)
1771 (when articles 1769 (when articles
1772 (setq last (mail-header-number (caar (last articles)))) 1770 (setq last (mail-header-number (caar (last articles))))
1773 ;; Not all backends support partial fetching. In that case, 1771 ;; Not all backends support partial fetching. In that case,
1774 ;; we just fetch the entire article. 1772 ;; we just fetch the entire article.
1775 (unless (gnus-check-backend-function 1773 ;; When scoring by body, we need to peek at the headers to detect
1776 (and (string-match "^gnus-" (symbol-name request-func)) 1774 ;; the content encoding
1777 (intern (substring (symbol-name request-func) 1775 (unless (or (gnus-check-backend-function
1778 (match-end 0)))) 1776 (and (string-match "^gnus-" (symbol-name request-func))
1779 gnus-newsgroup-name) 1777 (intern (substring (symbol-name request-func)
1778 (match-end 0))))
1779 gnus-newsgroup-name)
1780 (string= "body" header))
1780 (setq ofunc request-func) 1781 (setq ofunc request-func)
1781 (setq request-func 'gnus-request-article)) 1782 (setq request-func 'gnus-request-article))
1782 (while articles 1783 (while articles
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el
index f95bf26ad1d..801ed66ec2b 100644
--- a/lisp/gnus/pop3.el
+++ b/lisp/gnus/pop3.el
@@ -178,7 +178,7 @@ Shorter values mean quicker response, but are more CPU intensive.")
178 1000)))))) 178 1000))))))
179 179
180(defvar pop3-uidl) 180(defvar pop3-uidl)
181;; List of UIDLs of existing messages at pesent in the server: 181;; List of UIDLs of existing messages at present in the server:
182;; ("UIDL1" "UIDL2" "UIDL3"...) 182;; ("UIDL1" "UIDL2" "UIDL3"...)
183 183
184(defvar pop3-uidl-saved) 184(defvar pop3-uidl-saved)