emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Repeating task not repeating
@ 2021-08-18  6:10 Loris Bennett
  2021-08-18  8:23 ` Alan Ristow
  2021-09-27  8:39 ` Bastien
  0 siblings, 2 replies; 9+ messages in thread
From: Loris Bennett @ 2021-08-18  6:10 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

The following MWE

* Test repeating task

** My tasks

*** TODO Test task
    SCHEDULED: <2021-08-18 Wed +1w>

works fine:

* Test repeating task

** My tasks

*** TODO Test task
    SCHEDULED: <2021-08-25 Wed +1w>
    :PROPERTIES:
    :LAST_REPEAT: [2021-08-18 Wed 07:50]
    :END:

    - State "DONE"       from "TODO"       [2021-08-18 Wed 07:50]

However, when part of a larger file, the state information is inserted twice:

* Test repeating task

** My tasks

*** TODO Test task
    SCHEDULED: <2021-08-25 Wed +1w>
    :PROPERTIES:
    :LAST_REPEAT: [2021-08-18 Wed 08:02]
    :END:
    - State "DONE"       from "TODO"       [2021-08-18 Wed 08:02]
    - State "DONE"       from "TODO"       [2021-08-18 Wed 08:02]

Moreover for a similar task in the same larger file, when the state is
changed to DONE, I get the error

  user-error: Before first headline at position 1 in buffer gtd.org

and neither the SCHEDULED date nor the LAST_REPEAT date are updated:

*** DONE Read mail
    SCHEDULED: <2021-08-18 Wed +1w>
    :PROPERTIES:
    :LAST_REPEAT: [2021-07-21 Wed 08:32]
    :ID:       639369df-7c91-443a-89bd-b7f97719bda7
    :END:
    - State "DONE"       from "TODO"       [2021-08-18 Wed 07:27]

I'm running Org mode version 9.4.6 on Emacs 26.1.

Any ideas what I could look for in the larger Org file which might be
causing the problem?

Cheers,

Loris
-- 
This signature is currently under construction.



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

* Re: Repeating task not repeating
  2021-08-18  6:10 Repeating task not repeating Loris Bennett
@ 2021-08-18  8:23 ` Alan Ristow
  2021-08-18 11:31   ` Loris Bennett
  2021-08-31 11:43   ` Repeating task not repeating Timothy
  2021-09-27  8:39 ` Bastien
  1 sibling, 2 replies; 9+ messages in thread
From: Alan Ristow @ 2021-08-18  8:23 UTC (permalink / raw)
  To: Loris Bennett, emacs-orgmode

This seems like the same issue I was having last month. A patch was 
posted here:

https://orgmode.org/list/87wnpxv1d8.fsf@localhost/

As far as I can see, it has not yet been applied to the official org 
repo, but I applied the patch manually to my local org and everything 
has worked fine since.

I tried to check https://updates.orgmode.org/ for more info, but got a 
502 Bad Gateway error.

Alan


On 8/18/21 8:10 AM, Loris Bennett wrote:
> Hi,
>
> The following MWE
>
> * Test repeating task
>
> ** My tasks
>
> *** TODO Test task
>      SCHEDULED: <2021-08-18 Wed +1w>
>
> works fine:
>
> * Test repeating task
>
> ** My tasks
>
> *** TODO Test task
>      SCHEDULED: <2021-08-25 Wed +1w>
>      :PROPERTIES:
>      :LAST_REPEAT: [2021-08-18 Wed 07:50]
>      :END:
>
>      - State "DONE"       from "TODO"       [2021-08-18 Wed 07:50]
>
> However, when part of a larger file, the state information is inserted twice:
>
> * Test repeating task
>
> ** My tasks
>
> *** TODO Test task
>      SCHEDULED: <2021-08-25 Wed +1w>
>      :PROPERTIES:
>      :LAST_REPEAT: [2021-08-18 Wed 08:02]
>      :END:
>      - State "DONE"       from "TODO"       [2021-08-18 Wed 08:02]
>      - State "DONE"       from "TODO"       [2021-08-18 Wed 08:02]
>
> Moreover for a similar task in the same larger file, when the state is
> changed to DONE, I get the error
>
>    user-error: Before first headline at position 1 in buffer gtd.org
>
> and neither the SCHEDULED date nor the LAST_REPEAT date are updated:
>
> *** DONE Read mail
>      SCHEDULED: <2021-08-18 Wed +1w>
>      :PROPERTIES:
>      :LAST_REPEAT: [2021-07-21 Wed 08:32]
>      :ID:       639369df-7c91-443a-89bd-b7f97719bda7
>      :END:
>      - State "DONE"       from "TODO"       [2021-08-18 Wed 07:27]
>
> I'm running Org mode version 9.4.6 on Emacs 26.1.
>
> Any ideas what I could look for in the larger Org file which might be
> causing the problem?
>
> Cheers,
>
> Loris


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

