[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 17:37:41 +0200 |
> Date: Sat, 17 Jan 2015 23:08:58 -0500
> From: "Perry E. Metzger" <address@hidden>
> Cc: address@hidden, address@hidden
>
> On Sun, 18 Jan 2015 05:42:49 +0200 Eli Zaretskii <address@hidden> wrote:
> > > > > 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.
>
> There is a variables named default-frame-alist where I can do
> things like setting 'height to an integer like "55" which
> seems to indicate a frame where 55 lines of text may be viewed.
That's just a (not so accurate) way of measuring frame's dimensions in
canonical character units, that's all.
> Perhaps my terminology is screwed up because of "default-frame-alist"
> and the like, but my goal is to calculate what "55" should be rather
> than setting it through trial and error. Regardless, my .emacs
> currently includes
>
> (if window-system
> (add-to-list 'default-frame-alist
> (cons 'height 60)))
>
> and I'd like to compute which "height" is full height for my display
> (again, rather than simply figuring a number out by trial and error).
So your actual goal is to maximize the frame's height.
> > > 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.
>
> I'm unclear on how to do that programatically either.
Didn't you see what Michael wrote:
> From: Michael Heerdegen <address@hidden>
> Date: Sun, 18 Jan 2015 02:01:46 +0100
>
> "Perry E. Metzger" <address@hidden> writes:
>
> > > ‘-fh’
> > > ‘--fullheight’
> > > Specify that the height should be the height of the screen.
>
> > Yes. What I want to do is do it programatically in elisp, not on the
>
> How about (set-frame-parameter nil 'fullscreen 'fullheight)?
Isn't that exactly what you want?
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, (continued)
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Eli Zaretskii, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Eli Zaretskii, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, David Kastrup, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Michael Heerdegen, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Eli Zaretskii, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/17
- Re: [PATCH] Implement functions for measuring fonts and max chars per line,
Eli Zaretskii <=
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/18
- RE: [PATCH] Implement functions for measuring fonts and max chars per line, Drew Adams, 2015/01/18
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/18
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Eli Zaretskii, 2015/01/18
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/19
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Eli Zaretskii, 2015/01/19
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Perry E. Metzger, 2015/01/19
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Michael Heerdegen, 2015/01/18
- Re: [PATCH] Implement functions for measuring fonts and max chars per line, Eli Zaretskii, 2015/01/18