Skip to content

Instantly share code, notes, and snippets.

@stanaka
Created March 21, 2013 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stanaka/5210590 to your computer and use it in GitHub Desktop.
Save stanaka/5210590 to your computer and use it in GitHub Desktop.
a patch for elscreen.el to use last-command-event instead of last-command-char, which is removed since emacs 24.3.
--- elscreen.el.original 2013-03-21 12:58:17.000000000 +0900
+++ elscreen.el 2013-03-21 12:59:05.000000000 +0900
@@ -984,7 +984,7 @@
(defun elscreen-jump ()
"Switch to specified screen."
(interactive)
- (let ((next-screen (string-to-number (string last-command-char))))
+ (let ((next-screen (string-to-number (string last-command-event))))
(if (and (<= 0 next-screen) (<= next-screen 9))
(elscreen-goto next-screen))))
(defalias 'elscreen-jump-0 'elscreen-jump)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment