diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-04-06 04:33:59 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-04-06 04:33:59 +0000 |
commit | f19a27233ae958513361e4c5eb9cc7cd91f8505d (patch) | |
tree | 6672fcb8b022bd7f67056c1ad5f786a7cad96fc8 | |
parent | 14d116e3489951c0d2428b495dc94e27ee4ef0c2 (diff) | |
download | emacs-f19a27233ae958513361e4c5eb9cc7cd91f8505d.tar.gz |
(reporter-submit-bug-report): Give up if mailer
command returns nil. Fix error message syntax.
(reporter-bug-hook): Fix error message syntax.
-rw-r--r-- | lisp/mail/reporter.el | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/lisp/mail/reporter.el b/lisp/mail/reporter.el index 9e1481a571b..5bda6c5d49a 100644 --- a/lisp/mail/reporter.el +++ b/lisp/mail/reporter.el @@ -326,21 +326,22 @@ composed.") (read-string "(Very) brief summary of problem: "))) (mailbuf (progn - (call-interactively - (if (nlistp reporter-mailer) - reporter-mailer - (let ((mlist reporter-mailer) - (mailer nil)) - (while mlist - (if (commandp (car mlist)) - (setq mailer (car mlist) - mlist nil) - (setq mlist (cdr mlist)))) - (if (not mailer) - (error - "variable `%s' does not contain a command for mailing." - "reporter-mailer")) - mailer))) + (or (call-interactively + (if (nlistp reporter-mailer) + reporter-mailer + (let ((mlist reporter-mailer) + (mailer nil)) + (while mlist + (if (commandp (car mlist)) + (setq mailer (car mlist) + mlist nil) + (setq mlist (cdr mlist)))) + (if (not mailer) + (error + "Variable `%s' does not contain a command for mailing" + "reporter-mailer")) + mailer))) + (error "Bug report aborted")) (current-buffer)))) (require 'sendmail) (pop-to-buffer reporter-eval-buffer) @@ -410,7 +411,7 @@ composed.") (length reporter-initial-text)) (string= (buffer-substring after-sep-pos (point)) reporter-initial-text)) - (error "Empty bug report cannot be sent.")) + (error "Empty bug report cannot be sent")) ))) |