Re: [O] Visibility cycling applied on several windows

2013-04-03 Thread Bastien


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




[O] Visibility cycling applied on several windows

2013-04-02 Thread Francesco Pizzolante
Hi,

If you have 2 windows opened with the same Org buffer, when you use a
visibility cycling command (TAB, S-TAB, etc.), it changes the visibility in
both windows, while you would expect the visibility being changed only in the
active windows (not in both windows).

Is there a way to restrict the visibility cycling only to the active window?

Thanks a lot for your help.

Regards,
 Francesco




Re: [O] Visibility cycling applied on several windows

2013-04-02 Thread Thorsten Jolitz
Francesco Pizzolante
f...@missioncriticalit.com writes:

 If you have 2 windows opened with the same Org buffer, when you use a
 visibility cycling command (TAB, S-TAB, etc.), it changes the visibility in
 both windows, while you would expect the visibility being changed only in the
 active windows (not in both windows).

 Is there a way to restrict the visibility cycling only to the active window?

maybe this is what you need (untested):

http://www.gnu.org/software/emacs/manual/html_node/emacs/Indirect-Buffers.html

-- 
cheers,
Thorsten




Re: [O] Visibility cycling applied on several windows

2013-04-02 Thread Christopher Schmidt
Thorsten Jolitz tjol...@gmail.com 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.

Christopher



Re: [O] Visibility cycling applied on several windows

2013-04-02 Thread Francesco Pizzolante
Hi Christopher and Thorsten,

Thanks for your replies.

Christopher Schmidt wrote:
 Thorsten Jolitz tjol...@gmail.com 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.

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?

Thanks for your help.

 Francesco