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 17:55:55 +0000 Message-ID: <06b44e7b07fcb2d06c7a7f56e4934014@posteo.net> References: <4a0215b2e7bb416cf352e867183f745a@posteo.net> <1ed9ea789788d6a6450c86920199b6c6@posteo.net> <8634ronurh.fsf@gnu.org> <86bk6bnbzl.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="24727"; 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 19:57:08 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 1rw46G-0006Fs-T3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Apr 2024 19:57:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw462-0002Ld-Os; Sun, 14 Apr 2024 13:56:54 -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 1rw461-0002LL-8w for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 13:56: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 1rw460-0003UD-H1 for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 13:56:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rw46B-0000Cs-KQ for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 13:57:03 -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 17:57:03 +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.1713117380331 (code B ref 69738); Sun, 14 Apr 2024 17:57:03 +0000 Original-Received: (at 69738) by debbugs.gnu.org; 14 Apr 2024 17:56:20 +0000 Original-Received: from localhost ([127.0.0.1]:36119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw45T-00004y-2h for submit@debbugs.gnu.org; Sun, 14 Apr 2024 13:56:19 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:52251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw45N-0008UV-BO for 69738@debbugs.gnu.org; Sun, 14 Apr 2024 13:56:17 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 18574240103 for <69738@debbugs.gnu.org>; Sun, 14 Apr 2024 19:55:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713117356; bh=oYx4svH3wB/tM8T750Sz4pckEnBmUYAXrlvtK13NjbQ=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=M87H4mXiJ6zmgt4mq1dLR3L8O47cWg0B0LEb9LBAjer0jSh6HhDMbClcv1BRxA/71 2QKSugPEU9qIbK8dJb5/XArhsuEztlO95ZWqPQ/V/c1mfH6xa3io+jg91AjIMqrCVn dm/2TCXhZ9Nag0jUzrqHOwXYz94/NlXoszh2PC6c5k3+yM3mLHqnvlAHUxw0M5SP5C JBZu25vKbAUKA6kSWeZpWzrZWhWv7B/0/pXDYFJbHekdg8bKBlhDE5H+Z84fQc+bCy sDNxeADqy6DPFvWvmDQtKmfwOhtKWCd8zLPVJBewWzguSiTOn/k8Dx0WIyvu6ZaAte XakcFjsm7hoGg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VHdJW3wY6z6tvk; Sun, 14 Apr 2024 19:55:55 +0200 (CEST) In-Reply-To: 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:283307 Archived-At: Actually the neat solution is probably to treat frames as a ring, so that C-x 5 o would go back to the previous frame. Is there any reason why frames were not conceived as a ring, but ``rigidly''? > Dear Eli, > > To answer your question: your patch doesn't work, and the reason is > that I have Rmail on frame #6 and Elfeed on frame #3. Rmail-reply > creates frame #42, from which both C-x 5 0 and C-x 5 o land on frame > #27. C-u - C-x 5 o goes from #42 to #3, and also from #27 to #3 after > #42 was deleted. > > As for the current code for GUI, I can't understand why it _works_ > since the same exact problem should arise. I never used the GUI but I > would expect that it actually doesn't work for GUI either, for the > same reasons above. I think the design of Emacs makes the order of > frames rigid, so every new frame can be arbitrarily far from the > original Rmail frame. > > One way is to remember the frame where Rmail was and revert back to > that one after deleting the reply frame. > > On 14.04.2024 18:30, Eli Zaretskii wrote: >>> 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...?) >> >> Yes, I have my reasons: I'd like to make sure we switch to the exact >> frame the user wants -- the one showing the Rmail buffer. Unlike on >> GUI displays, only a single frame is shown on a TTY, so if we >> accidentally switch to the wrong frame, the user will not see the >> frame they need, something that does happen on GUI terminals. >> >> Does the patch as I sent it work for you? If not, please tell what >> doesn't work.