From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Wirzenius Newsgroups: gmane.emacs.help Subject: Re: Expand/unexpand window possible? Date: Thu, 12 Mar 2009 12:51:42 GMT Organization: Sonera Customer Message-ID: References: <7cocw7c9w3.fsf@pbourguignon.anevia.com> <27c1528e-080f-4e6a-b54a-0617667e1622@b16g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1236865749 26626 80.91.229.12 (12 Mar 2009 13:49:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 13:49:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 12 14:50:25 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LhlEl-00042m-4B for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 14:46:15 +0100 Original-Received: from localhost ([127.0.0.1]:44812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhlDO-0007Qi-L1 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 09:44:50 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!uio.no!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!central1.inet.fi!inet.fi!read4.inet.fi.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:7E/pKjhygH9/RLe3UpXIcK78VO0= Original-Lines: 50 Original-NNTP-Posting-Host: 194.251.142.2 Original-X-Complaints-To: abuse@inet.fi Original-X-Trace: read4.inet.fi 1236862302 194.251.142.2 (Thu, 12 Mar 2009 14:51:42 EET) Original-NNTP-Posting-Date: Thu, 12 Mar 2009 14:51:42 EET Original-Xref: news.stanford.edu gnu.emacs.help:167527 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62850 Archived-At: cmic@live.fr writes: > On 12 mar, 12:07, Lars Haugseth wrote: >> * p...@informatimago.com (Pascal J. Bourguignon) wrote: >> >> >> >> >> >> > Lars Haugseth 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