aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-06 04:33:59 +0000
committerRichard M. Stallman1995-04-06 04:33:59 +0000
commit39b71e3947ff147afc9c9bff35da81905c0cd69e (patch)
tree4b7084ce43834e23fd546fd3a4796a5a2ee664c1
parent828ac693651e7d87c247d6e736ffddc88ebf0803 (diff)
downloademacs-39b71e3947ff147afc9c9bff35da81905c0cd69e.tar.gz
emacs-39b71e3947ff147afc9c9bff35da81905c0cd69e.zip
(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.el33
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.")
326 (read-string "(Very) brief summary of problem: "))) 326 (read-string "(Very) brief summary of problem: ")))
327 (mailbuf 327 (mailbuf
328 (progn 328 (progn
329 (call-interactively 329 (or (call-interactively
330 (if (nlistp reporter-mailer) 330 (if (nlistp reporter-mailer)
331 reporter-mailer 331 reporter-mailer
332 (let ((mlist reporter-mailer) 332 (let ((mlist reporter-mailer)
333 (mailer nil)) 333 (mailer nil))
334 (while mlist 334 (while mlist
335 (if (commandp (car mlist)) 335 (if (commandp (car mlist))
336 (setq mailer (car mlist) 336 (setq mailer (car mlist)
337 mlist nil) 337 mlist nil)
338 (setq mlist (cdr mlist)))) 338 (setq mlist (cdr mlist))))
339 (if (not mailer) 339 (if (not mailer)
340 (error 340 (error
341 "variable `%s' does not contain a command for mailing." 341 "Variable `%s' does not contain a command for mailing"
342 "reporter-mailer")) 342 "reporter-mailer"))
343 mailer))) 343 mailer)))
344 (error "Bug report aborted"))
344 (current-buffer)))) 345 (current-buffer))))
345 (require 'sendmail) 346 (require 'sendmail)
346 (pop-to-buffer reporter-eval-buffer) 347 (pop-to-buffer reporter-eval-buffer)
@@ -410,7 +411,7 @@ composed.")
410 (length reporter-initial-text)) 411 (length reporter-initial-text))
411 (string= (buffer-substring after-sep-pos (point)) 412 (string= (buffer-substring after-sep-pos (point))
412 reporter-initial-text)) 413 reporter-initial-text))
413 (error "Empty bug report cannot be sent.")) 414 (error "Empty bug report cannot be sent"))
414 ))) 415 )))
415 416
416 417