Question
Modifying a selected range of text
I'm trying to write an ACL script in 5.2 that will take a user selected
range of elements. In this case a series of step1 elements, take that
selection, delete and turn it into a seqlist with items. I can run the
following sample code at the command line and I get what I'm expecting:
copy_mark buf1;
delete_mark buf1;
response(oid_name(oid_first(buffer_doc(buf1))));
response(oid_content(oid_first(buffer_doc(buf1))));
paste buf1;
BUT when I put this in a file, create a funtion and assign it to the F12
key, the response messages show no content, the delete doesn't work but
the paste does. Any ideas on what is going on?
function step1_to_seqlist() {
copy_mark buf1;
delete_mark buf1;
response(oid_name(oid_first(buffer_doc(buf1))));
response(oid_content(oid_first(buffer_doc(buf1))));
paste buf1;
}
response("loaded");
map f12 step1_to_seqlist();
range of elements. In this case a series of step1 elements, take that
selection, delete and turn it into a seqlist with items. I can run the
following sample code at the command line and I get what I'm expecting:
copy_mark buf1;
delete_mark buf1;
response(oid_name(oid_first(buffer_doc(buf1))));
response(oid_content(oid_first(buffer_doc(buf1))));
paste buf1;
BUT when I put this in a file, create a funtion and assign it to the F12
key, the response messages show no content, the delete doesn't work but
the paste does. Any ideas on what is going on?
function step1_to_seqlist() {
copy_mark buf1;
delete_mark buf1;
response(oid_name(oid_first(buffer_doc(buf1))));
response(oid_content(oid_first(buffer_doc(buf1))));
paste buf1;
}
response("loaded");
map f12 step1_to_seqlist();

