* Scheduling and calendar-day-of-week
@ 2018-04-06 7:46 Cecil Westerhof
2018-04-06 8:23 ` stardiviner
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Cecil Westerhof @ 2018-04-06 7:46 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
There is something I want to do on Monday, Wednesday and Friday. So I tried:
*** TODO Monday, Wednesday and Friday
SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
This seems to work: I see the activity on the correct days.
But then I changed today's entry to DONE. But then all are gone in my
agenda view.
What I want is for today's item to be 'gone' and the future ones still
displayed as TODO. Is that possible?
--
Cecil Westerhof
[-- Attachment #2: Type: text/html, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Scheduling and calendar-day-of-week
2018-04-06 7:46 Scheduling and calendar-day-of-week Cecil Westerhof
@ 2018-04-06 8:23 ` stardiviner
2018-04-06 14:16 ` Nick Dokos
2018-04-06 19:52 ` Tim Cross
2 siblings, 0 replies; 6+ messages in thread
From: stardiviner @ 2018-04-06 8:23 UTC (permalink / raw)
To: Cecil Westerhof; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
You might want to try some org-habit stuff.
Like:
** HABIT Hand Craft Time
SCHEDULED: <2017-11-28 Tue .+2d/5d>
:PROPERTIES:
:STYLE: habit
:LOGGING: TODO DONE(!)
:END:
Cecil Westerhof <cldwesterhof@gmail.com> writes:
> There is something I want to do on Monday, Wednesday and Friday. So I tried:
> *** TODO Monday, Wednesday and Friday
> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
>
> This seems to work: I see the activity on the correct days.
> But then I changed today's entry to DONE. But then all are gone in my agenda view.
> What I want is for today's item to be 'gone' and the future ones still displayed as TODO. Is that possible?
- --
[ stardiviner ] don't need to convince with trends.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAlrHLo0ACgkQG13xyVro
msN/6QgAqHxLMQea6y2DW8LaidU0BsQsSbHJBOOVVhhlm07vXZEDzTCne/lqpiEp
m2cwcn5k1+PCxiwJwG2cLWxEvsmKfLuHqdmfldn9fNN6JeL+N7NfJPB9++0v+4IH
LgoZHpGuwSbN6cI4edXEUMnKgeSWOq5MOE+ehT0ZNsL+pWJlXsT7XHJWGHKN6W0J
TDnmgYmiFo3Gnyn+/UbmJ4RrOTzheumLDPN2iPe+e5qao8QtSPp3SRtANzdF0fph
vnvqfKZ0wlDmUxqJLKu/BQn7S/bYps1pLr2+guHPn5X8xfaaqSUyLbhq/sYxPS+u
WyPNDvkvAGgl7ZU/n7zDtYN2rUILuw==
=32md
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Scheduling and calendar-day-of-week
2018-04-06 7:46 Scheduling and calendar-day-of-week Cecil Westerhof
2018-04-06 8:23 ` stardiviner
@ 2018-04-06 14:16 ` Nick Dokos
2018-04-06 16:46 ` Brian Shine
2018-04-06 19:52 ` Tim Cross
2 siblings, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2018-04-06 14:16 UTC (permalink / raw)
To: emacs-orgmode
Cecil Westerhof <cldwesterhof@gmail.com> writes:
> There is something I want to do on Monday, Wednesday and Friday. So I tried:
> *** TODO Monday, Wednesday and Friday
> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
>
> This seems to work: I see the activity on the correct days.
> But then I changed today's entry to DONE. But then all are gone in my agenda view.
> What I want is for today's item to be 'gone' and the future ones still displayed as TODO. Is that possible?
>
> --
> Cecil Westerhof
>
My impression is that calendar sexp entries don't play well with the
rest of org-mode: most of the code does not understand them, so you
end up with situations like the above.
IMO, you are better off creating separate entries for MWF. You might
want to look into `org-clone-subtree-with-time-shift' to create them
efficiently.
--
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Scheduling and calendar-day-of-week
2018-04-06 14:16 ` Nick Dokos
@ 2018-04-06 16:46 ` Brian Shine
2018-04-06 17:13 ` Brian Shine
0 siblings, 1 reply; 6+ messages in thread
From: Brian Shine @ 2018-04-06 16:46 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode, Brian Shine
An alternative, which isn’t as neat as you would like, would be to set up the 3 days as separate events, with 7-day repeats.
Best wishes,
Brian
> On 6 Apr 2018, at 15:16, Nick Dokos <ndokos@gmail.com> wrote:
>
> Cecil Westerhof <cldwesterhof@gmail.com> writes:
>
>> There is something I want to do on Monday, Wednesday and Friday. So I tried:
>> *** TODO Monday, Wednesday and Friday
>> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
>>
>> This seems to work: I see the activity on the correct days.
>> But then I changed today's entry to DONE. But then all are gone in my agenda view.
>> What I want is for today's item to be 'gone' and the future ones still displayed as TODO. Is that possible?
>>
>> --
>> Cecil Westerhof
>>
>
> My impression is that calendar sexp entries don't play well with the
> rest of org-mode: most of the code does not understand them, so you
> end up with situations like the above.
>
> IMO, you are better off creating separate entries for MWF. You might
> want to look into `org-clone-subtree-with-time-shift' to create them
> efficiently.
>
> --
> Nick
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Scheduling and calendar-day-of-week
2018-04-06 16:46 ` Brian Shine
@ 2018-04-06 17:13 ` Brian Shine
0 siblings, 0 replies; 6+ messages in thread
From: Brian Shine @ 2018-04-06 17:13 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode, Brian Shine
Sorry! I see that is exactly what you said.
Best wishes,
Brian
> On 6 Apr 2018, at 17:46, Brian Shine <brianshine@mac.com> wrote:
>
> An alternative, which isn’t as neat as you would like, would be to set up the 3 days as separate events, with 7-day repeats.
>
> Best wishes,
> Brian
>
>> On 6 Apr 2018, at 15:16, Nick Dokos <ndokos@gmail.com> wrote:
>>
>> Cecil Westerhof <cldwesterhof@gmail.com> writes:
>>
>>> There is something I want to do on Monday, Wednesday and Friday. So I tried:
>>> *** TODO Monday, Wednesday and Friday
>>> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
>>>
>>> This seems to work: I see the activity on the correct days.
>>> But then I changed today's entry to DONE. But then all are gone in my agenda view.
>>> What I want is for today's item to be 'gone' and the future ones still displayed as TODO. Is that possible?
>>>
>>> --
>>> Cecil Westerhof
>>>
>>
>> My impression is that calendar sexp entries don't play well with the
>> rest of org-mode: most of the code does not understand them, so you
>> end up with situations like the above.
>>
>> IMO, you are better off creating separate entries for MWF. You might
>> want to look into `org-clone-subtree-with-time-shift' to create them
>> efficiently.
>>
>> --
>> Nick
>>
>>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Scheduling and calendar-day-of-week
2018-04-06 7:46 Scheduling and calendar-day-of-week Cecil Westerhof
2018-04-06 8:23 ` stardiviner
2018-04-06 14:16 ` Nick Dokos
@ 2018-04-06 19:52 ` Tim Cross
2 siblings, 0 replies; 6+ messages in thread
From: Tim Cross @ 2018-04-06 19:52 UTC (permalink / raw)
To: Cecil Westerhof; +Cc: emacs-orgmode
Cecil Westerhof <cldwesterhof@gmail.com> writes:
> There is something I want to do on Monday, Wednesday and Friday. So I tried:
> *** TODO Monday, Wednesday and Friday
> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
>
> This seems to work: I see the activity on the correct days.
> But then I changed today's entry to DONE. But then all are gone in my
> agenda view.
> What I want is for today's item to be 'gone' and the future ones still
> displayed as TODO. Is that possible?
Use of diary sexp entries is limited and this may not work. You may be
better off using org built in support for repeated scheduled/deadline
tasks.
The other thing to note is that you need to use a different command when
marking a repeating item as done. The manual has the following -
#+BEGIN_QUOTE
To mark a task with a repeater as ‘DONE’, use ‘C-- 1 C-c C-t’ (i.e.,
‘org-todo’ with a numeric prefix argument of -1.)
A timestamp(2) will be added under the deadline, to keep a record
that you actually acted on the previous instance of this deadline.
As a consequence of shifting the base date, this entry will no longer
be visible in the agenda when checking past dates, but all future
instances will be visible.
#+END_QUOTE
--
Tim Cross
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-04-06 19:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-06 7:46 Scheduling and calendar-day-of-week Cecil Westerhof
2018-04-06 8:23 ` stardiviner
2018-04-06 14:16 ` Nick Dokos
2018-04-06 16:46 ` Brian Shine
2018-04-06 17:13 ` Brian Shine
2018-04-06 19:52 ` Tim Cross
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).