From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UOfOMOxoZWJGvAAAbAwnHQ (envelope-from ) for ; Sun, 24 Apr 2022 17:12:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0ND3L+xoZWKERwAAG6o9tA (envelope-from ) for ; Sun, 24 Apr 2022 17:12:44 +0200 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 570421442F for ; Sun, 24 Apr 2022 17:12:44 +0200 (CEST) Received: from localhost ([::1]:40080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nidul-0003GC-0m for larch@yhetil.org; Sun, 24 Apr 2022 11:12:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niduM-0003G1-9A for emacs-orgmode@gnu.org; Sun, 24 Apr 2022 11:12:18 -0400 Received: from mail-ed1-f53.google.com ([209.85.208.53]:46067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1niduK-00029J-Dm for emacs-orgmode@gnu.org; Sun, 24 Apr 2022 11:12:17 -0400 Received: by mail-ed1-f53.google.com with SMTP id be20so7391900edb.12 for ; Sun, 24 Apr 2022 08:12:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:content-transfer-encoding; bh=Ue9jbAfiAolYLfflBsuM2tf7Kg2qwMeRXZsNz+0noFs=; b=Qgw65DAUecEMbkBRHUl+oVsYCXnK0r9+tHOUPuu1bzoODo9TbmncLjs2MCa8s42DpJ GKyv+ECZZ+xmb50uF33MnD6HQAoQIg10z069CjRNwbSybpRjkB2XmCZGitRnvf3UOx3T o96eNXAKv24ORi9pBdu2gVrKSD3/NQoxPEnxU1Y4ykzgt9vJk6Lpf1i5p5+nFeFYxUGq iZclq5N8/C9rqrVNrQ7OODK2QO4lqNkp0F9beeVPS314H+3rNlfw3S0235wl2alhLSJ/ J0gYYIT4FGEizDHl6s7mgQzTQzyAE+WGEhkz0s7pgacG6tpalhRFTJn8iQ30JBNPSuLA HVJA== X-Gm-Message-State: AOAM533hjKYodmgfUUTldOQLC6kzvetv/1XTXD+sxY3r6flYKaiQ6iTJ 8zKl5Y2ernO1KEDQTSuvKrBJdmHxYDDpOWAI+nGCHSvy X-Google-Smtp-Source: ABdhPJzxUAs77ay68pMQDSXixDyCCj3IAmkQP4yqJsCy/mBC/ivyC8po+4MqI0doQiql78iB7frRODdcNWD2AnQwkcM= X-Received: by 2002:a50:954b:0:b0:41a:c9cb:8778 with SMTP id v11-20020a50954b000000b0041ac9cb8778mr14598748eda.165.1650813134050; Sun, 24 Apr 2022 08:12:14 -0700 (PDT) MIME-Version: 1.0 References: <87pml6nc6a.fsf@localhost> In-Reply-To: From: Rainer Thiel Date: Sun, 24 Apr 2022 17:12:03 +0200 Message-ID: Subject: Fwd: solved: how to exclude several single dates from a diary block (was: how to exclude several single dates from a diary block) To: org-mode-email Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=209.85.208.53; envelope-from=rainer.thiel@gmail.com; helo=mail-ed1-f53.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Reply-To: r.thiel@uni-jena.de Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650813164; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Ue9jbAfiAolYLfflBsuM2tf7Kg2qwMeRXZsNz+0noFs=; b=QZn0Q9vbA6cLyOMcHgKe3IRxdLSwjxGmAl2JGx8zHArZ2QReVpK0NrtTUP/7BMrIJnXFi4 la7maWWzAaLMZavaWEnA6ZIOr6UyBVyx6Dhr7jYD7bg/wMFEkl7igiRNMWLDslRMCcQ8T4 HR7cb+urmG0X45aBVI3Q25WKU/fvf9LDiX9YdwYT514FH+lGhW/XQpDe32VDTHFs2H6LHw SKV1YfLrq8hli9fVtJxIww7dumCVuSEjP9qU60PvOwnTx7yaIeIh6TVJg4BcsbCEHZIW8Q sHdO2xz8OlI2G7AaEapsr3XsvPJDzY7zrm7xc0H5Vgc9l+PUF7aEuNXAiD2+ow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650813164; a=rsa-sha256; cv=none; b=JjDrc5Jfs3vOJq1UNKHCXSw9jKOBMP6d8JKvvcNNYH3vMQ2MfaIeQBzyz0UUwEpQGukkxz p6zpAmCj3yj5LD/ttdoWJOiJEuTYADih/DnD3tZjOgu+E174WD+Wc+95qFQjwfDC/VgPtP /fo9jYiky/JRyNbAKkDrHqB4ktqTrsIfKq2roIDz+xMIOvwyE7UjML4EoiP98Rv9taIT/z 6vTem4jhRPW8uaF4h1TKyeWlpQmey9MH1HUacLjzrfn8ZCh+wSCwZVQm2LXOEGoawNNNs6 66uoiUvGROTV7jUcM6jYzdLbt1sa2vPhwo+bYeormQBc1ZEJjNajcyJ9ZlcuzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=uni-jena.de (policy=none); 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" X-Migadu-Spam-Score: 2.18 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=uni-jena.de (policy=none); 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" X-Migadu-Queue-Id: 570421442F X-Spam-Score: 2.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: qKUZcPpNYpS0 Thank you very much, indeed, Ihor. diary-date was exactly the function I was looking for. Please allow me to report that in the meantime I have found a method that seems to suit my personal needs even better. You can use <%%(org-class 2022 04 11 2022 07 15 4 21 26)> to set every Thursday (4) in the time range between April 11th, 2022 and July 15th, 2022, but exclude (the Thursdays in) ISO weeks 21 and 26 (ie, 2022-05-26 and 2022-06-30). Less to type and easier to do if your calendar carries ISO-week numbers. Many thanks again for the help Rainer Am So., 24. Apr. 2022 um 09:59 Uhr schrieb Ihor Radchenko : > > Rainer Thiel writes: > > > I use Org-Mode to schedule most everything, including my lectures > > which typically are recurring events. I have learnt that I can > > exclude a certain range of days or weeks where no lectures take place. > > For this, I use: > > > > * TODO 12:15--13:45 Lecture: Aristotle > > <%%(unless (diary-block 12 20 2021 12 31 2021) (and (=3D 3 > > (calendar-day-of-week date)) (diary-block 10 18 2021 02 11 2022)))> > > > > What I need to do for this year is to exclude single dates such as > > April 26th, 2022 and June 21st, 2022. Can someone please help me how > > to achieve this? > > You can just change > <%%(unless (diary-block 12 20 2021 12 31 2021) ...)> > to > <%%(unless (or (diary-date 04 26 2022) (diary-date 06 21 2022) (diary-blo= ck 12 20 2021 12 31 2021)) ...)> > > Best, > ihor -- Prof. Dr. Rainer Thiel Institut f=C3=BCr Altertumswissenschaften 07737 Jena, Germany (EU) r.thiel@uni-jena.de --=20 Prof. Dr. Rainer Thiel Institut f=C3=BCr Altertumswissenschaften 07737 Jena, Germany (EU) r.thiel@uni-jena.de