all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Dates in headlines
@ 2023-01-28  8:12 Max Nikulin
  2023-02-02 20:37 ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Max Nikulin @ 2023-01-28  8:12 UTC (permalink / raw)
  To: emacs-orgmode

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]?



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Dates in headlines
@ 2022-08-16 17:45 Ypo
  2022-08-19  5:58 ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Ypo @ 2022-08-16 17:45 UTC (permalink / raw)
  To: samologist, Org-mode

[-- Attachment #1: Type: text/plain, Size: 1656 bytes --]

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



> ------------------------------------------------------------------------
> this iirc has been obsolete for many years and ime and on ml never was
> an issue.  i tried to find out why it was mentioned but did not find
> anything.  it might have been an ambiguity in the manual to do with
> active tses like in your example?  e.g. the agenda will remove the
> active ts at least in certain cases, but that is a deliberate feature.
>
> i successfully rely on inactive as below.  they are sorted by the ts.
> a capture template inserts them.
>
> much better than date trees for my case.  always show, sorted at
> bottom, no hierarchy, nothing out of sync, can scan and bisect to find
> an entry or get a sense of number, can change a ts and sort again,
> looks the same in the agenda, etc.
>
>
> ***** LOG [2021-07-01 Thu] vulcans mediating with klingons
> ***** LOG [2021-06-28 Mon 15:44] brawl.  scottie of course :(.
> ***** LOG [2021-06-28 Mon 15:44] hauled away AS garbage?
> ***** LOG [2021-06-28 Mon 15:44] klingons said garbage scow
>
>
> On 6/28/22, Ypo<ypuntot@gmail.com>  wrote:
> >/I think I've read somewhere that it is a "bad practice" to use dates in/
> >/headlines, is it correct? I haven't found it in the manual./
> >
> >/Like:/
> >
> >/**** <2022-06-29 mi. 10:30> Meeting/
> >
> >/Best regards/
> >
> *From*: 	Samuel Wales
> *Subject*: 	Re: Dates in headlines
> *Date*: 	Tue, 28 Jun 2022 16:23:02 -0700
>

[-- Attachment #2: Type: text/html, Size: 2663 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Dates in headlines
@ 2022-06-28  9:06 Ypo
  2022-06-28 21:13 ` Jean Louis
  2022-06-28 23:23 ` Samuel Wales
  0 siblings, 2 replies; 11+ messages in thread
From: Ypo @ 2022-06-28  9:06 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

I think I've read somewhere that it is a "bad practice" to use dates in 
headlines, is it correct? I haven't found it in the manual.

Like:

**** <2022-06-29 mi. 10:30> Meeting

Best regards

[-- Attachment #2: Type: text/html, Size: 602 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-07-19 16:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-28  8:12 Dates in headlines Max Nikulin
2023-02-02 20:37 ` Ihor Radchenko
2023-07-14 12:57   ` Max Nikulin
2023-07-18  9:24     ` Ihor Radchenko
2023-07-19 16:27       ` Max Nikulin
  -- strict thread matches above, loose matches on Subject: below --
2022-08-16 17:45 Ypo
2022-08-19  5:58 ` Ihor Radchenko
2022-06-28  9:06 Ypo
2022-06-28 21:13 ` Jean Louis
2022-06-28 23:23 ` Samuel Wales
2022-06-29 18:11   ` Ypo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.