aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-12-26 15:06:43 +0100
committerJoakim Verona2012-12-26 15:06:43 +0100
commite9184b44794081df8612d522cc1ebbc85489cd70 (patch)
treede20016e84d564320030e7cde5c0bb11bbb8cca4
parentdabbb284f4700a5179181b165ca128806663b15b (diff)
parent2e0515202201e83d1845918760c888805164d369 (diff)
downloademacs-e9184b44794081df8612d522cc1ebbc85489cd70.tar.gz
emacs-e9184b44794081df8612d522cc1ebbc85489cd70.zip
auto upstream
-rw-r--r--lisp/gnus/ChangeLog9
-rw-r--r--lisp/gnus/gnus-cite.el22
-rw-r--r--lisp/gnus/gnus-util.el2
3 files changed, 14 insertions, 19 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index cf92e6cc9f4..c873c6f6704 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,12 @@
12012-12-26 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * gnus-util.el (gnus-goto-colon): Move to the beginning of the visual
4 lines. This makes summary commands with hidden threads work more
5 reliably.
6
7 * gnus-cite.el (gnus-article-hide-citation-maybe): Leave an expansion
8 button to mark the hidden citations (bug#9395).
9
12012-12-26 Daiki Ueno <ueno@gnu.org> 102012-12-26 Daiki Ueno <ueno@gnu.org>
2 11
3 * mml2015.el (mml2015-epg-signature-to-string): New function. 12 * mml2015.el (mml2015-epg-signature-to-string): New function.
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el
index d107dfad32e..bab589ab71f 100644
--- a/lisp/gnus/gnus-cite.el
+++ b/lisp/gnus/gnus-cite.el
@@ -745,28 +745,14 @@ See also the documentation for `gnus-article-highlight-citation'."
745 (gnus-article-search-signature) 745 (gnus-article-search-signature)
746 (setq total (count-lines start (point))) 746 (setq total (count-lines start (point)))
747 (while atts 747 (while atts
748 (setq hidden (+ hidden (length (cdr (assoc (cdar atts) 748 (setq hidden (+ hidden (length
749 gnus-cite-prefix-alist)))) 749 (cdr (assoc (cdar atts)
750 gnus-cite-prefix-alist))))
750 atts (cdr atts))) 751 atts (cdr atts)))
751 (when (or force 752 (when (or force
752 (and (> (* 100 hidden) (* gnus-cite-hide-percentage total)) 753 (and (> (* 100 hidden) (* gnus-cite-hide-percentage total))
753 (> hidden gnus-cite-hide-absolute))) 754 (> hidden gnus-cite-hide-absolute)))
754 (gnus-add-wash-type 'cite) 755 (gnus-article-hide-citation)))))))
755 (setq atts gnus-cite-attribution-alist)
756 (while atts
757 (setq total (cdr (assoc (cdar atts) gnus-cite-prefix-alist))
758 atts (cdr atts))
759 (while total
760 (setq hidden (car total)
761 total (cdr total))
762 (goto-char (point-min))
763 (forward-line (1- hidden))
764 (unless (assq hidden gnus-cite-attribution-alist)
765 (gnus-add-text-properties
766 (point) (progn (forward-line 1) (point))
767 (nconc (list 'article-type 'cite)
768 gnus-hidden-properties)))))))))
769 (gnus-set-mode-line 'article)))
770 756
771(defun gnus-article-hide-citation-in-followups () 757(defun gnus-article-hide-citation-in-followups ()
772 "Hide cited text in non-root articles." 758 "Hide cited text in non-root articles."
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 1c22bdfd2c1..705a9e0debf 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -225,7 +225,7 @@ is slower."
225 225
226 226
227(defun gnus-goto-colon () 227(defun gnus-goto-colon ()
228 (beginning-of-line) 228 (move-beginning-of-line 1)
229 (let ((eol (point-at-eol))) 229 (let ((eol (point-at-eol)))
230 (goto-char (or (text-property-any (point) eol 'gnus-position t) 230 (goto-char (or (text-property-any (point) eol 'gnus-position t)
231 (search-forward ":" eol t) 231 (search-forward ":" eol t)