aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Vromans1995-07-08 13:16:54 +0000
committerJohan Vromans1995-07-08 13:16:54 +0000
commitbe3e4bb1b8e09b8240991b522c498b6ca3cf20b5 (patch)
tree5e37847d05e2177a4a0b61e57a46de1101ed9dbe
parentd5ad1373ccae86994f44aa2b64caa0dbada4fb8c (diff)
downloademacs-be3e4bb1b8e09b8240991b522c498b6ca3cf20b5.tar.gz
emacs-be3e4bb1b8e09b8240991b522c498b6ca3cf20b5.zip
(forms-mode): treat local-write-file-hooks as a list.
-rw-r--r--lisp/forms.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/forms.el b/lisp/forms.el
index 0bc656e9ed4..5f257671647 100644
--- a/lisp/forms.el
+++ b/lisp/forms.el
@@ -282,10 +282,10 @@
282(provide 'forms) ;;; official 282(provide 'forms) ;;; official
283(provide 'forms-mode) ;;; for compatibility 283(provide 'forms-mode) ;;; for compatibility
284 284
285(defconst forms-version (substring "$Revision: 2.17 $" 11 -2) 285(defconst forms-version (substring "$Revision: 2.18 $" 11 -2)
286 "The version number of forms-mode (as string). The complete RCS id is: 286 "The version number of forms-mode (as string). The complete RCS id is:
287 287
288 $Id: forms.el,v 2.17 1995/06/17 13:00:22 rms Exp jvromans $") 288 $Id: forms.el,v 2.18 1995/06/18 14:43:23 jvromans Exp jvromans $")
289 289
290(defvar forms-mode-hooks nil 290(defvar forms-mode-hooks nil
291 "Hook functions to be run upon entering Forms mode.") 291 "Hook functions to be run upon entering Forms mode.")
@@ -619,7 +619,7 @@ Commands: Equivalent keys in read-only mode:
619 (save-excursion 619 (save-excursion
620 (set-buffer forms--file-buffer) 620 (set-buffer forms--file-buffer)
621 (make-variable-buffer-local 'local-write-file-hooks) 621 (make-variable-buffer-local 'local-write-file-hooks)
622 (setq local-write-file-hooks write-file-filter))))) 622 (setq local-write-file-hooks (list write-file-filter))))))
623 623
624 ;; count the number of records, and set see if it may be modified 624 ;; count the number of records, and set see if it may be modified
625 (let (ro) 625 (let (ro)