summaryrefslogtreecommitdiff
path: root/lisp/forms.el
Commit message (Collapse)AuthorAgeFilesLines
* (forms-insert-after): New variable. Non-nil means: inserts of newJohan Vromans1996-03-011-13/+31
| | | | | | records go after current record, also initial position is at last record. (forms-mode, forms-insert-record): Use it.
* (forms--process-format-list): Fix error format string.Karl Heuer1996-01-291-6/+6
|
* (forms-mode, forms-toggle-read-only): Fix message text.Karl Heuer1996-01-251-7/+7
| | | | (forms-search-forward, forms-search-backward): Likewise.
* (forms--help, forms-search-forward, forms-search-backward): Pass proper ↵Karl Heuer1996-01-251-5/+5
| | | | format string to message.
* Update FSF's address.Erik Naggum1996-01-141-262/+263
|
* (forms-toggle-read-only, forms-enumerate): Doc fix.Karl Heuer1996-01-041-9/+9
|
* Use `buffer-substring-no-properties' instead of `buffer-substring' toJohan Vromans1995-11-161-11/+11
| | | | avoid the properties being copied.
* Comment change.Richard M. Stallman1995-10-301-4/+5
|
* Comment change.Richard M. Stallman1995-10-281-3/+3
|
* (forms-check-number-of-fields): New vbl.Richard M. Stallman1995-08-141-5/+15
| | | | (forms-mode): Don't issue warning if vbl says not to.
* (forms-mode): treat local-write-file-hooks as a list.Johan Vromans1995-07-081-3/+3
|
* Withdraw mouse-major-mode-map modifications.Johan Vromans1995-06-181-4/+2
| | | | They were erroneous and not needed.
* (forms--mode-menu-edit,forms--mode-menu-ro):Richard M. Stallman1995-06-171-2/+4
| | | | Set `mouse-major-mode-menu'.
* (forms--mode-menu-ro, forms--mode-menu-edit): Fix capitalization in menu bar.Karl Heuer1995-05-301-24/+24
|
* (forms--mode-commands): Delete C-c ? binding.Richard M. Stallman1995-05-021-2/+1
|
* (forms--make-format-elt-using-text-properties)Richard M. Stallman1995-04-251-9/+16
| | | | | | | forms--make-format): Add `intangible' text property to read-only areas. (forms-next-field, forms-previous-field): Use `inhibit-point-motion-hooks' to allow move between two intangible areas.
* Bump version.Johan Vromans1995-01-051-4/+4
|
* Bump version.Johan Vromans1995-01-051-4/+4
|
* Change forms-search to forms-search-forward, and addJohan Vromans1995-01-051-17/+176
| | | | | | | | forms-search-backward. (forms--mode-menu-ro, forms--mode-menu-edit): New functions to create a pulldown menu in the menubar. (forms--mode-commands): Call them for the edit and view mode. (forms-print): New function.
* (forms--update): Undo change made mistakenly.Richard M. Stallman1994-07-261-5/+5
|
* (forms-read-file-filter): new hook function toRichard M. Stallman1994-07-261-33/+155
| | | | | | | | | | | | | | | | | | | | | | | 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'.
* (forms-delete-record): Handle deletion of last lineRichard M. Stallman1994-07-171-5/+5
| | | | when it has no terminating newline.
* (forms-mode): Plug security hole by disabling `eval-buffer' unlessRichard M. Stallman1994-06-131-24/+36
| | | | | | | | | | | | `enable-local-eval' is set to t. Correct setting of `forms--mode-setup'. (forms--local-write-file-function): New function to be used as `local-write-file-hooks'. (forms-mode): Use it. (forms-find-file,forms-find-file-other-window): Locally set `enable-local-eval' and `enable-local-variables' to t. (forms-find-file-other-window): Remove extraneous call to `eval-current-buffer'.
* Doc fix.Richard M. Stallman1994-05-221-4/+4
|
* (forms-mode): Set visited file name to nil to prevent overwrite and autosave.Karl Heuer1994-05-071-5/+4
| | | | The previous method didn't go far enough.
* (forms-mode): Set major mode before finding forms-file. (This givesKarl Heuer1994-03-281-6/+7
| | | | the find-file-hook a way to detect that it's a forms-datafile.)
* (forms--set-minor-mode): Rewrite so that describe-modeRichard M. Stallman1993-10-211-14/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | can parse the value of minor-mode-alist correctly. The string " View" is now dependent on the value of forms-read-only. Documentation: `forms-forms-scroll' and `forms-forms-jump' now default to nil. `forms-new-record-filter' and `forms-modified-record-filter' cannot be redefined as functions. Commands and keymaps are changed. Add function key defs. (forms-version): Docstring includes full RCS id. (forms-forms-scroll): Defaults to nil. (forms-forms-jump): Defaults to nil. (forms-mode-edit-map, forms-mode-ro-map): Additional keymaps for edit mode and read-only mode. (forms--new-record-filter, forms--modified-record-filter): Deleted. (forms-mode): Docstring now includes the key bindings, since both edit mode and read-only mode must be supported. Changed `forms-new-record-filter' and `forms-modified-record-filter' semantics: the variable must point to a function and may not be defined as a function anymore. Use three keymaps: `forms-mode-map' (C-c commands), `forms-mode-edit-map' (normal mode) and `forms-mode-ro-map' (read-only mode). The maps are not buffer local. Corrected error message text. Moved setting up write-file-hooks and revert-buffer-function to function `forms--change-commands'. (forms--process-format-list): Changed error messages to be more descriptive. (forms--set-keymaps): Setup the three keymaps. (forms--mode-commands): Use new command key bindings. (forms--mode-commands1): New helper function for `forms--mode-commands'. (forms--change-commands): Handle setup of local-write-file-hooks and revert-buffer-function. (forms--help): Show new command bindings. (forms--show-record): Replaced `forms--modified-record-filter' by `forms-modified-record-filter'. (forms-jump-record): Changed error message. (forms-toggle-read-only): New function. (forms-view-mode, forms-edit-mode): Deleted. (forms-insert-record): Replaced `forms--new-record-filter' by `forms-new-record-filter'. (forms-insert-record, forms-delete-record): Disallow in read-only mode. (forms-prev-field): New function.
* Version 2.3.Richard M. Stallman1993-09-271-174/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Documentation: `forms-forms-scroll' and `forms-forms-jump' now default to nil. `forms-new-record-filter' and `forms-modified-record-filter' cannot be redefined as functions. Commands and keymaps are changed. Add function key defs. (forms-version): Docstring includes full RCS id. (forms-forms-scroll): Defaults to nil. (forms-forms-jump): Defaults to nil. (forms-mode-edit-map, forms-mode-ro-map): Additional keymaps for edit mode and read-only mode. (forms--new-record-filter, forms--modified-record-filter): Deleted. (forms-mode): Docstring now includes the key bindings, since both edit mode and read-only mode must be supported. Changed `forms-new-record-filter' and `forms-modified-record-filter' semantics: the variable must point to a function and may not be defined as a function anymore. Use three keymaps: `forms-mode-map' (C-c commands), `forms-mode-edit-map' (normal mode) and `forms-mode-ro-map' (read-only mode). The maps are not buffer local. Changed the text of error messages to be more descriptive, and onsistent with the documentation. Moved setting up write-file-hooks and revert-buffer-function to function `forms--change-commands'. (forms--process-format-list): Changed error messages to be more descriptive. (forms--set-keymaps): Setup the three keymaps. (forms--mode-commands): Use new command key bindings. (forms--mode-commands1): New helper function for `forms--mode-commands'. (forms--change-commands): Handle setup of local-write-file-hooks and revert-buffer-function. (forms--help): Show new command bindings. (forms--show-record): Replaced `forms--modified-record-filter' by `forms-modified-record-filter'. (forms-jump-record): Changed error message. (forms-toggle-read-only): New function, replaces `forms-view-mode' and `forms-edit-mode'. (forms-view-mode, forms-edit-mode): Deleted. (forms-insert-record): Replaced `forms--new-record-filter' by `forms-new-record-filter'. (forms-insert-record, forms-delete-record): Disallow in read-only mode. (forms-prev-field): New function.
* Change typos in comments.Richard M. Stallman1993-09-151-93/+97
| | | | | | | | | | | | | | | | | | | | | (forms-delete-record, forms--update): Use `delete-region' instead of `kill-line' to avoid messing around with the kill ring. Release 2.1 for Emacs 19.19. (forms--process-format-list): No need to prepend a text item anymore. (forms--ro-modification-start): Renamed to `forms--iif-start. (forms--ro-properties): Renamed to `forms--iif-properties'. (forms--romh): Renamed to `forms--iif-hook'. Rewritten to use `insert-in-front-hooks' instead of `modification-hooks'. (forms--romh-post-command-hook): Renamed to `forms--iif-post-command-hook'. Rewritten to use `insert-in-front-hooks' instead of `modification-hooks'. (forms--make-format, forms--make-format-elt-using-text-properties): Use `insert-in-front-hooks' instead of `modification-hooks'. Remove `forms--electric' code. Use `front-sticky' and `rear-nonsticky' text properties to control the insertion of text between read-only fields. (forms--show-record): Remove `forms--electric' code.
* Rewritten by Vromans to use text properties.Richard M. Stallman1993-07-171-319/+650
|
* (forms-new-record-filter): Correct default value.Richard M. Stallman1993-07-041-4/+5
| | | | (forms-modified-record-filter): Correct default value.
* Add e-mail address and version info.Richard M. Stallman1993-06-301-72/+66
| | | | | | | Adjust commentary and doc strings. (forms-mode): Add ###autoload. (forms-find-file): Add ###autoload. (forms-find-file-other-window): Add ###autoload.
* entered into RCSRichard M. Stallman1993-06-191-83/+30
|
* *** empty log message ***Richard M. Stallman1993-06-191-9/+12
|
* *** empty log message ***Richard M. Stallman1993-06-121-95/+88
|
* *** empty log message ***Richard M. Stallman1991-07-011-101/+262
|
* Initial revisionBrian Preble1991-05-201-0/+1195