Add `rename in function` and `rename in buffer` commands.