diff options
| author | Richard M. Stallman | 1997-07-04 19:08:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-04 19:08:11 +0000 |
| commit | 19274e0072db24848b464dff45f66d3666b75e95 (patch) | |
| tree | ecfa498df621dc39b7400db38da5a69a52020e58 | |
| parent | 5695bf0c7e5666d60710526c10fe76c64500b3f5 (diff) | |
| download | emacs-19274e0072db24848b464dff45f66d3666b75e95.tar.gz emacs-19274e0072db24848b464dff45f66d3666b75e95.zip | |
(report-emacs-bug): Don't include messages
in *Messages* generated by report-emacs-bug itself.
| -rw-r--r-- | lisp/mail/emacsbug.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 928d8385129..b2497478d02 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el | |||
| @@ -54,7 +54,10 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 54 | ;; the bug subject string is read. | 54 | ;; the bug subject string is read. |
| 55 | (interactive (reverse (list (recent-keys) (read-string "Bug Subject: ")))) | 55 | (interactive (reverse (list (recent-keys) (read-string "Bug Subject: ")))) |
| 56 | (condition-case nil | 56 | (condition-case nil |
| 57 | (let (user-point) | 57 | (let (user-point message-end-point) |
| 58 | (setq message-end-point | ||
| 59 | (with-current-buffer (get-buffer "*Messages*") | ||
| 60 | (point-max-marker))) | ||
| 58 | (compose-mail (if (string-match "\\..*\\..*\\." emacs-version) | 61 | (compose-mail (if (string-match "\\..*\\..*\\." emacs-version) |
| 59 | ;; If there are four numbers in emacs-version, | 62 | ;; If there are four numbers in emacs-version, |
| 60 | ;; this is a pretest version. | 63 | ;; this is a pretest version. |
| @@ -93,17 +96,14 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 93 | (insert "\n")))) | 96 | (insert "\n")))) |
| 94 | (let ((message-buf (get-buffer "*Messages*"))) | 97 | (let ((message-buf (get-buffer "*Messages*"))) |
| 95 | (if message-buf | 98 | (if message-buf |
| 96 | (progn | 99 | (let (beg-pos |
| 100 | (end-pos message-end-point)) | ||
| 101 | (with-current-buffer message-buf | ||
| 102 | (goto-char end-pos) | ||
| 103 | (forward-line -10) | ||
| 104 | (setq beg-pos (point))) | ||
| 97 | (insert "\n\nRecent messages:\n") | 105 | (insert "\n\nRecent messages:\n") |
| 98 | (insert-buffer-substring message-buf | 106 | (insert-buffer-substring message-buf beg-pos end-pos)))) |
| 99 | (save-excursion | ||
| 100 | (set-buffer message-buf) | ||
| 101 | (goto-char (point-max)) | ||
| 102 | (forward-line -10) | ||
| 103 | (point)) | ||
| 104 | (save-excursion | ||
| 105 | (set-buffer message-buf) | ||
| 106 | (point-max)))))) | ||
| 107 | ;; This is so the user has to type something | 107 | ;; This is so the user has to type something |
| 108 | ;; in order to send easily. | 108 | ;; in order to send easily. |
| 109 | (use-local-map (nconc (make-sparse-keymap) (current-local-map))) | 109 | (use-local-map (nconc (make-sparse-keymap) (current-local-map))) |