diff options
| author | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
| commit | f0f8d7b82492e741950c363a03b886965c91b1b0 (patch) | |
| tree | 19b716830b1ebabc0d7d75949c4e6800c0f104ad /lisp/forms.el | |
| parent | 9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff) | |
| parent | c818c29771d3cb51875643b2f6c894073e429dd2 (diff) | |
| download | emacs-feature/native-comp-macos-fixes.tar.gz emacs-feature/native-comp-macos-fixes.zip | |
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'lisp/forms.el')
| -rw-r--r-- | lisp/forms.el | 25 |
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) |