use the same approach for selections as find-and-replace:show