[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a review of the merge (Re: Emacs.app merged)
From: |
Adrian Robert |
Subject: |
Re: a review of the merge (Re: Emacs.app merged) |
Date: |
Sat, 19 Jul 2008 21:27:35 -0400 |
On Jul 16, 2008, at 5:23 PM, Dan Nicolaescu wrote:
Stefan Monnier <address@hidden> writes:
We probably need some common file for these functions (and the
humongous
x-colors list) to avoid all the duplication that is happening now.
If the x-colors list were put in a common file, with RGB specs, then
each non-X GUI could share it at the cost of a few lines to iterate
through the list --e.g.:
lisp var has a list of char *name, unsigned char r,g,b
macfns.c:
colormap_t *mac_color_map = malloc(length-of-list);
foreach-list-element mac_color_map[i] = { RGB_TO_ULONG(r,g,b),
name };
w32fns.c:
colormap_t *w32_color_map = malloc(length-of-list);
foreach-list-element w32_color_map[i] = { name, PALETTERGB(r,g,b) };
nsterm.m:
NSColorList *cl = [[NSColorList alloc] init];
foreach-list-element [cl setColor:
[NSColor colorWithCalibratedRed:r green: g blue:b alpha: 1.0]
forKey: [NSString stringWithUTF8String: name]];
- Re: Emacs.app merged, (continued)
- Re: Emacs.app merged, İsmail Dönmez, 2008/07/15
- Re: Emacs.app merged, Chong Yidong, 2008/07/15
- Re: Emacs.app merged, Thomas Christensen, 2008/07/15
- a review of the merge (Re: Emacs.app merged), Dan Nicolaescu, 2008/07/16
- Re: a review of the merge (Re: Emacs.app merged), Stefan Monnier, 2008/07/16
Re: a review of the merge (Re: Emacs.app merged), Adrian Robert, 2008/07/16
- Re: a review of the merge (Re: Emacs.app merged), Dan Nicolaescu, 2008/07/16
- FOR-RELEASE [was Re: a review of the merge (Re: Emacs.app merged)], Glenn Morris, 2008/07/17
- Re: a review of the merge (Re: Emacs.app merged), Glenn Morris, 2008/07/17
- Re: a review of the merge (Re: Emacs.app merged), Adrian Robert, 2008/07/17
- Re: a review of the merge (Re: Emacs.app merged), Dan Nicolaescu, 2008/07/17
Re: a review of the merge (Re: Emacs.app merged), Stefan Monnier, 2008/07/16