From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T. V. Raman" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; Cannot run calculator on TTY Date: Wed, 10 Oct 2007 21:21:32 -0700 Message-ID: <18189.42188.229008.184425@gargle.gargle.HOWL> 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> <470BB544.8090708@gmx.at> Reply-To: raman@users.sf.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1192076513 23252 80.91.229.12 (11 Oct 2007 04:21:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 04:21:53 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, raman@users.sf.net To: rudalics@gmx.at Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 06:21:51 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 1IfpYV-0001SL-Id for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 06:21:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfpYP-0000YH-Js for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 00:21:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfpYM-0000YC-73 for emacs-devel@gnu.org; Thu, 11 Oct 2007 00:21:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfpYJ-0000Xy-Pk for emacs-devel@gnu.org; Thu, 11 Oct 2007 00:21:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfpYJ-0000Xv-JM for emacs-devel@gnu.org; Thu, 11 Oct 2007 00:21:39 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfpYJ-0008MA-CV for emacs-devel@gnu.org; Thu, 11 Oct 2007 00:21:39 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfpXK-00016q-Ge for emacs-pretest-bug@gnu.org; Thu, 11 Oct 2007 00:20:38 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IfpYF-0008LW-6q for emacs-pretest-bug@gnu.org; Thu, 11 Oct 2007 00:21:38 -0400 Original-Received: from rwcrmhc13.comcast.net ([204.127.192.83]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfpYE-0008Ku-OX for emacs-pretest-bug@gnu.org; Thu, 11 Oct 2007 00:21:35 -0400 Original-Received: from localhost (c-71-202-191-236.hsd1.ca.comcast.net[71.202.191.236]) by comcast.net (rwcrmhc13) with ESMTP id <20071011042132m1300og257e>; Thu, 11 Oct 2007 04:21:32 +0000 Original-Received: by localhost (Postfix, from userid 1000) id 5777B12A4071; Wed, 10 Oct 2007 21:21:32 -0700 (PDT) In-Reply-To: <470BB544.8090708@gmx.at> X-Mailer: VM alpha-478 under Emacs 23.0.50.29 (i686-pc-linux-gnu) x-attribution: tvr X-Detected-Kernel: NetCache Data OnTap 5.x 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:80575 gmane.emacs.pretest.bugs:20098 Archived-At: For something like the calculator that wants to claim as small a window as possible, I would guess that the header line is not too useful, especially since it has a modeline. >>>>> "martin" == martin rudalics writes: >> I finally isolated the cause of this problem. martin> Fine. martin> >> 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. martin> martin> When you're splitting windows, yes. martin> >> > The fix might be to set header-line-format to nil in the >> top-level let form in calculator. martin> martin> Alternatively we could do something like martin> martin> (select-window (split-window-vertically ;; If the martin> modeline might interfere with the calculator buffer, martin> ;; use 3 lines instead. (- (if (and (fboundp martin> 'face-attr-construct) (let* ... (plist-get martin> (face-attr-construct 'modeline) :overline))) -3 -2) martin> (if header-line-format 1 0)))) martin> martin> in calculator. The problem is that `calculator' martin> should do all those fancy calculations it does for martin> the mode-line for the header-line too. What do you martin> prefer? Is a header-line of any use for calculator? martin> -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs