Mercurial > hg > xemacs-beta
diff src/faces.c @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | 376386a54a3c |
children | 859a2309aef8 |
line wrap: on
line diff
--- a/src/faces.c Mon Aug 13 08:45:53 2007 +0200 +++ b/src/faces.c Mon Aug 13 08:46:35 2007 +0200 @@ -1795,28 +1795,22 @@ fold = XFACE (old_face); fnew = XFACE (new_face); - Fcopy_specifier (fold->foreground, fnew->foreground, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->background, fnew->background, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->font, fnew->font, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->display_table, fnew->display_table, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->background_pixmap, fnew->background_pixmap, - locale, tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->underline, fnew->underline, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->strikethru, fnew->strikethru, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->highlight, fnew->highlight, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->dim, fnew->dim, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->blinking, fnew->blinking, locale, - tag_set, exact_p, how_to_add); - Fcopy_specifier (fold->reverse, fnew->reverse, locale, - tag_set, exact_p, how_to_add); +#define COPY_PROPERTY(property) \ + Fcopy_specifier (fold->property, fnew->property, \ + locale, tag_set, exact_p, how_to_add); + + COPY_PROPERTY (foreground); + COPY_PROPERTY (background); + COPY_PROPERTY (font); + COPY_PROPERTY (display_table); + COPY_PROPERTY (background_pixmap); + COPY_PROPERTY (underline); + COPY_PROPERTY (strikethru); + COPY_PROPERTY (highlight); + COPY_PROPERTY (dim); + COPY_PROPERTY (blinking); + COPY_PROPERTY (reverse); +#undef COPY_PROPERTY /* #### should it copy the individual specifiers, if they exist? */ fnew->plist = Fcopy_sequence (fold->plist);