[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Headline generation as in diary?
From: |
Michael Heerdegen |
Subject: |
Re: Headline generation as in diary? |
Date: |
Wed, 02 Sep 2020 15:45:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Robert Pluim <rpluim@gmail.com> writes:
> 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
Thanks for looking at this.
Ok - That gives me a headline in the agenda, but a wrong one (more or
less, a random headline in the same file, at a seemingly unrelated
location).
> (Iʼm guessing yet-another-config-variable is unnecessary)
I think so toom yes.
> >> You can use them in timestamps as well, which is useful for
> >> weird time
> >> periods
> >>
> >> ** 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
> Michael> multiple lines
> Michael> (at least I don't get it work). Seems org doesn't
> Michael> recognize them as
> Michael> such?
>
> Itʼs 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.
I didn't mean time spans. What doesn't work for me are time _stamps_
that span multiple text lines.
Thanks,
Michael.
- Headline generation as in diary?, Michael Heerdegen, 2020/09/01
- Re: Headline generation as in diary?, Eric S Fraga, 2020/09/01
- Re: Headline generation as in diary?, Michael Heerdegen, 2020/09/01
- Re: Headline generation as in diary?, Michael Heerdegen, 2020/09/01
- Re: Headline generation as in diary?, Robert Pluim, 2020/09/02
- Re: Headline generation as in diary?,
Michael Heerdegen <=
- Re: Headline generation as in diary?, Robert Pluim, 2020/09/02
- Re: Headline generation as in diary?, Michael Heerdegen, 2020/09/02
- Re: Headline generation as in diary?, Robert Pluim, 2020/09/03
- Re: Headline generation as in diary?, Michael Heerdegen, 2020/09/03
- Re: Headline generation as in diary?, Ihor Radchenko, 2020/09/03
- Re: Headline generation as in diary?, Michael Heerdegen, 2020/09/03
- Re: Headline generation as in diary?, Ihor Radchenko, 2020/09/03
- Re: Headline generation as in diary?, Michael Heerdegen, 2020/09/03
- Re: Headline generation as in diary?, Ihor Radchenko, 2020/09/03
- Re: Headline generation as in diary?, Michael Heerdegen, 2020/09/03