Mercurial > emacs
comparison src/font.h @ 91813:ca1e1298a3d8
(smerge-auto-combine-max-separation): New var.
(smerge-auto-combine): New fun.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 13 Feb 2008 15:10:57 +0000 |
parents | 1ab24b8a7398 |
children | 0dac12128e1c |
comparison
equal
deleted
inserted
replaced
91812:22cb32652c70 | 91813:ca1e1298a3d8 |
---|---|
231 | 231 |
232 | 232 |
233 /* Check macros for various font-related objects. */ | 233 /* Check macros for various font-related objects. */ |
234 | 234 |
235 #define CHECK_FONT(x) \ | 235 #define CHECK_FONT(x) \ |
236 do { if (! FONTP (x)) x = wrong_type_argument (Qfont, x); } while (0) | 236 do { if (! FONTP (x)) wrong_type_argument (Qfont, x); } while (0) |
237 #define CHECK_FONT_SPEC(x) \ | 237 #define CHECK_FONT_SPEC(x) \ |
238 do { if (! FONT_SPEC_P (x)) x = wrong_type_argument (Qfont, x); } while (0) | 238 do { if (! FONT_SPEC_P (x)) wrong_type_argument (Qfont, x); } while (0) |
239 #define CHECK_FONT_ENTITY(x) \ | 239 #define CHECK_FONT_ENTITY(x) \ |
240 do { if (! FONT_ENTITY_P (x)) x = wrong_type_argument (Qfont, x); } while (0) | 240 do { if (! FONT_ENTITY_P (x)) wrong_type_argument (Qfont, x); } while (0) |
241 #define CHECK_FONT_OBJECT(x) \ | 241 #define CHECK_FONT_OBJECT(x) \ |
242 do { if (! FONT_OBJECT_P (x)) x = wrong_type_argument (Qfont, x); } while (0) | 242 do { if (! FONT_OBJECT_P (x)) wrong_type_argument (Qfont, x); } while (0) |
243 | 243 |
244 #define CHECK_FONT_GET_OBJECT(x, font) \ | 244 #define CHECK_FONT_GET_OBJECT(x, font) \ |
245 do { \ | 245 do { \ |
246 if (! FONT_OBJECT_P (x)) x = wrong_type_argument (Qfont, x); \ | 246 if (! FONT_OBJECT_P (x)) wrong_type_argument (Qfont, x); \ |
247 if (! XSAVE_VALUE (x)->pointer) error ("Font already closed"); \ | 247 if (! XSAVE_VALUE (x)->pointer) error ("Font already closed"); \ |
248 font = XSAVE_VALUE (x)->pointer; \ | 248 font = XSAVE_VALUE (x)->pointer; \ |
249 } while (0) | 249 } while (0) |
250 | 250 |
251 /* Ignore the difference of font pixel sizes less than or equal to | 251 /* Ignore the difference of font pixel sizes less than or equal to |