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 oG+4MqGzT1/JcwAA0tVLHw (envelope-from ) for ; Wed, 02 Sep 2020 15:00:49 +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 eJ2ELqGzT1+NRgAAB5/wlQ (envelope-from ) for ; Wed, 02 Sep 2020 15:00:49 +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 32936940308 for ; Wed, 2 Sep 2020 15:00:49 +0000 (UTC) Received: from localhost ([::1]:43856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDUFk-0003mQ-2l for larch@yhetil.org; Wed, 02 Sep 2020 11:00:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDUFA-0003kn-O2 for emacs-orgmode@gnu.org; Wed, 02 Sep 2020 11:00:12 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:35909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDUF7-0005aN-Rx for emacs-orgmode@gnu.org; Wed, 02 Sep 2020 11:00:12 -0400 Received: by mail-wr1-x434.google.com with SMTP id z1so5600083wrt.3 for ; Wed, 02 Sep 2020 08:00: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=Hll0M5pFl0GDkzWO8CjEzIM/CsTdV/vtzMR4hVEdLVU=; b=iLJClCouugvBnvFhTrrMiDd8uG4tsMpgTSPoMNw1dWPKOQIDYb3QQtASCBSafvnzxr pGJX7iwILtG8fviwZhXpN0Tp3vQQSYOSliOsHbkjXt96EIHzP1hFQFjIcEMa6+TDg0SP olR010dtudyQB71IPQKTM5mTNWc4dLqPJ3PloeXMtj5he7NG2Gvw6x8ZONJrPQnWiwKb WFsrINRxMAMVZrNnlKTfjDsiNA+2yppX0CZDc6JWBSrflQTqtLqXVh/2P99z+kaQJqKk Tyl4TPcU0oG8cU79MSPfZYk6i05hVGMwrIQIBDRyyz81XCbVz2xLsS3WBon9yqL8MHKE paYg== 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=Hll0M5pFl0GDkzWO8CjEzIM/CsTdV/vtzMR4hVEdLVU=; b=DcSko6U2MUOUITrzlIl1vVImidRxVBFjvupTZNWwO/hKM2uSM028mJJc9aC7Toi1GS wmWvxzM021OYuZvqkp2lf3Pa3+MhIzVJ+oRaA4I+cIEbTGzseC/3CoM6GdRT2mSmbo2p QJKoWw108EWu35PPCus1eN3j5+3bT37e5HfHUD0hkn3Ek1XTGzz4Zc/gOclc+4sy7iMN pFVzdB15RSuv97rVVogfGIK5/yOHX+67ADJohWdML1+/sTUaIqi4nnkXfFkf7bNz4QCg qoPGVvu50yxapqwkNLdMuNZ6z/jKV4DcqVJAy7b/EXmNsBjbmVdfj1o0TrFOe+iWinmd ykhQ== X-Gm-Message-State: AOAM531pkpRp1Q1cdj/WhFP1BBeGFqQzyPemifY9dhqQlRLF12jqnIyr pwa+/sE3YT0XaPwXmvrOVCdT2u5HQTTz7w== X-Google-Smtp-Source: ABdhPJzFCshy0o/ljpHShK9VuXtd+5jmcvPwRZbsMBKaPeokSUKfA2r5cYRq6Z+SIS/Rfq8t3rnXZw== X-Received: by 2002:adf:f106:: with SMTP id r6mr7703954wro.106.1599058807698; Wed, 02 Sep 2020 08:00:07 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:871:26a6:64eb:9c90]) by smtp.gmail.com with ESMTPSA id b8sm7102994wmh.48.2020.09.02.08.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2020 08:00: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> <87mu28l2bj.fsf@web.de> Gmane-Reply-To-List: yes Date: Wed, 02 Sep 2020 17:00:05 +0200 In-Reply-To: <87mu28l2bj.fsf@web.de> (Michael Heerdegen's message of "Wed, 02 Sep 2020 15:45:36 +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::434; envelope-from=rpluim@gmail.com; helo=mail-wr1-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: -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=iLJClCou; 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: 8fsIRxHcKf8f >>>>> On Wed, 02 Sep 2020 15:45:36 +0200, Michael Heerdegen said: Michael> Robert Pluim writes: >> How about: >>=20 >> 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 'tim= e)) >> (org-add-props txt props 'org-marker marker >> 'date date 'todo-state todo-state Michael> Thanks for looking at this. Michael> Ok - That gives me a headline in the agenda, but a wrong one (= more or Michael> less, a random headline in the same file, at a seemingly unrel= ated Michael> location). 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 heading I=CA=BCm in, as a string". >> >> ** 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)> >>=20 Michael> But it seems those time stamps are not allowed to span Michael> multiple lines Michael> (at least I don't get it work). Seems org doesn't Michael> recognize them as Michael> such? >>=20 >> It=CA=BCs working fine for me in org-9.3.6. Note that I have my defa= ult >> agenda view set to a fortnight, and those dates span two different >> weeks. Michael> I didn't mean time spans. What doesn't work for me are time _= stamps_ Michael> that span multiple text lines. You've lost me. Can you show me an example? Robert