visibility for comments should check relevant options automatically

for #2313