From: Anders Wirzenius <anders@no.email.thanks.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Expand/unexpand window possible?
Date: Thu, 12 Mar 2009 12:51:42 GMT [thread overview]
Message-ID: <uvdqerjj5.fsf@no.email.thanks.invalid> (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 ?
>
> rgds
> --
> michel marcon aka cmic
>>
>> --
>> Lars Haugseth
>>
>> "If anyone disagrees with anything I say, I am quite prepared not only to
>> retract it, but also to deny under oath that I ever said it." -Tom Lehrer
M-x abort-recursive-edit
You may want to assign those commands to some key.
--
Anders
next prev parent reply other threads:[~2009-03-12 12:51 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 [this message]
2009-03-12 13:23 ` Pascal J. Bourguignon
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uvdqerjj5.fsf@no.email.thanks.invalid \
--to=anders@no.email.thanks.invalid \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).