summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-29 07:41:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-29 07:41:35 +0000
commitc82b44e1b406848cb9f50c08a7d179187085b6ba (patch)
treebfcfcfaee38ec876fff8964026cbebfe146be672
parent360a8652464c4fd44808d488a0f178272b98208a (diff)
ruby-additional.el: track by marker
* misc/ruby-additional.el (ruby-encode-unicode): use marker instead of offset to track insertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--misc/ruby-additional.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/ruby-additional.el b/misc/ruby-additional.el
index 0a191cda719..7ef099b13a7 100644
--- a/misc/ruby-additional.el
+++ b/misc/ruby-additional.el
@@ -111,6 +111,7 @@ Emacs to Ruby."
(defun ruby-encode-unicode (beg end)
"Convert non-ascii string in the given region to \\u{} form."
(interactive "r")
+ (setq end (set-marker (make-marker) end))
(goto-char beg)
(while (and (< (point) end)
(re-search-forward "\\Ca+" end t))