emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Robert Klein <roklein@roklein.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-list-to-subtree strange behaviour
Date: Sat, 16 Sep 2017 17:28:59 +0200	[thread overview]
Message-ID: <87efr6achw.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <20170916155010.16abbab9@lt70.mpip-mainz.mpg.de> (Robert Klein's message of "Sat, 16 Sep 2017 15:50:10 +0200")

Hello,

Robert Klein <roklein@roklein.de> 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

      reply	other threads:[~2017-09-16 15:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-16 13:50 org-list-to-subtree strange behaviour Robert Klein
2017-09-16 15:28 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efr6achw.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=roklein@roklein.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).