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 ?


You can do it like this:

(with-current-buffer (get-buffer "temp")
  (insert "my string"))
  • In that case, you can mark my question as a solution. – DoMiNeLa10 Oct 11 '18 at 19:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.