I'm writing an interactive function that I'd like to have remember the last argument the user supplied and use it as the default.
(defun run-rake (param)
(interactive "sTask: ")
(shell-command (format "rake %s" task)))
The first time the function is invoked I want it to remember the argument the user supplied so that the next time they invoke the function they can just press enter and it will use the value they supplied the previous time.
I can't seem to find this in the documentation - how do you do this in elisp?