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: Sat, 30 May 2009 11:51:45 +0200 Message-ID: <4A2101B1.8080106@gmx.at> References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> Reply-To: martin rudalics , 3419@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 1243678710 4071 80.91.229.12 (30 May 2009 10:18:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 May 2009 10:18:30 +0000 (UTC) To: jay.p.belanger@gmail.com, 3419@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 30 12:18:26 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 1MALdy-0006HP-3k for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 May 2009 12:18:26 +0200 Original-Received: from localhost ([127.0.0.1]:57393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MALdx-0007uJ-8D for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 May 2009 06:18:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MALd1-0007Yy-Nu for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 06:17:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MALcv-0007Vy-3U for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 06:17:25 -0400 Original-Received: from [199.232.76.173] (port=55996 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MALcu-0007VX-QS for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 06:17:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33210) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MALcu-0004tf-5I for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 06:17:20 -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 n4UAHHWL006559; Sat, 30 May 2009 03:17:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4UA03D8003328; Sat, 30 May 2009 03:00:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 30 May 2009 10:00:03 +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.12436771212519 (code B ref 3419); Sat, 30 May 2009 10:00:03 +0000 Original-Received: (at 3419) by emacsbugs.donarmstrong.com; 30 May 2009 09:52:01 +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.14.3/8.14.3/Debian-5) with SMTP id n4U9ptLi002513 for <3419@emacsbugs.donarmstrong.com>; Sat, 30 May 2009 02:51:57 -0700 Original-Received: (qmail invoked by alias); 30 May 2009 09:51:49 -0000 Original-Received: from 62-47-45-167.adsl.highway.telekom.at (EHLO [62.47.45.167]) [62.47.45.167] by mail.gmx.net (mp035) with SMTP; 30 May 2009 11:51:49 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/82hNZ2Ej8osI+gtQNeKhDLtvrY+fFTfAcT51qoh 6D8j6WnR0b8FYm User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <873aanxrnd.fsf@gmail.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 30 May 2009 06:17:25 -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:28315 Archived-At: >> 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