From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#1806: dired-pop-to-buffer in wrong place Date: Tue, 06 Jan 2009 23:09:16 +0200 Organization: JURTA Message-ID: <87aba4qh1b.fsf@jurta.org> References: <87r63gzcap.fsf@jurta.org> <496395F6.8050409@gmx.at> <87prj0uxq8.fsf@jurta.org> <4963A229.1030609@gmx.at> Reply-To: Juri Linkov , 1806@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 1231278256 27424 80.91.229.12 (6 Jan 2009 21:44:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2009 21:44:16 +0000 (UTC) Cc: 1806@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 06 22:45:26 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 1LKJjp-0001xy-Bt for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 22:45:25 +0100 Original-Received: from localhost ([127.0.0.1]:56309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKJiZ-0004dV-NW for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 16:44:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKJhz-00045F-2I for bug-gnu-emacs@gnu.org; Tue, 06 Jan 2009 16:43:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKJhw-00044Z-Vh for bug-gnu-emacs@gnu.org; Tue, 06 Jan 2009 16:43:30 -0500 Original-Received: from [199.232.76.173] (port=34288 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKJhw-00043c-E0 for bug-gnu-emacs@gnu.org; Tue, 06 Jan 2009 16:43:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49719) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LKJhv-0005PA-K5 for bug-gnu-emacs@gnu.org; Tue, 06 Jan 2009 16:43:28 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n06LhOeY018374; Tue, 6 Jan 2009 13:43:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n06LP7Jg013875; Tue, 6 Jan 2009 13:25:07 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 06 Jan 2009 21:25:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1806 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1806-submit@emacsbugs.donarmstrong.com id=B1806.123127650411201 (code B ref 1806); Tue, 06 Jan 2009 21:25:07 +0000 Original-Received: (at 1806) by emacsbugs.donarmstrong.com; 6 Jan 2009 21:15:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n06LF0QZ011061 for <1806@emacsbugs.donarmstrong.com>; Tue, 6 Jan 2009 13:15:01 -0800 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1LKJGN-0006br-Pr; Tue, 06 Jan 2009 23:14:59 +0200 In-Reply-To: <4963A229.1030609@gmx.at> (martin rudalics's message of "Tue, 06 Jan 2009 19:25:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 8abf2c83e696415c40c55866f9369f42 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 6669 [Jan 06 2009] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 06 Jan 2009 16:43:30 -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:23839 Archived-At: >> There are a few exceptions where obeying non-nil `split-width-threshold' >> is not desirable. One exception is displaying a list of files in Dired, >> and another is displaying the Calendar window. Maybe there are a few >> of others. > > So the only thing we have to decide is whether we want to hardcode this > in `dired-pop-to-buffer' (and for the Calendar window and others) or > make it optional. I can't image a situation when someone will want to display a narrow window on a full-height side window. At least I think currently we should restore the old behavior when these commands displayed a narrow window below the original window instead of a side window. I think a general rule of thumb for finding all such cases should be the following: when there is a call to `fit-window-to-buffer' after calling `pop-to-buffer' then split windows vertically because otherwise `fit-window-to-buffer' makes no sense since it adjusts the window height and can't do this on a full-height horizontally split window. -- Juri Linkov http://www.jurta.org/emacs/