From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Straubinger Newsgroups: gmane.emacs.help Subject: Re: Calculate window size in pixels Date: Fri, 6 May 2005 16:40:18 +0200 (CEST) Organization: not organised Message-ID: References: <87u0lgigvl.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115395086 20262 80.91.229.2 (6 May 2005 15:58:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 May 2005 15:58:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 06 17:58:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DU5CL-0007lX-Is for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2005 17:57:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DU5K5-0002NX-KE for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2005 12:05:05 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!news.sap-ag.de!news2!news.sap-ag.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 10.18.75.0 Original-X-Trace: news.sap-ag.de 1115390418 4993 10.18.75.0 (6 May 2005 14:40:18 GMT) Original-X-Complaints-To: newsmaster@sap.com Original-NNTP-Posting-Date: Fri, 6 May 2005 14:40:18 +0000 (UTC) Mail-Copies-To: nobody User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 X-No-Archive: yes Original-Xref: shelby.stanford.edu gnu.emacs.help:130721 Original-To: help-gnu-emacs@gnu.org 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 X-Gmane-Expiry: 2005-05-20 Xref: news.gmane.org gmane.emacs.help:26373 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26373 Stefan Monnier wrote: >> Is it possible to calculate an Emacs window's size in pixels? >> `window-height' and `window-width' returns lines and columns. > > There's frame-pixel-height in Emacs-CVS. This function is even available in the released version Emacs 21.4. > There's also window-pixel-edges if you care about windows rather > than frames. This seems to be a new function in the yet to be released Emacs 22.1. -- Klaus Straubinger