Hi,
I used C-x ESC ESC for execute last command. It's kind of boring repeating that 'cause you need to press enter or feed with another argument every time. What I want is: "position the cursor and press the bind for repeat last command". So, I was reading something about lisp and emacs manual, I have read:
The list of previous minibuffer-using
commands is stored as a Lisp list in
the variable command-history. Each
element is a Lisp expression which
describes one command and its
arguments. Lisp programs can reexecute
a command by calling eval with the
command-history element.
Then, I read something about lisp lists , but really I don't get it, I have tried something like this:
(defun repeat-last-command()
(interactive)
(eval (car (command-history)))
)
But seems not to work. How then we extract the elements from (command-history) list and feed then to eval?
Regards,
PS: new here, I didn't read on the FAQ nothing about asking on a question. I then take the decision not to start a new question about it, as it's related with this one. I apologize if this is not the behaviour but honestly I didn't read nothing about it.