0

I am looking for a solution where i can write a string to a Buffer without actually visiting it. I want to achieve this purely through an elisp function. Is it possible ?

Drew
  • 75,699
  • 9
  • 109
  • 225
sidharth arya
  • 235
  • 1
  • 7

1 Answers1

1

You can do it like this:

(with-current-buffer (get-buffer "temp")
  (insert "my string"))