[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Implement functions for measuring fonts and max chars per li

From: Eli Zaretskii
Subject: Re: [PATCH] Implement functions for measuring fonts and max chars per line
Date: Sun, 18 Jan 2015 05:42:49 +0200

> Date: Sat, 17 Jan 2015 17:21:22 -0500
> From: "Perry E. Metzger" <address@hidden>
> Cc: address@hidden, address@hidden
> On Sat, 17 Jan 2015 22:41:55 +0200 Eli Zaretskii <address@hidden> wrote:
> > > Date: Sat, 17 Jan 2015 15:38:39 -0500
> > > From: "Perry E. Metzger" <address@hidden>
> > > Cc: address@hidden
> > > 
> > > This all brings to mind: is there a good way now to determine what
> > > the maximum number of lines in a frame would be in a given font on
> > > the user's display?
> > 
> > You mean window, not frame, right?
> No, frame.

It's meaningless to ask this question about frames, since frames don't
display text, at least not in GUI sessions.

> I'd like to be able to set my default frame height to "full height"
> for the display (filling the display from top to bottom) -- right
> now I do guesswork to do this, and my .emacs breaks when I switch to
> a new display.

Then you need to maximize the frame vertically.

> > See window-screen-lines, which I think does what you want.
> I believe that says how many lines are in an emacs window, not in the
> frame if it contains a single window

When the frame has a single window, this says exactly what the frame
can display.

> I'm perhaps not explaining this well.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]