aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1998-08-08 21:48:45 +0000
committerRichard M. Stallman <[email protected]>1998-08-08 21:48:45 +0000
commit349b1f3187f8a07d1471e4b853fe0692c6029a1f (patch)
tree44abccdfc004c8c24f1ab6549afc2238d70bdc03 /lisp
parent84d602979c12ac3956e75a5e77da9fe0b1b41c4d (diff)
(set-rmail-inbox-list): Error if not in Rmail mode.
Diffstat (limited to 'lisp')
-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 98926d8117..ad30278535 100644
--- a/lisp/mail/rmailmsc.el
+++ b/lisp/mail/rmailmsc.el
@@ -30,6 +30,10 @@
You can specify one file name, or several names separated by commas.
If FILE-NAME is empty, remove any existing inbox list."
(interactive "sSet mailbox list to (comma-separated list of filenames): ")
+
+ (unless (eq major-mode 'rmail-mode)
+ (error "set-rmail-inbox-list works only for an Rmail file"))
+
(save-excursion
(let ((names (rmail-parse-file-inboxes))
(standard-output nil))