From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Hocking Subject: Issue with tags in custom agenda view ics export Date: Sun, 13 Jan 2019 16:10:35 +0000 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.38\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giiLe-0000Zs-Gz for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 11:10:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giiLZ-0000jH-0w for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 11:10:50 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:40340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giiLY-0000cP-HT for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 11:10:48 -0500 Received: by mail-wm1-x32f.google.com with SMTP id f188so6575975wmf.5 for ; Sun, 13 Jan 2019 08:10:40 -0800 (PST) Received: from winnetou.home ([2.31.141.92]) by smtp.gmail.com with ESMTPSA id a187sm24672999wmf.33.2019.01.13.08.10.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Jan 2019 08:10:36 -0800 (PST) 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 everyone I'm using Emacs 25.3 and Org Mode 9.2. I'm fairly new to this (will be = getting into Elisp soon but haven't yet done so) but I'm already using = the excellent org mode to improve my management of our BSc Psychology = programme. I=E2=80=99ve looked online and in the mailing list archives = and don=E2=80=99t see anything that answers my issue directly, though no = doubt much of it could be relevant. My issue is fairly straightforward. I am able to export from org mode to a .ics file in two ways. The first = way is using the org mode exporter. This ends up including the = appropriate tags in the .ics file within the CATEGORY field. The second = way is using a custom agenda view with a specified .ics export file. = However, this second way does not, no matter how much I try, include the = tags. I've tweaked several variables that might be of importance, = including ~~org-icalendar-categories~~ but this seems to have no effect = (CATEGORY remains blank), or, with one combination of values that I've = now forgotten, I've managed to get a '???' in the CATEGORY field. It seems pretty obvious now that either this variable is not being = observed by the custom agenda view or there's another simple mistake I'm = making somewhere else; quite possibly there's some export setting that = I'm missing from my startup file. Would someone on this list who sees tags inclusion in their custom = agenda view (exporting to ics) please share their code with me? Below is = the snippet I'm using from ~~org-agenda-custom-commands~~ (I'm starting = with my birthdays calendar as a simple case. In case it's useful, I = include a snippet from that file at the end.) #+BEGIN_SRC elisp ;; birthdays and anniversaries - show feedback; agenda view ("ia" ;; key is=20 "[a]anniveraries for the next 90 days" ;; description agenda ;; results type nil ;; search term ((org-agenda-start-day "2019-01-01") (org-agenda-span 365) ;; show next year = days (org-agenda-tag-filter-preset '("+anniversary")) ) ("~/Dropbox/orgExport/anniversaries.ics") ;; = file to used when exporting (not automatic) ) #+END_SRC #+BEGIN_SRC orgmode * A H's Birthday :PROPERTIES: :DESCRIPTION: Age not known=20 :END: <2019-01-12 Sat +1y> #+END_SRC Cheers Ian=