mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(rmail-sort-messages): Give up right away if not Rmail mode.
This commit is contained in:
parent
a2a05344be
commit
d0c9169e2b
1 changed files with 2 additions and 0 deletions
|
|
@ -116,6 +116,8 @@ If prefix argument REVERSE is non-nil, sort them in reverse order."
|
|||
"Sort messages of current Rmail file.
|
||||
1st argument REVERSE is non-nil, sort them in reverse order.
|
||||
2nd argument KEYFUNC is called with message number, and should return a key."
|
||||
(or (eq major-mode 'rmail-mode)
|
||||
(error "Current buffer not in Rmail mode"))
|
||||
(let ((buffer-read-only nil)
|
||||
(sort-lists nil))
|
||||
(message "Finding sort keys...")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue