CPUG HOME QMAKE RCS AMMA HOME GAMA HOME
AMMA mode for XEmacs
Centre for Vision, Speech & Signal Processing

I have written a configuration file for XEMACS to make AMMA world seem a little easier. This allows for you to compile AMMA programs at the touch of a button, to call up documentation by highlighting a class with your mouse. To search through the AMMA documentation from within XEmacs. The documentation is displayed in your nearest open netscape. You can also start the AMMA class wizard which allows you to create the basic shell of a class at the touch of a button.

To use this mode you have to add the following line at the end of your .emacs file in your home directory.

(setq load-path (append (list nil "/vol/vssp/local/Tools/Users") load-path))
(load "amma-global.el")

This mode automatically starts when you open a .cc or .hh file. It is an extension of the usual c++-mode.

When this mode starts two new menus will appear on the top menu bar, AMMA and Compile. Description of each menu item is given in the tables below. For many items there is a shortcut by using the keyboard. These are also listed in the table. .

New Features - added June 2000

  1. Words ending in the letters 'C' and 'T' are now highlighted a golden yellow colour.
  2. A function has been added which generates the C++ code when you want to add a variable to your class. It is not very clever as the code still needs to be pasted into the correct parts of your program, but it saves some typing.
  3. A similar function has also been added to generate the code for a member function for big and small objects.
  4. Also, you are now allowed to have multiple project outs by defining an environment variable PROJECT_OUT_PATH, e.g. add the following line to your .cshrc file setenv PROJECT_OUT_PATH ${PROJECT_OUT}:/vol/vssp/dera/soft:/vol/vssp/buf/vega/ees2km:/tmp

I think a common problem will be with your key-bindings. If you have set F1, F4, F5, F6 or F11 to do a command in your window manager, these will not work. Come and see me for a fix.

Also if you would like any features added then let me know. Any feedback, positive or


Compile
Compile (F5) Compile the code in current directory.
View Compile Look at current command used to compile code.
Project Out Choose between your specified project outs.
Version Change the current AMMA version (opt, debug, check e.t.c.)
Hosts Change the current host machine used to compile on (i.e. seven, trinity, vega).
Release Change the current AMMA release used to link to (i.e. stable, beta, alpha).

AMMA
Load files in defs.mk (F10) This loads all your MAINS, SOURCE and HEADERS files specified in current directory defs.mk file into the Buffers menu.
Code
Class Wizard (F6) Start AMMA class wizard. Enables you to generate new classes and executables at the touch of a button.
Insert Class Member Inserts the code required for a new data member for you class.
Insert Class Function Inserts the code required for a new member function for you class.
Functions (F8) Lists all the functions in your source code.
Documentation
Class Documentation (F11) Type in full class name and class documentation will appear in netscape. Allows for file completion (i.e.TAB TAB)
Selected Class Documentaion (F1) Highlight AMMA class with mouse or keys and documentation will appear in netscape
Search Class Documentation (F4) Type in class name or partial class name and AMMA search will be performed.
Homepage AMMA homepage will appear in nearest netscape.
CPUG Homepage Take you to CPUG homepage.
Support Take you to AMMA support wreq..
AMMA Source Code
AMMA Header File (F9) This allows you to load in an AMMA header file into XEmacs. Allows for file completion (i.e.TAB TAB)
K.Messer@surrey.ac.uk Last updated: Thu Jun 15 12:26:40 BST 2000