From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: get current frame size? Date: Mon, 12 Oct 2015 06:24:15 -0700 (PDT) Message-ID: <7e5aaa23-d8df-42e4-b2a4-973343b4861a@default> References: <87612c8fun.fsf@gmail.com> <87y4f8w84d.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444656311 3031 80.91.229.3 (12 Oct 2015 13:25:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2015 13:25:11 +0000 (UTC) To: Michael Heerdegen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 12 15:24:58 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Zld5u-0007Mx-RR for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Oct 2015 15:24:50 +0200 Original-Received: from localhost ([::1]:55321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zld5u-0004Ir-Ce for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Oct 2015 09:24:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zld5S-00043o-2z for help-gnu-emacs@gnu.org; Mon, 12 Oct 2015 09:24:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zld5O-0003gb-TG for help-gnu-emacs@gnu.org; Mon, 12 Oct 2015 09:24:21 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:26994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zld5O-0003gJ-MX for help-gnu-emacs@gnu.org; Mon, 12 Oct 2015 09:24:18 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9CDOH8p015390 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Oct 2015 13:24:18 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t9CDOH4N003707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 12 Oct 2015 13:24:17 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t9CDOHbZ022986; Mon, 12 Oct 2015 13:24:17 GMT In-Reply-To: <87y4f8w84d.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107593 Archived-At: > - You can also calculate the frame parameters at run time using > `display-pixel-width', `display-pixel-width'. But I don't think > Emacs knows the sizes of window borders and title bar, so the approach > is somewhat limited. At least can you use the above functions to test > on which kind of screen you "are". >=20 > - Drew Adam's "frame-cmds.el" has additional related stuff. See also the code in `oneonone.el'. It uses `(x-display-pixel-width)' (and `...-height'), called `display-pixel-width' in recent Emacs (both names work).