Set variable local to buffer