From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Exzessive newlines in org-element item interpreter? Date: Sun, 19 Oct 2014 12:06:11 +0200 Message-ID: <874mv02x2k.fsf@nicolasgoaziou.fr> References: <87tx312j04.fsf@gmail.com> <87k33w36ci.fsf@nicolasgoaziou.fr> <87vbng7cf3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfnMo-0005JP-Fc for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 06:05:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfnMe-0008Tx-9w for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 06:05:38 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfnMe-0008Tt-3C for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 06:05:28 -0400 In-Reply-To: <87vbng7cf3.fsf@gmail.com> (Thorsten Jolitz's message of "Sun, 19 Oct 2014 09:21:04 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Thorsten Jolitz writes: > So when creating an element with interpreted content (that is given as > plain string), I use > > - headlines :: (section nil "foo") > > - others :: (paragraph nil "foo") If contents are already interpreted, - anything :: "foo" is sufficient, I think. However, when "anything" is either item or footnote-definition, and contents start with a paragraph, - anything :: (paragraph nil "foo") is better due to special handling of the first line. > One more question: > > the :tag property of items is parsed as list (of sec. string(s)) - is it > sufficient for interpreting to give it a plain string: tag: "foo" > instead of tag: ("foo")? It seems to work ... ("foo") is equivalent to "foo". ("foo") allows to insert objects, e.g. ("foo " (bold nil "bar")) Regards,