emacs-devel
[Top][All Lists]
Advanced

[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: Perry E. Metzger
Subject: Re: [PATCH] Implement functions for measuring fonts and max chars per line
Date: Sun, 18 Jan 2015 17:26:33 -0500

On Sun, 18 Jan 2015 17:37:41 +0200 Eli Zaretskii <address@hidden> wrote:
> > 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.

No, my goal is that all new emacs frames, including the first one,
start out at a maximum height -- but my broader goal is to know what
that height is programatically. I do things at times like setting up
an elisp function to achieve a particular window layout, for example,
and knowing what the maximum height is comes in use there as well.

> > How about (set-frame-parameter nil 'fullscreen 'fullheight)?
>
> Isn't that exactly what you want?

Not really. That will maximize the current frame only at the moment it
is executed, and it doesn't tell me in advance what the height (in
lines) is going to end up being.

What I want is to know (by calculation) what the maximum height, in
lines, happens to be so I can shove that in for 'height in
default-frame-alist. (There are other uses for such information of
course, see above.)

Perry
-- 
Perry E. Metzger                address@hidden



reply via email to

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