From 4d2060084859eaaa8fd784ad771e7b57128ddaea Mon Sep 17 00:00:00 2001 From: Jason Blevins Date: Mon, 2 Jun 2008 21:39:53 -0400 Subject: [PATCH] Don't use the kill ring to store wrapped text --- markdown-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown-mode.el b/markdown-mode.el index 31afa25..2a7cec6 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -385,9 +385,9 @@ If Transient Mark mode is on and a region is active, wrap the strings S1 and S2 around the region." (if (and transient-mark-mode mark-active) (let ((a (region-beginning)) (b (region-end))) - (kill-region a b) + (goto-char a) (insert s1) - (yank) + (goto-char (+ b (length s1))) (insert s2)) (insert s1 s2))) -- 2.11.4.GIT