From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cmic@live.fr Newsgroups: gmane.emacs.help Subject: Re: Expand/unexpand window possible? Date: Thu, 12 Mar 2009 09:32:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5a1278d6-6469-4989-8b16-8be4f47c5aca@z9g2000yqi.googlegroups.com> References: <7cocw7c9w3.fsf@pbourguignon.informatimago.com> <27c1528e-080f-4e6a-b54a-0617667e1622@b16g2000yqb.googlegroups.com> <7cbps6dgd1.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236876719 4449 80.91.229.12 (12 Mar 2009 16:51:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 16:51:59 +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 17:53:16 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 1Lhnzm-0007JA-Dn for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 17:42:58 +0100 Original-Received: from localhost ([127.0.0.1]:51118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhnyQ-0005JF-E8 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 12:41:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z9g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 212.23.162.37 Original-X-Trace: posting.google.com 1236875570 28819 127.0.0.1 (12 Mar 2009 16:32:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 12 Mar 2009 16:32:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z9g2000yqi.googlegroups.com; posting-host=212.23.162.37; posting-account=2v86PQkAAAAHg43k7aMJslWJWbLWrWiz User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 atoll.cetu.i2:8080 (squid/2.5.STABLE2) Original-Xref: news.stanford.edu gnu.emacs.help:167532 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:62857 Archived-At: On 12 mar, 14:23, p...@informatimago.com (Pascal J. Bourguignon) wrote: > c...@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 th= ere will > >> > > be no going back to the previous multi-window setup. Is there any = way to > >> > > achieve this expand/unexpand functionality without major elisp wiz= ardry on > >> > > my part? > > >> > What about minor elisp wizardry on MY part? > > >> > (defun temporarily-expand () > >> > =A0 (interactive) > >> > =A0 (save-window-excursion > >> > =A0 =A0 (delete-other-windows) > >> > =A0 =A0 (message "Finish with %s" > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0(describe-key-briefly (first (where-is-in= ternal 'abort-recursive-edit)))) > >> > =A0 =A0 (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 =A0temporarily- > > expand > > but what else ? > > As a newbie, you need to learn to be aware of the mini-buffer and the > mode line. =A0These are the two lines at the bottom of the emacs frame. > When =A0youtype 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. OK. Merci. I already know a bit of Emacs. But the clue was farther in the thread: car instead of fist (Argh!!) Bonne continuation -- michel marcon aka cmic > > Otherwise, window-configuration-to-register is nice too. > > -- > __Pascal Bourguignon__