I want to create a command that, when you call it for the first time, it's executed normally, but when you repeat it with
C-x z, some other command is executed and the original command is never called.
I tried defining it like that (I want
forward-line to be called when repeating
(defun foo () (interactive) (message "foo") (setq this-command 'forward-line))
M-x foo and then
C-x z just displays "foo" twice and never calls