summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-04-30 17:11:38 +0000
committerRichard M. Stallman <rms@gnu.org>2002-04-30 17:11:38 +0000
commit461f30cb27385e8f1f9b32502f803c6d19ae05da (patch)
tree2096fb308d4f3a8fb613a0a9d1ff581f8b32b563
parent87810ca9dfafe65ea5051df5569a379a8bda4647 (diff)
downloademacs-461f30cb27385e8f1f9b32502f803c6d19ae05da.tar.gz
(report-emacs-bug-hook): Use replace-match only if search was successful.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/emacsbug.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2cc914c0235..66ca3262ebd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -8,6 +8,11 @@
* emacs-lisp/advice.el (documentation): Add ad-define-subr-args call.
+2002-04-29 Markus Rost <rost@math.ohio-state.edu>
+
+ * mail/emacsbug.el (report-emacs-bug-hook): Use
+ replace-match only if search was successful.
+
2002-04-29 Richard M. Stallman <rms@gnu.org>
* net/zone-mode.el (zone-mode): Add write-file-hooks hook locally.
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 9b1d3cd4553..e444fbfae3e 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -242,9 +242,9 @@ and send the mail again using \\[mail-send-and-exit].")))
(let ((p (point)))
(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")))
+ (if (re-search-forward "Please describe.+\n.+precise symptoms.+bug:\n*"
+ (point-max) t)
+ (replace-match "Symptoms:\n"))))
(provide 'emacsbug)