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

* Re: org-link-search failing to find links created by clock table
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Stacey Marshall @ 2017-04-11 22:37 UTC (permalink / raw)
  To: Org Mode

*** Some additional information, by example

Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin16.4.0, Carbon Version 157 AppKit 1504.81)
 of 2017-03-07
Package: Org mode version 9.0.5 (release_9.0.5-351-g0e0fda.dirty @ /Users/stacey/.emacs.d/org-mode/lisp/)

In this buffer the TODO keywords are FIXME and FIXED, as set by:

#+SEQ_TODO: FIXME FIXED

Clock table generated with C-c C-x C-r and then modified to include link and increase maxlevel to include the sample CLOCK entries below.

#+BEGIN: clocktable :maxlevel 4 :scope subtree :link t 
#+CAPTION: Clock summary at [2017-04-11 Tue 23:29]
| Headline                   | Time      |   |         |         |
|----------------------------+-----------+---+---------+---------|
| *Total time*               | *1h 4min* |   |         |         |
|----------------------------+-----------+---+---------+---------|
| \_    [[file:/Users/stacey/Dropbox/org-mode.org::Example%20of%20the%20issue][Example of the issue]] |           |   | 1h 4min |         |
| \_      [[file:/Users/stacey/Dropbox/org-mode.org::Test%20log][Test log]]           |           |   |         | 0h 4min |
| \_      [[file:/Users/stacey/Dropbox/org-mode.org::FIXME%20Test%20log][FIXME Test log]]     |           |   |         | 1h 0min |
#+END:

- Test Log link works, its link is:
  - FIXME Test log does not, its link is:
  
**** Test log
:LOGBOOK:
CLOCK: [2017-04-11 Tue 23:20]--[2017-04-11 Tue 23:24] =>  0:04
:END:
**** FIXME Test log
:LOGBOOK:
CLOCK: [2017-04-11 Tue 22:20]--[2017-04-11 Tue 23:20] =>  1:00
:END:


--
Stacey

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