diff options
| -rw-r--r-- | lisp/cus-edit.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index d3d17fda7ad..1ec27085506 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -3824,7 +3824,17 @@ Optional EVENT is the location for the menu." | |||
| 3824 | 3824 | ||
| 3825 | (defun custom-face-save (widget) | 3825 | (defun custom-face-save (widget) |
| 3826 | "Save the face edited by WIDGET." | 3826 | "Save the face edited by WIDGET." |
| 3827 | (custom-face-mark-to-save widget) | 3827 | (let ((form (widget-get widget :custom-form))) |
| 3828 | (if (memq form '(all lisp)) | ||
| 3829 | (custom-face-mark-to-save widget) | ||
| 3830 | ;; The user is working on only a selected terminal type; | ||
| 3831 | ;; make sure we save the entire spec to `custom-file'. (Bug #40866) | ||
| 3832 | (custom-face-edit-all widget) | ||
| 3833 | (custom-face-mark-to-save widget) | ||
| 3834 | (if (eq form 'selected) | ||
| 3835 | (custom-face-edit-selected widget) | ||
| 3836 | ;; `form' is edit or mismatch; can't happen. | ||
| 3837 | (widget-put widget :custom-form form)))) | ||
| 3828 | (custom-save-all) | 3838 | (custom-save-all) |
| 3829 | (custom-face-state-set-and-redraw widget)) | 3839 | (custom-face-state-set-and-redraw widget)) |
| 3830 | 3840 | ||