aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/forms.el25
1 files changed, 10 insertions, 15 deletions
diff --git a/lisp/forms.el b/lisp/forms.el
index fcb6075f94b..83daabdcd6e 100644
--- a/lisp/forms.el
+++ b/lisp/forms.el
@@ -504,12 +504,9 @@ Commands: Equivalent keys in read-only mode:
504 (setq forms-new-record-filter nil) 504 (setq forms-new-record-filter nil)
505 (setq forms-modified-record-filter nil) 505 (setq forms-modified-record-filter nil)
506 506
507 ;; If running Emacs 19 under X, setup faces to show read-only and 507 ;; Setup faces to show read-only and read-write fields.
508 ;; read-write fields. 508 (make-local-variable 'forms-ro-face)
509 (if (fboundp 'make-face) 509 (make-local-variable 'forms-rw-face)
510 (progn
511 (make-local-variable 'forms-ro-face)
512 (make-local-variable 'forms-rw-face)))
513 510
514 ;; eval the buffer, should set variables 511 ;; eval the buffer, should set variables
515 ;;(message "forms: processing control file...") 512 ;;(message "forms: processing control file...")
@@ -609,16 +606,14 @@ Commands: Equivalent keys in read-only mode:
609 (setq forms--mode-setup t) 606 (setq forms--mode-setup t)
610 607
611 ;; Copy desired faces to the actual variables used by the forms formatter. 608 ;; Copy desired faces to the actual variables used by the forms formatter.
612 (if (fboundp 'make-face) 609 (make-local-variable 'forms--ro-face)
610 (make-local-variable 'forms--rw-face)
611 (if forms-read-only
613 (progn 612 (progn
614 (make-local-variable 'forms--ro-face) 613 (setq forms--ro-face forms-ro-face)
615 (make-local-variable 'forms--rw-face) 614 (setq forms--rw-face forms-ro-face))
616 (if forms-read-only 615 (setq forms--ro-face forms-ro-face)
617 (progn 616 (setq forms--rw-face forms-rw-face))
618 (setq forms--ro-face forms-ro-face)
619 (setq forms--rw-face forms-ro-face))
620 (setq forms--ro-face forms-ro-face)
621 (setq forms--rw-face forms-rw-face))))
622 617
623 ;; Make more local variables. 618 ;; Make more local variables.
624 (make-local-variable 'forms--file-buffer) 619 (make-local-variable 'forms--file-buffer)