Fix bug#5620: recalculate all markers on compilation buffer