19

Possible Duplicate:
Emacs: same buffer, two windows, one narrowed, one not

I'd like to leverage the narrow-to-region function of emacs twice in the same file. I have the file open in two windows, but when I narrow-to-region, both windows render the narrowed region. I'd like to be able to control the narrowing independently in each region. Does anyone know how to do this?

Community
  • 1
  • 1
2NinerRomeo
  • 2,687
  • 4
  • 29
  • 35

1 Answers1

38

The concept that allows that in Emacs is the indirect-buffer.

C-x 4 c

Which runs clone-indirect-buffer-other-window, and narrowing in one buffer doesn't affect the other. Read the documentation for indirect-buffer for more information if you need any.

Brian McKenna
  • 45,528
  • 6
  • 61
  • 60
Trey Jackson
  • 73,529
  • 11
  • 197
  • 229