: (prepend-to-buffer "buffer-name" "string")
save-excursion is used to save your location when you temporarily move
somewhere else to do something
(save-excursion
(with-current-buffer "buffer"
(goto-char (point-min))
(insert "Stuff at the front of
save-excursion is used to save your location when you temporarily move
somewhere else to do something
(save-excursion
(with-current-buffer "buffer"
(goto-char (point-min))
(insert "Stuff at the front of the buffer\n")))
-Bernt
Nick Dokos <[EMAIL PROTECTED]> writes:
> Parker, Matthew
Parker, Matthew <[EMAIL PROTECTED]> wrote:
> Yes, but this would require I first move to the buffer to write to, do
> the insert, then move back to the buffer I'm searching in.
>
That's what with-current-buffer is for I believe:
(with-current-buffer (insert "foo"))
HTH,
Nick
>
> -Origin