diff options
| author | Richard M. Stallman | 1992-10-18 19:10:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-10-18 19:10:56 +0000 |
| commit | d0c9169e2bf24c080afd4cd2a8a394efae36d052 (patch) | |
| tree | 0f82c63d2f5b93dc954ba489afc537d12de5aa43 | |
| parent | a2a05344bea5813ecd3faff09536a83ea1629a76 (diff) | |
| download | emacs-d0c9169e2bf24c080afd4cd2a8a394efae36d052.tar.gz emacs-d0c9169e2bf24c080afd4cd2a8a394efae36d052.zip | |
(rmail-sort-messages): Give up right away if not Rmail mode.
| -rw-r--r-- | lisp/mail/rmailsort.el | 2 |
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. |
| 117 | 1st argument REVERSE is non-nil, sort them in reverse order. | 117 | 1st argument REVERSE is non-nil, sort them in reverse order. |
| 118 | 2nd argument KEYFUNC is called with message number, and should return a key." | 118 | 2nd 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...") |