From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tom Capey Newsgroups: gmane.emacs.help Subject: Re: Switching between buffers in split windows Date: 17 Oct 2002 14:31:02 +0100 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034957425 21557 80.91.224.249 (18 Oct 2002 16:10:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 16:10:25 +0000 (UTC) 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 182Zhb-0005aS-00 for ; Fri, 18 Oct 2002 18:10:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182Zgl-0006GP-00; Fri, 18 Oct 2002 12:09:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 38 Original-Xref: shelby.stanford.edu gnu.emacs.help:106143 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2679 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2679 * Felix E. Klee writes: > Often, I split an EMACS window horizontally into two windows to edit two > different portions of the same buffer *A*. Sometimes, I need to temporarily > switch to another buffer *B* via "C-x b" in one of the windows. This works > fine and quick. However, hitting "C-x b" again doesn't return me to where I > came from, but instead displays another buffer *C* because *A* is already > displayed. Of course, this is how it's supposed to work, but I want to > change that behavior: > How do I make "C-x b" redisplay the portion of *A* that I was editing > previously? you could try saving the window configuration before you go off to look at the other buffer `window-configuration-to-register' (where-is 'window-configuration-to-register) -| window-configuration-to-register is on C-x r w (describe-function 'window-configuration-to-register) -| window-configuration-to-register 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. /Tom -- "...and so, as I notice the eternal flame of hope has just been put out by the fire officer of destiny with the sand bucket of fate..." -- Humph