Comment 0 for bug 1363449

Revision history for this message
Marco Righele (marco-righele) wrote :

This mode use the variable 'last-command-char' which was obsoleted in Emacs 19.34
and has been removed since Emacs 24.3
(see http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-07/msg00653.html).

The solution is to substitute it with last-command-event:

--- squirrel-mode.el.orig 2014-08-30 17:26:09.738799965 +0200
+++ squirrel-mode.el 2014-08-30 17:28:09.410801845 +0200
@@ -50,7 +50,7 @@

 (defun squirrel-electric-brace (arg)
   (interactive "P")
- (insert-char last-command-char 1)
+ (insert-char last-command-event 1)
   (squirrel-indent-line)
   (if (looking-back "^\\s *")
       (forward-char)