From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: x-display-pixel-width/height inconsistency Date: Tue, 19 Mar 2013 08:41:42 -0700 Message-ID: <49A3C74A509D4FE7BD41713D48C6239D@us.oracle.com> References: <20130319125417.d486bf4f6d2f41207794326d@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363707715 1514 80.91.229.3 (19 Mar 2013 15:41:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2013 15:41:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Xue Fuqiao'" , "'Leo Liu'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 19 16:42:21 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UHyg8-0007NM-8E for ged-emacs-devel@m.gmane.org; Tue, 19 Mar 2013 16:42:20 +0100 Original-Received: from localhost ([::1]:41161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHyfl-0001nm-0H for ged-emacs-devel@m.gmane.org; Tue, 19 Mar 2013 11:41:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHyfg-0001jE-0o for emacs-devel@gnu.org; Tue, 19 Mar 2013 11:41:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHyfa-0008Bk-T1 for emacs-devel@gnu.org; Tue, 19 Mar 2013 11:41:51 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:31399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHyfa-0008BX-Ma for emacs-devel@gnu.org; Tue, 19 Mar 2013 11:41:46 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r2JFfiYv023096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Mar 2013 15:41:45 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r2JFfhoh008936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Mar 2013 15:41:44 GMT Original-Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r2JFfhdk023139; Tue, 19 Mar 2013 10:41:43 -0500 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 19 Mar 2013 08:41:43 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20130319125417.d486bf4f6d2f41207794326d@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac4kXdjoQ//r1FBMQ6yqwfToFLHlrQAWQzJQ X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157955 Archived-At: > > I think `fit-frame-to-screen' would be a nice command for > > emacs to have. > > +1 Not sure whether this is exactly what you have in mind (it does nothing special wrt multiple displays). But FWIW, command `maximize-frame' in `frame-cmds.el' does that. It also lets users reserve part of the display for the MS Windows task bar or for the Mac "smart tool bar" (or whatever). ,---- | maximize-frame is an interactive compiled Lisp function in `frame-cmds'. | (maximize-frame &optional DIRECTION FRAME) | | Maximize selected frame horizontally, vertically, or both. | With no prefix arg, maximize both directions. | With a non-negative prefix arg, maximize vertically. | With a negative prefix arg, maximize horizontally. | | In Lisp code: | DIRECTION is the direction: `horizontal', `vertical', or `both'. | FRAME is the frame to maximize. `---- Command `restore-frame' returns a frame to its pre-maximized size and position. Command `toggle-max-frame' does both, alternating: maximize/restore. code: http://www.emacswiki.org/emacs-en/download/frame-cmds.el description: http://emacswiki.org/emacs/FullScreen#frame-cmds.el