From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; Cannot run calculator on TTY Date: Tue, 09 Oct 2007 19:07:17 +0200 Message-ID: <470BB544.8090708@gmx.at> References: <20071001023514.E164D12A4071@localhost> <470090AD.7020701@gmx.at> <18176.62320.27921.579761@gargle.gargle.HOWL> <4701153E.7010408@gmx.at> <18177.46954.59945.891659@gargle.gargle.HOWL> <4701F402.6060403@gmx.at> <18178.18023.858644.85600@gargle.gargle.HOWL> <47028522.60003@gmx.at> <18178.62745.602748.437486@gargle.gargle.HOWL> <470334E7.9020102@gmx.at> <18179.41840.532732.664369@gargle.gargle.HOWL> <18187.33374.913139.901742@gargle.gargle.HOWL> 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: sea.gmane.org 1191949812 17683 80.91.229.12 (9 Oct 2007 17:10:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 17:10:12 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: raman@users.sf.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 09 19:10:11 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfIas-0007BJ-B6 for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2007 19:10:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfIam-0007nb-Ns for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2007 13:10:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfIah-0007lC-By for emacs-devel@gnu.org; Tue, 09 Oct 2007 13:09:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfIaf-0007iR-JX for emacs-devel@gnu.org; Tue, 09 Oct 2007 13:09:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfIaf-0007iG-Dg for emacs-devel@gnu.org; Tue, 09 Oct 2007 13:09:53 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfIaf-0001yf-5T for emacs-devel@gnu.org; Tue, 09 Oct 2007 13:09:53 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfIZi-0000sy-2k for emacs-pretest-bug@gnu.org; Tue, 09 Oct 2007 13:08:54 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IfIab-0001xE-1z for emacs-pretest-bug@gnu.org; Tue, 09 Oct 2007 13:09:52 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IfIaa-0001we-Kf for emacs-pretest-bug@gnu.org; Tue, 09 Oct 2007 13:09:48 -0400 Original-Received: (qmail invoked by alias); 09 Oct 2007 17:09:46 -0000 Original-Received: from N734P010.adsl.highway.telekom.at (EHLO [62.47.35.170]) [62.47.35.170] by mail.gmx.net (mp002) with SMTP; 09 Oct 2007 19:09:46 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19JCxwgAdNJRz1vRDIHghTMG8tS/0Rgj0KW6exjSC y3WTxCd8EC1xXK User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <18187.33374.913139.901742@gargle.gargle.HOWL> X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80471 gmane.emacs.pretest.bugs:20089 Archived-At: > I finally isolated the cause of this problem. Fine. > In short, if a buffer has a header-line set i.e. non-nil value > for header-line-format, > then launching calculator there boms with the error shown > earlier. > > Specifically, compare the following two forms: > ;;; no error: > (let ((header-line-format nil) > (window-min-height 2)) > (split-window-vertically -2)) > > > ;;; Errors: > (let ((header-line-format "Foo") > (window-min-height 2)) > (split-window-vertically -2)) > > Basically when header-line-format is set, the smallest window > you can make needs 3 lines. When you're splitting windows, yes. > > The fix might be to set header-line-format to nil in the > top-level let form in calculator. Alternatively we could do something like (select-window (split-window-vertically ;; If the modeline might interfere with the calculator buffer, ;; use 3 lines instead. (- (if (and (fboundp 'face-attr-construct) (let* ... (plist-get (face-attr-construct 'modeline) :overline))) -3 -2) (if header-line-format 1 0)))) in calculator. The problem is that `calculator' should do all those fancy calculations it does for the mode-line for the header-line too. What do you prefer? Is a header-line of any use for calculator?