From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cassio Koshikumo Subject: Two issues with :VISIBILITY: property Date: Mon, 29 Nov 2010 14:04:34 -0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=38007 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PN6Dp-0000Bg-TH for emacs-orgmode@gnu.org; Mon, 29 Nov 2010 11:04:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PN6Do-00044m-Mo for emacs-orgmode@gnu.org; Mon, 29 Nov 2010 11:04:57 -0500 Received: from mail-ww0-f67.google.com ([74.125.82.67]:61698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PN6Do-00044Z-Il for emacs-orgmode@gnu.org; Mon, 29 Nov 2010 11:04:56 -0500 Received: by wwb17 with SMTP id 17so1387930wwb.6 for ; Mon, 29 Nov 2010 08:04:55 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, I've just recently began using emacs and org-mode, and I'm already in love. So, first, let me thank and congratulate Mr. Dominik and everyone else involved. Now, I have two questions about the :VISIBILITY: property. (I did find some info on the archives but, unless I misinterpreted it, I think this is a different matter.) What I want to do, basically, is to replicate a cool functionality from Scrivener, a Mac app for writing long documents. Scrivener can associate a synopsis with each chunk of text, allowing you to reorganize the structure based on the synopsis. Org-mode seems perfectly capable of doing that using the following setup: * Chapter 1 :PROPERTIES: :VISIBILITY: children :END: The synopses for chapter 1 goes here. ** Section 1 (Ch.1) The actual text for Section 1 of Chapter 1. ** Section 2 (Ch.1) The actual text for Section 2 of Chapter 1. And so on. The "children" property allows me to press C-u C-u to show only the synopsis and the headlines inside the chapters -- which is exactly what I want. But here's the thing: if I decide to put "Chapter 1" /after/ "Chapter 2", using M-Down or M-S-Down, it gets moved alright -- but the entire Chapter 1 subtree is expanded. I no longer see only the headlines inside it, but also the entire text inside them. Is this by design? If so, why? It seems to me that the :VISIBILITY: property should hold when moving trees around. That was the first issue. The second is: The :VISIBILITY: property seems to work only when it's applied to level 1 trees. For example, say I have this: * Part 1 ** Chapter 1 :PROPERTIES: :VISIBILITY: children :END: Synopsis for Chapter 1 goes here. *** Section 1 (Ch.1) The actual text for Section 1 of Chapter 1. ** Chapter 2 :PROPERTIES: :VISIBILITY: children :END: Synopsis for Chapter 2 goes here. *** Section 1 (Ch.2) The actual text for Section 1 of Chapter 2. When I press C-u C-u , only Chapter 1 gets expanded correctly (synopsis + headlines inside it). Chapter 2 stays completely folded ("Chapter 2..."), without any children or content shown -- effectively ignoring the "children" property, or acting as it was set to "folded". I guess this wasn't supposed to happen, right? Any help on these matters would be much appreciated. Also, if anyone knows of a better way to accomplish what I'm trying to do, please tell me. I experimented with a :SYNOPSIS: drawer, but it didn't seem adequate. There's no way of showing only the drawer and hiding everything else (which makes sense, since the drawers were made to hide content, so I'm not saying this should be an option). I'm using yesterday's snapshot from the repository, so I'm pretty much up to date. Emacs 23.2 on a Mac OS X 10.6.5. Thanks, --=20 C=E1ssio Koshikumo