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: maximizing window for MacOSX Date: Fri, 3 Feb 2012 06:49:18 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328281263 16434 80.91.229.3 (3 Feb 2012 15:01:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 15:01:03 +0000 (UTC) To: "'ishi soichi'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 16:01:00 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtKdF-0004oa-Nf for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 16:00:57 +0100 Original-Received: from localhost ([::1]:41433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtKdD-0004AU-R1 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 10:00:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtKd5-00049p-7v for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 10:00:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtKcz-0003aJ-0z for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 10:00:47 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:29134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtKcy-0003Zw-RV for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 10:00:40 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q13F0Tcr024794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 Feb 2012 15:00:38 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q13EnMJJ026636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Feb 2012 14:49:22 GMT Original-Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q13EnLUA029474; Fri, 3 Feb 2012 08:49:21 -0600 Original-Received: from dradamslap1 (/10.159.45.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 03 Feb 2012 06:49:21 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcziSImKP+ywVyibTqOZQ2T7et6hNQAOWxcQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090205.4F2BF696.011C,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 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:83622 Archived-At: > I am trying to develop an Emacs Lisp program that maximizes > the window. I found and modified the following code, which > was originally for Carbon Emacs. ... > It does not act as I want it to. You might also try the code in frame-cmds.el (e.g. `maximize-frame'): http://www.emacswiki.org/emacs/download/frame-cmds.el. (It requires a second library, frame-fns.el: http://www.emacswiki.org/emacs/download/frame-fns.el.) It does not depend on the frame parameter `fullscreen', which does not exist in some Emacs builds. It takes into consideration the space available on Mac-OS, via `mac-display-available-pixel-bounds'.