all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: Expand/unexpand window possible?
Date: Thu, 12 Mar 2009 14:23:54 +0100	[thread overview]
Message-ID: <7cbps6dgd1.fsf@pbourguignon.anevia.com> (raw)
In-Reply-To: 27c1528e-080f-4e6a-b54a-0617667e1622@b16g2000yqb.googlegroups.com

cmic@live.fr writes:

> On 12 mar, 12:07, Lars Haugseth <n...@larshaugseth.com> wrote:
>> * p...@informatimago.com (Pascal J. Bourguignon) wrote:
>>
>>
>>
>>
>>
>> > Lars Haugseth <n...@larshaugseth.com> writes:
>>
>> > > When typing C-x 1 in a multi-window frame, the current window will fill
>> > > the entire frame, but all other windows will be deleted so that there will
>> > > be no going back to the previous multi-window setup. Is there any way to
>> > > achieve this expand/unexpand functionality without major elisp wizardry on
>> > > my part?
>>
>> > What about minor elisp wizardry on MY part?
>>
>> > (defun temporarily-expand ()
>> >   (interactive)
>> >   (save-window-excursion
>> >     (delete-other-windows)
>> >     (message "Finish with %s"
>> >              (describe-key-briefly (first (where-is-internal 'abort-recursive-edit))))
>> >     (recursive-edit)))
>>
>> Lovely! Much appreciated.
>
> huh. Sorry, but [as a neophyt] how to use this snippet of code?
> I did put it in .emacs, then open 2 windows, then M-x  temporarily-
> expand
> but what else ?

As a newbie, you need to learn to be aware of the mini-buffer and the
mode line.  These are the two lines at the bottom of the emacs frame.
When  youtype M-x temporary-expand RET, a message appears in the
mini-buffer tell you what to do then to revert to the initial window
confguration. Namely, type C-], with the standard keymap.

Otherwise, window-configuration-to-register is nice too.

-- 
__Pascal Bourguignon__


  parent reply	other threads:[~2009-03-12 13:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-12 10:03 Expand/unexpand window possible? Lars Haugseth
2009-03-12 10:29 ` Pascal J. Bourguignon
2009-03-12 11:07   ` Lars Haugseth
2009-03-12 12:42     ` cmic
2009-03-12 12:51       ` Anders Wirzenius
2009-03-12 13:23       ` Pascal J. Bourguignon [this message]
2009-03-12 16:32         ` cmic
2009-03-12 13:34     ` rustom
2009-03-12 15:44       ` Pascal J. Bourguignon
2009-03-12 18:25         ` Evans Winner
2009-03-12 11:17 ` Marc Tfardy
2009-03-12 14:38 ` Andy Stewart
2009-03-12 17:42 ` Jim Burton
2009-03-12 21:35 ` Bernardo
2009-03-16 11:21 ` Lars Haugseth

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=7cbps6dgd1.fsf@pbourguignon.anevia.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@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.