From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Implement functions for measuring fonts and max chars per line Date: Sat, 17 Jan 2015 17:21:22 -0500 Message-ID: <20150117172122.0ccfba34@jabberwock.cb.piermont.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421533299 30463 80.91.229.3 (17 Jan 2015 22:21:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Jan 2015 22:21:39 +0000 (UTC) Cc: malsburg@posteo.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 17 23:21:38 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 1YCbkQ-0003TP-FO for ged-emacs-devel@m.gmane.org; Sat, 17 Jan 2015 23:21:38 +0100 Original-Received: from localhost ([::1]:60387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCbkP-0007OB-SU for ged-emacs-devel@m.gmane.org; Sat, 17 Jan 2015 17:21:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCbkD-0007O3-SD for emacs-devel@gnu.org; Sat, 17 Jan 2015 17:21:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCbkD-0006vX-4Y for emacs-devel@gnu.org; Sat, 17 Jan 2015 17:21:25 -0500 Original-Received: from hacklheber.piermont.com ([2001:470:30:84:e276:63ff:fe62:3400]:58737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCbkB-0006vH-Pa; Sat, 17 Jan 2015 17:21:23 -0500 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 50BE340A; Sat, 17 Jan 2015 17:21:23 -0500 (EST) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id 123192DEB1B; Sat, 17 Jan 2015 17:21:23 -0500 (EST) In-Reply-To: <83k30lywa4.fsf@gnu.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; x86_64-apple-darwin14.0.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 2001:470:30:84:e276:63ff:fe62:3400 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:181387 Archived-At: 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. 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. > 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, and either way, what I want is to know "how high exactly, in lines, would the frame have to be in order to fill the Y axis of the display fully". I'm perhaps not explaining this well. Perry -- Perry E. Metzger perry@piermont.com