Arbortext Command Language > Commands > menu_load
  
menu_load
menu_load [-dname [-dname]] [ -uname [-uname]] [filename]
A menu.cf file is a menu configuration file created and placed in the directory containing the document file when you use the menu_save command. menu_load loads the specified menu configuration file (filename). If no menu file is specified with menu_load, Arbortext Editor determines the menu configuration as follows.
The menu.cf file in the directory containing the document file is used.
If there is no menu.cf file in the directory containing the document file, then the menu.cf file in the directory specified by the environment variable $APTMENUFILE is loaded.
If menu.cf is not found in the path and directory specified by $APTMENUFILE, the default menu configuration file located at Arbortext-path\lib\editmenu.cf is loaded.
Therefore, to reinstate your default menu after loading a custom menu, use menu_load without specifying a menu file.
The -d option with menu_load defines the associated symbol name for the processor used to parse the menu.cf file.
The -u option with menu_load removes the definition of the associated symbol name for the processor used to parse the menu.cf file.
More than one name can be defined (or have its definition removed) by specifying multiple -d (or -u) options.
Examples
menu_load menu.cf
menu_load /mdm/book.men
menu_load -u fullmenus
Related Topics
Modifying the default menus
Using menu paths
menu_add command
menu_add -menu command
menu_copy command
menu_delete command
menu_move command
menu_reset command
menu_save command