help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expand/unexpand window possible?


From: Pascal J. Bourguignon
Subject: Re: Expand/unexpand window possible?
Date: Thu, 12 Mar 2009 14:23:54 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)

address@hidden writes:

> On 12 mar, 12:07, Lars Haugseth <address@hidden> wrote:
>> * address@hidden (Pascal J. Bourguignon) wrote:
>>
>>
>>
>>
>>
>> > Lars Haugseth <address@hidden> 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__


reply via email to

[Prev in Thread] Current Thread [Next in Thread]