From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stacey Marshall Subject: org-link-search failing to find links created by clock table Date: Tue, 11 Apr 2017 13:37:00 +0100 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_B4992770-D9B1-44BB-839F-37B49E92C9EC" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxv2P-0003tS-Vu for emacs-orgmode@gnu.org; Tue, 11 Apr 2017 08:36:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxv2M-0007y5-TI for emacs-orgmode@gnu.org; Tue, 11 Apr 2017 08:36:50 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:42831) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cxv2M-0007xf-Jk for emacs-orgmode@gnu.org; Tue, 11 Apr 2017 08:36:46 -0400 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v3BCagHJ023091 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Apr 2017 12:36:43 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id v3BCafvK028181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Apr 2017 12:36:42 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v3BCafVv031844 for ; Tue, 11 Apr 2017 12:36:41 GMT List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode Cc: Stacey Jonathan Marshall --Apple-Mail=_B4992770-D9B1-44BB-839F-37B49E92C9EC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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=E2=80=A6. -- Stacey --Apple-Mail=_B4992770-D9B1-44BB-839F-37B49E92C9EC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

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=E2=80=A6.




--
Stacey



= --Apple-Mail=_B4992770-D9B1-44BB-839F-37B49E92C9EC--