emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dave D <wenlong.dai@gmail.com>
To: emacs-orgmode@gnu.org
Subject: clock doesn't respect org-id-link-to-org-use-id
Date: Fri, 18 Jun 2021 17:30:57 +1000	[thread overview]
Message-ID: <CAP=AKM_GnnDLGAnr8j1JU5dUSdyNhj58VWdWvyC66MiKaNASrQ@mail.gmail.com> (raw)

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.

             reply	other threads:[~2021-06-18  7:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-18  7:30 Dave D [this message]
2021-11-21  8:11 ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP=AKM_GnnDLGAnr8j1JU5dUSdyNhj58VWdWvyC66MiKaNASrQ@mail.gmail.com' \
    --to=wenlong.dai@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: clock doesn'\''t respect org-id-link-to-org-use-id' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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


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).