(report-emacs-bug-hook): Don't fail completely

if the user edits the Emacs version number in the text.
This commit is contained in:
Richard M. Stallman 2002-04-30 02:23:49 +00:00
parent 365d2503ce
commit 74d51fb840
2 changed files with 5 additions and 2 deletions

View file

@ -240,8 +240,8 @@ and send the mail again using \\[mail-send-and-exit].")))
;; Unclutter
(mail-text)
(let ((p (point)))
(re-search-forward (concat "^In " (emacs-version)))
(delete-region p (match-beginning 0)))
(if (re-search-forward (concat "^In " (emacs-version)) nil t)
(delete-region p (match-beginning 0))))
(re-search-forward "Please describe.+\n.+precise symptoms.+bug:\n*"
(point-max) t)
(replace-match "Symptoms:\n")))