From: Eli Zaretskii <eliz@gnu.org>
To: "Perry E. Metzger" <perry@piermont.com>
Cc: malsburg@posteo.de, emacs-devel@gnu.org
Subject: Re: [PATCH] Implement functions for measuring fonts and max chars per line
Date: Sun, 18 Jan 2015 17:37:41 +0200 [thread overview]
Message-ID: <83h9voyu9m.fsf@gnu.org> (raw)
In-Reply-To: <20150117230858.361b5307@jabberwock.cb.piermont.com>
> Date: Sat, 17 Jan 2015 23:08:58 -0500
> From: "Perry E. Metzger" <perry@piermont.com>
> Cc: malsburg@posteo.de, emacs-devel@gnu.org
>
> On Sun, 18 Jan 2015 05:42:49 +0200 Eli Zaretskii <eliz@gnu.org> 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 <michael_heerdegen@web.de>
> Date: Sun, 18 Jan 2015 02:01:46 +0100
>
> "Perry E. Metzger" <perry@piermont.com> 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?
next prev parent reply other threads:[~2015-01-18 15:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 14:39 [PATCH] Implement functions for measuring fonts and max chars per line Titus von der Malsburg
2014-12-22 22:25 ` Titus von der Malsburg
2014-12-23 12:52 ` Titus von der Malsburg
2015-01-17 18:13 ` Titus von der Malsburg
2015-01-17 18:43 ` Eli Zaretskii
2015-01-17 20:38 ` Perry E. Metzger
2015-01-17 20:41 ` Eli Zaretskii
2015-01-17 22:21 ` Perry E. Metzger
2015-01-17 22:24 ` David Kastrup
2015-01-18 0:08 ` Perry E. Metzger
2015-01-18 0:11 ` Perry E. Metzger
2015-01-18 1:01 ` Michael Heerdegen
2015-01-18 3:42 ` Eli Zaretskii
2015-01-18 4:08 ` Perry E. Metzger
2015-01-18 15:37 ` Eli Zaretskii [this message]
2015-01-18 22:26 ` Perry E. Metzger
2015-01-19 0:38 ` Drew Adams
2015-01-19 2:56 ` Perry E. Metzger
2015-01-19 3:41 ` Eli Zaretskii
2015-01-19 13:31 ` Perry E. Metzger
2015-01-19 16:21 ` Eli Zaretskii
2015-01-19 21:49 ` Perry E. Metzger
2015-01-19 2:01 ` Michael Heerdegen
2015-01-19 3:37 ` Eli Zaretskii
2015-03-21 10:33 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h9voyu9m.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=malsburg@posteo.de \
--cc=perry@piermont.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).