aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.org2
-rw-r--r--seam-export.el2
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