From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Date: Tue, 02 Jun 2009 14:20:45 -0500 Message-ID: <87ab4qmohe.fsf@vh213601.truman.edu> References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> Reply-To: jay.p.belanger@gmail.com, 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 1243972917 14544 80.91.229.12 (2 Jun 2009 20:01:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2009 20:01:57 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 22:01:54 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 1MBaBD-0002ro-CN for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2009 22:01:51 +0200 Original-Received: from localhost ([127.0.0.1]:52464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBaBC-0006Rh-UX for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2009 16:01:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBa6y-0001ec-55 for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 15:57:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBa6t-0001Yf-AA for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 15:57:27 -0400 Original-Received: from [199.232.76.173] (port=60786 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBa6t-0001YR-47 for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 15:57:23 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56045) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBa6s-0003tY-B5 for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 15:57:22 -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 n52JvIMW027930; Tue, 2 Jun 2009 12:57:18 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n52Jt6Xu027402; Tue, 2 Jun 2009 12:55:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jay Belanger Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Jun 2009 19:55: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 submit@emacsbugs.donarmstrong.com id=B.124397207426664 (code B ref -1); Tue, 02 Jun 2009 19:55:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Jun 2009 19:47:54 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n52Jlnn6026659 for ; Tue, 2 Jun 2009 12:47:51 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBZxd-0007Vw-8n for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 15:47:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBZxX-0007NM-Uh for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 15:47:48 -0400 Original-Received: from [199.232.76.173] (port=43803 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBZxX-0007N5-NT for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 15:47:43 -0400 Original-Received: from mail.truman.edu ([150.243.160.94]:41500 helo=uranium.truman.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBZWo-0002jL-EP; Tue, 02 Jun 2009 15:20:06 -0400 Original-Received: from vh213601.truman.edu (vh213601.truman.edu [150.243.162.59]) by uranium.truman.edu (Postfix) with ESMTP id 7BB50128291; Tue, 2 Jun 2009 14:19:49 -0500 (CDT) In-Reply-To: (Leo's message of "Tue, 02 Jun 2009 16:57:12 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 02 Jun 2009 15:57:27 -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:28444 gmane.emacs.pretest.bugs:24549 Archived-At: Leo writes: > I have started looking for a workaround to save me doing (setq > calc-window-height 7) all the time. I am thinking of using > calc-end-hook, however it is located right in the middle of calc-quit. > So I cannot use the following: > > (add-hook 'calc-end-hook > (lambda () > (setq calc-window-height 7))) > > But it seems to me that moving the hook to the very end of calc-quit is > better than putting it in the middle. Do you recall any reason why this > is not the case? Thank you. It is mentioned in the documentation that the hook is called early, so I guess it was done on purpose. I don't know why, though. A workaround for now might be to define `my-calc' or `my-calc-dispatch' with (defun my-calc () (interactive) (setq calc-window-heigth) (calc....))