From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Calhoun Newsgroups: gmane.emacs.help Subject: Re: Preserving window layout (follow up) Date: Wed, 11 Jun 2003 11:53:02 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1055367697 30014 80.91.224.249 (11 Jun 2003 21:41:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2003 21:41:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 11 23:41:35 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19QDLL-0007n8-00 for ; Wed, 11 Jun 2003 23:41:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QDJY-0001tS-QI for gnu-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2003 17:39:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QDJL-0001tG-Ae for help-gnu-emacs@gnu.org; Wed, 11 Jun 2003 17:39:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19QDJK-0001su-0S for help-gnu-emacs@gnu.org; Wed, 11 Jun 2003 17:39:14 -0400 Original-Received: from a17-250-248-88.apple.com ([17.250.248.88] helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QDJJ-0001sT-8b for help-gnu-emacs@gnu.org; Wed, 11 Jun 2003 17:39:13 -0400 Original-Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h5BLdB5P004423 for ; Wed, 11 Jun 2003 14:39:11 -0700 (PDT) Original-Received: from mac.com (12-234-253-207.client.attbi.com [12.234.253.207]) (authenticated bits=0) by mac.com (Xserve/8.12.9/MantshX 2.0) with ESMTP id h5BLd8Mh022179 for ; Wed, 11 Jun 2003 14:39:09 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-Mailer: Apple Mail (2.552) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10872 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10872 Thanks for all the suggestions. I found a really helpful function that=20= I'm surprised nobody mentioned, though: set-window-dedicated-p prevents=20= Emacs from messing with a particular window. I wound up writing a small=20= function that sets up my windows as described, calls this function for=20= the shell window, and then calls the window-configuration-to-register=20 function that Johan mentioned. Seems to work pretty well. Thanks again, Matt El Saturday, 7 June, 2003, a las 02:16 PM, Johan Bockg=E5rd escribi=F3: > Matthew Calhoun writes: > >> Sort of a poor man's IDE. The problem is, when I do something like >> command-apropos it wreaks havoc on my nice little environment - the >> shell buffer grows to take up half of the frame, and the *Apropos* >> buffer has taken the place of *shell*. > > Another approach > > ,----[ C-h k C-x r w ] > | C-x r w runs the command window-configuration-to-register > | which is an interactive compiled Lisp function in `register'. > | (window-configuration-to-register REGISTER &optional ARG) > | > | Store the window configuration of the selected frame in register=20 > REGISTER. > | Use C-x r j to restore the configuration. > | Argument is a character, naming the register. > `---- > > (info "(emacs)RegConfig") > > You might want to bind those to some nice keys. > > Also see > > (info "(emacs)Windows") > (info "(emacs)Window Convenience") > > --=20 > The day Microsoft makes something that doesn't suck is probably the > day they start making vacuum cleaners. -- Ernst Jan Plugge > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs >