From 38dd882685e3cc5843a9cf30155432b4ebce8514 Mon Sep 17 00:00:00 2001 From: Martin Marshall Date: Sun, 11 Feb 2024 12:36:46 -0500 Subject: [PATCH] org-ctags: Fix regexp to not break radio-target links * org-ctags.el (org-ctags-tag-regexp): Add left angle-bracket to excluded characters for tag text. Link: https://orgmode.org/list/87frxylw33.fsf@martinmarshall.com TINYCHANGE --- lisp/org-ctags.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-ctags.el b/lisp/org-ctags.el index e56ed9cd8..6431a2765 100644 --- a/lisp/org-ctags.el +++ b/lisp/org-ctags.el @@ -149,7 +149,7 @@ (defvar org-ctags-enabled-p t "Activate ctags support in org mode?") -(defvar org-ctags-tag-regexp "/<<([^>]+)>>/\\1/d,definition/" +(defvar org-ctags-tag-regexp "/<<([^<>]+)>>/\\1/d,definition/" "Regexp expression used by ctags external program. The regexp matches tag destinations in Org files. Format is: /REGEXP/TAGNAME/FLAGS,TAGTYPE/