* logrepeat only logging LAST_REPEAT
@ 2021-01-19 11:33 Michael Heerdegen
2021-01-20 4:08 ` Ihor Radchenko
0 siblings, 1 reply; 6+ messages in thread
From: Michael Heerdegen @ 2021-01-19 11:33 UTC (permalink / raw)
To: emacs-orgmode
Hello,
for some entries I use the logrepeat feature (enabled by setting the
LOGGING property of the entry).
I get a :LAST_REPEAT: property that I (always) want, and also a complete
log I do not (always) want, in the form of a growing list of
- State "DONE" from "XYZ" [2021-01-19 Di 12:01]
style entries that I often "garbage collect" manually.
Is there a way to get only the :LAST_REPEAT: prop logged, without the
ever-growing list?
If not, please consider as "wishlist" request.
TIA,
Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: logrepeat only logging LAST_REPEAT
2021-01-19 11:33 logrepeat only logging LAST_REPEAT Michael Heerdegen
@ 2021-01-20 4:08 ` Ihor Radchenko
2021-01-20 14:42 ` Michael Heerdegen
0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2021-01-20 4:08 UTC (permalink / raw)
To: Michael Heerdegen, emacs-orgmode
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Is there a way to get only the :LAST_REPEAT: prop logged, without the
> ever-growing list?
I guess you can try to play with org-log-done and org-log-repeat variables.
Best,
Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: logrepeat only logging LAST_REPEAT
2021-01-20 4:08 ` Ihor Radchenko
@ 2021-01-20 14:42 ` Michael Heerdegen
2021-01-20 15:23 ` Ihor Radchenko
0 siblings, 1 reply; 6+ messages in thread
From: Michael Heerdegen @ 2021-01-20 14:42 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
Ihor Radchenko <yantar92@gmail.com> writes:
> > Is there a way to get only the :LAST_REPEAT: prop logged, without the
> > ever-growing list?
>
> I guess you can try to play with org-log-done and org-log-repeat
> variables.
Thanks. But as far as I recall, that's what I already tried and it
didn't help.
As far as I understand, the logging is implemented in
`org-auto-repeat-maybe', and the thing I do not want is caused by the
`org-add-log-setup' call, and that is done unconditionally unless
`org-log-repeat's value is nil. Which I don't want because this would
also disable the "LAST_REPEAT" property setting.
Thanks,
Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: logrepeat only logging LAST_REPEAT
2021-01-20 14:42 ` Michael Heerdegen
@ 2021-01-20 15:23 ` Ihor Radchenko
2021-01-20 15:34 ` Michael Heerdegen
0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2021-01-20 15:23 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: emacs-orgmode
Michael Heerdegen <michael_heerdegen@web.de> writes:
> As far as I understand, the logging is implemented in
> `org-auto-repeat-maybe', and the thing I do not want is caused by the
> `org-add-log-setup' call, and that is done unconditionally unless
> `org-log-repeat's value is nil. Which I don't want because this would
> also disable the "LAST_REPEAT" property setting.
You are right. Since this is hard-coded, you may have to use :around
advice to disable org-log-setup:
(cl-letf (((symbol-function org-log-setup) (lambda (&rest _) nil))) <call org-auto-repeat-maybe>)
Best,
Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: logrepeat only logging LAST_REPEAT
2021-01-20 15:23 ` Ihor Radchenko
@ 2021-01-20 15:34 ` Michael Heerdegen
2021-01-21 2:48 ` Ihor Radchenko
0 siblings, 1 reply; 6+ messages in thread
From: Michael Heerdegen @ 2021-01-20 15:34 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
Ihor Radchenko <yantar92@gmail.com> writes:
> You are right. Since this is hard-coded, you may have to use :around
> advice to disable org-log-setup: [...]
Do you think others may want the same and it could be worth to implement
this feature?
Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: logrepeat only logging LAST_REPEAT
2021-01-20 15:34 ` Michael Heerdegen
@ 2021-01-21 2:48 ` Ihor Radchenko
0 siblings, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2021-01-21 2:48 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: emacs-orgmode
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Do you think others may want the same and it could be worth to implement
> this feature?
It should be not too hard to implement. For example, one can add another
possible value of org-log-repeat. Patches welcome ;)
Best,
Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-21 2:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-19 11:33 logrepeat only logging LAST_REPEAT Michael Heerdegen
2021-01-20 4:08 ` Ihor Radchenko
2021-01-20 14:42 ` Michael Heerdegen
2021-01-20 15:23 ` Ihor Radchenko
2021-01-20 15:34 ` Michael Heerdegen
2021-01-21 2:48 ` Ihor Radchenko
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).