aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog7
-rw-r--r--src/font.c14
2 files changed, 11 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7d9647cbb11..544cb4f39a2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-01-25 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * font.c (num_fonts): Remove the leftover from old
4 debugging code. Adjust comment style here and there.
5
12013-01-25 Eli Zaretskii <eliz@gnu.org> 62013-01-25 Eli Zaretskii <eliz@gnu.org>
2 7
3 * w32.c (max_filename_mbslen): New function. 8 * w32.c (max_filename_mbslen): New function.
@@ -36,7 +41,7 @@
36 (w32_read_socket): Save iconified state to generate DEICONIFY_EVENT 41 (w32_read_socket): Save iconified state to generate DEICONIFY_EVENT
37 properly. Likewise for obscured. 42 properly. Likewise for obscured.
38 * xterm.c: Ditto. 43 * xterm.c: Ditto.
39 (handle_one_xevent): Save visible state go generate ICONIFY_EVENT 44 (handle_one_xevent): Save visible state to generate ICONIFY_EVENT
40 properly. 45 properly.
41 * nsterm.m: Ditto. 46 * nsterm.m: Ditto.
42 (windowDidDeminiaturize): Generate DEICONIFY_EVENT. 47 (windowDidDeminiaturize): Generate DEICONIFY_EVENT.
diff --git a/src/font.c b/src/font.c
index 18caf751643..3cffe2558ae 100644
--- a/src/font.c
+++ b/src/font.c
@@ -717,7 +717,7 @@ font_put_extra (Lisp_Object font, Lisp_Object prop, Lisp_Object val)
717} 717}
718 718
719 719
720/* Font name parser and unparser */ 720/* Font name parser and unparser. */
721 721
722static int parse_matrix (const char *); 722static int parse_matrix (const char *);
723static int font_expand_wildcards (Lisp_Object *, int); 723static int font_expand_wildcards (Lisp_Object *, int);
@@ -1746,7 +1746,7 @@ font_parse_family_registry (Lisp_Object family, Lisp_Object registry, Lisp_Objec
1746/* This part (through the next ^L) is still experimental and not 1746/* This part (through the next ^L) is still experimental and not
1747 tested much. We may drastically change codes. */ 1747 tested much. We may drastically change codes. */
1748 1748
1749/* OTF handler */ 1749/* OTF handler. */
1750 1750
1751#if 0 1751#if 0
1752 1752
@@ -2035,7 +2035,7 @@ font_otf_Anchor (OTF_Anchor *anchor)
2035#endif /* 0 */ 2035#endif /* 0 */
2036 2036
2037 2037
2038/* Font sorting */ 2038/* Font sorting. */
2039 2039
2040static unsigned font_score (Lisp_Object, Lisp_Object *); 2040static unsigned font_score (Lisp_Object, Lisp_Object *);
2041static int font_compare (const void *, const void *); 2041static int font_compare (const void *, const void *);
@@ -2565,7 +2565,6 @@ font_get_cache (FRAME_PTR f, struct font_driver *driver)
2565 return val; 2565 return val;
2566} 2566}
2567 2567
2568static int num_fonts;
2569 2568
2570static void 2569static void
2571font_clear_cache (FRAME_PTR f, Lisp_Object cache, struct font_driver *driver) 2570font_clear_cache (FRAME_PTR f, Lisp_Object cache, struct font_driver *driver)
@@ -2598,7 +2597,6 @@ font_clear_cache (FRAME_PTR f, Lisp_Object cache, struct font_driver *driver)
2598 { 2597 {
2599 eassert (font && driver == font->driver); 2598 eassert (font && driver == font->driver);
2600 driver->close (f, font); 2599 driver->close (f, font);
2601 num_fonts--;
2602 } 2600 }
2603 } 2601 }
2604 if (driver->free_entity) 2602 if (driver->free_entity)
@@ -2856,7 +2854,6 @@ font_open_entity (FRAME_PTR f, Lisp_Object entity, int pixel_size)
2856 return Qnil; 2854 return Qnil;
2857 ASET (entity, FONT_OBJLIST_INDEX, 2855 ASET (entity, FONT_OBJLIST_INDEX,
2858 Fcons (font_object, AREF (entity, FONT_OBJLIST_INDEX))); 2856 Fcons (font_object, AREF (entity, FONT_OBJLIST_INDEX)));
2859 num_fonts++;
2860 2857
2861 font = XFONT_OBJECT (font_object); 2858 font = XFONT_OBJECT (font_object);
2862 min_width = (font->min_width ? font->min_width 2859 min_width = (font->min_width ? font->min_width
@@ -2901,7 +2898,6 @@ font_close_object (FRAME_PTR f, Lisp_Object font_object)
2901 eassert (FRAME_X_DISPLAY_INFO (f)->n_fonts); 2898 eassert (FRAME_X_DISPLAY_INFO (f)->n_fonts);
2902 FRAME_X_DISPLAY_INFO (f)->n_fonts--; 2899 FRAME_X_DISPLAY_INFO (f)->n_fonts--;
2903#endif 2900#endif
2904 num_fonts--;
2905} 2901}
2906 2902
2907 2903
@@ -3578,7 +3574,7 @@ font_filter_properties (Lisp_Object font,
3578 Lisp_Object it; 3574 Lisp_Object it;
3579 int i; 3575 int i;
3580 3576
3581 /* Set boolean values to Qt or Qnil */ 3577 /* Set boolean values to Qt or Qnil. */
3582 for (i = 0; boolean_properties[i] != NULL; ++i) 3578 for (i = 0; boolean_properties[i] != NULL; ++i)
3583 for (it = alist; ! NILP (it); it = XCDR (it)) 3579 for (it = alist; ! NILP (it); it = XCDR (it))
3584 { 3580 {
@@ -3757,7 +3753,7 @@ font_range (ptrdiff_t pos, ptrdiff_t *limit, struct window *w, struct face *face
3757#endif 3753#endif
3758 3754
3759 3755
3760/* Lisp API */ 3756/* Lisp API. */
3761 3757
3762DEFUN ("fontp", Ffontp, Sfontp, 1, 2, 0, 3758DEFUN ("fontp", Ffontp, Sfontp, 1, 2, 0,
3763 doc: /* Return t if OBJECT is a font-spec, font-entity, or font-object. 3759 doc: /* Return t if OBJECT is a font-spec, font-entity, or font-object.