Mercurial > hg > xemacs-beta
annotate lwlib/lwlib-utils.h @ 5264:0d43872986b6
Change (apply 'nconc (mapcar ...)) to (mapcan ...); warn about first form.
lisp/ChangeLog addition:
2010-09-16 Aidan Kehoe <kehoea@parhasard.net>
* byte-optimize.el (byte-optimize-apply): Transform (apply 'nconc
(mapcar ...)) to (mapcan ...); warn about use of the first idiom.
* update-elc.el (do-autoload-commands):
* packages.el (packages-find-package-library-path):
* frame.el (frame-list):
* extents.el (extent-descendants):
* etags.el (buffer-tag-table-files):
* dumped-lisp.el (preloaded-file-list):
* device.el (device-list):
* bytecomp-runtime.el (proclaim-inline, proclaim-notinline)
Use #'mapcan, not (apply #'nconc (mapcar ...) in all these files.
* bytecomp-runtime.el (eval-when-compile, eval-and-compile):
In passing, mention that these macros also evaluate the body when
interpreted.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 16 Sep 2010 13:51:49 +0100 |
parents | 8de8e3f6228a |
children | ade4c7e2c6cb |
rev | line source |
---|---|
440 | 1 #ifndef INCLUDED_lwlib_utils_h_ |
2 #define INCLUDED_lwlib_utils_h_ | |
428 | 3 |
4 void destroy_all_children (Widget widget); | |
5 void XtNoClearRefreshWidget (Widget); | |
6 | |
7 typedef void (*XtApplyToWidgetsProc) (Widget, XtPointer); | |
8 typedef void* (*XtApplyUntilToWidgetsProc) (Widget, XtPointer); | |
9 | |
10 void XtApplyToWidgets (Widget, XtApplyToWidgetsProc, XtPointer); | |
11 void *XtApplyUntilToWidgets (Widget, XtApplyUntilToWidgetsProc, XtPointer); | |
12 | |
13 Widget *XtCompositeChildren (Widget, unsigned int *); | |
14 | |
15 /* returns True is the widget is being destroyed, False otherwise */ | |
16 Boolean | |
17 XtWidgetBeingDestroyedP (Widget widget); | |
18 | |
19 void XtSafelyDestroyWidget (Widget); | |
20 | |
21 #ifdef USE_DEBUG_MALLOC | |
22 #include <dmalloc.h> | |
23 #endif | |
440 | 24 |
25 #endif /* INCLUDED_lwlib_utils_h_ */ |