Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to narrow-to-region in one window, while not narrowing in another window visiting the same file? [duplicate]

Tags:

emacs

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?

like image 629
2NinerRomeo Avatar asked Mar 14 '12 19:03

2NinerRomeo


1 Answers

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.

like image 168
Trey Jackson Avatar answered Oct 14 '22 11:10

Trey Jackson