Arbortext Command Language > Hooks > editshowhook
  
editshowhook
editshowhook
 
Synopsis
Use with:
add_hook('editshowhook', func[, prepend])
remove_hook('editshowhook', func)
This hook is called before showing a document which is already open. If this function returns -1, the operation is canceled.
If the hook closes the already open document and returns 0, the document will be opened.
Argument
path is the path of the document or file being opened.