From d38dfbf3184094a60d1a1f03f6feb75c6404a000 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Mon, 7 Apr 2025 16:47:48 -0400 Subject: Fix bug due to improper use of replace-match --- CHANGES.org | 2 ++ seam-export.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.org b/CHANGES.org index 0542b14..886155b 100644 --- a/CHANGES.org +++ b/CHANGES.org @@ -14,6 +14,8 @@ - =seam-visited-notes= no longer returns buffers visiting non-note files within the Seam directory. - Buffer titles are now set correctly from narrowed buffers. +- An issue with regexp escape sequences being interpreted in template + variable replacements has been fixed. ** Renamed functions - =seam-replace-string-in-all-notes= (was =seam-replace-string-in-notes=) diff --git a/seam-export.el b/seam-export.el index c36f97c..7fa6c2d 100644 --- a/seam-export.el +++ b/seam-export.el @@ -222,7 +222,7 @@ notes)." (defun seam-export--replace-variable (var replacement) (goto-char 1) (while (re-search-forward (format "{{%s}}" var) nil t) - (replace-match replacement))) + (replace-match replacement t t))) (defun seam-export--generate-backlinks (file) (seam-export--to-string -- cgit v1.2.3