emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-link-search failing to find links created by clock table
@ 2017-04-11 12:37 Stacey Marshall
  2017-04-11 22:37 ` Stacey Marshall
  0 siblings, 1 reply; 2+ messages in thread
From: Stacey Marshall @ 2017-04-11 12:37 UTC (permalink / raw)
  To: Org Mode; +Cc: Stacey Jonathan Marshall

[-- 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 --]

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

end of thread, other threads:[~2017-04-11 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 12:37 org-link-search failing to find links created by clock table Stacey Marshall
2017-04-11 22:37 ` Stacey Marshall

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