iterate over possible buffer-settings

when choosing a new visual, rather than calling all those
settings explicitely, we iterate over all possible settings
until we found one that works.
this simplifies code a bit.