Yes, the 2m is probably a very generous allowance. Prior to the metric edition in 1970 it was listed as 6 ft. minimum. I'm not sure when that spacing was introduced; it's certainly there in the 1955 edtion.
Virgil:
Thanks for that link. Sometimes a bathroom light switch is located outside the door, but another very common arrangement is for a ceiling mounted switch operated by a pull cord. As the live switch is up on the ceiling, these can be mounted so the cord is right next to the tub or shower.
They're so common in bathrooms, that they're often used even when a regular wall switch would be outside the 6'/2m boundary.