Mechanisms for selecting, projecting, retracting or locking writing units for locking a single writing unit in only fully projected or retracted positions operated by means sliding in longitudinally-slotted casings