aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus/gnus-sum.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus/gnus-sum.el')
-rw-r--r--lisp/gnus/gnus-sum.el28
1 files changed, 27 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 72e902a11f8..2631514e425 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -1895,6 +1895,7 @@ increase the score of each group you read."
1895 "\C-c\C-s\C-m\C-n" gnus-summary-sort-by-most-recent-number 1895 "\C-c\C-s\C-m\C-n" gnus-summary-sort-by-most-recent-number
1896 "\C-c\C-s\C-l" gnus-summary-sort-by-lines 1896 "\C-c\C-s\C-l" gnus-summary-sort-by-lines
1897 "\C-c\C-s\C-c" gnus-summary-sort-by-chars 1897 "\C-c\C-s\C-c" gnus-summary-sort-by-chars
1898 "\C-c\C-s\C-m\C-m" gnus-summary-sort-by-marks
1898 "\C-c\C-s\C-a" gnus-summary-sort-by-author 1899 "\C-c\C-s\C-a" gnus-summary-sort-by-author
1899 "\C-c\C-s\C-t" gnus-summary-sort-by-recipient 1900 "\C-c\C-s\C-t" gnus-summary-sort-by-recipient
1900 "\C-c\C-s\C-s" gnus-summary-sort-by-subject 1901 "\C-c\C-s\C-s" gnus-summary-sort-by-subject
@@ -2748,6 +2749,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2748 ["Sort by score" gnus-summary-sort-by-score t] 2749 ["Sort by score" gnus-summary-sort-by-score t]
2749 ["Sort by lines" gnus-summary-sort-by-lines t] 2750 ["Sort by lines" gnus-summary-sort-by-lines t]
2750 ["Sort by characters" gnus-summary-sort-by-chars t] 2751 ["Sort by characters" gnus-summary-sort-by-chars t]
2752 ["Sort by marks" gnus-summary-sort-by-marks t]
2751 ["Randomize" gnus-summary-sort-by-random t] 2753 ["Randomize" gnus-summary-sort-by-random t]
2752 ["Original sort" gnus-summary-sort-by-original t]) 2754 ["Original sort" gnus-summary-sort-by-original t])
2753 ("Help" 2755 ("Help"
@@ -3976,6 +3978,8 @@ If SELECT-ARTICLES, only select those articles from GROUP."
3976 ;; The group was successfully selected. 3978 ;; The group was successfully selected.
3977 (t 3979 (t
3978 (gnus-set-global-variables) 3980 (gnus-set-global-variables)
3981 (when (boundp 'gnus-pick-line-number)
3982 (setq gnus-pick-line-number 0))
3979 (when (boundp 'spam-install-hooks) 3983 (when (boundp 'spam-install-hooks)
3980 (spam-initialize)) 3984 (spam-initialize))
3981 ;; Save the active value in effect when the group was entered. 3985 ;; Save the active value in effect when the group was entered.
@@ -4037,6 +4041,9 @@ If SELECT-ARTICLES, only select those articles from GROUP."
4037 (when kill-buffer 4041 (when kill-buffer
4038 (gnus-kill-or-deaden-summary kill-buffer)) 4042 (gnus-kill-or-deaden-summary kill-buffer))
4039 (gnus-summary-auto-select-subject) 4043 (gnus-summary-auto-select-subject)
4044 ;; Don't mark any articles as selected if we haven't done that.
4045 (when no-article
4046 (setq overlay-arrow-position nil))
4040 ;; Show first unread article if requested. 4047 ;; Show first unread article if requested.
4041 (if (and (not no-article) 4048 (if (and (not no-article)
4042 (not no-display) 4049 (not no-display)
@@ -4941,6 +4948,16 @@ using some other form will lead to serious barfage."
4941 (gnus-article-sort-by-chars 4948 (gnus-article-sort-by-chars
4942 (gnus-thread-header h1) (gnus-thread-header h2))) 4949 (gnus-thread-header h1) (gnus-thread-header h2)))
4943 4950
4951(defsubst gnus-article-sort-by-marks (h1 h2)
4952 "Sort articles by octet length."
4953 (< (gnus-article-mark (mail-header-number h1))
4954 (gnus-article-mark (mail-header-number h2))))
4955
4956(defun gnus-thread-sort-by-marks (h1 h2)
4957 "Sort threads by root article octet length."
4958 (gnus-article-sort-by-marks
4959 (gnus-thread-header h1) (gnus-thread-header h2)))
4960
4944(defsubst gnus-article-sort-by-author (h1 h2) 4961(defsubst gnus-article-sort-by-author (h1 h2)
4945 "Sort articles by root author." 4962 "Sort articles by root author."
4946 (gnus-string< 4963 (gnus-string<
@@ -11925,6 +11942,12 @@ Argument REVERSE means reverse order."
11925 (interactive "P") 11942 (interactive "P")
11926 (gnus-summary-sort 'chars reverse)) 11943 (gnus-summary-sort 'chars reverse))
11927 11944
11945(defun gnus-summary-sort-by-mark (&optional reverse)
11946 "Sort the summary buffer by article marks.
11947Argument REVERSE means reverse order."
11948 (interactive "P")
11949 (gnus-summary-sort 'marks reverse))
11950
11928(defun gnus-summary-sort-by-original (&optional reverse) 11951(defun gnus-summary-sort-by-original (&optional reverse)
11929 "Sort the summary buffer using the default sorting method. 11952 "Sort the summary buffer using the default sorting method.
11930Argument REVERSE means reverse order." 11953Argument REVERSE means reverse order."
@@ -11970,7 +11993,10 @@ save those articles instead.
11970The variable `gnus-default-article-saver' specifies the saver function. 11993The variable `gnus-default-article-saver' specifies the saver function.
11971 11994
11972If the optional second argument NOT-SAVED is non-nil, articles saved 11995If the optional second argument NOT-SAVED is non-nil, articles saved
11973will not be marked as saved." 11996will not be marked as saved.
11997
11998The `gnus-prompt-before-saving' variable says how prompting is
11999performed."
11974 (interactive "P") 12000 (interactive "P")
11975 (require 'gnus-art) 12001 (require 'gnus-art)
11976 (let* ((articles (gnus-summary-work-articles n)) 12002 (let* ((articles (gnus-summary-work-articles n))