comparison lisp/mail/emacsbug.el @ 21869:0f8ca1599a5a

(report-emacs-bug): Use rfc822-goto-eoh.
author Richard M. Stallman <rms@gnu.org>
date Thu, 30 Apr 1998 06:32:07 +0000
parents e69604162c2b
children 42b308d86213
comparison
equal deleted inserted replaced
21868:14f3c9f7e356 21869:0f8ca1599a5a
82 report-emacs-bug-pretest-address 82 report-emacs-bug-pretest-address
83 report-emacs-bug-address) 83 report-emacs-bug-address)
84 topic) 84 topic)
85 ;; The rest of this does not execute 85 ;; The rest of this does not execute
86 ;; if the user was asked to confirm and said no. 86 ;; if the user was asked to confirm and said no.
87 (goto-char (point-min)) 87 (rfc822-goto-eoh)
88 (re-search-forward (concat "^" (regexp-quote mail-header-separator) "\n")) 88 (forward-line 1)
89
90 (let ((signature (buffer-substring (point) (point-max))))
91 ;; Discourage users to write non-English text.
92 (set-buffer-multibyte nil)
93 (delete-region (point) (point-max))
94 (insert signature))
89 (unless report-emacs-bug-no-explanations 95 (unless report-emacs-bug-no-explanations
90 ;; Insert warnings for novice users. 96 ;; Insert warnings for novice users.
91 (insert "This bug report will be sent to the Free Software Foundation,\n") 97 (insert "This bug report will be sent to the Free Software Foundation,\n")
92 (let ((pos (point))) 98 (let ((pos (point)))
93 (insert " not to your local site managers!!") 99 (insert " not to your local site managers!!")
152 and what information to supply so that the bug can be fixed. 158 and what information to supply so that the bug can be fixed.
153 Type SPC to scroll through this section and its subsections."))) 159 Type SPC to scroll through this section and its subsections.")))
154 ;; Make it less likely people will send empty messages. 160 ;; Make it less likely people will send empty messages.
155 (make-local-variable 'mail-send-hook) 161 (make-local-variable 'mail-send-hook)
156 (add-hook 'mail-send-hook 'report-emacs-bug-hook) 162 (add-hook 'mail-send-hook 'report-emacs-bug-hook)
157 ;; Discourage users to write non-English text.
158 (set-buffer-multibyte nil)
159 (save-excursion 163 (save-excursion
160 (goto-char (point-max)) 164 (goto-char (point-max))
161 (skip-chars-backward " \t\n") 165 (skip-chars-backward " \t\n")
162 (make-local-variable 'report-emacs-bug-orig-text) 166 (make-local-variable 'report-emacs-bug-orig-text)
163 (setq report-emacs-bug-orig-text (buffer-substring (point-min) (point)))) 167 (setq report-emacs-bug-orig-text (buffer-substring (point-min) (point))))