all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Klaus Berndl <klaus.berndl@sdm.de>
Subject: Re: *real* number of lines a window can display currently
Date: 14 Oct 2003 08:22:17 +0200	[thread overview]
Message-ID: <u3cdw5ofa.fsf@sdm.de> (raw)
In-Reply-To: jwvvfr12fe0.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca

On Tue, 07 Oct 2003, Stefan Monnier wrote:

> > `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].

Hmm, could i write a feature-request for this? ;-)

>  
>  I'm curious to know what you need it for,

Could be needed by tools like ECB which uses tree-buffers. ECB currently does
a very smart recentering of a tree-buffer, so always a maximum of useful
informations are visible, e.g. as many subnodes as possible if a node is
expanded. ECB can currently use `count-screen-lines' for this and this works
perfect except for some very seldom (or almost pathological ;-) cases....

But nevertheless such a function would help to write the code even better
working perfectly for all cases.

Klaus

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Carl-Wery-Str. 42, 81739 Muenchen, Germany
Tel +49 89 63812-392, Fax -220

      parent reply	other threads:[~2003-10-14  6:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-07 16:07 *real* number of lines a window can display currently Klaus Berndl
2003-10-07 16:19 ` Stefan Monnier
2003-10-14  1:03   ` Alan Wehmann
2003-10-14  6:22   ` Klaus Berndl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u3cdw5ofa.fsf@sdm.de \
    --to=klaus.berndl@sdm.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.