[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug
From: |
Morgan Smith |
Subject: |
Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug |
Date: |
Tue, 02 Jan 2024 15:25:58 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ihor Radchenko <yantar92@posteo.net> writes:
> Morgan Smith <Morgan.J.Smith@outlook.com> writes:
>
>> lisp/org-agenda.el (org-agenda-get-scheduled): Consolidate deadline
>> fetching code. Don't check if deadline is shown when
>> 'org-agenda-skip-scheduled-if-deadline-is-shown' has a value of
>> 'repeated-after-deadline'.
>>
>> Currently when 'org-agenda-skip-scheduled-if-deadline-is-shown' has a
>> value of 'repeated-after-deadline' then there is no effect. This is
>> because when 'org-agenda-get-scheduled' is run on later dates, the
>> previous deadlines are not put in 'deadline-pos'.
>
> May you please provide a detailed reproducer demonstrating the bug you
> are trying to fix? Such reproducer could be a basis of a new test.
See a detailed reproducer attached to this mail. It has a task defined
as this:
* TODO task
SCHEDULED: <2017-03-06 Mon +2d> DEADLINE: <2017-03-10>
Running said reproducer currently fails as follows (the numbers are the
days of the month).
(string-equal
"06\nScheduled: task\n08\nScheduled: task\n10\nScheduled: task\nDeadline:
task\n"
"06\nScheduled: task\n08\nScheduled: task\n10\nScheduled: task\nDeadline:
task\n12\nScheduled: task\n")
As you can see, we expect to not see anything scheduled after the
deadline if 'org-agenda-skip-scheduled-if-deadline-is-shown' is set to
'repeated-after-deadline', however, we actually see that things continue
to be scheduled. Hence the bug is that that option currently does
nothing.
0001-Testing-Add-tests-for-org-agenda-skip-scheduled-if-d.patch
Description: Text Data
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug,
Morgan Smith <=
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug, Ihor Radchenko, 2024/01/03
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug, Morgan Smith, 2024/01/03
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug, Ihor Radchenko, 2024/01/04
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug, Morgan Smith, 2024/01/16
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug, Ihor Radchenko, 2024/01/16
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug, Morgan Smith, 2024/01/16
- Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug, Ihor Radchenko, 2024/01/17