aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJulien Danjou2011-03-17 11:30:27 +0000
committerKatsumi Yamaoka2011-03-17 11:30:27 +0000
commitd6cd56f187a791983579bf5d4ce3702d2ddf2499 (patch)
tree4886ebd49fe19b5c84dfa411776654ec466ecb6e /lisp
parent171fc304acd841968479685a08b42299491a97ec (diff)
downloademacs-d6cd56f187a791983579bf5d4ce3702d2ddf2499.tar.gz
emacs-d6cd56f187a791983579bf5d4ce3702d2ddf2499.zip
mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are inline.
gnus-art.el (article-hide-list-identifiers): Use gnus-group-get-list-identifiers. * gnus-sum.el (gnus-group-get-list-identifiers): New function. (gnus-summary-remove-list-identifiers): Use gnus-group-get-list-identifiers to get regexp. (gnus-select-newsgroup, gnus-summary-insert-subject, gnus-summary-insert-articles): Call gnus-summary-remove-list-identifiers unconditionally.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog15
-rw-r--r--lisp/gnus/gnus-art.el5
-rw-r--r--lisp/gnus/gnus-sum.el24
-rw-r--r--lisp/gnus/mm-uu.el2
4 files changed, 31 insertions, 15 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 27fdc563db9..b22ed7397af 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,18 @@
12011-03-16 Julien Danjou <julien@danjou.info>
2
3 * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are
4 inline.
5
6 * gnus-art.el (article-hide-list-identifiers): Use
7 gnus-group-get-list-identifiers.
8
9 * gnus-sum.el (gnus-group-get-list-identifiers): New function.
10 (gnus-summary-remove-list-identifiers): Use
11 gnus-group-get-list-identifiers to get regexp.
12 (gnus-select-newsgroup, gnus-summary-insert-subject)
13 (gnus-summary-insert-articles): Call
14 gnus-summary-remove-list-identifiers unconditionally.
15
12011-03-15 Lars Magne Ingebrigtsen <larsi@gnus.org> 162011-03-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 17
3 * gnus-sum.el (gnus-articles-to-read): Revert back to old behaviour if 18 * gnus-sum.el (gnus-articles-to-read): Revert back to old behaviour if
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 20ffa8eed6b..b994a2839bc 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -3076,10 +3076,7 @@ images if any to the browser, and deletes them when exiting the group
3076The `gnus-list-identifiers' variable specifies what to do." 3076The `gnus-list-identifiers' variable specifies what to do."
3077 (interactive) 3077 (interactive)
3078 (let ((inhibit-point-motion-hooks t) 3078 (let ((inhibit-point-motion-hooks t)
3079 (regexp (or (gnus-parameter-list-identifier gnus-newsgroup-name) 3079 (regexp (gnus-group-get-list-identifiers gnus-newsgroup-name))
3080 (if (consp gnus-list-identifiers)
3081 (mapconcat 'identity gnus-list-identifiers " *\\|")
3082 gnus-list-identifiers)))
3083 (inhibit-read-only t)) 3080 (inhibit-read-only t))
3084 (when regexp 3081 (when regexp
3085 (save-excursion 3082 (save-excursion
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 385460378b1..29a98b7d11d 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -5510,12 +5510,17 @@ or a straight list of headers."
5510 (cdr (assq number gnus-newsgroup-scored)) 5510 (cdr (assq number gnus-newsgroup-scored))
5511 (memq number gnus-newsgroup-processable)))))) 5511 (memq number gnus-newsgroup-processable))))))
5512 5512
5513(defun gnus-group-get-list-identifiers (group)
5514 "Get list identifier regexp for GROUP."
5515 (or (gnus-parameter-list-identifier group)
5516 (if (consp gnus-list-identifiers)
5517 (mapconcat 'identity gnus-list-identifiers " *\\|")
5518 gnus-list-identifiers)))
5519
5513(defun gnus-summary-remove-list-identifiers () 5520(defun gnus-summary-remove-list-identifiers ()
5514 "Remove list identifiers in `gnus-list-identifiers' from articles in the current group." 5521 "Remove list identifiers in `gnus-list-identifiers' from articles in the current group."
5515 (let ((regexp (if (consp gnus-list-identifiers) 5522 (let ((regexp (gnus-group-get-list-identifiers gnus-newsgroup-name))
5516 (mapconcat 'identity gnus-list-identifiers " *\\|") 5523 changed subject)
5517 gnus-list-identifiers))
5518 changed subject)
5519 (when regexp 5524 (when regexp
5520 (setq regexp (concat "^\\(?:R[Ee]: +\\)*\\(" regexp " *\\)")) 5525 (setq regexp (concat "^\\(?:R[Ee]: +\\)*\\(" regexp " *\\)"))
5521 (dolist (header gnus-newsgroup-headers) 5526 (dolist (header gnus-newsgroup-headers)
@@ -5707,8 +5712,7 @@ If SELECT-ARTICLES, only select those articles from GROUP."
5707 (when gnus-agent 5712 (when gnus-agent
5708 (gnus-agent-get-undownloaded-list)) 5713 (gnus-agent-get-undownloaded-list))
5709 ;; Remove list identifiers from subject 5714 ;; Remove list identifiers from subject
5710 (when gnus-list-identifiers 5715 (gnus-summary-remove-list-identifiers)
5711 (gnus-summary-remove-list-identifiers))
5712 ;; Check whether auto-expire is to be done in this group. 5716 ;; Check whether auto-expire is to be done in this group.
5713 (setq gnus-newsgroup-auto-expire 5717 (setq gnus-newsgroup-auto-expire
5714 (gnus-group-auto-expirable-p group)) 5718 (gnus-group-auto-expirable-p group))
@@ -6576,9 +6580,8 @@ the subject line on."
6576 (1+ (point-at-eol)) 6580 (1+ (point-at-eol))
6577 (gnus-delete-line)))))) 6581 (gnus-delete-line))))))
6578 ;; Remove list identifiers from subject. 6582 ;; Remove list identifiers from subject.
6579 (when gnus-list-identifiers 6583 (let ((gnus-newsgroup-headers (list header)))
6580 (let ((gnus-newsgroup-headers (list header))) 6584 (gnus-summary-remove-list-identifiers))
6581 (gnus-summary-remove-list-identifiers)))
6582 (when old-header 6585 (when old-header
6583 (mail-header-set-number header (mail-header-number old-header))) 6586 (mail-header-set-number header (mail-header-number old-header)))
6584 (setq gnus-newsgroup-sparse 6587 (setq gnus-newsgroup-sparse
@@ -12682,8 +12685,7 @@ returned."
12682 (when gnus-agent 12685 (when gnus-agent
12683 (gnus-agent-get-undownloaded-list)) 12686 (gnus-agent-get-undownloaded-list))
12684 ;; Remove list identifiers from subject 12687 ;; Remove list identifiers from subject
12685 (when gnus-list-identifiers 12688 (gnus-summary-remove-list-identifiers)
12686 (gnus-summary-remove-list-identifiers))
12687 ;; First and last article in this newsgroup. 12689 ;; First and last article in this newsgroup.
12688 (when gnus-newsgroup-headers 12690 (when gnus-newsgroup-headers
12689 (setq gnus-newsgroup-begin 12691 (setq gnus-newsgroup-begin
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index 96dce48a774..4f7b5ed26b3 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -705,6 +705,8 @@ Assume text has been decoded if DECODED is non-nil."
705 ;; Mutt still uses application/pgp even though 705 ;; Mutt still uses application/pgp even though
706 ;; it has already been withdrawn. 706 ;; it has already been withdrawn.
707 (string-match "\\`text/\\|\\`application/pgp\\'" type) 707 (string-match "\\`text/\\|\\`application/pgp\\'" type)
708 (equal (car (mm-handle-disposition handle))
709 "inline")
708 (setq 710 (setq
709 children 711 children
710 (with-current-buffer buffer 712 (with-current-buffer buffer