* Re: Repeating task not repeating
  2021-08-18  8:23 ` Alan Ristow
@ 2021-08-18 11:31   ` Loris Bennett
  2021-08-18 17:42     ` Nick Dokos
  2021-08-31 11:43   ` Repeating task not repeating Timothy
  1 sibling, 1 reply; 9+ messages in thread
From: Loris Bennett @ 2021-08-18 11:31 UTC (permalink / raw)
  To: emacs-orgmode

Hi Alan,

Alan Ristow <alan@ristow.info> writes:

Thanks for the information.  I had a vague feeling I had read something
about the problem, but failed to find it again after being away on
holiday.

Cheers,

Loris

> This seems like the same issue I was having last month. A patch was posted here:
>
> https://orgmode.org/list/87wnpxv1d8.fsf@localhost/
>
> As far as I can see, it has not yet been applied to the official org repo, but I
> applied the patch manually to my local org and everything has worked fine since.
>
> I tried to check https://updates.orgmode.org/ for more info, but got a 502 Bad
> Gateway error.
>
> Alan
>
>
> On 8/18/21 8:10 AM, Loris Bennett wrote:
>> Hi,
>>
>> The following MWE
>>
>> * Test repeating task
>>
>> ** My tasks
>>
>> *** TODO Test task
>>      SCHEDULED: <2021-08-18 Wed +1w>
>>
>> works fine:
>>
>> * Test repeating task
>>
>> ** My tasks
>>
>> *** TODO Test task
>>      SCHEDULED: <2021-08-25 Wed +1w>
>>      :PROPERTIES:
>>      :LAST_REPEAT: [2021-08-18 Wed 07:50]
>>      :END:
>>
>>      - State "DONE"       from "TODO"       [2021-08-18 Wed 07:50]
>>
>> However, when part of a larger file, the state information is inserted twice:
>>
>> * Test repeating task
>>
>> ** My tasks
>>
>> *** TODO Test task
>>      SCHEDULED: <2021-08-25 Wed +1w>
>>      :PROPERTIES:
>>      :LAST_REPEAT: [2021-08-18 Wed 08:02]
>>      :END:
>>      - State "DONE"       from "TODO"       [2021-08-18 Wed 08:02]
>>      - State "DONE"       from "TODO"       [2021-08-18 Wed 08:02]
>>
>> Moreover for a similar task in the same larger file, when the state is
>> changed to DONE, I get the error
>>
>>    user-error: Before first headline at position 1 in buffer gtd.org
>>
>> and neither the SCHEDULED date nor the LAST_REPEAT date are updated:
>>
>> *** DONE Read mail
>>      SCHEDULED: <2021-08-18 Wed +1w>
>>      :PROPERTIES:
>>      :LAST_REPEAT: [2021-07-21 Wed 08:32]
>>      :ID:       639369df-7c91-443a-89bd-b7f97719bda7
>>      :END:
>>      - State "DONE"       from "TODO"       [2021-08-18 Wed 07:27]
>>
>> I'm running Org mode version 9.4.6 on Emacs 26.1.
>>
>> Any ideas what I could look for in the larger Org file which might be
>> causing the problem?
>>
>> Cheers,
>>
>> Loris



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

* Re: Repeating task not repeating
  2021-08-18 11:31   ` Loris Bennett
@ 2021-08-18 17:42     ` Nick Dokos
  2021-08-19  6:21       ` Suppress org-lint checker (was: Repeating task not repeating) Loris Bennett
  0 siblings, 1 reply; 9+ messages in thread
From: Nick Dokos @ 2021-08-18 17:42 UTC (permalink / raw)
  To: emacs-orgmode

Do `M-x org-lint` on your agenda files. It may not solve this problem, but
it's always worth trying first, since it's so easy - and it may find other
problems that you are unaware of.
-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler



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

* Suppress org-lint checker (was: Repeating task not repeating)
  2021-08-18 17:42     ` Nick Dokos
