]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve font specs generated by the Haiku font dialog
authorPo Lu <luangruo@yahoo.com>
Fri, 6 May 2022 12:06:16 +0000 (12:06 +0000)
committerPo Lu <luangruo@yahoo.com>
Fri, 6 May 2022 12:06:35 +0000 (12:06 +0000)
* src/haikufont.c (Fx_select_font): Use `nil' instead of
`unspecified' to be consistent with other font dialogs.

src/haikufont.c

index f8cf45284d08e11774570a596ae5eebfd5fe85b9..e0db086aa00570c5a9582b9409e37c3d64a6b580 100644 (file)
@@ -1231,14 +1231,11 @@ in the font selection dialog.  */)
 
   lfamily = build_string_from_utf8 (family);
   lweight = (pattern.specified & FSPEC_WEIGHT
-            ? haikufont_weight_to_lisp (pattern.weight)
-            : Qunspecified);
+            ? haikufont_weight_to_lisp (pattern.weight) : Qnil);
   lslant = (pattern.specified & FSPEC_SLANT
-           ? haikufont_slant_to_lisp (pattern.slant)
-           : Qunspecified);
+           ? haikufont_slant_to_lisp (pattern.slant) : Qnil);
   lwidth = (pattern.specified & FSPEC_WIDTH
-           ? haikufont_width_to_lisp (pattern.width)
-           : Qunspecified);
+           ? haikufont_width_to_lisp (pattern.width) : Qnil);
   ladstyle = (pattern.specified & FSPEC_STYLE
             ? intern (pattern.style) : Qnil);
   lsize = (size >= 0 ? make_fixnum (size) : Qnil);