Hi Francesco,

"Francesco Pizzolante"
<fpz-djc/ipccudyqhejpep6iedvlejwur...@public.gmane.org> writes:

> Hi Christopher and Thorsten,
>
> Thanks for your replies.
>
> Christopher Schmidt wrote:
>> Thorsten Jolitz <tjolitz-re5jqeeqqe8avxtiumw...@public.gmane.org> writes:
>>> maybe this is what you need (untested):
>>>
>>> http://www.gnu.org/software/emacs/manual/html_node/emacs/Indirect-Buffers.html
>>
>> No, an indirect buffer shares its parent's text properties.
>
> It's true: the indirect buffer shares its parent's text properties.

Org-mode relies on outline-mode for visibility cycling, and
outline-mode uses overlay to set the visibility of various parts
of the buffer.

> But, the visibility cycling is applied only in the active window: either in
> the main buffer or in the indirect buffer but not in both windows at the same
> time. So, it works as expected to me. Thanks for the trick!
>
> But this trick seems like a workaround to meĀ : using visibility cycling in one
> window should not affect another window, isn't it?

Overlays are inherited at cloning time, but not each time they are
modified, either in the window displaying the base buffer, or in the
window displaying an indirect buffer -- while text properties are
inherited each time they are modified in any buffer.

HTH,

-- 
 Bastien


Reply via email to