@ 2021-08-19  6:21       ` Loris Bennett
  0 siblings, 0 replies; 9+ messages in thread
From: Loris Bennett @ 2021-08-19  6:21 UTC (permalink / raw)
  To: emacs-orgmode

Hi Nick,

Nick Dokos <ndokos@gmail.com> writes:

> Do `M-x org-lint` on your agenda files. It may not solve this problem, but
> it's always worth trying first, since it's so easy - and it may find other
> problems that you are unaware of.

org-lint is actually the first thing I reach for when I experience org
oddities.

On that topic, is there a way to suppress a single checker?  I
occasionally reference files which are on file systems mounted via
sshfs.  If the file system has not been mounted, org-lint will flag such
files as missing, which isn't such a helpful piece of information.

Cheers,

Loris

-- 
This signature is currently under construction.



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

* Re: Repeating task not repeating
  2021-08-18  8:23 ` Alan Ristow
  2021-08-18 11:31   ` Loris Bennett
@ 2021-08-31 11:43   ` Timothy
  1 sibling, 0 replies; 9+ messages in thread
From: Timothy @ 2021-08-31 11:43 UTC (permalink / raw)
  To: Alan Ristow; +Cc: Loris Bennett, emacs-orgmode

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

Hi Alan,

> This seems like the same issue I was having last month. A patch was posted here:
>
> <https://orgmode.org/list/87wnpxv1d8.fsf@localhost/>
>
> As far as I can see, it has not yet been applied to the official org repo, but I
> applied the patch manually to my local org and everything has worked fine since.
>
> I tried to check <https://updates.orgmode.org/> for more info, but got a 502 Bad
> Gateway error.

Good to hear that the patch is working well for you. I’ve recently checked
updates.orgmode.org and you may be glad to hear that it appears there :)

The patch itself looks good to me, hopefully it gets merged soon (I’m not
familiar with the org-agenda code).

All the best,
Timothy

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

* Re: Repeating task not repeating
  2021-08-18  6:10 Repeating task not repeating Loris Bennett
  2021-08-18  8:23 ` Alan Ristow
@ 2021-09-27  8:39 ` Bastien
  2021-09-29  7:25   ` Loris Bennett
  1 sibling, 1 reply; 9+ messages in thread
From: Bastien @ 2021-09-27  8:39 UTC (permalink / raw)
  To: Loris Bennett; +Cc: emacs-orgmode

Hi Loris,

can you confirm the bug is gone with latest Org?

~$ git clone https://git.savannah.gnu.org/git/emacs/org-mode.git

Thanks,

-- 
 Bastien


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

* Re: Repeating task not repeating
  2021-09-27  8:39 ` Bastien
@ 2021-09-29  7:25   ` Loris Bennett
  2021-09-29  7:28     ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Loris Bennett @ 2021-09-29  7:25 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi Bastien,

Bastien <bzg@gnu.org> writes:

> Hi Loris,
>
> can you confirm the bug is gone with latest Org?
>
> ~$ git clone https://git.savannah.gnu.org/git/emacs/org-mode.git

Yes, the bug has been fixed for my use-case.

Thanks for all your hard work and sorry for not confirming sooner.

Cheers,

Loris
-- 
This signature is currently under construction.


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

* Re: Repeating task not repeating
  2021-09-29  7:25   ` Loris Bennett
@ 2021-09-29  7:28     ` Bastien
  0 siblings, 0 replies; 9+ messages in thread
From: Bastien @ 2021-09-29  7:28 UTC (permalink / raw)
  To: Loris Bennett; +Cc: emacs-orgmode

Hi Loris,

"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> Thanks for all your hard work and sorry for not confirming sooner.

No problem, thanks for confirming!

-- 
 Bastien


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

end of thread, other threads:[~2021-09-29  7:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-18  6:10 Repeating task not repeating Loris Bennett
2021-08-18  8:23 ` Alan Ristow
2021-08-18 11:31   ` Loris Bennett
2021-08-18 17:42     ` Nick Dokos
2021-08-19  6:21       ` Suppress org-lint checker (was: Repeating task not repeating) Loris Bennett
2021-08-31 11:43   ` Repeating task not repeating Timothy
2021-09-27  8:39 ` Bastien
2021-09-29  7:25   ` Loris Bennett
2021-09-29  7:28     ` Bastien

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).