From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id S7SbG1ANUV/FCQAA0tVLHw (envelope-from ) for ; Thu, 03 Sep 2020 15:35:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8DshF1ANUV8uMQAAB5/wlQ (envelope-from ) for ; Thu, 03 Sep 2020 15:35:44 +0000 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 E331D94053D for ; Thu, 3 Sep 2020 15:35:43 +0000 (UTC) Received: from localhost ([::1]:57200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDrH3-0002m3-1i for larch@yhetil.org; Thu, 03 Sep 2020 11:35:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDrGU-0002kQ-LT for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 11:35:06 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:42802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDrGT-0001X5-1z for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 11:35:06 -0400 Received: by mail-pf1-x434.google.com with SMTP id 17so2613768pfw.9 for ; Thu, 03 Sep 2020 08:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=X5b/uzSnymr6lm4xjbxKu7JJbSK0MeUu76SFoc3Gwr0=; b=aiR3YAsKm/jLuDlgFTJ9SoUw8mww36pKUD+kz30BAmeTYvJfeQFSCO3IW1yO7TcsAX m/FmkBV158flIkzI/Tl72RzT8x25V2wdSg3rzLWnUtPTI+C1bnFth+EbDq7hl9TjVM+V z4kK5P9XVFiNhvx3wcq1ld2j4SRlQVyVZaW2fwIKwFqV6QhjSa60z7gwCarJsexNCxbg SzUz5m9N/98l1sUNXLjWeu1GaDAKJnEajxrAos4ae04cqVo+fe0DmZvEDcunz6CFOncO kjRbVilnN2fEWusevRTK1nfAiQWrN9c0SmSkbZMY5V25mB7+V/n8eTbbsW+nB9dIl4P3 PG9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=X5b/uzSnymr6lm4xjbxKu7JJbSK0MeUu76SFoc3Gwr0=; b=eKmfQmCQsTHBqu5d9O17YxQmzF9eR27+/66j4F6gVMPYqpalfXqp+z6YAWXP2o8RZn UMNLLBTmZPCXTR8Zl4xwjxvBSAij3K7VrUH5upclW7v9pMue+2wwNxE1dmVceh8yVlyc sLnq2tP1x8VCO5FhQ60Lv01o79nmN4IzFbYwJuQOu9i81Q/vDcJ/KwlTQgyxelSHXqai Xcbs3Yjc1Iq/qwB63d2+zaLG6DYob3sEnzvGMWLakB3UAXpeWlAQEHWH4pWBkmm3hHzq A2C1qsEPU2chn7KRlS1CQdgdB678FFH9TXIB7c9i1rX+5qmV24sgeAC7gQFay3uiiEvN o3qg== X-Gm-Message-State: AOAM530TfxTkFyArpdrhQEmmTerbA9ZEStWJYM8DoQYt2uWlXFsz5Glb M9PL/3WO3nDVvWzHxquTiuE= X-Google-Smtp-Source: ABdhPJzSupI8VK9EpxtMBVFsOc+yxbUF3FdUAYH8RWZ1cZx9KO5aVRfNGCIOek/8GAaN0YgvfH3oFg== X-Received: by 2002:a17:902:407:: with SMTP id 7mr4502732ple.167.1599147303691; Thu, 03 Sep 2020 08:35:03 -0700 (PDT) Received: from localhost ([66.154.105.2]) by smtp.gmail.com with ESMTPSA id t14sm2803845pjs.42.2020.09.03.08.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 08:35:02 -0700 (PDT) From: Ihor Radchenko To: Robert Pluim Subject: Re: Headline generation as in diary? In-Reply-To: References: <878sdth8fm.fsf@web.de> <87zh697ctp.fsf@ucl.ac.uk> <874kohh6el.fsf@web.de> <87v9gxcg9k.fsf@web.de> <87mu28l2bj.fsf@web.de> <87h7sflrmv.fsf@web.de> <87zh67j92p.fsf@web.de> <875z8vm18l.fsf@localhost> Date: Thu, 03 Sep 2020 23:34:03 +0800 Message-ID: <87zh66lvro.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=yantar92@gmail.com; helo=mail-pf1-x434.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Heerdegen , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=aiR3YAsK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: 5/iTAS57QgJ+ > It can? That=CA=BCs not documented, as far as I can tell. It is literally called "diary sexp". You can use any elisp sexp there, like (let ...) or (or ...) or (function-name ...) Robert Pluim writes: >>>>>> On Thu, 03 Sep 2020 21:35:54 +0800, Ihor Radchenko said: > > >> When dealing with complicated date rules it can likely happen that= a > >> diary sexp doesn't fit into one line. > > Ihor> Diary sexp can be a user-defined function. If your sexp needs t= o span > Ihor> multiple lines, it is probably worth defining a function and si= mply > Ihor> using <%%(your-function)> as a timestamp. > > It can? That=CA=BCs not documented, as far as I can tell. > > Robert