Permalink
Browse files

replace `last-command-char` to `last-command-event`

In emacs 23.4, this warns:

    In yaml-electric-bar-and-angle:
    yaml-mode.el:370:17:Warning: `last-command-char' is an obsolete variable (as
        of Emacs at least 19.34); use `last-command-event' instead.
  • Loading branch information...
1 parent 52d6d57 commit 18c91350215f412ad7980ac4efd6624328e168f5 @sugyan sugyan committed Feb 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 yaml-mode.el
View
@@ -367,7 +367,7 @@ and indents appropriately."
(interactive "*P")
(self-insert-command (prefix-numeric-value arg))
(let ((extra-chars
- (assoc last-command-char
+ (assoc last-command-event
yaml-block-literal-electric-alist)))
(cond
((and extra-chars (not arg) (eolp)

0 comments on commit 18c9135

Please sign in to comment.