From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#1806: dired-pop-to-buffer in wrong place Date: Sun, 03 May 2009 21:02:28 +0200 Message-ID: <49FDEA44.3030409@gmx.at> References: <87r63gzcap.fsf@jurta.org> <49671922.4080609@gmx.at> <87zlhubw10.fsf@jurta.org> <496DF4B9.3080805@gmx.at> <496E5F58.7030304@gmx.at> <496F11C0.4080700@gmx.at> <87ocy8fajt.fsf@jurta.org> <4975F4D5.5030000@gmx.at> <87y6tk1j47.fsf@mail.jurta.org> <49F7FE14.8010107@gmx.at> <49F969F9.5010603@gmx.at> <49FAC921.5010201@gmx.at> <878wlfk9lm.fsf@mail.jurta.org> <87y6tfdt99.fsf@mail.jurta.org> <49FD4CD9.8060907@gmx.at> <87ws8yquig.fsf@mail.jurta.org> Reply-To: martin rudalics , 1806@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241377937 21903 80.91.229.12 (3 May 2009 19:12:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 May 2009 19:12:17 +0000 (UTC) Cc: 1806@emacsbugs.donarmstrong.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 03 21:12:08 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 1M0h6c-0005ex-SK for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 May 2009 21:12:07 +0200 Original-Received: from localhost ([127.0.0.1]:56187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0h6b-0002Xi-TC for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 May 2009 15:12:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0h6X-0002Wf-K3 for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 15:12:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0h6T-0002Ur-30 for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 15:12:01 -0400 Original-Received: from [199.232.76.173] (port=33297 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0h6S-0002Uo-TX for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 15:11:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56136) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M0h6S-0001gR-E0 for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 15:11:56 -0400 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 n43JBqbK001791; Sun, 3 May 2009 12:11:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n43JA4rg000593; Sun, 3 May 2009 12:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 03 May 2009 19:10:04 +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.124137745530978 (code B ref 1806); Sun, 03 May 2009 19:10:04 +0000 Original-Received: (at 1806) by emacsbugs.donarmstrong.com; 3 May 2009 19:04:15 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n43J4AeN030969 for <1806@emacsbugs.donarmstrong.com>; Sun, 3 May 2009 12:04:12 -0700 Original-Received: (qmail invoked by alias); 03 May 2009 19:04:03 -0000 Original-Received: from 62-47-62-103.adsl.highway.telekom.at (EHLO [62.47.62.103]) [62.47.62.103] by mail.gmx.net (mp061) with SMTP; 03 May 2009 21:04:03 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19xNcU6HsFxgQm3IzXOmkivkkWo/cuOA1mVKPOTwZ XlYNMbnqR5BHtE User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <87ws8yquig.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.75 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 03 May 2009 15:12:01 -0400 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:27660 Archived-At: > 1. Split window vertically. > > In my case this branch is not selected because my window-height (79) > is less than split-height-threshold (80). On my display this amounts to setting `split-height-threshold' nil. > So display-buffer displays a list of dired files in the existing > side window. > > I see one way to fix this - it is necessary to force > the first branch to be selected. It works when I tried > the following lambda in dired-pop-to-buffer: > > (lambda () > (let ((split-height-threshold 0) > (split-width-threshold nil)) > (with-selected-window old-window (funcall old-fun)))) > > Setting split-height-threshold to 0 forces the vertical splitting. > Setting split-width-threshold to nil prevents the horizontal splitting > when the vertical splitting is not possible (the window is not splittable). You convinced me. Thanks, martin.