From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: proposal to have ignoreheading tags/properties Date: Sat, 14 Jun 2014 20:12:54 +0200 Message-ID: <878uozz7fd.fsf@nicolasgoaziou.fr> References: <87tx7qxahl.fsf@gmail.com> <87ppie2c2h.fsf@gmail.com> <871tutx4t4.fsf@gmail.com> <87mwdfzmox.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvsRH-0005BZ-SU for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 14:12:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvsR7-0005PR-Mq for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 14:12:27 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:45366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvsR7-0005PF-Fx for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 14:12:17 -0400 In-Reply-To: (Mark Edgington's message of "Sat, 14 Jun 2014 16:48:58 +0000 (UTC)") 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: Mark Edgington Cc: emacs-orgmode@gnu.org Hello, Mark Edgington writes: > If I understand your example correctly, it seems like you are assuming that > the :inline: tag should promote a section's contents to the level *above* > the level of the section having the :inline: tag. I'm always assuming the worst. > To me this behavior doesn't make sense, and that's also not what > I would expect such a tag to do -- instead, the section's text > (anything which comes before the next headline at any level) should be > merged with the text of the nearest preceding headline. Then all > nested headlines contained in the :inline: section should be promoted. > > It is true that this could sometimes be confusing. For example: > > * A > text1 > ** B > text2 > * C :inline: > text3 > ** D > text 4 > > would get treated like: > > * A > text1 > ** B > text2 > text3 > * D > text 4 > > In this case, one would likely omit 'text3' from the first part of the > example, since it doesn't make much sense to have it there. For the most > part, though, it would be a behavior that makes sense (e.g. if "* C" were > replaced with "** C" in the example). As I said, you cannot solve that confusing situation in the general case. If we allow the confusing part (i.e "text3") altogether, then my suggestion still holds: - if you don't need to nest headlines, use a drawer. - if you do need sub-headings, extending :export: and :noexport: is sufficient. Example: * A text1 ** B text2 * C :noexport: text3 ** D :export: text If you really need the exact behaviour that you describe, I suggest to extend the first answer to the relative FAQ so that it also promotes sub-headings besides removing the headline. > It may be that "inline" isn't the best word to describe this behavior, which > is why something with "ignore" or "promotechildren" has been > mentioned. The fact that it's difficult to find a good descriptive name for that feature is a good indication that it isn't meant for general consumption. ;) Regards, -- Nicolas Goaziou