From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Wehmann Newsgroups: gmane.emacs.help Subject: Re: *real* number of lines a window can display currently Date: 13 Oct 2003 20:03:59 -0500 Organization: Fermi National Accelerator Laboratory Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066094207 5017 80.91.224.253 (14 Oct 2003 01:16:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2003 01:16:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 03:16:45 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9Dnp-0003XB-00 for ; Tue, 14 Oct 2003 03:16:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9Dms-0004oR-Au for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Oct 2003 21:15:46 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!info1.fnal.gov!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: fsui03.fnal.gov Original-X-Trace: info4.fnal.gov 1066093173 1871 131.225.68.24 (14 Oct 2003 00:59:33 GMT) Original-X-Complaints-To: abuse@fnnews.fnal.gov Original-NNTP-Posting-Date: 14 Oct 2003 00:59:33 GMT X-Newsreader: Gnus v5.5/XEmacs 20.4 - "Emerald" Original-Xref: shelby.stanford.edu gnu.emacs.help:117237 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13166 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13166 calc.el could use such a function. If you want more justification for this statement I'd have to refresh my memory about the details of how its stack is displayed & I'd probably refer you to some old posts on the subject (in comp.emacs). To get the stack to display correctly in different situations, I've just empirically altered one of its functions so that it works. My situations are Windows 2000 Pro at work, XEmacs 21.4.8, Windows 98 at home, XEmacs 21.4.8, a Sun platform at work--accessed via Telnet in console mode & with Xemacs 20.4 (earlier with Emacs 19.34), and Mandrake Linux 9.0 at home, with a forgotten version of XEmacs and both in console mode and with X-windows. Stefan Monnier writes: > > `window-displayed-height' is a built-in function > > (window-displayed-height &optional WINDOW) > [...] > > This is what i search for GNU Emacs 21.X... Does something like > > this exist or is there another way to reach my goal? > > I don't think such a thing exists or can be coded in elisp (the > count-screen-lines function fails in several cases other the one you > mention). But coding it in C shouldn't be too difficult: just look > at the number of rows in the glyph matrix [he said, pretending he > known what he's talking about]. > > I'm curious to know what you need it for, > > > Stefan -- Alan Wehmann wehmann@fnal.gov