emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Stephen Eglen <sje30@cam.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: exporting a subtree to icalendar omits body of subtree [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]
Date: Sat, 20 Feb 2021 11:00:13 +0100	[thread overview]
Message-ID: <87im6njbyq.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87a6rzwpjj.fsf@cam.ac.uk> (Stephen Eglen's message of "Sat, 20 Feb 2021 00:28:32 +0000")

Hello,

Stephen Eglen <sje30@cam.ac.uk> writes:

> With a simple test file /tmp/o.ics:
>
>      
> ** test 
>    <2021-03-18 Thu 15:00-16:00>
>    body of text

[...]

> If however when I export, I leave the point on line 1, and then do C-c
> C-e C-s c f I get the following calendar, with no events.
>
> Version 2
>
>
> BEGIN:VCALENDAR
> VERSION:2.0
> X-WR-CALNAME:o
> PRODID:-//Stephen Eglen//Emacs with Org mode//EN
> X-WR-TIMEZONE:GMT
> X-WR-CALDESC:test
> CALSCALE:GREGORIAN
> END:VCALENDAR

When exporting a subtree, the top-level outline becomes the title of the
document, i.e., the document becomes morally equivalent to:

    #+title: test
    <2021-03-18 Thu 15:00-16:00>
    body of text

There is indeed no event to export in this case. Only level 2 outline
will become events. You may want to export region instead.

Regards,
-- 
Nicolas Goaziou


  reply	other threads:[~2021-02-20 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-20  0:28 Bug: exporting a subtree to icalendar omits body of subtree [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] Stephen Eglen
2021-02-20 10:00 ` Nicolas Goaziou [this message]
2021-02-21 12:23   ` Stephen Eglen

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=87im6njbyq.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=sje30@cam.ac.uk \
    /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).