diff options
| author | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
| commit | cafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch) | |
| tree | 7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/fontset.c | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
Diffstat (limited to 'src/fontset.c')
| -rw-r--r-- | src/fontset.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/fontset.c b/src/fontset.c index f297fd10a71..b5d8a0db434 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -233,14 +233,14 @@ fontset_id_valid_p (int id) | |||
| 233 | /* Macros to access special values of (base) FONTSET. */ | 233 | /* Macros to access special values of (base) FONTSET. */ |
| 234 | #define FONTSET_NAME(fontset) XCHAR_TABLE (fontset)->extras[1] | 234 | #define FONTSET_NAME(fontset) XCHAR_TABLE (fontset)->extras[1] |
| 235 | #define FONTSET_ASCII(fontset) XCHAR_TABLE (fontset)->extras[4] | 235 | #define FONTSET_ASCII(fontset) XCHAR_TABLE (fontset)->extras[4] |
| 236 | #define FONTSET_SPEC(fontset) XCHAR_TABLE (fontset)->extras[5] | 236 | /* #define FONTSET_SPEC(fontset) XCHAR_TABLE (fontset)->extras[5] */ |
| 237 | 237 | ||
| 238 | /* Macros to access special values of (realized) FONTSET. */ | 238 | /* Macros to access special values of (realized) FONTSET. */ |
| 239 | #define FONTSET_BASE(fontset) XCHAR_TABLE (fontset)->extras[2] | 239 | #define FONTSET_BASE(fontset) XCHAR_TABLE (fontset)->extras[2] |
| 240 | #define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[3] | 240 | #define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[3] |
| 241 | #define FONTSET_OBJLIST(fontset) XCHAR_TABLE (fontset)->extras[4] | 241 | #define FONTSET_OBJLIST(fontset) XCHAR_TABLE (fontset)->extras[4] |
| 242 | #define FONTSET_NOFONT_FACE(fontset) XCHAR_TABLE (fontset)->extras[5] | 242 | #define FONTSET_NOFONT_FACE(fontset) XCHAR_TABLE (fontset)->extras[5] |
| 243 | #define FONTSET_REPERTORY(fontset) XCHAR_TABLE (fontset)->extras[6] | 243 | /* #define FONTSET_REPERTORY(fontset) XCHAR_TABLE (fontset)->extras[6] */ |
| 244 | #define FONTSET_DEFAULT(fontset) XCHAR_TABLE (fontset)->extras[7] | 244 | #define FONTSET_DEFAULT(fontset) XCHAR_TABLE (fontset)->extras[7] |
| 245 | 245 | ||
| 246 | /* For both base and realized fontset. */ | 246 | /* For both base and realized fontset. */ |
| @@ -266,7 +266,6 @@ fontset_id_valid_p (int id) | |||
| 266 | ASET ((rfont_def), 0, make_number (face_id)) | 266 | ASET ((rfont_def), 0, make_number (face_id)) |
| 267 | #define RFONT_DEF_FONT_DEF(rfont_def) AREF (rfont_def, 1) | 267 | #define RFONT_DEF_FONT_DEF(rfont_def) AREF (rfont_def, 1) |
| 268 | #define RFONT_DEF_SPEC(rfont_def) FONT_DEF_SPEC (AREF (rfont_def, 1)) | 268 | #define RFONT_DEF_SPEC(rfont_def) FONT_DEF_SPEC (AREF (rfont_def, 1)) |
| 269 | #define RFONT_DEF_REPERTORY(rfont_def) FONT_DEF_REPERTORY (AREF (rfont_def, 1)) | ||
| 270 | #define RFONT_DEF_OBJECT(rfont_def) AREF (rfont_def, 2) | 269 | #define RFONT_DEF_OBJECT(rfont_def) AREF (rfont_def, 2) |
| 271 | #define RFONT_DEF_SET_OBJECT(rfont_def, object) \ | 270 | #define RFONT_DEF_SET_OBJECT(rfont_def, object) \ |
| 272 | ASET ((rfont_def), 2, (object)) | 271 | ASET ((rfont_def), 2, (object)) |
| @@ -713,7 +712,7 @@ fontset_find_font (Lisp_Object fontset, int c, struct face *face, int id, int fa | |||
| 713 | static Lisp_Object | 712 | static Lisp_Object |
| 714 | fontset_font (Lisp_Object fontset, int c, struct face *face, int id) | 713 | fontset_font (Lisp_Object fontset, int c, struct face *face, int id) |
| 715 | { | 714 | { |
| 716 | Lisp_Object rfont_def, default_rfont_def; | 715 | Lisp_Object rfont_def, default_rfont_def IF_LINT (= Qnil); |
| 717 | Lisp_Object base_fontset; | 716 | Lisp_Object base_fontset; |
| 718 | 717 | ||
| 719 | /* Try a font-group of FONTSET. */ | 718 | /* Try a font-group of FONTSET. */ |
| @@ -836,7 +835,7 @@ fontset_ascii (int id) | |||
| 836 | return elt; | 835 | return elt; |
| 837 | } | 836 | } |
| 838 | 837 | ||
| 839 | void | 838 | static void |
| 840 | free_realized_fontset (FRAME_PTR f, Lisp_Object fontset) | 839 | free_realized_fontset (FRAME_PTR f, Lisp_Object fontset) |
| 841 | { | 840 | { |
| 842 | Lisp_Object tail; | 841 | Lisp_Object tail; |
| @@ -1583,14 +1582,14 @@ appended. By default, FONT-SPEC overrides the previous settings. */) | |||
| 1583 | 1582 | ||
| 1584 | if (ascii_changed) | 1583 | if (ascii_changed) |
| 1585 | { | 1584 | { |
| 1586 | Lisp_Object tail, frame, alist; | 1585 | Lisp_Object tail, fr, alist; |
| 1587 | int fontset_id = XINT (FONTSET_ID (fontset)); | 1586 | int fontset_id = XINT (FONTSET_ID (fontset)); |
| 1588 | 1587 | ||
| 1589 | FONTSET_ASCII (fontset) = fontname; | 1588 | FONTSET_ASCII (fontset) = fontname; |
| 1590 | name = FONTSET_NAME (fontset); | 1589 | name = FONTSET_NAME (fontset); |
| 1591 | FOR_EACH_FRAME (tail, frame) | 1590 | FOR_EACH_FRAME (tail, fr) |
| 1592 | { | 1591 | { |
| 1593 | FRAME_PTR f = XFRAME (frame); | 1592 | FRAME_PTR f = XFRAME (fr); |
| 1594 | Lisp_Object font_object; | 1593 | Lisp_Object font_object; |
| 1595 | struct face *face; | 1594 | struct face *face; |
| 1596 | 1595 | ||
| @@ -1607,7 +1606,7 @@ appended. By default, FONT-SPEC overrides the previous settings. */) | |||
| 1607 | { | 1606 | { |
| 1608 | update_auto_fontset_alist (font_object, fontset); | 1607 | update_auto_fontset_alist (font_object, fontset); |
| 1609 | alist = Fcons (Fcons (Qfont, Fcons (name, font_object)), Qnil); | 1608 | alist = Fcons (Fcons (Qfont, Fcons (name, font_object)), Qnil); |
| 1610 | Fmodify_frame_parameters (frame, alist); | 1609 | Fmodify_frame_parameters (fr, alist); |
| 1611 | } | 1610 | } |
| 1612 | } | 1611 | } |
| 1613 | } | 1612 | } |