ruby-electric.el: use kill-region

* misc/ruby-electric.el (ruby-electric-curlies): use kill-region
  instead of interactive command delete-backward-char.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-01 08:17:05 +00:00
Родитель 5852d901b5
Коммит f9aef18497
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sat Dec 1 17:16:54 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-electric.el (ruby-electric-curlies): use kill-region
instead of interactive command delete-backward-char.
Sat Dec 1 17:12:55 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/inf-ruby.el (inferior-ruby-mode): fix the

Просмотреть файл

@ -174,7 +174,7 @@ strings. Note that you must have Font Lock enabled."
(if (eq last-command-event ?{)
(save-excursion
(when (not (char-equal ?\# (preceding-char)))
(delete-backward-char)
(kill-region (point) (1- (point)))
(insert "#"))))
(save-excursion
(backward-char 1)