From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Whole frame windows Date: Sat, 9 Aug 2008 12:12:24 +1200 Message-ID: <18588.57577.10349.904991@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218242338 26434 80.91.229.12 (9 Aug 2008 00:38:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 00:38:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 09 02:39:48 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRcUj-00074M-2Y for ged-emacs-devel@m.gmane.org; Sat, 09 Aug 2008 02:39:45 +0200 Original-Received: from localhost ([127.0.0.1]:42949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRcTn-0004u6-1K for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2008 20:38:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRcTi-0004td-8M for emacs-devel@gnu.org; Fri, 08 Aug 2008 20:38:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRcTg-0004qS-F5 for emacs-devel@gnu.org; Fri, 08 Aug 2008 20:38:41 -0400 Original-Received: from [199.232.76.173] (port=50398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRcTg-0004qL-5z for emacs-devel@gnu.org; Fri, 08 Aug 2008 20:38:40 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:38885) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRcTf-0003xi-Vx for emacs-devel@gnu.org; Fri, 08 Aug 2008 20:38:40 -0400 Original-Received: from kahikatea.snap.net.nz (13.30.255.123.static.snap.net.nz [123.255.30.13]) by viper.snap.net.nz (Postfix) with ESMTP id C62483DA8BC for ; Sat, 9 Aug 2008 12:12:27 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 173AE8FC6D; Sat, 9 Aug 2008 12:12:25 +1200 (NZST) X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102223 Archived-At: I know there's a feature freeze, but how about something like below to expand a window to the whole frame and back? It's handy for many window configurations like gdb-ui where the stack trace, for example, doesn't always fit in the space available. Eclipse has a feature like this, when you double click on the window tab. Seems pretty harmless to me and any release must be a long way away. -- Nick http://www.inet.net.nz/~nickrob (defvar last-window-configuration nil "If `non-nil', the window configuration to which `toggle-window' restores.") (defun toggle-window () (interactive) (if last-window-configuration (progn (set-window-configuration last-window-configuration) (setq last-window-configuration nil)) (setq last-window-configuration (current-window-configuration)) (delete-other-windows))) (define-key global-map [mode-line double-mouse-1] 'toggle-window)