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, 19 May 2009 03:18:45 +0300 Organization: JURTA Message-ID: <87k54eexkd.fsf@mail.jurta.org> References: <87r63gzcap.fsf@jurta.org> <87aba3qb5g.fsf@jurta.org> <4965AE6B.6070802@gmx.at> <87fxjtmo4z.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> <49FFE515.4020608@gmx.at> <87vdnzpks0.fsf@mail.jurta.org> <4A11184F.4030606@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 1242694374 21496 80.91.229.12 (19 May 2009 00:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2009 00:52:54 +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 May 19 02:52:47 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 1M6DZW-0007Nq-Mc for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 02:52:47 +0200 Original-Received: from localhost ([127.0.0.1]:48148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6DZW-0001mq-9j for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2009 20:52:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6DYy-0001ay-DI for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 20:52:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6DYq-0001ZF-H1 for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 20:52:09 -0400 Original-Received: from [199.232.76.173] (port=51896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6DYp-0001Yu-Sw for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 20:52:04 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41479) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6DYn-0006cq-HH for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 20:52:02 -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 n4J0puMr025876; Mon, 18 May 2009 17:51:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4J0o6qn024822; Mon, 18 May 2009 17:50:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 19 May 2009 00:50:06 +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.124269386923318 (code B ref 1806); Tue, 19 May 2009 00:50:06 +0000 Original-Received: (at 1806) by emacsbugs.donarmstrong.com; 19 May 2009 00:44:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4J0iOnC023295 for <1806@emacsbugs.donarmstrong.com>; Mon, 18 May 2009 17:44:25 -0700 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1M6DRP-0000dd-4G; Tue, 19 May 2009 03:44:23 +0300 In-Reply-To: <4A11184F.4030606@gmx.at> (martin rudalics's message of "Mon, 18 May 2009 10:11:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (x86_64-pc-linux-gnu) X-Scanner-Signature: 367251710ae6d8069d2a2bb66b314d03 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 18 May 2009 20:52:09 -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:27999 Archived-At: >> Could you also fix Proced and Calendar? > > I suppose you mean the call in `calendar-basic-setup' here. In this > case you probably want to split the largest or LRU window vertically > even if your customized settings would imply a horizontal split. But > you don't insist on splitting the selected window. Right? It seems a fix is not as simple. The function `calendar-generate-window' comes into play and doesn't adjust the window to fit the displayed calendar in horizontally split windows. The condition (not (window-full-width-p)) prevents calling `fit-window-to-buffer': (if (or (one-window-p t) (not (window-full-width-p))) ;; Don't mess with the window size, but ensure that the first ;; line is fully visible. (set-window-vscroll nil 0) ;; Adjust the window to exactly fit the displayed calendar. (fit-window-to-buffer nil nil calendar-minimum-window-height)) Removing (not (window-full-width-p)) fixes this, but I don't know if this change has some side effect. -- Juri Linkov http://www.jurta.org/emacs/