aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Kaludercic2022-04-14 12:13:27 +0200
committerPhilip Kaludercic2022-04-14 18:39:35 +0200
commitbd67ffa1790b620b2beebdc32080d70b76e71029 (patch)
treef8559d074b452f3ac650a19561add03318d08dca
parent17b639aabb457ca6ffbcb6fdb73c03571fb0e360 (diff)
downloademacs-bd67ffa1790b620b2beebdc32080d70b76e71029.tar.gz
emacs-bd67ffa1790b620b2beebdc32080d70b76e71029.zip
Have submit-emacs-patch prompt for patch file before subject
* emacsbug.el (submit-emacs-patch): Prompt for patch file and use that to guess the subject.
-rw-r--r--lisp/mail/emacsbug.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 1bda609d105..8cb4a00009f 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -488,7 +488,14 @@ and send the mail again%s."
488Interactively, you will be prompted for SUBJECT and a patch FILE 488Interactively, you will be prompted for SUBJECT and a patch FILE
489name (which will be attached to the mail). You will end up in a 489name (which will be attached to the mail). You will end up in a
490Message buffer where you can explain more about the patch." 490Message buffer where you can explain more about the patch."
491 (interactive "sThis patch is about: \nfPatch file name: ") 491 (interactive
492 (let* ((file (read-file-name "Patch file name: "))
493 (guess (with-temp-buffer
494 (insert-file-contents file)
495 (mail-fetch-field "Subject"))))
496 (list (read-string (format-prompt "This patch is about" guess)
497 nil nil guess)
498 file)))
492 (switch-to-buffer "*Patch Help*") 499 (switch-to-buffer "*Patch Help*")
493 (let ((inhibit-read-only t)) 500 (let ((inhibit-read-only t))
494 (erase-buffer) 501 (erase-buffer)