From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Subhan Michael Tindall Newsgroups: gmane.emacs.help Subject: RE: Maximize/restore frame function Date: Sun, 5 Oct 2014 18:13:53 +0000 Message-ID: <07aa7063841d4e43a94b6dae1f6a41a0@fcmailsvr2.familycareinc.org> References: <0a8efd3b-4f9e-4070-9bbc-2679ec47ef70@default> 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 1412532862 4734 80.91.229.3 (5 Oct 2014 18:14:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2014 18:14:22 +0000 (UTC) To: 'Drew Adams' , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 05 20:14:16 2014 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 1XaqK0-0008O5-13 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 20:14:16 +0200 Original-Received: from localhost ([::1]:48288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaqJz-0002DG-Jo for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 14:14:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaqJl-0002D9-CF for help-gnu-emacs@gnu.org; Sun, 05 Oct 2014 14:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaqJg-0007QU-TT for help-gnu-emacs@gnu.org; Sun, 05 Oct 2014 14:14:01 -0400 Original-Received: from outbound.familycareinc.org ([207.170.205.147]:21238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaqJg-0007QK-Jx for help-gnu-emacs@gnu.org; Sun, 05 Oct 2014 14:13:56 -0400 X-IronPort-AV: E=Sophos;i="5.04,660,1406617200"; d="scan'208";a="2257094" Original-Received: from fcmailsvr3.familycareinc.org ([10.0.1.3]) by fcspamapp1.familycareinc.org with ESMTP; 05 Oct 2014 11:13:56 -0700 Original-Received: from FCMAILSVR2.familycareinc.org (10.0.1.9) by fcmailsvr3.familycareinc.org (10.0.1.3) with Microsoft SMTP Server (TLS) id 15.0.995.29; Sun, 5 Oct 2014 11:13:55 -0700 Original-Received: from FCMAILSVR2.familycareinc.org ([fe80::55f1:10a1:94d8:d4cc]) by fcmailsvr2.familycareinc.org ([fe80::55f1:10a1:94d8:d4cc%18]) with mapi id 15.00.0995.028; Sun, 5 Oct 2014 11:13:54 -0700 Thread-Topic: Maximize/restore frame function Thread-Index: Ac/fLyZyrFjuAqvKSUmOLCARLGb9KgAooVQAAD15Y6A= In-Reply-To: <0a8efd3b-4f9e-4070-9bbc-2679ec47ef70@default> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.1.170] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 207.170.205.147 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:100290 Archived-At: > -----Original Message----- > From: Drew Adams [mailto:drew.adams@oracle.com] > Sent: Friday, October 03, 2014 10:50 PM > To: Subhan Michael Tindall; help-gnu-emacs@gnu.org > Subject: RE: Maximize/restore frame function > = > > Hi, I'm looking for a simple (hopefully!) function to maximize a > > frame/restore to it's previous size. > > I've looked through the apropos and the closest I could find was > > iconify-frame and iconify-or-deiconify-frame, neither of which quite > > does what I want. > > What I want is function to toggle a given frame between being > > maximized on it's display and it's original size I work in windows > > (bleh), I get this same functionality by double clicking on the top > > bar of the frame. This maximizes it to the monitor It's on. > > Dual monitor setup with virtuawin multiple desktops if that helps. > > Any ideas? > = > As Oscar indicated, Emacs 24.4 has this. > = > You can also toggle maximization (but not fullscreen), on all platforms i= n all > Emacs versions (starting with Emacs 20), using library `frame-cmds.el', w= hich > you can get from Emacs Wiki (or MELPA), http://www.emacswiki.org/emacs- > en/download/frame-cmds.el > = > There you will find commands `maximize-frame' and `restore-frame', aka > `toggle-max-frame'. From the doc string: > = > ,---- > | Toggle maximization of FRAME horizontally, vertically, or both. > | Reverses or (if restored) repeats the effect of the Emacs maximize > | commands. Does not restore from maximization effected outside Emacs. > | > | With no prefix arg, toggle both directions. > | With a non-negative prefix arg, toggle only vertically. > | With a negative prefix arg, toggle horizontally. > | > | When toggling both directions, each is toggled from its last maximize > | or restore state. This means that using this after > | `maximize-frame-horizontally', `maximize-frame-vertically', > | `toggle-max-frame-horizontally', or `toggle-max-frame-vertically' does > | not necessarily just reverse the effect of that command. > `---- > = > If you use a standalone minibuffer frame then "maximizing" another frame > leaves room for the minibuffer frame; it does not occlude it. > = > All of the commands in the library work with all Emacs versions (starting= with > Emacs 20). [>] = The commands are exactly what I want, but don't work properly with a multi-= monitor setup. Maximize & restore will jump the frame from left monitor to right & vice ve= rsa. It doesn't appear to be tracking the original location either. So, for example, when I maximize a frame in the left monitor(which does not= have a menu bar), the frame is moved to the right monitor, maximized for t= hat monitor, and igores the menu bar so oversizes the frame. = Subhan This message is intended for the sole use of the individual and entity to w= hich it is addressed and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email and delete the message. Thank you.