Controlling mechanically-operated bolts by electro-magnetically-operated detents {the detent moving rectilinearly}