emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* clock doesn't respect org-id-link-to-org-use-id
@ 2021-06-18  7:30 Dave D
  2021-11-21  8:11 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Dave D @ 2021-06-18  7:30 UTC (permalink / raw)
  To: emacs-orgmode

Hi All,

I use org-mode clock table to generate report for the tasks I clocked.
The header of my clock table looks like this:
#+BEGIN: clocktable :block 2021-06-18 :scope agenda :maxlevel 5
:fileskip0 t :link t

I have :link t so that I can jump to a task directly from the clock
table. I have noticed that sometimes the link doesn't work because of
a heading having strange characters ( in my case my heading is
suffixed with date time).

I traced it back to function org-clock-get-table-data, which seems to
construct the link itself from scratch without leveraging the existing
function org-store link. This also results in it not respecting the
value of org-id-link-to-org-use-id. If use org-store-link in
org-clock-get-table-data, a few lines of code can be reduced and the
behavior can be more consistent and robust.

If I'm correct so far, anybody mind work or this? I can do that as
well, but i'm not fluent with lisp or the workflow, so I'd appreciate
if someone else can help.

Thank You.
Dave


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

* Re: clock doesn't respect org-id-link-to-org-use-id
  2021-06-18  7:30 clock doesn't respect org-id-link-to-org-use-id Dave D
@ 2021-11-21  8:11 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2021-11-21  8:11 UTC (permalink / raw)
  To: Dave D; +Cc: emacs-orgmode

Dave D <wenlong.dai@gmail.com> writes:

> I have :link t so that I can jump to a task directly from the clock
> table. I have noticed that sometimes the link doesn't work because of
> a heading having strange characters ( in my case my heading is
> suffixed with date time).

Thanks for reporting! Could you provide an example of such heading?

> I traced it back to function org-clock-get-table-data, which seems to
> construct the link itself from scratch without leveraging the existing
> function org-store link. This also results in it not respecting the
> value of org-id-link-to-org-use-id. If use org-store-link in
> org-clock-get-table-data, a few lines of code can be reduced and the
> behavior can be more consistent and robust.

Your analysis looks reasonable, but a concrete reproducer would help (at
least to create a test case).

Best,
Ihor


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

end of thread, other threads:[~2021-11-21  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18  7:30 clock doesn't respect org-id-link-to-org-use-id Dave D
2021-11-21  8:11 ` Ihor Radchenko

Code repositories for project(s) associated with this 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).