Commit e15dbc43 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(rmail-summary-sort-by-labels): Renamed

from rmail-summary-sort-by-keywords.  Doc fix.
(rmail-summary-mode): Doc fix.
parent 5092477a
......@@ -723,7 +723,7 @@ Commands for sorting the summary:
\\[rmail-summary-sort-by-recipient] Sort by recipient.
\\[rmail-summary-sort-by-correspondent] Sort by correspondent.
\\[rmail-summary-sort-by-lines] Sort by lines.
\\[rmail-summary-sort-by-keywords] Sort by keywords."
\\[rmail-summary-sort-by-labels] Sort by labels."
(interactive)
(kill-all-local-variables)
(setq major-mode 'rmail-summary-mode)
......@@ -893,7 +893,7 @@ Search, the `unseen' attribute is restored.")
(define-key rmail-summary-mode-map "\C-c\C-s\C-l"
'rmail-summary-sort-by-lines)
(define-key rmail-summary-mode-map "\C-c\C-s\C-k"
'rmail-summary-sort-by-keywords)
'rmail-summary-sort-by-labels)
)
;;; Menu bar bindings.
......@@ -1610,14 +1610,14 @@ If prefix argument REVERSE is non-nil, sort them in reverse order."
(interactive "P")
(rmail-sort-from-summary (function rmail-sort-by-lines) reverse))
(defun rmail-summary-sort-by-keywords (reverse labels)
"Sort messages of current Rmail summary by keywords.
(defun rmail-summary-sort-by-labels (reverse labels)
"Sort messages of current Rmail summary by labels.
If prefix argument REVERSE is non-nil, sort them in reverse order.
KEYWORDS is a comma-separated list of labels."
(interactive "P\nsSort by labels: ")
(rmail-sort-from-summary
(function (lambda (reverse)
(rmail-sort-by-keywords reverse labels)))
(rmail-sort-by-labels reverse labels)))
reverse))
(defun rmail-sort-from-summary (sortfun reverse)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment