-
Notifications
You must be signed in to change notification settings - Fork 11
Description
universal-argument inside a smartrep-define-key leads to a strange behavior. It's easier to explain with an example:
(smartrep-define-key
global-map "M-SPC e"
'(("r" . universal-argument)
("u" . keyboard-quit)
("j" . next-line)
("f" . previous-line)))I'd like M-SPC e r j to do the same as C-u C-n, ie. go 4 lines below ((next-line 4) -- assuming default emacs key bindings). Instead when pressing j after the r, it simply goes one line below, as if r had not been pressed. The universal argument is not passed to the next repetition of the smartrep.
Also, pressing M-SPC e r j j j o for example, causes jjjjjjo to be inserted in a buffer, instead of just o , like M-SPC e j j j o does.
Is there an easy trick/workaround, like replacing universal-argument with some code, to get the behavior I want ?
emacs: GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian
smartrep: ;; Version: 1.0.0 ;; Package-Version: 20150508.1930