From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +FC2LdTxUF/pcAAA0tVLHw (envelope-from ) for ; Thu, 03 Sep 2020 13:38:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6OWFKdTxUF/UBAAAbx9fmQ (envelope-from ) for ; Thu, 03 Sep 2020 13:38:28 +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 2E33F94051F for ; Thu, 3 Sep 2020 13:38:28 +0000 (UTC) Received: from localhost ([::1]:59414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDpRb-0000VZ-03 for larch@yhetil.org; Thu, 03 Sep 2020 09:38:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDpQA-0007EL-SF for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 09:36:58 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:50901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDpQ9-0000Bk-1B for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 09:36:58 -0400 Received: by mail-pj1-x102c.google.com with SMTP id b16so1554239pjp.0 for ; Thu, 03 Sep 2020 06:36:56 -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=MC4E5N+CGE/LFDQTVaEPdu7bJd80dltM+ZELWBKEQVk=; b=eTnnuDYlUYtLUKxLmyeDGM/oLMRHcEmlaV5QZQnYq+kXCa8hwUZ3m0QohLmh4CXhSt ozTeFlVYXl7nR1zl+T397GlTgSCXFC4GBnP8sczxxKBw2TTMQeeamDleBZ3jiUBxSZQX ej3drWlfOAFno7TtBmyiO7Z0QmeDM7W1zO/D2FaY90hj9+xs4htzPUyx57+/MLNnGrro YfBAQi8n5vUuyZGGM4XDQyYcfLTU/4JCfNugEhx2osZQ3MpLeyseCianWTVae6JPGb7I Fq76p/uh++qc2cctoglqfTCBBBQ/jSjwhpla3jp1DLFP3lQNhQHv/9aPNcujme7sc0Mr 0PQg== 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=MC4E5N+CGE/LFDQTVaEPdu7bJd80dltM+ZELWBKEQVk=; b=Wu5flV9XzQKUtMxdALmdjd7gHTJ80OQ968FJ+pemtAiCOSBhA6Gq0a8LlgqN2/vh1x 7MV4nxF1iHJJIGL8vwTpM3KIyy/3PtEqSwRoPpJW6VXE7C/+uGFBs+PlfaCbaf8kM55B W6dEnrm9Qv42GCtfFP0WtYGJce02y5FDnyposc6qvgSD/T6R9PUFdoN7Lc901Tl5omz8 CP2EOsahZHxEZHggcKgZOnlEraWCEK4Sn2TMJA78uq2Bbenp+YVCP8jGn89PQy4mcK0S wkYpReGE6Y7v9gJpkIFdvSXcZmOq0m0ydkMuXz4F+73McEg0aGbvKfdPtrMo7zFGBCH0 OWsw== X-Gm-Message-State: AOAM532STxfnjWdbcs11cWrNJ1qpmchrJtE3+RqaHR8W92uv+q0w4VDj m2Du+NSGtau4T3cCTHPpcGU= X-Google-Smtp-Source: ABdhPJx/DPxVJZwQTg9j5T7KBqGt/kNEJduBherMM2NO8sBiX3aLhWJdUYEDZFH00Y9mGQz6SiY0TQ== X-Received: by 2002:a17:90b:3351:: with SMTP id lm17mr1631044pjb.151.1599140215670; Thu, 03 Sep 2020 06:36:55 -0700 (PDT) Received: from localhost ([66.154.105.2]) by smtp.gmail.com with ESMTPSA id y5sm3052112pge.62.2020.09.03.06.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 06:36:54 -0700 (PDT) From: Ihor Radchenko To: Michael Heerdegen , Robert Pluim Subject: Re: Headline generation as in diary? In-Reply-To: <87zh67j92p.fsf@web.de> 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> Date: Thu, 03 Sep 2020 21:35:54 +0800 Message-ID: <875z8vm18l.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::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.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: 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=eTnnuDYl; 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: iGqXOqxMBQXI > When dealing with complicated date rules it can likely happen that a > diary sexp doesn't fit into one line. Diary sexp can be a user-defined function. If your sexp needs to span multiple lines, it is probably worth defining a function and simply using <%%(your-function)> as a timestamp. Best, Ihor Michael Heerdegen writes: > Robert Pluim writes: > >> I can push my change to org, but I=CA=BCm not a regular org contributor,= so >> I=CA=BCd prefer to hear from one of the maintainers first. > > Sorry - I meant, I see no reason to touch the existing code. No need to > change anything for what I want. > >> Michael> This doesn't work: >> >> Michael> | ** APPT 17:00 Test >> Michael> | SCHEDULED: <%%(and (or (diary-date 03 09 2020) >> Michael> | (diary-date 04 09 2020)))> > >> I think that=CA=BCs just a consequence of timestamps not being allowed to >> span multiple lines in org, unlike diary. > > This is bad. Why is that? Can it be changed? > > When dealing with complicated date rules it can likely happen that a > diary sexp doesn't fit into one line. > > Regards, > > Michael.