From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Rmail: toggle between summary and message buffers Date: Sat, 22 Jun 2019 11:18:26 +0300 Message-ID: <83v9wynict.fsf@gnu.org> References: <87pnn9iujv.fsf@robertthorpeconsulting.com> <83k1dfpje6.fsf@gnu.org> <837e9fp184.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48487"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 22 10:18:47 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hebEU-000CPt-HM for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Jun 2019 10:18:46 +0200 Original-Received: from localhost ([::1]:39366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hebES-0006vf-PE for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Jun 2019 04:18:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46039) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hebEJ-0006vY-1d for help-gnu-emacs@gnu.org; Sat, 22 Jun 2019 04:18:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hebEI-00031N-SJ for help-gnu-emacs@gnu.org; Sat, 22 Jun 2019 04:18:34 -0400 Original-Received: from [176.228.60.248] (port=3236 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hebEI-0004Pj-CP for help-gnu-emacs@gnu.org; Sat, 22 Jun 2019 04:18:34 -0400 In-reply-to: (message from Xavier Maillard on Sat, 22 Jun 2019 10:04:16 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121010 Archived-At: > Date: Sat, 22 Jun 2019 10:04:16 +0200 > From: Xavier Maillard > Cc: help-gnu-emacs@gnu.org > > > > Don't use "C-c C-c". Use "C-c C-s" instead, and have a separate frame > > > for the *mail* buffer where you compose and send email. Then Emacs > > > will not mess up your windows in the Rmail frame. > > > > Btw, a nice side effect of this arrangement is that the next 'm' or > > 'r' will reuse the frame showing the *mail* buffer, so just let that > > frame hang around, to be used for composing and sending email > > throughout the entire session, with no need to switch to any buffer in > > your other frames. > > I will test this but here it does not seem to select the right frame. I think you also need to set rmail-mail-new-frame to a non-nil value. With that, the first time you reply to an email from Rmail, it will create a new frame for the outgoing email, if one doesn't already exist. You will also need to set message-generate-new-buffers to the value 'standard', so that the name of the buffer where you compose email is fixed (and thus it could be reused for subsequent email messages). Alternatively, do this: (setq mail-user-agent 'sendmail-user-agent) which will ensure the outgoing email buffer is always named "*mail*". Sorry, forgot to tell about all that (this is setup I've done many years ago).