emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dates in headlines


From: Max Nikulin
Subject: Re: Dates in headlines
Date: Sat, 28 Jan 2023 15:12:27 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 19/08/2022 12:58, Ihor Radchenko wrote:
Ypo writes:

I found it again:

"If the headline contains a timestamp, it is removed from the link,
which results in a wrong link—you should avoid putting a timestamp in
the headline."

https://orgmode.org/manual/Handling-Links.html#FOOT28

Unless I miss something, this footnote is plain wrong. The timestamps
are not removed. At least not when I run M-x org-store-link on a
headline with timestamp with emacs -Q.

I have realized that "first wins" parsing principle (consider +a =b+ c*d=) may mean a problem for timestamp at the end of link text. So

    [[file:test.txt][Test [2023-01-28 Sat]]]

requires a zero-width space after the bracket closing the timestamp. The same is applicable to fuzzy link to headings. So either

    [[*Heading \[2023-01-28 Sat\]][Heading [2023-01-28 Sat]​]]
ZWS in between--------------------------------------------^^

or

    [[*Heading \[2023-01-28 Sat\]]]

should be used. `org-insert-link' handles it correctly, but when typing links from keyboard, users should be aware of such kind of pitfall. So timestamps in headings may be source of some inconvenience.

May it happen that in some old Org version timestamps at the end of headings were removed due by code intended to handle statistics cookie [1/10]?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]