From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: C-x b w/Multiple Windows and Frames Date: Fri, 17 Nov 2006 13:56:01 +0200 Message-ID: References: <431264.90288.qm@web32811.mail.mud.yahoo.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1163764589 17140 80.91.229.2 (17 Nov 2006 11:56:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2006 11:56:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 17 12:56:28 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gl2KV-0007Z6-4o for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2006 12:56:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gl2KU-00024p-LZ for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2006 06:56:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gl2KG-00023j-Qd for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 06:56:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gl2KE-00022V-LZ for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 06:56:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gl2KE-00022S-Ep for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 06:56:06 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gl2KE-0005FV-BE for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 06:56:06 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-225-206.inter.net.il [84.229.225.206]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FFC06310 (AUTH halo1); Fri, 17 Nov 2006 13:56:03 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: <431264.90288.qm@web32811.mail.mud.yahoo.com> (message from Alan Lue on Thu, 16 Nov 2006 14:22:15 -0800 (PST)) 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:38765 Archived-At: > Date: Thu, 16 Nov 2006 14:22:15 -0800 (PST) > From: Alan Lue > > Registers are a good solution, but I'd really like to > find a way to change the behavior of switch-to-buffer. > I don't know any lisp. Is there an easy way to > change this? Or is there some configuration option > built into emacs? You could try something based on dedicated windows (see the functions window-dedicated-p and set-window-dedicated-p), but it probably won't be easy if you want to get away without any Lisp. One possibility is to try the winner.el package which comes with Emacs. It has commands to save and restore the window configuration. OTOH, if your problem is that you sometimes briefly visit another file, then I'd suggest to use "C-x 5 f" to do that. This has the advantage of leaving your original frame's windows intact, making return to it a simple matter of switching to the original frame.