diff options
author | Spencer Williams <spnw@plexwave.org> | 2025-04-07 16:47:48 -0400 |
---|---|---|
committer | Spencer Williams <spnw@plexwave.org> | 2025-04-07 16:52:50 -0400 |
commit | d38dfbf3184094a60d1a1f03f6feb75c6404a000 (patch) | |
tree | d61d99966f49e8f284d6e6dc18a88b243e7500f3 | |
parent | 030913f74fbc0fa34df0fbf235edd7869b0d5214 (diff) |
Fix bug due to improper use of replace-match
-rw-r--r-- | CHANGES.org | 2 | ||||
-rw-r--r-- | seam-export.el | 2 |
2 files changed, 3 insertions, 1 deletions
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 |