From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: rameiko87@posteo.net Newsgroups: gmane.emacs.bugs Subject: bug#69738: Followup Date: Sun, 14 Apr 2024 16:14:20 +0000 Message-ID: References: <4a0215b2e7bb416cf352e867183f745a@posteo.net> <1ed9ea789788d6a6450c86920199b6c6@posteo.net> <8634ronurh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8858"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69738@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 14 18:15:23 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rw2Vn-00025j-7M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Apr 2024 18:15:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw2VM-0001MK-4f; Sun, 14 Apr 2024 12:14:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw2VJ-0001M7-Qe for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:14:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rw2VJ-0004qY-IA for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:14:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rw2VU-00077R-Hm for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:15:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: rameiko87@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2024 16:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69738 X-GNU-PR-Package: emacs Original-Received: via spool by 69738-submit@debbugs.gnu.org id=B69738.171311128027149 (code B ref 69738); Sun, 14 Apr 2024 16:15:04 +0000 Original-Received: (at 69738) by debbugs.gnu.org; 14 Apr 2024 16:14:40 +0000 Original-Received: from localhost ([127.0.0.1]:36006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw2V6-00073j-0t for submit@debbugs.gnu.org; Sun, 14 Apr 2024 12:14:40 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:44889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw2V4-00072U-3o for 69738@debbugs.gnu.org; Sun, 14 Apr 2024 12:14:39 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E0846240027 for <69738@debbugs.gnu.org>; Sun, 14 Apr 2024 18:14:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713111260; bh=FRDGxMhFDGCw6m/tT6pr/SX/HdQKZ+K0dSS1cMuPA5k=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=X7zwsTNHDL1HRZSUGiIMaLw4exoeYnxOtxFF8oQLHXRAvgoxKy8MH/K+JUv9+m+Px 1BxEsqdbSfHd+MJw0YKcjm5APnIsy7ERpOgEmXEjV5DozucXfpV6LjY+KsrCJaj8b3 YifcnAMAvdwSsMEIPZZEkyL1xQH4lsR3fbQ/vA12bQw4nM+ypN9onLIIha/BBb/WX6 2Me/zg0+SVYyz+F34bzorG7wSXGoaesWjKAMYtyaxda63ZAdj1ytdt+HEGK+kEtdfa e0+w6eBlxZF/FWBGyTsmDdk3jr4G+5YoVusubUN4y514hj0N5LhANE+vP7t/mXrVya 8o3fZ9fotlOXg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VHb3J3GHdz6tsf; Sun, 14 Apr 2024 18:14:20 +0200 (CEST) In-Reply-To: <8634ronurh.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283287 Archived-At: Why not just remove the condition of (display-multi-frame-p)? It's neater, and I can't see any drawbacks compared to your patch (but the fact that your code insists on switching to other before deleting the frame makes me think there must be some reason...?) > Does the patch below solve your use cases? > > diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el > index d422383..5ab67b2 100644 > --- a/lisp/mail/rmail.el > +++ b/lisp/mail/rmail.el > @@ -3755,9 +3755,12 @@ rmail-mail-return > ;; probably wants to delete it now. > ((display-multi-frame-p) > (delete-frame)) > - ;; The previous frame is where normally they have the Rmail buffer > - ;; displayed. > - (t (other-frame -1)))) > + (t > + ;; The previous frame is where normally they have the Rmail buffer > + ;; displayed. > + (let ((fr (selected-frame))) > + (other-frame -1) > + (delete-frame fr))))) > > (defun rmail-mail () > "Send mail in another window.