all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: emacs-devel@gnu.org
Subject: Whole frame windows
Date: Sat, 9 Aug 2008 12:12:24 +1200	[thread overview]
Message-ID: <18588.57577.10349.904991@kahikatea.snap.net.nz> (raw)


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)




             reply	other threads:[~2008-08-09  0:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-09  0:12 Nick Roberts [this message]
2008-08-09  6:13 ` Whole frame windows Mathias Megyei
2008-08-09 12:45 ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18588.57577.10349.904991@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.