Arbortext Command Language > Hooks > editfilehook
  
editfilehook
editfilehook
Function prototype:
hook (code)
Synopsis
Use with:
add_hook(hookname, func[, prepend])
remove_hook(hookname, func)
where hookname is editfilehook.
This hook is called whenever a file is edited, just after the document type instance files (instance.acl and instance.js) or document command files (docname.acl and docname.js), if any, are read.
Argument
code is an integer specifying detail about type of edit occurring:
0 — The document is being displayed into a new or empty window.
1 — The document is being reverted.
2 — The document replaces another document in the current window (for example, from an edit command without the -newwindow option, or a doc_show call).
3 — The document is being reverted from its untagged state to its tagged state.