aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-08-08 21:48:45 +0000
committerRichard M. Stallman1998-08-08 21:48:45 +0000
commit349b1f3187f8a07d1471e4b853fe0692c6029a1f (patch)
tree44abccdfc004c8c24f1ab6549afc2238d70bdc03
parent84d602979c12ac3956e75a5e77da9fe0b1b41c4d (diff)
downloademacs-349b1f3187f8a07d1471e4b853fe0692c6029a1f.tar.gz
emacs-349b1f3187f8a07d1471e4b853fe0692c6029a1f.zip
(set-rmail-inbox-list): Error if not in Rmail mode.
-rw-r--r--lisp/mail/rmailmsc.el4
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 @@
30You can specify one file name, or several names separated by commas. 30You can specify one file name, or several names separated by commas.
31If FILE-NAME is empty, remove any existing inbox list." 31If 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))