branch: elpa/yaml-mode
commit 18c91350215f412ad7980ac4efd6624328e168f5
Author: sugyan <[email protected]>
Commit: sugyan <[email protected]>
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.
---
yaml-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/yaml-mode.el b/yaml-mode.el
index 2310221..e307888 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -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)