From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +C1xNvSXUF+BVAAA0tVLHw (envelope-from ) for ; Thu, 03 Sep 2020 07:15:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UJ9RMvSXUF+OAQAA1q6Kng (envelope-from ) for ; Thu, 03 Sep 2020 07:15:00 +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 021489403A8 for ; Thu, 3 Sep 2020 07:14:59 +0000 (UTC) Received: from localhost ([::1]:59386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDjST-0007jJ-SQ for larch@yhetil.org; Thu, 03 Sep 2020 03:14:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDjS9-0007iT-QA for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 03:14:37 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:37929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDjS8-0000Hc-4r for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 03:14:37 -0400 Received: by mail-wr1-x42d.google.com with SMTP id g4so1962214wrs.5 for ; Thu, 03 Sep 2020 00:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=6U/a4Q7atpxC0FcGzN/D69WxERY6VgZLeoYPy3V2jpM=; b=Z0K/1o6T8WJ22YYf66bz1QMmikBb+7TKusBQoXwHdxBSJnnOjtMALaOxvC6/g+wS28 lrLI0GjNcc04hNkUq1v2lFDeZMJ58TlJHXWABxYg0ORF5ydJUJmaBRWhQ/xiLYlNBqMs OYvhV0MT0PT8eFNDZj+YIzh8KXEeUxZxZ2XRJwFF178bQlWYqEU2h0d3LSioxHnEapQZ TspERxMRw5t201r3N4WuToNIruIBafx6s8+XAx9XgFz+FDPihRxtfuux68/KPHHOXi+i 7KmMr86YqByPl6gtl6Khs283LBvE9AH1wEcPafNy/jRAryNQL2TcwO4B3WbTcQTAm+Uq dKhQ== 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:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=6U/a4Q7atpxC0FcGzN/D69WxERY6VgZLeoYPy3V2jpM=; b=uiNjTlhRaYzD9/jz1ry+nXbFwYWfJ08kh7SxQSZ2TAij+8KHrUg99PulON3XcV98Jt ykt8juSIf7fRtzU1La9StNKJnZHymlH+fcxvhP6/EyumSWhQz1AWsQ16wtVk9sPgjnwz J/J3qYlbOVHXQGMiqPu6zC0o7ULGrxI52Jhw2y2N7z4kMcgwJTIRRtP0CB/S/Lk/qJW9 +xHbC3XAZrALmB7QBLqjZHgCwjs56xFZZFIx/AAg8/g1YpDn/gL/wu2I5y5lRwZfPFW/ IaG8Sg9PEDHHSUz0M+90rKAOdthmARIjY8K3mSsO0oDP7f62+oIBu27mtQLlnODMTRNF KkBA== X-Gm-Message-State: AOAM533V7rZ9I5O/f01xlAXrMDWqIrZrz3lW7MWr9qkyfzpJke5/4SZb Gyq4ach0TWN7zJwFh9Sm5wDG70lcuC8= X-Google-Smtp-Source: ABdhPJzbQPjr1OU/ZFyMipOtxVnfvclIM39DUItHoI3FTxHZ6EB4egBviey9GSOk6gjVjQtdc9fZAg== X-Received: by 2002:adf:81e6:: with SMTP id 93mr828343wra.412.1599117274022; Thu, 03 Sep 2020 00:14:34 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id v2sm3102536wrn.44.2020.09.03.00.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 00:14:33 -0700 (PDT) From: Robert Pluim To: Michael Heerdegen Subject: Re: Headline generation as in diary? 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> Gmane-Reply-To-List: yes Date: Thu, 03 Sep 2020 09:14:32 +0200 In-Reply-To: <87h7sflrmv.fsf@web.de> (Michael Heerdegen's message of "Thu, 03 Sep 2020 00:51:04 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42d.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: -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.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=Z0K/1o6T; 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.71 X-TUID: e2D/iZfzjMBg >>>>> On Thu, 03 Sep 2020 00:51:04 +0200, Michael Heerdegen said: Michael> Robert Pluim writes: >> OK. That=CA=BCs as far as my org-hacking knowledge goes, so perhaps = someone >> else here has an idea of the right way to invoke "tell me what headi= ng >> I=CA=BCm in, as a string". Michael> The situation is actually like this: the empty string issue do= esn't Michael> happen with time stamps <%%(...)>, this always uses the correct Michael> headline. Seems %%() entries are expected to return a string = OTOH since Michael> the headline seems to be ignored. I guess this is reasonable.= Dunno if Michael> there is something to change here at all in the code. OK. 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. Michael> Ok, the other thing: broken time stamps with line breaks: >> You've lost me. Can you show me an example? Michael> The difference here is only a line break: 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)))> Michael> But this works: Michael> | ** APPT 17:00 Test Michael> | SCHEDULED: <%%(and (or (diary-date 03 09 2020) (diary-date 0= 4 09 2020)))> I think that=CA=BCs just a consequence of timestamps not being allowed to span multiple lines in org, unlike diary. Robert