aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Naggum1996-11-14 09:17:55 +0000
committerErik Naggum1996-11-14 09:17:55 +0000
commit01753e63c562021a0f21f8a80b3c7537e99f1d40 (patch)
tree79614d9ed09ee86002ae9d5cb1a0510f2cae200b
parentd4d94b763d973d3e3b528f68a7cdc08fa504e42c (diff)
downloademacs-01753e63c562021a0f21f8a80b3c7537e99f1d40.tar.gz
emacs-01753e63c562021a0f21f8a80b3c7537e99f1d40.zip
(report-emacs-bug): Reorder arguments.
-rw-r--r--lisp/mail/emacsbug.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 3e7cae708bc..617df8968d1 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -47,11 +47,12 @@
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 (recent-keys topic) 50(defun report-emacs-bug (topic &optional recent-keys)
51 "Report a bug in GNU Emacs. 51 "Report a bug in GNU Emacs.
52Prompts for bug subject. Leaves you in a mail buffer." 52Prompts for bug subject. Leaves you in a mail buffer."
53 (interactive (list (recent-keys) 53 ;; This strange form ensures that (recent-keys) is the value before
54 (read-string "Bug Subject: "))) 54 ;; the bug subject string is read.
55 (interactive (reverse (list (recent-keys) (read-string "Bug Subject: "))))
55 (if (mail nil 56 (if (mail nil
56 (if (string-match "\\..*\\..*\\." emacs-version) 57 (if (string-match "\\..*\\..*\\." emacs-version)
57 ;; If there are four numbers in emacs-version, 58 ;; If there are four numbers in emacs-version,
@@ -82,7 +83,7 @@ Prompts for bug subject. Leaves you in a mail buffer."
82 (listp key)) 83 (listp key))
83 (single-key-description key) 84 (single-key-description key)
84 (prin1-to-string key nil))) 85 (prin1-to-string key nil)))
85 recent-keys 86 (or recent-keys (recent-keys))
86 " ")) 87 " "))
87 (save-restriction 88 (save-restriction
88 (narrow-to-region before-keys (point)) 89 (narrow-to-region before-keys (point))