Mercurial > hg > xemacs-beta
annotate lwlib/xlwmenuP.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 | 382b11fa8866 |
children | a6c778975d7d |
rev | line source |
---|---|
440 | 1 #ifndef INCLUDED_xlwmenuP_h_ |
2 #define INCLUDED_xlwmenuP_h_ | |
428 | 3 |
4 #include "xlwmenu.h" | |
5 #include <X11/CoreP.h> | |
6 | |
3094 | 7 #ifdef USE_XFT_MENUBARS |
8 #include <X11/Xft/Xft.h> | |
9 #endif | |
10 | |
11 | |
428 | 12 /* Elements in the stack arrays. */ |
13 typedef struct _window_state | |
14 { | |
15 Window window; | |
16 Position x; | |
17 Position y; | |
18 Dimension width; | |
19 Dimension height; | |
20 Dimension label_width; | |
21 Dimension toggle_width; | |
22 } window_state; | |
23 | |
24 | |
25 /* New fields for the XlwMenu widget instance record */ | |
26 typedef struct _XlwMenu_part | |
27 { | |
28 /* slots set by the resources */ | |
29 | |
3094 | 30 #if defined(NEED_MOTIF) && !defined(USE_XFT_MENUBARS) |
428 | 31 XmFontList font_list; |
32 XmFontList font_list_2; | |
33 XmFontList fallback_font_list; | |
34 #else | |
35 XFontStruct * font; | |
3094 | 36 #ifdef USE_XFT_MENUBARS |
3397 | 37 String fcFontName; |
3685 | 38 String xftFontName; |
3094 | 39 XftFont *renderFont; |
40 #endif | |
428 | 41 # ifdef USE_XFONTSET |
42 XFontSet font_set; | |
43 # endif | |
44 #endif | |
45 Dimension font_ascent, font_descent; /* extracted from font/fontlist */ | |
46 | |
47 Pixel foreground; | |
48 Pixel button_foreground; | |
49 Pixel highlight_foreground; | |
50 Pixel title_foreground; | |
51 Dimension margin; | |
52 Dimension horizontal_margin; | |
53 Dimension vertical_margin; | |
54 Dimension column_spacing; | |
55 Dimension shadow_thickness; | |
56 Dimension indicator_size; | |
57 Pixel top_shadow_color; | |
58 Pixel bottom_shadow_color; | |
59 Pixel select_color; | |
3094 | 60 #ifdef USE_XFT_MENUBARS |
61 #endif | |
428 | 62 Pixmap top_shadow_pixmap; |
63 Pixmap bottom_shadow_pixmap; | |
64 Cursor cursor_shape; | |
65 XtCallbackList open; | |
66 XtCallbackList select; | |
67 widget_value* contents; | |
68 int horizontal; | |
69 Boolean use_backing_store; | |
70 Boolean bounce_down; | |
71 Boolean lookup_labels; | |
72 | |
73 /* State of the XlwMenu */ | |
74 int old_depth; | |
75 widget_value** old_stack; | |
76 int old_stack_length; | |
77 | |
78 /* New state after the user moved */ | |
79 int new_depth; | |
80 widget_value** new_stack; | |
81 int new_stack_length; | |
82 | |
83 /* Window resources */ | |
84 window_state* windows; | |
85 int windows_length; | |
86 | |
87 /* Internal part, set by the XlwMenu */ | |
88 GC foreground_gc; | |
89 GC button_gc; | |
90 GC background_gc; | |
91 GC inactive_gc; | |
92 GC inactive_button_gc; | |
93 GC shadow_top_gc; | |
94 GC shadow_bottom_gc; | |
95 GC select_gc; | |
96 GC highlight_gc; | |
97 GC title_gc; | |
98 Cursor cursor; | |
99 Boolean popped_up; | |
100 Pixmap gray_pixmap; | |
101 | |
102 /* Stay-up stuff */ | |
103 Boolean pointer_grabbed; | |
104 Boolean next_release_must_exit; | |
105 Time menu_post_time, menu_bounce_time; | |
106 widget_value * last_selected_val; | |
107 } XlwMenuPart; | |
108 | |
109 /* Full instance record declaration */ | |
110 typedef struct _XlwMenuRec | |
111 { | |
112 CorePart core; | |
113 XlwMenuPart menu; | |
114 } XlwMenuRec; | |
115 | |
116 /* New fields for the XlwMenu widget class record */ | |
117 typedef struct | |
118 { | |
119 int dummy; | |
120 } XlwMenuClassPart; | |
121 | |
122 /* Full class record declaration. */ | |
123 typedef struct _XlwMenuClassRec | |
124 { | |
125 CoreClassPart core_class; | |
126 XlwMenuClassPart menu_class; | |
127 } XlwMenuClassRec; | |
128 | |
129 /* Class pointer. */ | |
130 extern XlwMenuClassRec xlwMenuClassRec; | |
131 | |
440 | 132 #endif /* INCLUDED_xlwmenuP_h_ */ |