From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Visibility cycling applied on several windows Date: Wed, 03 Apr 2013 11:42:51 +0200 Message-ID: <87obdwuezo.fsf@bzg.ath.cx> References: <87a9ph2rhw.fsf@somewhere.org> <87txnpz2gn.fsf@gmail.com> <87vc85uu7l@ch.ristopher.com> <87li91rzl8.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNKDh-0007J1-UA for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 05:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNKDg-0003GT-35 for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 05:43:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:42240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNKDf-0003GF-SK for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 05:43:04 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UNKE2-0003K6-MH for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 11:43:26 +0200 In-Reply-To: <87li91rzl8.fsf@somewhere.org> (Francesco Pizzolante's message of "Tue, 02 Apr 2013 12:33:55 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Francesco Pizzolante Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hi Francesco, "Francesco Pizzolante" writes: > Hi Christopher and Thorsten, > > Thanks for your replies. > > Christopher Schmidt wrote: >> Thorsten Jolitz 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