The problem seems to be caused by commit
76dc6e35865b2e9fb4645b3672016df287bf6bcf "org-clock: Fix pipe char (|) in
headings breaks clockreport".  Before this commit, org-store-link removes
the leading "(" from the search string, while after this commit it does
not.

This patch seems to resolve the problem.

diff --git a/lisp/ol.el b/lisp/ol.el
index 96edafa17..a2757327e 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -989,7 +989,7 @@ subset of (statistics-cookies search-syntax pipe-chars):
 - `search-syntax' is # in #heading and enclosing () in (ref)
 - `pipe-chars' are | characters that may clash with table syntax."
   (let* ((valid-symbols (seq-intersection ignored-contents (list 
'statistics-cookies 'search-syntax 'pipe-chars)))
-         (values-to-remove (append valid-symbols (list 'contiguous-spaces 
'leading-and-trailing-spaces))))
+         (values-to-remove (append (list 'contiguous-spaces 
'leading-and-trailing-spaces) valid-symbols)))
     (seq-reduce (lambda (str func) (funcall (map-elt 
org-link--string-normalizers func) str))
                 values-to-remove
                 string)))

Reply via email to