aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2002-05-17 16:29:46 +0000
committerDave Love2002-05-17 16:29:46 +0000
commita980c93231c05db0d18ca8cb6c85d26572ab0894 (patch)
tree0a7f083601b0921733e595e8b5e4fe5706c8dec2 /src
parentfac2bdc486b9ec125ea982a987b9ee571d50f938 (diff)
downloademacs-a980c93231c05db0d18ca8cb6c85d26572ab0894.tar.gz
emacs-a980c93231c05db0d18ca8cb6c85d26572ab0894.zip
(Fclear_face_cache): Declare.
(accumulate_font_info): Commented-out (unused). (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused variables.
Diffstat (limited to 'src')
-rw-r--r--src/fontset.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 89581231813..ee265e9ecec 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -49,6 +49,7 @@ Boston, MA 02111-1307, USA. */
49#define INLINE 49#define INLINE
50#endif 50#endif
51 51
52EXFUN (Fclear_face_cache, 1);
52 53
53/* FONTSET 54/* FONTSET
54 55
@@ -439,7 +440,7 @@ face_for_char (f, face, c)
439 struct face *face; 440 struct face *face;
440 int c; 441 int c;
441{ 442{
442 Lisp_Object fontset, elt; 443 Lisp_Object fontset;
443 struct face *new_face; 444 struct face *new_face;
444 445
445 xassert (fontset_id_valid_p (face->fontset)); 446 xassert (fontset_id_valid_p (face->fontset));
@@ -755,9 +756,9 @@ static void
755free_realized_fontsets (base) 756free_realized_fontsets (base)
756 Lisp_Object base; 757 Lisp_Object base;
757{ 758{
759#if 0
758 int id; 760 int id;
759 761
760#if 0
761 /* For the moment, this doesn't work because free_realized_face 762 /* For the moment, this doesn't work because free_realized_face
762 doesn't remove FACE from a cache. Until we find a solution, we 763 doesn't remove FACE from a cache. Until we find a solution, we
763 suppress this code, and simply use Fclear_face_cache even though 764 suppress this code, and simply use Fclear_face_cache even though
@@ -828,7 +829,6 @@ FONT-SPEC may be a font name string. */)
828{ 829{
829 Lisp_Object fontset; 830 Lisp_Object fontset;
830 Lisp_Object family, registry; 831 Lisp_Object family, registry;
831 int charset_id;
832 832
833 fontset = check_fontset_name (name); 833 fontset = check_fontset_name (name);
834 834
@@ -1051,6 +1051,7 @@ DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 1, 0,
1051} 1051}
1052 1052
1053 1053
1054#if 0 /* unused */
1054/* Called from Ffontset_info via map_char_table on each leaf of 1055/* Called from Ffontset_info via map_char_table on each leaf of
1055 fontset. ARG is a list (LAST FONT-INFO ...), where LAST is `(last 1056 fontset. ARG is a list (LAST FONT-INFO ...), where LAST is `(last
1056 ARG)' and FONT-INFOs have this form: 1057 ARG)' and FONT-INFOs have this form:
@@ -1096,7 +1097,7 @@ accumulate_font_info (arg, character, elt)
1096 XSETCDR (last, Fcons (Fcons (character, Fcons (elt, Qnil)), Qnil)); 1097 XSETCDR (last, Fcons (Fcons (character, Fcons (elt, Qnil)), Qnil));
1097 XSETCAR (arg, XCDR (last)); 1098 XSETCAR (arg, XCDR (last));
1098} 1099}
1099 1100#endif /* 0 */
1100 1101
1101DEFUN ("fontset-info", Ffontset_info, Sfontset_info, 1, 2, 0, 1102DEFUN ("fontset-info", Ffontset_info, Sfontset_info, 1, 2, 0,
1102 doc: /* Return information about a fontset named NAME on frame FRAME. 1103 doc: /* Return information about a fontset named NAME on frame FRAME.
@@ -1182,13 +1183,9 @@ If FRAME is omitted, it defaults to the currently selected frame. */)
1182 FONT-SPEC. */ 1183 FONT-SPEC. */
1183 for (tail = val; CONSP (tail); tail = XCDR (tail)) 1184 for (tail = val; CONSP (tail); tail = XCDR (tail))
1184 { 1185 {
1185 int c;
1186
1187 elt = XCAR (tail); 1186 elt = XCAR (tail);
1188 for (i = 0; i < n_realized; i++) 1187 for (i = 0; i < n_realized; i++)
1189 { 1188 {
1190 int face_id;
1191 struct face *face;
1192 Lisp_Object face_list, fontname; 1189 Lisp_Object face_list, fontname;
1193 1190
1194 for (face_list = FONTSET_FACE_ALIST (realized[i]); 1191 for (face_list = FONTSET_FACE_ALIST (realized[i]);