eduardo.gutentag said:
> Your alternatives to accomplish what you want are
>
> a) make a copy of _return::next_logical_return(), modify it for your purposes
> and make sure that its location is earlier in the loadpath than the original, or
>
> b) unmap Return and then map it to what you want it to be.
I've already done b. It didn't work. Here's the code from the doctype
pubrc:
function return_key() {
# Return inside LISTITEM,PARA adds LISTITEM
if ( inside_tag( "listitem" ) && oid_name( oid_caret() ) == "para" && \
oid_name( oid_parent( oid_caret() ) ) == "listitem" ) {
goto_oid( oid_parent( oid_caret() ), -1 )
forward_char( 1 )
insert_tag( "listitem" )
}
# Return inside LIST adds LISTITEM
if ( inside_tag( "list" ) && oid_name( oid_caret() ) == "list") {
insert_tag( "listitem" )
}
# Return inside STEP adds STEP
if ( inside_tag( "step" ) && oid_name( oid_caret() ) == "para" ) {
goto_oid( oid_parent( oid_caret() ), -1 )
forward_char( 1 )
insert_tag( "step" )
}
# Return inside TITLE jumps out
else if (oid_name(oid_caret()) == "title") {
goto_oid(oid_caret(), -1)
forward_char( 1 )
}
# Return inside PROCEDURE adds new step
else if (oid_name(oid_caret()) == "procedure") {
insert_tag( "step" )
}
else {
# this is the default mapping for the return key
newline
}
}
if (!keymap_exists(sybase)){
copy_keymap edit sybase
map @sybase return return_key()
map @sybase shift-return ie hr
}
set keymap=sybase
What am I missing?
Steve Cogorno Information Products Group
cogorno@sybase.com Sybase, Inc.