Mercurial > emacs
annotate src/chpdef.h @ 8344:e206050c7d51
(forms-read-file-filter): new hook function to
preprocess file contents before being passed to forms mode.
(forms-write-file-filter): new hook function to preprocess file
contents before it is being saved to disk. Can be used to undo the
effects of `forms-read-file-filter'.
(forms-mode): Supply a default format if no `forms-format-list' was
specified.
Preprocess file contents using `forms-read-file-filter' and attach
`forms-write-file-filter' to the `local-write-file-hooks' of the file
buffer.
Present a friendly message if the visited file is empty or new.
(forms--intuit-from-file): New subroutine to get the number of fields
from the data file; constructs a default format list.
(forms-save-buffer): Forms mode wrapper for `save-buffer'.
(forms--change-commands, forms--exit): Use it.
(forms--update): Check for the presence of the field separator in any
of the fields. Refuse update if found.
(forms-delete-record): Allow the last record of the file to be
deleted, even if not terminated by a newline.
(forms--local-write-file-function): Remove. Didn't do any good.
Replaced by `forms-save-buffer'.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 26 Jul 1994 19:47:39 +0000 |
parents | 3165b2697c78 |
children | 695cf19ef79e |
rev | line source |
---|---|
484 | 1 #define CHP$_END 0 |
2 #define CHP$_ACCESS 1 | |
3 #define CHP$_FLAGS 2 | |
4 #define CHP$_PRIV 3 | |
5 #define CHP$_ACMODE 4 | |
6 #define CHP$_ACCLASS 5 | |
7 #define CHP$_RIGHTS 6 | |
8 #define CHP$_ADDRIGHTS 7 | |
9 #define CHP$_MODE 8 | |
10 #define CHP$_MODES 9 | |
11 #define CHP$_MINCLASS 10 | |
12 #define CHP$_MAXCLASS 11 | |
13 #define CHP$_OWNER 12 | |
14 #define CHP$_PROT 13 | |
15 #define CHP$_ACL 14 | |
16 #define CHP$_AUDITNAME 15 | |
17 #define CHP$_ALARMNAME 16 | |
18 #define CHP$_MATCHEDACE 17 | |
19 #define CHP$_PRIVUSED 18 | |
20 #define CHP$_MAX_CODE 19 | |
21 #define CHP$M_SYSPRV 1 | |
22 #define CHP$M_BYPASS 2 | |
23 #define CHP$M_UPGRADE 4 | |
24 #define CHP$M_DOWNGRADE 8 | |
25 #define CHP$M_GRPPRV 16 | |
26 #define CHP$M_READALL 32 | |
27 #define CHP$V_SYSPRV 0 | |
28 #define CHP$V_BYPASS 1 | |
29 #define CHP$V_UPGRADE 2 | |
30 #define CHP$V_DOWNGRADE 3 | |
31 #define CHP$V_GRPPRV 4 | |
32 #define CHP$V_READALL 5 | |
33 #define CHP$M_READ 1 | |
34 #define CHP$M_WRITE 2 | |
35 #define CHP$M_USEREADALL 4 | |
36 #define CHP$V_READ 0 | |
37 #define CHP$V_WRITE 1 | |
38 #define CHP$V_USEREADALL 2 |