8000 ruby-electric.el: fix #198 · ayumin/ruby@f116b07 · GitHub
[go: up one dir, main page]

Skip to content

Commit f116b07

Browse files
committed
ruby-electric.el: fix ruby#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
1 parent 5b75c4f commit f116b07

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Tue Oct 23 14:20:43 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* misc/ruby-electric.el using variable `last-command-event' instead of
4+
obsolete `last-command-char', so that work with Emacs trunk.
5+
a patch by Victor Deryagin <vderyagin AT gmail.com>.
6+
17
Tue Oct 23 14:06:47 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
28

39
* configure.in (visibility_option): visibility attribute is not

misc/ruby-electric.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ strings. Note that you must have Font Lock enabled."
142142

143143
(defun ruby-electric-is-last-command-char-expandable-punct-p()
144144
(or (memq 'all ruby-electric-expand-delimiters-list)
145-
(memq last-command-char ruby-electric-expand-delimiters-list)))
145+
(memq last-command-event ruby-electric-expand-delimiters-list)))
146146

147147
(defun ruby-electric-space-can-be-expanded-p()
148148
(if (ruby-electric-code-at-point-p)
@@ -188,7 +188,7 @@ strings. Note that you must have Font Lock enabled."
188188
(and (ruby-electric-is-last-command-char-expandable-punct-p)
189189
(ruby-electric-code-at-point-p)
190190
(save-excursion
191-
(insert (cdr (assoc last-command-char
191+
(insert (cdr (assoc last-command-event
192192
ruby-electric-matching-delimeter-alist))))))
193193

194194
(defun ruby-electric-bar(arg)

0 commit comments

Comments
 (0)
0