From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vasily Korytov Newsgroups: gmane.emacs.help Subject: Screen size (pixels or whatever) Date: Mon, 22 Jun 2015 23:49:48 +0300 Message-ID: <79ACCF65-DDC4-4B95-8E16-20DC867190D3@yandex.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435016740 17564 80.91.229.3 (22 Jun 2015 23:45:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2015 23:45:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 23 01:45:31 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 1Z7BP3-000325-QT for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2015 01:45:25 +0200 Original-Received: from localhost ([::1]:42501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7BP3-0001e7-7r for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 19:45:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z78fI-0002JS-CI for help-gnu-emacs@gnu.org; Mon, 22 Jun 2015 16:50:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z78fE-0005WH-CH for help-gnu-emacs@gnu.org; Mon, 22 Jun 2015 16:50:00 -0400 Original-Received: from forward2l.mail.yandex.net ([84.201.143.145]:51573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z78fE-0005Ud-4G for help-gnu-emacs@gnu.org; Mon, 22 Jun 2015 16:49:56 -0400 Original-Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [IPv6:2a02:6b8:0:f05::118]) by forward2l.mail.yandex.net (Yandex) with ESMTP id 7D5891AC0606 for ; Mon, 22 Jun 2015 23:49:52 +0300 (MSK) Original-Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id 1E29C2C62CB for ; Mon, 22 Jun 2015 23:49:51 +0300 (MSK) Original-Received: from unknown (unknown [46.98.236.141]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AxFfZ7wQDi-npKOKfSg; Mon, 22 Jun 2015 23:49:51 +0300 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1435006191; bh=i13OpBIi2BOwMxcBb7cq4Ri1uQGJu1DsjTv5NGcPQ3c=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Message-Id: Date:To:Mime-Version:X-Mailer; b=F/GNDtS9QhN72BBK0xzCeWob/BpZSHttqweXwcARGtRB82GqS0HdQSxoAfrdpqcIo 6B4F0bZD6pESWFEuVY4/EKepsIvXJKcNTpxLwMvEQkuN1HO5MpC7MC/RxS657vzG6m MLBWQ9i9oRdikV50p8RRUhDEPThkCToE8nrrwDVM= Authentication-Results: smtp4h.mail.yandex.net; dkim=pass header.i=@yandex.com X-Mailer: Apple Mail (2.2098) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.143.145 X-Mailman-Approved-At: Mon, 22 Jun 2015 19:44:56 -0400 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:105089 Archived-At: Hey, How do I get screen size in Emacs? I don=E2=80=99t mean frame-width, but I mean eventually the number of = lines that are possible to fit on the screen. That is: on one machine I have 1400=D1=851050 and I use: (setq default-frame-alist '((height . 53) (width . 120) (top . 50) (left . 380))) On second one I have 1280x768 and I use: (setq default-frame-alist '((height . 45) (width . 120) (top . 3) (left . 220))) I want to glue this in one configuration file that works on both = machines. I would like to know, if there is a function, that would give me the = number of pixels on the current display or some other mean to detect, is = it a large screen or not. --=20 Vasily Korytov http://chillum.github.io