(report-emacs-bug-hook): Don't fail completely
if the user edits the Emacs version number in the text.
This commit is contained in:
parent
365d2503ce
commit
74d51fb840
2 changed files with 5 additions and 2 deletions
|
@ -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")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue