diff options
| -rw-r--r-- | lisp/mail/reporter.el | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/mail/reporter.el b/lisp/mail/reporter.el index 59cea3ae4c6..ce245d76b85 100644 --- a/lisp/mail/reporter.el +++ b/lisp/mail/reporter.el | |||
| @@ -305,12 +305,6 @@ composed.") | |||
| 305 | (buffer-substring (match-beginning 0) (match-end 0)))) | 305 | (buffer-substring (match-beginning 0) (match-end 0)))) |
| 306 | 306 | ||
| 307 | 307 | ||
| 308 | ;; Serves as an interface to `mail' (sendmail.el), but when the user | ||
| 309 | ;; answers "no" to discarding an unsent message, it gives an error. | ||
| 310 | (defun reporter-mail (&rest args) | ||
| 311 | (or (apply 'mail args) | ||
| 312 | (error "Bug report aborted"))) | ||
| 313 | |||
| 314 | (defun reporter-compose-outgoing () | 308 | (defun reporter-compose-outgoing () |
| 315 | ;; compose the outgoing mail buffer, and return the selected | 309 | ;; compose the outgoing mail buffer, and return the selected |
| 316 | ;; paradigm, with the current-buffer tacked onto the beginning of | 310 | ;; paradigm, with the current-buffer tacked onto the beginning of |
| @@ -319,11 +313,11 @@ composed.") | |||
| 319 | (compose (get mail-user-agent 'composefunc))) | 313 | (compose (get mail-user-agent 'composefunc))) |
| 320 | ;; Sanity check. If this fails then we'll try to use the SENDMAIL | 314 | ;; Sanity check. If this fails then we'll try to use the SENDMAIL |
| 321 | ;; protocol, otherwise we must signal an error. | 315 | ;; protocol, otherwise we must signal an error. |
| 322 | (if (not (and compose (fboundp compose))) | 316 | (if (not (and compose (functionp compose))) |
| 323 | (progn | 317 | (progn |
| 324 | (setq agent 'sendmail-user-agent | 318 | (setq agent 'sendmail-user-agent |
| 325 | compose (get agent 'composefunc)) | 319 | compose (get agent 'composefunc)) |
| 326 | (if (not (and compose (fboundp compose))) | 320 | (if (not (and compose (functionp compose))) |
| 327 | (error "Could not find a valid `mail-user-agent'") | 321 | (error "Could not find a valid `mail-user-agent'") |
| 328 | (ding) | 322 | (ding) |
| 329 | (message "`%s' is an invalid `mail-user-agent'; using `sendmail-user-agent'" | 323 | (message "`%s' is an invalid `mail-user-agent'; using `sendmail-user-agent'" |