aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-10-18 19:10:56 +0000
committerRichard M. Stallman1992-10-18 19:10:56 +0000
commitd0c9169e2bf24c080afd4cd2a8a394efae36d052 (patch)
tree0f82c63d2f5b93dc954ba489afc537d12de5aa43
parenta2a05344bea5813ecd3faff09536a83ea1629a76 (diff)
downloademacs-d0c9169e2bf24c080afd4cd2a8a394efae36d052.tar.gz
emacs-d0c9169e2bf24c080afd4cd2a8a394efae36d052.zip
(rmail-sort-messages): Give up right away if not Rmail mode.
-rw-r--r--lisp/mail/rmailsort.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mail/rmailsort.el b/lisp/mail/rmailsort.el
index 397e2d62f51..2ad4277a41d 100644
--- a/lisp/mail/rmailsort.el
+++ b/lisp/mail/rmailsort.el
@@ -116,6 +116,8 @@ If prefix argument REVERSE is non-nil, sort them in reverse order."
116 "Sort messages of current Rmail file. 116 "Sort messages of current Rmail file.
1171st argument REVERSE is non-nil, sort them in reverse order. 1171st argument REVERSE is non-nil, sort them in reverse order.
1182nd argument KEYFUNC is called with message number, and should return a key." 1182nd argument KEYFUNC is called with message number, and should return a key."
119 (or (eq major-mode 'rmail-mode)
120 (error "Current buffer not in Rmail mode"))
119 (let ((buffer-read-only nil) 121 (let ((buffer-read-only nil)
120 (sort-lists nil)) 122 (sort-lists nil))
121 (message "Finding sort keys...") 123 (message "Finding sort keys...")