changeset 45015:76f3260fb45e

(report-emacs-bug-hook): Don't fail completely if the user edits the Emacs version number in the text.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Apr 2002 02:23:42 +0000
parents a590e8ab89d0
children 051cbf896fc1
files lisp/mail/emacsbug.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/emacsbug.el	Tue Apr 30 02:08:56 2002 +0000
+++ b/lisp/mail/emacsbug.el	Tue Apr 30 02:23:42 2002 +0000
@@ -240,8 +240,8 @@
     ;; 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")))