summaryrefslogtreecommitdiff
path: root/misc/ruby-electric.el
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 01:41:47 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 01:41:47 +0000
commit0687ed1e59130f905c440828df5005397f62a28c (patch)
treee14f693256a789aaee4925f2e219fd4674eb267d /misc/ruby-electric.el
parent30f813ddf2d9f29a10ed9a5e3de3dbb1f2cae4c4 (diff)
* misc/ruby-electric.el (ruby-electric-delete-backward-char): Use
delete-char instead of delete-backward-char, which is an interactive function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40823 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 078d12b..57a293d 100644
--- a/misc/ruby-electric.el
+++ b/misc/ruby-electric.el
@@ -341,6 +341,6 @@ strings. Note that you must have Font Lock enabled."
((eq last-command 'ruby-electric-hash)
(and (char-equal (preceding-char) ?{)
(delete-char 1))))
- (delete-backward-char 1)))
+ (delete-char -1)))
(provide 'ruby-electric)