diff options
| author | Richard M. Stallman | 1998-08-08 21:48:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-08-08 21:48:45 +0000 |
| commit | 349b1f3187f8a07d1471e4b853fe0692c6029a1f (patch) | |
| tree | 44abccdfc004c8c24f1ab6549afc2238d70bdc03 | |
| parent | 84d602979c12ac3956e75a5e77da9fe0b1b41c4d (diff) | |
| download | emacs-349b1f3187f8a07d1471e4b853fe0692c6029a1f.tar.gz emacs-349b1f3187f8a07d1471e4b853fe0692c6029a1f.zip | |
(set-rmail-inbox-list): Error if not in Rmail mode.
| -rw-r--r-- | lisp/mail/rmailmsc.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/mail/rmailmsc.el b/lisp/mail/rmailmsc.el index 98926d8117e..ad302785358 100644 --- a/lisp/mail/rmailmsc.el +++ b/lisp/mail/rmailmsc.el | |||
| @@ -30,6 +30,10 @@ | |||
| 30 | You can specify one file name, or several names separated by commas. | 30 | You can specify one file name, or several names separated by commas. |
| 31 | If FILE-NAME is empty, remove any existing inbox list." | 31 | If FILE-NAME is empty, remove any existing inbox list." |
| 32 | (interactive "sSet mailbox list to (comma-separated list of filenames): ") | 32 | (interactive "sSet mailbox list to (comma-separated list of filenames): ") |
| 33 | |||
| 34 | (unless (eq major-mode 'rmail-mode) | ||
| 35 | (error "set-rmail-inbox-list works only for an Rmail file")) | ||
| 36 | |||
| 33 | (save-excursion | 37 | (save-excursion |
| 34 | (let ((names (rmail-parse-file-inboxes)) | 38 | (let ((names (rmail-parse-file-inboxes)) |
| 35 | (standard-output nil)) | 39 | (standard-output nil)) |