diff options
| author | Karl Heuer | 1995-06-09 01:24:47 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-06-09 01:24:47 +0000 |
| commit | 1628adc6cd168ccd6570da6ca34123d7bd07ce33 (patch) | |
| tree | 5ae133e0cb4b2cfb715df45c0ded8b8bb5345808 | |
| parent | ce6af52bd2210cac04b321040a05f286c5ec81b8 (diff) | |
| download | emacs-1628adc6cd168ccd6570da6ca34123d7bd07ce33.tar.gz emacs-1628adc6cd168ccd6570da6ca34123d7bd07ce33.zip | |
(report-emacs-bug-info): New command.
(report-emacs-bug): Put it in local map. Display a message
in another window.
| -rw-r--r-- | lisp/mail/emacsbug.el | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 8772b526f92..f9299788b42 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el | |||
| @@ -52,7 +52,19 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 52 | (re-search-forward (concat "^" (regexp-quote mail-header-separator) "\n")) | 52 | (re-search-forward (concat "^" (regexp-quote mail-header-separator) "\n")) |
| 53 | (insert "In " (emacs-version) "\nconfigured using " | 53 | (insert "In " (emacs-version) "\nconfigured using " |
| 54 | system-configuration-options "\n\n") | 54 | system-configuration-options "\n\n") |
| 55 | (message (substitute-command-keys "Type \\[mail-send-and-exit] to send bug report.")) | 55 | ;; This is so the user has to type something |
| 56 | ;; in order to send easily. | ||
| 57 | (use-local-map (nconc (make-sparse-keymap) (current-local-map))) | ||
| 58 | (define-key (current-local-map) "\C-c\C-i" 'report-emacs-bug-info) | ||
| 59 | (with-output-to-temp-buffer "*Bug Help*" | ||
| 60 | (princ (substitute-command-keys | ||
| 61 | "Type \\[mail-send-and-exit] to send the bug report.\n")) | ||
| 62 | (terpri) | ||
| 63 | (princ (substitute-command-keys | ||
| 64 | "Type \\[report-emacs-bug-info] to visit in Info the Emacs Manual section | ||
| 65 | about when and how to write a bug report, | ||
| 66 | and what information to supply so that the bug can be fixed. | ||
| 67 | Type SPC to scroll through this section and its subsections."))) | ||
| 56 | ;; Make it less likely people will send empty messages. | 68 | ;; Make it less likely people will send empty messages. |
| 57 | (make-local-variable 'mail-send-hook) | 69 | (make-local-variable 'mail-send-hook) |
| 58 | (add-hook 'mail-send-hook 'report-emacs-bug-hook) | 70 | (add-hook 'mail-send-hook 'report-emacs-bug-hook) |
| @@ -62,6 +74,14 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 62 | (make-local-variable 'report-emacs-bug-orig-text) | 74 | (make-local-variable 'report-emacs-bug-orig-text) |
| 63 | (setq report-emacs-bug-orig-text (buffer-substring (point-min) (point))))) | 75 | (setq report-emacs-bug-orig-text (buffer-substring (point-min) (point))))) |
| 64 | 76 | ||
| 77 | (defun report-emacs-bug-info () | ||
| 78 | "Go to the Info node on reporting Emacs bugs." | ||
| 79 | (interactive) | ||
| 80 | (info) | ||
| 81 | (Info-directory) | ||
| 82 | (Info-menu "emacs") | ||
| 83 | (Info-goto-node "Bugs")) | ||
| 84 | |||
| 65 | (defun report-emacs-bug-hook () | 85 | (defun report-emacs-bug-hook () |
| 66 | (save-excursion | 86 | (save-excursion |
| 67 | (goto-char (point-max)) | 87 | (goto-char (point-max)) |