From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: how to set frame parameters? Date: Tue, 18 Jan 2005 10:10:12 -0800 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0636030527==" X-Trace: sea.gmane.org 1106072104 13640 80.91.229.6 (18 Jan 2005 18:15:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2005 18:15:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 18 19:14:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CqxsX-00041Q-00 for ; Tue, 18 Jan 2005 19:14:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cqy4S-0005DA-9D for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jan 2005 13:27:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cqy3o-00059P-5F for help-gnu-emacs@gnu.org; Tue, 18 Jan 2005 13:26:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cqy3j-00057F-Mx for help-gnu-emacs@gnu.org; Tue, 18 Jan 2005 13:26:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cqy3j-00056O-Ef for help-gnu-emacs@gnu.org; Tue, 18 Jan 2005 13:26:31 -0500 Original-Received: from [148.87.2.201] (helo=inet-mail1.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CqxoK-0001HL-Le for help-gnu-emacs@gnu.org; Tue, 18 Jan 2005 13:10:36 -0500 Original-Received: from inet-mail1.oracle.com (localhost [127.0.0.1]) by inet-mail1.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j0IIAVFs027216; Tue, 18 Jan 2005 10:10:31 -0800 (PST) Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by inet-mail1.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j0IIAMNX027108; Tue, 18 Jan 2005 10:10:26 -0800 (PST) Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j0IIALBA003331; Tue, 18 Jan 2005 11:10:21 -0700 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-82-223.vpn.oracle.com [141.144.82.223]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j0IIAHns003269 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 18 Jan 2005 11:10:20 -0700 Original-To: "Mickey Ferguson" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23467 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23467 This is a multi-part message in MIME format. --===============0636030527== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C4FD45.E6005A10" This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C4FD45.E6005A10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit the length set to the size of the screen where I'm working. I had a function that calculated the maximum length (max-lines) that I could use for the window. This is what I would do: (/ (x-display-pixel-height) (frame-char-height)) That gives you the max height in number of lines, which is what you want, if I understand correctly. ------=_NextPart_000_0013_01C4FD45.E6005A10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
the length set=20 to the size of the screen where I'm working.  I had a function = that=20 calculated the maximum length (max-lines) that I could use for the=20 window.   
This is what I would do:
 
  (/=20 (x-display-pixel-height) (frame-char-height))
 
That gives you the max height in number of = lines, which=20 is what you want, if I understand = correctly.
------=_NextPart_000_0013_01C4FD45.E6005A10-- --===============0636030527== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0636030527==--