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 05:42:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <27c1528e-080f-4e6a-b54a-0617667e1622@b16g2000yqb.googlegroups.com> References: <7cocw7c9w3.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 1236865451 25493 80.91.229.12 (12 Mar 2009 13:44:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 13:44:11 +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:45:24 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 1LhlDu-0003gc-H7 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 14:45:22 +0100 Original-Received: from localhost ([127.0.0.1]:44252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhlCY-00072l-Lf for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 09:43:58 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b16g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 212.23.162.37 Original-X-Trace: posting.google.com 1236861727 15590 127.0.0.1 (12 Mar 2009 12:42:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 12 Mar 2009 12:42:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b16g2000yqb.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:167526 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:62848 Archived-At: 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 fi= ll > > > 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 wizard= ry 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-inter= nal '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 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 > =A0retract it, but also to deny under oath that I ever said it." -Tom Leh= rer