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#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Date: Mon, 24 Oct 2011 18:15:57 +0200 Message-ID: <4EA58F3D.8030703@gmx.at> References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319473007 14470 80.91.229.12 (24 Oct 2011 16:16:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2011 16:16:47 +0000 (UTC) Cc: 3419@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 24 18:16:42 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 1RINCY-0006eH-Sj for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 18:16:39 +0200 Original-Received: from localhost ([::1]:37884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RINCY-0002Sq-42 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 12:16:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RINCR-0002NZ-W3 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 12:16:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RINCQ-0003bZ-RB for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 12:16:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RINCQ-0003bV-I8 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 12:16:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RINDu-0003NC-4r for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 12:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 16:18: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.131947306512941 (code B ref 3419); Mon, 24 Oct 2011 16:18:02 +0000 Original-Received: (at 3419) by debbugs.gnu.org; 24 Oct 2011 16:17:45 +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 1RINDa-0003Me-3q for submit@debbugs.gnu.org; Mon, 24 Oct 2011 12:17:43 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RINDU-0003MI-L3 for 3419@debbugs.gnu.org; Mon, 24 Oct 2011 12:17:39 -0400 Original-Received: (qmail invoked by alias); 24 Oct 2011 16:15:57 -0000 Original-Received: from 62-47-41-231.adsl.highway.telekom.at (EHLO [62.47.41.231]) [62.47.41.231] by mail.gmx.net (mp065) with SMTP; 24 Oct 2011 18:15:57 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18MIAJFADoMSJA6phR+hgMRWZHFosAzDCXXKP3e4K ZJajKspgQj4fyY User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 24 Oct 2011 12:18: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:53073 Archived-At: >> Calc could make its windows fixed-size but that's hardly reasonable with >> the current handling of fixed-size windows. Any option affecting only >> the initial size of Calc windows won't help in the present case either. >> We could give Calc window parameters, say ideal-height and ideal-width, >> and try to use these when exiting `temp-buffer-resize-mode' but writing >> the corresponding code won't be trivial. >> >> martin > > Is there a satisfactory solution in light of the new windowing features? It depends on what you want. You can resove the example in your original posting > 1. Emacs -Q > 2. (temp-buffer-resize-mode t) > 3. M-x calc > 4. h h by doing (setq temp-buffer-max-height (lambda (buffer) (max (window-total-size) (/ (- (frame-height) 2) 2)))) in your .emacs (personally I think that this should be the default value). If you refer to Jay's remark > I've never used temp-buffer-resize-mode before, but if it's supposed to > make a window a better size for displaying a temporary buffer, I'm > surprised it doesn't change anything back when the buffer is killed or > hidden. that is you want to get the *scratch* window back in its original size, then typing "q" in the help window should do what you want. martin