summaryrefslogtreecommitdiff
path: root/misc/ruby-electric.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 08:17:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 08:17:05 +0000
commitf9aef18497c42d704657566ab2f99b089dea01ae (patch)
tree45eb3a0938fc9806f1b8b964b529271d7eddf5b7 /misc/ruby-electric.el
parent5852d901b5dc8c128a53285297f094f925f29c1b (diff)
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
Diffstat (limited to 'misc/ruby-electric.el')
-rw-r--r--misc/ruby-electric.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el
index c41593b..0a55681 100644
--- a/misc/ruby-electric.el
+++ b/misc/ruby-electric.el
@@ -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)