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 iElWBTr9dmbhBAAAqHPOHw:P1 (envelope-from ) for ; Sat, 22 Jun 2024 16:35:06 +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 iElWBTr9dmbhBAAAqHPOHw (envelope-from ) for ; Sat, 22 Jun 2024 18:35:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=cadilhac.name header.s=default header.b=eGkGVsPK; 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=cadilhac.name ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719074105; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=niQ6OLf2CZJto+NZ4FXaK+Ntrcr6yXyKyo5iWB7JT0E=; b=cqAulTbzzC2o7AqnfrFD9l15XRMg6WOoIriwXCD0HPzUq1rNtSMa/P5xjPdElCgmY9aME6 4Et7lSHYnyoMVu56/loh4ytwttw2V13zlvRP9jPSDBfgY26rqlg+Lw3dv3rYnuL18XEpop quwqTlXq3f6ua8GAIQJVsjgfU5iGl+XJIqwc4uzQLJvIZwKR10Cjzi9z4Jd6PMPW0Z/0xc ZjuIPsKZLnyZUSkLwXPBaUo1P6Dt9BGuXDT23cHbQHlhs319Ihp3sU3/VbKZKWLxZqdZ3m z3prgDBrKBgrZ5uKh7zMSAQXYAEigd96zl9SOeoXQf2+n0v9Uul7NNMDDaHGJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=cadilhac.name header.s=default header.b=eGkGVsPK; 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=cadilhac.name ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719074105; a=rsa-sha256; cv=none; b=QugBZoVRwQ7DNIQTbYoviYD9DJn0M62XD7dxGdjtcxGjjiXuEEyJxbbub2dE9jBPucOQB+ nGRxqXl9YPmCZsrzJxIynbmE4HgFxK/6Z0A9lKiz82qNg1TQ6D1PsOemNdHw0MZ8hqGQdt OZ7vrcvx7G1mtDKyWPLp7LaptmpJSOQRwGCFfzAklruW0SUcQCfm7u2+m7s9x2F01DNA36 gzPwBAMMci79iOVQW+YSmnqh6AkDvNmP+y/6gb8U1E92ejYsaDdjrTEYTGxNKKaLGhG+Li RNTN1wqKGYsMEeuBSQioy0PkpD4VpXReiKBEImTtSZjSSZV0q1rSBSFPHMinUQ== 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 8AD8A714ED for ; Sat, 22 Jun 2024 18:35:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sL3h6-0006xh-GH; Sat, 22 Jun 2024 12:34:28 -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 1sL3h4-0006x8-Pm for emacs-orgmode@gnu.org; Sat, 22 Jun 2024 12:34:26 -0400 Received: from cadilhac.name ([163.172.56.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sL3h3-0005br-7H for emacs-orgmode@gnu.org; Sat, 22 Jun 2024 12:34:26 -0400 Received: from cadilhac.name (localhost [127.0.0.1]) by cadilhac.name (OpenSMTPD) with ESMTP id f7e90c00 for ; Sat, 22 Jun 2024 16:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cadilhac.name; h= mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; s=default; bh=T1Uc1UAixeIrJLLAnY+uxg 5eBP4=; b=eGkGVsPK30JPL0y/xcIztjQ0itNHjVrGQ0Zj36OIHipQmHgV8S6Yfp Y0w+V0EixqVgBrqJc2Jh8lw+IqB0+5e4/XtYZt2IVyDT0hnNsPk3OYXZsPlsqkzm wKa21xepNM55pIY1/08xpbU87g05hVn3TolnKRsz269nt4m0Ysm7uA1W0oYZgJ02 Q/m4ufU/spUsRcxBLOGcHh00NEb5txBKtM9xkleWqWv4paSSgkJvA4UnaSQtZCJY ER+1oqegiSdSXm0Yd5XtCrTmTnotRcb5ej68eMwVxZAIawFXtCf7lq8RnC3tSkyM qgmiWrKneHHaUvN1M2kgx9btFYBN9HIQ== DomainKey-Signature: a=rsa-sha1; c=nofws; d=cadilhac.name; h= mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; q=dns; s=default; b=CDqkfbEZda5LaXWQ gSKivS4VAfcukvqvAqPp3tl/AwesAF7jP9TvcaqqQpfwh9Tuqziu1OzbDrqozlFf CC/gxNe5hFm/bXXIeSrSpYUgT6KFxtAFxwADlIKKUJ6Z91twFbj3fdjP6cCW7vgx /GuMjdLkBvzpry5GQixc8xRvP/cIhKgjVrTUrIUGxP0+Gf8y1xGje1OQmYLVu+kw qCzNfbM4Av3JqiSlAHSVFSk/IerO9rSiCBZUeVDaZsHJBL9x9LB0yS+xx5/EjmpN TQmJKngiTYmxIA2DI9bR+dveB4j8YZmZreHpUcvcII/PbxeKYjwuBw1NL4as8jf0 FysoZQ== Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by cadilhac.name (OpenSMTPD) with ESMTPSA id a3554785 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sat, 22 Jun 2024 16:34:21 +0000 (UTC) Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-795482e114cso290955885a.1 for ; Sat, 22 Jun 2024 09:34:21 -0700 (PDT) X-Gm-Message-State: AOJu0YydvI1tGi7yy8mORHr9TpTEVLJBjtQXB9rcQBMZePjLpN5D+Wjk 4ov7mP01u8quAfbrcKxyaa3b4/ZJsUPyo4cDwj5l0msY0fnmLscxbhHz3zSQKreTFVrOQRocX6I K6EOqsSQRVPwfDrN9IhmSGq0VadY= X-Google-Smtp-Source: AGHT+IEvRSxVN1BnmPjXc/Akoct4I/xtLzab7RyESi2Zpayf5GqkgGLQ7rLoquEoLkGwulRa6l2HzfkZdZLOHosxalo= X-Received: by 2002:a0c:fc06:0:b0:6b0:92f2:3b60 with SMTP id 6a1803df08f44-6b5409e12c3mr3903936d6.37.1719074060377; Sat, 22 Jun 2024 09:34:20 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Micha=C3=ABl_Cadilhac?= Date: Sat, 22 Jun 2024 18:33:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: ox-icalendar: Filter todo-types To: Org-Mode mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=163.172.56.42; envelope-from=michael@cadilhac.name; helo=cadilhac.name 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, SPF_HELO_PASS=-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: -5.51 X-Migadu-Queue-Id: 8AD8A714ED X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.51 X-TUID: rDbaHXRqBtce I have a task that was recurring, which I KILLED a few weeks ago. It now looks like: ** KILLED Do the right thing SCHEDULED: <2023-07-14 Fri +1w> ox-icalendar still exports it every week, because I have 'event-if-not-todo in org-icalendar-use-scheduled (which is the behavior I want for some other headers). BEGIN:VEVENT DTSTAMP:20240622T163042Z UID:SC-671b3d13-f985-472a-be33-b4eeb298f2cd DTSTART;VALUE=3DDATE:20230714 DTEND;VALUE=3DDATE:20230715 RRULE:FREQ=3DWEEKLY;INTERVAL=3D1 SUMMARY:S: KILLED Do the right thing : CATEGORIES:todos END:VEVENT I do not see any way to filter on todo-type in org-calendar-entry, the relevant bit thereof reading: (and scheduled (pcase todo-type (`todo (or (memq 'event-if-todo-not-done use-scheduled) (memq 'event-if-todo use-scheduled))) (`done (memq 'event-if-todo use-scheduled)) (_ (memq 'event-if-not-todo use-scheduled))) (org-icalendar--vevent entry scheduled (concat "SC-" uid) (concat scheduled-summary-prefix summary) loc desc cat tz class))) Would it be acceptable to add a variable to filter todo-types, e.g., with a variable org-icalendar-excluded-todo-types? More generally, one could think of introducing a variable: org-icalendar-entry-filter which receives the ENTRY argument of org-icalendar-entry, and would return non-nil if the entry is to be treated. (This is basically what I do using an advice.) Cheers, Micha=C3=ABl