[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Narrowing same buffer to different regions in two windows
From: |
Drew Adams |
Subject: |
RE: Narrowing same buffer to different regions in two windows |
Date: |
Wed, 20 Oct 2004 11:21:08 -0700 |
Save the file with a different name, so you can open it in two different
buffers. Narrow each buffer to the region you want. Then use
ediff-buffers. - Drew
-----Original Message-----From: Roy Smith
Compare-windows is neat, but it's not quite the same as narrowing.
I'm in one window and see a variable "foo". I want to see if the
function in the other window also has "foo", so I go to the other
window and do "C-S foo". Only with narrowing will I be sure that the
foo I found is in the function of interest.
>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?