From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert Hundt" Newsgroups: gmane.emacs.help Subject: Re: Preserving window layout (follow up) Date: Mon, 16 Jun 2003 21:23:48 GMT Organization: Hewlett-Packard Company Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1055797486 27238 80.91.224.249 (16 Jun 2003 21:04:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2003 21:04:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 23:04:42 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 19S19e-00074h-00 for ; Mon, 16 Jun 2003 23:04:42 +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 19S1BS-0006qR-UC for gnu-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2003 17:06:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp-relay.ihug.net!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Original-NNTP-Posting-Host: 15.244.99.34 Original-X-Complaints-To: abuse@HP.com Original-X-Trace: news.cpqcorp.net 1055798628 15.244.99.34 (Mon, 16 Jun 2003 14:23:48 PDT) Original-NNTP-Posting-Date: Mon, 16 Jun 2003 14:23:48 PDT Original-Xref: shelby.stanford.edu gnu.emacs.help:114496 Original-To: help-gnu-emacs@gnu.org 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:10988 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10988 Hey Matthew, please send me this function ... ;-) -- Robert "Matthew Calhoun" wrote in message news:mailman.7740.1055367556.21513.help-gnu-emacs@gnu.org... Thanks for all the suggestions. I found a really helpful function that I'm surprised nobody mentioned, though: set-window-dedicated-p prevents Emacs from messing with a particular window. I wound up writing a small function that sets up my windows as described, calls this function for the shell window, and then calls the window-configuration-to-register function that Johan mentioned. Seems to work pretty well. Thanks again, Matt El Saturday, 7 June, 2003, a las 02:16 PM, Johan Bockgård escribió: > 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 > 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") > > -- > 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 >