[前][次][番号順一覧][スレッド一覧]

ruby-changes:34911

From: nobu <ko1@a...>
Date: Tue, 29 Jul 2014 16:41:47 +0900 (JST)
Subject: [ruby-changes:34911] nobu:r46994 (trunk): ruby-additional.el: track by marker

nobu	2014-07-29 16:41:35 +0900 (Tue, 29 Jul 2014)

  New Revision: 46994

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46994

  Log:
    ruby-additional.el: track by marker
    
    * misc/ruby-additional.el (ruby-encode-unicode): use marker
      instead of offset to track insertion.

  Modified files:
    trunk/misc/ruby-additional.el
Index: misc/ruby-additional.el
===================================================================
--- misc/ruby-additional.el	(revision 46993)
+++ misc/ruby-additional.el	(revision 46994)
@@ -111,6 +111,7 @@ Emacs to Ruby." https://github.com/ruby/ruby/blob/trunk/misc/ruby-additional.el#L111
      (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))

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]