I find the narrow-to-region command useful, however it applies to the buffer and not to the current window.
I'd like to have one window display a narrowed version of the buffer, while the buffer is displayed widened if it occurs in any other window.
Is this possible?
Try M-x clone-indirect-buffer
or C-x 4 c. For details,
see Indirect Buffers.
来源:https://stackoverflow.com/questions/2387287/emacs-same-buffer-two-windows-one-narrowed-one-not