From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: iCal export & skipping entries Date: Wed, 24 Jan 2018 19:21:53 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eePgO-00050h-Um for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 13:22:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eePgL-0002pI-Rv for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 13:22:00 -0500 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:37243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eePgL-0002mK-KQ for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 13:21:57 -0500 Received: by mail-lf0-x233.google.com with SMTP id 63so131975lfv.4 for ; Wed, 24 Jan 2018 10:21:57 -0800 (PST) Received: from GEUS2690macwsm.local (0x3e2c8703.mobile.telia.dk. [62.44.135.3]) by smtp.gmail.com with ESMTPSA id u87sm696926lfk.8.2018.01.24.10.21.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 10:21:55 -0800 (PST) In-reply-to: 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: emacs-orgmode@gnu.org Hi, Following up on this, I've been looking in the source code. It seems that both :noexport: tags and ~org-icalendar-exclude-tags~ should be excluded from export according to ox-icalendar.el: https://github.com/emacsmirror/org/blob/master/lisp/ox-icalendar.el#L77 And more on line 258 However, with "emacs -Q" and then evaluating these settings: (setq org-icalendar-include-todo "all") (setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-due)) (setq org-icalendar-use-scheduled '(event-if-todo event-if-not-todo todo-start)) (org-icalendar-combine-agenda-files) (setq org-icalendar-exclude-tags "noicalexport") And then this simple Org file: * Foo :noexport:noicalexport: SCHEDULED: <2018-01-24 Wed> And then exporting with C-e c f it creates an ics file with CATEGORIES:noicalexport,noexport,??? instead of skipping the entry. -k. On 2018-01-24 at 07:31, Ken Mankoff wrote: > I've set up iCal export to export everything: > > (setq org-icalendar-include-todo "all") > (setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-due)) > (setq org-icalendar-use-scheduled '(event-if-todo event-if-not-todo todo-start)) > > There are some daily repeating habits (and TODOs) that I would like to > NOT export. Is there a way to tell the exporter to skip habits, or a > PROPERTY I can set? I've looked into :noexport: tag and the > EXPORT_OPTIONS property, but cannot find a way to skip something.