diff options
Diffstat (limited to 'src/xfaces.c')
| -rw-r--r-- | src/xfaces.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 76b23a31278..11feaecd1c3 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -2615,8 +2615,7 @@ Value is a vector of face attributes. */) | |||
| 2615 | /* Add a global definition if there is none. */ | 2615 | /* Add a global definition if there is none. */ |
| 2616 | if (NILP (global_lface)) | 2616 | if (NILP (global_lface)) |
| 2617 | { | 2617 | { |
| 2618 | global_lface = Fmake_vector (make_fixnum (LFACE_VECTOR_SIZE), | 2618 | global_lface = make_vector (LFACE_VECTOR_SIZE, Qunspecified); |
| 2619 | Qunspecified); | ||
| 2620 | ASET (global_lface, 0, Qface); | 2619 | ASET (global_lface, 0, Qface); |
| 2621 | Vface_new_frame_defaults = Fcons (Fcons (face, global_lface), | 2620 | Vface_new_frame_defaults = Fcons (Fcons (face, global_lface), |
| 2622 | Vface_new_frame_defaults); | 2621 | Vface_new_frame_defaults); |
| @@ -2643,8 +2642,7 @@ Value is a vector of face attributes. */) | |||
| 2643 | { | 2642 | { |
| 2644 | if (NILP (lface)) | 2643 | if (NILP (lface)) |
| 2645 | { | 2644 | { |
| 2646 | lface = Fmake_vector (make_fixnum (LFACE_VECTOR_SIZE), | 2645 | lface = make_vector (LFACE_VECTOR_SIZE, Qunspecified); |
| 2647 | Qunspecified); | ||
| 2648 | ASET (lface, 0, Qface); | 2646 | ASET (lface, 0, Qface); |
| 2649 | fset_face_alist (f, Fcons (Fcons (face, lface), f->face_alist)); | 2647 | fset_face_alist (f, Fcons (Fcons (face, lface), f->face_alist)); |
| 2650 | } | 2648 | } |
| @@ -4775,9 +4773,7 @@ DEFUN ("face-attributes-as-vector", Fface_attributes_as_vector, | |||
| 4775 | doc: /* Return a vector of face attributes corresponding to PLIST. */) | 4773 | doc: /* Return a vector of face attributes corresponding to PLIST. */) |
| 4776 | (Lisp_Object plist) | 4774 | (Lisp_Object plist) |
| 4777 | { | 4775 | { |
| 4778 | Lisp_Object lface; | 4776 | Lisp_Object lface = make_vector (LFACE_VECTOR_SIZE, Qunspecified); |
| 4779 | lface = Fmake_vector (make_fixnum (LFACE_VECTOR_SIZE), | ||
| 4780 | Qunspecified); | ||
| 4781 | merge_face_ref (NULL, XFRAME (selected_frame), | 4777 | merge_face_ref (NULL, XFRAME (selected_frame), |
| 4782 | plist, XVECTOR (lface)->contents, | 4778 | plist, XVECTOR (lface)->contents, |
| 4783 | true, 0); | 4779 | true, 0); |