Mercurial > emacs
changeset 22955:e3aa855e560c
(set-rmail-inbox-list): Error if not in Rmail mode.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 08 Aug 1998 21:48:45 +0000 |
parents | 928b337d953b |
children | 88334ee405a4 |
files | lisp/mail/rmailmsc.el |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmailmsc.el Sat Aug 08 21:32:57 1998 +0000 +++ b/lisp/mail/rmailmsc.el Sat Aug 08 21:48:45 1998 +0000 @@ -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))