[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65387: [PATCH] New user option 'submit-emacs-patch-display-help'
From: |
Juri Linkov |
Subject: |
bug#65387: [PATCH] New user option 'submit-emacs-patch-display-help' |
Date: |
Sun, 20 Aug 2023 19:37:18 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> I don't know if it justifies a new option, as you say, and I don't mind
>> keeping a modified `submit-emacs-patch` in my config.
>
> Let's see what others think about this new command.
>
> Would people please voice their opinions about adding it?
If 'submit-emacs-patch' used 'pop-to-buffer-same-window'
instead of 'switch-to-buffer' like in the patch below,
then using such simple config would be possible:
(add-to-list 'display-buffer-alist
'("\\*Patch Help\\*"
display-buffer-no-window
(allow-no-window . t)))
PS: This patch doesn't preclude adding an option.
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index bebaad720db..409ef7165fe 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -509,7 +509,7 @@ submit-emacs-patch
(list (read-string (format-prompt "This patch is about" guess)
nil nil guess)
file)))
- (switch-to-buffer "*Patch Help*")
+ (pop-to-buffer-same-window "*Patch Help*")
(let ((inhibit-read-only t))
(erase-buffer)
(insert "Thank you for considering submitting a patch to the Emacs
project.\n\n"