[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Forms mode control file serves two purposes. First, it names the data file to use, and defines its format and properties. Second, the Emacs buffer it occupies is used by Forms mode to display the forms.
The contents of the control file are evaluated as a Lisp program. It should set the following Lisp variables to suitable values:
forms-file
(setq forms-file "my/data-file") |
forms-format-list
forms-number-of-fields
(setq forms-number-of-fields 10) |
If the control file doesn't set all of these variables, Forms mode reports an error.
The control file can optionally set the following additional Forms mode variables. Most of them have default values that are good for most applications.
forms-field-sep
"\t"
(a tab character). Example:
(setq forms-field-sep "\t") |
forms-read-only
nil
, the data file is treated read-only. (Forms
mode also treats the data file as read-only if you don't have access to
write it.) Example:
(set forms-read-only t) |
forms-multi-line
nil
, multi-line text fields are prohibited. The pseudo newline
must not be a character contained in forms-field-sep
.
The default value is "\^k"
, so the default pseudo newline is the
character control-k. Example:
(setq forms-multi-line "\^k") |
forms-new-record-filter
nil
, no function is
called.
See section 7. Modifying The Forms Contents, for details.
forms-modified-record-filter
nil
, no function is called.
See section 7. Modifying The Forms Contents, for details.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |