Re: [PATCH] "Cache corruption detected" when editing CLOCK timestamp by hand

2022-10-04 Thread Ihor Radchenko
Ihor Radchenko writes: >> Should we consider the above CLOCK line as a valid running clock or >> maybe it should be parsed as a paragraph? > > I am still leaving this question open despite applying the above patch. > At least, we need to get the bug fixed. I now made Org parse malformed CLOCK li

Re: [PATCH] "Cache corruption detected" when editing CLOCK timestamp by hand

2022-05-30 Thread Ihor Radchenko
Ihor Radchenko writes: >> Minimal reproducer: >> >> 1. Create an empty org file and open it >> 2. Yank the following string: "CLOCK: [2021-10-22 Fri 10:41]--[2021]" >> 3. M-: (org-element-at-point) > > The attached is tentative fix for cases like the above. Applied onto main via 4dda0d7a8. This

Re: [PATCH] "Cache corruption detected" when editing CLOCK timestamp by hand

2022-04-29 Thread Ihor Radchenko
Ihor Radchenko writes: > Should we consider the above CLOCK line as a valid running clock or > maybe it should be parsed as a paragraph? Nicolas, do you have any comment on this? I am inclined to treat CLOCK: [2021-10-22 Fri 10:41]--[2021] as a paragraph, not a clock line. Best, Ihor

[PATCH] "Cache corruption detected" when editing CLOCK timestamp by hand

2021-11-23 Thread Ihor Radchenko
Ihor Radchenko writes: > This looks like a bug in org-element-timestamp-parser > > Minimal reproducer: > > 1. Create an empty org file and open it > 2. Yank the following string: "CLOCK: [2021-10-22 Fri 10:41]--[2021]" > 3. M-: (org-element-at-point) The attached is tentative fix for cases like

Re: "Cache corruption detected" when editing CLOCK timestamp by hand

2021-10-22 Thread Ihor Radchenko
Ihor Radchenko writes: > William Denton writes: > >> Sometimes I edit timestamps by hand when I'm clocking things. I had a task >> where I'd clocked in and wanted to close by hand (by adding --[2021 and so >> on to >> the CLOCK line) but when I started typing this popped up in a window: >> >

Re: "Cache corruption detected" when editing CLOCK timestamp by hand

2021-10-22 Thread Ihor Radchenko
William Denton writes: > Sometimes I edit timestamps by hand when I'm clocking things. I had a task > where I'd clocked in and wanted to close by hand (by adding --[2021 and so on > to > the CLOCK line) but when I started typing this popped up in a window: > > Warning (emacs): org-element--ca

Re: "Cache corruption detected" when editing CLOCK timestamp by hand

2021-10-22 Thread William Denton
On 22 October 2021, William Denton wrote: Sometimes I edit timestamps by hand when I'm clocking things. I had a task where I'd clocked in and wanted to close by hand (by adding --[2021 and so on to the CLOCK line) but when I started typing this popped up in a window: I think I was too hasty

"Cache corruption detected" when editing CLOCK timestamp by hand

2021-10-22 Thread William Denton
Sometimes I edit timestamps by hand when I'm clocking things. I had a task where I'd clocked in and wanted to close by hand (by adding --[2021 and so on to the CLOCK line) but when I started typing this popped up in a window: Warning (emacs): org-element--cache: Cache corruption detected in w