close search and replace dialog after it is used (closes #17625)
merge 2.7.4 release branch
#8913: add examples and docs for date/time/datetime.__format__.  Patch by Heikki Partanen.