In my .emacs, I tried to use
(global-set-key (kbd "M-r") (kbd "C-x r j")
so I can use M-r
to jump to a register. However, doing this and using the command gives
After 0 kbd macro iterations: Args out of range: [], 0
as an error in the minibuffer. Looking up the shortcut with C-h k
shows that the keyboard shortcut is bound to jump-to-register
. Then, using
(global-set-key (kbd "M-r") 'jump-to-register)
gets the desired behavior, and my shortcut works.
My question is: why doesn't my first attempt work, esp. if it just really seems to be calling the same function?