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#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Date: Thu, 03 Nov 2011 21:44:05 +0200 Organization: JURTA Message-ID: <878vnxhtyy.fsf@mail.jurta.org> References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320349669 20650 80.91.229.12 (3 Nov 2011 19:47:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Nov 2011 19:47:49 +0000 (UTC) Cc: 3419@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 03 20:47:44 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RM3GE-0006qU-4g for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Nov 2011 20:47:38 +0100 Original-Received: from localhost ([::1]:50162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM3GD-0006Tt-IX for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Nov 2011 15:47:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM3GA-0006TB-CW for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 15:47:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM3G8-0006AP-UG for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 15:47:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM3G8-0006AE-SV for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 15:47:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RM3IY-0001df-8H for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 15:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Nov 2011 19:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3419 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 3419-submit@debbugs.gnu.org id=B3419.13203497436224 (code B ref 3419); Thu, 03 Nov 2011 19:50:02 +0000 Original-Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 19:49:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM3Ha-0001cC-4G for submit@debbugs.gnu.org; Thu, 03 Nov 2011 15:49:03 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM3HX-0001bk-NB for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 15:49:00 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 1A6AC6E807D; Thu, 3 Nov 2011 12:46:29 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 17805451C58B; Thu, 3 Nov 2011 12:46:27 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 03 Nov 2011 08:26:30 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 03 Nov 2011 15:50:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53474 Archived-At: >> But I meant that *Calculator* and *Calc Trail* windows could be >> displayed with `display-buffer' and an appropriate ACTION argument. >> Then users will be able to customize its default behavior. > > Can't they already do that with display-buffer-alist? `display-buffer-alist' can't undo splitting done outside of the `display-buffer' call. When splitting is done in a display action, user can easily override it. For instance, a new action `display-buffer-pop-up-window-below' I posted in bug#9873 does splitting that users can override. This action can be used in `calendar-generate-window', and when I tested it, I observe finally the ideal behavior of `M-x calendar RET' in many different window configurations with this very small patch: === modified file 'lisp/calendar/calendar.el' --- lisp/calendar/calendar.el 2011-10-30 08:29:56 +0000 +++ lisp/calendar/calendar.el 2011-11-03 19:36:29 +0000 @@ -1331,7 +1331,7 @@ (defun calendar-basic-setup (&optional a ;; ;; Is this a wide frame? If so, split it horizontally. (if (window-splittable-p t) (split-window-right)) - (pop-to-buffer calendar-buffer) + (pop-to-buffer calendar-buffer '(display-buffer-pop-up-window-below)) ;; Has the window already been split vertically? (when (and (not (window-dedicated-p)) (window-full-height-p))