From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Implement functions for measuring fonts and max chars per line Date: Sun, 18 Jan 2015 05:42:49 +0200 Message-ID: <83iog4zrd2.fsf@gnu.org> References: <87k31j3g03.fsf@posteo.de> <87d27b2ugp.fsf@posteo.de> <87zjaeo7eg.fsf@posteo.de> <874mrp46ns.fsf@posteo.de> <20150117153839.0de5fa7b@jabberwock.cb.piermont.com> <83k30lywa4.fsf@gnu.org> <20150117172122.0ccfba34@jabberwock.cb.piermont.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1421552661 5184 80.91.229.3 (18 Jan 2015 03:44:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2015 03:44:21 +0000 (UTC) Cc: malsburg@posteo.de, emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 18 04:44:21 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YCgmh-0003Q3-8O for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2015 04:44:19 +0100 Original-Received: from localhost ([::1]:60820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCgmg-0004s3-Ea for ged-emacs-devel@m.gmane.org; Sat, 17 Jan 2015 22:44:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCgmc-0004rm-LK for emacs-devel@gnu.org; Sat, 17 Jan 2015 22:44:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCgmZ-0000Bi-A7 for emacs-devel@gnu.org; Sat, 17 Jan 2015 22:44:14 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:44170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCgmZ-0000BS-27 for emacs-devel@gnu.org; Sat, 17 Jan 2015 22:44:11 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NIC00H00SMQWN00@mtaout27.012.net.il> for emacs-devel@gnu.org; Sun, 18 Jan 2015 05:35:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIC00CR0SNJLA40@mtaout27.012.net.il>; Sun, 18 Jan 2015 05:35:43 +0200 (IST) In-reply-to: <20150117172122.0ccfba34@jabberwock.cb.piermont.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181395 Archived-At: > Date: Sat, 17 Jan 2015 17:21:22 -0500 > From: "Perry E. Metzger" > Cc: malsburg@posteo.de, emacs-devel@gnu.org > > On Sat, 17 Jan 2015 22:41:55 +0200 Eli Zaretskii wrote: > > > Date: Sat, 17 Jan 2015 15:38:39 -0500 > > > From: "Perry E. Metzger" > > > Cc: emacs-devel@gnu.org > > > > > > 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. Perhaps.