summaryrefslogtreecommitdiff
path: root/misc/ruby-electric.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-23 05:20:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-23 05:20:45 +0000
commitec007f72cf9b4329c5ba59fe6463e38c163637fb (patch)
tree6b7746d6b593a499043f5aae1fc75b9a7f78eb2b /misc/ruby-electric.el
parent024939558224abd68a0bba5cae8d2930eed5bc0c (diff)
ruby-electric.el: fix #198
* misc/ruby-electric.el using variable `last-command-event' instead of obsolete `last-command-char', so that work with Emacs trunk. a patch by Victor Deryagin <vderyagin AT gmail.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-electric.el')
-rw-r--r--misc/ruby-electric.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el
index 6c1ad9a..c41593b 100644
--- a/misc/ruby-electric.el
+++ b/misc/ruby-electric.el
@@ -142,7 +142,7 @@ strings. Note that you must have Font Lock enabled."
(defun ruby-electric-is-last-command-char-expandable-punct-p()
(or (memq 'all ruby-electric-expand-delimiters-list)
- (memq last-command-char ruby-electric-expand-delimiters-list)))
+ (memq last-command-event ruby-electric-expand-delimiters-list)))
(defun ruby-electric-space-can-be-expanded-p()
(if (ruby-electric-code-at-point-p)
@@ -188,7 +188,7 @@ strings. Note that you must have Font Lock enabled."
(and (ruby-electric-is-last-command-char-expandable-punct-p)
(ruby-electric-code-at-point-p)
(save-excursion
- (insert (cdr (assoc last-command-char
+ (insert (cdr (assoc last-command-event
ruby-electric-matching-delimeter-alist))))))
(defun ruby-electric-bar(arg)