From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aPrgG8AUeWYQOgAAqHPOHw:P1 (envelope-from ) for ; Mon, 24 Jun 2024 06:40:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aPrgG8AUeWYQOgAAqHPOHw (envelope-from ) for ; Mon, 24 Jun 2024 08:40:00 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TB0ck9Zw; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719211200; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2pyQOLLE7LeemaDRbtcbMkSk3WcSiaOH0za19iRKsm8=; b=KC7ugX5YT26kuMp7/X9OFUxMHkfN4rf2kNBLQ5AnEKbZR99etKMnSe+vSr9F0GL/TsKTg3 3rdQzPlIxT3Fd7i1cjj0+H/yd5hyMOUI7k45tKqTIYsZXsNqGPllExDfrj9aX1HTFqt/Dy o5eMRKWo4X8SEPgJrmI4P/il1PdDIucowtyozsqGqkkt30DYmRmHu/HpjXNmkLIqyU8ii+ In2wUn91SVk+Oo+MzrRgMGksAkC/xoahZxoEWPA02osmr3utfK9P5hDgszDoKJglGgYvuk qWhcYsIcU5qUmmzw5mag+X8UL56uEvrkBY0nj7nrLezvOA4NSI65OKKQaIacMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TB0ck9Zw; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719211200; a=rsa-sha256; cv=none; b=d+/TaUFiE96HVE1OTiJAG0efHmJ+4TWcUPOyLVnuyAOFnqhqEDZX04MTtClp45CcC8sgGX f8fJP5cqm1E1CXD8W9pUMdksSgMZmdJ3EZoFaiBn/1gr+p0PO8TSLlJ36uHIYaEuQ7o15Y PQqeAN1Qr428UQWWasfsEE9Ag1jmlT5U5CgKBQs2c5KKnYw5XeJ1RC6bz9Z9OqW7QZpNx+ y1/SNEDq4htpRdC3uGDPAPYNJ//N9KeZuLvtRWO9/d5XuZRnoDfnakabZR/IE5m3H5+SmO YkRApsrPF9kkUV952nS2w1DKEbFFK7S/d44j4HDKL4luxDdZVqSi6wN+p3WijQ== 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 2CF408060 for ; Mon, 24 Jun 2024 08:40:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLdM3-00028M-2j; Mon, 24 Jun 2024 02:39:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLdM0-00027y-4n for emacs-orgmode@gnu.org; Mon, 24 Jun 2024 02:39:04 -0400 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLdLx-00079x-Oy for emacs-orgmode@gnu.org; Mon, 24 Jun 2024 02:39:03 -0400 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-2598a57b2c1so1966737fac.0 for ; Sun, 23 Jun 2024 23:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719211139; x=1719815939; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=2pyQOLLE7LeemaDRbtcbMkSk3WcSiaOH0za19iRKsm8=; b=TB0ck9ZwbewCmL8MwYXYGET8iYlL5wSdOPgbrQirSIUnkEphXqeBt5ED7owjKdxYVz mn+Sj3uQX6h71XWjFe+wOK1QXa4zpbbmgtiFpunP2fDBZ3lErUXJ2tgvW8DTBPY6fWOq fw34x/wxhDBoxvNTQGMvnKrc+8QvdF0/wEZUywpjw+DP0pGVCM420tXt3bCwIt/inhxH Z9z5ZJUufU7QNFCWWQx7uTHzMysVmmJ0KSEgyAG9U8zNpfIGbm36zyoXRkkJdLy04jc1 NDPEEHgxfdukMrNmWzYbzULfD0+nEjnFjpHko9ZwZ8XW/Rpoz8W0nKbEdMOL9gNnxJik cNgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719211139; x=1719815939; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2pyQOLLE7LeemaDRbtcbMkSk3WcSiaOH0za19iRKsm8=; b=xVPDvhMmxgDmb/lJ5cawgB3NI5No8CXBgRCVDYkb0aMLOHSAvdDBwT4i4Po83gr6jk UBptP7UZUdNfLHGLDqETDIswV7pbowS3GUZEp7mgmQ7Che2sZFZnIC2JVAbCKFZCD1M6 elEL1YZJ7KHVNQ30JOYs/WL56F59CahnfnfKdadMGt2re68aoLXqRqe/vwYBlKI6FSAF H0ur/FNdv8XK/W+QTcLubhTqgqLBomvQErvLMBAy7OkMTZdbJFq1uHnuW9W7Mfgo2MvA ZPBw3nNs3fUmsTr06ZG2rHbRaCZZ8TKHm3ec/bLaRnj+XEFld/gZCr4xNhEk2MlMYnZ5 HB3A== X-Gm-Message-State: AOJu0Yz0oaG0xzRakjU+dyzJLlXnUc6vugcmpJ4bekSI7j1xyrHxF+tP 4Fzhu0fMHjee3hqfHxprk6an6K11GyWOynR1yuxfbFMDEaai5yvy X-Google-Smtp-Source: AGHT+IFe+6/YO88EWdkUVgs4PvOmPhnQe3RfwIfVjBIHPxJugxkAFFEniPE5RuB2vIDapVpO5qnCpA== X-Received: by 2002:a05:6870:a2c7:b0:254:b0b0:9336 with SMTP id 586e51a60fabf-25d06bc8565mr4202266fac.2.1719211138791; Sun, 23 Jun 2024 23:38:58 -0700 (PDT) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7066e62b636sm3208679b3a.83.2024.06.23.23.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 23:38:57 -0700 (PDT) From: Jack Kamm To: Ihor Radchenko , =?utf-8?Q?Micha=C3=ABl?= Cadilhac Cc: Org-Mode mailing list Subject: Re: ox-icalendar: Filter todo-types In-Reply-To: <87v81zu7cl.fsf@localhost> References: <874j9ko8uu.fsf@gmail.com> <87a5jbvqzl.fsf@localhost> <87v81zu7cl.fsf@localhost> Date: Sun, 23 Jun 2024 23:38:56 -0700 Message-ID: <87a5jaalq7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4860:4864:20::2f; envelope-from=jackkamm@gmail.com; helo=mail-oa1-x2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.62 X-Migadu-Queue-Id: 2CF408060 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.62 X-TUID: Xij66HiEwz28 Ihor Radchenko writes: > Another concern is that we already have `org-export-with-tasks' where > you can specify which todo keywords should be exported and which > headings should be exported, according to their todo keyword. So, > "no-export" appears to unnecessary. That's a good point. Michael, does `org-export-with-tasks' suffice for your original need/request? > However, after I looked at the RFC in more details now, I can see that > the values of STATUS property depend on the entry type: > > statvalue-event = "TENTATIVE" ;Indicates event is tentative. > / "CONFIRMED" ;Indicates event is definite. > / "CANCELLED" ;Indicates event was cancelled. > ;Status values for a "VEVENT" > > statvalue-todo = "NEEDS-ACTION" ;Indicates to-do needs action. > / "COMPLETED" ;Indicates to-do completed. > / "IN-PROCESS" ;Indicates to-do in process of. > / "CANCELLED" ;Indicates to-do was cancelled. > ;Status values for "VTODO". > > statvalue-jour = "DRAFT" ;Indicates journal is draft. > / "FINAL" ;Indicates journal is final. > / "CANCELLED" ;Indicates journal is removed. > ;Status values for "VJOURNAL". > > Maybe we can introduce separate variables mapping todo keyword to status > depending on the entry type (VTODO vs. VEVENT; we do not export VJOURNAL)? Sure, but we should also consider the STATUS for VEVENTs created from non-TODO entries. Perhaps these variables could map tags as well as todo keywords to status? E.g., in the following: (setq org-icalendar-event-status-map '((cancelled . ("KILLED" "cancelled")))) Then any VEVENT created from entries whose todo-keyword or tag matches the above would have STATUS set to CANCELLED. For example, both of the following entries would contain VEVENTs exported as such: * An event that was cancelled :cancelled: A non-todo entry with active timestamp <2024-06-23>. It will be exported with STATUS as CANCELLED. * KILLED A todo that was cancelled SCHEDULED: <2024-06-22> This todo entry has both a scheduling timestamp as well as an active timestamp <2024-06-23>, and may create both VEVENT and VTODO. Any VEVENTs created will have STATUS as CANCELLED, due to "KILLED" being in org-icalendar-event-status-map. Any VTODO created will have STATUS set according to org-icalendar-todo-status-map instead.