From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: desktop height? Date: Tue, 28 Jan 2003 06:47:38 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1043736887 5971 80.91.224.249 (28 Jan 2003 06:54:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 28 Jan 2003 06:54:47 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18dPdt-0001Y9-00 for ; Tue, 28 Jan 2003 07:54:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dPee-0004Th-00 for gnu-help-gnu-emacs@m.gmane.org; Tue, 28 Jan 2003 01:55:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed1.cidera.com!Cidera!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 24.168.134.97 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1043736458 24.168.134.97 (Tue, 28 Jan 2003 01:47:38 EST) Original-NNTP-Posting-Date: Tue, 28 Jan 2003 01:47:38 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:109477 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5997 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5997 Does anyone know a way to calculate the height of the desktop in elisp? I'd like Emacs to start up with maximum height. For that matter, I'd like XEmacs, and various OSes to work. In Linux X Window, the following works reasonably well: (/ (- (x-display-pixel-height) 50) (frame-char-height))) I can get reasonably close with (/ (x-display-pixel-height) (* (/ (font-default-size-for-device) 2) 3)) which works in w32 XEmacs as (/ (x-display-pixel-height) (* (/ (string-to-number (font-default-size-for-device)) 2) 3)) or w32 Emacs as (/ (x-display-pixel-height) 18) I'd also like to hear of testing on other OSes. If someone has a better solution, please send it! Thanks ahead.