Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartrep with universal argument #20

Open
Antoine-Patel opened this issue Dec 6, 2015 · 0 comments
Open

smartrep with universal argument #20

Antoine-Patel opened this issue Dec 6, 2015 · 0 comments

Comments

@Antoine-Patel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant