aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/font.c b/src/font.c
index 231df2ef71a..124d5f9bd9e 100644
--- a/src/font.c
+++ b/src/font.c
@@ -472,7 +472,7 @@ font_registry_charsets (Lisp_Object registry, struct charset **encoding, struct
472 goto invalid_entry; 472 goto invalid_entry;
473 val = Fcons (make_number (encoding_id), make_number (repertory_id)); 473 val = Fcons (make_number (encoding_id), make_number (repertory_id));
474 font_charset_alist 474 font_charset_alist
475 = nconc2 (font_charset_alist, Fcons (Fcons (registry, val), Qnil)); 475 = nconc2 (font_charset_alist, list1 (Fcons (registry, val)));
476 } 476 }
477 477
478 if (encoding) 478 if (encoding)
@@ -483,7 +483,7 @@ font_registry_charsets (Lisp_Object registry, struct charset **encoding, struct
483 483
484 invalid_entry: 484 invalid_entry:
485 font_charset_alist 485 font_charset_alist
486 = nconc2 (font_charset_alist, Fcons (Fcons (registry, Qnil), Qnil)); 486 = nconc2 (font_charset_alist, list1 (Fcons (registry, Qnil)));
487 return -1; 487 return -1;
488} 488}
489 489
@@ -1453,7 +1453,7 @@ font_parse_fcname (char *name, ptrdiff_t len, Lisp_Object font)
1453 else 1453 else
1454 { 1454 {
1455 extra_props = nconc2 (extra_props, 1455 extra_props = nconc2 (extra_props,
1456 Fcons (Fcons (key, val), Qnil)); 1456 list1 (Fcons (key, val)));
1457 } 1457 }
1458 } 1458 }
1459 p = q; 1459 p = q;
@@ -1861,7 +1861,7 @@ otf_open (Lisp_Object file)
1861 else 1861 else
1862 { 1862 {
1863 otf = STRINGP (file) ? OTF_open (SSDATA (file)) : NULL; 1863 otf = STRINGP (file) ? OTF_open (SSDATA (file)) : NULL;
1864 val = make_save_pointer (otf); 1864 val = make_save_ptr (otf);
1865 otf_list = Fcons (Fcons (file, val), otf_list); 1865 otf_list = Fcons (Fcons (file, val), otf_list);
1866 } 1866 }
1867 return otf; 1867 return otf;
@@ -2519,7 +2519,7 @@ font_prepare_cache (FRAME_PTR f, struct font_driver *driver)
2519 val = XCDR (val); 2519 val = XCDR (val);
2520 if (NILP (val)) 2520 if (NILP (val))
2521 { 2521 {
2522 val = Fcons (driver->type, Fcons (make_number (1), Qnil)); 2522 val = list2 (driver->type, make_number (1));
2523 XSETCDR (cache, Fcons (val, XCDR (cache))); 2523 XSETCDR (cache, Fcons (val, XCDR (cache)));
2524 } 2524 }
2525 else 2525 else
@@ -3517,8 +3517,7 @@ font_update_drivers (FRAME_PTR f, Lisp_Object new_drivers)
3517 3517
3518 for (list = f->font_driver_list; list; list = list->next) 3518 for (list = f->font_driver_list; list; list = list->next)
3519 if (list->on) 3519 if (list->on)
3520 active_drivers = nconc2 (active_drivers, 3520 active_drivers = nconc2 (active_drivers, list1 (list->driver->type));
3521 Fcons (list->driver->type, Qnil));
3522 return active_drivers; 3521 return active_drivers;
3523} 3522}
3524 3523
@@ -4133,7 +4132,7 @@ how close they are to PREFER. */)
4133 return Qnil; 4132 return Qnil;
4134 if (NILP (XCDR (list)) 4133 if (NILP (XCDR (list))
4135 && ASIZE (XCAR (list)) == 1) 4134 && ASIZE (XCAR (list)) == 1)
4136 return Fcons (AREF (XCAR (list), 0), Qnil); 4135 return list1 (AREF (XCAR (list), 0));
4137 4136
4138 if (! NILP (prefer)) 4137 if (! NILP (prefer))
4139 vec = font_sort_entities (list, prefer, frame, 0); 4138 vec = font_sort_entities (list, prefer, frame, 0);