Subject: Re: bug#28992: 27.0.50; compose-mail-other-{window,frame} reuse selected window with gnus-user-agent

From: "Basil L. Contovounesios" <[email-masked]>
Date: Wed, 11 Apr 2018 12:26:50 +0100

>From ce705761a29643ef43d5257a6b2744f9b6bb2279 Mon Sep 17 00:00:00 2001
From: "Basil L. Contovounesios" <[email-masked]>
Date: Wed, 25 Oct 2017 02:15:56 +0100
Subject: [PATCH] Heed switch-function argument in gnus-user-agent

* lisp/gnus/gnus-msg.el (gnus-msg-mail): Heed switch-action argument
when falling back to message-user-agent because Gnus is not
running. (bug#28992)
---
 lisp/gnus/gnus-msg.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 04661ec948..d5610bff73 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -535,7 +535,7 @@ gnus-msg-mail
       (progn
 	(message "Gnus not running; using plain Message mode")
 	(message-mail to subject other-headers continue
-		      nil yank-action send-actions return-action))
+                      switch-action yank-action send-actions return-action))
     (let ((buf (current-buffer))
 	  ;; Don't use posting styles corresponding to any existing group.
 	  (group-name gnus-newsgroup-name)
-- 
2.16.3

I reattach the patch, updated with the bug ticket number.

Thanks,

-- 
Basil