Restore this-command to original value
Variable this-command normally contains a symbol
Undo move added to command repeat-replace-query
Use condition-case (try/catch) instead of unwind-protect (try/finally) in command delete-to-beginning-of-string
Use save-excursion instead of condition-case in command delete-to-beginning-of-string