From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Narrowing same buffer to different regions in two windows Date: Wed, 20 Oct 2004 08:56:42 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098288042 1937 80.91.229.6 (20 Oct 2004 16:00:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2004 16:00:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 20 18:00:29 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CKIt2-0003d4-00 for ; Wed, 20 Oct 2004 18:00:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKJ0P-0004ws-L1 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Oct 2004 12:08:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CKIxU-0003JP-46 for help-gnu-emacs@gnu.org; Wed, 20 Oct 2004 12:05:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CKIxR-0003It-WC for help-gnu-emacs@gnu.org; Wed, 20 Oct 2004 12:05:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKIxR-0003IO-HL for help-gnu-emacs@gnu.org; Wed, 20 Oct 2004 12:05:01 -0400 Original-Received: from [141.146.126.231] (helo=agminet04.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CKIpX-00017H-9P for help-gnu-emacs@gnu.org; Wed, 20 Oct 2004 11:56:51 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.191.11]) by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i9KFujuf024103; Wed, 20 Oct 2004 08:56:48 -0700 Original-Received: from rgmgw2.us.oracle.com (localhost [127.0.0.1]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i9KFujS3006242; Wed, 20 Oct 2004 09:56:45 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i9KFuhZZ006157; Wed, 20 Oct 2004 09:56:45 -0600 Original-To: "Roy Smith" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21352 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21352 Another tool to try: `M-x compare-windows': "Compare text in current window with text in next window. Compares the text starting at point in each window, moving over text in each one as far as they match. This command pushes the mark in each window at the prior location of point in that window. If both windows display the same buffer, the mark is pushed twice in that buffer: first in the other window, then in the selected window. A prefix arg means ignore changes in whitespace. The variable `compare-windows-whitespace' controls how whitespace is skipped. If `compare-ignore-case' is non-nil, changes in case are also ignored." -----Original Message-----From: Roy Smith I've got a file with two large sections of very similar text that I want to examine and compare (it's C++, and a previous author did a "cut, paste, and modify" job instead of refactoring). What I'd like to do is split the screen into two windows, and do narrow-to-region in each window, ending up with each window looking at a distinct section of the file. The problem is, narrowing works per-buffer, not per-window. Is there anyway to do what I want?