Next Previous Contents

5. Abbreviation Functions

5.1 abbrev_table_p

Synopsis

abbrev_table_p

Usage

Integer abbrev_table_p (String name);

Description

Returns non-zero if an abbreviation table with called name exists. If the table does not exist, it returns zero.

5.2 create_abbrev_table

Synopsis

create_abbrev_table

Usage

Void create_abbrev_table (String name, String word);

Description

Create an abbreviation table with name name. The second parameter word is the list of characters used to represent a word for the table. If the empty string is passed for word, the characters that currently constitute a word are used.

5.3 define_abbrev

Synopsis

define_abbrev

Usage

Void define_abbrev (String tbl, String abbrv, String expans);

Description

This function is used to define an abbreviation abbrv that will be expanded to expans. The definition will be placed in the table with name tbl.

5.4 delete_abbrev_table

Synopsis

delete_abbrev_table

Usage

Void delete_abbrev_table (String name);

Description

Delete the abbrev table specified by name.

5.5 dump_abbrev_table

Synopsis

dump_abbrev_table

Usage

Void dump_abbrev_table (String name);

Description

This function inserts the contents of the abbreviation table called name into the current buffer.

5.6 list_abbrev_tables

Synopsis

list_abbrev_tables

Usage

Integer list_abbrev_tables ();

Description

This function returns the names of all currently defined abbreviation tables. The top item on the stack will be the number of tables followed by the names of the tables.

5.7 use_abbrev_table

Synopsis

use_abbrev_table

Usage

Void use_abbrev_table (String table);

Description

Use the abbreviation table named table as the abbreviation table for the current buffer. By default, the "Global" table is used.

5.8 what_abbrev_table

Synopsis

what_abbrev_table

Usage

(String, String) what_abbrev_table ();

Description

This functions returns both the name of the abbreviation table and the definition of the word for the table currently associated with the current buffer. If none is defined it returns two empty strings.


Next Previous Contents