6

Is there any way to insert text into a buffer that isn't the active buffer with Elisp?

Perhaps there is an equivalent to with-temp-buffer that takes a specific, existing buffer as an argument?

JCC
  • 989
  • 5
  • 15

1 Answers1

13

Perhaps something like:

(with-current-buffer "*scratch*" (insert "Test"))

is what you want.

John Kitchin
  • 11,555
  • 1
  • 19
  • 41