diff options
| author | Richard M. Stallman | 2002-04-30 17:11:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-04-30 17:11:38 +0000 |
| commit | 461f30cb27385e8f1f9b32502f803c6d19ae05da (patch) | |
| tree | 2096fb308d4f3a8fb613a0a9d1ff581f8b32b563 | |
| parent | 87810ca9dfafe65ea5051df5569a379a8bda4647 (diff) | |
| download | emacs-461f30cb27385e8f1f9b32502f803c6d19ae05da.tar.gz emacs-461f30cb27385e8f1f9b32502f803c6d19ae05da.zip | |
(report-emacs-bug-hook): Use replace-match only if search was successful.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/emacsbug.el | 6 |
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 @@ | |||
| 8 | 8 | ||
| 9 | * emacs-lisp/advice.el (documentation): Add ad-define-subr-args call. | 9 | * emacs-lisp/advice.el (documentation): Add ad-define-subr-args call. |
| 10 | 10 | ||
| 11 | 2002-04-29 Markus Rost <rost@math.ohio-state.edu> | ||
| 12 | |||
| 13 | * mail/emacsbug.el (report-emacs-bug-hook): Use | ||
| 14 | replace-match only if search was successful. | ||
| 15 | |||
| 11 | 2002-04-29 Richard M. Stallman <rms@gnu.org> | 16 | 2002-04-29 Richard M. Stallman <rms@gnu.org> |
| 12 | 17 | ||
| 13 | * net/zone-mode.el (zone-mode): Add write-file-hooks hook locally. | 18 | * 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]."))) | |||
| 242 | (let ((p (point))) | 242 | (let ((p (point))) |
| 243 | (if (re-search-forward (concat "^In " (emacs-version)) nil t) | 243 | (if (re-search-forward (concat "^In " (emacs-version)) nil t) |
| 244 | (delete-region p (match-beginning 0)))) | 244 | (delete-region p (match-beginning 0)))) |
| 245 | (re-search-forward "Please describe.+\n.+precise symptoms.+bug:\n*" | 245 | (if (re-search-forward "Please describe.+\n.+precise symptoms.+bug:\n*" |
| 246 | (point-max) t) | 246 | (point-max) t) |
| 247 | (replace-match "Symptoms:\n"))) | 247 | (replace-match "Symptoms:\n")))) |
| 248 | 248 | ||
| 249 | (provide 'emacsbug) | 249 | (provide 'emacsbug) |
| 250 | 250 | ||