Mercurial > hg > xemacs-beta
annotate lwlib/xlwmenu.h @ 4568:1d74a1d115ee
Add #'query-coding-region tests; do the work necessary to get them running.
lisp/ChangeLog addition:
2008-12-28 Aidan Kehoe <kehoea@parhasard.net>
* coding.el (default-query-coding-region):
Declare using defun*, so we can #'return-from to it on
encountering a safe-charsets value of t. Comment out a few
debug messages.
(query-coding-region):
Correct the docstring, it deals with a region, not a string.
(unencodable-char-position):
Correct the implementation for non-nil COUNT, special-case a zero
value for count, treat it as one. Don't rely on dynamic scope when
calling the main lambda.
* unicode.el (unicode-query-coding-region):
Comment out some debug messages here.
* mule/mule-coding.el (8-bit-fixed-query-coding-region):
Comment out some debug messages here.
* code-init.el (raw-text):
Add a safe-charsets property to this coding system.
* mule/korean.el (iso-2022-int-1):
* mule/korean.el (euc-kr):
* mule/korean.el (iso-2022-kr):
Add safe-charsets properties for these coding systems.
* mule/japanese.el (iso-2022-jp):
* mule/japanese.el (jis7):
* mule/japanese.el (jis8):
* mule/japanese.el (shift-jis):
* mule/japanese.el (iso-2022-jp-1978-irv):
* mule/japanese.el (euc-jp):
Add safe-charsets properties for all these coding systems.
* mule/iso-with-esc.el:
Add safe-charsets properties to all the coding systems in
here. Comment on the downside of a safe-charsets value of t for
iso-latin-1-with-esc.
* mule/hebrew.el (ctext-hebrew):
Add a safe-charsets property for this coding system.
* mule/devanagari.el (in-is13194-devanagari):
Add a safe-charsets property for this coding system.
* mule/chinese.el (cn-gb-2312):
* mule/chinese.el (hz-gb-2312):
* mule/chinese.el (big5):
Add safe-charsets properties for these coding systems.
* mule/latin.el (iso-8859-14):
Add an implementation for this, using #'make-8-bit-coding-system.
* mule/mule-coding.el (ctext):
* mule/mule-coding.el (iso-2022-8bit-ss2):
* mule/mule-coding.el (iso-2022-7bit-ss2):
* mule/mule-coding.el (iso-2022-jp-2):
* mule/mule-coding.el (iso-2022-7bit):
* mule/mule-coding.el (iso-2022-8):
* mule/mule-coding.el (escape-quoted):
* mule/mule-coding.el (iso-2022-lock):
Add safe-charsets properties for all these coding systems.
src/ChangeLog addition:
2008-12-28 Aidan Kehoe <kehoea@parhasard.net>
* file-coding.c (Fmake_coding_system):
Document our use of the safe-chars and safe-charsets properties,
and the differences compared to GNU.
(make_coding_system_1): Don't drop the safe-chars and
safe-charsets properties.
(Fcoding_system_property): Return the safe-chars and safe-charsets
properties when asked for them.
* file-coding.h (CODING_SYSTEM_SAFE_CHARSETS):
* coding-system-slots.h:
Make the safe-chars and safe-charsets slots available in these
headers.
tests/ChangeLog addition:
2008-12-28 Aidan Kehoe <kehoea@parhasard.net>
* automated/query-coding-tests.el:
New file, testing the functionality of #'query-coding-region and
#'query-coding-string.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 28 Dec 2008 14:46:24 +0000 |
parents | abe6d1db359e |
children | ade4c7e2c6cb |
rev | line source |
---|---|
440 | 1 #ifndef INCLUDED_xlwmenu_h_ |
2 #define INCLUDED_xlwmenu_h_ | |
428 | 3 |
4 /*********************************************************************** | |
5 * | |
6 * XlwMenu Widget | |
7 * | |
8 ***********************************************************************/ | |
9 | |
10 #include "lwlib.h" | |
11 | |
12 /* Resource names used by the XlwMenu widget */ | |
13 #define XtNbuttonForeground "buttonForeground" | |
14 #define XtCButtonForeground "ButtonForeground" | |
15 #define XtNhighlightForeground "highlightForeground" | |
16 #define XtCHighlightForeground "HighlightForeground" | |
17 #define XtNtitleForeground "titleForeground" | |
18 #define XtCTitleForeground "TitleForeground" | |
19 #define XtNmargin "margin" | |
20 #define XtNhorizontalSpacing "horizontalSpacing" | |
21 #define XtNverticalSpacing "verticalSpacing" | |
22 #define XtNarrowSpacing "arrowSpacing" | |
23 #define XtNmenu "menu" | |
24 #define XtCMenu "Menu" | |
25 #define XtNopen "open" | |
26 #define XtNselect "select" | |
27 #define XtNmenuBorderWidth "menuBorderWidth" | |
28 #define XtNhorizontal "horizontal" | |
29 #define XtCHorizontal "Horizontal" | |
30 #ifndef XtNcursor | |
31 #define XtNcursor "cursor" | |
32 #endif | |
33 #ifndef XtCCursor | |
34 #define XtCCursor "Cursor" | |
35 #endif | |
36 #ifndef XtNuseBackingStore | |
37 #define XtNuseBackingStore "useBackingStore" | |
38 #endif | |
39 #ifndef XtCUseBackingStore | |
40 #define XtCUseBackingStore "UseBackingStore" | |
41 #endif | |
42 #define XtNbounceDown "bounceDown" | |
43 #define XtCBounceDown "BounceDown" | |
44 #define XtNresourceLabels "resourceLabels" | |
45 #define XtCResourceLabels "ResourceLabels" | |
46 | |
47 /* Motif-compatible resource names */ | |
48 #ifndef XmNshadowThickness | |
49 # define XmNshadowThickness "shadowThickness" | |
50 # define XmCShadowThickness "ShadowThickness" | |
51 # define XmNtopShadowColor "topShadowColor" | |
52 # define XmCTopShadowColor "TopShadowColor" | |
53 # define XmNbottomShadowColor "bottomShadowColor" | |
54 # define XmCBottomShadowColor "BottomShadowColor" | |
55 # define XmNtopShadowPixmap "topShadowPixmap" | |
56 # define XmCTopShadowPixmap "TopShadowPixmap" | |
57 # define XmNbottomShadowPixmap "bottomShadowPixmap" | |
58 # define XmCBottomShadowPixmap "BottomShadowPixmap" | |
442 | 59 # define XmUNSPECIFIED_PIXMAP 2 |
428 | 60 # define XmRHorizontalDimension "HorizontalDimension" |
61 # define XmNspacing "spacing" | |
62 # define XmCSpacing "Spacing" | |
63 # define XmNindicatorSize "indicatorSize" | |
64 # define XmCIndicatorSize "IndicatorSize" | |
65 # define XmNselectColor "selectColor" | |
66 # define XmCSelectColor "SelectColor" | |
67 # define XmNmarginHeight "marginHeight" | |
68 # define XmCMarginHeight "MarginHeight" | |
69 # define XmNmarginWidth "marginWidth" | |
70 # define XmCMarginWidth "MarginWidth" | |
71 # define XmRVerticalDimension "VerticalDimension" | |
72 #endif | |
73 | |
74 typedef struct _XlwMenuRec *XlwMenuWidget; | |
75 typedef struct _XlwMenuClassRec *XlwMenuWidgetClass; | |
76 | |
77 extern WidgetClass xlwMenuWidgetClass; | |
78 | |
79 void | |
80 xlw_pop_up_menu (XlwMenuWidget mw, XButtonPressedEvent* event); | |
81 | |
82 /* menu accelerator */ | |
83 | |
84 void xlw_set_menu (Widget w, widget_value *val); | |
85 void xlw_push_menu (widget_value *val); | |
86 int xlw_pop_menu (void); | |
87 void xlw_set_item (widget_value *val); | |
88 void xlw_map_menu (Time t); | |
89 void xlw_display_menu (Time t); | |
90 void xlw_kill_menus (widget_value *val); | |
91 widget_value *xlw_get_entries (int allp); | |
92 int xlw_menu_level (void); | |
93 | |
440 | 94 #endif /* INCLUDED_xlwmenu_h_ */ |