From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-list-to-subtree strange behaviour Date: Sat, 16 Sep 2017 17:28:59 +0200 Message-ID: <87efr6achw.fsf@nicolasgoaziou.fr> References: <20170916155010.16abbab9@lt70.mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtF1o-0004CO-Eu for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 11:29:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtF1j-0001Z9-PL for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 11:29:08 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40910) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtF1j-0001Yk-Ik for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 11:29:03 -0400 In-Reply-To: <20170916155010.16abbab9@lt70.mpip-mainz.mpg.de> (Robert Klein's message of "Sat, 16 Sep 2017 15:50:10 +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" To: Robert Klein Cc: emacs-orgmode@gnu.org Hello, Robert Klein writes: > I'm trying to use org-list-to-subtree in a publishing projects > sitemap-function. > > However, the org-list-to-subtree function only returns the first entry. > > That is, when I run > > (org-list-to-subtree l '(:istart "** ")) > > after setting the variable l (see below, I didn't want the > 120+ lines interrupting this text) , I get this result: > > > "** [[file: openbsd-pxe.org][OpenBSD deployment via PXE]] > > #+begin_article-info > #+BEGIN_date > 2017-09-10 > #+END_date > > #+BEGIN_tags > OpenBSD, PXE, Installation, Deployment > #+END_tags > > #+begin_article-info > > " > > where I expected all nine entries in the list. This is because L is not a valid list. In particular, it contains two consecutive blank lines, which breaks the list. Regards, -- Nicolas Goaziou