From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "John" Newsgroups: gmane.emacs.help Subject: Re: Determining desktop size? Date: 16 Mar 2005 14:55:44 -0800 Organization: http://groups.google.com Message-ID: <1111013744.234400.148600@f14g2000cwb.googlegroups.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1111013979 5447 80.91.229.2 (16 Mar 2005 22:59:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2005 22:59:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 23:59:39 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DBhTP-0000WA-Lw for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2005 23:58:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DBhja-0007dZ-BI for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2005 18:15:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 66.81.69.206 Original-X-Trace: posting.google.com 1111013748 7941 127.0.0.1 (16 Mar 2005 22:55:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 16 Mar 2005 22:55:48 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=66.81.69.206; posting-account=SN40OAwAAABM_rISntbjsmd9hGuJXrzP Original-Xref: shelby.stanford.edu gnu.emacs.help:129336 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-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24891 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24891 David Kastrup wrote: > PT writes: > > > Not the size of the emacs frame, the size of the whole graphical > > desktop. Is it possible from elisp? > > C-h f display-pixel-height RET > C-h f display-pixel-width RET > > -- > David Kastrup, Kriemhildstr. 15, 44793 Bochum This function proves to be not "the size of the whole graphical desktop" but instead "the size of the desktop when emacs started"! At least as tested on emacs 21.1 running on Windows XP. When I resize the display during a run of emacs, later evaluations of (display-pixel-width) return the earlier value, not the present size of the display. John