all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: cmic@live.fr
To: help-gnu-emacs@gnu.org
Subject: Re: Expand/unexpand window possible?
Date: Thu, 12 Mar 2009 05:42:07 -0700 (PDT)	[thread overview]
Message-ID: <27c1528e-080f-4e6a-b54a-0617667e1622@b16g2000yqb.googlegroups.com> (raw)
In-Reply-To: m17i2vq9sf.fsf@vader.eiendomsnett.no

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



  reply	other threads:[~2009-03-12 12:42 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 [this message]
2009-03-12 12:51       ` Anders Wirzenius
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

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

  git send-email \
    --in-reply-to=27c1528e-080f-4e6a-b54a-0617667e1622@b16g2000yqb.googlegroups.com \
    --to=cmic@live.fr \
    --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.