Add macros for select/unselect histories.