summaryrefslogtreecommitdiff
path: root/lisp/mail/reporter.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-04-30 06:24:03 +0000
committerRichard M. Stallman <rms@gnu.org>1998-04-30 06:24:03 +0000
commitfc48f3818e66d4094347c56b43141ef0f1a6480d (patch)
treeb732f65cc70d14a11c2adc256fe9cc83fb6eaf37 /lisp/mail/reporter.el
parentc7ed80bcf72b02526518916150204a097dcdab8c (diff)
downloademacs-fc48f3818e66d4094347c56b43141ef0f1a6480d.tar.gz
(reporter-calculate-separator): Function deleted.
(reporter-submit-bug-report): Major rewrite.
Diffstat (limited to 'lisp/mail/reporter.el')
-rw-r--r--lisp/mail/reporter.el61
1 files changed, 19 insertions, 42 deletions
diff --git a/lisp/mail/reporter.el b/lisp/mail/reporter.el
index ce245d76b85..748237dea05 100644
--- a/lisp/mail/reporter.el
+++ b/lisp/mail/reporter.el
@@ -286,25 +286,6 @@ composed.")
))
-(defun reporter-calculate-separator ()
- ;; returns the string regexp matching the mail separator
- (save-excursion
- (re-search-forward
- (concat
- "^\\(" ;beginning of line
- (mapconcat
- 'identity
- (list "[\t ]*" ;simple SMTP form
- "-+" ;mh-e form
- (regexp-quote
- mail-header-separator)) ;sendmail.el form
- "\\|") ;or them together
- "\\)$") ;end of line
- nil
- 'move) ;search for and move
- (buffer-substring (match-beginning 0) (match-end 0))))
-
-
(defun reporter-compose-outgoing ()
;; compose the outgoing mail buffer, and return the selected
;; paradigm, with the current-buffer tacked onto the beginning of
@@ -364,29 +345,25 @@ composed.")
;; back somewhere
(and pop-up-windows (display-buffer reporter-eval-buffer)))
(goto-char (point-min))
- ;; different mailers use different separators, some may not even
- ;; use mail-header-separator, but sendmail.el stuff must have this
- ;; variable bound.
- (let ((mail-header-separator (reporter-calculate-separator)))
- (mail-position-on-field "to")
- (insert address)
- ;; insert problem summary if available
- (if (and reporter-prompt-for-summary-p problem pkgname)
- (progn
- (mail-position-on-field "subject")
- (insert pkgname "; " problem)))
- ;; move point to the body of the message
- (mail-text)
- (forward-line 1)
- (setq after-sep-pos (point))
- (and salutation (insert "\n" salutation "\n\n"))
- (unwind-protect
- (progn
- (setq final-resting-place (point-marker))
- (insert "\n\n")
- (reporter-dump-state pkgname varlist pre-hooks post-hooks)
- (goto-char final-resting-place))
- (set-marker final-resting-place nil)))
+ (mail-position-on-field "to")
+ (insert address)
+ ;; insert problem summary if available
+ (if (and reporter-prompt-for-summary-p problem pkgname)
+ (progn
+ (mail-position-on-field "subject")
+ (insert pkgname "; " problem)))
+ ;; move point to the body of the message
+ (mail-text)
+ (forward-line 1)
+ (setq after-sep-pos (point))
+ (and salutation (insert "\n" salutation "\n\n"))
+ (unwind-protect
+ (progn
+ (setq final-resting-place (point-marker))
+ (insert "\n\n")
+ (reporter-dump-state pkgname varlist pre-hooks post-hooks)
+ (goto-char final-resting-place))
+ (set-marker final-resting-place nil))
;; save initial text and set up the `no-empty-submission' hook.
;; This only works for mailers that support a pre-send hook, and