simplified-end-of-buffer
function definition;
then test it to see whether it works.
if
and get-buffer
to write a function that prints a
message telling you whether a buffer exists.
xref-find-definitions
, find the source for the
copy-to-buffer
function.