diff options
| author | Erik Naggum | 1996-11-13 16:33:28 +0000 |
|---|---|---|
| committer | Erik Naggum | 1996-11-13 16:33:28 +0000 |
| commit | 47a1e7a2c4c6f026ec2f914e67dd33e4b02540a1 (patch) | |
| tree | 8daf84b7131b93c4c3ba600c0902a7817e976f07 | |
| parent | 3282a6068950fa1c1dac64ba000fd6136dd386ba (diff) | |
| download | emacs-47a1e7a2c4c6f026ec2f914e67dd33e4b02540a1.tar.gz emacs-47a1e7a2c4c6f026ec2f914e67dd33e4b02540a1.zip | |
(report-emacs-bug): New argument recent-keys read before bug subject
to capture more relevant recent input.
| -rw-r--r-- | lisp/mail/emacsbug.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 2f2a991419b..3e7cae708bc 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el | |||
| @@ -47,10 +47,11 @@ | |||
| 47 | "The automatically-created initial text of bug report.") | 47 | "The automatically-created initial text of bug report.") |
| 48 | 48 | ||
| 49 | ;;;###autoload | 49 | ;;;###autoload |
| 50 | (defun report-emacs-bug (topic) | 50 | (defun report-emacs-bug (recent-keys topic) |
| 51 | "Report a bug in GNU Emacs. | 51 | "Report a bug in GNU Emacs. |
| 52 | Prompts for bug subject. Leaves you in a mail buffer." | 52 | Prompts for bug subject. Leaves you in a mail buffer." |
| 53 | (interactive "sBug Subject: ") | 53 | (interactive (list (recent-keys) |
| 54 | (read-string "Bug Subject: "))) | ||
| 54 | (if (mail nil | 55 | (if (mail nil |
| 55 | (if (string-match "\\..*\\..*\\." emacs-version) | 56 | (if (string-match "\\..*\\..*\\." emacs-version) |
| 56 | ;; If there are four numbers in emacs-version, | 57 | ;; If there are four numbers in emacs-version, |
| @@ -81,7 +82,7 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 81 | (listp key)) | 82 | (listp key)) |
| 82 | (single-key-description key) | 83 | (single-key-description key) |
| 83 | (prin1-to-string key nil))) | 84 | (prin1-to-string key nil))) |
| 84 | (recent-keys) | 85 | recent-keys |
| 85 | " ")) | 86 | " ")) |
| 86 | (save-restriction | 87 | (save-restriction |
| 87 | (narrow-to-region before-keys (point)) | 88 | (narrow-to-region before-keys (point)) |