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 KJi4J8dBT19AdwAA0tVLHw (envelope-from ) for ; Wed, 02 Sep 2020 06:55:03 +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 mB6AI8dBT18uXgAAB5/wlQ (envelope-from ) for ; Wed, 02 Sep 2020 06:55:03 +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 2B998940919 for ; Wed, 2 Sep 2020 06:55:02 +0000 (UTC) Received: from localhost ([::1]:33790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDMfb-00071j-5Q for larch@yhetil.org; Wed, 02 Sep 2020 02:54:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDMeq-00070F-1d for emacs-orgmode@gnu.org; Wed, 02 Sep 2020 02:54:12 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:37285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDMeo-0000VW-1o for emacs-orgmode@gnu.org; Wed, 02 Sep 2020 02:54:11 -0400 Received: by mail-wm1-x32f.google.com with SMTP id a9so3335360wmm.2 for ; Tue, 01 Sep 2020 23:54:09 -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=ghjkA5Boe0uu4kME/6if8Ua/hRxUNysZhJvWPEywIFw=; b=uco3Dx8GILttRSTn59t5Y+dqIMOOQVD+FOFaWqXeBRTanU7X8zbfF1Rp2EgMeT4fAE E6t6QxfiHO7ipMzik0MejSONe6gZmXB2//8bc4xv4y/T6uoSLHhlceGBphgPIpJrTsvP QKDr6uI/8JGrZ6s14QpdaIltFGatREQ9jfqChC4Q3scUDwsOR7ZfUjmi4BPq3/qRfVhA 7CCKuJIdjrb0P4hPRVhNIHPhUdv4F5DtCZ5oClIpK/mWSNOUCWlYHI+bj3MKSvskJcLb E7EVsA/jScwVVz/1t99D3jM5n89Ubg/VyeirAKO/pP3jN9UUVpuRdQqvrDNmAfemYJbe lGpw== 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=ghjkA5Boe0uu4kME/6if8Ua/hRxUNysZhJvWPEywIFw=; b=LIC4IbCigVY/+MpqjpHoXdci2PWUZwdgt6+tTRC8bzxHXAsQo5WVqS5Sj5oP06JQDB dKmGD95y/hwnUNtaXKguB7eHrwa9fFSICgXkgehadiV68ynJ0dw0yE3l++gTARWc8zUP QBwKqdZJevOXVrub80H5ZJ87Zss+Z6p6ur6c24kaVDQ1enJcF4TsQn+E6CsUqjQ6aHAZ YIDHtNqxB/FNXX5ecI3IJAxHr4b1iaKY07zZyi3L0ETGoPBiWmnVybSai6VsSZRqS0v1 Pec8xtBp1hFM+b6JlZDPvdLCJ4K12zP84lLJbVKKwzFDw54ixSB2cg3YTLNkemB459BC DP9w== X-Gm-Message-State: AOAM530KgcxcizfTTbFa7tLVWaH5Bu0bp4OjjVUXWpIq8SKkZrBYAYUA 4o77h+CC9vUayxlHP7mQbJ25t31qIpk= X-Google-Smtp-Source: ABdhPJyu4DmkdhxyTGVeAJ9k34vww3p7qeUtFnAp1VgqZsvy1QPoVTPlsWxobWG4Zbf2qmgwCREUhg== X-Received: by 2002:a1c:96c5:: with SMTP id y188mr5509500wmd.72.1599029647189; Tue, 01 Sep 2020 23:54:07 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:2092:9c81:7555:7807]) by smtp.gmail.com with ESMTPSA id j10sm5551700wrn.2.2020.09.01.23.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 23:54:06 -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> Gmane-Reply-To-List: yes Date: Wed, 02 Sep 2020 08:54:05 +0200 In-Reply-To: <87v9gxcg9k.fsf@web.de> (Michael Heerdegen's message of "Tue, 01 Sep 2020 23:56:55 +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::32f; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32f.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=uco3Dx8G; 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.79 X-TUID: 032VO+DhDTFX >>>>> On Tue, 01 Sep 2020 23:56:55 +0200, Michael Heerdegen said: Michael> Robert Pluim writes: >> It=CA=BCs triggered by the %%(, I believe, but not in headlines. Michael> Yes, I see that in the code. Michael> But actually I seem to have the opposite problem: I can't make= the Michael> original headline appear in the agenda. When the sexp doesn't= return a Michael> string the agenda will contain a line saying "SEXP entry retur= ned empty Michael> string" instead of showing the headline. It seems `org-anniversary' supports %d for year and that=CA=BCs about it, which is not surprising, since it=CA=BCs just a wrapper around `diary-anniversary'. How about: diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 78fe13303..9049b3a42 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5772,7 +5772,7 @@ displayed in agenda view." r (replace-match "" nil nil r))) (if (string-match "\\S-" r) (setq txt r) - (setq txt "SEXP entry returned empty string")) + (setq txt (org-no-properties (org-get-heading t t t t)))) (setq txt (org-agenda-format-item extra txt level category tags 'time= )) (org-add-props txt props 'org-marker marker 'date date 'todo-state todo-state (I=CA=BCm guessing yet-another-config-variable is unnecessary) >> You can use them in timestamps as well, which is useful for weird ti= me >> periods >>=20 >> ** Just before midnight on a few days 23:00-24:00 >> <%%(org-block 2020 8 31 2020 9 2)> >> <%%(org-block 2020 9 10 2020 9 12)> Michael> But it seems those time stamps are not allowed to span multipl= e lines Michael> (at least I don't get it work). Seems org doesn't recognize t= hem as Michael> such? It=CA=BCs working fine for me in org-9.3.6. Note that I have my default agenda view set to a fortnight, and those dates span two different weeks. Robert