Hi Dan--
When using commands in a function, you need to be careful to put quotes
around literals like names. On the command line you can get away with
this:
copy_mark buf1
and Arbortext will figure out that you mean "buf1" to be the name of a
buffer. But in a function defined in an ACL file, you need to put quotes
around the buffer name so Arbortext knows you mean a literal name and
not a variable reference. So it should look something like this:
copy_mark "buf1"
This applies to all the references to the buffer in the function.
Also, w.r.t. the delete not working, you might need to add the -noclm
flag to the copy_mark command to prevent it from clearing the selection
after the copy. (Caveat: I'm using 5.3, so it's possible that 5.2 is
different, but I would be surprised.)
copy_mark -noclm "buf1"
So, in total, here's what works for me:
function testpaste() {
local buf1;
copy_mark -noclm "buf1";
delete_mark "buf1";
response(oid_name(oid_first(buffer_doc("buf1"))));
response(oid_content(oid_first(buffer_doc("buf1"))));
paste "buf1";
}
HTH
--Clay