RosettaCodeData/Task/String-prepend/Emacs-Lisp/string-prepend-3.el
2026-04-30 12:34:36 -04:00

8 lines
199 B
EmacsLisp

(let ((buf (get-buffer-create "*foo*")))
(with-current-buffer buf
(insert "bar"))
(with-current-buffer buf
(goto-char (point-min))
(insert "foo")
(buffer-string)))
;; => "foobar"