HELP VEDVEDDEFAULTS                                  A. Sloman July 1986
                                                       Updated Sept 1990
    vedveddefaults()

This user-definable procedure is called by VED every time a new file is
created or read in to the buffer, or an old file is given a new name,
using

    <ENTER> name <newname>

If you wish to have different default values for VED variables, e.g. for
VEDNOTABS, VEDWRITEABLE, VEDBREAK, or VEDCOMPILEABLE, depending on the
file name (which is in the variable VEDCURRENT) or the full path name
(in the variable VEDPATHNAME) you can define VEDVEDDEFAULTS to arrange
this.

If the values can be determined simply on the basis of the file suffix
then it is easiest to use * VEDFILETYPES rather than VEDVEDDEFAULTS

NOTE that VEDFILETYPES gets interpreted and VEDVEDDEFAULTS obeyed before
a new file is read in. To enable user-defined actions to occur after the
file text is available, a user-defineable procedure called VEDINITIALISE
(with one argument, described in REF * VEDPROCS/vedinitialise) is
invoked after a new buffer is read in or created, and also when a file
is renamed.


Examples of the use of VEDVEDDEFAULTS

E.g. if you want all the files in your 'lib' subdirectory to have
VEDNOTABS set FALSE (so that tabs are preserved), then, on a UNIX
version of poplog put the following in your VEDINIT.P file.

    define vedveddefaults();
        if issubstring('/lib/',vedpathname) then
            false -> vednotabs
        endif;
    enddefine;

For VMS replace the second line with:

        if issubstring('.lib]',1,vedpathname) then

(In POPLOG, VMS file-names are represented in lower case.)

When a system library file is read in by VED, using HELP or TEACH, or
SHOWLIB, etc. then the call of VEDVEDDEFAULTS is replaced by a call of
VEDHELPDEFAULTS, to ensure that VEDWRITEABLE and VEDCOMPILEABLE are both
FALSE. The procedure VEDHELPDEFAULTS first calls VEDVEDDEFAULTS.

See also
    HELP * INITIAL          - general guide to Poplog initialisations
    HELP * VEDFILETYPES     - mechanism for initialising VED variables
    REF  * VEDINITFILE      - procedure run each time file is displayed
    REF  * VEDVARS          - description of VED control variables
    REF  * VEDPROCS         - description of VED procedures
    REF  * vedinitialise
    REF  * VEDCOMMS         - description of VED <ENTER> commands

--- C.all/help/vedveddefaults
--- Copyright University of Sussex 1990. All rights reserved. ----------
