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: Sun, 18 Jan 2015 17:26:33 -0500 Message-ID: <20150118172633.61609906@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> <20150117172122.0ccfba34@jabberwock.cb.piermont.com> <83iog4zrd2.fsf@gnu.org> <20150117230858.361b5307@jabberwock.cb.piermont.com> <83h9voyu9m.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 1421620024 12960 80.91.229.3 (18 Jan 2015 22:27:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2015 22:27:04 +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 Sun Jan 18 23:27:03 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 1YCyJ8-0005F6-8r for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2015 23:26:58 +0100 Original-Received: from localhost ([::1]:34903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCyJ7-00015B-BC for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2015 17:26:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCyIu-000152-9o for emacs-devel@gnu.org; Sun, 18 Jan 2015 17:26:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCyIs-0001nM-UR for emacs-devel@gnu.org; Sun, 18 Jan 2015 17:26:44 -0500 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:58590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCyIp-0001ej-7g; Sun, 18 Jan 2015 17:26:39 -0500 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id C628140A; Sun, 18 Jan 2015 17:26:32 -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 9EFCC2DEB45; Sun, 18 Jan 2015 17:26:32 -0500 (EST) In-Reply-To: <83h9voyu9m.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: 166.84.7.14 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:181415 Archived-At: On Sun, 18 Jan 2015 17:37:41 +0200 Eli Zaretskii 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 perry@piermont.com