The new function editor:buffer-value accesses the value of an editor variable in the specified buffer.
editor:buffer-value