From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Date: Sat, 30 May 2009 11:58:19 +0100 Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> Reply-To: Leo , 3419@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 1243682260 12248 80.91.229.12 (30 May 2009 11:17:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 May 2009 11:17:40 +0000 (UTC) Cc: 3419@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 30 13:17:36 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 1MAMZA-00054q-QM for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 May 2009 13:17:33 +0200 Original-Received: from localhost ([127.0.0.1]:39678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAMZ9-000229-Fx for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 May 2009 07:17:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAMZ3-00021m-T6 for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 07:17:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAMYy-00021C-6e for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 07:17:24 -0400 Original-Received: from [199.232.76.173] (port=57101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAMYx-000219-W3 for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 07:17:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59664) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MAMYx-0007cS-Ca for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 07:17:19 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4UBHH0Q016524; Sat, 30 May 2009 04:17:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4UB57Ip012866; Sat, 30 May 2009 04:05:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 30 May 2009 11:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3419 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3419-submit@emacsbugs.donarmstrong.com id=B3419.124368110911713 (code B ref 3419); Sat, 30 May 2009 11:05:06 +0000 Original-Received: (at 3419) by emacsbugs.donarmstrong.com; 30 May 2009 10:58:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ppsw-1.csi.cam.ac.uk (ppsw-1.csi.cam.ac.uk [131.111.8.131]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4UAwMlH011708 for <3419@emacsbugs.donarmstrong.com>; Sat, 30 May 2009 03:58:25 -0700 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:42217) by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MAMGZ-0003rX-5m (Exim 4.70) (return-path ); Sat, 30 May 2009 11:58:19 +0100 In-Reply-To: <4A2101B1.8080106@gmx.at> (martin rudalics's message of "Sat, 30 May 2009 11:51:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 30 May 2009 07:17:24 -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:28318 Archived-At: On 2009-05-30 10:51 +0100, martin rudalics wrote: >>> But I'm not sure whether this is a bug in calc or temp-buffer-resize-mode. >> >> Or neither, and simply unexpected behavior. >> 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. > > Changing window sizes when `temp-buffer-resize-mode' exits is tricky. > That is, we could restore the window configuration that existed when > `temp-buffer-resize-mode' was started but that has the often unwanted > side-effect that other windows created (deleted) in the meantime get > deleted (resurrected). > >> In this case, I'm not sure it's Calc's job to keep track of why >> it changed its window size. Perhaps an option "Always start Calc with >> the initial window height" might be helpful. > > 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 I wonder if it may be possible to distinguish program or human changing the size. In most cases, when a program (in this case: temp-buffer-resize-mode) changes the size, it is hardly ideal to keep that change. But I agree that for example, if a user drags the calc window to be bigger, it is desirable to keep that change permanent. At the moment I have to have (setq calc-window-height 7) at my finger tip to get rid of the size change sometimes accidentally happens. Leo