I'm in buffer A and I want to set a buffer-local variable in buffer B. I'm currently doing:
(with-current-buffer B
(setq-local some-var 'some-val))
but is there a way to do this without changing the current buffer, i.e. can I explicitly specify the buffer whose value I want to change?