Only run advice for repeat-replace/undo-move commands if command is called interactively
Changed assertion in advice definition to condition
Macro dolist binds its loop variable
Use /= to detect inequality of integers
Added command store-point
Use function use-region-p instead of variable mark-active and region-beginning/region-end instead of point/mark
Added command sort-lines-case-insensitive
Added commands goto-most-recent-undo-location-or-copy-rectangle/copy-rectangle/paste-rectangle/paste-or-copy-rectangle