Updated code for altering kill-ring-save for emacs versions >= 24.3.