branch: externals/denote-org
commit d329dcc97e5fac71e2004f7e1fb26ce72cb73b12
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Use better regexp in denote-org-sequence--format-word-regexp
    
    The other one does not work because what we are searching for is not a
    "word".
---
 denote-org.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote-org.el b/denote-org.el
index dff61517d4..5be4577fe2 100644
--- a/denote-org.el
+++ b/denote-org.el
@@ -1018,8 +1018,8 @@ With optional FILES operate on them, otherwise use the 
return value of
     "Return word regexp matching SEQUENCE.
 If sequence does not start with a =, then include it."
     (if (string-prefix-p "=" sequence)
-        (format "\\<%s\\>" sequence)
-      (format "\\<=%s\\>" sequence)))
+        (format "\\W%s" sequence)
+      (format "\\W=%s" sequence)))
 
   (defun org-dblock-write:denote-sequence (params)
     "Function to update `denote-sequence' Org Dynamic blocks.

Reply via email to