diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-06-19 00:08:24 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-06-19 00:08:24 +0000 |
commit | b073bf918dc4da56017496c5c70bb0bf7f6a9f1c (patch) | |
tree | a716f83b4dff6a5c5f7ca385172f55827ff96b0f /lisp | |
parent | e29fbb72a8df731ee8cd2fd78542c8d962351302 (diff) | |
download | emacs-b073bf918dc4da56017496c5c70bb0bf7f6a9f1c.tar.gz |
*** empty log message ***
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/forms.el | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lisp/forms.el b/lisp/forms.el index ab10b5c701d..ccc25530bf5 100644 --- a/lisp/forms.el +++ b/lisp/forms.el @@ -201,14 +201,16 @@ ;;; x forms-exit-no-save ;;; DEL forms-prev-record ;;; -;;; Standard functions scroll-up, scroll-down, beginning-of-buffer and -;;; end-of-buffer are wrapped with re-definitions, which map them to -;;; next/prev record and first/last record. -;;; Buffer-local variables forms-forms-scroll and forms-forms-jump -;;; may be used to control these redefinitions. +;;; The bindings of standard functions scroll-up, scroll-down, +;;; beginning-of-buffer and end-of-buffer are locally replaced with +;;; forms mode functions next/prev record and first/last +;;; record. Buffer-local variables forms-forms-scroll and +;;; forms-forms-jump (default: t) may be set to nil to inhibit +;;; rebinding. ;;; -;;; Function save-buffer is also wrapped to perform a sensible action. -;;; A revert-file-hook is defined to revert a forms to original. +;;; A local-write-file hook is defined to save the actual data file +;;; instead of the buffer data, a revert-file-hook is defined to +;;; revert a forms to original. ;;; ;;; For convenience, TAB is always bound to forms-next-field, so you ;;; don't need the C-c prefix for this command. @@ -434,8 +436,7 @@ (if forms-mode-map ; already defined nil (setq forms-mode-map (make-keymap)) - (forms--mode-commands forms-mode-map) - (forms--change-commands)) + (forms--mode-commands forms-mode-map)) ;; find the data file (setq forms--file-buffer (find-file-noselect forms-file)) @@ -457,6 +458,8 @@ (make-local-variable 'minor-mode-alist) ; needed? (forms--set-minor-mode) (forms--set-keymaps) + (make-local-variable 'local-write-file-hooks) + (forms--change-commands) (set-buffer-modified-p nil) |