As title self-explains, I would like to show multiple regions in different places.
narrow-to-region could be a possible solution, but as documentation indicated, only one region from begin to end could be narrowed. Any thoughts?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
You can hide multiple regions, or you can have separate indirect buffers for them (one per narrowing).
A set of zones is a set of regions, i.e., multiple regions.
You can make a set of zones or its complement (the set of anti-zones) invisible, so that you do not see it at all, including while searching.
The commands for this are
(You can do many more things with a set of zones, besides showing/hiding it or its complement.)
It lets you create an indirect buffer that's a clone of the current buffer and that is narrowed to a particular portion of it.
Such an indirect buffer gives you a different view of a portion of the buffer, or even of the whole buffer (use
C-x h C-x 4 n n). It always has the same text and text properties, but otherwise it is pretty independent.
See the Emacs manual, node Indirect Buffers.