From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2282: Bug#2282: rmail-summary splits frame into three parts Date: Thu, 12 Nov 2009 10:42:27 -0500 Message-ID: References: <4gmy2vxh8z.fsf@fencepost.gnu.org> <19skckxl28.fsf@fencepost.gnu.org> <4AFBC517.40605@gmx.at> Reply-To: Stefan Monnier , 2282@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258042175 3004 80.91.229.12 (12 Nov 2009 16:09:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2009 16:09:35 +0000 (UTC) Cc: 2282@emacsbugs.donarmstrong.com, ams@gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 12 17:09:27 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8cEd-0000C7-Tt for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Nov 2009 17:09:24 +0100 Original-Received: from localhost ([127.0.0.1]:57130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8cEd-0003AZ-C3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Nov 2009 11:09:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8cCr-0000xs-PB for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 11:07:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8cCk-0000nl-W5 for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 11:07:31 -0500 Original-Received: from [199.232.76.173] (port=54011 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8cCk-0000mH-0s for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 11:07:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49633) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8cCh-0003Sk-VS for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 11:07:24 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nACG7IIi021916; Thu, 12 Nov 2009 08:07:19 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nACFo7ST019849; Thu, 12 Nov 2009 07:50:07 -0800 Resent-Date: Thu, 12 Nov 2009 07:50:07 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , Rmail Maintainers 2Resent-Date: Thu, 12 Nov 2009 15:50:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2282 X-Emacs-PR-Package: emacs,rmail X-Emacs-PR-Keywords: Original-Received: via spool by 2282-submit@emacsbugs.donarmstrong.com id=B2282.125804055519318 (code B ref 2282); Thu, 12 Nov 2009 15:50:07 +0000 Original-Received: (at 2282) by emacsbugs.donarmstrong.com; 12 Nov 2009 15:42:35 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nACFgX2C019315 for <2282@emacsbugs.donarmstrong.com>; Thu, 12 Nov 2009 07:42:34 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvIEAJe7+0pMCpsp/2dsb2JhbACBTtwQhDwEiSg X-IronPort-AV: E=Sophos;i="4.44,728,1249272000"; d="scan'208";a="49224593" Original-Received: from 76-10-155-41.dsl.teksavvy.com (HELO ceviche.home) ([76.10.155.41]) by ironport2-out.pppoe.ca with ESMTP; 12 Nov 2009 10:42:27 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id B1DA270072; Thu, 12 Nov 2009 10:42:27 -0500 (EST) In-Reply-To: <4AFBC517.40605@gmx.at> (martin rudalics's message of "Thu, 12 Nov 2009 09:19:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 12 Nov 2009 11:07:31 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32570 Archived-At: >> I'm tempted to just replace all pop-to-buffers in rmail*.el with >> >> (defun rmail-pop-to-buffer (buffer-or-name &optional other-window norecord) >> (let (split-width-threshold) >> (pop-to-buffer buffer-or-name other-window norecord))) > I suppose the following code in `rmail-new-summary' is responsible for > the behavior described earlier. > (if (and (one-window-p) > pop-up-windows > (not pop-up-frames)) > ;; If there is just one window, put the summary on the top. > (progn > (split-window (selected-window) rmail-summary-window-size) > (select-window (next-window (frame-first-window))) > (pop-to-buffer rmail-summary-buffer) > ;; If pop-to-buffer did not use that window, delete that > ;; window. (This can happen if it uses another frame.) > (if (not (eq rmail-summary-buffer > (window-buffer (frame-first-window)))) > (delete-other-windows))) > (pop-to-buffer rmail-summary-buffer)) > What is that code supposed to do what a simple `pop-to-buffer' cannot > accomplish? If it's to display the summary on top of the frame, then > splitting horizontally obviously won't make sense here. Hmm... maybe I misunderstood and the problem may indeed not be in pop-to-buffer, in the end. Stefan