aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-29 02:35:51 +0000
committerRichard M. Stallman1998-03-29 02:35:51 +0000
commitc6d354e76e05aa2b2031f6b560a2e5cac7bd2f9d (patch)
tree6973859d3e618615a467944d7e575ce06324c77c
parent3ae7b0a9c98a92feb6099bfacb06f63609c84044 (diff)
downloademacs-c6d354e76e05aa2b2031f6b560a2e5cac7bd2f9d.tar.gz
emacs-c6d354e76e05aa2b2031f6b560a2e5cac7bd2f9d.zip
(reporter-bug-hook): Fix error message.
(reporter-beautify-list): Break infloop when reaching the end of the buffer without crossing an unbalanced paren. Use scan-sexps instead of forward-sexp for the loop break test. (reporter-submit-bug-report): Only call display-buffer if pop-up-windows is non-nil.
-rw-r--r--lisp/mail/reporter.el10
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'"