82 |
* Forms Example:: An example: editing the password data base. |
* Forms Example:: An example: editing the password data base. |
83 |
* Entering and Exiting Forms Mode:: |
* Entering and Exiting Forms Mode:: |
84 |
How to visit a file in Forms mode. |
How to visit a file in Forms mode. |
85 |
* Forms Commands:: Special commands to use while in Forms mode. |
* Forms Commands:: Special commands to use while in Forms mode. |
86 |
* Data File Format:: How to format the data file. |
* Data File Format:: How to format the data file. |
87 |
* Control File Format:: How to control forms mode. |
* Control File Format:: How to control forms mode. |
88 |
* Format Description:: How to define the forms layout. |
* Format Description:: How to define the forms layout. |
254 |
contents for its fields; you can then edit the fields. With a numeric |
contents for its fields; you can then edit the fields. With a numeric |
255 |
argument, the new record is created @emph{after} the current one. |
argument, the new record is created @emph{after} the current one. |
256 |
See also @code{forms-modified-record-filter} in @ref{Modifying Forms |
See also @code{forms-modified-record-filter} in @ref{Modifying Forms |
257 |
Contents}. |
Contents}. |
258 |
|
|
259 |
@findex forms-delete-record |
@findex forms-delete-record |
260 |
@kindex C-c C-k |
@kindex C-c C-k |
531 |
|
|
532 |
@findex forms-insert-after |
@findex forms-insert-after |
533 |
@item forms-insert-after |
@item forms-insert-after |
534 |
If this variable is not @code{nil}, new records are created @emph{after} the |
If this variable is not @code{nil}, new records are created @emph{after} the |
535 |
current record. Also, upon visiting a file, the initial position will be |
current record. Also, upon visiting a file, the initial position will be |
536 |
at the last record instead of the first one. |
at the last record instead of the first one. |
537 |
|
|
613 |
@end example |
@end example |
614 |
|
|
615 |
When you construct the value of @code{forms-format-list}, you should |
When you construct the value of @code{forms-format-list}, you should |
616 |
usually either quote the whole value, like this, |
usually either quote the whole value, like this, |
617 |
|
|
618 |
@example |
@example |
619 |
(setq forms-format-list |
(setq forms-format-list |
654 |
and records of the database. |
and records of the database. |
655 |
|
|
656 |
All normal editing commands are available for editing the contents of the |
All normal editing commands are available for editing the contents of the |
657 |
displayed record. You cannot delete or modify the fixed, explanatory |
displayed record. You cannot delete or modify the fixed, explanatory |
658 |
text that comes from string formatting elements, but you can modify the |
text that comes from string formatting elements, but you can modify the |
659 |
actual field contents. |
actual field contents. |
660 |
|
|
762 |
|
|
763 |
@item Forms control file error: `forms-number-of-fields' must be a number > 0 |
@item Forms control file error: `forms-number-of-fields' must be a number > 0 |
764 |
The variable @code{forms-number-of-fields} did not contain a positive |
The variable @code{forms-number-of-fields} did not contain a positive |
765 |
number. |
number. |
766 |
|
|
767 |
@item Forms control file error: `forms-field-sep' is not a string |
@item Forms control file error: `forms-field-sep' is not a string |
768 |
@itemx Forms control file error: `forms-multi-line' must be nil or a one-character string |
@itemx Forms control file error: `forms-multi-line' must be nil or a one-character string |
835 |
|
|
836 |
@item No write access to @code{"}@var{file}@code{"} |
@item No write access to @code{"}@var{file}@code{"} |
837 |
An attempt was made to enable edit mode on a file that has been write |
An attempt was made to enable edit mode on a file that has been write |
838 |
protected. |
protected. |
839 |
|
|
840 |
@item Search failed: @var{regexp} |
@item Search failed: @var{regexp} |
841 |
The @var{regexp} could not be found in the data file. Forward searching |
The @var{regexp} could not be found in the data file. Forward searching |
899 |
(concat "\n" (make-string target fill)) |
(concat "\n" (make-string target fill)) |
900 |
(make-string (- target (current-column)) fill))) |
(make-string (- target (current-column)) fill))) |
901 |
;; |
;; |
902 |
(defun arch-rj (target field &optional fill) |
(defun arch-rj (target field &optional fill) |
903 |
"Produces a string to skip to column TARGET\ |
"Produces a string to skip to column TARGET\ |
904 |
minus the width of field FIELD. |
minus the width of field FIELD. |
905 |
Prepends newline if needed. |
Prepends newline if needed. |