From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6MLzKRLeMGBHUQAA0tVLHw (envelope-from ) for ; Sat, 20 Feb 2021 10:01:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IPqmJRLeMGBrRQAAbx9fmQ (envelope-from ) for ; Sat, 20 Feb 2021 10:01:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0BAB72247F for ; Sat, 20 Feb 2021 11:01:54 +0100 (CET) Received: from localhost ([::1]:46264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDP5D-0002Nd-EJ for larch@yhetil.org; Sat, 20 Feb 2021 05:01:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDP3r-0002Mv-VY for emacs-orgmode@gnu.org; Sat, 20 Feb 2021 05:00:29 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:51307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDP3k-0001Oe-Fy for emacs-orgmode@gnu.org; Sat, 20 Feb 2021 05:00:25 -0500 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id B11C51BF20F; Sat, 20 Feb 2021 10:00:14 +0000 (UTC) From: Nicolas Goaziou To: Stephen Eglen Subject: Re: Bug: exporting a subtree to icalendar omits body of subtree [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] References: <87a6rzwpjj.fsf@cam.ac.uk> Mail-Followup-To: Stephen Eglen , emacs-orgmode@gnu.org Date: Sat, 20 Feb 2021 11:00:13 +0100 In-Reply-To: <87a6rzwpjj.fsf@cam.ac.uk> (Stephen Eglen's message of "Sat, 20 Feb 2021 00:28:32 +0000") Message-ID: <87im6njbyq.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.201; envelope-from=mail@nicolasgoaziou.fr; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.37 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0BAB72247F X-Spam-Score: -2.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: CmWRWyaKMrXF Hello, Stephen Eglen 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