From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Maximize/restore frame function Date: Fri, 03 Oct 2014 20:50:54 +0200 Message-ID: <87egupc7ht.fsf@wanadoo.es> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412362304 29856 80.91.229.3 (3 Oct 2014 18:51:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 18:51:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 20:51:38 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 1Xa7x2-0003ea-3T for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2014 20:51:36 +0200 Original-Received: from localhost ([::1]:40895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa7x1-0005rS-QM for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2014 14:51:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa7wj-0005po-Np for help-gnu-emacs@gnu.org; Fri, 03 Oct 2014 14:51:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xa7wd-0004XM-FQ for help-gnu-emacs@gnu.org; Fri, 03 Oct 2014 14:51:17 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa7wd-0004XG-96 for help-gnu-emacs@gnu.org; Fri, 03 Oct 2014 14:51:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xa7wa-0003Sk-Tt for help-gnu-emacs@gnu.org; Fri, 03 Oct 2014 20:51:08 +0200 Original-Received: from 198.red-79-158-173.staticip.rima-tde.net ([79.158.173.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Oct 2014 20:51:08 +0200 Original-Received: from ofv by 198.red-79-158-173.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Oct 2014 20:51:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 198.red-79-158-173.staticip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:8tgPhKIdc7zCofxWBZPBYuBx05I= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:100252 Archived-At: Subhan Michael Tindall writes: > 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? >From NEWS: * Changes in Emacs 24.4 ... *** New commands `toggle-frame-fullscreen' and `toggle-frame-maximized', bound to and M-, respectively. `toggle-frame-maximized' is what you want. Out there are Windows binaries for Emacs 24.4, which in pretest phase. Before those functions I use a hack on .emacs for maximizing the frame. I can't recall if it toggled the state, though.