emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stacey Marshall <stacey.marshall@oracle.com>
To: Org Mode <emacs-orgmode@gnu.org>
Cc: Stacey Jonathan Marshall <stacey.marshall@oracle.com>
Subject: org-link-search failing to find links created by clock table
Date: Tue, 11 Apr 2017 13:37:00 +0100	[thread overview]
Message-ID: <B4FABBFE-E0F4-4BE1-9904-F958F9E3B9A3@oracle.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

created a clock table and the resulting links fail to work. I get a message:

condition-case: No match for fuzzy expression: DONE private data removed".
Tracked that down to lisp/org.el org-link-search() where there are two identical messages. Changing the first to add the word "heading" confirms it is the first search that was in operation. Adding a message to print out title-re I see the following

^\*+.*\(?:COMMENT[ ]\)?.*DONE.+private.+data.+removed\.
If I manually edit the link and remove the TODO keyword (DONE) the link then works.

Looking at org.el function org-search-link it requests the heading without the keyword (org-get-headeing t t t ).

But as seen, the link from the clock table has the keyword.

org-clock.el function org-clock-table-data sets hdl (when links are requested):

(org-make-org-heading-search-string
                 (replace-regexp-in-string
                  org-bracket-link-regexp
                  (lambda (m) (or (match-string 3 m)
                             (match-string 1 m)))
                  (match-string 2)))
That's as far as I've gotten….




--
Stacey




[-- Attachment #2: Type: text/html, Size: 1932 bytes --]

             reply	other threads:[~2017-04-11 12:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11 12:37 Stacey Marshall [this message]
2017-04-11 22:37 ` org-link-search failing to find links created by clock table Stacey Marshall

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=B4FABBFE-E0F4-4BE1-9904-F958F9E3B9A3@oracle.com \
    --to=stacey.marshall@oracle.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).