diff options
| author | Glenn Morris | 2009-12-13 23:43:17 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-12-13 23:43:17 +0000 |
| commit | 2f1b7dc4a2650779f8e4801cc63adae4347fe4d2 (patch) | |
| tree | b41cb5bd0f887687c9dec530e765e4378efa70c6 | |
| parent | 029dda9c93b536a9677c22e841f74ab8ca97bf87 (diff) | |
| download | emacs-2f1b7dc4a2650779f8e4801cc63adae4347fe4d2.tar.gz emacs-2f1b7dc4a2650779f8e4801cc63adae4347fe4d2.zip | |
(report-emacs-bug): In message-mode, sort manually before storing
original report text. (Bug#5178)
Remove superfluous save-excursion.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/emacsbug.el | 20 |
2 files changed, 17 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa6cd869ebc..27c14b00aae 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-12-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/emacsbug.el (report-emacs-bug): In message-mode, sort manually | ||
| 4 | before storing original report text. (Bug#5178) | ||
| 5 | Remove superfluous save-excursion. | ||
| 6 | |||
| 1 | 2009-12-12 Michael Albinus <michael.albinus@gmx.de> | 7 | 2009-12-12 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 8 | ||
| 3 | * net/dbus.el (dbus-property-handler): Filter lambda forms out | 9 | * net/dbus.el (dbus-property-handler): Filter lambda forms out |
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 2ecca76b5f9..9fafab565b5 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el | |||
| @@ -106,11 +106,14 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 106 | (with-current-buffer (get-buffer-create "*Messages*") | 106 | (with-current-buffer (get-buffer-create "*Messages*") |
| 107 | (point-max-marker))) | 107 | (point-max-marker))) |
| 108 | (compose-mail reporting-address topic) | 108 | (compose-mail reporting-address topic) |
| 109 | ;; The rest of this does not execute | 109 | ;; The rest of this does not execute if the user was asked to |
| 110 | ;; if the user was asked to confirm and said no. | 110 | ;; confirm and said no. |
| 111 | ;; Message-mode sorts the headers before sending. We sort now so | ||
| 112 | ;; that report-emacs-bug-orig-text remains valid. (Bug#5178) | ||
| 113 | (if (eq major-mode 'message-mode) | ||
| 114 | (message-sort-headers)) | ||
| 111 | (rfc822-goto-eoh) | 115 | (rfc822-goto-eoh) |
| 112 | (forward-line 1) | 116 | (forward-line 1) |
| 113 | |||
| 114 | (let ((signature (buffer-substring (point) (point-max)))) | 117 | (let ((signature (buffer-substring (point) (point-max)))) |
| 115 | (delete-region (point) (point-max)) | 118 | (delete-region (point) (point-max)) |
| 116 | (insert signature) | 119 | (insert signature) |
| @@ -262,12 +265,11 @@ usually do not have translators to read other languages for them.\n\n") | |||
| 262 | ;; Make it less likely people will send empty messages. | 265 | ;; Make it less likely people will send empty messages. |
| 263 | (if report-emacs-bug-send-hook | 266 | (if report-emacs-bug-send-hook |
| 264 | (add-hook report-emacs-bug-send-hook 'report-emacs-bug-hook nil t)) | 267 | (add-hook report-emacs-bug-send-hook 'report-emacs-bug-hook nil t)) |
| 265 | (save-excursion | 268 | (goto-char (point-max)) |
| 266 | (goto-char (point-max)) | 269 | (skip-chars-backward " \t\n") |
| 267 | (skip-chars-backward " \t\n") | 270 | (make-local-variable 'report-emacs-bug-orig-text) |
| 268 | (make-local-variable 'report-emacs-bug-orig-text) | 271 | (setq report-emacs-bug-orig-text |
| 269 | (setq report-emacs-bug-orig-text | 272 | (buffer-substring-no-properties (point-min) (point))) |
| 270 | (buffer-substring-no-properties (point-min) (point)))) | ||
| 271 | (goto-char user-point))) | 273 | (goto-char user-point))) |
| 272 | 274 | ||
| 273 | (defun report-emacs-bug-info () | 275 | (defun report-emacs-bug-info () |