aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorMartin Rudalics2008-10-19 13:50:25 +0000
committerMartin Rudalics2008-10-19 13:50:25 +0000
commitaac0c6e36567d1b1fcdf2d8fa95b3d5a84a3e6d7 (patch)
treec6e82dcc4f2d4238dc0aff3d51cc8c567636bcf5 /src/ChangeLog
parent291703b5c724833ab8cc7e943ddc58f146b4bb1b (diff)
downloademacs-aac0c6e36567d1b1fcdf2d8fa95b3d5a84a3e6d7.tar.gz
emacs-aac0c6e36567d1b1fcdf2d8fa95b3d5a84a3e6d7.zip
(Fwindow_dedicated_p, Fset_window_dedicated_p):
Mention kill-buffer in doc-string. (Fset_window_buffer): Reinsert tem check removed in last commit. (Fenlarge_window, Fshrink_window): Have argument names and doc-string follow Elisp manual more closely.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog31652
1 files changed, 15830 insertions, 15822 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ebabb5cd152..b6ef1e3e1f6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,15822 +1,15830 @@
12008-10-18 Eli Zaretskii <eliz@gnu.org> 12008-10-19 Martin Rudalics <rudalics@gmx.at>
2 2
3 * fileio.c (Fset_file_modes): Doc fix. 3 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4 4 Mention kill-buffer in doc-string.
52008-10-18 Martin Rudalics <rudalics@gmx.at> 5 (Fset_window_buffer): Reinsert tem check removed in last commit.
6 6 (Fenlarge_window, Fshrink_window): Have argument names and
7 * window.c (Fwindow_width, Fset_window_start) 7 doc-string follow Elisp manual more closely.
8 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter) 8
9 (Fdelete_windows_on, Freplace_buffer_in_windows): Make 92008-10-18 Eli Zaretskii <eliz@gnu.org>
10 doc-strings follow code and Elisp manual more closely. 10
11 (Fwindow_dedicated_p): Make window argument optional. 11 * fileio.c (Fset_file_modes): Doc fix.
12 (Fset_window_dedicated_p): Rename argument "arg" to "flag". 12
13 (Fset_window_buffer): Respect any non-nil dedicated value for 132008-10-18 Martin Rudalics <rudalics@gmx.at>
14 window. Rename "buffer" argument to "buffer_or_name". 14
15 15 * window.c (Fwindow_width, Fset_window_start)
162008-10-18 Ulrich Mueller <ulm@gentoo.org> 16 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
17 17 (Fdelete_windows_on, Freplace_buffer_in_windows): Make
18 * m/sh3.h: New file, machine description for SuperH. 18 doc-strings follow code and Elisp manual more closely.
19 19 (Fwindow_dedicated_p): Make window argument optional.
202008-10-17 Martin Rudalics <rudalics@gmx.at> 20 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
21 21 (Fset_window_buffer): Respect any non-nil dedicated value for
22 * window.c (Fsplit_window): Rename arg horflag to horizontal. 22 window. Rename "buffer" argument to "buffer_or_name".
23 23
242008-10-17 Kenichi Handa <handa@m17n.org> 242008-10-18 Ulrich Mueller <ulm@gentoo.org>
25 25
26 * ftfont.c (ftfont_otf_features): Fix indexing 26 * m/sh3.h: New file, machine description for SuperH.
27 gsub_gpos->FeatureList.Feature. Check the validity of indices. 27
28 282008-10-17 Martin Rudalics <rudalics@gmx.at>
292008-10-16 Magnus Henoch <mange@freemail.hu> 29
30 30 * window.c (Fsplit_window): Rename arg horflag to horizontal.
31 * dbusbind.c (Fdbus_call_method): Unbreak usage line. 31
32 (Fdbus_call_method_asynchronously): Ditto. 322008-10-17 Kenichi Handa <handa@m17n.org>
33 This change makes C-h f display the argument list. 33
34 34 * ftfont.c (ftfont_otf_features): Fix indexing
352008-10-16 Chong Yidong <cyd@stupidchicken.com> 35 gsub_gpos->FeatureList.Feature. Check the validity of indices.
36 36
37 * fileio.c (Fexpand_file_name): Doc fix. 372008-10-16 Magnus Henoch <mange@freemail.hu>
38 38
39 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values 39 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
40 of :foreground and :background equivalent to unspecified (20.x 40 (Fdbus_call_method_asynchronously): Ditto.
41 compatibility). 41 This change makes C-h f display the argument list.
42 42
432008-10-15 Eli Zaretskii <eliz@gnu.org> 432008-10-16 Chong Yidong <cyd@stupidchicken.com>
44 44
45 * buffer.c (syms_of_buffer): Doc fix. 45 * fileio.c (Fexpand_file_name): Doc fix.
46 46
472008-10-14 Kenichi Handa <handa@m17n.org> 47 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
48 48 of :foreground and :background equivalent to unspecified (20.x
49 * font.c (font_clear_prop): When clearing font width, clear the 49 compatibility).
50 average width field too. 50
51 512008-10-15 Eli Zaretskii <eliz@gnu.org>
522008-10-12 Andreas Schwab <schwab@suse.de> 52
53 53 * buffer.c (syms_of_buffer): Doc fix.
54 * ftfont.c (ftfont_shape_by_flt): Make static. 54
55 * ftfont.h (ftfont_shape_by_flt): Don't declare. 552008-10-14 Kenichi Handa <handa@m17n.org>
56 56
57 * font.c: Don't include <m17n-flt.h>. 57 * font.c (font_clear_prop): When clearing font width, clear the
58 58 average width field too.
592008-10-10 Eli Zaretskii <eliz@gnu.org> 59
60 602008-10-12 Andreas Schwab <schwab@suse.de>
61 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000. 61
62 62 * ftfont.c (ftfont_shape_by_flt): Make static.
632008-10-09 Eli Zaretskii <eliz@gnu.org> 63 * ftfont.h (ftfont_shape_by_flt): Don't declare.
64 64
65 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed 65 * font.c: Don't include <m17n-flt.h>.
66 away code. 66
67 672008-10-10 Eli Zaretskii <eliz@gnu.org>
682008-10-09 Chong Yidong <cyd@stupidchicken.com> 68
69 69 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
70 * dispnew.c (update_text_area): Avoid looping due to large glyph 70
71 overhangs (bug#1070). 712008-10-09 Eli Zaretskii <eliz@gnu.org>
72 72
732008-10-09 Kenichi Handa <handa@m17n.org> 73 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
74 74 away code.
75 * fontset.c (face_for_char): If face->fontset is negative, just 75
76 return ascii_face. 762008-10-09 Chong Yidong <cyd@stupidchicken.com>
77 77
78 * font.c (font_delete_unmatched): Fix previous change. Don't 78 * dispnew.c (update_text_area): Avoid looping due to large glyph
79 reject an entity if DPI and AVGWIDTH of an entity are 0. 79 overhangs (bug#1070).
80 80
812008-10-09 Martin Rudalics <rudalics@gmx.at> 812008-10-09 Kenichi Handa <handa@m17n.org>
82 82
83 * frame.c (Fraise_frame): On text-only terminals select frame in 83 * fontset.c (face_for_char): If face->fontset is negative, just
84 order to make it visible. (Bug#1061) 84 return ascii_face.
85 85
862008-10-08 Chong Yidong <cyd@stupidchicken.com> 86 * font.c (font_delete_unmatched): Fix previous change. Don't
87 87 reject an entity if DPI and AVGWIDTH of an entity are 0.
88 * fontset.c (fontset_find_font): Check frame validity. 88
89 892008-10-09 Martin Rudalics <rudalics@gmx.at>
902008-10-07 Chong Yidong <cyd@stupidchicken.com> 90
91 91 * frame.c (Fraise_frame): On text-only terminals select frame in
92 * gtkutil.c (xg_display_open): Reset default display if none 92 order to make it visible. (Bug#1061)
93 exists. 93
94 (xg_display_close): Allow Emacs to close all displays (bug#985). 942008-10-08 Chong Yidong <cyd@stupidchicken.com>
95 95
962008-10-06 Andreas Schwab <schwab@suse.de> 96 * fontset.c (fontset_find_font): Check frame validity.
97 97
98 * sysdep.c (sys_signal): Always set SA_RESTART when 982008-10-07 Chong Yidong <cyd@stupidchicken.com>
99 noninteractively. 99
100 100 * gtkutil.c (xg_display_open): Reset default display if none
1012008-10-06 Chong Yidong <cyd@stupidchicken.com> 101 exists.
102 102 (xg_display_close): Allow Emacs to close all displays (bug#985).
103 * emacs.c (Vbefore_init_time, Vafter_init_time): Moved from 103
104 startup.el. 1042008-10-06 Andreas Schwab <schwab@suse.de>
105 105
106 * lisp.h: (Vbefore_init_time, Vafter_init_time): Declare. 106 * sysdep.c (sys_signal): Always set SA_RESTART when
107 107 noninteractively.
108 * gtkutil.c (x_wm_set_size_hint): Return immediately if called 108
109 during initialization. 1092008-10-06 Chong Yidong <cyd@stupidchicken.com>
110 110
1112008-10-04 Eli Zaretskii <eliz@gnu.org> 111 * emacs.c (Vbefore_init_time, Vafter_init_time): Moved from
112 112 startup.el.
113 * xdisp.c (redisplay_internal): If frame switched, redisplay the 113
114 whole thing on MSDOS frames as well as on a TTY. 114 * lisp.h: (Vbefore_init_time, Vafter_init_time): Declare.
115 115
116 * dispnew.c (update_frame): Flush termscript for MSDOS frames as 116 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
117 well as for TTY. 117 during initialization.
118 (Fopen_termscript): Allow opening a termscript on MSDOS frames as 118
119 well as on a TTY. 1192008-10-04 Eli Zaretskii <eliz@gnu.org>
120 120
121 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames 121 * xdisp.c (redisplay_internal): If frame switched, redisplay the
122 as well as for TTY. 122 whole thing on MSDOS frames as well as on a TTY.
123 123
124 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'. 124 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
125 125 well as for TTY.
126 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for 126 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
127 MSDOS frames as well. 127 well as on a TTY.
128 128
1292008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com> 129 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
130 130 as well as for TTY.
131 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with 131
132 correct arguments. 132 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
133 * menu.c (find_and_return_menu_selection) Add cast. 133
134 134 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
1352008-10-03 Glenn Morris <rgm@gnu.org> 135 MSDOS frames as well.
136 136
137 * emacs.c (USAGE1): Add --daemon. 1372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
138 138
1392008-10-02 Eli Zaretskii <eliz@gnu.org> 139 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
140 140 correct arguments.
141 * process.c (procfs_system_process_attributes): Multiply `pcpu' by 141 * menu.c (find_and_return_menu_selection) Add cast.
142 100, so it's in percents as advertised. 142
143 1432008-10-03 Glenn Morris <rgm@gnu.org>
1442008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com> 144
145 145 * emacs.c (USAGE1): Add --daemon.
146 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color) 146
147 (ns_output.current_cursor, ns_output.desired_cursor) 1472008-10-02 Eli Zaretskii <eliz@gnu.org>
148 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR) 148
149 (FRAME_NEW_CURSOR_COLOR): Remove. 149 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
150 150 100, so it's in percents as advertised.
151 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR. 151
152 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core emacs 1522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
153 enumeration (HOLLOW_BOX_CURSOR, etc.). 153
154 154 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
155 * nsterm.m (ns_frame_rehighlight): Remove commented code. 155 (ns_output.current_cursor, ns_output.desired_cursor)
156 (draw_window_cursor): Simplify code. 156 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
157 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:): Don't 157 (FRAME_NEW_CURSOR_COLOR): Remove.
158 change cursor type. In latter, call rehighlight instead of doing 158
159 updates manually. 159 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
160 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel): Use 160 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core emacs
161 core emacs cursor types. 161 enumeration (HOLLOW_BOX_CURSOR, etc.).
162 162
163 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor() under 163 * nsterm.m (ns_frame_rehighlight): Remove commented code.
164 NS. 164 (draw_window_cursor): Simplify code.
165 165 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:): Don't
1662008-10-02 Martin Rudalics <rudalics@gmx.at> 166 change cursor type. In latter, call rehighlight instead of doing
167 167 updates manually.
168 * process.c (Faccept_process_output): Fix doc-string. 168 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel): Use
169 169 core emacs cursor types.
1702008-10-02 Dan Nicolaescu <dann@ics.uci.edu> 170
171 171 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor() under
172 * gmalloc.c (__sbrk): Also define for uClibc. 172 NS.
173 173
174 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition 1742008-10-02 Martin Rudalics <rudalics@gmx.at>
175 for uClibc. 175
176 176 * process.c (Faccept_process_output): Fix doc-string.
1772008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com> 177
178 1782008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
179 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal 179
180 styles. 180 * gmalloc.c (__sbrk): Also define for uClibc.
181 (nsfont_open): Reenable the cache. 181
182 182 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
1832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com> 183 for uClibc.
184 184
185 * font.c (font_matching_entity): Reflect ATTRS in font selection. 1852008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
186 (font_find_for_lface) [HAVE_NS]: Don't ignore case. 186
187 187 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
1882008-09-30 Stefan Monnier <monnier@iro.umontreal.ca> 188 styles.
189 189 (nsfont_open): Reenable the cache.
190 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to 190
191 a suspended terminal. 1912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
192 192
1932008-09-30 Michael Albinus <michael.albinus@gmx.de> 193 * font.c (font_matching_entity): Reflect ATTRS in font selection.
194 194 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
195 * dbusbind.c (xd_signature): Use strcat instead of sprintf. 195
196 1962008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
1972008-09-30 Eli Zaretskii <eliz@gnu.org> 197
198 198 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
199 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc. 199 a suspended terminal.
200 200
2012008-09-30 Chong Yidong <cyd@stupidchicken.com> 2012008-09-30 Michael Albinus <michael.albinus@gmx.de>
202 202
203 * xdisp.c (move_it_to): Don't advance the iterator if the last tab 203 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
204 in a continued line coincides with a line beginning. 204
205 2052008-09-30 Eli Zaretskii <eliz@gnu.org>
2062008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com> 206
207 207 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
208 * nsfont.m (nsfont_trait_distance): Fix bug. 208
209 (nsfont_list): Return a list rather than a vector (syncs with Handa 2092008-09-30 Chong Yidong <cyd@stupidchicken.com>
210 changes of 2008-05-14). 210
211 (nsfont_open): Improve logging. 211 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
212 212 in a continued line coincides with a line beginning.
2132008-09-29 Andreas Schwab <schwab@suse.de> 213
214 2142008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
215 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix. 215
216 216 * nsfont.m (nsfont_trait_distance): Fix bug.
2172008-09-28 Martin Rudalics <rudalics@gmx.at> 217 (nsfont_list): Return a list rather than a vector (syncs with Handa
218 218 changes of 2008-05-14).
219 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function 219 (nsfont_open): Improve logging.
220 name as char-resolve-modifiers. 220
221 Reported by: Markus Triska <markus.triska@gmx.at> 2212008-09-29 Andreas Schwab <schwab@suse.de>
222 222
2232008-09-28 Dan Nicolaescu <dann@ics.uci.edu> 223 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
224 224
225 * dispnew.c (init_display): Return earlier when running as a daemon. 2252008-09-28 Martin Rudalics <rudalics@gmx.at>
226 226
2272008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com> 227 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
228 228 name as char-resolve-modifiers.
229 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...). 229 Reported by: Markus Triska <markus.triska@gmx.at>
230 230
2312008-09-27 Eli Zaretskii <eliz@gnu.org> 2312008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
232 232
233 * composite.c (Fcomposition_get_gstring) 233 * dispnew.c (init_display): Return earlier when running as a daemon.
234 (Fcompose_region_internal, Fcompose_string_internal) 234
235 (Ffind_composition_internal): Doc fix. 2352008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
236 (syms_of_composite) <compose-chars-after-function>: Doc fix. 236
237 (syms_of_composite) <auto-composition-function>: Doc fix. 237 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
238 (syms_of_composite) <composition-function-table>: Doc fix. 238
239 2392008-09-27 Eli Zaretskii <eliz@gnu.org>
2402008-09-25 Chong Yidong <cyd@stupidchicken.com> 240
241 241 * composite.c (Fcomposition_get_gstring)
242 * search.c (wordify): New argument for lax word-ends. 242 (Fcompose_region_internal, Fcompose_string_internal)
243 (Fword_search_forward_lax, Fword_search_backward_lax): New funs. 243 (Ffind_composition_internal): Doc fix.
244 244 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2452008-09-24 Dan Nicolaescu <dann@ics.uci.edu> 245 (syms_of_composite) <auto-composition-function>: Doc fix.
246 246 (syms_of_composite) <composition-function-table>: Doc fix.
247 * lisp.h (is_daemon): Declare. 247
248 * dispnew.c (init_display): Do not try to initialize the terminal 2482008-09-25 Chong Yidong <cyd@stupidchicken.com>
249 when running as a daemon. 249
250 250 * search.c (wordify): New argument for lax word-ends.
2512008-09-22 Chong Yidong <cyd@stupidchicken.com> 251 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
252 252
253 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and 2532008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
254 x_display_pixel_height. 254
255 255 * lisp.h (is_daemon): Declare.
2562008-09-22 Martin Rudalics <rudalics@gmx.at> 256 * dispnew.c (init_display): Do not try to initialize the terminal
257 257 when running as a daemon.
258 * undo.c (record_point): Don't call Fundo_boundary for first 258
259 change. (Bug#731) 2592008-09-22 Chong Yidong <cyd@stupidchicken.com>
260 260
2612008-09-22 Juanma Barranquero <lekktu@gmail.com> 261 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
262 262 x_display_pixel_height.
263 * emacs.c (Fdaemonp): Doc fix. 263
264 2642008-09-22 Martin Rudalics <rudalics@gmx.at>
2652008-09-22 Dan Nicolaescu <dann@ics.uci.edu> 265
266 266 * undo.c (record_point): Don't call Fundo_boundary for first
267 * emacs.c (main): Place #ifdef in the proper place. 267 change. (Bug#731)
268 268
2692008-09-21 Dan Nicolaescu <dann@ics.uci.edu> 2692008-09-22 Juanma Barranquero <lekktu@gmail.com>
270 270
271 * emacs.c (standard_args): Add --daemon. 271 * emacs.c (Fdaemonp): Doc fix.
272 (main): Disconnect from the terminal when --daemon is passed. 272
273 (is_daemon): New variable. 2732008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
274 (Fdaemonp): New function. 274
275 (syms_of_emacs): Defsubr it. 275 * emacs.c (main): Place #ifdef in the proper place.
276 276
2772008-09-20 Chong Yidong <cyd@stupidchicken.com> 2772008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
278 278
279 * xdisp.c (get_next_display_element): Handle string display 279 * emacs.c (standard_args): Add --daemon.
280 correctly when checking for the end of a box run. 280 (main): Disconnect from the terminal when --daemon is passed.
281 281 (is_daemon): New variable.
2822008-09-20 Glenn Morris <rgm@gnu.org> 282 (Fdaemonp): New function.
283 283 (syms_of_emacs): Defsubr it.
284 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object. 284
285 (syms_of_fileio): Add Qdelete_by_moving_to_trash. 2852008-09-20 Chong Yidong <cyd@stupidchicken.com>
286 (Frename_file): Avoid copying to trash if a rename involves 286
287 a delete. (Bug#964). 287 * xdisp.c (get_next_display_element): Handle string display
288 288 correctly when checking for the end of a box run.
2892008-09-20 Eli Zaretskii <eliz@gnu.org> 289
290 2902008-09-20 Glenn Morris <rgm@gnu.org>
291 * keyboard.c (Fset_quit_char, Fset_input_meta_mode) 291
292 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS 292 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
293 frames as well as termcap frames. 293 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
294 (handle_interrupt): Remove "#ifndef MSDOS" around the call to 294 (Frename_file): Avoid copying to trash if a rename involves
295 get_named_tty. 295 a delete. (Bug#964).
296 296
2972008-09-19 Eli Zaretskii <eliz@gnu.org> 2972008-09-20 Eli Zaretskii <eliz@gnu.org>
298 298
299 * process.c (procfs_system_process_attributes): Fix cmdline in 299 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
300 case /proc/PID/cmdline is empty. 300 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
301 301 frames as well as termcap frames.
302 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and 302 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
303 x_display_pixel_height. 303 get_named_tty.
304 304
3052008-09-19 Juanma Barranquero <lekktu@gmail.com> 3052008-09-19 Eli Zaretskii <eliz@gnu.org>
306 306
307 * frame.c (x_fullscreen_adjust): Declare var as Display_Info. 307 * process.c (procfs_system_process_attributes): Fix cmdline in
308 308 case /proc/PID/cmdline is empty.
309 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height) 309
310 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height. 310 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
311 311 x_display_pixel_height.
3122008-09-19 Dan Nicolaescu <dann@ics.uci.edu> 312
313 3132008-09-19 Juanma Barranquero <lekktu@gmail.com>
314 * dispextern.h (struct it): Move line_wrap away from the middle of 314
315 bitfields. Move voffset in struct iterator_stack_entry after the 315 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
316 bitfields. Move tab_width near after another short. 316
317 317 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3182008-09-18 Dan Nicolaescu <dann@ics.uci.edu> 318 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
319 319
320 * frame.h (struct frame): Move alpha from the middle of bitfields. 3202008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
321 321
322 * window.h (struct window): Move frozen_window_start_p after the 322 * dispextern.h (struct it): Move line_wrap away from the middle of
323 rest of the bitfields to reduce padding. 323 bitfields. Move voffset in struct iterator_stack_entry after the
324 324 bitfields. Move tab_width near after another short.
3252008-09-18 Chong Yidong <cyd@stupidchicken.com> 325
326 3262008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
327 * xterm.h (x_display_info): Remove `height' and `width' members. 327
328 328 * frame.h (struct frame): Move alpha from the middle of bitfields.
329 * nsterm.h (ns_display_info): Remove `height' and `width' members. 329
330 330 * window.h (struct window): Move frozen_window_start_p after the
331 * w32term.h (w32_display_info): Remove `height', `width', 331 rest of the bitfields to reduce padding.
332 `height_in', and `width_in' members. 332
333 3332008-09-18 Chong Yidong <cyd@stupidchicken.com>
334 * xterm.c (x_display_pixel_height, x_display_pixel_width): New 334
335 functions. 335 * xterm.h (x_display_info): Remove `height' and `width' members.
336 (x_calc_absolute_position): Use them. 336
337 (x_term_init): Omit removed `height' and `width' members. 337 * nsterm.h (ns_display_info): Remove `height' and `width' members.
338 338
339 * w32term.c (x_display_pixel_height, x_display_pixel_width): New 339 * w32term.h (w32_display_info): Remove `height', `width',
340 functions. 340 `height_in', and `width_in' members.
341 (w32_read_socket, x_calc_absolute_position): Use them. 341
342 (w32_initialize_display_info, w32_term_init): Omit removed members 342 * xterm.c (x_display_pixel_height, x_display_pixel_width): New
343 of w32_display_info. 343 functions.
344 344 (x_calc_absolute_position): Use them.
345 * nsterm.m (x_display_pixel_height, x_display_pixel_width): New 345 (x_term_init): Omit removed `height' and `width' members.
346 functions. 346
347 (ns_initialize_display_info): Omit removed members of 347 * w32term.c (x_display_pixel_height, x_display_pixel_width): New
348 ns_display_info. 348 functions.
349 349 (w32_read_socket, x_calc_absolute_position): Use them.
350 * xterm.c (x_display_pixel_height, x_display_pixel_width): New 350 (w32_initialize_display_info, w32_term_init): Omit removed members
351 functions. 351 of w32_display_info.
352 (x_calc_absolute_position): Use them. 352
353 (x_term_init): Omit removed `height' and `width' members. 353 * nsterm.m (x_display_pixel_height, x_display_pixel_width): New
354 354 functions.
355 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height) 355 (ns_initialize_display_info): Omit removed members of
356 (compute_tip_xy): Use x_display_pixel_height and 356 ns_display_info.
357 x_display_pixel_width. 357
358 358 * xterm.c (x_display_pixel_height, x_display_pixel_width): New
359 * frame.c (x_fullscreen_adjust): Use x_display_pixel_height and 359 functions.
360 x_display_pixel_width. 360 (x_calc_absolute_position): Use them.
361 361 (x_term_init): Omit removed `height' and `width' members.
362 * xmenu.c (menu_position_func): Use x_display_pixel_height and 362
363 x_display_pixel_width. 363 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
364 364 (compute_tip_xy): Use x_display_pixel_height and
3652008-09-18 Kenichi Handa <handa@m17n.org> 365 x_display_pixel_width.
366 366
367 * composite.c (fill_gstring_header): Don't check FROM and TO here. 367 * frame.c (x_fullscreen_adjust): Use x_display_pixel_height and
368 (composition_compute_stop_pos): Fix handling of static composition. 368 x_display_pixel_width.
369 (Fcomposition_get_gstring): Check FROM and TO at first. 369
370 370 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3712008-09-17 Stefan Monnier <monnier@iro.umontreal.ca> 371 x_display_pixel_width.
372 372
373 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject 3732008-09-18 Kenichi Handa <handa@m17n.org>
374 mixup (YAILOM). 374
375 375 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3762008-09-17 Chong Yidong <cyd@stupidchicken.com> 376 (composition_compute_stop_pos): Fix handling of static composition.
377 377 (Fcomposition_get_gstring): Check FROM and TO at first.
378 * indent.c (Fvertical_motion): Use position reported by iterator 378
379 instead of PT for determining screen motion (bug#943). 3792008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
380 380
3812008-09-17 Romain Francoise <romain@orebokech.com> 381 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
382 382 mixup (YAILOM).
383 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup. 383
384 3842008-09-17 Chong Yidong <cyd@stupidchicken.com>
3852008-09-17 Kenichi Handa <handa@m17n.org> 385
386 386 * indent.c (Fvertical_motion): Use position reported by iterator
387 * ftfont.c (ftfont_shape_by_flt): Downcase family name. 387 instead of PT for determining screen motion (bug#943).
388 388
389 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work 3892008-09-17 Romain Francoise <romain@orebokech.com>
390 if necessary. 390
391 391 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3922008-09-16 Kenichi Handa <handa@m17n.org> 392
393 3932008-09-17 Kenichi Handa <handa@m17n.org>
394 * coding.c (make_conversion_work_buffer): Avoid calling 394
395 Fget_buffer_create if it is not necessary. 395 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
396 396
3972008-09-15 Martin Rudalics <rudalics@gmx.at> 397 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
398 398 if necessary.
399 * window.c (Fselect_window): Don't update window_select_count and 399
400 use_time when norecord is not nil. 4002008-09-16 Kenichi Handa <handa@m17n.org>
401 401
4022008-09-14 Kenichi Handa <handa@m17n.org> 402 * coding.c (make_conversion_work_buffer): Avoid calling
403 403 Fget_buffer_create if it is not necessary.
404 * fileio.c (Finsert_file_contents): Delete incorrect decrement of 404
405 specpdl_ptr. 4052008-09-15 Martin Rudalics <rudalics@gmx.at>
406 406
4072008-09-12 Kenichi Handa <handa@m17n.org> 407 * window.c (Fselect_window): Don't update window_select_count and
408 408 use_time when norecord is not nil.
409 * indent.c (scan_for_column): Don't handle automatic composition 409
410 if the current buffer is not associated with a window. 4102008-09-14 Kenichi Handa <handa@m17n.org>
411 411
412 * composite.c (composition_reseat_it): If the current buffer is 412 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
413 not associated with a window, ignore the automatic composition. 413 specpdl_ptr.
414 (find_automatic_composition): Likewise. 414
415 4152008-09-12 Kenichi Handa <handa@m17n.org>
4162008-09-12 Stefan Monnier <monnier@iro.umontreal.ca> 416
417 417 * indent.c (scan_for_column): Don't handle automatic composition
418 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop. 418 if the current buffer is not associated with a window.
419 (Fgpm_mouse_stop): Use it. 419
420 * termhooks.h (close_gpm): Declare. 420 * composite.c (composition_reseat_it): If the current buffer is
421 * keyboard.c (tty_read_avail_input): Forcefully close the gpm 421 not associated with a window, ignore the automatic composition.
422 connection if Gpm_GetEvent fails. 422 (find_automatic_composition): Likewise.
423 423
424 * window.c (set_window_buffer): Always preserve current-buffer. 4242008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
425 425
4262008-09-12 Glenn Morris <rgm@gnu.org> 426 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
427 427 (Fgpm_mouse_stop): Use it.
428 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909) 428 * termhooks.h (close_gpm): Declare.
429 429 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4302008-09-11 Glenn Morris <rgm@gnu.org> 430 connection if Gpm_GetEvent fails.
431 431
432 * charset.c (charset-map-path): Doc fix. 432 * window.c (set_window_buffer): Always preserve current-buffer.
433 433
4342008-09-10 Kenichi Handa <handa@m17n.org> 4342008-09-12 Glenn Morris <rgm@gnu.org>
435 435
436 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1. 436 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
437 437
438 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment 4382008-09-11 Glenn Morris <rgm@gnu.org>
439 compose a grapheme cluster with the preceding base glyph. 439
440 440 * charset.c (charset-map-path): Doc fix.
441 * composite.c (composition_compute_stop_pos): Fix previous change. 441
442 Reset cmp_it->id to -1 at first. 4422008-09-10 Kenichi Handa <handa@m17n.org>
443 443
4442008-09-10 Glenn Morris <rgm@gnu.org> 444 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
445 445
446 * Makefile.in (character.o, chartab.o): Fix config.h typo. 446 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
447 447 compose a grapheme cluster with the preceding base glyph.
4482008-09-09 Chong Yidong <cyd@stupidchicken.com> 448
449 449 * composite.c (composition_compute_stop_pos): Fix previous change.
450 * keyboard.c (read_key_sequence): Reapply translation maps when 450 Reset cmp_it->id to -1 at first.
451 switching keyboards. 451
452 4522008-09-10 Glenn Morris <rgm@gnu.org>
4532008-09-09 Kenichi Handa <handa@m17n.org> 453
454 454 * Makefile.in (character.o, chartab.o): Fix config.h typo.
455 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII 455
456 characters. 4562008-09-09 Chong Yidong <cyd@stupidchicken.com>
457 457
458 * composite.c (FORWARD_CHAR): Fix calculation 458 * keyboard.c (read_key_sequence): Reapply translation maps when
459 of (POSITION).pos_byte. 459 switching keyboards.
460 (composition_compute_stop_pos): Limit the search of composition to 460
461 at most 500 characters ahead. If we reach the limit or find a 4612008-09-09 Kenichi Handa <handa@m17n.org>
462 newline, set cmp_it->ch to -2 and return 0. 462
463 (composition_reseat_it): Handle the case that cmp_it->ch is -2. 463 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
464 464 characters.
4652008-09-08 Kenichi Handa <handa@m17n.org> 465
466 466 * composite.c (FORWARD_CHAR): Fix calculation
467 * indent.c (Fvertical_motion): Be sure to set 467 of (POSITION).pos_byte.
468 it_overshoot_expected if it.cmp_it.id is non-negative. 468 (composition_compute_stop_pos): Limit the search of composition to
469 469 at most 500 characters ahead. If we reach the limit or find a
4702008-09-07 Andreas Schwab <schwab@suse.de> 470 newline, set cmp_it->ch to -2 and return 0.
471 471 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
472 * callproc.c (Fcall_process): Don't hold references to string data 472
473 across garbage collection. Move initialisation of new_argv down 4732008-09-08 Kenichi Handa <handa@m17n.org>
474 to avoid compiler bug. 474
475 475 * indent.c (Fvertical_motion): Be sure to set
4762008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> 476 it_overshoot_expected if it.cmp_it.id is non-negative.
477 477
478 * process.c (Fsystem_process_attributes): Doc fix. 4782008-09-07 Andreas Schwab <schwab@suse.de>
479 479
4802008-09-07 Chong Yidong <cyd@stupidchicken.com> 480 * callproc.c (Fcall_process): Don't hold references to string data
481 481 across garbage collection. Move initialisation of new_argv down
482 * callproc.c (Fcall_process): Canonicalize current directory name. 482 to avoid compiler bug.
483 483
484 * xdisp.c (move_it_to): When moving by vpos, ensure that the 4842008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
485 iterator advances to the next line if the current line ends in a 485
486 continued tab. 486 * process.c (Fsystem_process_attributes): Doc fix.
487 487
4882008-09-07 Teodor Zlatanov <tzz@lifelogs.com> 4882008-09-07 Chong Yidong <cyd@stupidchicken.com>
489 489
490 * nsfont.m (nsfont_draw): Fix the references to missing gidx data 490 * callproc.c (Fcall_process): Canonicalize current directory name.
491 member to point to cmp_from. 491
492 492 * xdisp.c (move_it_to): When moving by vpos, ensure that the
493 * xdisp.c: Doc fix for references to gidx data member. 493 iterator advances to the next line if the current line ends in a
494 494 continued tab.
4952008-09-07 Stefan Monnier <monnier@iro.umontreal.ca> 495
496 4962008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
497 * buffer.c (Fbuffer_swap_text): Reset window->point markers. 497
498 498 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4992008-09-07 Kenichi Handa <handa@m17n.org> 499 member to point to cmp_from.
500 500
501 * composite.c (FORWARD_CHAR): Check STOP after 501 * xdisp.c: Doc fix for references to gidx data member.
502 incrementing (POSITION).pos. 502
503 5032008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5042008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> 504
505 505 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
506 * process.c (Fsystem_process_attributes): Doc fix. 506
507 5072008-09-07 Kenichi Handa <handa@m17n.org>
5082008-09-06 Chong Yidong <cyd@stupidchicken.com> 508
509 509 * composite.c (FORWARD_CHAR): Check STOP after
510 * keyboard.c (Ftop_level): Doc fix. 510 incrementing (POSITION).pos.
511 511
5122008-09-06 Eli Zaretskii <eliz@gnu.org> 5122008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
513 513
514 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a 514 * process.c (Fsystem_process_attributes): Doc fix.
515 minibuffer, don't let lower part of menu invade the echo area. 515
516 5162008-09-06 Chong Yidong <cyd@stupidchicken.com>
517 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a 517
518 "char *q" to access menu text and advance through it. Revert the 518 * keyboard.c (Ftop_level): Doc fix.
519 change that displayed ">" instead of ASCII character 0x10. 519
520 5202008-09-06 Eli Zaretskii <eliz@gnu.org>
5212008-09-05 Eli Zaretskii <eliz@gnu.org> 521
522 522 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
523 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of 523 minibuffer, don't let lower part of menu invade the echo area.
524 toggle boxes and radio buttons on MS-DOS as well. 524
525 525 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5262008-09-05 Kenichi Handa <handa@m17n.org> 526 "char *q" to access menu text and advance through it. Revert the
527 527 change that displayed ">" instead of ASCII character 0x10.
528 * composite.c (autocmp_chars): Check lookback count. 528
529 (composition_compute_stop_pos): Set cmp_it->lookback. 5292008-09-05 Eli Zaretskii <eliz@gnu.org>
530 (composition_reseat_it): Check lookback count. 530
531 (struct position_record): New struct. 531 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
532 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros. 532 toggle boxes and radio buttons on MS-DOS as well.
533 (find_automatic_composition): New function. 533
534 (composition_adjust_point): Use find_automatic_composition. 5342008-09-05 Kenichi Handa <handa@m17n.org>
535 535
536 * dispextern.h (struct composition_it): New member lookback. 536 * composite.c (autocmp_chars): Check lookback count.
537 537 (composition_compute_stop_pos): Set cmp_it->lookback.
5382008-09-02 Chong Yidong <cyd@stupidchicken.com> 538 (composition_reseat_it): Check lookback count.
539 539 (struct position_record): New struct.
540 * indent.c (Fvertical_motion): Don't call move_it_by_lines again 540 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
541 if moving by a single line. 541 (find_automatic_composition): New function.
542 542 (composition_adjust_point): Use find_automatic_composition.
5432008-09-02 Andreas Schwab <schwab@suse.de> 543
544 544 * dispextern.h (struct composition_it): New member lookback.
545 * xterm.c (x_delete_display): Fix merge error. 545
546 5462008-09-02 Chong Yidong <cyd@stupidchicken.com>
547 * fileio.c (Fexpand_file_name): Remove unused variables. 547
548 548 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5492008-09-02 Eli Zaretskii <eliz@gnu.org> 549 if moving by a single line.
550 550
551 * fileio.c (Fexpand_file_name): Copy argument `name' into local 5512008-09-02 Andreas Schwab <schwab@suse.de>
552 storage on all platforms, not just on DOS_NT. 552
553 553 * xterm.c (x_delete_display): Fix merge error.
5542008-09-02 Jason Rumney <jasonr@gnu.org> 554
555 555 * fileio.c (Fexpand_file_name): Remove unused variables.
556 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure 556
557 mouse is not grabbed after menu is finished. 5572008-09-02 Eli Zaretskii <eliz@gnu.org>
558 558
5592008-09-01 Chong Yidong <cyd@stupidchicken.com> 559 * fileio.c (Fexpand_file_name): Copy argument `name' into local
560 560 storage on all platforms, not just on DOS_NT.
561 * xfaces.c (Finternal_set_alternative_font_family_alist) 561
562 (Finternal_set_alternative_font_registry_alist): Properly copy 5622008-09-02 Jason Rumney <jasonr@gnu.org>
563 entire alist structure. 563
564 564 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure
5652008-09-01 Kenichi Handa <handa@m17n.org> 565 mouse is not grabbed after menu is finished.
566 566
567 * ftfont.c (ftfont_spec_pattern): Don't create a charset of the 5672008-09-01 Chong Yidong <cyd@stupidchicken.com>
568 representative chars of the script is a vector. 568
569 (ftfont_list): Handle the case the representative chars of the 569 * xfaces.c (Finternal_set_alternative_font_family_alist)
570 script is a vector. 570 (Finternal_set_alternative_font_registry_alist): Properly copy
571 571 entire alist structure.
572 * character.c (syms_of_character): Docstring of 572
573 script-representative-chars fixed. 5732008-09-01 Kenichi Handa <handa@m17n.org>
574 574
5752008-08-31 Eli Zaretskii <eliz@gnu.org> 575 * ftfont.c (ftfont_spec_pattern): Don't create a charset of the
576 576 representative chars of the script is a vector.
577 * msdos.c (BUILD_CHAR_GLYPH): New macro. 577 (ftfont_list): Handle the case the representative chars of the
578 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct 578 script is a vector.
579 the menu. Allocate larger buffer for `text', to account for 579
580 possible ^C characters. 580 * character.c (syms_of_character): Docstring of
581 581 script-representative-chars fixed.
5822008-08-31 Martin Rudalics <rudalics@gmx.at> 582
583 5832008-08-31 Eli Zaretskii <eliz@gnu.org>
584 * xdisp.c (prepare_menu_bars): Don't call 584
585 Vwindow_size_change_functions with arg Qt. 585 * msdos.c (BUILD_CHAR_GLYPH): New macro.
586 586 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5872008-08-31 Stefan Monnier <monnier@iro.umontreal.ca> 587 the menu. Allocate larger buffer for `text', to account for
588 588 possible ^C characters.
589 * font.h (font_range): 589
590 * fileio.c (report_file_error): 5902008-08-31 Martin Rudalics <rudalics@gmx.at>
591 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup. 591
592 592 * xdisp.c (prepare_menu_bars): Don't call
5932008-08-30 Glenn Morris <rgm@gnu.org> 593 Vwindow_size_change_functions with arg Qt.
594 594
595 * data.c (Fmake_variable_frame_local): Doc fix. 5952008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
596 596
597 * frame.c (Fmodify_frame_parameters): Doc fix. 597 * font.h (font_range):
598 598 * fileio.c (report_file_error):
5992008-08-30 Eli Zaretskii <eliz@gnu.org> 599 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
600 600
601 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size 6012008-08-30 Glenn Morris <rgm@gnu.org>
602 needed by GetTokenInformation. 602
603 (w32_system_process_attributes): Check return values of all system 603 * data.c (Fmake_variable_frame_local): Doc fix.
604 APIs. 604
605 605 * frame.c (Fmodify_frame_parameters): Doc fix.
606 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript 606
607 only when the state changes. 6072008-08-30 Eli Zaretskii <eliz@gnu.org>
608 (IT_update_begin, IT_update_end): Add termscript trace. 608
609 609 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
610 * w16select.c (Fw16_set_clipboard_data): Don't encode text if 610 needed by GetTokenInformation.
611 clipboard is unavailable. Set dst to NULL if it doesn't point to 611 (w32_system_process_attributes): Check return values of all system
612 malloc'ed data. 612 APIs.
613 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid 613
614 passing random values to xfree. 614 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
615 615 only when the state changes.
616 * dispnew.c (init_display): Set `tty's association in frame's 616 (IT_update_begin, IT_update_end): Add termscript trace.
617 parameters alist to the name of the terminal device, if that is 617
618 known. 618 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
619 619 clipboard is unavailable. Set dst to NULL if it doesn't point to
6202008-08-29 Jason Rumney <jasonr@gnu.org> 620 malloc'ed data.
621 621 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
622 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script. 622 passing random values to xfree.
623 623
6242008-08-29 Eli Zaretskii <eliz@gnu.org> 624 * dispnew.c (init_display): Set `tty's association in frame's
625 625 parameters alist to the name of the terminal device, if that is
626 * composite.c (fill_gstring_body): Avoid compiler warnings. 626 known.
627 627
628 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in 6282008-08-29 Jason Rumney <jasonr@gnu.org>
629 LGLYPH_SET_CODE to avoid compiler warnings. 629
630 630 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
631 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h 631
632 6322008-08-29 Eli Zaretskii <eliz@gnu.org>
633 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT. 633
634 634 * composite.c (fill_gstring_body): Avoid compiler warnings.
635 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in 635
636 LGLYPH_SET_CODE. 636 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
637 637 LGLYPH_SET_CODE to avoid compiler warnings.
6382008-08-29 Kenichi Handa <handa@m17n.org> 638
639 639 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h
640 * fileio.c (report_file_error): Don't downcase the first character 640
641 of errstring if it is still unibyte. 641 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
642 642
6432008-08-29 Kenichi Handa <handa@m17n.org> 643 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
644 644 LGLYPH_SET_CODE.
645 These changes are to re-implement the automatic composition so 645
646 that it doesn't use text properties. 6462008-08-29 Kenichi Handa <handa@m17n.org>
647 647
648 * Makefile.in (ftfont.o): Depend on composite.h. 648 * fileio.c (report_file_error): Don't downcase the first character
649 (composite.o): Depend dispextern.h, font.h, frame, and window.h. 649 of errstring if it is still unibyte.
650 650
651 * character.h (Vunicode_category_table): Extern it. 6512008-08-29 Kenichi Handa <handa@m17n.org>
652 652
653 * character.c (Vunicode_category_table): New variable. 653 These changes are to re-implement the automatic composition so
654 (syms_of_character): DEFVAR_LISP Vunicode_category_table. 654 that it doesn't use text properties.
655 655
656 * chartab.c (optimize_sub_char_table): Perform more greedy 656 * Makefile.in (ftfont.o): Depend on composite.h.
657 optimization. 657 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
658 658
659 * composite.h (enum composition_method): Delete 659 * character.h (Vunicode_category_table): Extern it.
660 COMPOSITION_WITH_GLYPH_STRING. 660
661 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING. 661 * character.c (Vunicode_category_table): New variable.
662 (Vcomposition_function_table): Extern it. 662 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
663 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h. 663
664 (composition_gstring_put_cache, composition_gstring_from_id) 664 * chartab.c (optimize_sub_char_table): Perform more greedy
665 (composition_gstring_p, composition_gstring_width) 665 optimization.
666 (composition_compute_stop_pos, composition_reseat_it) 666
667 (composition_update_it, composition_adjust_point): Extern them. 667 * composite.h (enum composition_method): Delete
668 (Fcomposition_get_gstring): EXFUN it. 668 COMPOSITION_WITH_GLYPH_STRING.
669 669 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
670 * composite.c: Include window.h, frame.h, dispextern.h font.h. 670 (Vcomposition_function_table): Extern it.
671 (Vcomposition_function_table) 671 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
672 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING. 672 (composition_gstring_put_cache, composition_gstring_from_id)
673 (gstring_hash_table, gstring_work, gstring_work_headers): New 673 (composition_gstring_p, composition_gstring_width)
674 variables. 674 (composition_compute_stop_pos, composition_reseat_it)
675 (gstring_lookup_cache, composition_gstring_put_cache) 675 (composition_update_it, composition_adjust_point): Extern them.
676 (composition_gstring_from_id, composition_gstring_p) 676 (Fcomposition_get_gstring): EXFUN it.
677 (composition_gstring_width, fill_gstring_header) 677
678 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos) 678 * composite.c: Include window.h, frame.h, dispextern.h font.h.
679 (composition_reseat_it, composition_update_it) 679 (Vcomposition_function_table)
680 (composition_adjust_point, Fcomposition_get_gstring): New 680 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
681 functions. 681 (gstring_hash_table, gstring_work, gstring_work_headers): New
682 (syms_of_composite): Initialize gstring_hash_table, gstrint_work, 682 variables.
683 and gstring_work_headers. DEFVAR_LISP composition-function-table. 683 (gstring_lookup_cache, composition_gstring_put_cache)
684 Defsubr compostion_get_gstring. 684 (composition_gstring_from_id, composition_gstring_p)
685 685 (composition_gstring_width, fill_gstring_header)
686 * dispextern.h (struct glyph): New union u.cmp. Delete the member 686 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
687 cmp_id. 687 (composition_reseat_it, composition_update_it)
688 (struct glyph_string): Delete the member gidx. New members 688 (composition_adjust_point, Fcomposition_get_gstring): New
689 cmp_id, cmp_from, and cmp_to. 689 functions.
690 (enum it_method): Delete GET_FROM_COMPOSITION. 690 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
691 (struct composition_it): New struct. 691 and gstring_work_headers. DEFVAR_LISP composition-function-table.
692 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it. 692 Defsubr compostion_get_gstring.
693 Delete c, len, cmp_id, cmp_len in u.comp. 693
694 694 * dispextern.h (struct glyph): New union u.cmp. Delete the member
695 * font.h (enum lgstring_indices): Delete it. 695 cmp_id.
696 (LGSTRING_XXX, LGLYPH_XXX): These macros moved to composite.h. 696 (struct glyph_string): Delete the member gidx. New members
697 (enum lglyph_indices): Likewise. 697 cmp_id, cmp_from, and cmp_to.
698 (font_range): Extern adjusted. 698 (enum it_method): Delete GET_FROM_COMPOSITION.
699 (font_fill_lglyph_metrics): Extern it. 699 (struct composition_it): New struct.
700 700 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
701 * font.c (QCf): New variable. 701 Delete c, len, cmp_id, cmp_len in u.comp.
702 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH. 702
703 (font_prepare_composition): Delete this function. 703 * font.h (enum lgstring_indices): Delete it.
704 (font_range): Type and arguments changed. 704 (LGSTRING_XXX, LGLYPH_XXX): These macros moved to composite.h.
705 (Ffont_make_gstring, Ffont_fill_gstring): Delete them. 705 (enum lglyph_indices): Likewise.
706 (font_fill_lglyph_metrics): New function. 706 (font_range): Extern adjusted.
707 (Ffont_shape_text): Renamed to Ffont_shape_gstring and arguments 707 (font_fill_lglyph_metrics): Extern it.
708 changed. 708
709 (syms_of_font): DEFSYM QCf. Delete defsubr for 709 * font.c (QCf): New variable.
710 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text. Defsubr 710 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
711 Sfont_shape_gstring. 711 (font_prepare_composition): Delete this function.
712 712 (font_range): Type and arguments changed.
713 * fontset.h (font_for_char): Extern it. 713 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
714 714 (font_fill_lglyph_metrics): New function.
715 * fontset.c (font_for_char): New function. 715 (Ffont_shape_text): Renamed to Ffont_shape_gstring and arguments
716 716 changed.
717 * ftfont.c: Include composite.h. 717 (syms_of_font): DEFSYM QCf. Delete defsubr for
718 (ftfont_resolve_generic_family): Add langset "en" to pattern. 718 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text. Defsubr
719 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not 719 Sfont_shape_gstring.
720 LGSTRING_LENGTH. 720
721 721 * fontset.h (font_for_char): Extern it.
722 * indent.c: Include composite.h and dispextern.h. 722
723 (check_composition): Delete this function. 723 * fontset.c (font_for_char): New function.
724 (scan_for_column): Handle composition by 724
725 composition_compute_stop_pos, composition_reseat_it, and 725 * ftfont.c: Include composite.h.
726 composition_update_it. 726 (ftfont_resolve_generic_family): Add langset "en" to pattern.
727 (compute_motion): Likewise. 727 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not
728 (Fvertical_motion): Fix checking of composition. 728 LGSTRING_LENGTH.
729 729
730 * keyboard.c (adjust_point_for_property): Check composition by 730 * indent.c: Include composite.h and dispextern.h.
731 composition_adjust_point. 731 (check_composition): Delete this function.
732 732 (scan_for_column): Handle composition by
733 * nsterm.m (ns_draw_glyph_string): Adjusted for the change of 733 composition_compute_stop_pos, composition_reseat_it, and
734 struct glyph_string. 734 composition_update_it.
735 735 (compute_motion): Likewise.
736 * term.c (encode_terminal_code): Adjusted for the change of struct 736 (Fvertical_motion): Fix checking of composition.
737 glyph. 737
738 (append_composite_glyph): Adjusted for the change of struct it and 738 * keyboard.c (adjust_point_for_property): Check composition by
739 struct glyph. 739 composition_adjust_point.
740 (produce_composite_glyph): Likewise. 740
741 741 * nsterm.m (ns_draw_glyph_string): Adjusted for the change of
742 * w32term.c (x_draw_composite_glyph_string_foreground): Adjusted 742 struct glyph_string.
743 for the change of struct glyph_string. 743
744 (x_draw_glyph_string): Likewise. 744 * term.c (encode_terminal_code): Adjusted for the change of struct
745 745 glyph.
746 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h. 746 (append_composite_glyph): Adjusted for the change of struct it and
747 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH. 747 struct glyph.
748 748 (produce_composite_glyph): Likewise.
749 * xdisp.c: Include font.h. 749
750 (it_props): Delete the entry for Qauto_composed. 750 * w32term.c (x_draw_composite_glyph_string_foreground): Adjusted
751 (init_iterator): Initialize it->cmp_it.id to -1. 751 for the change of struct glyph_string.
752 (compute_stop_pos): Call composition_compute_stop_pos. 752 (x_draw_glyph_string): Likewise.
753 (face_before_or_after_it_pos): Adjusted for the change of struct 753
754 it. 754 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
755 (handle_auto_composed_prop): Delete it. 755 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
756 (handle_composition_prop): Handle only static composition. 756
757 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION 757 * xdisp.c: Include font.h.
758 from xassert. Initialize it->cmp_it.stop_pos. 758 (it_props): Delete the entry for Qauto_composed.
759 (push_it): Adjusted for the change of struct it. 759 (init_iterator): Initialize it->cmp_it.id to -1.
760 (pop_it): Likewise. 760 (compute_stop_pos): Call composition_compute_stop_pos.
761 (get_next_element): Delete next_element_from_composition. 761 (face_before_or_after_it_pos): Adjusted for the change of struct
762 (CHAR_COMPOSED_P): New macro. 762 it.
763 (get_next_display_element): For automatic composition, get a face 763 (handle_auto_composed_prop): Delete it.
764 from the font in the glyph-string. 764 (handle_composition_prop): Handle only static composition.
765 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING, 765 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
766 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION 766 from xassert. Initialize it->cmp_it.stop_pos.
767 case. 767 (push_it): Adjusted for the change of struct it.
768 (next_element_from_string): Check if the character at the current 768 (pop_it): Likewise.
769 position is composed by CHAR_COMPOSED_P. 769 (get_next_element): Delete next_element_from_composition.
770 (next_element_from_buffer): Likewise. 770 (CHAR_COMPOSED_P): New macro.
771 (next_element_from_composition): Adjusted for the change of struct 771 (get_next_display_element): For automatic composition, get a face
772 it. Update it->cmp_it. 772 from the font in the glyph-string.
773 (dump_glyph): Adjusted for the change of struct glyph. 773 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
774 (fill_composite_glyph_string): Adjusted for the change of struct 774 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION
775 it and struct glyph. Don't handle automatic composition here. 775 case.
776 (fill_gstring_glyph_string): New function. 776 (next_element_from_string): Check if the character at the current
777 (x_get_glyph_overhangs): Handle automatic composition. 777 position is composed by CHAR_COMPOSED_P.
778 (BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the change of struct 778 (next_element_from_buffer): Likewise.
779 glyph. 779 (next_element_from_composition): Adjusted for the change of struct
780 (BUILD_GSTRING_GLYPH_STRING): New macro. 780 it. Update it->cmp_it.
781 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for 781 (dump_glyph): Adjusted for the change of struct glyph.
782 automatic composition. 782 (fill_composite_glyph_string): Adjusted for the change of struct
783 (append_composite_glyph): Adjusted for the change of struct it and 783 it and struct glyph. Don't handle automatic composition here.
784 struct glyph. 784 (fill_gstring_glyph_string): New function.
785 (x_produce_glyphs): Adjusted for the change of struct it. 785 (x_get_glyph_overhangs): Handle automatic composition.
786 786 (BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the change of struct
787 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for 787 glyph.
788 the change of struct glyph_string. 788 (BUILD_GSTRING_GLYPH_STRING): New macro.
789 (x_draw_glyph_string): Likewise. 789 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
790 790 automatic composition.
7912008-08-29 Glenn Morris <rgm@gnu.org> 791 (append_composite_glyph): Adjusted for the change of struct it and
792 792 struct glyph.
793 * buffer.c (word-wrap): Doc fix. 793 (x_produce_glyphs): Adjusted for the change of struct it.
794 * xdisp.c (truncate-partial-width-windows): Doc fix. 794
795 Increase default to 50. 795 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for
796 796 the change of struct glyph_string.
7972008-08-29 Chong Yidong <cyd@stupidchicken.com> 797 (x_draw_glyph_string): Likewise.
798 798
799 * xdisp.c (update_tool_bar_unwind): New function. 7992008-08-29 Glenn Morris <rgm@gnu.org>
800 (update_tool_bar): Temporarily set selected frame before building 800
801 tool-bar items. 801 * buffer.c (word-wrap): Doc fix.
802 802 * xdisp.c (truncate-partial-width-windows): Doc fix.
8032008-08-28 Michael Albinus <michael.albinus@gmx.de> 803 Increase default to 50.
804 804
805 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and 8052008-08-29 Chong Yidong <cyd@stupidchicken.com>
806 snprintf, respectively. 806
807 (xd_append_arg): Convert strings with Fstring_make_unibyte. 807 * xdisp.c (update_tool_bar_unwind): New function.
808 808 (update_tool_bar): Temporarily set selected frame before building
8092008-08-28 Chong Yidong <cyd@stupidchicken.com> 809 tool-bar items.
810 810
811 * Makefile.in: Revert (undocumented) 2008-08-20 change adding 8112008-08-28 Michael Albinus <michael.albinus@gmx.de>
812 LDFLAGS to GNUstep CC invocation. 812
813 813 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8142008-08-27 Chong Yidong <cyd@stupidchicken.com> 814 snprintf, respectively.
815 815 (xd_append_arg): Convert strings with Fstring_make_unibyte.
816 * indent.c (Fvertical_motion): Revert last change. Handle the 816
817 general case where we are moving forward, and PT spans multiple 8172008-08-28 Chong Yidong <cyd@stupidchicken.com>
818 screen lines. 818
819 819 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
820 * eval.c (find_handler_clause): Temporarily increase 820 LDFLAGS to GNUstep CC invocation.
821 max-lisp-eval-depth while printing the backtrace buffer, to 821
822 guarantee that help-mode code can run. 8222008-08-27 Chong Yidong <cyd@stupidchicken.com>
823 823
8242008-08-27 Eli Zaretskii <eliz@gnu.org> 824 * indent.c (Fvertical_motion): Revert last change. Handle the
825 825 general case where we are moving forward, and PT spans multiple
826 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame 826 screen lines.
827 colors under -rv. 827
828 (IT_set_frame_parameters): Don't swap foreground and background 828 * eval.c (find_handler_clause): Temporarily increase
829 colors if `(reverse . t)' is present in the frame properties. 829 max-lisp-eval-depth while printing the backtrace buffer, to
830 (internal_terminal_init): Call init_frame_faces only for the 830 guarantee that help-mode code can run.
831 initial frame. 831
832 8322008-08-27 Eli Zaretskii <eliz@gnu.org>
8332008-08-27 Andreas Schwab <schwab@suse.de> 833
834 834 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
835 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift. 835 colors under -rv.
836 836 (IT_set_frame_parameters): Don't swap foreground and background
8372008-08-27 Andreas Schwab <schwab@suse.de> 837 colors if `(reverse . t)' is present in the frame properties.
838 838 (internal_terminal_init): Call init_frame_faces only for the
839 * search.c (search_buffer): Set char_base to zero only at the end. 839 initial frame.
840 840
8412008-08-27 Kenichi Handa <handa@m17n.org> 8412008-08-27 Andreas Schwab <schwab@suse.de>
842 842
843 * fileio.c (report_file_error): Fix handling of multibyte error 843 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
844 string. 844
845 8452008-08-27 Andreas Schwab <schwab@suse.de>
8462008-08-27 Andreas Seltenreich <seltenreich@gmx.de> 846
847 847 * search.c (search_buffer): Set char_base to zero only at the end.
848 * xterm.c (x_term_init): Temporarily hide the partially 848
849 initialized terminal while calling vendor-specific-keysyms. 8492008-08-27 Kenichi Handa <handa@m17n.org>
850 850
8512008-08-26 Eli Zaretskii <eliz@gnu.org> 851 * fileio.c (report_file_error): Fix handling of multibyte error
852 852 string.
853 * msdos.c (internal_terminal_init): Most initializations done only 853
854 once, especially initial_screen_colors[] and termscript open. 8542008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
855 855
8562008-08-26 Chong Yidong <cyd@stupidchicken.com> 856 * xterm.c (x_term_init): Temporarily hide the partially
857 857 initialized terminal while calling vendor-specific-keysyms.
858 * eval.c (Fcondition_case): Doc fix. 858
859 8592008-08-26 Eli Zaretskii <eliz@gnu.org>
860 * widgetprv.h (EmacsFramePart): Change font member to the new font 860
861 struct. 861 * msdos.c (internal_terminal_init): Most initializations done only
862 862 once, especially initial_screen_colors[] and termscript open.
863 * widget.c: Include character.h and font.h for XSETFONT. 863
864 (setup_frame_gcs): Compute X font id from font struct, just once. 8642008-08-26 Chong Yidong <cyd@stupidchicken.com>
865 865
8662008-08-26 Eli Zaretskii <eliz@gnu.org> 866 * eval.c (Fcondition_case): Doc fix.
867 867
868 * term.c (get_named_tty): Fix last change. 868 * widgetprv.h (EmacsFramePart): Change font member to the new font
869 869 struct.
8702008-08-26 Chong Yidong <cyd@stupidchicken.com> 870
871 871 * widget.c: Include character.h and font.h for XSETFONT.
872 * indent.c (Fvertical_motion): If moving forward starting from a 872 (setup_frame_gcs): Compute X font id from font struct, just once.
873 multi-line string, move the iterator to the last line of that 873
874 string. 8742008-08-26 Eli Zaretskii <eliz@gnu.org>
875 875
8762008-08-25 Eli Zaretskii <eliz@gnu.org> 876 * term.c (get_named_tty): Fix last change.
877 877
878 * frame.c (do_switch_frame): Mark previously displayed frame as 8782008-08-26 Chong Yidong <cyd@stupidchicken.com>
879 obscured for FRAME_MSDOS_P frames as well. 879
880 880 * indent.c (Fvertical_motion): If moving forward starting from a
8812008-08-24 Eli Zaretskii <eliz@gnu.org> 881 multi-line string, move the iterator to the last line of that
882 882 string.
883 * frame.c (make_terminal_frame): Initialize f->terminal, 883
884 f->terminal->reference_count, and scroll bars on MS-DOS as well. 8842008-08-25 Eli Zaretskii <eliz@gnu.org>
885 Set the top frame to newly created frame. 885
886 (Fmake_terminal_frame): Reuse the_only_display_info. 886 * frame.c (do_switch_frame): Mark previously displayed frame as
887 887 obscured for FRAME_MSDOS_P frames as well.
888 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of 888
889 estimating available memory. 8892008-08-24 Eli Zaretskii <eliz@gnu.org>
890 890
8912008-08-23 David Reitter <david.reitter@gmail.com> 891 * frame.c (make_terminal_frame): Initialize f->terminal,
892 892 f->terminal->reference_count, and scroll bars on MS-DOS as well.
893 * nsterm.m (ns_draw_window_cursor): Don't call 893 Set the top frame to newly created frame.
894 NSDisableScreenUpdates and NSEnableScreenUpdates on 894 (Fmake_terminal_frame): Reuse the_only_display_info.
895 non-NS_IMPL_COCOA systems. 895
896 896 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8972008-08-23 Andreas Schwab <schwab@suse.de> 897 estimating available memory.
898 898
899 * process.c (procfs_system_process_attributes): Fix use of 8992008-08-23 David Reitter <david.reitter@gmail.com>
900 uninitialized variables. 900
901 901 * nsterm.m (ns_draw_window_cursor): Don't call
9022008-08-23 Eli Zaretskii <eliz@gnu.org> 902 NSDisableScreenUpdates and NSEnableScreenUpdates on
903 903 non-NS_IMPL_COCOA systems.
904 * emacs.c (main) [MSDOS]: Call syms_of_xmenu. 904
905 9052008-08-23 Andreas Schwab <schwab@suse.de>
906 * dispnew.c (init_display): Remove MS-DOS specific conditions for 906
907 calling tty-set-up-initial-frame-faces. 907 * process.c (procfs_system_process_attributes): Fix use of
908 908 uninitialized variables.
909 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show): Allow 909
910 MSDOS frames along with X frames. 9102008-08-23 Eli Zaretskii <eliz@gnu.org>
911 911
912 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in 912 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
913 addition to output_termcap. 913
914 914 * dispnew.c (init_display): Remove MS-DOS specific conditions for
915 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode. 915 calling tty-set-up-initial-frame-faces.
916 916
917 * termchar.h (FRAME_TTY): Support output_msdos_raw. 917 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show): Allow
918 (struct tty_display_info) [MSDOS]: Add fields related to mouse 918 MSDOS frames along with X frames.
919 highlight. 919
920 920 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
921 * process.c [!subprocesses]: Define QCname. 921 addition to output_termcap.
922 (syms_of_process): Intern and staticpro it. 922
923 923 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
924 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data): 924
925 Adjust for changes in encoding/decoding routines. Use 925 * termchar.h (FRAME_TTY): Support output_msdos_raw.
926 encode_coding_object and decode_coding_object instead of 926 (struct tty_display_info) [MSDOS]: Add fields related to mouse
927 encode_coding and decode_coding. 927 highlight.
928 928
929 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as 929 * process.c [!subprocesses]: Define QCname.
930 argument. 930 (syms_of_process): Intern and staticpro it.
931 931
932 * dosfns.c: Include frame.h before termhooks.h. 932 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
933 (dos_cleanup): Use CURTTY ()->termscript instead of a global 933 Adjust for changes in encoding/decoding routines. Use
934 variable termscript. 934 encode_coding_object and decode_coding_object instead of
935 935 encode_coding and decode_coding.
936 * s/msdos.h (USER_FULL_NAME): Define. 936
937 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K. 937 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as
938 938 argument.
939 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined. 939
940 (Fuser_full_name): Use USER_FULL_NAME instead of a literal 940 * dosfns.c: Include frame.h before termhooks.h.
941 pw->pw_gecos. 941 (dos_cleanup): Use CURTTY ()->termscript instead of a global
942 942 variable termscript.
943 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with 943
944 SELECTED_FRAME as additional (1st) argument. 944 * s/msdos.h (USER_FULL_NAME): Define.
945 (tty_read_avail_input): Handle output_msdos_raw in 945 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
946 addition to output_termcap. 946
947 947 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
948 * msdos.c: Include frame.h before termhooks.h. 948 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
949 (mouse_on, mouse_off, mouse_moveto, mouse_init) 949 pw->pw_gecos.
950 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs) 950
951 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen) 951 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
952 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto) 952 SELECTED_FRAME as additional (1st) argument.
953 (IT_set_terminal_modes, IT_reset_terminal_modes) 953 (tty_read_avail_input): Handle output_msdos_raw in
954 (IT_set_frame_parameters): Use tty->termscript instead of a global 954 addition to output_termcap.
955 variable termscript. 955
956 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a 956 * msdos.c: Include frame.h before termhooks.h.
957 global variable terminal_coding. Don't refer to 957 (mouse_on, mouse_off, mouse_moveto, mouse_init)
958 Vnonascii_translation_table. 958 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
959 (internal_terminal_init): Set Vwindow_system in current_kboard. 959 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
960 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system. 960 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
961 Announce date and time of session start, if termscript is open. 961 (IT_set_terminal_modes, IT_reset_terminal_modes)
962 Don't zero out the_only_display_info (it is done in 962 (IT_set_frame_parameters): Use tty->termscript instead of a global
963 term.c:init_tty). Open termscript only of not already open. Log 963 variable termscript.
964 "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse 964 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
965 here instead of dos_ttraw. Don't initialize display if this is an 965 global variable terminal_coding. Don't refer to
966 initial tty. Don't set FRAME_FONT. 966 Vnonascii_translation_table.
967 (Vwindow_system_version): Bump to 23. 967 (internal_terminal_init): Set Vwindow_system in current_kboard.
968 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse 968 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
969 is available, set up mouse_position_hook. 969 Announce date and time of session start, if termscript is open.
970 (dos_ttraw, IT_set_terminal_modes): If called with initial 970 Don't zero out the_only_display_info (it is done in
971 terminal, do nothing. 971 term.c:init_tty). Open termscript only of not already open. Log
972 (IT_set_frame_parameters): Handle the Qtty_type frame 972 "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
973 parameter by calling internal_terminal_init. 973 here instead of dos_ttraw. Don't initialize display if this is an
974 (dos_set_window_size, show_mouse_face) 974 initial tty. Don't set FRAME_FONT.
975 (clear_mouse_face, IT_note_mode_line_highlight) 975 (Vwindow_system_version): Bump to 23.
976 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date) 976 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
977 (dos_rawgetc): Use tty_display_info instead of x_display_info. 977 is available, set up mouse_position_hook.
978 (initialize_msdos_display): New function. 978 (dos_ttraw, IT_set_terminal_modes): If called with initial
979 (IT_cursor_to, IT_clear_to_end, IT_clear_screen) 979 terminal, do nothing.
980 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs) 980 (IT_set_frame_parameters): Handle the Qtty_type frame
981 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes) 981 parameter by calling internal_terminal_init.
982 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin): 982 (dos_set_window_size, show_mouse_face)
983 Accept additional argument: a pointer to a frame. All callers 983 (clear_mouse_face, IT_note_mode_line_highlight)
984 changed. 984 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
985 (request_sigio, unrequest_sigio): Don't define, now defined on 985 (dos_rawgetc): Use tty_display_info instead of x_display_info.
986 sysdep.c. 986 (initialize_msdos_display): New function.
987 (IT_write_glyphs): Rewrite to use encode_terminal_code. 987 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
988 988 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
989 * term.c [MSDOS]: Include msdos.h. 989 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
990 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp 990 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
991 conditional to DOS_NT. Allow only one call to this function in a 991 Accept additional argument: a pointer to a frame. All callers
992 session. Don't allocate a new struct tty_display_info; instead, 992 changed.
993 reuse the_only_display_info. Call get_tty_size to get screen 993 (request_sigio, unrequest_sigio): Don't define, now defined on
994 dimensions. Call init_baud_rate to set bad_rate. 994 sysdep.c.
995 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body. 995 (IT_write_glyphs): Rewrite to use encode_terminal_code.
996 (Fsuspend_tty) [MSDOS]: Don't close input and output. 996
997 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use 997 * term.c [MSDOS]: Include msdos.h.
998 stdin/stdout. 998 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
999 (get_tty_terminal, get_named_tty, Ftty_type) 999 conditional to DOS_NT. Allow only one call to this function in a
1000 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to 1000 session. Don't allocate a new struct tty_display_info; instead,
1001 output_termcap. 1001 reuse the_only_display_info. Call get_tty_size to get screen
1002 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty): Call 1002 dimensions. Call init_baud_rate to set bad_rate.
1003 add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor 1003 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
1004 only when subprocesses are supported 1004 (Fsuspend_tty) [MSDOS]: Don't close input and output.
1005 1005 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use
1006 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of 1006 stdin/stdout.
1007 f->output_data.x. 1007 (get_tty_terminal, get_named_tty, Ftty_type)
1008 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new 1008 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
1009 terminal devices. 1009 output_termcap.
1010 1010 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty): Call
1011 * msdos.h Remove definition of struct x_display_info and struct 1011 add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
1012 x_output. 1012 only when subprocesses are supported
1013 (FRAME_FONT): Use output_data.tty. 1013
1014 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define. 1014 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
1015 (struct x_display_info): Renamed from display_info. All users in 1015 f->output_data.x.
1016 msdos.c changed. 1016 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
1017 (struct x_output): Remove background_pixel and foreground_pixel. 1017 terminal devices.
1018 (the_only_display_info): Renamed from the_only_x_display. 1018
1019 (dos_ttraw): Update prototype. 1019 * msdos.h Remove definition of struct x_display_info and struct
1020 1020 x_output.
1021 * Makefile.in (MSDOS_OBJ): Add xmenu.o. 1021 (FRAME_FONT): Use output_data.tty.
1022 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc. 1022 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
1023 1023 (struct x_display_info): Renamed from display_info. All users in
10242008-08-23 Jason Rumney <jasonr@gnu.org> 1024 msdos.c changed.
1025 1025 (struct x_output): Remove background_pixel and foreground_pixel.
1026 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword. 1026 (the_only_display_info): Renamed from the_only_x_display.
1027 (fn_TIFFSetDirectory): New library function used. 1027 (dos_ttraw): Update prototype.
1028 (init_tiff_functions) [HAVE_NTGUI]: Initialize it. 1028
1029 (tiff_load): Use :index to select among multiple images. Set count 1029 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
1030 property when multiple images exist. 1030 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
1031 (gif_format): Use :index, not :image. 1031
1032 10322008-08-23 Jason Rumney <jasonr@gnu.org>
10332008-08-23 Chong Yidong <cyd@stupidchicken.com> 1033
1034 1034 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
1035 * xdisp.c (try_scrolling): Check INT_MAX instead of 1035 (fn_TIFFSetDirectory): New library function used.
1036 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h 1036 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
1037 to obtain INT_MAX. 1037 (tiff_load): Use :index to select among multiple images. Set count
1038 1038 property when multiple images exist.
10392008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change) 1039 (gif_format): Use :index, not :image.
1040 1040
1041 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+. 10412008-08-23 Chong Yidong <cyd@stupidchicken.com>
1042 1042
10432008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change) 1043 * xdisp.c (try_scrolling): Check INT_MAX instead of
1044 1044 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
1045 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate 1045 to obtain INT_MAX.
1046 GNUstep library location. 1046
1047 10472008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10482008-08-21 Chong Yidong <cyd@stupidchicken.com> 1048
1049 1049 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
1050 * xfaces.c (x_update_menu_appearance): Check validity of menu font 1050
1051 before using it. 10512008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
1052 1052
1053 * puresize.h (BASE_PURESIZE): Increase to 1250000. 1053 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
1054 1054 GNUstep library location.
10552008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com> 1055
1056 10562008-08-21 Chong Yidong <cyd@stupidchicken.com>
1057 * nsfns.m (ns-read-file-name): Add casts to avoid warning. 1057
1058 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly. 1058 * xfaces.c (x_update_menu_appearance): Check validity of menu font
1059 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil. 1059 before using it.
1060 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration. 1060
1061 (EmacsApp-cursor_blink_handler): Remove declaration. 1061 * puresize.h (BASE_PURESIZE): Increase to 1250000.
1062 * nsterm.m (ns_draw_glyph_string): Update first conditional body to 1062
1063 match 01 Feb 2008 changes in xterm.c. 10632008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1064 (ns_read_socket): Add cast to avoid warning. 1064
1065 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on 1065 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
1066 GNUstep. 1066 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
1067 1067 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10682008-08-20 Chong Yidong <cyd@stupidchicken.com> 1068 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
1069 1069 (EmacsApp-cursor_blink_handler): Remove declaration.
1070 * xselect.c (x_get_foreign_selection): Return nil if desired 1070 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
1071 selection could not be obtained, instead of signalling an error. 1071 match 01 Feb 2008 changes in xterm.c.
1072 1072 (ns_read_socket): Add cast to avoid warning.
10732008-08-20 David Reitter <david.reitter@gmail.com> 1073 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
1074 1074 GNUstep.
1075 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c. 1075
1076 * nsterm.m: Remove ns-specific code for cursor blinking. 10762008-08-20 Chong Yidong <cyd@stupidchicken.com>
1077 (ns_draw_window_cursor): Clear cursor properly rather than 1077
1078 redrawing the area. Respect width of bar cursors. 1078 * xselect.c (x_get_foreign_selection): Return nil if desired
1079 These changes enable the use of generic blink-cursor-mode and 1079 selection could not be obtained, instead of signalling an error.
1080 generic cursor types in NS and support smooth cursor movements (do 1080
1081 not blink off after command). 10812008-08-20 David Reitter <david.reitter@gmail.com>
1082 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on 1082
1083 Nextstep, too. 1083 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
1084 1084 * nsterm.m: Remove ns-specific code for cursor blinking.
10852008-08-19 Kenichi Handa <handa@m17n.org> 1085 (ns_draw_window_cursor): Clear cursor properly rather than
1086 1086 redrawing the area. Respect width of bar cursors.
1087 * font.c (Vfont_log_deferred): New variable. 1087 These changes enable the use of generic blink-cursor-mode and
1088 (font_add_log): Check Vfont_log_deferred. 1088 generic cursor types in NS and support smooth cursor movements (do
1089 (font_deferred_log): New function. 1089 not blink off after command).
1090 1090 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
1091 * font.h (font_deferred_log): Extern it. 1091 Nextstep, too.
1092 1092
1093 * fontset.c (reorder_font_vector): Use encoding charset of fonts 10932008-08-19 Kenichi Handa <handa@m17n.org>
1094 for sorting. 1094
1095 (face_for_char): Use deferred log. 1095 * font.c (Vfont_log_deferred): New variable.
1096 1096 (font_add_log): Check Vfont_log_deferred.
10972008-08-18 Kenichi Handa <handa@m17n.org> 1097 (font_deferred_log): New function.
1098 1098
1099 * fontset.c (face_for_char): Add font log. 1099 * font.h (font_deferred_log): Extern it.
1100 1100
1101 * font.c (font_add_log): Add the font properties :script, :lang, 1101 * fontset.c (reorder_font_vector): Use encoding charset of fonts
1102 and :otf in the log. 1102 for sorting.
1103 1103 (face_for_char): Use deferred log.
11042008-08-17 Chong Yidong <cyd@stupidchicken.com> 1104
1105 11052008-08-18 Kenichi Handa <handa@m17n.org>
1106 * xdisp.c: Remove dead code. 1106
1107 (handle_invisible_prop, next_overlay_string): Defer call to 1107 * fontset.c (face_for_char): Add font log.
1108 setup_for_ellipsis. 1108
1109 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis. 1109 * font.c (font_add_log): Add the font properties :script, :lang,
1110 1110 and :otf in the log.
11112008-08-15 Chong Yidong <cyd@stupidchicken.com> 1111
1112 11122008-08-17 Chong Yidong <cyd@stupidchicken.com>
1113 * xfaces.c (lookup_derived_face): Properly handle possible zero 1113
1114 return value of get_lface_attributes. 1114 * xdisp.c: Remove dead code.
1115 (merge_faces): Don't tell lookup_derived_face to signal an error 1115 (handle_invisible_prop, next_overlay_string): Defer call to
1116 if face is not found. 1116 setup_for_ellipsis.
1117 1117 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
1118 * dired.c (Fdirectory_files): Doc fix. 1118
1119 11192008-08-15 Chong Yidong <cyd@stupidchicken.com>
1120 * process.c (make_process): Initialize kill_without_query struct 1120
1121 member. 1121 * xfaces.c (lookup_derived_face): Properly handle possible zero
1122 1122 return value of get_lface_attributes.
11232008-08-15 Eli Zaretskii <eliz@gnu.org> 1123 (merge_faces): Don't tell lookup_derived_face to signal an error
1124 1124 if face is not found.
1125 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]: 1125
1126 Alternative calculation of totphys for Visual Studio 6. 1126 * dired.c (Fdirectory_files): Doc fix.
1127 1127
1128 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR. 1128 * process.c (make_process): Initialize kill_without_query struct
1129 1129 member.
1130 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX): 1130
1131 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX. 11312008-08-15 Eli Zaretskii <eliz@gnu.org>
1132 All users changed. 1132
1133 (stat): Only root directory passed to GetDriveType. Allow RAM 1133 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
1134 disk as well as local fixed disk when w32-get-true-file-attributes 1134 Alternative calculation of totphys for Visual Studio 6.
1135 is set to `local'. 1135
1136 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs. 1136 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
1137 (equal_sid, get_length_sid, copy_sid): New wrapper functions. 1137
1138 (w32_cached_id, w32_add_to_cache): New functions. 1138 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
1139 (get_name_and_id): Look account names in the cache before calling 1139 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
1140 lookup_account_sid. 1140 All users changed.
1141 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid): 1141 (stat): Only root directory passed to GetDriveType. Allow RAM
1142 New initialization flags. 1142 disk as well as local fixed disk when w32-get-true-file-attributes
1143 (globals_of_w32): Initialize them to zero. 1143 is set to `local'.
1144 (w32_system_process_attributes): Use w32_cached_id and 1144 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
1145 w32_add_to_cache. 1145 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
1146 1146 (w32_cached_id, w32_add_to_cache): New functions.
11472008-08-14 Lawrence Mitchell <wence@gmx.li> 1147 (get_name_and_id): Look account names in the cache before calling
1148 1148 lookup_account_sid.
1149 * lread.c (Fread_char, Fread_char_exclusive): If no character 1149 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
1150 event is read before timeout is reached, return nil, rather than 1150 New initialization flags.
1151 converting to a number. 1151 (globals_of_w32): Initialize them to zero.
1152 1152 (w32_system_process_attributes): Use w32_cached_id and
11532008-08-14 Chong Yidong <cyd@stupidchicken.com> 1153 w32_add_to_cache.
1154 1154
1155 * fns.c (use_dialog_box): Doc fix. 11552008-08-14 Lawrence Mitchell <wence@gmx.li>
1156 1156
1157 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful 1157 * lread.c (Fread_char, Fread_char_exclusive): If no character
1158 on OS X. 1158 event is read before timeout is reached, return nil, rather than
1159 1159 converting to a number.
11602008-08-13 Chong Yidong <cyd@stupidchicken.com> 1160
1161 11612008-08-14 Chong Yidong <cyd@stupidchicken.com>
1162 * frame.c (Qns_parse_geometry): New var. 1162
1163 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry. 1163 * fns.c (use_dialog_box): Doc fix.
1164 1164
11652008-08-11 Chong Yidong <cyd@stupidchicken.com> 1165 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
1166 1166 on OS X.
1167 * xdisp.c (x_produce_glyphs): Handle the case when font has no 1167
1168 space character in calculating tabs. 11682008-08-13 Chong Yidong <cyd@stupidchicken.com>
1169 1169
11702008-08-11 Dan Nicolaescu <dann@ics.uci.edu> 1170 * frame.c (Qns_parse_geometry): New var.
1171 1171 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
1172 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case. 1172
1173 11732008-08-11 Chong Yidong <cyd@stupidchicken.com>
11742008-08-10 Glenn Morris <rgm@gnu.org> 1174
1175 1175 * xdisp.c (x_produce_glyphs): Handle the case when font has no
1176 * process.c (procfs_system_process_attributes): Use EMACS_INTs to 1176 space character in calculating tabs.
1177 silence gcc "limited range of data type" warnings in some 1177
1178 make_fixnum_or_float calls. 11782008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
1179 1179
11802008-08-09 Eli Zaretskii <eliz@gnu.org> 1180 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
1181 1181
1182 * w32.c (w32_system_process_attributes): If the process does not 11822008-08-10 Glenn Morris <rgm@gnu.org>
1183 exist, return nil. 1183
1184 1184 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
1185 * w32.c: Include thelp32.h, psapi.h and coding.h. 1185 silence gcc "limited range of data type" warnings in some
1186 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct 1186 make_fixnum_or_float calls.
1187 declarations. 1187
1188 (CreateToolhelp32Snapshot_Proc, Process32First_Proc) 11882008-08-09 Eli Zaretskii <eliz@gnu.org>
1189 (Process32Next_Proc): New typedefs. 1189
1190 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first) 1190 * w32.c (w32_system_process_attributes): If the process does not
1191 (g_b_init_process32_next, g_b_init_open_thread_token) 1191 exist, return nil.
1192 (g_b_init_impersonate_self, g_b_init_revert_to_self) 1192
1193 (g_b_init_get_process_memory_info, g_b_init_global_memory_status) 1193 * w32.c: Include thelp32.h, psapi.h and coding.h.
1194 (g_b_init_get_process_working_set_size) 1194 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
1195 (g_b_init_global_memory_status_ex): New static variables. 1195 declarations.
1196 (globals_of_w32): Initialize them. 1196 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
1197 (create_toolhelp32_snapshot, process32_first, process32_next) 1197 (Process32Next_Proc): New typedefs.
1198 (open_thread_token, impersonate_self, revert_to_self) 1198 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
1199 (get_process_memory_info, get_process_working_set_size) 1199 (g_b_init_process32_next, g_b_init_open_thread_token)
1200 (global_memory_status, global_memory_status_ex): New wrapper 1200 (g_b_init_impersonate_self, g_b_init_revert_to_self)
1201 functions. 1201 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
1202 (w32_list_system_processes, w32_system_process_attributes) 1202 (g_b_init_get_process_working_set_size)
1203 (enable_privilege, restore_privilege, ltime, process_times): 1203 (g_b_init_global_memory_status_ex): New static variables.
1204 New functions. 1204 (globals_of_w32): Initialize them.
1205 (convert_time_raw): New function. 1205 (create_toolhelp32_snapshot, process32_first, process32_next)
1206 (convert_time): Remove conversion of FILETIME into time in 100 1206 (open_thread_token, impersonate_self, revert_to_self)
1207 nsec units, call convert_time_raw instead. 1207 (get_process_memory_info, get_process_working_set_size)
1208 1208 (global_memory_status, global_memory_status_ex): New wrapper
1209 * process.h (w32_list_system_processes, w32_system_process_attributes): 1209 functions.
1210 Add prototypes. 1210 (w32_list_system_processes, w32_system_process_attributes)
1211 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname) 1211 (enable_privilege, restore_privilege, ltime, process_times):
1212 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime) 1212 New functions.
1213 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup) 1213 (convert_time_raw): New function.
1214 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations. 1214 (convert_time): Remove conversion of FILETIME into time in 100
1215 1215 nsec units, call convert_time_raw instead.
1216 * process.c (Fsystem_process_attributes): Doc fix. 1216
1217 1217 * process.h (w32_list_system_processes, w32_system_process_attributes):
12182008-08-08 Chong Yidong <cyd@stupidchicken.com> 1218 Add prototypes.
1219 1219 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
1220 * xdisp.c (move_it_to): When stopping at a charpos, check if that's 1220 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
1221 a continued multi-char glyph; if so, advance to the actual glyph. 1221 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
1222 1222 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12232008-08-07 Dan Nicolaescu <dann@ics.uci.edu> 1223
1224 1224 * process.c (Fsystem_process_attributes): Doc fix.
1225 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in. 1225
1226 12262008-08-08 Chong Yidong <cyd@stupidchicken.com>
1227 * Makefile.in (ALL_OBJC_CFLAGS): New variable. 1227
1228 (.m.o): Use it. 1228 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
1229 * config.in: Regenerate. 1229 a continued multi-char glyph; if so, advance to the actual glyph.
1230 1230
12312008-08-07 Chong Yidong <cyd@stupidchicken.com> 12312008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1232 1232
1233 * xdisp.c (redisplay_window): Revert last change. 1233 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
1234 (try_window): Check bottom scroll margin too. 1234
1235 1235 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12362008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com> 1236 (.m.o): Use it.
1237 1237 * config.in: Regenerate.
1238 * config.in: Regenerate. 1238
1239 12392008-08-07 Chong Yidong <cyd@stupidchicken.com>
1240 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs 1240
1241 -list-load-path-shadows'. 1241 * xdisp.c (redisplay_window): Revert last change.
1242 (nsgui.h): Reduce number of things depending on it. 1242 (try_window): Check bottom scroll margin too.
1243 1243
12442008-08-06 Chong Yidong <cyd@stupidchicken.com> 12442008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1245 1245
1246 * xdisp.c (try_scrolling): Use iterator to find the scroll margin, 1246 * config.in: Regenerate.
1247 instead of window-end which does the wrong thing at eob. 1247
1248 (try_cursor_movement): Minor optimization. 1248 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
1249 (redisplay_window): If scroll margin is defined, don't assume 1249 -list-load-path-shadows'.
1250 window doesn't need scrolling. 1250 (nsgui.h): Reduce number of things depending on it.
1251 1251
12522008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com> 12522008-08-06 Chong Yidong <cyd@stupidchicken.com>
1253 1253
1254 * config.in: Regenerate. 1254 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
1255 1255 instead of window-end which does the wrong thing at eob.
1256 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list. 1256 (try_cursor_movement): Minor optimization.
1257 (mostlyclean): Don't delete *.d under NS. 1257 (redisplay_window): If scroll margin is defined, don't assume
1258 1258 window doesn't need scrolling.
1259 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER. 1259
1260 12602008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12612008-08-06 Kenichi Handa <handa@m17n.org> 1261
1262 1262 * config.in: Regenerate.
1263 * xfont.c (xfont_list_family): Return a list of symbols, not strings. 1263
1264 1264 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12652008-08-06 Andreas Schwab <schwab@suse.de> 1265 (mostlyclean): Don't delete *.d under NS.
1266 1266
1267 * config.in: Regenerate. 1267 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
1268 1268
12692008-08-05 Chong Yidong <cyd@stupidchicken.com> 12692008-08-06 Kenichi Handa <handa@m17n.org>
1270 1270
1271 * xdisp.c (redisplay_window): Don't enforce scroll-margin when 1271 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
1272 forcing a window start. 1272
1273 12732008-08-06 Andreas Schwab <schwab@suse.de>
1274 * fileio.c (Vauto_save_list_file_name): Move here from file.el. 1274
1275 (auto_save_1): Update modtime when auto-save-list-file-name is on. 1275 * config.in: Regenerate.
1276 1276
12772008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com> 12772008-08-05 Chong Yidong <cyd@stupidchicken.com>
1278 1278
1279 * emacs.c (main): Under NS, set working dir to HOME when get a "psn" 1279 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
1280 argument. 1280 forcing a window start.
1281 1281
12822008-08-05 Juanma Barranquero <lekktu@gmail.com> 1282 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
1283 1283 (auto_save_1): Update modtime when auto-save-list-file-name is on.
1284 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: 1284
1285 <scroll-down-aggressively, before-change-functions>: 12852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1286 <after-change-functions>: Reflow docstrings. 1286
1287 1287 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12882008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com> 1288 argument.
1289 Ken Raeburn <raeburn@gnu.org> 1289
1290 12902008-08-05 Juanma Barranquero <lekktu@gmail.com>
1291 Dock menu customization, based on a patch by Ken Raeburn, plus some 1291
1292 other fixes. 1292 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
1293 * nsmenu.m (dockMenu): New variable. 1293 <scroll-down-aggressively, before-change-functions>:
1294 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17. 1294 <after-change-functions>: Reflow docstrings.
1295 1295
1296 * nsterm.h (dockMenu): Declare. 12962008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1297 1297 Ken Raeburn <raeburn@gnu.org>
1298 * nsterm.m (KEY_NS_NEW_FRAME): New definition. 1298
1299 (ns_term_init): Initialize dockMenu. 1299 Dock menu customization, based on a patch by Ken Raeburn, plus some
1300 (EmacsApp -newFrame:, -applicationDockMenu:): New methods. 1300 other fixes.
1301 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame 1301 * nsmenu.m (dockMenu): New variable.
1302 left. 1302 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
1303 1303
1304 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA. 1304 * nsterm.h (dockMenu): Declare.
1305 1305
13062008-08-04 Chong Yidong <cyd@stupidchicken.com> 1306 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
1307 1307 (ns_term_init): Initialize dockMenu.
1308 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it. 1308 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
1309 1309 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
1310 * config.in: Regenerate. 1310 left.
1311 1311
13122008-08-04 Seiji Zenitani <zenitani@mac.com> 1312 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
1313 1313
1314 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil. 13142008-08-04 Chong Yidong <cyd@stupidchicken.com>
1315 1315
13162008-08-04 Chong Yidong <cyd@stupidchicken.com> 1316 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
1317 1317
1318 * nsterm.h (find_and_call_menu_selection): Fix prototype. 1318 * config.in: Regenerate.
1319 1319
13202008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com> 13202008-08-04 Seiji Zenitani <zenitani@mac.com>
1321 1321
1322 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS. 1322 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
1323 1323
1324 * keyboard.h: Comment an #endif. 13242008-08-04 Chong Yidong <cyd@stupidchicken.com>
1325 1325
1326 * lisp.h (have_menus_p): Adjust comment. 1326 * nsterm.h (find_and_call_menu_selection): Fix prototype.
1327 1327
1328 * menu.c (find_and_return_menu_selection): Fix comparison with 13282008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1329 client_data. 1329
1330 1330 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
1331 * nsmenu.m (popup_activated_flag): New variable. 1331
1332 (popup_activated): New function. 1332 * keyboard.h: Comment an #endif.
1333 (menu-or-popup-active-p): New exported lisp definition. 1333
1334 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items() 1334 * lisp.h (have_menus_p): Adjust comment.
1335 when popup done. 1335
1336 (ns_popup_dialog): Set popup_activated_flag. 1336 * menu.c (find_and_return_menu_selection): Fix comparison with
1337 1337 client_data.
1338 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger 1338
1339 version for GNUstep (handled by conditional typedef in nsterm.m). 1339 * nsmenu.m (popup_activated_flag): New variable.
1340 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now 1340 (popup_activated): New function.
1341 in rgb.txt). 1341 (menu-or-popup-active-p): New exported lisp definition.
1342 1342 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
1343 * process.c (init_process): Use DARWIN_OS, not DARWIN. 1343 when popup done.
1344 1344 (ns_popup_dialog): Set popup_activated_flag.
1345 * sysselect.h: Conditionalize init_process undef on DARWIN_OS. 1345
1346 1346 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
1347 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS. 1347 version for GNUstep (handled by conditional typedef in nsterm.m).
1348 1348 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
1349 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS, 1349 in rgb.txt).
1350 shortcircuit if popup_activated like GTK and X toolkit. 1350
1351 1351 * process.c (init_process): Use DARWIN_OS, not DARWIN.
1352 * m/inter386.h: Change DARWIN to DARWIN_OS. 1352
1353 1353 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
1354 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def. 1354
1355 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs 1355 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
1356 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand 1356
1357 comment on NO_SOCK_SIGIO. 1357 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
1358 1358 shortcircuit if popup_activated like GTK and X toolkit.
13592008-08-03 Chong Yidong <cyd@stupidchicken.com> 1359
1360 1360 * m/inter386.h: Change DARWIN to DARWIN_OS.
1361 * nsterm.m (windowDidResize): Remove stopModal call. 1361
1362 1362 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13632008-08-03 Andreas Schwab <schwab@suse.de> 1363 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
1364 1364 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
1365 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define. 1365 comment on NO_SOCK_SIGIO.
1366 (check_memory_limits): Don't handle HAVE_GETRLIMIT here. 1366
1367 13672008-08-03 Chong Yidong <cyd@stupidchicken.com>
13682008-08-02 Chong Yidong <cyd@stupidchicken.com> 1368
1369 1369 * nsterm.m (windowDidResize): Remove stopModal call.
1370 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin. 1370
1371 Don't use uninitialized pointer variable when using getrlimit. 13712008-08-03 Andreas Schwab <schwab@suse.de>
1372 1372
13732008-08-02 Jason Rumney <jasonr@gnu.org> 1373 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
1374 1374 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
1375 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here. 1375
1376 13762008-08-02 Chong Yidong <cyd@stupidchicken.com>
13772008-08-02 Eli Zaretskii <eliz@gnu.org> 1377
1378 1378 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
1379 * alloc.c (NSTATICS): Bump to 0x640. 1379 Don't use uninitialized pointer variable when using getrlimit.
1380 1380
1381 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines. 13812008-08-02 Jason Rumney <jasonr@gnu.org>
1382 1382
1383 * lisp.h: Add prototype for directory_files_internal. 1383 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
1384 1384
1385 * process.c (Fsystem_processes_list, Fsystem_process_attributes): 13852008-08-02 Eli Zaretskii <eliz@gnu.org>
1386 New functions. 1386
1387 (syms_of_process): Defsubr them. Add initializations for various 1387 * alloc.c (NSTATICS): Bump to 0x640.
1388 Q* symbols used in procfs_system_process_attributes. 1388
1389 (procfs_list_system_processes, procfs_system_process_attributes) 1389 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
1390 [HAVE_PROCFS]: New functions. 1390
1391 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname) 1391 * lisp.h: Add prototype for directory_files_internal.
1392 (procfs_get_total_memory): New functions. 1392
1393 1393 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13942008-08-01 Juanma Barranquero <lekktu@gmail.com> 1394 New functions.
1395 1395 (syms_of_process): Defsubr them. Add initializations for various
1396 * xfaces.c (Fx_load_color_file): Fix previous change; 1396 Q* symbols used in procfs_system_process_attributes.
1397 it is #ifdef WINDOWSNT, not WINDOWS_NT. 1397 (procfs_list_system_processes, procfs_system_process_attributes)
1398 1398 [HAVE_PROCFS]: New functions.
13992008-08-01 Michael Albinus <michael.albinus@gmx.de> 1399 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
1400 1400 (procfs_get_total_memory): New functions.
1401 * dbusbind.c (xd_read_message): Handle D-Bus error messages. 1401
1402 14022008-08-01 Juanma Barranquero <lekktu@gmail.com>
14032008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com> 1403
1404 1404 * xfaces.c (Fx_load_color_file): Fix previous change;
1405 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard. 1405 it is #ifdef WINDOWSNT, not WINDOWS_NT.
1406 1406
14072008-08-01 Chong Yidong <cyd@stupidchicken.com> 14072008-08-01 Michael Albinus <michael.albinus@gmx.de>
1408 1408
1409 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha. 1409 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
1410 1410
1411 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not 14112008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1412 define NSApplicationDelegateReplySuccess. 1412
1413 (EmacsView -converstationIdentifier): Use long instead of 1413 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
1414 NSInteger for GNUstep, since it doesn't have NSInteger. 1414
1415 14152008-08-01 Chong Yidong <cyd@stupidchicken.com>
1416 * xmenu.c: Revert last change. 1416
1417 1417 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
1418 * keyboard.h: Fix last change. 1418
1419 1419 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
14202008-08-01 Juanma Barranquero <lekktu@gmail.com> 1420 define NSApplicationDelegateReplySuccess.
1421 1421 (EmacsView -converstationIdentifier): Use long instead of
1422 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting 1422 NSInteger for GNUstep, since it doesn't have NSInteger.
1423 on Windows. 1423
1424 1424 * xmenu.c: Revert last change.
14252008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com> 1425
1426 1426 * keyboard.h: Fix last change.
1427 Warning clearing and clean-up in NS port. 1427
1428 * keyboard.h (xmalloc_widget_value, digest_single_submenu): 14282008-08-01 Juanma Barranquero <lekktu@gmail.com>
1429 Add prototypes. 1429
1430 * nsgui.h (FACE_DEFAULT): Remove, unused. 1430 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
1431 (XGCValues): Change colors to unsigned long. 1431 on Windows.
1432 * nsterm.h (EmacsApp): Add declaration of all methods implemented in 1432
1433 nsterm.m. 14332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1434 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class. 1434
1435 (ns_list_fonts): Remove, unused. 1435 Warning clearing and clean-up in NS port.
1436 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes. 1436 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
1437 * nsfns.m (interpret_services_menu): Use NSMenuItem class. 1437 Add prototypes.
1438 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc. 1438 * nsgui.h (FACE_DEFAULT): Remove, unused.
1439 (nsfont_draw): Compare face colors to 0, not nil. 1439 (XGCValues): Change colors to unsigned long.
1440 * nsmenu.m (struct widget_value): Drop unneeded declaration. 1440 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
1441 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:) 1441 nsterm.m.
1442 (-addSubmenuWithTitle:): Use NSMenuItem class. 1442 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
1443 (ns_popup_menu): Use NO, not NULL, for enabled setting. 1443 (ns_list_fonts): Remove, unused.
1444 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0. 1444 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
1445 (ns_clip_to_row): Make gc arg a BOOL. 1445 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
1446 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in 1446 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
1447 ns_clip_to_row() call. 1447 (nsfont_draw): Compare face colors to 0, not nil.
1448 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer 1448 * nsmenu.m (struct widget_value): Drop unneeded declaration.
1449 used). Cast FRAME_FONT assignments. 1449 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
1450 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:. 1450 (-addSubmenuWithTitle:): Use NSMenuItem class.
1451 (ns_string_to_lispmod): Change arg to const char. 1451 (ns_popup_menu): Use NO, not NULL, for enabled setting.
1452 (ns_term_init): Use NSMenuItem class. 1452 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
1453 (EmacsApp -openFile:): Move to different section of file. 1453 (ns_clip_to_row): Make gc arg a BOOL.
1454 (EmacsApp -application:openFiles:): Don't return a value, call 1454 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
1455 -replyToOpenOrPrint:. 1455 ns_clip_to_row() call.
1456 (EmacsView -keyDown:): Fix up cast. 1456 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
1457 (EmacsView -converstationIdentifier): Use NSInteger instead of long. 1457 used). Cast FRAME_FONT assignments.
1458 (EmacsView -menuDown:): Cast tag in call to 1458 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
1459 find_and_call_menu_selection(). 1459 (ns_string_to_lispmod): Change arg to const char.
1460 (ns_list_fonts): Remove, unused. 1460 (ns_term_init): Use NSMenuItem class.
1461 (ns_font_to_xlfd): Make static. Cast result of UTF8String. 1461 (EmacsApp -openFile:): Move to different section of file.
1462 (ns_fontname_to_xlfd): Make static. 1462 (EmacsApp -application:openFiles:): Don't return a value, call
1463 * w32menu.c (xmalloc_widget_value, digest_single_submenu): 1463 -replyToOpenOrPrint:.
1464 Remove prototypes (now in keyboard.h). 1464 (EmacsView -keyDown:): Fix up cast.
1465 (next_menubar_widget_id): Remove, unused. 1465 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
1466 * xmenu.c (xmalloc_widget_value, digest_single_submenu): 1466 (EmacsView -menuDown:): Cast tag in call to
1467 Remove prototypes (now in keyboard.h). 1467 find_and_call_menu_selection().
1468 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused. 1468 (ns_list_fonts): Remove, unused.
1469 1469 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
14702008-08-01 Dan Nicolaescu <dann@ics.uci.edu> 1470 (ns_fontname_to_xlfd): Make static.
1471 1471 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
1472 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o) 1472 Remove prototypes (now in keyboard.h).
1473 (floatfns.o): Depend on syssignal.h. 1473 (next_menubar_widget_id): Remove, unused.
1474 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC). 1474 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
1475 1475 Remove prototypes (now in keyboard.h).
1476 * systty.h: Fix previous change that removed BSD_TERMIOS. 1476 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
1477 Add comments to #ifdefs. 1477
1478 14782008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
14792008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com> 1479
1480 1480 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
1481 * w32fns.c (w32-load-color-file): Remove. 1481 (floatfns.o): Depend on syssignal.h.
1482 (x-open-connection): Use renamed Fx_load_color_file. 1482 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
1483 * xfaces.c (x-load-color-file): Add. 1483
1484 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of 1484 * systty.h: Fix previous change that removed BSD_TERMIOS.
1485 Emacs.clr. 1485 Add comments to #ifdefs.
1486 (hide_hourglass): BLOCK_INPUT before UNBLOCK. 1486
1487 14872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14882008-07-31 Michael Albinus <michael.albinus@gmx.de> 1488
1489 1489 * w32fns.c (w32-load-color-file): Remove.
1490 * dbusbind.c (Fdbus_call_method_asynchronously) 1490 (x-open-connection): Use renamed Fx_load_color_file.
1491 (Fdbus_method_error_internal): New defuns. 1491 * xfaces.c (x-load-color-file): Add.
1492 (xd_read_message): Handle also reply messages. 1492 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
1493 (Vdbus_registered_functions_table): Extend docstring. 1493 Emacs.clr.
1494 1494 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14952008-07-31 Juanma Barranquero <lekktu@gmail.com> 1495
1496 14962008-07-31 Michael Albinus <michael.albinus@gmx.de>
1497 * keyboard.c (gobble_input): Fix previous change. 1497
1498 1498 * dbusbind.c (Fdbus_call_method_asynchronously)
14992008-07-31 Dan Nicolaescu <dann@ics.uci.edu> 1499 (Fdbus_method_error_internal): New defuns.
1500 1500 (xd_read_message): Handle also reply messages.
1501 * bitmaps/README: 1501 (Vdbus_registered_functions_table): Extend docstring.
1502 * xfns.c: 1502
1503 * termcap.c: 15032008-07-31 Juanma Barranquero <lekktu@gmail.com>
1504 * term.c: 1504
1505 * syswait.h: 1505 * keyboard.c (gobble_input): Fix previous change.
1506 * systty.h: 1506
1507 * systime.h: 15072008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1508 * syssignal.h: 1508
1509 * sysdep.c: 1509 * bitmaps/README:
1510 * process.h: 1510 * xfns.c:
1511 * process.c: 1511 * termcap.c:
1512 * print.c: 1512 * term.c:
1513 * ndir.h: 1513 * syswait.h:
1514 * lread.c: 1514 * systty.h:
1515 * keyboard.c: 1515 * systime.h:
1516 * getpagesize.h: 1516 * syssignal.h:
1517 * floatfns.c: 1517 * sysdep.c:
1518 * fileio.c: 1518 * process.h:
1519 * emacs.c: 1519 * process.c:
1520 * doc.c: 1520 * print.c:
1521 * dispnew.c: 1521 * ndir.h:
1522 * dired.c: 1522 * lread.c:
1523 * data.c: 1523 * keyboard.c:
1524 * callproc.c: 1524 * getpagesize.h:
1525 * buffer.c: 1525 * floatfns.c:
1526 * README: 1526 * fileio.c:
1527 * Makefile.in: 1527 * emacs.c:
1528 * s/template.h: 1528 * doc.c:
1529 * s/msdos.h: 1529 * dispnew.c:
1530 * m/vax.h: Remove VMS support. 1530 * dired.c:
1531 * s/vms.h: 1531 * data.c:
1532 * vlimit.h: 1532 * callproc.c:
1533 * uaf.h: 1533 * buffer.c:
1534 * temacs.opt: 1534 * README:
1535 * param.h: 1535 * Makefile.in:
1536 * ioctl.h: Remove file. 1536 * s/template.h:
1537 1537 * s/msdos.h:
15382008-07-31 Dan Nicolaescu <dann@ics.uci.edu> 1538 * m/vax.h: Remove VMS support.
1539 1539 * s/vms.h:
1540 * s/ms-w32.h (MULTI_KBOARD): Remove. 1540 * vlimit.h:
1541 * xterm.c: 1541 * uaf.h:
1542 * xselect.c: 1542 * temacs.opt:
1543 * xfns.c: 1543 * param.h:
1544 * window.c: 1544 * ioctl.h: Remove file.
1545 * w32term.c: 1545
1546 * w32fns.c: 15462008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1547 * terminal.c: 1547
1548 * termhooks.h: 1548 * s/ms-w32.h (MULTI_KBOARD): Remove.
1549 * term.c: 1549 * xterm.c:
1550 * sysdep.c: 1550 * xselect.c:
1551 * keyboard.h: 1551 * xfns.c:
1552 * keyboard.c: 1552 * window.c:
1553 * frame.h: 1553 * w32term.c:
1554 * frame.c: 1554 * w32fns.c:
1555 * frame.c: Remove references to MULTI_KBOARD, it is now the default. 1555 * terminal.c:
1556 * config.in: Regenerate. 1556 * termhooks.h:
1557 1557 * term.c:
15582008-07-30 Jason Rumney <jasonr@gnu.org> 1558 * sysdep.c:
1559 1559 * keyboard.h:
1560 * w32font.h (struct w32font_info): Use unicode version of textmetrics. 1560 * keyboard.c:
1561 1561 * frame.h:
1562 * w32font.c (w32font_encode_char): Leave as unicode if in range. 1562 * frame.c:
1563 (w32font_open_internal): Get unicode version of textmetrics. 1563 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
1564 Don't enable or disable glyph indices here. 1564 * config.in: Regenerate.
1565 (w32font_open): Disable use of glyph indices. 1565
1566 15662008-07-30 Jason Rumney <jasonr@gnu.org>
1567 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices. 1567
1568 1568 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
15692008-07-30 Chong Yidong <cyd@stupidchicken.com> 1569
1570 1570 * w32font.c (w32font_encode_char): Leave as unicode if in range.
1571 * minibuf.c (Vread_buffer_function): Doc fix. 1571 (w32font_open_internal): Get unicode version of textmetrics.
1572 1572 Don't enable or disable glyph indices here.
15732008-07-30 John Paul Wallington <jpw@pobox.com> 1573 (w32font_open): Disable use of glyph indices.
1574 1574
1575 * minibuf.c (read_buffer_completion_ignore_case): New var. 1575 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
1576 (Fread_buffer): Use it. 1576
1577 15772008-07-30 Chong Yidong <cyd@stupidchicken.com>
15782008-07-30 Dan Nicolaescu <dann@ics.uci.edu> 1578
1579 1579 * minibuf.c (Vread_buffer_function): Doc fix.
1580 * systty.h (sensemode): Remove empty #if. Remove reference to 1580
1581 BSD_TERMIOS, unused. 15812008-07-30 John Paul Wallington <jpw@pobox.com>
1582 1582
1583 * sysdep.c: Remove reference to DGUX. 1583 * minibuf.c (read_buffer_completion_ignore_case): New var.
1584 (closedir): Remove reference to BROKEN_CLOSEDIR, unused. 1584 (Fread_buffer): Use it.
1585 1585
1586 * config.in: Regenerate. 15862008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1587 1587
15882008-07-30 Jason Rumney <jasonr@gnu.org> 1588 * systty.h (sensemode): Remove empty #if. Remove reference to
1589 1589 BSD_TERMIOS, unused.
1590 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size. 1590
1591 1591 * sysdep.c: Remove reference to DGUX.
15922008-07-29 Jason Rumney <jasonr@gnu.org> 1592 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
1593 1593
1594 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache 1594 * config.in: Regenerate.
1595 is populated. 1595
1596 (uniscribe_encode_char): Always use uniscribe. 15962008-07-30 Jason Rumney <jasonr@gnu.org>
1597 Avoid using context if cache is populated. 1597
1598 1598 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
15992008-07-29 Jan Djärv <jan.h.d@swipnet.se> 1599
1600 16002008-07-29 Jason Rumney <jasonr@gnu.org>
1601 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to 1601
1602 open menu. 1602 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
1603 1603 is populated.
1604 * gtkutil.c (menu_nav_ended): Remove. 1604 (uniscribe_encode_char): Always use uniscribe.
1605 (create_menus): Remove signal connect for menu_nav_ended. 1605 Avoid using context if cache is populated.
1606 1606
16072008-07-28 Chong Yidong <cyd@stupidchicken.com> 16072008-07-29 Jan Djärv <jan.h.d@swipnet.se>
1608 1608
1609 * xdisp.c (redisplay_window): Check return value of 1609 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
1610 compute_window_start_on_continuation_line before forcing a window 1610 open menu.
1611 start. 1611
1612 1612 * gtkutil.c (menu_nav_ended): Remove.
16132008-07-28 Jason Rumney <jasonr@gnu.org> 1613 (create_menus): Remove signal connect for menu_nav_ended.
1614 1614
1615 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently. 16152008-07-28 Chong Yidong <cyd@stupidchicken.com>
1616 1616
1617 * w32term.c (w32_enable_unicode_output, cleartype_active): 1617 * xdisp.c (redisplay_window): Check return value of
1618 Remove obsolete display options. 1618 compute_window_start_on_continuation_line before forcing a window
1619 (x_draw_glyph_string_background): Don't use old cleartype_active 1619 start.
1620 workaround. 1620
1621 (w32_initialize): Remove cleartype_active initialization. 16212008-07-28 Jason Rumney <jasonr@gnu.org>
1622 (syms_of_w32term): Remove w32_enable_unicode_output initialization. 1622
1623 1623 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16242008-07-28 Andreas Schwab <schwab@suse.de> 1624
1625 1625 * w32term.c (w32_enable_unicode_output, cleartype_active):
1626 * lisp.h (init_weak_hash_tables, syms_of_font) 1626 Remove obsolete display options.
1627 (xd_read_queued_messages, syms_of_dbusbind): Declare. 1627 (x_draw_glyph_string_background): Don't use old cleartype_active
1628 (remove_hash_entry): Don't declare. 1628 workaround.
1629 * eval.c (maybe_call_debugger): Make static and move before use. 1629 (w32_initialize): Remove cleartype_active initialization.
1630 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT. 1630 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
1631 * xdisp.c: Include "gtkutil.h" if USE_GTK. 1631
1632 * xterm.h (x_set_frame_alpha): Declare. 16322008-07-28 Andreas Schwab <schwab@suse.de>
1633 1633
16342008-07-28 Jan Djärv <jan.h.d@swipnet.se> 1634 * lisp.h (init_weak_hash_tables, syms_of_font)
1635 1635 (xd_read_queued_messages, syms_of_dbusbind): Declare.
1636 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24. 1636 (remove_hash_entry): Don't declare.
1637 (create_menus): Connect selection-done to menu_nav_ended. 1637 * eval.c (maybe_call_debugger): Make static and move before use.
1638 1638 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16392008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com> 1639 * xdisp.c: Include "gtkutil.h" if USE_GTK.
1640 1640 * xterm.h (x_set_frame_alpha): Declare.
1641 * nsfns.m (x-create-frame): Add copy of parms argument to beginning. 1641
1642 Set Vx_resource_name to a fallback. Replace read of 'buffered' 16422008-07-28 Jan Djärv <jan.h.d@swipnet.se>
1643 parameter with read of 'alpha' one. 1643
1644 (Qns_frame_parameter): Remove. 1644 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
1645 * nsselection.m (selection-coding-system) 1645 (create_menus): Connect selection-done to menu_nav_ended.
1646 (next-selection-coding-system, Vselection_coding_system) 1646
1647 (Vnext_selection_coding_system): Drop. 16472008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1648 1648
16492008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com> 1649 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
1650 1650 Set Vx_resource_name to a fallback. Replace read of 'buffered'
1651 * nsfns.m (do-applescript, do_applescript): Rename to 1651 parameter with read of 'alpha' one.
1652 ns-do-applescript, ns_do_applescript, and move within file. 1652 (Qns_frame_parameter): Remove.
1653 1653 * nsselection.m (selection-coding-system)
16542008-07-27 Dan Nicolaescu <dann@ics.uci.edu> 1654 (next-selection-coding-system, Vselection_coding_system)
1655 1655 (Vnext_selection_coding_system): Drop.
1656 Remove support for Mac Carbon. 1656
1657 * mactoolbox.c: 16572008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1658 * macterm.h: 1658
1659 * macterm.c: 1659 * nsfns.m (do-applescript, do_applescript): Rename to
1660 * macselect.c: 1660 ns-do-applescript, ns_do_applescript, and move within file.
1661 * macmenu.c: 1661
1662 * macgui.h: 16622008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1663 * macfns.c: 1663
1664 * mac.c: Remove file. 1664 Remove support for Mac Carbon.
1665 * s/darwin.h: 1665 * mactoolbox.c:
1666 * m/intel386.h: 1666 * macterm.h:
1667 * xfaces.c: 1667 * macterm.c:
1668 * xdisp.c: 1668 * macselect.c:
1669 * window.c: 1669 * macmenu.c:
1670 * tparam.c: 1670 * macgui.h:
1671 * termhooks.h: 1671 * macfns.c:
1672 * termcap.c: 1672 * mac.c: Remove file.
1673 * term.c: 1673 * s/darwin.h:
1674 * syssignal.h: 1674 * m/intel386.h:
1675 * sysselect.h: 1675 * xfaces.c:
1676 * sysdep.c: 1676 * xdisp.c:
1677 * process.c: 1677 * window.c:
1678 * lread.c: 1678 * tparam.c:
1679 * lisp.h: 1679 * termhooks.h:
1680 * keyboard.c: 1680 * termcap.c:
1681 * image.c: 1681 * term.c:
1682 * fringe.c: 1682 * syssignal.h:
1683 * frame.h: 1683 * sysselect.h:
1684 * frame.c: 1684 * sysdep.c:
1685 * fontset.c: 1685 * process.c:
1686 * font.h: 1686 * lread.c:
1687 * font.c: 1687 * lisp.h:
1688 * fns.c: 1688 * keyboard.c:
1689 * fileio.c: 1689 * image.c:
1690 * emacs.c: 1690 * fringe.c:
1691 * dispnew.c: 1691 * frame.h:
1692 * dispextern.h: 1692 * frame.c:
1693 * config.in: 1693 * fontset.c:
1694 * atimer.c: 1694 * font.h:
1695 * Makefile.in: Remove code for Carbon 1695 * font.c:
1696 1696 * fns.c:
16972008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 1697 * fileio.c:
1698 1698 * emacs.c:
1699 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return. 1699 * dispnew.c:
1700 1700 * dispextern.h:
17012008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 1701 * config.in:
1702 1702 * atimer.c:
1703 * macterm.h (kCGBitmapByteOrder32Host): New define for 1703 * Makefile.in: Remove code for Carbon
1704 non-universal SDKs. 1704
1705 17052008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1706 * image.c (mac_create_cg_image_from_image, image_load_image_io) 1706
1707 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host. 1707 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
1708 1708
1709 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData) 17092008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1710 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host. 1710
1711 1711 * macterm.h (kCGBitmapByteOrder32Host): New define for
17122008-07-26 David Robinow <drobinow@gmail.com> (tiny change) 1712 non-universal SDKs.
1713 1713
1714 * w32inevt.c: Include dispextern.h. 1714 * image.c (mac_create_cg_image_from_image, image_load_image_io)
1715 1715 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17162008-07-26 Andreas Schwab <schwab@suse.de> 1716
1717 1717 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
1718 * print.c (print_object): Fix off-by-one in last change. 1718 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
1719 1719
17202008-07-25 Juanma Barranquero <lekktu@gmail.com> 17202008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
1721 1721
1722 * term.c (syms_of_term): Don't initialize default_orig_pair, 1722 * w32inevt.c: Include dispextern.h.
1723 default_set_foreground and default_set_background on Windows. 1723
1724 17242008-07-26 Andreas Schwab <schwab@suse.de>
17252008-07-25 Jason Rumney <jasonr@gnu.org> 1725
1726 1726 * print.c (print_object): Fix off-by-one in last change.
1727 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to 1727
1728 ScriptItemize. Clean up return value checking. Remove unused 17282008-07-25 Juanma Barranquero <lekktu@gmail.com>
1729 variables. 1729
1730 (uniscribe_encode_char): Encode non-BMP characters with uniscribe 1730 * term.c (syms_of_term): Don't initialize default_orig_pair,
1731 shaping engine. 1731 default_set_foreground and default_set_background on Windows.
1732 1732
1733 * w32font.c (w32font_has_char): Handle the case where we can't 17332008-07-25 Jason Rumney <jasonr@gnu.org>
1734 determine the script for a character. 1734
1735 1735 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17362008-07-25 Chong Yidong <cyd@stupidchicken.com> 1736 ScriptItemize. Clean up return value checking. Remove unused
1737 1737 variables.
1738 * term.c (syms_of_term): Initialize default_orig_pair, 1738 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
1739 default_set_foreground, and default_set_background. 1739 shaping engine.
1740 1740
1741 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h 1741 * w32font.c (w32font_has_char): Handle the case where we can't
1742 clash (bug#86). 1742 determine the script for a character.
1743 (getloadavg): Callers changed. 1743
1744 17442008-07-25 Chong Yidong <cyd@stupidchicken.com>
1745 * image.c (svg_load_image): Fix last change. 1745
1746 (svg_load_image): Use rsvg_handle_get_dimensions to check that 1746 * term.c (syms_of_term): Initialize default_orig_pair,
1747 image size is valid. Use g_object_unref instead of deprecated 1747 default_set_foreground, and default_set_background.
1748 rsvg_handle_free to free rsvg handle. 1748
1749 (x_from_xcolors): Don't initialize pixmap (silence compiler). 1749 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
1750 1750 clash (bug#86).
17512008-07-25 Jason Rumney <jasonr@gnu.org> 1751 (getloadavg): Callers changed.
1752 1752
1753 * w32font.c (w32font_encode_char): Encode characters outside BMP as 1753 * image.c (svg_load_image): Fix last change.
1754 surrogates before looking up glyph index. 1754 (svg_load_image): Use rsvg_handle_get_dimensions to check that
1755 (w32font_text_extents): Encode as surrogates if falling back to 1755 image size is valid. Use g_object_unref instead of deprecated
1756 functions that need UTF-16 wide chars. 1756 rsvg_handle_free to free rsvg handle.
1757 1757 (x_from_xcolors): Don't initialize pixmap (silence compiler).
1758 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside 1758
1759 BMP as surrogates before looking up glyph index. 17592008-07-25 Jason Rumney <jasonr@gnu.org>
1760 1760
17612008-07-25 Chong Yidong <cyd@stupidchicken.com> 1761 * w32font.c (w32font_encode_char): Encode characters outside BMP as
1762 1762 surrogates before looking up glyph index.
1763 * image.c (svg_load_image): Check for failure in return value of 1763 (w32font_text_extents): Encode as surrogates if falling back to
1764 rsvg_handle_get_pixbuf. Free rsvg handle when done. 1764 functions that need UTF-16 wide chars.
1765 1765
17662008-07-25 Jason Rumney <jasonr@gnu.org> 1766 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
1767 1767 BMP as surrogates before looking up glyph index.
1768 * w32font.c (Fx_select_font): Reverse sense of second arg. 1768
1769 17692008-07-25 Chong Yidong <cyd@stupidchicken.com>
17702008-07-24 Stefan Monnier <monnier@iro.umontreal.ca> 1770
1771 1771 * image.c (svg_load_image): Check for failure in return value of
1772 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos) 1772 rsvg_handle_get_pixbuf. Free rsvg handle when done.
1773 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions. 1773
1774 17742008-07-25 Jason Rumney <jasonr@gnu.org>
1775 * puresize.h (PURESIZE_CHECKING_RATIO): New macro. 1775
1776 (PURESIZE): Use it. 1776 * w32font.c (Fx_select_font): Reverse sense of second arg.
1777 1777
17782008-07-24 Dan Nicolaescu <dann@ics.uci.edu> 17782008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
1779 1779
1780 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs. 1780 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
1781 * m/alpha.h (TEXT_END): 1781 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
1782 * m/ibmrs6000.h (TEXT_END): 1782
1783 * m/macppc.h (TEXT_END): 1783 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
1784 * s/darwin.h (TEXT_END): 1784 (PURESIZE): Use it.
1785 * s/msdos.h (TEXT_END): Remove, unused. 1785
1786 * s/gnu-linux.h (BSD_PGRPS): Add a comment. 17862008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1787 * s/cygwin.h: Remove comment. 1787
1788 1788 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
1789 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused. 1789 * m/alpha.h (TEXT_END):
1790 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES. 1790 * m/ibmrs6000.h (TEXT_END):
1791 * m/intel386.h (DOT_GLOBAL_START): 1791 * m/macppc.h (TEXT_END):
1792 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES. 1792 * s/darwin.h (TEXT_END):
1793 (USG): Remove, file not used on USG platforms. 1793 * s/msdos.h (TEXT_END): Remove, unused.
1794 1794 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
1795 * Makefile.in (HAVE_X11): Remove empty #else. 1795 * s/cygwin.h: Remove comment.
1796 1796
17972008-07-24 Andreas Schwab <schwab@suse.de> 1797 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
1798 1798 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
1799 * fileio.c (Finsert_file_contents): Properly adjust undo list 1799 * m/intel386.h (DOT_GLOBAL_START):
1800 after format conversion. 1800 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
1801 1801 (USG): Remove, file not used on USG platforms.
18022008-07-24 Jan Djärv <jan.h.d@swipnet.se> 1802
1803 1803 * Makefile.in (HAVE_X11): Remove empty #else.
1804 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG. 1804
1805 (menu_nav_ended): Remove. 18052008-07-24 Andreas Schwab <schwab@suse.de>
1806 (create_menus): Remove signal connect for menu_nav_ended. 1806
1807 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to 1807 * fileio.c (Finsert_file_contents): Properly adjust undo list
1808 create_menus. 1808 after format conversion.
1809 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar. 1809
1810 18102008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18112008-07-23 Jason Rumney <jasonr@gnu.org> 1811
1812 1812 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
1813 * w32font.c (w32_enumfont_pattern_entity): Return height consistent 1813 (menu_nav_ended): Remove.
1814 with opened font. 1814 (create_menus): Remove signal connect for menu_nav_ended.
1815 (w32font_open): Set font type to gdi. 1815 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
1816 1816 create_menus.
1817 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe. 1817 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
1818 1818
18192008-07-23 Dan Nicolaescu <dann@ics.uci.edu> 18192008-07-23 Jason Rumney <jasonr@gnu.org>
1820 1820
1821 * s/usg5-4.h (ADDR_CORRECT): Remove, unused. 1821 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
1822 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user 1822 with opened font.
1823 defines it. 1823 (w32font_open): Set font type to gdi.
1824 * unexec.c (ADDR_CORRECT): Define unconditionally. 1824
1825 1825 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
1826 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove. 1826
1827 18272008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
1828 * unexec.c: Remove code depending on !COFF and USG, the file is 1828
1829 not used for such systems. 1829 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
1830 1830 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
1831 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): 1831 defines it.
1832 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused. 1832 * unexec.c (ADDR_CORRECT): Define unconditionally.
1833 (LD_SWITCH_SYSTEM_1): Remove, update users. 1833
1834 1834 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
1835 * s/darwin.h (DATA_END): 1835
1836 * m/intel386.h (DATA_END): 1836 * unexec.c: Remove code depending on !COFF and USG, the file is
1837 * m/ibmrs6000.h (DATA_END): 1837 not used for such systems.
1838 * m/alpha.h (DATA_END): Remove, unused. 1838
1839 1839 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
1840 * config.in: Regenerate. 1840 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
1841 * s/ms-w32.h (subprocesses): Define unconditionally. 1841 (LD_SWITCH_SYSTEM_1): Remove, update users.
1842 * s/template.h (subprocesses): Update comment. 1842
1843 * s/vms.h (subprocesses): 1843 * s/darwin.h (DATA_END):
1844 * s/usg5-4.h (subprocesses): 1844 * m/intel386.h (DATA_END):
1845 * s/hpux10-20.h (subprocesses): 1845 * m/ibmrs6000.h (DATA_END):
1846 * s/gnu-linux.h (subprocesses): 1846 * m/alpha.h (DATA_END): Remove, unused.
1847 * s/cygwin.h (subprocesses): 1847
1848 * s/bsd-common.h (subprocesses): 1848 * config.in: Regenerate.
1849 * s/aix4-2.h (subprocesses): 1849 * s/ms-w32.h (subprocesses): Define unconditionally.
1850 * s/darwin.h (subprocesses): Do not define, defined by default now. 1850 * s/template.h (subprocesses): Update comment.
1851 1851 * s/vms.h (subprocesses):
1852 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused. 1852 * s/usg5-4.h (subprocesses):
1853 Remove all references. 1853 * s/hpux10-20.h (subprocesses):
1854 (temacs): Add GNUstep specific ld flags. 1854 * s/gnu-linux.h (subprocesses):
1855 1855 * s/cygwin.h (subprocesses):
1856 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing, 1856 * s/bsd-common.h (subprocesses):
1857 similarly to what X does. 1857 * s/aix4-2.h (subprocesses):
1858 1858 * s/darwin.h (subprocesses): Do not define, defined by default now.
18592008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com> 1859
1860 1860 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
1861 * nsfns.m (x-list-fonts): Remove. 1861 Remove all references.
1862 (syms_of_nsfns): Drop the x-list-fonts declaration. 1862 (temacs): Add GNUstep specific ld flags.
1863 * nsterm.m: Get rid of remaining "//" comments. 1863
1864 1864 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18652008-07-22 Chong Yidong <cyd@stupidchicken.com> 1865 similarly to what X does.
1866 1866
1867 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix. 18672008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1868 1868
1869 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p) 1869 * nsfns.m (x-list-fonts): Remove.
1870 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal) 1870 (syms_of_nsfns): Drop the x-list-fonts declaration.
1871 (Fns_own_selection_internal, Fx_disown_selection_internal) 1871 * nsterm.m: Get rid of remaining "//" comments.
1872 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal): 1872
1873 18732008-07-22 Chong Yidong <cyd@stupidchicken.com>
1874 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /* 1874
1875 ... */' style of docstrings. Doc fixes. 1875 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
1876 1876
18772008-07-22 Dan Nicolaescu <dann@ics.uci.edu> 1877 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
1878 1878 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
1879 * terminfo.c (UP, BC, PC): Undo previous change. 1879 (Fns_own_selection_internal, Fx_disown_selection_internal)
1880 1880 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
1881 * nsfns.m: Rename ns prefixed functions/variables to the 1881
1882 corresponding x versions. Update references. 1882 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
1883 1883 ... */' style of docstrings. Doc fixes.
18842008-07-22 Stefan Monnier <monnier@iro.umontreal.ca> 1884
1885 18852008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1886 * syntax.c (char_quoted): Check "charpos > beg" before decrementing. 1886
1887 1887 * terminfo.c (UP, BC, PC): Undo previous change.
18882008-07-22 Dan Nicolaescu <dann@ics.uci.edu> 1888
1889 1889 * nsfns.m: Rename ns prefixed functions/variables to the
1890 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines): 1890 corresponding x versions. Update references.
1891 Remove forwarding functions. 1891
1892 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make 18922008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
1893 non-static. 1893
1894 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make 1894 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
1895 non-static. 1895
1896 (ns_frame_parm_handlers): Use the new names. 18962008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1897 (syms_of_nsfns): Move to the end of file. 1897
1898 1898 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
1899 * nsterm.m (syms_of_nsterm): Move to the end of file. 1899 Remove forwarding functions.
1900 1900 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
1901 * dispnew.c (init_display): Remove code for X10. 1901 non-static.
1902 1902 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
19032008-07-22 Jason Rumney <jasonr@gnu.org> 1903 non-static.
1904 1904 (ns_frame_parm_handlers): Use the new names.
1905 * w32proc.c (Fw32_long_file_name): Don't append dir separator to 1905 (syms_of_nsfns): Move to the end of file.
1906 bare drive. 1906
1907 1907 * nsterm.m (syms_of_nsterm): Move to the end of file.
19082008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com> 1908
1909 1909 * dispnew.c (init_display): Remove code for X10.
1910 * nsterm.m (syms_of_nsterm): Remove debugging println. 1910
1911 19112008-07-22 Jason Rumney <jasonr@gnu.org>
19122008-07-22 David Reitter <david.reitter@gmail.com> 1912
1913 1913 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
1914 * nsfns.m (do_applescript, F_do_applescript): NS version of the 1914 bare drive.
1915 Carbon implementation of the same functionality: execute arbitrary 1915
1916 AppleScript code. 19162008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1917 1917
19182008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com> 1918 * nsterm.m (syms_of_nsterm): Remove debugging println.
1919 1919
1920 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource) 19202008-07-22 David Reitter <david.reitter@gmail.com>
1921 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size) 1921
1922 (Fx_server_vendor, Fx_server_version, Fx_display_screens) 1922 * nsfns.m (do_applescript, F_do_applescript): NS version of the
1923 (Fx_display_mm_height, Fx_display_mm_width) 1923 Carbon implementation of the same functionality: execute arbitrary
1924 (Fx_display_backing_store, Fx_display_visual_class) 1924 AppleScript code.
1925 (Fx_display_save_under, Fx_open_connection) 1925
1926 (Fx_close_connection, Fx_hide_emacs, Fx_font_name) 19262008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1927 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p) 1927
1928 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p) 1928 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
1929 (Fx_display_pixel_width, Fx_display_pixel_height) 1929 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
1930 (Fx_display_usable_bounds, Fx_display_planes) 1930 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1931 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /* 1931 (Fx_display_mm_height, Fx_display_mm_width)
1932 ... */' style of docstrings. 1932 (Fx_display_backing_store, Fx_display_visual_class)
1933 1933 (Fx_display_save_under, Fx_open_connection)
19342008-07-21 Dan Nicolaescu <dann@ics.uci.edu> 1934 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
1935 1935 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
1936 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used 1936 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1937 on this platform. 1937 (Fx_display_pixel_width, Fx_display_pixel_height)
1938 (mips): 1938 (Fx_display_usable_bounds, Fx_display_planes)
1939 * m/iris4d.h (mips): Do not define. 1939 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
1940 * sysdep.c (init_sys_modes): Use __mips__ instead of mips. 1940 ... */' style of docstrings.
1941 1941
1942 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove. 19422008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
1943 1943
1944 * image.c: 1944 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
1945 * nsfns.m: 1945 on this platform.
1946 * nsselect.m: 1946 (mips):
1947 * nsterm.h: 1947 * m/iris4d.h (mips): Do not define.
1948 * nsterm.m: Rename ns prefixed functions/variables to the 1948 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
1949 corresponding x versions. Update references. 1949
1950 1950 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
1951 * m/ibms390x.h (NO_REMAP): Do not undefine. 1951
1952 1952 * image.c:
1953 * m/amdx86-64.h: Use SOLARIS2 instead of sun. 1953 * nsfns.m:
1954 1954 * nsselect.m:
19552008-07-21 Chong Yidong <cyd@stupidchicken.com> 1955 * nsterm.h:
1956 1956 * nsterm.m: Rename ns prefixed functions/variables to the
1957 * nsfns.m: Change NS to Nextstep in docstrings and error messages. 1957 corresponding x versions. Update references.
1958 (Fns_create_frame, Fns_read_file_name, Fns_get_resource) 1958
1959 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size) 1959 * m/ibms390x.h (NO_REMAP): Do not undefine.
1960 (Fns_server_vendor, Fns_server_version, Fns_display_screens) 1960
1961 (Fns_display_mm_height, Fns_display_mm_width) 1961 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
1962 (Fns_display_backing_store, Fns_display_visual_class) 1962
1963 (Fns_display_save_under, Fns_open_connection) 19632008-07-21 Chong Yidong <cyd@stupidchicken.com>
1964 (Fns_close_connection, Fns_hide_emacs, Fns_font_name) 1964
1965 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p) 1965 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
1966 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p) 1966 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
1967 (Fns_display_pixel_width, Fns_display_pixel_height) 1967 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
1968 (Fns_display_usable_bounds, Fx_display_planes) 1968 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
1969 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes. 1969 (Fns_display_mm_height, Fns_display_mm_width)
1970 1970 (Fns_display_backing_store, Fns_display_visual_class)
19712008-07-21 Ami Fischman <ami@fischman.org> (tiny change) 1971 (Fns_display_save_under, Fns_open_connection)
1972 1972 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
1973 * print.c (print_object): Check print_depth before searching for 1973 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
1974 circularities. 1974 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1975 1975 (Fns_display_pixel_width, Fns_display_pixel_height)
19762008-07-21 Michael Albinus <michael.albinus@gmx.de> 1976 (Fns_display_usable_bounds, Fx_display_planes)
1977 1977 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
1978 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead 1978
1979 only sprintf. 19792008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
1980 1980
19812008-07-21 Kenichi Handa <handa@m17n.org> 1981 * print.c (print_object): Check print_depth before searching for
1982 1982 circularities.
1983 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL. 1983
1984 19842008-07-21 Michael Albinus <michael.albinus@gmx.de>
19852008-07-20 Andreas Schwab <schwab@suse.de> 1985
1986 1986 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
1987 * syntax.c (find_start_pos, find_start_value) 1987 only sprintf.
1988 (find_start_value_byte, find_start_begv, find_defun_start) 1988
1989 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions. 19892008-07-21 Kenichi Handa <handa@m17n.org>
1990 1990
19912008-07-20 Dan Nicolaescu <dann@ics.uci.edu> 1991 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
1992 1992
1993 * s/sol2-3.h: Insert contents of s/sol2.h. 19932008-07-20 Andreas Schwab <schwab@suse.de>
1994 (LD_SWITCH_SYSTEM): Remove redundant definition. 1994
1995 * s/sol2.h: Remove, unused. 1995 * syntax.c (find_start_pos, find_start_value)
1996 1996 (find_start_value_byte, find_start_begv, find_defun_start)
19972008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> 1997 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
1998 1998
1999 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV. 19992008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2000 2000
20012008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> 2001 * s/sol2-3.h: Insert contents of s/sol2.h.
2002 2002 (LD_SWITCH_SYSTEM): Remove redundant definition.
2003 * Makefile.in (ns_appdir): Fix typo in find command. 2003 * s/sol2.h: Remove, unused.
2004 2004
20052008-07-20 Dan Nicolaescu <dann@ics.uci.edu> 20052008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2006 2006
2007 * m/intel386.h (NO_REMAP): Do no define for USG, not used. 2007 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
2008 2008
2009 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was 20092008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2010 added not supported anymore. 2010
2011 2011 * Makefile.in (ns_appdir): Fix typo in find command.
2012 * s/usg5-4-2.h (LIBS_SYSTEM): 2012
2013 * s/sol2.h (LIBS_SYSTEM): Do not undefine. 20132008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2014 2014
2015 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF): 2015 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
2016 * s/lynxos.h (GETPGRP_NO_ARG): 2016
2017 * s/hpux10-20.h (NO_SIOCTL_H): 2017 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
2018 * s/gnu.h (GETPGRP_NO_ARG): 2018 added not supported anymore.
2019 * s/gnu-linux.h (NO_SIOCTL_H): 2019
2020 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF): 2020 * s/usg5-4-2.h (LIBS_SYSTEM):
2021 * s/cygwin.h (GETPGRP_NO_ARG): 2021 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
2022 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused. 2022
2023 (C_DEBUG_SWITCH): Remove duplicate definition. 2023 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
2024 2024 * s/lynxos.h (GETPGRP_NO_ARG):
2025 * m/ibms390.h: Remove boilerplate comments. 2025 * s/hpux10-20.h (NO_SIOCTL_H):
2026 2026 * s/gnu.h (GETPGRP_NO_ARG):
2027 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4. 2027 * s/gnu-linux.h (NO_SIOCTL_H):
2028 2028 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
2029 * process.c (HAVE_SERIAL): Consolidate ifdefs. 2029 * s/cygwin.h (GETPGRP_NO_ARG):
2030 (wait_reading_process_output): Remove code for SunOS, platform not 2030 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
2031 supported anymore. Use SOLARIS2 instead of sun. 2031 (C_DEBUG_SWITCH): Remove duplicate definition.
2032 2032
20332008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> 2033 * m/ibms390.h: Remove boilerplate comments.
2034 2034
2035 * font.c (font_open_by_name): Under NS, default lface height to zero. 2035 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
2036 (font_open_for_lface): Under NS, set size based on frame fontsize. 2036
2037 * nsterm.m (EmacsView-changeFont:): Remove some commented code. 2037 * process.c (HAVE_SERIAL): Consolidate ifdefs.
2038 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef. 2038 (wait_reading_process_output): Remove code for SunOS, platform not
2039 2039 supported anymore. Use SOLARIS2 instead of sun.
20402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> 2040
2041 20412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2042 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing) 2042
2043 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to 2043 * font.c (font_open_by_name): Under NS, default lface height to zero.
2044 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of 2044 (font_open_for_lface): Under NS, set size based on frame fontsize.
2045 YES/NO. 2045 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
2046 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object. 2046 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
2047 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object. 2047
2048 * Makefile.in (clean): Clear out build destination dir. 20482008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2049 2049
20502008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> 2050 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
2051 2051 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
2052 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns, 2052 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
2053 xterm, xselect. 2053 YES/NO.
2054 * lisp.h: Remove declaration of hash_remove. 2054 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
2055 * nsgui.h: Remove redefinitions of hash_remove. 2055 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
2056 * fns.c (hash_remove): Rename to hash_remove_from_table. 2056 * Makefile.in (clean): Clear out build destination dir.
2057 2057
20582008-07-19 Seiji Zenitani <zenitani@mac.com> 20582008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2059 2059
2060 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font): 2060 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
2061 strdup() the family UTF8String before modifying it. 2061 xterm, xselect.
2062 2062 * lisp.h: Remove declaration of hash_remove.
20632008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> 2063 * nsgui.h: Remove redefinitions of hash_remove.
2064 2064 * fns.c (hash_remove): Rename to hash_remove_from_table.
2065 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from 2065
2066 NS_FACE_BACKGROUND with 0 instead of nil. 20662008-07-19 Seiji Zenitani <zenitani@mac.com>
2067 * nsfont.m (nsfont_draw): Same. 2067
2068 2068 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
20692008-07-19 Chong Yidong <cyd@stupidchicken.com> 2069 strdup() the family UTF8String before modifying it.
2070 2070
2071 * nsfns.m (ns_set_background_color): Fix crash. 20712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2072 2072
20732008-07-18 Chong Yidong <cyd@stupidchicken.com> 2073 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
2074 2074 NS_FACE_BACKGROUND with 0 instead of nil.
2075 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc. 2075 * nsfont.m (nsfont_draw): Same.
2076 2076
20772008-07-18 Dan Nicolaescu <dann@ics.uci.edu> 20772008-07-19 Chong Yidong <cyd@stupidchicken.com>
2078 2078
2079 * puresize.h (BASE_PURESIZE): Increase to 1240000. 2079 * nsfns.m (ns_set_background_color): Fix crash.
2080 2080
20812008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 20812008-07-18 Chong Yidong <cyd@stupidchicken.com>
2082 2082
2083 * gtkutil.c: Include <config.h> instead of "config.h". 2083 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
2084 2084
2085 * lisp.h (Foverlay_buffer): Add EXFUN. 20852008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2086 2086
2087 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for 2087 * puresize.h (BASE_PURESIZE): Increase to 1240000.
2088 child process to complete child_setup. Undo 2005-09-21 change. 2088
2089 20892008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2090 * s/darwin.h: Mention setsid after vfork. 2090
2091 2091 * gtkutil.c: Include <config.h> instead of "config.h".
20922008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2092
2093 2093 * lisp.h (Foverlay_buffer): Add EXFUN.
2094 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o): 2094
2095 Depend on macgui.h. 2095 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
2096 2096 child process to complete child_setup. Undo 2005-09-21 change.
2097 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor, 2097
2098 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix. 2098 * s/darwin.h: Mention setsid after vfork.
2099 2099
2100 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18, 21002008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2101 and f19. 2101
2102 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise. 2102 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
2103 2103 Depend on macgui.h.
2104 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor) 2104
2105 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]: 2105 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
2106 Remove enumerators. 2106 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
2107 2107
2108 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event): 2108 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
2109 Check if FACE_FROM_ID returns NULL. 2109 and f19.
2110 2110 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
21112008-07-17 David Robinow <drobinow@gmail.com> (tiny change) 2111
2112 2112 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
2113 * w32inevt.c (change_frame_size): Remove extern declaration. 2113 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
2114 (resize_event, maybe_generate_resize_event): Pass SAFE arg to 2114 Remove enumerators.
2115 change_frame_size. 2115
2116 2116 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
21172008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com> 2117 Check if FACE_FROM_ID returns NULL.
2118 2118
2119 * getloadavg.c: Revert last change (2008-07-15). 21192008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
2120 2120
21212008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com> 2121 * w32inevt.c (change_frame_size): Remove extern declaration.
2122 2122 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
2123 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables 2123 change_frame_size.
2124 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set 2124
2125 from configure. 21252008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2126 2126
21272008-07-17 Dan Nicolaescu <dann@ics.uci.edu> 2127 * getloadavg.c: Revert last change (2008-07-15).
2128 2128
2129 * s/sol2.h: 21292008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2130 * s/sol2-4.h: Reorganize conditionals. 2130
2131 2131 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
2132 * ecrt0.c: Remove code depending on m68000, not used anymore. 2132 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
2133 2133 from configure.
2134 * fns.c (hash_remove): Make static. 2134
2135 * lisp.h (hash_remove): Don't prototype. 21352008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
2136 2136
2137 * m/ibmrs6000.h: 2137 * s/sol2.h:
2138 * m/ibms390x.h: 2138 * s/sol2-4.h: Reorganize conditionals.
2139 * m/macppc.h: Remove boilerplate comments. 2139
2140 2140 * ecrt0.c: Remove code depending on m68000, not used anymore.
2141 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on 2141
2142 Solaris, which does not need them. 2142 * fns.c (hash_remove): Make static.
2143 2143 * lisp.h (hash_remove): Don't prototype.
2144 * m/vax.h: Remove comments about unsupported systems. 2144
2145 2145 * m/ibmrs6000.h:
2146 * s/darwin.h: Reorganize ifdefs. 2146 * m/ibms390x.h:
2147 2147 * m/macppc.h: Remove boilerplate comments.
21482008-07-17 Andreas Schwab <schwab@suse.de> 2148
2149 2149 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
2150 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define. 2150 Solaris, which does not need them.
2151 2151
21522008-07-17 Stefan Monnier <monnier@iro.umontreal.ca> 2152 * m/vax.h: Remove comments about unsupported systems.
2153 2153
2154 Use SDATA. Follow coding convention of placing operators at 2154 * s/darwin.h: Reorganize ifdefs.
2155 beginning of next line rather than end of previous line, and placing 2155
2156 spaces around infix operators. 21562008-07-17 Andreas Schwab <schwab@suse.de>
2157 2157
2158 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning 2158 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
2159 in case it was defined already. 2159
2160 USE @GNUSTEP_MAKEFILES@ rather than envvars. 21602008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
2161 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to 2161
2162 ns_default. 2162 Use SDATA. Follow coding convention of placing operators at
2163 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare 2163 beginning of next line rather than end of previous line, and placing
2164 Lisp_Objects. 2164 spaces around infix operators.
2165 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes) 2165
2166 (ns_defined_color, ns_color_to_lisp): Declare. 2166 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
2167 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear) 2167 in case it was defined already.
2168 (Fns_own_selection_internal): Make the big ugly hack more explicit, so 2168 USE @GNUSTEP_MAKEFILES@ rather than envvars.
2169 it's accepted even with USE_LISP_UNION_TYPE. 2169 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
2170 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects. 2170 ns_default.
2171 (update_frame_tool_bar): Remove apparently obsolete tests for 2171 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
2172 non-integerness of f->tool_bar_lines. 2172 Lisp_Objects.
2173 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly 2173 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
2174 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE. 2174 (ns_defined_color, ns_color_to_lisp): Declare.
2175 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast. 2175 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
2176 (nsfont_open): Don't confuse NULL for Qnil. 2176 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
2177 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects. 2177 it's accepted even with USE_LISP_UNION_TYPE.
2178 * menu.h (find_and_call_menu_selection): 2178 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
2179 * menu.c (find_and_call_menu_selection): Use just int for vector size. 2179 (update_frame_tool_bar): Remove apparently obsolete tests for
2180 (find_and_return_menu_selection): Always return something. 2180 non-integerness of f->tool_bar_lines.
2181 * frame.h: Include dispextern.h for Display_Info. 2181 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
2182 (display_x_get_resource): Declare. 2182 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
2183 2183 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
21842008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com> 2184 (nsfont_open): Don't confuse NULL for Qnil.
2185 2185 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
2186 * syntax.c: Remove stdio.h include accidentally introduced in 2186 * menu.h (find_and_call_menu_selection):
2187 Emacs.app commit. 2187 * menu.c (find_and_call_menu_selection): Use just int for vector size.
2188 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to 2188 (find_and_return_menu_selection): Always return something.
2189 NS_IMPL_COCOA. 2189 * frame.h: Include dispextern.h for Display_Info.
2190 * keyboard.c (handle_async_input, input_available_signal): Remove 2190 (display_x_get_resource): Declare.
2191 BSD4_1 conditional code, introduced accidentally in Emacs.app commit. 2191
2192 21922008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
21932008-07-16 Stefan Monnier <monnier@iro.umontreal.ca> 2193
2194 2194 * syntax.c: Remove stdio.h include accidentally introduced in
2195 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead. 2195 Emacs.app commit.
2196 (ns_lisp_to_color): Don't mess with internal Lisp data fields. 2196 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
2197 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts): 2197 NS_IMPL_COCOA.
2198 Use SDATA. 2198 * keyboard.c (handle_async_input, input_available_signal): Remove
2199 2199 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
2200 * keymap.c: Remove all NS-specific code. 2200
2201 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars. 22012008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
2202 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to 2202
2203 where_is_preferred_modifier, return a different value depending on how 2203 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
2204 preferred is the binding. 2204 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
2205 (where_is_internal): Adjust accordingly. 2205 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
2206 (Fwhere_is_internal): Refresh where_is_preferred_modifier. 2206 Use SDATA.
2207 Adjust to new preferred_sequence_p. 2207
2208 (syms_of_keymap): Declare `where-is-preferred-modifier'. 2208 * keymap.c: Remove all NS-specific code.
2209 * keyboard.c (parse_solitary_modifier): Not static any more. 2209 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
2210 * keyboard.h (parse_solitary_modifier): Declare. 2210 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
2211 2211 where_is_preferred_modifier, return a different value depending on how
22122008-07-16 Andreas Schwab <schwab@suse.de> 2212 preferred is the binding.
2213 2213 (where_is_internal): Adjust accordingly.
2214 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling 2214 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
2215 of easymenu. 2215 Adjust to new preferred_sequence_p.
2216 2216 (syms_of_keymap): Declare `where-is-preferred-modifier'.
22172008-07-16 Chong Yidong <cyd@stupidchicken.com> 2217 * keyboard.c (parse_solitary_modifier): Not static any more.
2218 2218 * keyboard.h (parse_solitary_modifier): Declare.
2219 * xdisp.c (move_it_in_display_line): Account for word wrap, so 2219
2220 that we don't move off the line. 22202008-07-16 Andreas Schwab <schwab@suse.de>
2221 2221
22222008-07-16 Stefan Monnier <monnier@iro.umontreal.ca> 2222 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
2223 2223 of easymenu.
2224 * keyboard.c (Qsuper): Remove. 2224
2225 (parse_menu_item): Don't call where_is_internal specially for NS. 22252008-07-16 Chong Yidong <cyd@stupidchicken.com>
2226 2226
22272008-07-16 Dan Nicolaescu <dann@ics.uci.edu> 2227 * xdisp.c (move_it_in_display_line): Account for word wrap, so
2228 2228 that we don't move off the line.
2229 * s/gnu-linux.h: Remove boilerplate comments. 2229
2230 22302008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
2231 * m/alpha.h (__ELF__): Consolidate conditions. 2231
2232 2232 * keyboard.c (Qsuper): Remove.
2233 * m/m68k.h (linux): Use GNU_LINUX instead. 2233 (parse_menu_item): Don't call where_is_internal specially for NS.
2234 Remove boilerplate comments. 2234
2235 22352008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2236 * m/intel386.h: Undo refactoring from previous change. 2236
2237 (LIB_STANDARD): All systems that define USG define LIB_STANDARD 2237 * s/gnu-linux.h: Remove boilerplate comments.
2238 too, remove dead code. 2238
2239 (linux): Use GNU_LINUX instead. 2239 * m/alpha.h (__ELF__): Consolidate conditions.
2240 2240
22412008-07-16 Jason Rumney <jasonr@gnu.org> 2241 * m/m68k.h (linux): Use GNU_LINUX instead.
2242 2242 Remove boilerplate comments.
2243 * w32gui.h: Repeat 26 June changes lost by last change. 2243
2244 2244 * m/intel386.h: Undo refactoring from previous change.
22452008-07-16 Dan Nicolaescu <dann@ics.uci.edu> 2245 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
2246 2246 too, remove dead code.
2247 * systty.h: Remove code for Aix on 386, unsupported platform. 2247 (linux): Use GNU_LINUX instead.
2248 2248
2249 * s/ms-w32.h: Remove boilerplate comments. 22492008-07-16 Jason Rumney <jasonr@gnu.org>
2250 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused. 2250
2251 2251 * w32gui.h: Repeat 26 June changes lost by last change.
2252 * s/gnu-linux.h (TERM): Remove support. 2252
2253 (HAVE_SYSVIPC): Remove, unused. 22532008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2254 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used 2254
2255 for this system. 2255 * systty.h: Remove code for Aix on 386, unsupported platform.
2256 2256
2257 * process.c: Remove support for IRIS, unused. 2257 * s/ms-w32.h: Remove boilerplate comments.
2258 Remove support for TERM, not relevant anymore. 2258 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
2259 2259
2260 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only 2260 * s/gnu-linux.h (TERM): Remove support.
2261 used with the definition. 2261 (HAVE_SYSVIPC): Remove, unused.
2262 2262 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
2263 * s/aix4-2.h (static): Do not undef. 2263 for this system.
2264 2264
2265 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is 2265 * process.c: Remove support for IRIS, unused.
2266 only used on Aix. 2266 Remove support for TERM, not relevant anymore.
2267 (HAVE_SYSVIPC): Remove, unused. 2267
2268 2268 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
2269 * m/hp800.h (CANNOT_DUMP): Do not undef. 2269 used with the definition.
2270 2270
2271 * m/alpha.h: Fix comment. 2271 * s/aix4-2.h (static): Do not undef.
2272 2272
2273 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused. 2273 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
2274 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not 2274 only used on Aix.
2275 used by this configuration. 2275 (HAVE_SYSVIPC): Remove, unused.
2276 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES. 2276
2277 * unexec.c: Remove code depending on HPUX and 2277 * m/hp800.h (CANNOT_DUMP): Do not undef.
2278 USG_SHARED_LIBRARIES, not used with this file. Remove code 2278
2279 depending on IRIS, unused. Remove if 0-ed code. 2279 * m/alpha.h: Fix comment.
2280 2280
2281 * s/template.h: Remove comments about static. 2281 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
2282 2282 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
2283 * sysdep.c: Remove code depending on NEED_PTEM_H, unused. 2283 used by this configuration.
2284 Remove if 0-ed code. 2284 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
2285 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the 2285 * unexec.c: Remove code depending on HPUX and
2286 were the same as the default. 2286 USG_SHARED_LIBRARIES, not used with this file. Remove code
2287 * s/vms.h (BAUD_CONVERT): Remove, same as the default. 2287 depending on IRIS, unused. Remove if 0-ed code.
2288 Remove boilerplate comments. 2288
2289 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default. 2289 * s/template.h: Remove comments about static.
2290 (HAVE_SYSVIPC): Remove, unused. 2290
2291 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore. 2291 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
2292 2292 Remove if 0-ed code.
2293 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. 2293 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
2294 Remove boilerplate comments. 2294 were the same as the default.
2295 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. 2295 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
2296 Remove boilerplate comments. 2296 Remove boilerplate comments.
2297 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default. 2297 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
2298 Remove boilerplate comments. 2298 (HAVE_SYSVIPC): Remove, unused.
2299 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally. 2299 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
2300 2300
2301 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on 2301 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2302 USG systems which do not use DATA_SEG_BITS. 2302 Remove boilerplate comments.
2303 Refactor code. Remove boilerplate comments. 2303 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2304 2304 Remove boilerplate comments.
2305 * m/ibms390.h: 2305 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2306 * m/m68k.h: 2306 Remove boilerplate comments.
2307 * s/bsd-common.h: 2307 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
2308 * s/cygwin.h: 2308
2309 * s/darwin.h: 2309 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
2310 * s/freebsd.h: 2310 USG systems which do not use DATA_SEG_BITS.
2311 * s/gnu.h: 2311 Refactor code. Remove boilerplate comments.
2312 * s/msdos.h: Remove boilerplate comments. 2312
2313 2313 * m/ibms390.h:
2314 * m/iris4d.h: Remove boilerplate comments and code for systems that 2314 * m/m68k.h:
2315 do not use this file. 2315 * s/bsd-common.h:
2316 (IRIS_4D): Remove, unused. 2316 * s/cygwin.h:
2317 2317 * s/darwin.h:
2318 * m/mips.h: Remove boilerplate comments and code for systems that 2318 * s/freebsd.h:
2319 do not use this file. 2319 * s/gnu.h:
2320 (SIGN_EXTEND_CHAR): 2320 * s/msdos.h: Remove boilerplate comments.
2321 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused. 2321
2322 * unexmips.c: Remove file, unused. 2322 * m/iris4d.h: Remove boilerplate comments and code for systems that
2323 2323 do not use this file.
2324 * editfns.c (Fuser_full_name): Replace the only use of 2324 (IRIS_4D): Remove, unused.
2325 USER_FULL_NAME with its value. 2325
2326 * config.in: Regenerate. 2326 * m/mips.h: Remove boilerplate comments and code for systems that
2327 2327 do not use this file.
23282008-07-16 David Reitter <david.reitter@gmail.com> 2328 (SIGN_EXTEND_CHAR):
2329 2329 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
2330 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and 2330 * unexmips.c: Remove file, unused.
2331 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port. 2331
2332 2332 * editfns.c (Fuser_full_name): Replace the only use of
23332008-07-16 Glenn Morris <rgm@gnu.org> 2333 USER_FULL_NAME with its value.
2334 2334 * config.in: Regenerate.
2335 * emacs.c (system-type): Doc fix. 2335
2336 23362008-07-16 David Reitter <david.reitter@gmail.com>
23372008-07-15 Stefan Monnier <monnier@iro.umontreal.ca> 2337
2338 2338 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
2339 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS. 2339 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
2340 If the cache doesn't work, let's fix it, rather than work around it. 2340
2341 23412008-07-16 Glenn Morris <rgm@gnu.org>
23422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> 2342
2343 2343 * emacs.c (system-type): Doc fix.
2344 * Makefile.in: Correct additions for nsfont.o in last commit. 2344
2345 * nsfont.m: New file (forgot last commit). 23452008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
2346 2346
23472008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change) 2347 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
2348 2348 If the cache doesn't work, let's fix it, rather than work around it.
2349 * callproc.c (set_initial_environment): Initialize 2349
2350 Vprocess_environment under CANNOT_DUMP (fixes crash when 23502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2351 batch-compiling for bootstrap). 2351
2352 2352 * Makefile.in: Correct additions for nsfont.o in last commit.
23532008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change) 2353 * nsfont.m: New file (forgot last commit).
2354 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2354
2355 23552008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
2356 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case -- 2356
2357 fix crash due to different init order. 2357 * callproc.c (set_initial_environment): Initialize
2358 2358 Vprocess_environment under CANNOT_DUMP (fixes crash when
23592008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> 2359 batch-compiling for bootstrap).
2360 2360
2361 Changes and additions for NeXTstep windowing system (Cocoa and 23612008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
2362 GNUstep) support. 2362 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2363 2363
2364 * Makefile.in: 2364 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
2365 * config.in: Support defines and build commands for NS port. 2365 fix crash due to different init order.
2366 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT) 2366
2367 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G. 23672008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2368 * dispextern.h: Include nsgui.h and add needed typedefs under NS 2368
2369 windowing. 2369 Changes and additions for NeXTstep windowing system (Cocoa and
2370 (struct face): Add synth_ital field. 2370 GNUstep) support.
2371 * dispnew.c: Include nsterm.h when compiling under NS windowing. 2371
2372 (init_display): Initialize Vinitial_window_system to "ns" when so 2372 * Makefile.in:
2373 compiled. 2373 * config.in: Support defines and build commands for NS port.
2374 * emacs.c: Include GSConfig.h when compiling under GNUstep. 2374 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
2375 (display_arg): Use under NS. 2375 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
2376 (main): Under NS, allocate autorelease pool and handle command line 2376 * dispextern.h: Include nsgui.h and add needed typedefs under NS
2377 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS. 2377 windowing.
2378 (standard_args): Add NS-specific args. 2378 (struct face): Add synth_ital field.
2379 (shut_down_emacs): Shut down NS terminal if compiled under NS. 2379 * dispnew.c: Include nsterm.h when compiling under NS windowing.
2380 * font.c (DEFAULT_ENCODING): New variable. 2380 (init_display): Initialize Vinitial_window_system to "ns" when so
2381 (font_find_for_lface): Use it. 2381 compiled.
2382 (syms_of_font): Load syms_of_nsfont under NS. 2382 * emacs.c: Include GSConfig.h when compiling under GNUstep.
2383 * font.h: Declare nsfont_driver when compiled under NS. 2383 (display_arg): Use under NS.
2384 * fontset.c: When compiling under NS, include nsterm.h. 2384 (main): Under NS, allocate autorelease pool and handle command line
2385 (fontset_from_font): Autoconstruct fontset under NS. 2385 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
2386 * frame.c (various): Under NS, include nsterm.h, add Qns window system 2386 (standard_args): Add NS-specific args.
2387 symbol, document and use it. 2387 (shut_down_emacs): Shut down NS terminal if compiled under NS.
2388 (do_switch_frame): When for_deletion under Cocoa, add 2388 * font.c (DEFAULT_ENCODING): New variable.
2389 Fraise_frame(Qnil). 2389 (font_find_for_lface): Use it.
2390 (x_set_frame_parameters): Ensure font attribute changes are picked up. 2390 (syms_of_font): Load syms_of_nsfont under NS.
2391 (x_get_arg): Allow "yes" and "no" as boolean values. 2391 * font.h: Declare nsfont_driver when compiled under NS.
2392 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to 2392 * fontset.c: When compiling under NS, include nsterm.h.
2393 Qright under Cocoa. 2393 (fontset_from_font): Autoconstruct fontset under NS.
2394 (focus-follows-mouse): Default to 0 under NS. 2394 * frame.c (various): Under NS, include nsterm.h, add Qns window system
2395 * frame.h (enum output_method): Add output_ns. 2395 symbol, document and use it.
2396 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR) 2396 (do_switch_frame): When for_deletion under Cocoa, add
2397 (FRAME_EXTERNAL_MENU_BAR): Use under NS. 2397 Fraise_frame(Qnil).
2398 (FRAME_WINDOW_P): NS-specific definition. 2398 (x_set_frame_parameters): Ensure font attribute changes are picked up.
2399 * fringe.c (max_used_fringe_bitmap): Make public. 2399 (x_get_arg): Allow "yes" and "no" as boolean values.
2400 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's. 2400 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
2401 (getloadavg): Use NeXT code under descendant OS's. 2401 Qright under Cocoa.
2402 * image.c (includes and header section, x_create_bitmap_from_data) 2402 (focus-follows-mouse): Default to 0 under NS.
2403 (x_create_bitmap_from_file, free_bitmap_record, image_background) 2403 * frame.h (enum output_method): Add output_ns.
2404 (image_background_transparent, x_clear_image_1) 2404 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
2405 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image) 2405 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
2406 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color) 2406 (FRAME_WINDOW_P): NS-specific definition.
2407 (x_to_xcolors, x_from_xcolors, x_disable_image) 2407 * fringe.c (max_used_fringe_bitmap): Make public.
2408 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to 2408 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
2409 other GUIs, including XPM support using code originally written for 2409 (getloadavg): Use NeXT code under descendant OS's.
2410 Carbon GUI. 2410 * image.c (includes and header section, x_create_bitmap_from_data)
2411 (png_load, jpeg_load, tiff_load, gif_load): Add implementations 2411 (x_create_bitmap_from_file, free_bitmap_record, image_background)
2412 using NS API. 2412 (image_background_transparent, x_clear_image_1)
2413 (image_ascent): Use font metrics macros instead of direct struct field 2413 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
2414 access. 2414 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
2415 * keyboard.c (includes): Add nsterm.h when compiling under NS. 2415 (x_to_xcolors, x_from_xcolors, x_disable_image)
2416 (kbd_buffer_get_event): Handle NS as other GUI windowing systems. 2416 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
2417 Also, handle NS as GTK for menu bar purposes. 2417 other GUIs, including XPM support using code originally written for
2418 (make_lispy_event): Handle NS as other GUI windowing systems, and as X 2418 Carbon GUI.
2419 toolkit where they differ. 2419 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
2420 (parse_menu_item): Prefer keybindings using 'super' modifier. Also, 2420 using NS API.
2421 use cachelist, still needed under NS. 2421 (image_ascent): Use font metrics macros instead of direct struct field
2422 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI. 2422 access.
2423 (struct widget_value): Define it here for menu.c. 2423 * keyboard.c (includes): Add nsterm.h when compiling under NS.
2424 * keymap.c (includes): Include modifier internals. 2424 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
2425 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under 2425 Also, handle NS as GTK for menu bar purposes.
2426 NS. 2426 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
2427 (where_is_internal, Fwhere_is_internal): When compiled under NS, add 2427 toolkit where they differ.
2428 support for preferring sequences using certain modifiers, specified by 2428 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
2429 the FIRSTONLY argument. 2429 use cachelist, still needed under NS.
2430 * lisp.h (hash_remove): Rename to avoid name clash when compiling 2430 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
2431 under NS GNUstep implementation. 2431 (struct widget_value): Define it here for menu.c.
2432 (USE_LSB_TAG): Use it under Cocoa when compiling under NS. 2432 * keymap.c (includes): Include modifier internals.
2433 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning. 2433 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
2434 * menu.c: Include nsterm.h under NS. 2434 NS.
2435 (single_menu_item, parse_single_submenu, xmalloc_widget_value) 2435 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
2436 (free_menubar_widget_tree_value, update_submenu_strings) 2436 support for preferring sequences using certain modifiers, specified by
2437 (find_and_call_menu_selection): Treat NS as X and NT. 2437 the FIRSTONLY argument.
2438 (find_and_return_menu_selection): New function, used for popup menus. 2438 * lisp.h (hash_remove): Rename to avoid name clash when compiling
2439 * nsgui.h: 2439 under NS GNUstep implementation.
2440 * nsterm.h: 2440 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
2441 * nsfns.m: 2441 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
2442 * nsimage.m: 2442 * menu.c: Include nsterm.h under NS.
2443 * nsmenu.m: 2443 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
2444 * nsselect.m: 2444 (free_menubar_widget_tree_value, update_submenu_strings)
2445 * nsterm.m: New files. 2445 (find_and_call_menu_selection): Treat NS as X and NT.
2446 * process.c (wait_reading_process_output): Under NS, call ns_select() 2446 (find_and_return_menu_selection): New function, used for popup menus.
2447 instead of plain select(). 2447 * nsgui.h:
2448 * syntax.c (char_quoted): Under NS, avoid a crash when called near 2448 * nsterm.h:
2449 beginning of buffer. 2449 * nsfns.m:
2450 * sysselect.h (init_process): Rename when compiling under Cocoa to 2450 * nsimage.m:
2451 avoid name conflict. 2451 * nsmenu.m:
2452 * termhooks.h (display_info): Add ns_display_info to union. 2452 * nsselect.m:
2453 * terminal.c (Fterminal_live_p): Add ns to terminal types. 2453 * nsterm.m: New files.
2454 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in 2454 * process.c (wait_reading_process_output): Under NS, call ns_select()
2455 COCOA environment. 2455 instead of plain select().
2456 * unexnext.c: Update to work with mach API on Mac OS X, and to use new 2456 * syntax.c (char_quoted): Under NS, avoid a crash when called near
2457 unexec() signature. (Note, this will dump, but the resulting file 2457 beginning of buffer.
2458 crashes; unexosx is used instead; keeping around for reference and 2458 * sysselect.h (init_process): Rename when compiling under Cocoa to
2459 possible aid in getting dump working under GNUstep.) 2459 avoid name conflict.
2460 * w32gui.h (button_type, widget_value): Remove definitions (now in 2460 * termhooks.h (display_info): Add ns_display_info to union.
2461 keyboard.h). 2461 * terminal.c (Fterminal_live_p): Add ns to terminal types.
2462 * window.c: Include nsterm.h when compiling under NS. 2462 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
2463 * xdisp.c (includes): Include nsterm.h when compiling under NS. 2463 COCOA environment.
2464 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as 2464 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
2465 other GUI windowing systems. 2465 unexec() signature. (Note, this will dump, but the resulting file
2466 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as 2466 crashes; unexosx is used instead; keeping around for reference and
2467 GTK. 2467 possible aid in getting dump working under GNUstep.)
2468 (x_consider_frame_title): Under NS, set icon type and frame 2468 * w32gui.h (button_type, widget_value): Remove definitions (now in
2469 modified-state indicator; use ns_set_name_as_filename() when using 2469 keyboard.h).
2470 formatted title. 2470 * window.c: Include nsterm.h when compiling under NS.
2471 (update_window_cursor): Make public when compiling under NS. 2471 * xdisp.c (includes): Include nsterm.h when compiling under NS.
2472 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p) 2472 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
2473 (hourglass_atimer, Vhourglass_delay 2473 other GUI windowing systems.
2474 * xfaces.c (header section, init_frame_faces, clear_font_table) 2474 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
2475 (defined_color, unload_color, x_face_list_fonts) 2475 GTK.
2476 (prepare_face_for_display): Add NS support parallel to other GUIs. 2476 (x_consider_frame_title): Under NS, set icon type and frame
2477 Emulate GCs like other non-X GUIs. 2477 modified-state indicator; use ns_set_name_as_filename() when using
2478 (split_font_name): Don't lowercase font name under NS. 2478 formatted title.
2479 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling 2479 (update_window_cursor): Make public when compiling under NS.
2480 under NS. 2480 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
2481 * s/darwin.h: Add support for compilation under NS. 2481 (hourglass_atimer, Vhourglass_delay
2482 2482 * xfaces.c (header section, init_frame_faces, clear_font_table)
24832008-07-15 Jason Rumney <jasonr@gnu.org> 2483 (defined_color, unload_color, x_face_list_fonts)
2484 2484 (prepare_face_for_display): Add NS support parallel to other GUIs.
2485 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect. 2485 Emulate GCs like other non-X GUIs.
2486 (w32_show_hourglass): Rename from show_hourglass. 2486 (split_font_name): Don't lowercase font name under NS.
2487 (w32_hide_hourglass): Rename from hide_hourglass. 2487 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
2488 (DEFAULT_HOURGLASS_DELAY): Revert from last change. 2488 under NS.
2489 (Vhourglass_delay): Declare extern. 2489 * s/darwin.h: Add support for compilation under NS.
2490 (hourglass_started): Remove. 2490
2491 24912008-07-15 Jason Rumney <jasonr@gnu.org>
2492 * xdisp.c (Vhourglass_delay): Remove static. 2492
2493 (hourglass_started, start_hourglass, cancel_hourglass): 2493 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
2494 Don't include these versions on WINDOWSNT. 2494 (w32_show_hourglass): Rename from show_hourglass.
2495 2495 (w32_hide_hourglass): Rename from hide_hourglass.
24962008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> 2496 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
2497 2497 (Vhourglass_delay): Declare extern.
2498 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern 2498 (hourglass_started): Remove.
2499 variables (formerly in xfns.c). 2499
2500 (show_hourglass, hide_hourglass): New prototypes (same). 2500 * xdisp.c (Vhourglass_delay): Remove static.
2501 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer) 2501 (hourglass_started, start_hourglass, cancel_hourglass):
2502 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly 2502 Don't include these versions on WINDOWSNT.
2503 in xfns.c). 2503
2504 (syms_of_xdisp): Declare/initialize display-hourglass, 25042008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2505 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p. 2505
2506 (hourglass_started, start_hourglass, cancel_hourglass): New functions, 2506 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
2507 formerly in xfns.c. 2507 variables (formerly in xfns.c).
2508 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p) 2508 (show_hourglass, hide_hourglass): New prototypes (same).
2509 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started) 2509 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
2510 (start_hourglass, cancel_hourglass): Remove. 2510 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
2511 (show_hourglass, hide_hourglass): Remove prototypes and static 2511 in xfns.c).
2512 modifiers. 2512 (syms_of_xdisp): Declare/initialize display-hourglass,
2513 (syms_of_xfns): Remove display-hourglass, hourglass-delay, 2513 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
2514 hourglass_atimer, hourglass_shown_p declaration/initialization. 2514 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
2515 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p) 2515 formerly in xfns.c.
2516 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started) 2516 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2517 (start_hourglass, cancel_hourglass): Remove. 2517 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2518 (show_hourglass, hide_hourglass): Remove prototypes and static 2518 (start_hourglass, cancel_hourglass): Remove.
2519 modifiers. 2519 (show_hourglass, hide_hourglass): Remove prototypes and static
2520 (syms_of_macfns): Remove display-hourglass, hourglass-delay, 2520 modifiers.
2521 hourglass_atimer, hourglass_shown_p declaration/initialization. 2521 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
2522 * w32fns.c (display_hourglass_p, Vhourglass_delay) 2522 hourglass_atimer, hourglass_shown_p declaration/initialization.
2523 (DEFAULT_HOURGLASS_DELAY): Remove. 2523 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2524 (syms_of_w32fns): Remove display-hourglass, hourglass-delay, 2524 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2525 hourglass_shown_p declaration/initialization. 2525 (start_hourglass, cancel_hourglass): Remove.
2526 2526 (show_hourglass, hide_hourglass): Remove prototypes and static
25272008-07-14 Jason Rumney <jasonr@gnu.org> 2527 modifiers.
2528 2528 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
2529 * w32fns.c (w32_get_arg): Remove wrapper function. 2529 hourglass_atimer, hourglass_shown_p declaration/initialization.
2530 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg 2530 * w32fns.c (display_hourglass_p, Vhourglass_delay)
2531 directly. 2531 (DEFAULT_HOURGLASS_DELAY): Remove.
2532 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly. 2532 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
2533 2533 hourglass_shown_p declaration/initialization.
25342008-07-14 Kenichi Handa <handa@m17n.org> 2534
2535 25352008-07-14 Jason Rumney <jasonr@gnu.org>
2536 * xfont.c (xfont_open): Add workaround for X's bug. 2536
2537 2537 * w32fns.c (w32_get_arg): Remove wrapper function.
25382008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) 2538 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
2539 2539 directly.
2540 * fontset.c: Include <stdio.h> unconditionally. 2540 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
2541 2541
25422008-07-13 Michael Albinus <michael.albinus@gmx.de> 25422008-07-14 Kenichi Handa <handa@m17n.org>
2543 2543
2544 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments 2544 * xfont.c (xfont_open): Add workaround for X's bug.
2545 for filtering. 2545
2546 25462008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
25472008-07-13 Dan Nicolaescu <dann@ics.uci.edu> 2547
2548 2548 * fontset.c: Include <stdio.h> unconditionally.
2549 * s/vms.h: Use __GNUC__ instead of _GNUC_. 2549
2550 25502008-07-13 Michael Albinus <michael.albinus@gmx.de>
2551 * m/macppc.h: 2551
2552 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals. 2552 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
2553 2553 for filtering.
2554 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default 2554
2555 (SPECIAL_EMACS_INT): 25552008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2556 * m/ia64.h (SPECIAL_EMACS_INT): 2556
2557 * m/amdx86-64.h (SPECIAL_EMACS_INT): 2557 * s/vms.h: Use __GNUC__ instead of _GNUC_.
2558 * s/gnu.h (NLIST_STRUCT): 2558
2559 * s/aix4-2.h (X11R5_INHIBIT_I18N): 2559 * m/macppc.h:
2560 * s/gnu-linux.h (LINUX): 2560 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
2561 * s/msdos.h (HAVE_FACES): 2561
2562 * s/ms-w32.h (HAVE_FACES): Don't define, unused. 2562 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
2563 2563 (SPECIAL_EMACS_INT):
2564 * systty.h: 2564 * m/ia64.h (SPECIAL_EMACS_INT):
2565 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used 2565 * m/amdx86-64.h (SPECIAL_EMACS_INT):
2566 anymore. 2566 * s/gnu.h (NLIST_STRUCT):
2567 2567 * s/aix4-2.h (X11R5_INHIBIT_I18N):
25682008-07-12 Dan Nicolaescu <dann@ics.uci.edu> 2568 * s/gnu-linux.h (LINUX):
2569 2569 * s/msdos.h (HAVE_FACES):
2570 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was 2570 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
2571 always defined as int. 2571
2572 2572 * systty.h:
2573 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT): 2573 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
2574 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT): 2574 anymore.
2575 * s/gnu-linux.h (HAVE_WAIT_HEADER): 2575
2576 * s/freebsd.h (HAVE_WAIT_HEADER): 25762008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2577 * s/bsd-common.h (HAVE_UNION_WAIT): 2577
2578 * s/aix4-2.h (HAVE_WAIT_HEADER): 2578 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
2579 * m/mips.h (HAVE_UNION_WAIT): 2579 always defined as int.
2580 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used. 2580
2581 (COFF, static): Do not define, they are undefined later in the file. 2581 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
2582 2582 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
2583 * process.c (update_status): Don't use a union. 2583 * s/gnu-linux.h (HAVE_WAIT_HEADER):
2584 (status_convert): 2584 * s/freebsd.h (HAVE_WAIT_HEADER):
2585 (sigchld_handler): Use int instead of WAITTYPE. 2585 * s/bsd-common.h (HAVE_UNION_WAIT):
2586 2586 * s/aix4-2.h (HAVE_WAIT_HEADER):
25872008-07-12 Chong Yidong <cyd@stupidchicken.com> 2587 * m/mips.h (HAVE_UNION_WAIT):
2588 2588 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
2589 * indent.c (Fvertical_motion): Restore hscroll before moving to 2589 (COFF, static): Do not define, they are undefined later in the file.
2590 goal column. 2590
2591 2591 * process.c (update_status): Don't use a union.
25922008-07-11 Dan Nicolaescu <dann@ics.uci.edu> 2592 (status_convert):
2593 2593 (sigchld_handler): Use int instead of WAITTYPE.
2594 * lisp.h: Remove left over code. 2594
2595 25952008-07-12 Chong Yidong <cyd@stupidchicken.com>
25962008-07-11 Andreas Schwab <schwab@suse.de> 2596
2597 2597 * indent.c (Fvertical_motion): Restore hscroll before moving to
2598 * lisp.h: Fix logic in last change. 2598 goal column.
2599 2599
2600 * menu.h: New file. 26002008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2601 * menu.c: Include it. 2601
2602 * xmenu.c: Likewise. 2602 * lisp.h: Remove left over code.
2603 * Makefile.in: Update dependencies. 2603
2604 26042008-07-11 Andreas Schwab <schwab@suse.de>
26052008-07-11 Kenichi Handa <handa@m17n.org> 2605
2606 2606 * lisp.h: Fix logic in last change.
2607 * fontset.c (fontset_from_font): Cancel the previous change. 2607
2608 2608 * menu.h: New file.
26092008-07-11 Dan Nicolaescu <dann@ics.uci.edu> 2609 * menu.c: Include it.
2610 2610 * xmenu.c: Likewise.
2611 * lisp.h: 2611 * Makefile.in: Update dependencies.
2612 * w32heap.c: 2612
2613 * emacs.c: 26132008-07-11 Kenichi Handa <handa@m17n.org>
2614 * alloc.c: Replace all references of NO_UNION_TYPE with 2614
2615 USE_LISP_UNION_TYPE. 2615 * fontset.c (fontset_from_font): Cancel the previous change.
2616 2616
2617 * m/xtensa.h (NO_UNION_TYPE): 26172008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2618 * m/vax.h (NO_UNION_TYPE): 2618
2619 * m/template.h (NO_UNION_TYPE): 2619 * lisp.h:
2620 * m/sparc.h (NO_UNION_TYPE): 2620 * w32heap.c:
2621 * m/mips.h (NO_UNION_TYPE): 2621 * emacs.c:
2622 * m/macppc.h (NO_UNION_TYPE): 2622 * alloc.c: Replace all references of NO_UNION_TYPE with
2623 * m/m68k.h (NO_UNION_TYPE): 2623 USE_LISP_UNION_TYPE.
2624 * m/iris4d.h (NO_UNION_TYPE): 2624
2625 * m/intel386.h (NO_UNION_TYPE): 2625 * m/xtensa.h (NO_UNION_TYPE):
2626 * m/ibms390x.h (NO_UNION_TYPE): 2626 * m/vax.h (NO_UNION_TYPE):
2627 * m/ibms390.h (NO_UNION_TYPE): 2627 * m/template.h (NO_UNION_TYPE):
2628 * m/ibmrs6000.h (NO_UNION_TYPE): 2628 * m/sparc.h (NO_UNION_TYPE):
2629 * m/ia64.h (NO_UNION_TYPE): 2629 * m/mips.h (NO_UNION_TYPE):
2630 * m/hp800.h (NO_UNION_TYPE): 2630 * m/macppc.h (NO_UNION_TYPE):
2631 * m/arm.h (NO_UNION_TYPE): 2631 * m/m68k.h (NO_UNION_TYPE):
2632 * m/amdx86-64.h (NO_UNION_TYPE): 2632 * m/iris4d.h (NO_UNION_TYPE):
2633 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were 2633 * m/intel386.h (NO_UNION_TYPE):
2634 defining it the same. 2634 * m/ibms390x.h (NO_UNION_TYPE):
2635 2635 * m/ibms390.h (NO_UNION_TYPE):
26362008-07-10 Chong Yidong <cyd@stupidchicken.com> 2636 * m/ibmrs6000.h (NO_UNION_TYPE):
2637 2637 * m/ia64.h (NO_UNION_TYPE):
2638 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line. 2638 * m/hp800.h (NO_UNION_TYPE):
2639 2639 * m/arm.h (NO_UNION_TYPE):
26402008-07-10 Dan Nicolaescu <dann@ics.uci.edu> 2640 * m/amdx86-64.h (NO_UNION_TYPE):
2641 2641 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
2642 * fileio.c: 2642 defining it the same.
2643 * sysdep.c 2643
2644 * systty.h: 26442008-07-10 Chong Yidong <cyd@stupidchicken.com>
2645 * m/ibmrs6000.h: 2645
2646 * m/iris4d.h: 2646 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
2647 * s/aix4-2.h: 2647
2648 * s/freebsd.h: 26482008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2649 * s/gnu-linux.h: 2649
2650 * s/hpux10-20.h: 2650 * fileio.c:
2651 * s/hpux11.h: 2651 * sysdep.c
2652 * s/netbsd.h: 2652 * systty.h:
2653 * s/sol2-3.h: 2653 * m/ibmrs6000.h:
2654 * s/sol2-4.h: 2654 * m/iris4d.h:
2655 * s/sol2.h: 2655 * s/aix4-2.h:
2656 * s/usg5-4.h: 2656 * s/freebsd.h:
2657 * s/vms.h: Remove references to unused variables. 2657 * s/gnu-linux.h:
2658 2658 * s/hpux10-20.h:
26592008-07-10 Andreas Schwab <schwab@suse.de> 2659 * s/hpux11.h:
2660 2660 * s/netbsd.h:
2661 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from 2661 * s/sol2-3.h:
2662 pattern before matching the generic family. 2662 * s/sol2-4.h:
2663 2663 * s/sol2.h:
26642008-07-10 Dan Nicolaescu <dann@ics.uci.edu> 2664 * s/usg5-4.h:
2665 2665 * s/vms.h: Remove references to unused variables.
2666 * unexec.c: 2666
2667 * s/vms.h: 26672008-07-10 Andreas Schwab <schwab@suse.de>
2668 * s/usg5-4-2.h: 2668
2669 * s/sol2-5.h: 2669 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
2670 * s/freebsd.h: 2670 pattern before matching the generic family.
2671 * s/darwin.h: Remove dead code. 2671
2672 26722008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2673 * m/template.h: 2673
2674 * m/sparc.h: 2674 * unexec.c:
2675 * m/mips.h: 2675 * s/vms.h:
2676 * m/m68k.h: 2676 * s/usg5-4-2.h:
2677 * m/iris4d.h: 2677 * s/sol2-5.h:
2678 * m/intel386.h: 2678 * s/freebsd.h:
2679 * m/ibms390x.h: 2679 * s/darwin.h: Remove dead code.
2680 * m/ibms390.h: 2680
2681 * m/ia64.h: 2681 * m/template.h:
2682 * m/hp800.h: 2682 * m/sparc.h:
2683 * m/arm.h: 2683 * m/mips.h:
2684 * m/amdx86-64.h: Remove dead code and references to unused 2684 * m/m68k.h:
2685 and compiler defined symbols. 2685 * m/iris4d.h:
2686 2686 * m/intel386.h:
2687 * unexmips.c: 2687 * m/ibms390x.h:
2688 * unexelf.c: Remove references to desupported systems. 2688 * m/ibms390.h:
2689 2689 * m/ia64.h:
2690 * m/powermac.h: Remove file, it is now identical to m/macppc.h. 2690 * m/hp800.h:
2691 2691 * m/arm.h:
2692 * m/powermac.h: Remove boilerplate comments. 2692 * m/amdx86-64.h: Remove dead code and references to unused
2693 (NO_REMAP): Remove unused definition. 2693 and compiler defined symbols.
2694 2694
2695 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files 2695 * unexmips.c:
2696 define them. 2696 * unexelf.c: Remove references to desupported systems.
2697 2697
26982008-07-10 Kenichi Handa <handa@m17n.org> 2698 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
2699 2699
2700 * xfont.c (xfont_open): Log the reason of failure. 2700 * m/powermac.h: Remove boilerplate comments.
2701 2701 (NO_REMAP): Remove unused definition.
27022008-07-09 Stefan Monnier <monnier@iro.umontreal.ca> 2702
2703 2703 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
2704 * fontset.c (fontset_get_font_group): 2704 define them.
2705 * font.c (font_check_otf): Specify argument types. 2705
2706 27062008-07-10 Kenichi Handa <handa@m17n.org>
27072008-07-09 Kenichi Handa <handa@m17n.org> 2707
2708 2708 * xfont.c (xfont_open): Log the reason of failure.
2709 * coding.c (detect_coding_utf_8): Set detect_info->found only when 2709
2710 non-ASCII char is found. 27102008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
2711 2711
2712 * fontset.c (fontset_compare_rfontdef): Fix plus/minus. 2712 * fontset.c (fontset_get_font_group):
2713 (reorder_font_vector): Change the arg preferred_family to font. 2713 * font.c (font_check_otf): Specify argument types.
2714 Prefer the spec matching with font. 2714
2715 (fontset_get_font_group): New function. 27152008-07-09 Kenichi Handa <handa@m17n.org>
2716 (fontset_find_font): Change the format of an element of a realized 2716
2717 fontset. Use fontset_get_font_group. 2717 * coding.c (detect_coding_utf_8): Set detect_info->found only when
2718 (fontset_font): Try the current fontset, the default fontset, the 2718 non-ASCII char is found.
2719 fallbacks of the current fontset, and the fallbacks of the default 2719
2720 fontset in this order. 2720 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
2721 (face_for_char): Delete the shortcut to use the current font. 2721 (reorder_font_vector): Change the arg preferred_family to font.
2722 (fontset_from_font): Don't set fonts for Latin in the fontset. 2722 Prefer the spec matching with font.
2723 2723 (fontset_get_font_group): New function.
2724 * font.h (font_make_object, font_match_p): Adjust prototypes. 2724 (fontset_find_font): Change the format of an element of a realized
2725 2725 fontset. Use fontset_get_font_group.
2726 * ftfont.h [FT_BDF_H]: Include FT_BDF_H. 2726 (fontset_font): Try the current fontset, the default fontset, the
2727 2727 fallbacks of the current fontset, and the fallbacks of the default
2728 * font.c (font_make_object): New arg entity and pixelsize. 2728 fontset in this order.
2729 (font_check_otf_features, font_check_otf): New functions. 2729 (face_for_char): Delete the shortcut to use the current font.
2730 (font_match_p): Check :lang, :script, and :otf properties. 2730 (fontset_from_font): Don't set fonts for Latin in the fontset.
2731 2731
2732 * xfont.c (xfont_open): Adjust it for the change of 2732 * font.h (font_make_object, font_match_p): Adjust prototypes.
2733 font_make_object. 2733
2734 (xfont_text_extents): Fix initial setting of metrics. 2734 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
2735 2735
2736 * ftfont.c (struct ftfont_info): New member index, delete member 2736 * font.c (font_make_object): New arg entity and pixelsize.
2737 fc_charset_idx. Make the member order compatible with struct 2737 (font_check_otf_features, font_check_otf): New functions.
2738 xftfont_info. 2738 (font_match_p): Check :lang, :script, and :otf properties.
2739 (fc_charset_table): Change charset names to registry names. 2739
2740 (ftfont_pattern_entity): Delete the args registry and 2740 * xfont.c (xfont_open): Adjust it for the change of
2741 fc_charset_idx. Change the value of :font-entity property 2741 font_make_object.
2742 to (FONTNAME . INDEX). Always set :registry property to 2742 (xfont_text_extents): Fix initial setting of metrics.
2743 `iso10646-1'. 2743
2744 (struct ftfont_cache_data): New struct. 2744 * ftfont.c (struct ftfont_info): New member index, delete member
2745 (ftfont_lookup_cache): New arg for_face. 2745 fc_charset_idx. Make the member order compatible with struct
2746 (ftfont_get_fc_charset, ftfont_get_otf): New functions. 2746 xftfont_info.
2747 (ftfont_driver): Set the member otf_capability. 2747 (fc_charset_table): Change charset names to registry names.
2748 (ftfont_get_charset): Adjust it for the change of 2748 (ftfont_pattern_entity): Delete the args registry and
2749 fc_charset_table. 2749 fc_charset_idx. Change the value of :font-entity property
2750 (OTF_TAG_SYM): New macro. 2750 to (FONTNAME . INDEX). Always set :registry property to
2751 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it 2751 `iso10646-1'.
2752 for the change of fc_charset_table. 2752 (struct ftfont_cache_data): New struct.
2753 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and 2753 (ftfont_lookup_cache): New arg for_face.
2754 ftfont_pattern_entity. Add FC_INDEX to objset. 2754 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
2755 (ftfont_match): Adjust it for the change of ftfont_spec_pattern 2755 (ftfont_driver): Set the member otf_capability.
2756 and ftfont_pattern_entity. 2756 (ftfont_get_charset): Adjust it for the change of
2757 (ftfont_open): Adjust it for the change of ftfont_lookup_cache, 2757 fc_charset_table.
2758 font_make_object, struct ftfont_info. 2758 (OTF_TAG_SYM): New macro.
2759 (ftfont_has_char): Use ftfont_get_fc_charset. 2759 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
2760 (ftfont_otf_features, ftfont_otf_capability): New functions. 2760 for the change of fc_charset_table.
2761 (ftfont_shape): Use ftfont_get_otf. 2761 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
2762 (ftfont_text_extents): Fix initial setting of metrics. 2762 ftfont_pattern_entity. Add FC_INDEX to objset.
2763 2763 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
2764 * xftfont.c (struct xftfont_info): New member ft_size. Make the 2764 and ftfont_pattern_entity.
2765 member order compatible with struct ftfont_info. 2765 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
2766 (xftfont_open): Add FC_CHARSET to the pattern. Set 2766 font_make_object, struct ftfont_info.
2767 xftfont_info->ft_size. Don't unlock the face. Check BDF 2767 (ftfont_has_char): Use ftfont_get_fc_charset.
2768 properties if appropriate. 2768 (ftfont_otf_features, ftfont_otf_capability): New functions.
2769 (xftfont_close): Unlock the face. 2769 (ftfont_shape): Use ftfont_get_otf.
2770 (xftfont_anchor_point, xftfont_shape): Deleted. 2770 (ftfont_text_extents): Fix initial setting of metrics.
2771 (syms_of_xftfont): Don't set members anchor_point and shape of 2771
2772 xftfont_driver. 2772 * xftfont.c (struct xftfont_info): New member ft_size. Make the
2773 2773 member order compatible with struct ftfont_info.
2774 * w32uniscribe.c (uniscribe_open): Adjust it for the change of 2774 (xftfont_open): Add FC_CHARSET to the pattern. Set
2775 font_make_object. 2775 xftfont_info->ft_size. Don't unlock the face. Check BDF
2776 2776 properties if appropriate.
2777 * w32font.c (w32font_open): Adjust it for the change of 2777 (xftfont_close): Unlock the face.
2778 font_make_object. 2778 (xftfont_anchor_point, xftfont_shape): Deleted.
2779 (w32font_open_internal): Don't set properties of font_object here. 2779 (syms_of_xftfont): Don't set members anchor_point and shape of
2780 2780 xftfont_driver.
27812008-07-08 Chong Yidong <cyd@stupidchicken.com> 2781
2782 2782 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
2783 * macfns.c (x_create_tip_frame): 2783 font_make_object.
2784 * w32fns.c (x_create_tip_frame): 2784
2785 * xfns.c (x_create_tip_frame): Pass parameter argument to 2785 * w32font.c (w32font_open): Adjust it for the change of
2786 face-set-after-frame-default. 2786 font_make_object.
2787 2787 (w32font_open_internal): Don't set properties of font_object here.
2788 * xfaces.c (Finternal_merge_in_global_face): Save merged 2788
2789 attributes for the default face back into the face vector. 27892008-07-08 Chong Yidong <cyd@stupidchicken.com>
2790 2790
27912008-07-08 Andreas Schwab <schwab@suse.de> 2791 * macfns.c (x_create_tip_frame):
2792 2792 * w32fns.c (x_create_tip_frame):
2793 * fontset.h: Declare fontset_from_font. Don't declare 2793 * xfns.c (x_create_tip_frame): Pass parameter argument to
2794 new_fontset_from_font and fontset_from_font_name. 2794 face-set-after-frame-default.
2795 * xterm.c: Include "fontset.h". 2795
2796 * Makefile.in (xterm.o): Update dependencies. 2796 * xfaces.c (Finternal_merge_in_global_face): Save merged
2797 2797 attributes for the default face back into the face vector.
27982008-07-08 Glenn Morris <rgm@gnu.org> 2798
2799 27992008-07-08 Andreas Schwab <schwab@suse.de>
2800 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.) 2800
2801 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc. 2801 * fontset.h: Declare fontset_from_font. Don't declare
2802 2802 new_fontset_from_font and fontset_from_font_name.
28032008-07-07 Chong Yidong <cyd@stupidchicken.com> 2803 * xterm.c: Include "fontset.h".
2804 2804 * Makefile.in (xterm.o): Update dependencies.
2805 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted. 2805
2806 (x_set_frame_parameters): Don't bind it. 28062008-07-08 Glenn Morris <rgm@gnu.org>
2807 2807
28082008-07-07 Juanma Barranquero <lekktu@gmail.com> 2808 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
2809 2809 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
2810 * w32fns.c (map_w32_filename): Declare extern. 2810
2811 28112008-07-07 Chong Yidong <cyd@stupidchicken.com>
28122008-07-07 Jason Rumney <jasonr@gnu.org> 2812
2813 2813 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
2814 * w32term.c (WS_EX_LAYERED): Define if not already. 2814 (x_set_frame_parameters): Don't bind it.
2815 2815
28162008-07-06 Chong Yidong <cyd@stupidchicken.com> 28162008-07-07 Juanma Barranquero <lekktu@gmail.com>
2817 2817
2818 * xfaces.c (set_font_frame_param): Don't try to set the font 2818 * w32fns.c (map_w32_filename): Declare extern.
2819 parameter if it is still unspecified in the lface. 2819
2820 28202008-07-07 Jason Rumney <jasonr@gnu.org>
28212008-07-05 Chong Yidong <cyd@stupidchicken.com> 2821
2822 2822 * w32term.c (WS_EX_LAYERED): Define if not already.
2823 * xfaces.c (Finternal_merge_in_global_face): Don't realize default 2823
2824 face if it didn't already exist. 28242008-07-06 Chong Yidong <cyd@stupidchicken.com>
2825 2825
2826 * xdisp.c (try_window_id): Give up if word-wrapping is on. 2826 * xfaces.c (set_font_frame_param): Don't try to set the font
2827 2827 parameter if it is still unspecified in the lface.
28282008-07-05 Andreas Schwab <schwab@suse.de> 2828
2829 28292008-07-05 Chong Yidong <cyd@stupidchicken.com>
2830 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section. 2830
2831 2831 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
28322008-07-05 Chong Yidong <cyd@stupidchicken.com> 2832 face if it didn't already exist.
2833 2833
2834 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if 2834 * xdisp.c (try_window_id): Give up if word-wrapping is on.
2835 word-wrapping. 2835
2836 (IT_DISPLAYING_WHITESPACE): New macro. 28362008-07-05 Andreas Schwab <schwab@suse.de>
2837 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly 2837
2838 when word-wrapping. Simplify word-wrapping logic. Use correct 2838 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
2839 pixel positions when saving copies of the iterator. 2839
2840 (display_line): Use proper wrap point if the last character on a 28402008-07-05 Chong Yidong <cyd@stupidchicken.com>
2841 line was preceded by whitespace. 2841
2842 2842 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
28432008-07-04 Stefan Monnier <monnier@iro.umontreal.ca> 2843 word-wrapping.
2844 2844 (IT_DISPLAYING_WHITESPACE): New macro.
2845 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}. 2845 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
2846 2846 when word-wrapping. Simplify word-wrapping logic. Use correct
28472008-07-04 Kenichi Handa <handa@m17n.org> 2847 pixel positions when saving copies of the iterator.
2848 2848 (display_line): Use proper wrap point if the last character on a
2849 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1. 2849 line was preceded by whitespace.
2850 2850
2851 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte. 28512008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
2852 2852
28532008-07-02 Jason Rumney <jasonr@gnu.org> 2853 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
2854 2854
2855 * xfns.c (syms_of_xfns): Only define x-select-font when both 28552008-07-04 Kenichi Handa <handa@m17n.org>
2856 HAVE_FREETYPE and USE_GTK 2856
2857 2857 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
2858 * xdisp.c (next_element_from_display_vector): Move assignment out 2858
2859 of if statement. 2859 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
2860 2860
28612008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com> 28612008-07-02 Jason Rumney <jasonr@gnu.org>
2862 2862
2863 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern. 2863 * xfns.c (syms_of_xfns): Only define x-select-font when both
2864 2864 HAVE_FREETYPE and USE_GTK
2865 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars. 2865
2866 (syms_of_fileio): Initialize and export them. 2866 * xdisp.c (next_element_from_display_vector): Move assignment out
2867 (Fdelete_directory, Fdelete_file): Optionally delete via trash. 2867 of if statement.
2868 2868
2869 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already. 28692008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
2870 (Fsystem_move_file_to_trash): New function. 2870
2871 (syms_of_w32fns): Export it to lisp. 2871 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
2872 2872
28732008-07-01 Jason Rumney <jasonr@gnu.org> 2873 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
2874 2874 (syms_of_fileio): Initialize and export them.
2875 * w32font.c (w32font_text_extents): Don't count overhang as part 2875 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
2876 of width. 2876
2877 2877 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
28782008-06-30 Miles Bader <miles@gnu.org> 2878 (Fsystem_move_file_to_trash): New function.
2879 2879 (syms_of_w32fns): Export it to lisp.
2880 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry): 2880
2881 Add `avoid_cursor_p' field. 28812008-07-01 Jason Rumney <jasonr@gnu.org>
2882 2882
2883 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field. 2883 * w32font.c (w32font_text_extents): Don't count overhang as part
2884 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set. 2884 of width.
2885 (append_glyph, append_composite_glyph, produce_image_glyph) 2885
2886 (append_stretch_glyph): Initialize avoid_cursor_p. 28862008-06-30 Miles Bader <miles@gnu.org>
2887 (get_it_property): Rename from `get_line_height_property'. 2887
2888 (x_produce_glyphs): Use get_it_property. 2888 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
2889 (handle_line_prefix, push_display_prop): New functions. 2889 Add `avoid_cursor_p' field.
2890 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes. 2890
2891 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix): 2891 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
2892 New variables. 2892 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
2893 (syms_of_xdisp): Initialize them. 2893 (append_glyph, append_composite_glyph, produce_image_glyph)
2894 2894 (append_stretch_glyph): Initialize avoid_cursor_p.
28952008-06-30 Kenichi Handa <handa@m17n.org> 2895 (get_it_property): Rename from `get_line_height_property'.
2896 2896 (x_produce_glyphs): Use get_it_property.
2897 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and 2897 (handle_line_prefix, push_display_prop): New functions.
2898 XftDefaultSubstitute (they are called in XftFontMatch). 2898 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
2899 (xftfont_open): Fix args to ftfont_font_format. 2899 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
2900 2900 New variables.
2901 * ftfont.c (fc_charset_table): New member lang. 2901 (syms_of_xdisp): Initialize them.
2902 (ftfont_resolve_generic_family): New arg pattern. 2902
2903 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang. 29032008-06-30 Kenichi Handa <handa@m17n.org>
2904 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'. 2904
2905 (ftfont_open): Fix args to ftfont_font_format. 2905 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
2906 (ftfont_font_format): New arg filename. 2906 XftDefaultSubstitute (they are called in XftFontMatch).
2907 2907 (xftfont_open): Fix args to ftfont_font_format.
29082008-06-30 Chong Yidong <cyd@stupidchicken.com> 2908
2909 2909 * ftfont.c (fc_charset_table): New member lang.
2910 * xfaces.c (Finternal_merge_in_global_face): If default face was 2910 (ftfont_resolve_generic_family): New arg pattern.
2911 modified, realize it again. Update the font face attribute. 2911 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
2912 2912 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
29132008-06-29 Jason Rumney <jasonr@gnu.org> 2913 (ftfont_open): Fix args to ftfont_font_format.
2914 2914 (ftfont_font_format): New arg filename.
2915 * w32term.c (x_set_frame_alpha): Fix logic. 2915
2916 29162008-06-30 Chong Yidong <cyd@stupidchicken.com>
29172008-06-29 Kenichi Handa <handa@m17n.org> 2917
2918 2918 * xfaces.c (Finternal_merge_in_global_face): If default face was
2919 * fontset.c (Finternal_char_font): Return font-object instead of 2919 modified, realize it again. Update the font face attribute.
2920 font-name. 2920
2921 29212008-06-29 Jason Rumney <jasonr@gnu.org>
2922 * composite.c (get_composition_id): Fix the width calculation for TAB. 2922
2923 2923 * w32term.c (x_set_frame_alpha): Fix logic.
29242008-06-29 Stefan Monnier <monnier@iro.umontreal.ca> 2924
2925 29252008-06-29 Kenichi Handa <handa@m17n.org>
2926 * indent.c (Fvertical_motion): Properly handle float column arg. 2926
2927 2927 * fontset.c (Finternal_char_font): Return font-object instead of
29282008-06-28 Jason Rumney <jasonr@gnu.org> 2928 font-name.
2929 2929
2930 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer. 2930 * composite.c (get_composition_id): Fix the width calculation for TAB.
2931 (pfnSetLayeredWindowAttributes): New function pointer. 2931
2932 (w32_initialize): Initialize it when supported. 29322008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
2933 (x_set_frame_alpha): New function. 2933
2934 2934 * indent.c (Fvertical_motion): Properly handle float column arg.
2935 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'. 2935
2936 (w32_frame_parm_handlers): Set alpha handler. 29362008-06-28 Jason Rumney <jasonr@gnu.org>
2937 2937
2938 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha. 2938 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
2939 2939 (pfnSetLayeredWindowAttributes): New function pointer.
29402008-06-27 Jason Rumney <jasonr@gnu.org> 2940 (w32_initialize): Initialize it when supported.
2941 2941 (x_set_frame_alpha): New function.
2942 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight) 2942
2943 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions. 2943 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
2944 (w32_to_x_charset, x_to_w32_charset) 2944 (w32_frame_parm_handlers): Set alpha handler.
2945 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) 2945
2946 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) 2946 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
2947 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) 2947
2948 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) 29482008-06-27 Jason Rumney <jasonr@gnu.org>
2949 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) 2949
2950 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) 2950 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
2951 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c. 2951 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
2952 (Qw32_charset_unicode): Remove. 2952 (w32_to_x_charset, x_to_w32_charset)
2953 (syms_of_w32fns): Update for above changes. 2953 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2954 2954 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2955 * w32font.c (w32_to_x_charset, x_to_w32_charset) 2955 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2956 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) 2956 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2957 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) 2957 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2958 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) 2958 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2959 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) 2959 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
2960 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) 2960 (Qw32_charset_unicode): Remove.
2961 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) 2961 (syms_of_w32fns): Update for above changes.
2962 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c. 2962
2963 (syms_of_w32font): Update for above changes. 2963 * w32font.c (w32_to_x_charset, x_to_w32_charset)
2964 2964 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
29652008-06-27 Dan Nicolaescu <dann@ics.uci.edu> 2965 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2966 2966 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2967 * s/usg5-4.h: Fix previous change: keep the correct branch of a 2967 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2968 removed #if. 2968 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2969 (USG_SHARED_LIBRARIES): Remove duplicate definition. 2969 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2970 2970 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
29712008-06-26 Juanma Barranquero <lekktu@gmail.com> 2971 (syms_of_w32font): Update for above changes.
2972 Eli Zaretskii <eliz@gnu.org> 2972
2973 29732008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2974 * makefile.w32-in (LOCAL_FLAGS): 2974
2975 Don't include WINDOWSNT, DOS_NT and _UCHAR_T. 2975 * s/usg5-4.h: Fix previous change: keep the correct branch of a
2976 2976 removed #if.
2977 * sysdep.c (_spawnlp, _getpid): 2977 (USG_SHARED_LIBRARIES): Remove duplicate definition.
2978 Declare with explicit _cdecl instead of _CRTAPI1. 2978
2979 29792008-06-26 Juanma Barranquero <lekktu@gmail.com>
2980 * editfns.c (Fget_internal_run_time): 2980 Eli Zaretskii <eliz@gnu.org>
2981 Check for WINDOWSNT with #ifdef, not #if. 2981
2982 2982 * makefile.w32-in (LOCAL_FLAGS):
29832008-06-26 Jason Rumney <jasonr@gnu.org> 2983 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
2984 2984
2985 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros. 2985 * sysdep.c (_spawnlp, _getpid):
2986 2986 Declare with explicit _cdecl instead of _CRTAPI1.
2987 * w32term.c (x_draw_glyph_string_foreground) 2987
2988 (x_draw_composite_glyph_string_foreground): Sync with xterm.c. 2988 * editfns.c (Fget_internal_run_time):
2989 Use FONT_HANDLE macro. 2989 Check for WINDOWSNT with #ifdef, not #if.
2990 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro. 2990
2991 29912008-06-26 Jason Rumney <jasonr@gnu.org>
2992 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape) 2992
2993 (uniscribe_encode_char): Use FONT_HANDLE macro. 2993 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
2994 2994
2995 * w32font.c (Fx_select_font): Use FONT_HANDLE macro. 2995 * w32term.c (x_draw_glyph_string_foreground)
2996 (w32font_text_extents): Use precast w32_font. 2996 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
2997 (w32font_close): Free cached metrics. 2997 Use FONT_HANDLE macro.
2998 (w32font_open_internal): Allocate space for name on stack. 2998 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
2999 2999
30002008-06-26 Chong Yidong <cyd@stupidchicken.com> 3000 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
3001 3001 (uniscribe_encode_char): Use FONT_HANDLE macro.
3002 * xdisp.c (extend_face_to_end_of_line): Fix last change. 3002
3003 3003 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
30042008-06-26 Jason Rumney <jasonr@gnu.org> 3004 (w32font_text_extents): Use precast w32_font.
3005 3005 (w32font_close): Free cached metrics.
3006 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro. 3006 (w32font_open_internal): Allocate space for name on stack.
3007 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants. 3007
3008 30082008-06-26 Chong Yidong <cyd@stupidchicken.com>
30092008-06-26 Juanma Barranquero <lekktu@gmail.com> 3009
3010 3010 * xdisp.c (extend_face_to_end_of_line): Fix last change.
3011 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o. 3011
3012 30122008-06-26 Jason Rumney <jasonr@gnu.org>
30132008-06-26 Jason Rumney <jasonr@gnu.org> 3013
3014 3014 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
3015 * w32bdf.c, w32bdf.h: Remove obsolete files. 3015 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
3016 3016
3017 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c. 30172008-06-26 Juanma Barranquero <lekktu@gmail.com>
3018 3018
3019 * w32gui.h: Don't include w32bdf.h. 3019 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
3020 (XCharStruct, enum w32_char_font_type, W32FontStruct): 3020
3021 Remove obsolete font support. 30212008-06-26 Jason Rumney <jasonr@gnu.org>
3022 3022
3023 * w32font.h (struct w32font_info): Remove compat_w32_font. 3023 * w32bdf.c, w32bdf.h: Remove obsolete files.
3024 Add hfont member. 3024
3025 (FONT_COMPAT): Remove obsolete macro. 3025 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
3026 3026
3027 * w32font.c (w32font_close): Remove compat code. Delete hfont member. 3027 * w32gui.h: Don't include w32bdf.h.
3028 (w32font_encode_char, w32font_text_extents): Use new hfont member. 3028 (XCharStruct, enum w32_char_font_type, W32FontStruct):
3029 (w32font_open_internal): Remove compat code. Set new hfont member. 3029 Remove obsolete font support.
3030 (Fx_select_font): Use new hfont member. 3030
3031 3031 * w32font.h (struct w32font_info): Remove compat_w32_font.
3032 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape) 3032 Add hfont member.
3033 (uniscribe_encode_char): Use new hfont member. 3033 (FONT_COMPAT): Remove obsolete macro.
3034 3034
3035 * w32term.c (x_draw_glyph_string_foreground) 3035 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
3036 (x_draw_composite_glyph_string_foreground): Use new hfont member. 3036 (w32font_encode_char, w32font_text_extents): Use new hfont member.
3037 (x_draw_glyph_string): Use metrics in w32font_info. 3037 (w32font_open_internal): Remove compat code. Set new hfont member.
3038 3038 (Fx_select_font): Use new hfont member.
30392008-06-26 Kenichi Handa <handa@m17n.org> 3039
3040 3040 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
3041 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case. 3041 (uniscribe_encode_char): Use new hfont member.
3042 3042
30432008-06-26 Dan Nicolaescu <dann@ics.uci.edu> 3043 * w32term.c (x_draw_glyph_string_foreground)
3044 3044 (x_draw_composite_glyph_string_foreground): Use new hfont member.
3045 * unexnext.c: 3045 (x_draw_glyph_string): Use metrics in w32font_info.
3046 * m/ews4800.h: 3046
3047 * m/hp9000s300.h: 30472008-06-26 Kenichi Handa <handa@m17n.org>
3048 * m/ibm370aix.h: 3048
3049 * m/mips-siemens.h: 3049 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
3050 * m/ncr386.h: 3050
3051 * m/next.h: 30512008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
3052 * m/pmax.h: 3052
3053 * m/powerpcle.h: 3053 * unexnext.c:
3054 * m/tandem-s2.h: 3054 * m/ews4800.h:
3055 * s/386bsd.h: 3055 * m/hp9000s300.h:
3056 * s/bsd386.h: 3056 * m/ibm370aix.h:
3057 * s/bsd4-1.h: 3057 * m/mips-siemens.h:
3058 * s/bsd4-2.h: 3058 * m/ncr386.h:
3059 * s/bsdos2-1.h: 3059 * m/next.h:
3060 * s/bsdos2.h: 3060 * m/pmax.h:
3061 * s/bsdos3.h: 3061 * m/powerpcle.h:
3062 * s/bsdos4.h: 3062 * m/tandem-s2.h:
3063 * s/nextstep.h: 3063 * s/386bsd.h:
3064 * s/ultrix4-3.h: 3064 * s/bsd386.h:
3065 * s/usg5-0.h: 3065 * s/bsd4-1.h:
3066 * s/usg5-2-2.h: 3066 * s/bsd4-2.h:
3067 * s/usg5-2.h: 3067 * s/bsdos2-1.h:
3068 * s/usg5-4-3.h: 3068 * s/bsdos2.h:
3069 * s/ux4800.h: 3069 * s/bsdos3.h:
3070 * s/uxpds.h: 3070 * s/bsdos4.h:
3071 * s/uxpv.h: Remove support for obsolete systems. 3071 * s/nextstep.h:
3072 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h: 3072 * s/ultrix4-3.h:
3073 Remove, insert contents in s/hpux-10.20.h. 3073 * s/usg5-0.h:
3074 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h: 3074 * s/usg5-2-2.h:
3075 Remove, insert contents in s/aix4-2.h. 3075 * s/usg5-2.h:
3076 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h. 3076 * s/usg5-4-3.h:
3077 * s/bsd4-3.h: Rename to ... 3077 * s/ux4800.h:
3078 * s/bsd-common.h: ... this. 3078 * s/uxpds.h:
3079 * data.c: 3079 * s/uxpv.h: Remove support for obsolete systems.
3080 * doc.c: 3080 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
3081 * ecrt0.c: 3081 Remove, insert contents in s/hpux-10.20.h.
3082 * emacs.c: 3082 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
3083 * fileio.c: 3083 Remove, insert contents in s/aix4-2.h.
3084 * floatfns.c: 3084 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
3085 * keyboard.c: 3085 * s/bsd4-3.h: Rename to ...
3086 * mem-limits.h: 3086 * s/bsd-common.h: ... this.
3087 * print.c: 3087 * data.c:
3088 * process.c: 3088 * doc.c:
3089 * sysdep.c: 3089 * ecrt0.c:
3090 * syssignal.h: 3090 * emacs.c:
3091 * systty.h: 3091 * fileio.c:
3092 * syswait.h: 3092 * floatfns.c:
3093 * term.c: 3093 * keyboard.c:
3094 * unexec.c: 3094 * mem-limits.h:
3095 * unexelf.c: 3095 * print.c:
3096 * unexhp9k800.c: 3096 * process.c:
3097 * m/hp800.h: 3097 * sysdep.c:
3098 * m/ibmrs6000.h: 3098 * syssignal.h:
3099 * m/mips.h: 3099 * systty.h:
3100 * m/vax.h: 3100 * syswait.h:
3101 * s/darwin.h: 3101 * term.c:
3102 * s/freebsd.h: 3102 * unexec.c:
3103 * s/gnu.h: 3103 * unexelf.c:
3104 * s/ms-w32.h: 3104 * unexhp9k800.c:
3105 * s/msdos.h: 3105 * m/hp800.h:
3106 * s/netbsd.h: 3106 * m/ibmrs6000.h:
3107 * s/template.h: Remove references to obsolete variables. 3107 * m/mips.h:
3108 3108 * m/vax.h:
3109 * Makefile.in: Add dependencies for all unexec files. 3109 * s/darwin.h:
3110 (admindir): Remove unused variable. 3110 * s/freebsd.h:
3111 (UNEXEC_SRC): Remove references. 3111 * s/gnu.h:
3112 3112 * s/ms-w32.h:
31132008-06-25 Chong Yidong <cyd@stupidchicken.com> 3113 * s/msdos.h:
3114 3114 * s/netbsd.h:
3115 * xfns.c (x_default_font_parameter): If Xft is available, first 3115 * s/template.h: Remove references to obsolete variables.
3116 try Monospace-12 for the default font. 3116
3117 3117 * Makefile.in: Add dependencies for all unexec files.
31182008-06-25 Jason Rumney <jasonr@gnu.org> 3118 (admindir): Remove unused variable.
3119 3119 (UNEXEC_SRC): Remove references.
3120 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0. 3120
3121 31212008-06-25 Chong Yidong <cyd@stupidchicken.com>
31222008-06-25 Stefan Monnier <monnier@iro.umontreal.ca> 3122
3123 3123 * xfns.c (x_default_font_parameter): If Xft is available, first
3124 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile. 3124 try Monospace-12 for the default font.
3125 3125
3126 * buffer.c (syms_of_buffer): Remove default-word-wrap. 31262008-06-25 Jason Rumney <jasonr@gnu.org>
3127 3127
31282008-06-25 Juanma Barranquero <lekktu@gmail.com> 3128 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
3129 3129
3130 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix. 31302008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
3131 <scroll-conservatively>: Fix typo in docstring. 3131
3132 3132 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
3133 * xselect.c (Fx_send_client_event): Doc fix. 3133
3134 3134 * buffer.c (syms_of_buffer): Remove default-word-wrap.
31352008-06-25 Kenichi Handa <handa@m17n.org> 3135
3136 31362008-06-25 Juanma Barranquero <lekktu@gmail.com>
3137 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER. 3137
3138 3138 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
3139 * font.c (font_parse_fcname): Remove unused variables. 3139 <scroll-conservatively>: Fix typo in docstring.
3140 (font_sort_entites): Delete the arg SPEC. Caller changed. 3140
3141 Fix for the case of ! best_only. 3141 * xselect.c (Fx_send_client_event): Doc fix.
3142 (font_delete_unmatched): Check DPI and AVGWIDTH too. 3142
3143 31432008-06-25 Kenichi Handa <handa@m17n.org>
3144 * lisp.h (Fstring_to_unibyte): EXFUN it. 3144
3145 3145 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
3146 * character.h (str_to_unibyte): Extern it. 3146
3147 3147 * font.c (font_parse_fcname): Remove unused variables.
3148 * character.c (str_to_unibyte): New function. 3148 (font_sort_entites): Delete the arg SPEC. Caller changed.
3149 3149 Fix for the case of ! best_only.
3150 * fns.c (Fstring_to_unibyte): New function. 3150 (font_delete_unmatched): Check DPI and AVGWIDTH too.
3151 (syms_of_fns): Defsubr it. 3151
3152 3152 * lisp.h (Fstring_to_unibyte): EXFUN it.
31532008-06-24 Kenichi Handa <handa@m17n.org> 3153
3154 3154 * character.h (str_to_unibyte): Extern it.
3155 * font.c (font_score): Even if the PIXEL_SIZE is the same, check 3155
3156 DPI too. 3156 * character.c (str_to_unibyte): New function.
3157 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too. 3157
3158 3158 * fns.c (Fstring_to_unibyte): New function.
31592008-06-24 Andreas Schwab <schwab@suse.de> 3159 (syms_of_fns): Defsubr it.
3160 3160
3161 * Makefile.in (${lispsource}loaddefs.el): Rename from 31612008-06-24 Kenichi Handa <handa@m17n.org>
3162 ../lisp/loaddefs.el. 3162
3163 (bootstrap-clean): Do what distclean does but don't remove 3163 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
3164 Makefile. 3164 DPI too.
3165 (distclean): Depend on bootstrap-clean and remove Makefile. 3165 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
3166 3166
31672008-06-24 Chong Yidong <cyd@stupidchicken.com> 31672008-06-24 Andreas Schwab <schwab@suse.de>
3168 3168
3169 * buffer.h (struct buffer): New member word_wrap. 3169 * Makefile.in (${lispsource}loaddefs.el): Rename from
3170 3170 ../lisp/loaddefs.el.
3171 * buffer.c (syms_of_buffer): New variables default-word-wrap and 3171 (bootstrap-clean): Do what distclean does but don't remove
3172 word-wrap. 3172 Makefile.
3173 (init_buffer_once): Initialize them. 3173 (distclean): Depend on bootstrap-clean and remove Makefile.
3174 3174
3175 * dispextern.h (struct it): Replace bool truncate_lines_p with a 31752008-06-24 Chong Yidong <cyd@stupidchicken.com>
3176 line_wrap enum possessing three possible values. 3176
3177 3177 * buffer.h (struct buffer): New member word_wrap.
3178 * termopts.h: Replace truncate_partial_width_windows with 3178
3179 Vtruncate_partial_width_windows. 3179 * buffer.c (syms_of_buffer): New variables default-word-wrap and
3180 3180 word-wrap.
3181 * dispnew.c (direct_output_for_insert): Avoid direct output when 3181 (init_buffer_once): Initialize them.
3182 inserting a space with word wrap on. 3182
3183 3183 * dispextern.h (struct it): Replace bool truncate_lines_p with a
3184 * indent.c (compute_motion): Obey integer values of 3184 line_wrap enum possessing three possible values.
3185 truncate-partial-width-windows. 3185
3186 3186 * termopts.h: Replace truncate_partial_width_windows with
3187 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object, 3187 Vtruncate_partial_width_windows.
3188 replacing truncate_partial_width_windows. 3188
3189 (init_iterator): If Vtruncate_partial_width_windows is an integer, 3189 * dispnew.c (direct_output_for_insert): Avoid direct output when
3190 truncate only if the window width is below that integer. 3190 inserting a space with word wrap on.
3191 (start_display, resize_mini_window, produce_stretch_glyph) 3191
3192 (display_string, move_it_in_display_line_to): Use line_wrap. 3192 * indent.c (compute_motion): Obey integer values of
3193 (back_to_previous_visible_line_start, reseat_1): Reset 3193 truncate-partial-width-windows.
3194 string_from_display_prop_p. 3194
3195 (display_line): Extend default face to end of line when wrapping. 3195 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
3196 3196 replacing truncate_partial_width_windows.
31972008-06-24 Kim F. Storm <storm@cua.dk> 3197 (init_iterator): If Vtruncate_partial_width_windows is an integer,
3198 3198 truncate only if the window width is below that integer.
3199 * xdisp.c (display_line, move_it_in_display_line_to): Add ability 3199 (start_display, resize_mini_window, produce_stretch_glyph)
3200 to wrap continued lines at word boundaries. 3200 (display_string, move_it_in_display_line_to): Use line_wrap.
3201 3201 (back_to_previous_visible_line_start, reseat_1): Reset
32022008-06-24 Jason Rumney <jasonr@gnu.org> 3202 string_from_display_prop_p.
3203 3203 (display_line): Extend default face to end of line when wrapping.
3204 * font.c (Ffont_face_attributes): Multiply pixel size before point 3204
3205 conversion to avoid multiplying rounding error. 32052008-06-24 Kim F. Storm <storm@cua.dk>
3206 3206
32072008-06-23 Jason Rumney <jasonr@gnu.org> 3207 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
3208 3208 to wrap continued lines at word boundaries.
3209 * w32term.c (x_draw_glyph_string_background) 3209
3210 (x_draw_glyph_string): Remove old bdf font code. 32102008-06-24 Jason Rumney <jasonr@gnu.org>
3211 3211
3212 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove. 3212 * font.c (Ffont_face_attributes): Multiply pixel size before point
3213 3213 conversion to avoid multiplying rounding error.
32142008-06-22 Kenichi Handa <handa@m17n.org> 3214
3215 32152008-06-23 Jason Rumney <jasonr@gnu.org>
3216 * font.c (font_find_for_lface): Try the adstyle specified in 3216
3217 the property of LFACE_FONT of LFACE (if any). 3217 * w32term.c (x_draw_glyph_string_background)
3218 3218 (x_draw_glyph_string): Remove old bdf font code.
32192008-06-21 Seiji Zenitani <zenitani@mac.com> 3219
3220 Ryo Yoshitake <ryo@shiftmode.net> 3220 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
3221 3221
3222 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437. 32222008-06-22 Kenichi Handa <handa@m17n.org>
3223 3223
32242008-06-22 Stefan Monnier <monnier@iro.umontreal.ca> 3224 * font.c (font_find_for_lface): Try the adstyle specified in
3225 3225 the property of LFACE_FONT of LFACE (if any).
3226 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el): 3226
3227 Use $(BOOTSTRAPEMACS) rather than witness-emacs. 32272008-06-21 Seiji Zenitani <zenitani@mac.com>
3228 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it. 3228 Ryo Yoshitake <ryo@shiftmode.net>
3229 (witness-emacs): Remove. 3229
3230 (lisp, shortlisp): Move loaddefs.el earlier. 3230 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
3231 (mostlyclean): Forget about witness-emacs. 3231
3232 32322008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
32332008-06-22 Glenn Morris <rgm@gnu.org> 3233
3234 3234 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
3235 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}. 3235 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
3236 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes. 3236 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
3237 3237 (witness-emacs): Remove.
32382008-06-21 Stefan Monnier <monnier@iro.umontreal.ca> 3238 (lisp, shortlisp): Move loaddefs.el earlier.
3239 3239 (mostlyclean): Forget about witness-emacs.
3240 * Makefile.in (PRECOMP): Remove. 3240
3241 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP. 32412008-06-22 Glenn Morris <rgm@gnu.org>
3242 (witness-emacs): Run `compile-first'. 3242
3243 (.el.elc): Use the new compile-onefile target. 3243 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
3244 3244 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
32452008-06-21 Kenichi Handa <handa@m17n.org> 3245
3246 32462008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
3247 * xftfont.c (xftfont_open): Handle QCembolden only when 3247
3248 FC_EMBOLDEN is defined. 3248 * Makefile.in (PRECOMP): Remove.
3249 3249 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
32502008-06-21 Andreas Schwab <schwab@suse.de> 3250 (witness-emacs): Run `compile-first'.
3251 3251 (.el.elc): Use the new compile-onefile target.
3252 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource). 3252
3253 (.el.elc): Likewise. 32532008-06-21 Kenichi Handa <handa@m17n.org>
3254 3254
32552008-06-21 Miles Bader <miles@gnu.org> 3255 * xftfont.c (xftfont_open): Handle QCembolden only when
3256 3256 FC_EMBOLDEN is defined.
3257 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp 3257
3258 build dir, not the lisp source dir. 32582008-06-21 Andreas Schwab <schwab@suse.de>
3259 3259
32602008-06-21 Stefan Monnier <monnier@iro.umontreal.ca> 3260 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
3261 3261 (.el.elc): Likewise.
3262 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs. 3262
3263 (bootstrapclean): Remove. 32632008-06-21 Miles Bader <miles@gnu.org>
3264 (.el.elc): New rule. 3264
3265 (PRECOMP): New var. 3265 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
3266 (../lisp/subdirs.el): Remove. 3266 build dir, not the lisp source dir.
3267 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency. 3267
3268 (witness-emacs): New target. 32682008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
3269 (mostlyclean): Remove witness-emacs as well. 3269
3270 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}): 3270 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
3271 Add witness-emacs dependency. 3271 (bootstrapclean): Remove.
3272 3272 (.el.elc): New rule.
32732008-06-20 Chong Yidong <cyd@stupidchicken.com> 3273 (PRECOMP): New var.
3274 3274 (../lisp/subdirs.el): Remove.
3275 * font.c (Ffont_face_attributes): Omit key-attribute pairs not 3275 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
3276 defined by the font. 3276 (witness-emacs): New target.
3277 3277 (mostlyclean): Remove witness-emacs as well.
32782008-06-20 Stefan Monnier <monnier@iro.umontreal.ca> 3278 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
3279 3279 Add witness-emacs dependency.
3280 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files. 3280
3281 (bootstrap-clean): New target that keeps TAGS around. 32812008-06-20 Chong Yidong <cyd@stupidchicken.com>
3282 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets. 3282
3283 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el. 3283 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
3284 3284 defined by the font.
32852008-06-20 Jason Rumney <jasonr@gnu.org> 3285
3286 32862008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3287 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]: 3287
3288 Remove obsolete font code. 3288 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
3289 3289 (bootstrap-clean): New target that keeps TAGS around.
3290 * w32font.c (font_matches_spec): Use csb bitfield from font signature 3290 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
3291 to determine language support. 3291 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
3292 3292
32932008-06-20 Stefan Monnier <monnier@iro.umontreal.ca> 32932008-06-20 Jason Rumney <jasonr@gnu.org>
3294 3294
3295 * sysdep.c (cfsetspeed): New fun extracted from the code. 3295 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
3296 (cfmakeraw): Move before first use. 3296 Remove obsolete font code.
3297 3297
32982008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change) 3298 * w32font.c (font_matches_spec): Use csb bitfield from font signature
3299 3299 to determine language support.
3300 * sysdep.c (cfmakeraw): Provide fallback implementation. 3300
3301 (serial_configure): Provide fallback implementation of cfsetspeed. 33012008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3302 3302
33032008-06-20 Kenichi Handa <handa@m17n.org> 3303 * sysdep.c (cfsetspeed): New fun extracted from the code.
3304 3304 (cfmakeraw): Move before first use.
3305 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to 3305
3306 the pattern. 33062008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
3307 3307
3308 * fontset.c (fontset_from_font): Copy font_spec before changing 3308 * sysdep.c (cfmakeraw): Provide fallback implementation.
3309 the elements. 3309 (serial_configure): Provide fallback implementation of cfsetspeed.
3310 3310
3311 * xfns.c (x_default_font_parameter): Try "monospace-12" too. 33112008-06-20 Kenichi Handa <handa@m17n.org>
3312 3312
33132008-06-20 Stefan Monnier <monnier@iro.umontreal.ca> 3313 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
3314 3314 the pattern.
3315 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param' 3315
3316 for explicit `font' parameters. 3316 * fontset.c (fontset_from_font): Copy font_spec before changing
3317 3317 the elements.
3318 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion. 3318
3319 3319 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
33202008-06-19 Kenichi Handa <handa@m17n.org> 3320
3321 33212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3322 * frame.c: Include <ctype.h>. 3322
3323 (x_set_font_backend): Allow spacing characters in the X resource 3323 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
3324 for FontBackend. 3324 for explicit `font' parameters.
3325 3325
33262008-06-19 Stefan Monnier <monnier@iro.umontreal.ca> 3326 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
3327 3327
3328 * w32fns.c, xfns.c (Qfont_param): New var. 33282008-06-19 Kenichi Handa <handa@m17n.org>
3329 (syms_of_w32fns): Initialize it. 3329
3330 (x_default_font_parameter): Record explicit `font' into 3330 * frame.c: Include <ctype.h>.
3331 `font-parameter'. 3331 (x_set_font_backend): Allow spacing characters in the X resource
3332 3332 for FontBackend.
33332008-06-18 Kenichi Handa <handa@m17n.org> 3333
3334 33342008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
3335 * font.c (font_parse_xlfd): Fix previous change. 3335
3336 (font_parse_fcname): Don't use :fc-unknown-spec. 3336 * w32fns.c, xfns.c (Qfont_param): New var.
3337 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height. 3337 (syms_of_w32fns): Initialize it.
3338 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA. 3338 (x_default_font_parameter): Record explicit `font' into
3339 (font_add_log): Prepend the driver name to the resulting fonts. 3339 `font-parameter'.
3340 3340
3341 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed. 33412008-06-18 Kenichi Handa <handa@m17n.org>
3342 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname. 3342
3343 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset. 3343 * font.c (font_parse_xlfd): Fix previous change.
3344 3344 (font_parse_fcname): Don't use :fc-unknown-spec.
3345 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba) 3345 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
3346 (QCembolden): New variables. 3346 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
3347 (syms_of_xftfont): DEFSYM them. 3347 (font_add_log): Prepend the driver name to the resulting fonts.
3348 (xftfont_open): Call XftFontMatch. Don't trust the result of 3348
3349 XftTextExtents8 if the pixel_size is less than 5. 3349 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
3350 3350 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
33512008-06-18 Andreas Schwab <schwab@suse.de> 3351 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
3352 3352
3353 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM. 3353 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
3354 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM. 3354 (QCembolden): New variables.
3355 3355 (syms_of_xftfont): DEFSYM them.
33562008-06-18 Jason Rumney <jasonr@gnu.org> 3356 (xftfont_open): Call XftFontMatch. Don't trust the result of
3357 3357 XftTextExtents8 if the pixel_size is less than 5.
3358 * w32font.c (w32font_list, w32font_match): Add logging. 3358
3359 33592008-06-18 Andreas Schwab <schwab@suse.de>
3360 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging. 3360
3361 3361 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
33622008-06-17 Chong Yidong <cyd@stupidchicken.com> 3362 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
3363 3363
3364 * font.c (font_parse_fcname): Store divider characters for 33642008-06-18 Jason Rumney <jasonr@gnu.org>
3365 unknown-spec list. For known key symbols, intern using correct 3365
3366 symbol name. 3366 * w32font.c (w32font_list, w32font_match): Add logging.
3367 3367
33682008-06-17 Kenichi Handa <handa@m17n.org> 3368 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
3369 3369
3370 * xfaces.c (realize_default_face): If the frame is not on window 33702008-06-17 Chong Yidong <cyd@stupidchicken.com>
3371 system, set the fontset of face to nil. 3371
3372 3372 * font.c (font_parse_fcname): Store divider characters for
33732008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change) 3373 unknown-spec list. For known key symbols, intern using correct
3374 3374 symbol name.
3375 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters. 3375
3376 33762008-06-17 Kenichi Handa <handa@m17n.org>
33772008-06-16 Juanma Barranquero <lekktu@gmail.com> 3377
3378 3378 * xfaces.c (realize_default_face): If the frame is not on window
3379 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector) 3379 system, set the fontset of face to nil.
3380 (build_font_name_from_vector): Delete externs. 3380
3381 33812008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
3382 * xfaces.c (struct font_name): Don't declare. 3382
3383 3383 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
33842008-06-16 Stefan Monnier <monnier@iro.umontreal.ca> 3384
3385 33852008-06-16 Juanma Barranquero <lekktu@gmail.com>
3386 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects. 3386
3387 3387 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
33882008-06-16 Chong Yidong <cyd@stupidchicken.com> 3388 (build_font_name_from_vector): Delete externs.
3389 3389
3390 * font.c (font_parse_fcname): Fix handling of unknown-spec string. 3390 * xfaces.c (struct font_name): Don't declare.
3391 3391
33922008-06-16 Juanma Barranquero <lekktu@gmail.com> 33922008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3393 3393
3394 * font.c (Ffont_spec): Fix usage in docstring. 3394 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
3395 (Ffont_face_attributes): Doc fix. 3395
3396 33962008-06-16 Chong Yidong <cyd@stupidchicken.com>
33972008-06-16 Andreas Schwab <schwab@suse.de> 3397
3398 3398 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
3399 * font.c (Ffont_face_attributes): Fix definition. 3399
3400 34002008-06-16 Juanma Barranquero <lekktu@gmail.com>
34012008-06-16 Jason Rumney <jasonr@gnu.org> 3401
3402 3402 * font.c (Ffont_spec): Fix usage in docstring.
3403 * font.h (font_style_symbolic_from_value): Remove. 3403 (Ffont_face_attributes): Doc fix.
3404 3404
3405 * font.c (font_style_symbolic_from_value): Remove. 34052008-06-16 Andreas Schwab <schwab@suse.de>
3406 (font_style_symbolic): Revert to pre 2008-06-13 version. 3406
3407 3407 * font.c (Ffont_face_attributes): Fix definition.
3408 * w32font.c (w32_to_fc_weight): New function. 3408
3409 (w32font_full_name, logfont_to_fcname): Use it. 34092008-06-16 Jason Rumney <jasonr@gnu.org>
3410 3410
34112008-06-16 Kenichi Handa <handa@m17n.org> 3411 * font.h (font_style_symbolic_from_value): Remove.
3412 3412
3413 * font.c (font_check_object): Delete it. 3413 * font.c (font_style_symbolic_from_value): Remove.
3414 (font_clear_cache): Check if a font-object is alive. 3414 (font_style_symbolic): Revert to pre 2008-06-13 version.
3415 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a 3415
3416 font-object to nil. 3416 * w32font.c (w32_to_fc_weight): New function.
3417 (font_close_object): Don't check FONT_CLOSE_OBJECT. 3417 (w32font_full_name, logfont_to_fcname): Use it.
3418 (font_at): Don't call font_check_object. 3418
3419 (Ffont_get): Return a symbol for :weight, :slant, and :width. 34192008-06-16 Kenichi Handa <handa@m17n.org>
3420 3420
34212008-06-16 Katsumi Yamaoka <yamaoka@jpl.org> 3421 * font.c (font_check_object): Delete it.
3422 3422 (font_clear_cache): Check if a font-object is alive.
3423 * puresize.h (BASE_PURESIZE): Increase to 1230000. 3423 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
3424 3424 font-object to nil.
34252008-06-16 Chong Yidong <cyd@stupidchicken.com> 3425 (font_close_object): Don't check FONT_CLOSE_OBJECT.
3426 3426 (font_at): Don't call font_check_object.
3427 * font.c (font_parse_fcname): Correctly parse KEY=VAL values. 3427 (Ffont_get): Return a symbol for :weight, :slant, and :width.
3428 3428
34292008-06-15 Chong Yidong <cyd@stupidchicken.com> 34292008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
3430 3430
3431 * font.c (font_parse_fcname): Only one decimal point. 3431 * puresize.h (BASE_PURESIZE): Increase to 1230000.
3432 (font_unparse_fcname): Handle data in family and foundry indices 3432
3433 as symbols, not strings. 34332008-06-16 Chong Yidong <cyd@stupidchicken.com>
3434 (font_unparse_gtkname, Ffont_face_attributes): New functions. 3434
3435 3435 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
3436 * xfns.c (Fx_select_font): Give GTK font dialog the default font name. 3436
3437 34372008-06-15 Chong Yidong <cyd@stupidchicken.com>
3438 * font.h (font_unparse_gtkname): Add prototype. 3438
3439 3439 * font.c (font_parse_fcname): Only one decimal point.
34402008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change) 3440 (font_unparse_fcname): Handle data in family and foundry indices
3441 3441 as symbols, not strings.
3442 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern. 3442 (font_unparse_gtkname, Ffont_face_attributes): New functions.
3443 3443
34442008-06-15 Andreas Schwab <schwab@suse.de> 3444 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
3445 3445
3446 * font.c (font_update_drivers): Fix crash when no drivers match. 3446 * font.h (font_unparse_gtkname): Add prototype.
3447 3447
34482008-06-15 Stefan Monnier <monnier@iro.umontreal.ca> 34482008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
3449 3449
3450 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk. 3450 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
3451 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width. 3451
3452 34522008-06-15 Andreas Schwab <schwab@suse.de>
34532008-06-14 Stefan Monnier <monnier@iro.umontreal.ca> 3453
3454 3454 * font.c (font_update_drivers): Fix crash when no drivers match.
3455 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1. 3455
3456 34562008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
34572008-06-13 Stefan Monnier <monnier@iro.umontreal.ca> 3457
3458 3458 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
3459 * process.c (Fserial_process_configure, Fprocess_send_eof): 3459 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
3460 Use EQ to compare Lisp_Objects. 3460
3461 34612008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
34622008-06-13 Jason Rumney <jasonr@gnu.org> 3462
3463 3463 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
3464 * w32fns.c (Fw32_select_font): Remove old font API function. 3464
3465 34652008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3466 * w32font.c (logfont_to_fcname): New function. 3466
3467 (Fx_select_font): New font dialog function compatible with 3467 * process.c (Fserial_process_configure, Fprocess_send_eof):
3468 GTK/fontconfig version. 3468 Use EQ to compare Lisp_Objects.
3469 3469
3470 * font.c (font_style_symbolic_from_value): New function. 34702008-06-13 Jason Rumney <jasonr@gnu.org>
3471 (font_style_symbolic): Use it. 3471
3472 3472 * w32fns.c (Fw32_select_font): Remove old font API function.
3473 * font.h (font_style_symbolic_from_value): Declare new function. 3473
3474 3474 * w32font.c (logfont_to_fcname): New function.
34752008-06-13 Juanma Barranquero <lekktu@gmail.com> 3475 (Fx_select_font): New font dialog function compatible with
3476 3476 GTK/fontconfig version.
3477 * font.c (syms_of_font) <font-weight-table, font-slant-table>: 3477
3478 <font-width-table>: Fix typos in docstrings. 3478 * font.c (font_style_symbolic_from_value): New function.
3479 3479 (font_style_symbolic): Use it.
34802008-06-13 Daniel Engeler <engeler@gmail.com> 3480
3481 3481 * font.h (font_style_symbolic_from_value): Declare new function.
3482 These changes add serial port access. 3482
3483 * process.c: Add HAVE_SERIAL. 34832008-06-13 Juanma Barranquero <lekktu@gmail.com>
3484 (Fdelete_process, Fprocess_status, Fset_process_buffer) 3484
3485 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact) 3485 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
3486 (list_processes_1, select_wrapper, Fstop_process) 3486 <font-width-table>: Fix typos in docstrings.
3487 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes) 3487
3488 (status_notify): Modify to handle serial processes. 34882008-06-13 Daniel Engeler <engeler@gmail.com>
3489 [HAVE_SERIAL] (Fserial_process_configure) 3489
3490 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process): 3490 These changes add serial port access.
3491 New functions. 3491 * process.c: Add HAVE_SERIAL.
3492 * process.h (struct Lisp_Process): Add `type'. 3492 (Fdelete_process, Fprocess_status, Fset_process_buffer)
3493 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure): 3493 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
3494 New functions. 3494 (list_processes_1, select_wrapper, Fstop_process)
3495 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle 3495 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
3496 serial ports. 3496 (status_notify): Modify to handle serial processes.
3497 (serial_open, serial_configure) New functions. 3497 [HAVE_SERIAL] (Fserial_process_configure)
3498 * w32.h: Add FILE_SERIAL. 3498 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
3499 (struct _child_process): Add ovl_read, ovl_write. 3499 New functions.
3500 3500 * process.h (struct Lisp_Process): Add `type'.
35012008-06-13 Kenichi Handa <handa@m17n.org> 3501 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
3502 3502 New functions.
3503 * dispextern.h (enum lface_attribute_index): New member 3503 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
3504 LFACE_FOUNDRY_INDEX. 3504 serial ports.
3505 3505 (serial_open, serial_configure) New functions.
3506 * font.c (font_score): Delete arg alternate_families. Check only 3506 * w32.h: Add FILE_SERIAL.
3507 weight, slant, width, and size. Ignore the difference of alias 3507 (struct _child_process): Add ovl_read, ovl_write.
3508 style symbols. 3508
3509 (font_sort_entites): Adjust for the above change. Reflect the 35092008-06-13 Kenichi Handa <handa@m17n.org>
3510 order of font-driver to scores. 3510
3511 (font_list_entities): Don't check alternate_familes here. 3511 * dispextern.h (enum lface_attribute_index): New member
3512 (font_clear_prop): Handle foundry. 3512 LFACE_FOUNDRY_INDEX.
3513 (font_update_lface): Don't parse "foundry-family" form here. 3513
3514 Handle FONT_FOUNDRY_INDEX. 3514 * font.c (font_score): Delete arg alternate_families. Check only
3515 (font_find_for_lface): Likewise. Handle alternate families here. 3515 weight, slant, width, and size. Ignore the difference of alias
3516 If registry is nil, try iso8859-1 and ascii-0. 3516 style symbols.
3517 (font_open_for_lface): Pay attention to size in ENTITY. 3517 (font_sort_entites): Adjust for the above change. Reflect the
3518 (font_open_by_name): Simplify by calling font_load_for_lface. 3518 order of font-driver to scores.
3519 (free_font_driver_list): Delete it. 3519 (font_list_entities): Don't check alternate_familes here.
3520 (font_update_drivers): Preserve the order of backends. 3520 (font_clear_prop): Handle foundry.
3521 (syms_of_font): Setting of sort_shift_bits adjusted for the change 3521 (font_update_lface): Don't parse "foundry-family" form here.
3522 of font_score and font_sort_entites. 3522 Handle FONT_FOUNDRY_INDEX.
3523 (font_update_sort_order): Likewise. 3523 (font_find_for_lface): Likewise. Handle alternate families here.
3524 3524 If registry is nil, try iso8859-1 and ascii-0.
3525 * xfaces.c (LFACE_FOUNDRY): New macro. 3525 (font_open_for_lface): Pay attention to size in ENTITY.
3526 (check_lface_attrs): Check foundry. 3526 (font_open_by_name): Simplify by calling font_load_for_lface.
3527 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form. 3527 (free_font_driver_list): Delete it.
3528 (merge_face_vectors): Check foundry. 3528 (font_update_drivers): Preserve the order of backends.
3529 (merge_face_ref): Likewise. 3529 (syms_of_font): Setting of sort_shift_bits adjusted for the change
3530 (Finternal_set_lisp_face_attribute): Likewise. 3530 of font_score and font_sort_entites.
3531 (x_update_menu_appearance): Likewise. 3531 (font_update_sort_order): Likewise.
3532 (Finternal_get_lisp_face_attribute): Likewise. 3532
3533 (lface_hash): Likewise. 3533 * xfaces.c (LFACE_FOUNDRY): New macro.
3534 (lface_same_font_attributes_p): Likewise. 3534 (check_lface_attrs): Check foundry.
3535 (x_supports_face_attributes_p): Likewise. 3535 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
3536 (tty_supports_face_attributes_p): Likewise. 3536 (merge_face_vectors): Check foundry.
3537 (Finternal_set_alternative_font_family_alist): Intern strings. 3537 (merge_face_ref): Likewise.
3538 (Finternal_set_alternative_font_registry_alist): Downcase strings. 3538 (Finternal_set_lisp_face_attribute): Likewise.
3539 (realize_default_face): Set LFACE_FOUNDRY (lface). 3539 (x_update_menu_appearance): Likewise.
3540 3540 (Finternal_get_lisp_face_attribute): Likewise.
3541 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X 3541 (lface_hash): Likewise.
3542 font-driver at first. 3542 (lface_same_font_attributes_p): Likewise.
3543 3543 (x_supports_face_attributes_p): Likewise.
3544 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;". 3544 (tty_supports_face_attributes_p): Likewise.
3545 3545 (Finternal_set_alternative_font_family_alist): Intern strings.
35462008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) 3546 (Finternal_set_alternative_font_registry_alist): Downcase strings.
3547 3547 (realize_default_face): Set LFACE_FOUNDRY (lface).
3548 * lread.c (Fload): Use xfree, not free on saved_doc_string. 3548
3549 3549 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
35502008-06-12 Jim Meyering <meyering@redhat.com> 3550 font-driver at first.
3551 3551
3552 Make unexec_free handle NULL the same way free does. 3552 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
3553 * unexmacosx.c (unexec_free): Ignore a NULL argument. 3553
3554 35542008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
35552008-06-12 Stefan Monnier <monnier@iro.umontreal.ca> 3555
3556 3556 * lread.c (Fload): Use xfree, not free on saved_doc_string.
3557 * character.h (CHAR_TO_BYTE_SAFE): New macro. 3557
3558 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring. 35582008-06-12 Jim Meyering <meyering@redhat.com>
3559 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro. 3559
3560 (WEAK_ALIAS): Simplify. 3560 Make unexec_free handle NULL the same way free does.
3561 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap 3561 * unexmacosx.c (unexec_free): Ignore a NULL argument.
3562 when searching a unibyte buffer. 3562
3563 35632008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
35642008-06-12 Chong Yidong <cyd@stupidchicken.com> 3564
3565 3565 * character.h (CHAR_TO_BYTE_SAFE): New macro.
3566 * xfns.c (Fx_select_font): Rename from x-font-dialog. 3566 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
3567 3567 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
35682008-06-12 Juanma Barranquero <lekktu@gmail.com> 3568 (WEAK_ALIAS): Simplify.
3569 3569 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
3570 * w32font.c: Include ctype.h. 3570 when searching a unibyte buffer.
3571 3571
35722008-06-11 Jason Rumney <jasonr@gnu.org> 35722008-06-12 Chong Yidong <cyd@stupidchicken.com>
3573 3573
3574 * w32font.c (w32font_encode_char): Detect missing glyphs that are 3574 * xfns.c (Fx_select_font): Rename from x-font-dialog.
3575 misreported as space. 3575
3576 (add_font_entity_to_list): Support unicode-bmp and unicode-sip 35762008-06-12 Juanma Barranquero <lekktu@gmail.com>
3577 as aliases for registry iso10646-1. 3577
3578 3578 * w32font.c: Include ctype.h.
35792008-06-11 Stefan Monnier <monnier@iro.umontreal.ca> 3579
3580 35802008-06-11 Jason Rumney <jasonr@gnu.org>
3581 * buffer.c (clone_per_buffer_values): Skip `name'. 3581
3582 3582 * w32font.c (w32font_encode_char): Detect missing glyphs that are
35832008-06-11 Chong Yidong <cyd@stupidchicken.com> 3583 misreported as space.
3584 3584 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
3585 * font.c (font_parse_fcname): Fix last change; accept decimal 3585 as aliases for registry iso10646-1.
3586 points in font size. 3586
3587 35872008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
35882008-06-10 Jason Rumney <jasonr@gnu.org> 3588
3589 3589 * buffer.c (clone_per_buffer_values): Skip `name'.
3590 * w32uniscribe.c (add_opentype_font_name_to_list): 3590
3591 Skip non unicode fonts. 35912008-06-11 Chong Yidong <cyd@stupidchicken.com>
3592 3592
35932008-06-10 Chong Yidong <cyd@stupidchicken.com> 3593 * font.c (font_parse_fcname): Fix last change; accept decimal
3594 3594 points in font size.
3595 * xfns.c (Fx_font_dialog): New function. 3595
3596 35962008-06-10 Jason Rumney <jasonr@gnu.org>
3597 * gtkutil.c (xg_dialog_response_cb): Rename from 3597
3598 xg_file_response_callback. 3598 * w32uniscribe.c (add_opentype_font_name_to_list):
3599 (pop_down_dialog): Rename from pop_down_file_dialog. 3599 Skip non unicode fonts.
3600 (xg_get_file_name): Callers changed. 3600
3601 (xg_get_font_name): New function. 36012008-06-10 Chong Yidong <cyd@stupidchicken.com>
3602 3602
3603 * gtkutil.h (xg_get_font_name): Insert prototype. 3603 * xfns.c (Fx_font_dialog): New function.
3604 3604
36052008-06-10 Stefan Monnier <monnier@iro.umontreal.ca> 3605 * gtkutil.c (xg_dialog_response_cb): Rename from
3606 3606 xg_file_response_callback.
3607 * xdisp.c (underline_minimum_offset): Rename from xterm.c's 3607 (pop_down_dialog): Rename from pop_down_file_dialog.
3608 x_underline_minimum_display_offset. 3608 (xg_get_file_name): Callers changed.
3609 (syms_of_xdisp): Declare it here rather than in xterm.c. 3609 (xg_get_font_name): New function.
3610 * dispextern.h (underline_minimum_offset): Declare it. 3610
3611 * w32term.c (x_draw_glyph_string): Use it. 3611 * gtkutil.h (xg_get_font_name): Insert prototype.
3612 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c. 3612
3613 (syms_of_xterm): Don't declare it any more. 36132008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3614 (x_draw_glyph_string): Adjust to the new name. 3614
3615 3615 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
36162008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change) 3616 x_underline_minimum_display_offset.
3617 3617 (syms_of_xdisp): Declare it here rather than in xterm.c.
3618 * xterm.c (x_underline_minimum_display_offset): New var. 3618 * dispextern.h (underline_minimum_offset): Declare it.
3619 (x_draw_glyph_string): Use it. 3619 * w32term.c (x_draw_glyph_string): Use it.
3620 (syms_of_xterm): Declare it. 3620 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
3621 3621 (syms_of_xterm): Don't declare it any more.
36222008-06-10 Chong Yidong <cyd@stupidchicken.com> 3622 (x_draw_glyph_string): Adjust to the new name.
3623 3623
3624 * font.c (font_parse_fcname): Accept GTK-style font names too. 36242008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
3625 3625
36262008-06-10 Stefan Monnier <monnier@iro.umontreal.ca> 3626 * xterm.c (x_underline_minimum_display_offset): New var.
3627 3627 (x_draw_glyph_string): Use it.
3628 * dired.c (file_name_completion): Don't return t if the match is exact 3628 (syms_of_xterm): Declare it.
3629 but with different capitalization. 3629
3630 * minibuf.c (Ftry_completion): Simplify. 36302008-06-10 Chong Yidong <cyd@stupidchicken.com>
3631 3631
3632 * window.c (Vwindow_point_insertion_type): New var. 3632 * font.c (font_parse_fcname): Accept GTK-style font names too.
3633 (set_window_buffer): Use it. 3633
3634 (syms_of_window): Init and export it to Lisp. 36342008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3635 3635
36362008-06-10 Kenichi Handa <handa@m17n.org> 3636 * dired.c (file_name_completion): Don't return t if the match is exact
3637 3637 but with different capitalization.
3638 * font.h (font_intern_prop): Prototype adjusted. 3638 * minibuf.c (Ftry_completion): Simplify.
3639 3639
3640 * font.c (font_intern_prop): New arg force_symbol. 3640 * window.c (Vwindow_point_insertion_type): New var.
3641 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry): 3641 (set_window_buffer): Use it.
3642 Adjust for the change of font_intern_prop. 3642 (syms_of_window): Init and export it to Lisp.
3643 3643
3644 * ftfont.c (ftfont_pattern_entity): 36442008-06-10 Kenichi Handa <handa@m17n.org>
3645 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity) 3645
3646 (w32_registry): 3646 * font.h (font_intern_prop): Prototype adjusted.
3647 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for 3647
3648 the change of font_intern_prop. 3648 * font.c (font_intern_prop): New arg force_symbol.
3649 3649 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
36502008-06-09 Juanma Barranquero <lekktu@gmail.com> 3650 Adjust for the change of font_intern_prop.
3651 3651
3652 * w32menu.c (digest_single_submenu): Declare extern. 3652 * ftfont.c (ftfont_pattern_entity):
3653 3653 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
36542008-06-09 Jason Rumney <jasonr@gnu.org> 3654 (w32_registry):
3655 3655 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
3656 * w32term.c (x_make_frame_visible): Use alternate restore flags. 3656 the change of font_intern_prop.
3657 3657
3658 * w32menu.c (Fx_popup_menu): Unwind protect while building menu. 36582008-06-09 Juanma Barranquero <lekktu@gmail.com>
3659 (parse_single_submenu): Remove. 3659
3660 (digest_single_submenu): Remove. 3660 * w32menu.c (digest_single_submenu): Declare extern.
3661 (syms_of_w32menu): Don't initialise variables that have moved 3661
3662 to menu.c. 36622008-06-09 Jason Rumney <jasonr@gnu.org>
3663 (set_frame_menubar): Sync with version in xmenu.c. 3663
3664 (w32_menu_show): Sync with xmenu_show in xmenu.c. 3664 * w32term.c (x_make_frame_visible): Use alternate restore flags.
3665 3665
3666 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item): 3666 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
3667 Make static again. 3667 (parse_single_submenu): Remove.
3668 3668 (digest_single_submenu): Remove.
36692008-06-09 Jason Rumney <jasonr@gnu.org> 3669 (syms_of_w32menu): Don't initialise variables that have moved
3670 3670 to menu.c.
3671 Changes to w32 files related to the move of common menu code 3671 (set_frame_menubar): Sync with version in xmenu.c.
3672 to menu.c on 2008-06-08 by Chong Yidong. 3672 (w32_menu_show): Sync with xmenu_show in xmenu.c.
3673 3673
3674 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related 3674 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
3675 defs to w32gui.h. 3675 Make static again.
3676 (single_keymap_panes, push_menu_item, push_menu_pane): 3676
3677 Make globally visible. 36772008-06-09 Jason Rumney <jasonr@gnu.org>
3678 3678
3679 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc) 3679 Changes to w32 files related to the move of common menu code
3680 (local_free, malloc_widget_value, free_widget_value) 3680 to menu.c on 2008-06-08 by Chong Yidong.
3681 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE) 3681
3682 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION) 3682 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
3683 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP) 3683 defs to w32gui.h.
3684 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs. 3684 (single_keymap_panes, push_menu_item, push_menu_pane):
3685 (menu_items, menu_items_allocated, menu_items_used) 3685 Make globally visible.
3686 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars. 3686
3687 (init_menu_items, finish_menu_items, discard_menu_items) 3687 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
3688 (grow_menu_items, push_submenu_start, push_submenu_end) 3688 (local_free, malloc_widget_value, free_widget_value)
3689 (push_left_right_boundary, push_menu_pane, push_menu_item) 3689 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
3690 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items) 3690 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
3691 (free_menubar_widget_tree_value, parse_single_submenu) 3691 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
3692 (update_submenu_strings): Remove functions. 3692 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
3693 (xmalloc_widget_value): Remove and declare extern. 3693 (menu_items, menu_items_allocated, menu_items_used)
3694 3694 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
3695 * makefile.w32-in ($(SRC)/menu.$(O)): New target. 3695 (init_menu_items, finish_menu_items, discard_menu_items)
3696 (OBJ1): Build it. 3696 (grow_menu_items, push_submenu_start, push_submenu_end)
3697 3697 (push_left_right_boundary, push_menu_pane, push_menu_item)
3698 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type) 3698 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
3699 (local_heap, local_alloc, local_free, malloc_widget_value) 3699 (free_menubar_widget_tree_value, parse_single_submenu)
3700 (free_widget_value): Define here. 3700 (update_submenu_strings): Remove functions.
3701 3701 (xmalloc_widget_value): Remove and declare extern.
37022008-06-09 Kenichi Handa <handa@m17n.org> 3702
3703 3703 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
3704 * font.h (Qascii_0): Extern it. 3704 (OBJ1): Build it.
3705 3705
3706 * font.c (Qascii_0): New variable. 3706 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
3707 (syms_of_font): DEFSYM it. 3707 (local_heap, local_alloc, local_free, malloc_widget_value)
3708 (font_open_by_name): If the registry "iso8859-1" fails, try also 3708 (free_widget_value): Define here.
3709 "ascii-0". 3709
3710 37102008-06-09 Kenichi Handa <handa@m17n.org>
3711 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'. 3711
3712 3712 * font.h (Qascii_0): Extern it.
37132008-06-08 Kenichi Handa <handa@m17n.org> 3713
3714 3714 * font.c (Qascii_0): New variable.
3715 * .gdbinit (xfont): New command. 3715 (syms_of_font): DEFSYM it.
3716 3716 (font_open_by_name): If the registry "iso8859-1" fails, try also
37172008-06-08 Andreas Schwab <schwab@suse.de> 3717 "ascii-0".
3718 3718
3719 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h". 3719 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
3720 * Makefile.in (menu.o): Update dependencies. 3720
3721 37212008-06-08 Kenichi Handa <handa@m17n.org>
3722 * Makefile.in (obj): Always add menu.o. 3722
3723 * emacs.c (main): Always call syms_of_menu. 3723 * .gdbinit (xfont): New command.
3724 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW. 3724
3725 37252008-06-08 Andreas Schwab <schwab@suse.de>
37262008-06-08 Chong Yidong <cyd@stupidchicken.com> 3726
3727 3727 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
3728 * Makefile.in: Compile menu.c. 3728 * Makefile.in (menu.o): Update dependencies.
3729 3729
3730 * lisp.h: Declare syms_of_menu. 3730 * Makefile.in (obj): Always add menu.o.
3731 3731 * emacs.c (main): Always call syms_of_menu.
3732 * emacs.c (main): Call syms_of_menu. 3732 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
3733 3733
3734 * keyboard.h: Relocate platform-independent menu definitions from 37342008-06-08 Chong Yidong <cyd@stupidchicken.com>
3735 xmenu.c. 3735
3736 3736 * Makefile.in: Compile menu.c.
3737 * menu.c: New file. Relocate platform-independent menu 3737
3738 definitions from xmenu.c. Suggested by Adrian Robert. 3738 * lisp.h: Declare syms_of_menu.
3739 3739
3740 * xmenu.c: Remove platform-independent menu definitions. 3740 * emacs.c (main): Call syms_of_menu.
3741 (menu_items menu_items_inuse, menu_items_allocated) 3741
3742 (menu_items_used, menu_items_n_panes) 3742 * keyboard.h: Relocate platform-independent menu definitions from
3743 (menu_items_submenu_depth): Move to keyboard.h. 3743 xmenu.c.
3744 (init_menu_items, finish_menu_items, unuse_menu_items) 3744
3745 (discard_menu_items, restore_menu_items, save_menu_items) 3745 * menu.c: New file. Relocate platform-independent menu
3746 (grow_menu_items, push_submenu_start, push_submenu_end) 3746 definitions from xmenu.c. Suggested by Adrian Robert.
3747 (push_left_right_boundary, push_menu_pane, push_menu_item) 3747
3748 (keymap_panes, single_keymap_panes, single_menu_item) 3748 * xmenu.c: Remove platform-independent menu definitions.
3749 (list_of_panes, list_of_items, find_and_call_menu_selection) 3749 (menu_items menu_items_inuse, menu_items_allocated)
3750 (xmalloc_widget_value, free_menubar_widget_value_tree) 3750 (menu_items_used, menu_items_n_panes)
3751 (parse_single_submenu, digest_single_submenu) 3751 (menu_items_submenu_depth): Move to keyboard.h.
3752 (update_submenu_strings): Move to menu.c. 3752 (init_menu_items, finish_menu_items, unuse_menu_items)
3753 3753 (discard_menu_items, restore_menu_items, save_menu_items)
37542008-06-07 Stefan Monnier <monnier@iro.umontreal.ca> 3754 (grow_menu_items, push_submenu_start, push_submenu_end)
3755 3755 (push_left_right_boundary, push_menu_pane, push_menu_item)
3756 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case. 3756 (keymap_panes, single_keymap_panes, single_menu_item)
3757 3757 (list_of_panes, list_of_items, find_and_call_menu_selection)
37582008-06-06 Miles Bader <miles@gnu.org> 3758 (xmalloc_widget_value, free_menubar_widget_value_tree)
3759 3759 (parse_single_submenu, digest_single_submenu)
3760 * xdisp.c (x_produce_glyphs): Calculate tab width based on current 3760 (update_submenu_strings): Move to menu.c.
3761 face, not frame default. 3761
3762 37622008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
37632008-06-05 Martin Rudalics <rudalics@gmx.at> 3763
3764 3764 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
3765 * window.c (pop_up_windows, pop_up_frames) 3765
3766 (display_buffer_reuse_frames, Vpop_up_frame_function) 37662008-06-06 Miles Bader <miles@gnu.org>
3767 (Vdisplay_buffer_function, Veven_window_heights) 3767
3768 (Vspecial_display_buffer_names, Vspecial_display_regexps) 3768 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
3769 (Vspecial_display_function, Vsame_window_buffer_names) 3769 face, not frame default.
3770 (Vsame_window_regexps, split_height_threshold) 3770
3771 (Vsplit_window_preferred_function): Move those vars to window.el. 37712008-06-05 Martin Rudalics <rudalics@gmx.at>
3772 (display_buffer_1, Fspecial_display_p, Fsame_window_p) 3772
3773 (Fdisplay_buffer): Move those functions to window.el. 3773 * window.c (pop_up_windows, pop_up_frames)
3774 (syms_of_window): Remove corresponding declarations. 3774 (display_buffer_reuse_frames, Vpop_up_frame_function)
3775 (display_buffer): New function. 3775 (Vdisplay_buffer_function, Veven_window_heights)
3776 (temp_output_buffer_show, Fother_window_for_scrolling): Use it. 3776 (Vspecial_display_buffer_names, Vspecial_display_regexps)
3777 * dispnew.c (Flast_nonminibuf_frame): New function. 3777 (Vspecial_display_function, Vsame_window_buffer_names)
3778 * buffer.c (Fpop_to_buffer): Move to window.el. 3778 (Vsame_window_regexps, split_height_threshold)
3779 3779 (Vsplit_window_preferred_function): Move those vars to window.el.
37802008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> 3780 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
3781 3781 (Fdisplay_buffer): Move those functions to window.el.
3782 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p. 3782 (syms_of_window): Remove corresponding declarations.
3783 3783 (display_buffer): New function.
37842008-06-05 Kenichi Handa <handa@m17n.org> 3784 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
3785 3785 * dispnew.c (Flast_nonminibuf_frame): New function.
3786 * coding.c (detect_coding): Fix previous change. 3786 * buffer.c (Fpop_to_buffer): Move to window.el.
3787 (detect_coding_system): Likewise. 3787
3788 37882008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
37892008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> 3789
3790 3790 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
3791 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte. 3791
3792 37922008-06-05 Kenichi Handa <handa@m17n.org>
3793 * keymap.c (Vminibuffer_local_filename_must_match_map): 3793
3794 Rename from Vminibuffer_local_must_match_filename_map. 3794 * coding.c (detect_coding): Fix previous change.
3795 (syms_of_keymap): 3795 (detect_coding_system): Likewise.
3796 * minibuf.c (Fcompleting_read): Adjust accordingly. 3796
3797 * commands.h: Rename declaration as well. 37972008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3798 3798
37992008-06-05 Kenichi Handa <handa@m17n.org> 3799 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
3800 3800
3801 * font.c (Ffont_spec): Don't use font_parse_family_registry for 3801 * keymap.c (Vminibuffer_local_filename_must_match_map):
3802 family name. 3802 Rename from Vminibuffer_local_must_match_filename_map.
3803 (Ffont_put): Likewise. 3803 (syms_of_keymap):
3804 3804 * minibuf.c (Fcompleting_read): Adjust accordingly.
3805 * fontset.c (fontset_find_font): Call font_open_for_lface with the 3805 * commands.h: Rename declaration as well.
3806 current font-spec. 3806
3807 38072008-06-05 Kenichi Handa <handa@m17n.org>
3808 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it 3808
3809 is unspecified. 3809 * font.c (Ffont_spec): Don't use font_parse_family_registry for
3810 3810 family name.
3811 * xfaces.c (realize_x_face): If the font-related face attributes 3811 (Ffont_put): Likewise.
3812 are the same as those of default face, realize a new fontset from 3812
3813 default->fontset. 3813 * fontset.c (fontset_find_font): Call font_open_for_lface with the
3814 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put. 3814 current font-spec.
3815 3815
38162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> 3816 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
3817 3817 is unspecified.
3818 * xdisp.c (move_it_in_display_line_to): Improve the type of its args. 3818
3819 (move_it_in_display_line): New wrapper. 3819 * xfaces.c (realize_x_face): If the font-related face attributes
3820 3820 are the same as those of default face, realize a new fontset from
3821 * window.c (window_scroll_pixel_based_preserve_x) 3821 default->fontset.
3822 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars. 3822 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
3823 (window_scroll_pixel_based, window_scroll_line_based): 3823
3824 Use them to preserve column positions. 38242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3825 (syms_of_window): Initialize them. 3825
3826 3826 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
3827 * indent.c (Fvertical_motion): Extend first arg to allow passing an 3827 (move_it_in_display_line): New wrapper.
3828 (HPOS . VPOS) pair. 3828
3829 3829 * window.c (window_scroll_pixel_based_preserve_x)
3830 * dispextern.h (move_it_in_display_line): Declare. 3830 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
3831 3831 (window_scroll_pixel_based, window_scroll_line_based):
38322008-06-05 Juanma Barranquero <lekktu@gmail.com> 3832 Use them to preserve column positions.
3833 3833 (syms_of_window): Initialize them.
3834 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE). 3834
3835 (Fwindow_parameters): Return copy of parameter alist. Doc fix. 3835 * indent.c (Fvertical_motion): Extend first arg to allow passing an
3836 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix. 3836 (HPOS . VPOS) pair.
3837 3837
38382008-06-04 Juanma Barranquero <lekktu@gmail.com> 3838 * dispextern.h (move_it_in_display_line): Declare.
3839 3839
3840 * window.c (Fset_window_parameter): Doc fix. 38402008-06-05 Juanma Barranquero <lekktu@gmail.com>
3841 (Fwindow_parameters, Fwindow_parameter): Remove redundant check. 3841
3842 3842 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
38432008-06-04 Joakim Verona <joakim@verona.se> 3843 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
3844 3844 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
3845 * window.h (struct window): Add new member window_parameters. 3845
3846 38462008-06-04 Juanma Barranquero <lekktu@gmail.com>
3847 * window.c (Fwindow_parameters, Fwindow_parameter) 3847
3848 (Fset_window_parameter): New defuns. 3848 * window.c (Fset_window_parameter): Doc fix.
3849 (syms_of_window): Defsubr the new defuns. 3849 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
3850 (make_window): Initialize window_parameters to nil. 3850
3851 38512008-06-04 Joakim Verona <joakim@verona.se>
38522008-06-04 John Paul Wallington <jpw@pobox.com> 3852
3853 3853 * window.h (struct window): Add new member window_parameters.
3854 * eval.c (Fdefmacro): Doc fix. 3854
3855 3855 * window.c (Fwindow_parameters, Fwindow_parameter)
38562008-06-04 Kenichi Handa <handa@m17n.org> 3856 (Fset_window_parameter): New defuns.
3857 3857 (syms_of_window): Defsubr the new defuns.
3858 * coding.c (detect_coding): Fix handling of coding->head_ascii. 3858 (make_window): Initialize window_parameters to nil.
3859 Be sure to call setup_coding_system when we find a proper coding system. 3859
3860 (detect_coding_system): Fix handling of coding->head_ascii. 38602008-06-04 John Paul Wallington <jpw@pobox.com>
3861 3861
38622008-06-03 Andreas Schwab <schwab@suse.de> 3862 * eval.c (Fdefmacro): Doc fix.
3863 3863
3864 * font.c (font_prop_validate_spacing): Fix last change. 38642008-06-04 Kenichi Handa <handa@m17n.org>
3865 3865
38662008-06-03 Kenichi Handa <handa@m17n.org> 3866 * coding.c (detect_coding): Fix handling of coding->head_ascii.
3867 3867 Be sure to call setup_coding_system when we find a proper coding system.
3868 * font.c (font_prop_validate_spacing): Handle uppercase symbols. 3868 (detect_coding_system): Fix handling of coding->head_ascii.
3869 (font_parse_fcname): Fix handling of unknown key. 3869
3870 38702008-06-03 Andreas Schwab <schwab@suse.de>
3871 * xfont.c (xfont_list): Try an alias. 3871
3872 3872 * font.c (font_prop_validate_spacing): Fix last change.
3873 * charset.c (char_charset): Return NULL if the arg charset_list is 3873
3874 specified and C doesn't belong to any of them. 38742008-06-03 Kenichi Handa <handa@m17n.org>
3875 3875
38762008-06-02 Chip Coldwell <coldwell@redhat.com> 3876 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
3877 3877 (font_parse_fcname): Fix handling of unknown key.
3878 * font.c (font_pixel_size): Don't take cdr of an integer. 3878
3879 3879 * xfont.c (xfont_list): Try an alias.
38802008-06-02 Jim Meyering <meyering@redhat.com> 3880
3881 3881 * charset.c (char_charset): Return NULL if the arg charset_list is
3882 Make "xfree (NULL)" a no-op; remove useless if-before-xfree. 3882 specified and C doesn't belong to any of them.
3883 * alloc.c (xfree): Return right away for a NULL arg. 3883
3884 * lread.c (nosuffix): Remove now-useless if-before-xfree tests. 38842008-06-02 Chip Coldwell <coldwell@redhat.com>
3885 * gtkutil.c (xg_gtk_scroll_destroy): Likewise. 3885
3886 * mac.c (create_apple_event_from_event_ref): Likewise. 3886 * font.c (font_pixel_size): Don't take cdr of an integer.
3887 (create_apple_event_from_drag_ref, cfstring_create_normalized): 3887
3888 Likewise. 38882008-06-02 Jim Meyering <meyering@redhat.com>
3889 * doprnt.c (doprnt1): Likewise. 3889
3890 * frame.c (frame): Likewise. 3890 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
3891 * keyboard.c (wipe_kboard): Likewise. 3891 * alloc.c (xfree): Return right away for a NULL arg.
3892 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap) 3892 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
3893 (init_font_name_table, mac_unload_font, x_delete_display): Likewise. 3893 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
3894 * term.c (tty_default_color_capabilities, maybe_fatal) 3894 * mac.c (create_apple_event_from_event_ref): Likewise.
3895 (delete_tty): Likewise. 3895 (create_apple_event_from_drag_ref, cfstring_create_normalized):
3896 * w16select.c (string): Likewise. 3896 Likewise.
3897 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise. 3897 * doprnt.c (doprnt1): Likewise.
3898 * w32bdf.c (w32_free_bdf_font): Likewise. 3898 * frame.c (frame): Likewise.
3899 * w32fns.c (w32_unload_font): Likewise. 3899 * keyboard.c (wipe_kboard): Likewise.
3900 * w32font.c (w32font_close): Likewise. 3900 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
3901 * window.c (size_window): Likewise. 3901 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
3902 * xselect.c (receive_incremental_selection): Likewise. 3902 * term.c (tty_default_color_capabilities, maybe_fatal)
3903 * xterm.c (x_free_frame_resources, x_delete_display): Likewise. 3903 (delete_tty): Likewise.
3904 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise. 3904 * w16select.c (string): Likewise.
3905 * w32.c (stat): Likewise. 3905 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
3906 3906 * w32bdf.c (w32_free_bdf_font): Likewise.
3907 Remove useless if-before-free tests. 3907 * w32fns.c (w32_unload_font): Likewise.
3908 * editfns.c (Fset_time_zone_rule): Likewise. 3908 * w32font.c (w32font_close): Likewise.
3909 * lread.c (nosuffix): Likewise. 3909 * window.c (size_window): Likewise.
3910 * ralloc.c (get_bloc): Likewise. 3910 * xselect.c (receive_incremental_selection): Likewise.
3911 * regex.c (reg_free): Likewise. 3911 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
3912 * xftfont.c (xftfont_open, xftfont_close): Likewise. 3912 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
3913 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise. 3913 * w32.c (stat): Likewise.
3914 * xsmfns.c (smc_save_yourself_CB): Likewise. 3914
3915 3915 Remove useless if-before-free tests.
39162008-06-02 Kenichi Handa <handa@m17n.org> 3916 * editfns.c (Fset_time_zone_rule): Likewise.
3917 3917 * lread.c (nosuffix): Likewise.
3918 * font.c (font_find_for_lface): Handle float font size. 3918 * ralloc.c (get_bloc): Likewise.
3919 (font_open_for_lface): Likewise. 3919 * regex.c (reg_free): Likewise.
3920 3920 * xftfont.c (xftfont_open, xftfont_close): Likewise.
3921 * xfaces.c (x_supports_face_attributes_p): Check face->font before 3921 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
3922 comparing the properties. 3922 * xsmfns.c (smc_save_yourself_CB): Likewise.
3923 3923
39242008-06-01 Jason Rumney <jasonr@gnu.org> 39242008-06-02 Kenichi Handa <handa@m17n.org>
3925 3925
3926 * w32font.c (w32_enumfont_pattern_entity): Use requested registry. 3926 * font.c (font_find_for_lface): Handle float font size.
3927 Treat iso10646-1 and Windows DEFAULT_CHARSET specially. 3927 (font_open_for_lface): Likewise.
3928 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified. 3928
3929 Don't add empty script list. 3929 * xfaces.c (x_supports_face_attributes_p): Check face->font before
3930 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here. 3930 comparing the properties.
3931 3931
39322008-06-01 Dan Nicolaescu <dann@ics.uci.edu> 39322008-06-01 Jason Rumney <jasonr@gnu.org>
3933 3933
3934 * Makefile.in (dot, dotdot): Remove, update users. 3934 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
3935 ".." has been used elsewhere in the file for a long time. 3935 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
3936 (LIBXT_STATIC): Remove conditional based on unused variable. 3936 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
3937 3937 Don't add empty script list.
39382008-06-01 Miles Bader <miles@gnu.org> 3938 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
3939 3939
3940 * xfaces.c (Vface_remapping_alist): New variable. 39402008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
3941 (syms_of_xfaces): Initialize it. 3941
3942 (enum named_merge_point_kind): New type. 3942 * Makefile.in (dot, dotdot): Remove, update users.
3943 (struct named_merge_point): Add `named_merge_point_kind' field. 3943 ".." has been used elsewhere in the file for a long time.
3944 (push_named_merge_point): Make cycle detection respect different 3944 (LIBXT_STATIC): Remove conditional based on unused variable.
3945 named-merge-point kinds. 3945
3946 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'. 39462008-06-01 Miles Bader <miles@gnu.org>
3947 Remove face-name alias resolution. 3947
3948 (lface_from_face_name): New definition using 3948 * xfaces.c (Vface_remapping_alist): New variable.
3949 `lface_from_face_name_no_resolve'. 3949 (syms_of_xfaces): Initialize it.
3950 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'. 3950 (enum named_merge_point_kind): New type.
3951 Call lface_from_face_name_no_resolve instead of lface_from_face_name. 3951 (struct named_merge_point): Add `named_merge_point_kind' field.
3952 (get_lface_attributes): New definition that layers face-remapping on 3952 (push_named_merge_point): Make cycle detection respect different
3953 top of get_lface_attributes_no_remap. New arg `named_merge_points'. 3953 named-merge-point kinds.
3954 (lookup_basic_face): New function. 3954 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
3955 (lookup_derived_face): Pass new last arg to `get_lface_attributes'. 3955 Remove face-name alias resolution.
3956 (realize_named_face): Call `get_lface_attributes_no_remap' instead of 3956 (lface_from_face_name): New definition using
3957 `get_lface_attributes'. 3957 `lface_from_face_name_no_resolve'.
3958 (face_at_buffer_position): Use `lookup_basic_face' to lookup 3958 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
3959 DEFAULT_FACE_ID if necessary. When optimizing the default-face case, 3959 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
3960 return default_face's face-id instead of the constant DEFAULT_FACE_ID. 3960 (get_lface_attributes): New definition that layers face-remapping on
3961 3961 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
3962 * xdisp.c (init_iterator): Pass base_face_id through 3962 (lookup_basic_face): New function.
3963 `lookup_basic_face' when we actually use it as a face-id. 3963 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
3964 (handle_single_display_prop): Use `lookup_basic_face' to lookup 3964 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
3965 DEFAULT_FACE_ID. 3965 `get_lface_attributes'.
3966 3966 (face_at_buffer_position): Use `lookup_basic_face' to lookup
3967 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to 3967 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
3968 lookup the initial face-id. 3968 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
3969 3969
3970 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls. 3970 * xdisp.c (init_iterator): Pass base_face_id through
3971 3971 `lookup_basic_face' when we actually use it as a face-id.
39722008-06-01 Juanma Barranquero <lekktu@gmail.com> 3972 (handle_single_display_prop): Use `lookup_basic_face' to lookup
3973 3973 DEFAULT_FACE_ID.
3974 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>: 3974
3975 (Fremove_text_properties): Fix typos in docstrings. 3975 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
3976 3976 lookup the initial face-id.
39772008-05-31 Kenichi Handa <handa@m17n.org> 3977
3978 3978 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
3979 * font.c (font_list_entities): Fix the car part of data to be 3979
3980 stored in the cache. 39802008-06-01 Juanma Barranquero <lekktu@gmail.com>
3981 3981
3982 * ftfont.c (ftfont_font_format): Don't use strcasestr. 3982 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
3983 3983 (Fremove_text_properties): Fix typos in docstrings.
39842008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> 3984
3985 39852008-05-31 Kenichi Handa <handa@m17n.org>
3986 * chartab.c (Foptimize_char_table, optimize_sub_char_table): 3986
3987 Add a `test' argument so another predicate than `equal' can be used. 3987 * font.c (font_list_entities): Fix the car part of data to be
3988 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges. 3988 stored in the cache.
3989 (map_char_table): Remove unused vars `c' and `i'. 3989
3990 * lisp.h (Foptimize_char_table): Adjust declaration. 3990 * ftfont.c (ftfont_font_format): Don't use strcasestr.
3991 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table. 3991
3992 39922008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
39932008-05-30 Kenichi Handa <handa@m17n.org> 3993
3994 3994 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
3995 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined. 3995 Add a `test' argument so another predicate than `equal' can be used.
3996 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is 3996 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
3997 defined. 3997 (map_char_table): Remove unused vars `c' and `i'.
3998 3998 * lisp.h (Foptimize_char_table): Adjust declaration.
39992008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> 3999 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
4000 4000
4001 * data.c (Fmake_variable_buffer_local, Fmake_local_variable) 40012008-05-30 Kenichi Handa <handa@m17n.org>
4002 (Fmake_variable_frame_local): Disallow mixing buffer-local and 4002
4003 frame-local settings for the same variable. 4003 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
4004 4004 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
40052008-05-30 Kenichi Handa <handa@m17n.org> 4005 defined.
4006 4006
4007 * fontset.c (Ffont_info): Move to font.c. 40072008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
4008 (syms_of_fontset): Delete defsubr of Sfont_info. 4008
4009 4009 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4010 * font.c (font_style_to_value, font_score): Delete casting of the 4010 (Fmake_variable_frame_local): Disallow mixing buffer-local and
4011 args to xstcasecmp. 4011 frame-local settings for the same variable.
4012 (register_font_driver): Increment num_font_drivers only when 4012
4013 registering the driver globally. 40132008-05-30 Kenichi Handa <handa@m17n.org>
4014 (Ffont_info): Move from fontset.c. Handle a font object too. 4014
4015 (syms_of_font): Defsubr Sfont_info. 4015 * fontset.c (Ffont_info): Move to font.c.
4016 4016 (syms_of_fontset): Delete defsubr of Sfont_info.
40172008-05-29 Kenichi Handa <handa@m17n.org> 4017
4018 4018 * font.c (font_style_to_value, font_score): Delete casting of the
4019 * coding.h (enum define_coding_utf8_arg_index): New enum. 4019 args to xstcasecmp.
4020 (enum coding_attr_index): Change coding_attr_utf_16_bom to 4020 (register_font_driver): Increment num_font_drivers only when
4021 coding_attr_utf_bom. 4021 registering the driver globally.
4022 (enum utf_bom_type): Rename from utf_16_bom_type. 4022 (Ffont_info): Move from fontset.c. Handle a font object too.
4023 (struct utf_16_spec): Adjust for the above change. 4023 (syms_of_font): Defsubr Sfont_info.
4024 (struct coding_system): Add utf_8_bom in `spec' union. 4024
4025 40252008-05-29 Kenichi Handa <handa@m17n.org>
4026 * coding.c (CODING_UTF_8_BOM): New macro. 4026
4027 (enum coding_category): Delete coding_category_utf_8, add 4027 * coding.h (enum define_coding_utf8_arg_index): New enum.
4028 coding_category_utf_8_auto, coding_category_utf_8_nosig, and 4028 (enum coding_attr_index): Change coding_attr_utf_16_bom to
4029 coding_category_utf_8_sig. 4029 coding_attr_utf_bom.
4030 (CATEGORY_MASK_UTF_8): Delete it. 4030 (enum utf_bom_type): Rename from utf_16_bom_type.
4031 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG) 4031 (struct utf_16_spec): Adjust for the above change.
4032 (CATEGORY_MASK_UTF_8_SIG): New macros. 4032 (struct coding_system): Add utf_8_bom in `spec' union.
4033 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add 4033
4034 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and 4034 * coding.c (CODING_UTF_8_BOM): New macro.
4035 CATEGORY_MASK_UTF_8_SIG. 4035 (enum coding_category): Delete coding_category_utf_8, add
4036 (CATEGORY_MASK_UTF_8): New macro. 4036 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
4037 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros. 4037 coding_category_utf_8_sig.
4038 (detect_coding_utf_8): Check BOM. 4038 (CATEGORY_MASK_UTF_8): Delete it.
4039 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM. 4039 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
4040 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type. 4040 (CATEGORY_MASK_UTF_8_SIG): New macros.
4041 (encode_coding_utf_16): Likewise. 4041 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
4042 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding). 4042 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
4043 (detect_coding, detect_coding_system): Handle utf-8-auto. 4043 CATEGORY_MASK_UTF_8_SIG.
4044 (Fdefine_coding_system_internal): Handle `bom' property for utf-8. 4044 (CATEGORY_MASK_UTF_8): New macro.
4045 (syms_of_coding): Fix setting up of Vcoding_category_table. 4045 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
4046 4046 (detect_coding_utf_8): Check BOM.
40472008-05-29 Stefan Monnier <monnier@iro.umontreal.ca> 4047 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
4048 4048 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
4049 * process.c (Faccept_process_output): If `millisec' is non-nil, 4049 (encode_coding_utf_16): Likewise.
4050 `seconds' default to 0. 4050 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
4051 (wait_reading_process_output): Also return non-nil if we read output 4051 (detect_coding, detect_coding_system): Handle utf-8-auto.
4052 from a non-running process. 4052 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
4053 4053 (syms_of_coding): Fix setting up of Vcoding_category_table.
40542008-05-29 Jason Rumney <jasonr@gnu.org> 4054
4055 40552008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
4056 * w32font.c (w32font_open_internal): Prefer truetype fonts unless 4056
4057 `raster' specified. 4057 * process.c (Faccept_process_output): If `millisec' is non-nil,
4058 (add_font_entity_to_list): Allow non-opentype truetype fonts back 4058 `seconds' default to 0.
4059 in the uniscribe backend, but disallow any font that has no 4059 (wait_reading_process_output): Also return non-nil if we read output
4060 unicode subrange support. 4060 from a non-running process.
4061 4061
40622008-05-29 Juanma Barranquero <lekktu@gmail.com> 40622008-05-29 Jason Rumney <jasonr@gnu.org>
4063 4063
4064 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face): 4064 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
4065 Fix typos in docstrings. 4065 `raster' specified.
4066 4066 (add_font_entity_to_list): Allow non-opentype truetype fonts back
40672008-05-29 Kenichi Handa <handa@m17n.org> 4067 in the uniscribe backend, but disallow any font that has no
4068 4068 unicode subrange support.
4069 * xfaces.c (Fx_list_fonts): Make it return a list of font names. 4069
4070 (Fx_family_fonts): Set frame correctly. 40702008-05-29 Juanma Barranquero <lekktu@gmail.com>
4071 4071
40722008-05-28 Jason Rumney <jasonr@gnu.org> 4072 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
4073 4073 Fix typos in docstrings.
4074 * w32term.c (x_draw_glyph_string): Use clipmask if specified. 4074
4075 40752008-05-29 Kenichi Handa <handa@m17n.org>
40762008-05-28 Stefan Monnier <monnier@iro.umontreal.ca> 4076
4077 4077 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
4078 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after 4078 (Fx_family_fonts): Set frame correctly.
4079 calling build_annotations. 4079
4080 40802008-05-28 Jason Rumney <jasonr@gnu.org>
40812008-05-28 Juanma Barranquero <lekktu@gmail.com> 4081
4082 4082 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
4083 * coding.c (Fdecode_coding_region, Fencode_coding_region) 4083
4084 (Fencode_coding_string): 40842008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4085 (syms_of_coding) <coding-system-for-read, coding-system-for-write>: 4085
4086 <latin-extra-code-table>: Fix typos in docstrings. 4086 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
4087 (syms_of_coding) <coding-system-alist>: Doc fix. 4087 calling build_annotations.
4088 (syms_of_coding) <translation-table-for-input>: Reflow docstring. 4088
4089 40892008-05-28 Juanma Barranquero <lekktu@gmail.com>
40902008-05-28 Kenichi Handa <handa@m17n.org> 4090
4091 4091 * coding.c (Fdecode_coding_region, Fencode_coding_region)
4092 * fontset.c (Ffont_info): Don't call font_close_object. 4092 (Fencode_coding_string):
4093 4093 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
4094 * font.c (font_parse_family_registry): Use Ffont_put to validate 4094 <latin-extra-code-table>: Fix typos in docstrings.
4095 foundry and family. 4095 (syms_of_coding) <coding-system-alist>: Doc fix.
4096 (font_delete_unmatched): Don't check spacing. 4096 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
4097 (font_list_entities): Add spacing to the spec to list fonts. 4097
4098 40982008-05-28 Kenichi Handa <handa@m17n.org>
4099 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern. 4099
4100 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset. 4100 * fontset.c (Ffont_info): Don't call font_close_object.
4101 4101
4102 * coding.c (encode_coding_raw_text): Fix previous change. 4102 * font.c (font_parse_family_registry): Use Ffont_put to validate
4103 (encode_coding_object): When the dst_object is a buffer and is 4103 foundry and family.
4104 different from src_object, move gap to PT. 4104 (font_delete_unmatched): Don't check spacing.
4105 4105 (font_list_entities): Add spacing to the spec to list fonts.
41062008-05-27 Chong Yidong <cyd@stupidchicken.com> 4106
4107 4107 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
4108 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it. 4108 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
4109 4109
41102008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> 4110 * coding.c (encode_coding_raw_text): Fix previous change.
4111 4111 (encode_coding_object): When the dst_object is a buffer and is
4112 * coding.c (encode_coding_raw_text): Set coding->produced_char for 4112 different from src_object, move gap to PT.
4113 all branches. Compute it differently. 4113
4114 41142008-05-27 Chong Yidong <cyd@stupidchicken.com>
4115 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x. 4115
4116 4116 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
41172008-05-27 Juanma Barranquero <lekktu@gmail.com> 4117
4118 41182008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
4119 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }" 4119
4120 into "else if () ... else ...". 4120 * coding.c (encode_coding_raw_text): Set coding->produced_char for
4121 4121 all branches. Compute it differently.
41222008-05-27 Jason Rumney <jasonr@gnu.org> 4122
4123 4123 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
4124 * w32font.c (w32font_open_internal): Determine if glyph indices 4124
4125 are likely to work here. 41252008-05-27 Juanma Barranquero <lekktu@gmail.com>
4126 4126
41272008-05-27 Chong Yidong <cyd@stupidchicken.com> 4127 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
4128 4128 into "else if () ... else ...".
4129 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to 4129
4130 draw overlap glyphs with appropriate highlighting. 41302008-05-27 Jason Rumney <jasonr@gnu.org>
4131 4131
41322008-05-27 Kenichi Handa <handa@m17n.org> 4132 * w32font.c (w32font_open_internal): Determine if glyph indices
4133 4133 are likely to work here.
4134 * xfont.c (xfont_open): Fix calculation of font->average_width. 4134
4135 41352008-05-27 Chong Yidong <cyd@stupidchicken.com>
41362008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> 4136
4137 4137 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
4138 * casefiddle.c (casify_object): Try to guess better whether the 4138 draw overlap glyphs with appropriate highlighting.
4139 argument is a byte or a char. 4139
4140 41402008-05-27 Kenichi Handa <handa@m17n.org>
41412008-05-26 Andreas Schwab <schwab@suse.de> 4141
4142 4142 * xfont.c (xfont_open): Fix calculation of font->average_width.
4143 * xselect.c (x_reply_selection_request): Properly handle format == 32. 4143
4144 Always send multiples of format size. 41442008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
4145 4145
4146 * xterm.c (x_set_frame_alpha): Fix type mismatch. 4146 * casefiddle.c (casify_object): Try to guess better whether the
4147 4147 argument is a byte or a char.
41482008-05-26 Jason Rumney <jasonr@gnu.org> 4148
4149 41492008-05-26 Andreas Schwab <schwab@suse.de>
4150 * w32font.c (w32font_text_extents): Zero whole metrics struct first. 4150
4151 (compute_metrics): Don't set failure if we just cleared the cache. 4151 * xselect.c (x_reply_selection_request): Properly handle format == 32.
4152 (w32_weight_table): Remove unused variable. 4152 Always send multiples of format size.
4153 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for 4153
4154 backwards compatibility. 4154 * xterm.c (x_set_frame_alpha): Fix type mismatch.
4155 4155
41562008-05-25 Kenichi Handa <handa@m17n.org> 41562008-05-26 Jason Rumney <jasonr@gnu.org>
4157 4157
4158 * w32term.c (x_draw_glyph_string): 4158 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
4159 * xterm.c (x_draw_glyph_string): Fix calculation of underline position. 4159 (compute_metrics): Don't set failure if we just cleared the cache.
4160 4160 (w32_weight_table): Remove unused variable.
4161 * xfaces.c: Delete unused function prototypes. 4161 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
4162 (xstrlwr, font_frame): Delete them. 4162 backwards compatibility.
4163 (clear_face_cache): Delete unused variable. 4163
4164 41642008-05-25 Kenichi Handa <handa@m17n.org>
4165 * xftfont.c (xftfont_open): Delete unused variable. 4165
4166 If underline_thickness is not 1, adjust underline_position. 4166 * w32term.c (x_draw_glyph_string):
4167 4167 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
4168 * ftxfont.c (ftxfont_open): Delete unused variable. 4168
4169 4169 * xfaces.c: Delete unused function prototypes.
4170 * fontset.c (face_for_char): Optimize for the case of no charset 4170 (xstrlwr, font_frame): Delete them.
4171 property. 4171 (clear_face_cache): Delete unused variable.
4172 4172
4173 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE) 4173 * xftfont.c (xftfont_open): Delete unused variable.
4174 (check_gstring, check_otf_features, otf_list, otf_tag_symbol) 4174 If underline_thickness is not 1, adjust underline_position.
4175 (otf_open, font_otf_capability, generate_otf_features) 4175
4176 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): 4176 * ftxfont.c (ftxfont_open): Delete unused variable.
4177 Comment out by surrounding "#if 0" and "#endif" for the moment. 4177
4178 (Ffont_drive_otf, Ffont_otf_alternates): Likewise. 4178 * fontset.c (face_for_char): Optimize for the case of no charset
4179 (syms_of_font): Codes for accessing above commented out. 4179 property.
4180 4180
41812008-05-24 Eli Zaretskii <eliz@gnu.org> 4181 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
4182 4182 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
4183 * w32proc.c: Include dispextern.h. 4183 (otf_open, font_otf_capability, generate_otf_features)
4184 4184 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4185 * w32.c: Include dispextern.h. 4185 Comment out by surrounding "#if 0" and "#endif" for the moment.
4186 4186 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
41872008-05-23 Juanma Barranquero <lekktu@gmail.com> 4187 (syms_of_font): Codes for accessing above commented out.
4188 4188
4189 * charset.c (Fencode_char, Fsplit_char): Doc fixes. 41892008-05-24 Eli Zaretskii <eliz@gnu.org>
4190 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset): 4190
4191 Fix typos in docstrings. 4191 * w32proc.c: Include dispextern.h.
4192 4192
41932008-05-23 Jason Rumney <jasonr@gnu.org> 4193 * w32.c: Include dispextern.h.
4194 4194
4195 * xsmfns.c: Remove includes that are already included by config.h. 41952008-05-23 Juanma Barranquero <lekktu@gmail.com>
4196 4196
41972008-05-23 Kenichi Handa <handa@m17n.org> 4197 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
4198 4198 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
4199 * charset.c (Qemacs, charset_emacs): New variables. 4199 Fix typos in docstrings.
4200 (char_charset): Fix for non-Unicode characters. 4200
4201 (syms_of_charset): Define charset_emacs. 42012008-05-23 Jason Rumney <jasonr@gnu.org>
4202 4202
4203 * w32term.c (x_draw_glyph_string): Be sure to update 4203 * xsmfns.c: Remove includes that are already included by config.h.
4204 s->underline_thickness and s->underline_position. Be sure to draw 4204
4205 underline within the current line area. 42052008-05-23 Kenichi Handa <handa@m17n.org>
4206 4206
4207 * xterm.c (x_draw_glyph_string): Be sure to update 4207 * charset.c (Qemacs, charset_emacs): New variables.
4208 s->underline_thickness and s->underline_position. Be sure to draw 4208 (char_charset): Fix for non-Unicode characters.
4209 underline within the current line area. 4209 (syms_of_charset): Define charset_emacs.
4210 4210
4211 * fontset.c: Delete unused variables and add casting for char * 4211 * w32term.c (x_draw_glyph_string): Be sure to update
4212 throughout the file. 4212 s->underline_thickness and s->underline_position. Be sure to draw
4213 (fontset_font): Try the fallback fonts of the current fontset 4213 underline within the current line area.
4214 before consulting the default fontset. 4214
4215 4215 * xterm.c (x_draw_glyph_string): Be sure to update
4216 * ftfont.c (ftfont_spec_pattern): Free charset if necessary. 4216 s->underline_thickness and s->underline_position. Be sure to draw
4217 4217 underline within the current line area.
4218 * xfont.c (xfont_list_pattern): Free names returned from XListFonts. 4218
4219 4219 * fontset.c: Delete unused variables and add casting for char *
42202008-05-22 Jason Rumney <jasonr@gnu.org> 4220 throughout the file.
4221 4221 (fontset_font): Try the fallback fonts of the current fontset
4222 * font.c: Don't include strings.h. 4222 before consulting the default fontset.
4223 4223
4224 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp. 4224 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
4225 4225
4226 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c: 4226 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
4227 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c: 4227
4228 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed 42282008-05-22 Jason Rumney <jasonr@gnu.org>
4229 to call xstrcasecmp. 4229
4230 4230 * font.c: Don't include strings.h.
4231 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp. 4231
4232 4232 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
4233 * fontset.c (fs_query_fontset): Use xstrcasecmp. 4233
4234 4234 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
4235 * font.c (font_style_to_value, font_score): Use xstrcasecmp. 4235 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
4236 4236 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
4237 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp. 4237 to call xstrcasecmp.
4238 4238
42392008-05-22 Kenichi Handa <handa@m17n.org> 4239 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
4240 4240
4241 * puresize.h (BASE_PURESIZE): Increase to 1220000. 4241 * fontset.c (fs_query_fontset): Use xstrcasecmp.
4242 4242
4243 * font.c (font_prop_validate_style): Adjust for the format 4243 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
4244 change of font_style_table. 4244
4245 4245 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
4246 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with 4246
4247 two args. 42472008-05-22 Kenichi Handa <handa@m17n.org>
4248 4248
4249 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with 4249 * puresize.h (BASE_PURESIZE): Increase to 1220000.
4250 two args. 4250
4251 4251 * font.c (font_prop_validate_style): Adjust for the format
42522008-05-22 Stefan Monnier <monnier@iro.umontreal.ca> 4252 change of font_style_table.
4253 4253
4254 * minibuf.c (keys_of_minibuf): Delete. 4254 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
4255 * lisp.h (keys_of_minibuf): Delete. 4255 two args.
4256 * emacs.c (main): Don't call keys_of_minibuf. 4256
4257 4257 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
42582008-05-22 Kenichi Handa <handa@m17n.org> 4258 two args.
4259 4259
4260 * ftfont.c (ftfont_resolve_generic_family): Rename from 42602008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
4261 ftfont_list_generic_family. Return a single family for each 4261
4262 generic family. 4262 * minibuf.c (keys_of_minibuf): Delete.
4263 (ftfont_spec_pattern): Add FC_FAMILY to pattern. 4263 * lisp.h (keys_of_minibuf): Delete.
4264 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family. 4264 * emacs.c (main): Don't call keys_of_minibuf.
4265 Call font_add_log. 4265
4266 (ftfont_match): Call font_add_log. 42662008-05-22 Kenichi Handa <handa@m17n.org>
4267 4267
4268 * font.h (Ffont_xlfd_name): EXFUN adjusted. 4268 * ftfont.c (ftfont_resolve_generic_family): Rename from
4269 (FONT_DEBUG): Define it. 4269 ftfont_list_generic_family. Return a single family for each
4270 (font_add_log): Extern it. 4270 generic family.
4271 (font_assert): Rename from xassert. 4271 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
4272 4272 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
4273 * xfont.c (xfont_get_pcm): Change xassert to font_assert. 4273 Call font_add_log.
4274 (xfont_list_family): Call font_add_log. 4274 (ftfont_match): Call font_add_log.
4275 (xfont_match): Likewise. 4275
4276 (memq_no_quit): Delete. 4276 * font.h (Ffont_xlfd_name): EXFUN adjusted.
4277 4277 (FONT_DEBUG): Define it.
4278 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in 4278 (font_add_log): Extern it.
4279 call of Ffont_xlfd_name. 4279 (font_assert): Rename from xassert.
4280 4280
4281 * xfaces.c (struct table_entry, slant_table, weight_table) 4281 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
4282 (swidth_table): Move to font.c. 4282 (xfont_list_family): Call font_add_log.
4283 4283 (xfont_match): Likewise.
4284 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of 4284 (memq_no_quit): Delete.
4285 xassert are changed to font_assert. Delete many unused variables. 4285
4286 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table): 4286 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
4287 New variables. 4287 call of Ffont_xlfd_name.
4288 (struct table_entry): Move from xfaces.c and modified. 4288
4289 (weight_table, slant_table, width_table): Move from xfaces.c and 4289 * xfaces.c (struct table_entry, slant_table, weight_table)
4290 contents adjusted for the change of struct table_entry. 4290 (swidth_table): Move to font.c.
4291 (font_style_to_value, font_style_symbolic): Adjust for the 4291
4292 format change of font_style_table. 4292 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
4293 (font_parse_family_registry): Don't overwrite existing foundry and 4293 xassert are changed to font_assert. Delete many unused variables.
4294 family of font_spec. 4294 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
4295 (font_score): Fix calculation of diff for sizes. 4295 New variables.
4296 (font_sort_entites): Call font_add_log. 4296 (struct table_entry): Move from xfaces.c and modified.
4297 (font_delete_unmatched): Return a newly created list. 4297 (weight_table, slant_table, width_table): Move from xfaces.c and
4298 (font_list_entities): Fix previous change. Call font_add_log. 4298 contents adjusted for the change of struct table_entry.
4299 (font_matching_entity, font_open_entity, font_close_entity): 4299 (font_style_to_value, font_style_symbolic): Adjust for the
4300 Call font_add_log. 4300 format change of font_style_table.
4301 (Ffont_xlfd_name): New arg FOLD-WILDCARDS. 4301 (font_parse_family_registry): Don't overwrite existing foundry and
4302 (Finternal_set_font_style_table): Delete. 4302 family of font_spec.
4303 (BUILD_STYLE_TABLE): New macro. 4303 (font_score): Fix calculation of diff for sizes.
4304 (build_style_table): New function. 4304 (font_sort_entites): Call font_add_log.
4305 (Vfont_log, font_log_env_checked): New variables. 4305 (font_delete_unmatched): Return a newly created list.
4306 (font_add_log): New function. 4306 (font_list_entities): Fix previous change. Call font_add_log.
4307 (syms_of_font): Delete defsubr Sinternal_set_font_style_table. 4307 (font_matching_entity, font_open_entity, font_close_entity):
4308 Declare Lisp variables "font-weight-table", "font-slant-table", 4308 Call font_add_log.
4309 "font-width-table", and "font-log". Initialize font_style_table. 4309 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
4310 4310 (Finternal_set_font_style_table): Delete.
43112008-05-21 Dan Nicolaescu <dann@ics.uci.edu> 4311 (BUILD_STYLE_TABLE): New macro.
4312 4312 (build_style_table): New function.
4313 * xterm.c (x_set_frame_alpha): Move declarations before statements. 4313 (Vfont_log, font_log_env_checked): New variables.
4314 4314 (font_add_log): New function.
43152008-05-21 Seiji Zenitani <zenitani@mac.com> 4315 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
4316 Ryo Yoshitake <ryo@shiftmode.net> 4316 Declare Lisp variables "font-weight-table", "font-slant-table",
4317 4317 "font-width-table", and "font-log". Initialize font_style_table.
4318 * frame.c (Qalpha): Add a new frame parameter `alpha'. 4318
4319 (Vframe_alpha_lower_limit): New variable. 43192008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
4320 (x_set_alpha): New function. 4320
4321 4321 * xterm.c (x_set_frame_alpha): Move declarations before statements.
4322 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them. 4322
4323 43232008-05-21 Seiji Zenitani <zenitani@mac.com>
4324 * xfns.c (x-create-frame, Qalpha): 4324 Ryo Yoshitake <ryo@shiftmode.net>
4325 Initialize the frame parameter `alpha'. 4325
4326 * xterm.c (OPAQUE, OPACITY): New. 4326 * frame.c (Qalpha): Add a new frame parameter `alpha'.
4327 (x_set_frame_alpha): New function. 4327 (Vframe_alpha_lower_limit): New variable.
4328 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha. 4328 (x_set_alpha): New function.
4329 4329
4330 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha. 4330 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
4331 * w32fns.c (w32_frame_parm_handlers): Likewise. 4331
4332 4332 * xfns.c (x-create-frame, Qalpha):
43332008-05-20 Jason Rumney <jasonr@gnu.org> 4333 Initialize the frame parameter `alpha'.
4334 4334 * xterm.c (OPAQUE, OPACITY): New.
4335 * w32font.c (add_font_entity_to_list): Don't add non-opentype 4335 (x_set_frame_alpha): New function.
4336 truetype fonts to opentype list. 4336 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
4337 4337
43382008-05-20 Juanma Barranquero <lekktu@gmail.com> 4338 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
4339 4339 * w32fns.c (w32_frame_parm_handlers): Likewise.
4340 * fontset.c (Ffontset_info): Doc fix. 4340
4341 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>: 43412008-05-20 Jason Rumney <jasonr@gnu.org>
4342 <ignore-relative-composition>: Fix typos in docstrings. 4342
4343 4343 * w32font.c (add_font_entity_to_list): Don't add non-opentype
4344 * font.c (syms-of-font) <font-encoding-alist>: 4344 truetype fonts to opentype list.
4345 (Ffontp, Ffont_make_gstring): Fix typos in docstrings. 4345
4346 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font) 43462008-05-20 Juanma Barranquero <lekktu@gmail.com>
4347 (Ffont_otf_alternates): Doc fixes. 4347
4348 4348 * fontset.c (Ffontset_info): Doc fix.
43492008-05-20 Kenichi Handa <handa@m17n.org> 4349 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
4350 4350 <ignore-relative-composition>: Fix typos in docstrings.
4351 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to 4351
4352 font.h through out the file. 4352 * font.c (syms-of-font) <font-encoding-alist>:
4353 (FONT_DRIVERS): Rename from FONTOBJ. 4353 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
4354 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o. 4354 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
4355 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS). 4355 (Ffont_otf_alternates): Doc fixes.
4356 4356
4357 * emacs.c (main): Call syms_of_font unconditionally. 43572008-05-20 Kenichi Handa <handa@m17n.org>
4358 4358
4359 * font.h (find_font_encoding): Extern it. 4359 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
4360 4360 font.h through out the file.
4361 * font.c (Vfont_encoding_alist, find_font_encoding): Move from 4361 (FONT_DRIVERS): Rename from FONTOBJ.
4362 fontset.c. 4362 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
4363 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1. 4363 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
4364 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts, 4364
4365 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f) 4365 * emacs.c (main): Call syms_of_font unconditionally.
4366 only when HAVE_WINDOW_SYSTEM is defined. 4366
4367 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only 4367 * font.h (find_font_encoding): Extern it.
4368 when HAVE_WINDOW_SYSTEM is defined. 4368
4369 4369 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
4370 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c. 4370 fontset.c.
4371 (syms_of_fontset): Move declaration of font-encoding-alist to font.c. 4371 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
4372 4372 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
4373 * xfaces.c: Include font.h unconditionally. 4373 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
4374 (merge_face_ref, merge_face_vectors) 4374 only when HAVE_WINDOW_SYSTEM is defined.
4375 (Finternal_set_lisp_face_attribute): Cancel the previous change. 4375 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
4376 4376 when HAVE_WINDOW_SYSTEM is defined.
43772008-05-20 Stefan Monnier <monnier@iro.umontreal.ca> 4377
4378 4378 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
4379 * xdisp.c (select_frame_for_redisplay): Adjust for last change to 4379 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
4380 indirect_variable. 4380
4381 * eval.c (lisp_indirect_variable): New fun. 4381 * xfaces.c: Include font.h unconditionally.
4382 (Fuser_variable_p): Use it. 4382 (merge_face_ref, merge_face_vectors)
4383 4383 (Finternal_set_lisp_face_attribute): Cancel the previous change.
43842008-05-19 Stefan Monnier <monnier@iro.umontreal.ca> 4384
4385 43852008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
4386 * lisp.h (indirect_variable): 4386
4387 * data.c (indirect_variable, let_shadows_buffer_binding_p): 4387 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
4388 Use Lisp_Symbol pointers rather than Lisp_Object. 4388 indirect_variable.
4389 Adjust callers. 4389 * eval.c (lisp_indirect_variable): New fun.
4390 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument. 4390 (Fuser_variable_p): Use it.
4391 To this end, change calling-convention. 4391
4392 43922008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4393 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers 4393
4394 if some non-hidden buffers are selected by string&pred. 4394 * lisp.h (indirect_variable):
4395 4395 * data.c (indirect_variable, let_shadows_buffer_binding_p):
43962008-05-19 Chong Yidong <cyd@stupidchicken.com> 4396 Use Lisp_Symbol pointers rather than Lisp_Object.
4397 4397 Adjust callers.
4398 * process.c (wait_reading_process_output): Always check status 4398 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
4399 when in batch mode. 4399 To this end, change calling-convention.
4400 4400
44012008-05-19 Kenichi Handa <handa@m17n.org> 4401 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
4402 4402 if some non-hidden buffers are selected by string&pred.
4403 * font.c (font_list_entities): Fix handling of cache. 4403
4404 (font_matching_entity): Likewise. 44042008-05-19 Chong Yidong <cyd@stupidchicken.com>
4405 4405
4406 * ftfont.c (cs_iso8859_1): Delete. 4406 * process.c (wait_reading_process_output): Always check status
4407 (ft_face_cache): New variable. 4407 when in batch mode.
4408 (struct ftfont_info): New member fc_charset_idx. 4408
4409 (ftfont_build_basic_charsets): Delete. 44092008-05-19 Kenichi Handa <handa@m17n.org>
4410 (fc_charset_table): New variable. 4410
4411 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME 4411 * font.c (font_list_entities): Fix handling of cache.
4412 . FC_CHARSET_IDX) as :font-entity property in the font entity. 4412 (font_matching_entity): Likewise.
4413 Callers changed. 4413
4414 (ftfont_lookup_cache, ftfont_get_charset): New functions. 4414 * ftfont.c (cs_iso8859_1): Delete.
4415 (ftfont_spec_pattern): New argument fc_charset_idx. 4415 (ft_face_cache): New variable.
4416 Check registry more rigidly. Change callers. 4416 (struct ftfont_info): New member fc_charset_idx.
4417 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the 4417 (ftfont_build_basic_charsets): Delete.
4418 change of :font-entity property of the font. 4418 (fc_charset_table): New variable.
4419 4419 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
4420 * xftfont.c (xftfont_open): Adjust for the change of :font-entity 4420 . FC_CHARSET_IDX) as :font-entity property in the font entity.
4421 property of the font. 4421 Callers changed.
4422 4422 (ftfont_lookup_cache, ftfont_get_charset): New functions.
44232008-05-18 Juanma Barranquero <lekktu@gmail.com> 4423 (ftfont_spec_pattern): New argument fc_charset_idx.
4424 4424 Check registry more rigidly. Change callers.
4425 * coding.c (Fcoding_system_p): Rename argument to match docstring. 4425 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
4426 (Funencodable_char_position, Fcheck_coding_systems_region) 4426 change of :font-entity property of the font.
4427 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings. 4427
4428 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region) 4428 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
4429 (Ffind_operation_coding_system, Fset_coding_system_priority) 4429 property of the font.
4430 (Fcoding_system_eol_type): Doc fixes. 4430
4431 44312008-05-18 Juanma Barranquero <lekktu@gmail.com>
44322008-05-17 Glenn Morris <rgm@gnu.org> 4432
4433 4433 * coding.c (Fcoding_system_p): Rename argument to match docstring.
4434 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY. 4434 (Funencodable_char_position, Fcheck_coding_systems_region)
4435 4435 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
44362008-05-16 Eli Zaretskii <eliz@gnu.org> 4436 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
4437 4437 (Ffind_operation_coding_system, Fset_coding_system_priority)
4438 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid 4438 (Fcoding_system_eol_type): Doc fixes.
4439 and st_gid. 4439
4440 44402008-05-17 Glenn Morris <rgm@gnu.org>
4441 * frame.c (Fdelete_frame): Don't call font_update_drivers if 4441
4442 HAVE_WINDOW_SYSTEM is not defined. 4442 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
4443 4443
4444 * xfaces.c (merge_face_ref, merge_face_vectors) 44442008-05-16 Eli Zaretskii <eliz@gnu.org>
4445 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when 4445
4446 HAVE_WINDOW_SYSTEM is defined. 4446 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
4447 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case. 4447 and st_gid.
4448 4448
44492008-05-16 Stefan Monnier <monnier@iro.umontreal.ca> 4449 * frame.c (Fdelete_frame): Don't call font_update_drivers if
4450 4450 HAVE_WINDOW_SYSTEM is not defined.
4451 * keyboard.c (parse_menu_item): Do not cache key shortcut any more. 4451
4452 4452 * xfaces.c (merge_face_ref, merge_face_vectors)
44532008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 4453 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
4454 4454 HAVE_WINDOW_SYSTEM is defined.
4455 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'. 4455 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
4456 4456
44572008-05-15 Kenichi Handa <handa@m17n.org> 44572008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
4458 4458
4459 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font 4459 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
4460 preference. 4460
4461 44612008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
44622008-05-15 Glenn Morris <rgm@gnu.org> 4462
4463 4463 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
4464 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend. 4464
4465 44652008-05-15 Kenichi Handa <handa@m17n.org>
44662008-05-15 Chong Yidong <cyd@stupidchicken.com> 4466
4467 4467 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
4468 * fns.c (init_fns): Don't initialize weak_hash_tables here. 4468 preference.
4469 (init_weak_hash_tables): New fun. Initialize weak_hash_tables. 4469
4470 44702008-05-15 Glenn Morris <rgm@gnu.org>
4471 * alloc.c (init_alloc_once): Call init_weak_hash_tables. 4471
4472 4472 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
44732008-05-15 Kenichi Handa <handa@m17n.org> 4473
4474 44742008-05-15 Chong Yidong <cyd@stupidchicken.com>
4475 * ftfont.c (ftfont_list): Downcase family name to check generic 4475
4476 families. 4476 * fns.c (init_fns): Don't initialize weak_hash_tables here.
4477 4477 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
4478 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a 4478
4479 font-spec for QCfont value. 4479 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
4480 4480
4481 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte 44812008-05-15 Kenichi Handa <handa@m17n.org>
4482 buffer. Check the return value of it. 4482
4483 4483 * ftfont.c (ftfont_list): Downcase family name to check generic
44842008-05-14 Jason Rumney <jasonr@gnu.org> 4484 families.
4485 4485
4486 * w32term.c (w32_get_glyph_overhangs): Remove. 4486 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
4487 (w32_redisplay_interface): Use x_get_glyph_overhangs instead. 4487 font-spec for QCfont value.
4488 4488
44892008-05-14 Kenichi Handa <handa@m17n.org> 4489 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
4490 4490 buffer. Check the return value of it.
4491 * font.c (font_prop_validate): Make nil a valid value. 4491
4492 (font_clear_cache): Check if the cached vector of entities is nil 44922008-05-14 Jason Rumney <jasonr@gnu.org>
4493 or not. 4493
4494 4494 * w32term.c (w32_get_glyph_overhangs): Remove.
44952008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 4495 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
4496 4496
4497 * emacs.c (main_thread): Conditionalize on 44972008-05-14 Kenichi Handa <handa@m17n.org>
4498 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. 4498
4499 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it. 4499 * font.c (font_prop_validate): Make nil a valid value.
4500 4500 (font_clear_cache): Check if the cached vector of entities is nil
4501 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define. 4501 or not.
4502 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on 4502
4503 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. 45032008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4504 4504
45052008-05-14 Kenichi Handa <handa@m17n.org> 4505 * emacs.c (main_thread): Conditionalize on
4506 4506 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4507 * coding.c (detect_coding_iso_2022): Ignore a coding category that 4507 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
4508 has no corresponding coding system. 4508
4509 4509 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
45102008-05-14 Jason Rumney <jasonr@gnu.org> 4510 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
4511 4511 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4512 * font.h (struct font) [WINDOWSNT]: Remove codepage member. 4512
4513 45132008-05-14 Kenichi Handa <handa@m17n.org>
4514 * w32font.h (w32font_open_internal): Update declaration. 4514
4515 4515 * coding.c (detect_coding_iso_2022): Ignore a coding category that
4516 * w32font.c (w32font_open_internal): Change last argument from 4516 has no corresponding coding system.
4517 w32font_info struct to font object. Fill in font object from 4517
4518 font_entity. Get Outline metrics if possible. Use them to 45182008-05-14 Jason Rumney <jasonr@gnu.org>
4519 calculate underline position and thickness. Use xlfd name as name 4519
4520 property. Don't set codepage. 4520 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
4521 (w32font_open): Pass font_object to w32font_open_internal. Don't 4521
4522 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width. 4522 * w32font.h (w32font_open_internal): Update declaration.
4523 (w32font_draw): Use s->font. 4523
4524 (clear_cached_metrics): Don't clear non-existent blocks. 4524 * w32font.c (w32font_open_internal): Change last argument from
4525 4525 w32font_info struct to font object. Fill in font object from
4526 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if 4526 font_entity. Get Outline metrics if possible. Use them to
4527 font was not found. 4527 calculate underline position and thickness. Use xlfd name as name
4528 (x_draw_glyph_string): Use underline position and thickness from font. 4528 property. Don't set codepage.
4529 4529 (w32font_open): Pass font_object to w32font_open_internal. Don't
4530 * w32uniscribe.c (uniscribe_open): Pass font_object to 4530 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
4531 w32font_open_internal. 4531 (w32font_draw): Use s->font.
4532 4532 (clear_cached_metrics): Don't clear non-existent blocks.
45332008-05-14 Kenichi Handa <handa@m17n.org> 4533
4534 4534 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
4535 These changes are to delete all legacy font-handling codes, and 4535 font was not found.
4536 make Emacs use only font-backends. 4536 (x_draw_glyph_string): Use underline position and thickness from font.
4537 4537
4538 * Makefile.in: Delete USE_FONT_BACKEND conditionals. 4538 * w32uniscribe.c (uniscribe_open): Pass font_object to
4539 (frame.o, image.o, print.o): Depend on $(FONTSRC). 4539 w32font_open_internal.
4540 4540
4541 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O). 45412008-05-14 Kenichi Handa <handa@m17n.org>
4542 4542
4543 * charset.h (Vcharset_non_preferred_head) 4543 These changes are to delete all legacy font-handling codes, and
4544 (Vcurrent_iso639_language): Extern them. 4544 make Emacs use only font-backends.
4545 4545
4546 * charset.c (Vcharset_non_preferred_head): New variable. 4546 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
4547 (Vcurrent_iso639_language): New variable. 4547 (frame.o, image.o, print.o): Depend on $(FONTSRC).
4548 (syms_of_charset): Declare it as a Lisp variable. 4548
4549 (char_charset): Don't check non preferred charsets. As a last 4549 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
4550 resort, return charset_unicode. 4550
4551 (Fset_charset_priority): Update Vcharset_non_preferred_head. 4551 * charset.h (Vcharset_non_preferred_head)
4552 4552 (Vcurrent_iso639_language): Extern them.
4553 * composite.c: Throughout the file, delete all USE_FONT_BACKEND 4553
4554 conditionals. Don't check enable_font_backend. Delete all codes 4554 * charset.c (Vcharset_non_preferred_head): New variable.
4555 used only when USE_FONT_BACKEND is not defined. 4555 (Vcurrent_iso639_language): New variable.
4556 4556 (syms_of_charset): Declare it as a Lisp variable.
4557 * dispextern.h (struct glyph_string): Change type of `font' to 4557 (char_charset): Don't check non preferred charsets. As a last
4558 `struct font *'. 4558 resort, return charset_unicode.
4559 (struct glyph_string): New member underline_position and 4559 (Fset_charset_priority): Update Vcharset_non_preferred_head.
4560 underline_thickness. 4560
4561 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX. 4561 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
4562 (struct face): Change type of `font' to `struct font *'. Remove 4562 conditionals. Don't check enable_font_backend. Delete all codes
4563 members `font_name', `font_info_id'. 4563 used only when USE_FONT_BACKEND is not defined.
4564 (per_char_metric, encode_char): Delete externs. 4564
4565 (calc_pixel_width_or_height): Adjust the prototype. 4565 * dispextern.h (struct glyph_string): Change type of `font' to
4566 4566 `struct font *'.
4567 * emacs.c (enable_font_backend): Delete extern. 4567 (struct glyph_string): New member underline_position and
4568 (main): Don't set enable_font_backend. Don't check the command 4568 underline_thickness.
4569 line argument "-disable-font-backend". 4569 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
4570 4570 (struct face): Change type of `font' to `struct font *'. Remove
4571 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them. 4571 members `font_name', `font_info_id'.
4572 (enum font_property_index): New members FONT_DPI_INDEX, 4572 (per_char_metric, encode_char): Delete externs.
4573 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX, 4573 (calc_pixel_width_or_height): Adjust the prototype.
4574 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX, 4574
4575 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX. 4575 * emacs.c (enable_font_backend): Delete extern.
4576 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC) 4576 (main): Don't set enable_font_backend. Don't check the command
4577 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC) 4577 line argument "-disable-font-backend".
4578 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE) 4578
4579 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC) 4579 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
4580 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros. 4580 (enum font_property_index): New members FONT_DPI_INDEX,
4581 (struct font_spec, struct font_entity): New structs. 4581 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
4582 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h. 4582 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
4583 (struct font): Many members from old "struct font_info" moved to 4583 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
4584 here. Members font and entity deleted. 4584 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
4585 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for 4585 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
4586 the new font-related objects. 4586 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
4587 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT) 4587 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
4588 (CHECK_FONT_GET_OBJECT): Likewise. 4588 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
4589 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros. 4589 (struct font_spec, struct font_entity): New structs.
4590 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h. 4590 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
4591 (struct font_driver): New members case_sensitive anc check. Type 4591 (struct font): Many members from old "struct font_info" moved to
4592 of the member list and open changed. 4592 here. Members font and entity deleted.
4593 (enable_font_backend, font_symbolic_weight, font_symbolic_slant) 4593 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
4594 (font_symbolic_width, font_find_object, font_get_spec) 4594 the new font-related objects.
4595 (font_set_lface_from_name): Delete extern. 4595 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
4596 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs. 4596 (CHECK_FONT_GET_OBJECT): Likewise.
4597 4597 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
4598 * font.c: Include <strings.h>. 4598 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
4599 (enable_font_backend): Delete it. 4599 (struct font_driver): New members case_sensitive anc check. Type
4600 (Qfont_spec, Qfont_entity, Qfont_object): New variables. 4600 of the member list and open changed.
4601 (CHECK_VALIDATE_FONT_SPEC): Delete it. 4601 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
4602 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h. 4602 (font_symbolic_width, font_find_object, font_get_spec)
4603 (null_string): Delete it. 4603 (font_set_lface_from_name): Delete extern.
4604 (null_vector): Make it static. 4604 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
4605 (font_family_alist): Delete it. 4605
4606 (Qnormal): Extern it. 4606 * font.c: Include <strings.h>.
4607 (QCextra, QClanguage): Delete it. 4607 (enable_font_backend): Delete it.
4608 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables. 4608 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
4609 (font_make_spec, font_make_entity, font_make_object) 4609 (CHECK_VALIDATE_FONT_SPEC): Delete it.
4610 (font_intern_prop): Renamed from intern_downcase. Don't downcase 4610 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
4611 the string. Callers changed. 4611 (null_string): Delete it.
4612 (font_pixel_size): Adjusted for the format change of font-related 4612 (null_vector): Make it static.
4613 objects. 4613 (font_family_alist): Delete it.
4614 (prop_name_to_numeric, prop_numeric_to_name): Delete them. 4614 (Qnormal): Extern it.
4615 (font_style_to_value, font_style_symbolic): New function. 4615 (QCextra, QClanguage): Delete it.
4616 (build_font_family_alist): Delete it. 4616 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
4617 (font_registry_charsets): Use Fassoc_string instead of 4617 (font_make_spec, font_make_entity, font_make_object)
4618 assq_no_quit. 4618 (font_intern_prop): Renamed from intern_downcase. Don't downcase
4619 (font_prop_validate_symbol): Don't return null_string. 4619 the string. Callers changed.
4620 (font_prop_validate_style): Adjusted for the change of 4620 (font_pixel_size): Adjusted for the format change of font-related
4621 style-related values in a font vector. 4621 objects.
4622 (font_property_table): Delete entries for QClanguage and 4622 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
4623 QCantialias, add entries for QCavgwidth. 4623 (font_style_to_value, font_style_symbolic): New function.
4624 (get_font_prop_index): Delete the 2nd argument FROM. 4624 (build_font_family_alist): Delete it.
4625 (font_prop_validate): Arguments changed. 4625 (font_registry_charsets): Use Fassoc_string instead of
4626 (font_put_extra): Adjusted for the change of font-related objects. 4626 assq_no_quit.
4627 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd) 4627 (font_prop_validate_symbol): Don't return null_string.
4628 (font_parse_fcname, font_unparse_fcname) 4628 (font_prop_validate_style): Adjusted for the change of
4629 (font_prepare_composition): Likewise. 4629 style-related values in a font vector.
4630 (font_parse_family_registry): Renamed from font_merge_old_spec. 4630 (font_property_table): Delete entries for QClanguage and
4631 (otf_open): Delete the 1st arg entity. 4631 QCantialias, add entries for QCavgwidth.
4632 (font_otf_capability): Adjusted for the above change. 4632 (get_font_prop_index): Delete the 2nd argument FROM.
4633 (font_score): New arg alternate_families. Adjusted for the change 4633 (font_prop_validate): Arguments changed.
4634 of font-related objects. 4634 (font_put_extra): Adjusted for the change of font-related objects.
4635 (font_sort_entites): New arg best_only. 4635 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
4636 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width): 4636 (font_parse_fcname, font_unparse_fcname)
4637 Delete them. 4637 (font_prepare_composition): Likewise.
4638 (font_match_p): Check alternate families. 4638 (font_parse_family_registry): Renamed from font_merge_old_spec.
4639 (font_find_object): Delete it. 4639 (otf_open): Delete the 1st arg entity.
4640 (font_check_object): New function. 4640 (font_otf_capability): Adjusted for the above change.
4641 (font_clear_cache): Adjusted for the change of font-related objects. 4641 (font_score): New arg alternate_families. Adjusted for the change
4642 (font_delete_unmatched): New arg. 4642 of font-related objects.
4643 (font_list_entities): Call font_driver->list with a spec that 4643 (font_sort_entites): New arg best_only.
4644 doesn't specify style-related properties. 4644 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
4645 (font_matching_entity): Arguments changed. Caller changed. 4645 Delete them.
4646 (font_open_entity): Adjusted for the change of font-related objects. 4646 (font_match_p): Check alternate families.
4647 (font_close_object, font_has_char, font_encode_char) 4647 (font_find_object): Delete it.
4648 (font_get_name, font_get_spec): Likewise. 4648 (font_check_object): New function.
4649 (font_spec_from_name, font_clear_prop, font_update_lface): 4649 (font_clear_cache): Adjusted for the change of font-related objects.
4650 New functions. 4650 (font_delete_unmatched): New arg.
4651 (font_find_for_lface, font_open_for_lface, font_load_for_lface) 4651 (font_list_entities): Call font_driver->list with a spec that
4652 (font_prepare_for_face, font_done_for_face, font_open_by_name) 4652 doesn't specify style-related properties.
4653 (font_at): Adjusted for the change of font-related objects. 4653 (font_matching_entity): Arguments changed. Caller changed.
4654 (font_range): New function. 4654 (font_open_entity): Adjusted for the change of font-related objects.
4655 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts) 4655 (font_close_object, font_has_char, font_encode_char)
4656 (Ffont_xlfd_name): Adjusted for the change of font-related objects. 4656 (font_get_name, font_get_spec): Likewise.
4657 (Fcopy_font_spec, Fmerge_font_spec): New function. 4657 (font_spec_from_name, font_clear_prop, font_update_lface):
4658 (Ffont_family_list): Renamed from list-families. 4658 New functions.
4659 (Finternal_set_font_style_table): Arguments changed. 4659 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
4660 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font) 4660 (font_prepare_for_face, font_done_for_face, font_open_by_name)
4661 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the 4661 (font_at): Adjusted for the change of font-related objects.
4662 change of font-related objects. 4662 (font_range): New function.
4663 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols. 4663 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
4664 4664 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
4665 * fontset.h (struct font_info): Delete it. Most members go to 4665 (Fcopy_font_spec, Fmerge_font_spec): New function.
4666 struct font. 4666 (Ffont_family_list): Renamed from list-families.
4667 (FONT_ENCODING_NOT_DECIDED): Moved to font.h. 4667 (Finternal_set_font_style_table): Arguments changed.
4668 (enum FONT_SPEC_INDEX): Delete it. 4668 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
4669 (font_info, list_fonts_func, load_font_func, query_font_func) 4669 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
4670 (set_frame_fontset_func, find_ccl_program_func) 4670 change of font-related objects.
4671 (get_font_repertory_func, new_fontset_from_font_name): Delete 4671 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
4672 externs. 4672
4673 (fontset_from_font_name): Extern it. 4673 * fontset.h (struct font_info): Delete it. Most members go to
4674 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID) 4674 struct font.
4675 (FONT_INFO_FROM_FACE): Deleted. 4675 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
4676 (face_for_font): Adjust prototype. 4676 (enum FONT_SPEC_INDEX): Delete it.
4677 4677 (font_info, list_fonts_func, load_font_func, query_font_func)
4678 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND 4678 (set_frame_fontset_func, find_ccl_program_func)
4679 conditionals. Don't check enable_font_backend. Delete all codes 4679 (get_font_repertory_func, new_fontset_from_font_name): Delete
4680 used only when USE_FONT_BACKEND is not defined. 4680 externs.
4681 (get_font_info_func, list_font_func, load_font_func) 4681 (fontset_from_font_name): Extern it.
4682 (query_font_func, set_frame_fontset_func, find_ccl_program_func) 4682 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
4683 (get_font_repertory_func): Delete them. 4683 (FONT_INFO_FROM_FACE): Deleted.
4684 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING) 4684 (face_for_font): Adjust prototype.
4685 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE) 4685
4686 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY) 4686 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
4687 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE) 4687 conditionals. Don't check enable_font_backend. Delete all codes
4688 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros. 4688 used only when USE_FONT_BACKEND is not defined.
4689 (fontset_compare_rfontdef): New function. 4689 (get_font_info_func, list_font_func, load_font_func)
4690 (reorder_font_vector): Remove the argument CHARSET-ID. Sort 4690 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
4691 rfont-defs by qsort. Adjusted for the change of font-group vector. 4691 (get_font_repertory_func): Delete them.
4692 (load_font_get_repertory): Deleted. 4692 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
4693 (fontset_find_font): Use new macros to ref/set elements of 4693 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
4694 font-def and rfont-def. 4694 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
4695 (fontset_font): Fix the timing of remembering that no font for C. 4695 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
4696 (free_face_fontset): Do nothing if the face has no fontset. 4696 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
4697 (face_suitable_for_char_p): Use new macros to ref/set elements of 4697 (fontset_compare_rfontdef): New function.
4698 rfont-def. 4698 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
4699 (face_for_char): Likewise. Call face_for_char with font_object. 4699 rfont-defs by qsort. Adjusted for the change of font-group vector.
4700 (fs_load_font): Delete. Delete #pragma surrounding it. 4700 (load_font_get_repertory): Deleted.
4701 (fs_query_fontset): Use strcasecmp instead of strcmp. 4701 (fontset_find_font): Use new macros to ref/set elements of
4702 (generate_ascii_font_name): Adjusted for the format change of 4702 font-def and rfont-def.
4703 font-spec. 4703 (fontset_font): Fix the timing of remembering that no font for C.
4704 (Fset_fontset_font): Likewise. Use new macros to set elements of 4704 (free_face_fontset): Do nothing if the face has no fontset.
4705 font-def. 4705 (face_suitable_for_char_p): Use new macros to ref/set elements of
4706 (Fnew_fontset): Use font_unparse_xlfd to generate 4706 rfont-def.
4707 FONTSET_ASCII (fontset). 4707 (face_for_char): Likewise. Call face_for_char with font_object.
4708 (new_fontset_from_font_name): Deleted. 4708 (fs_load_font): Delete. Delete #pragma surrounding it.
4709 (fontset_from_font): Renamed from new_fontset_from_font. Check if 4709 (fs_query_fontset): Use strcasecmp instead of strcmp.
4710 a fontset is already created for the font. FIx updating of 4710 (generate_ascii_font_name): Adjusted for the format change of
4711 Vfontset_alias_alist. 4711 font-spec.
4712 (fontset_ascii_font): Deleted. 4712 (Fset_fontset_font): Likewise. Use new macros to set elements of
4713 (Ffont_info): Adjusted for the format change of font-spec. 4713 font-def.
4714 (Finternal_char_font): Likewise. 4714 (Fnew_fontset): Use font_unparse_xlfd to generate
4715 (Ffontset_info): Likewise. 4715 FONTSET_ASCII (fontset).
4716 (syms_of_fontset): Don't check load_font_func. 4716 (new_fontset_from_font_name): Deleted.
4717 4717 (fontset_from_font): Renamed from new_fontset_from_font. Check if
4718 * fns.c (internal_equal): Handle PREV_FONT. 4718 a fontset is already created for the font. FIx updating of
4719 4719 Vfontset_alias_alist.
4720 * frame.h: Delete USE_FONT_BACKEND conditional. 4720 (fontset_ascii_font): Deleted.
4721 4721 (Ffont_info): Adjusted for the format change of font-spec.
4722 * frame.c: Throughout the file, delete all USE_FONT_BACKEND 4722 (Finternal_char_font): Likewise.
4723 conditionals. Don't check enable_font_backend. Delete all codes 4723 (Ffontset_info): Likewise.
4724 used only when USE_FONT_BACKEND is not defined. 4724 (syms_of_fontset): Don't check load_font_func.
4725 (x_set_font): Call x_new_font, not x_new_fontset2. 4725
4726 (x_set_font_backend): Use FRAME_FONT macro to check if a font is 4726 * fns.c (internal_equal): Handle PREV_FONT.
4727 already set for the frame. 4727
4728 4728 * frame.h: Delete USE_FONT_BACKEND conditional.
4729 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make 4729
4730 a font-entity by font_make_entity. Use font_intern_prop instead 4730 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
4731 of intern_downcase. Use FONT_SET_STYLE to set a style-related 4731 conditionals. Don't check enable_font_backend. Delete all codes
4732 font property. If a font is scalable, set avgwidth property to 0. 4732 used only when USE_FONT_BACKEND is not defined.
4733 Set font-entity property by font_put_extra. 4733 (x_set_font): Call x_new_font, not x_new_fontset2.
4734 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed. 4734 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
4735 (ffont_driver): Adjusted for the change of struct font_driver. 4735 already set for the frame.
4736 (ftfont_spec_pattern): New function. 4736
4737 (ftfont_list): Return a list, not vector. 4737 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
4738 (ftfont_match): Use ftfont_spec_pattern to get a pattern. 4738 a font-entity by font_make_entity. Use font_intern_prop instead
4739 (ftfont_list_family): Don't downcase names. 4739 of intern_downcase. Use FONT_SET_STYLE to set a style-related
4740 (ftfont_free_entity): Deleted. 4740 font property. If a font is scalable, set avgwidth property to 0.
4741 (ftfont_open): Return a font-object. Adjusted for the change of 4741 Set font-entity property by font_put_extra.
4742 struct font. Get underline_thickness and underline_position from 4742 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
4743 font property. Don't update dpyinfo->smallest_font_height and 4743 (ffont_driver): Adjusted for the change of struct font_driver.
4744 dpyinfo->smallest_char_width. 4744 (ftfont_spec_pattern): New function.
4745 (ftfont_close): Don't free `struct font'. 4745 (ftfont_list): Return a list, not vector.
4746 (ftfont_has_char): Adjusted for the format change of font-entity. 4746 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
4747 (ftfont_encode_char, ftfont_text_extents): Likewise. 4747 (ftfont_list_family): Don't downcase names.
4748 4748 (ftfont_free_entity): Deleted.
4749 * ftxfont.c (ftxfont_list): Return a list, not vector. 4749 (ftfont_open): Return a font-object. Adjusted for the change of
4750 (ftxfont_open): Return a font-object. Adjusted for the change of 4750 struct font. Get underline_thickness and underline_position from
4751 struct font. Get underline_thickness and underline_position from 4751 font property. Don't update dpyinfo->smallest_font_height and
4752 font property. Don't update dpyinfo->smallest_font_height and 4752 dpyinfo->smallest_char_width.
4753 dpyinfo->smallest_char_width. 4753 (ftfont_close): Don't free `struct font'.
4754 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts. 4754 (ftfont_has_char): Adjusted for the format change of font-entity.
4755 (ftxfont_draw): Adjusted for the change of struct font. 4755 (ftfont_encode_char, ftfont_text_extents): Likewise.
4756 4756
4757 * image.c (image_ascent): Don't include "charset.h". Include 4757 * ftxfont.c (ftxfont_list): Return a list, not vector.
4758 "character.h" and "font.h". 4758 (ftxfont_open): Return a font-object. Adjusted for the change of
4759 4759 struct font. Get underline_thickness and underline_position from
4760 * lisp.h (enum pvec_type): New member PREV_FONT. 4760 font property. Don't update dpyinfo->smallest_font_height and
4761 (Fassoc_string): EXFUN it. 4761 dpyinfo->smallest_char_width.
4762 4762 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
4763 * print.c: Include font.h. 4763 (ftxfont_draw): Adjusted for the change of struct font.
4764 (print_object): Handle font-related objects. 4764
4765 4765 * image.c (image_ascent): Don't include "charset.h". Include
4766 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND 4766 "character.h" and "font.h".
4767 conditionals. Don't check enable_font_backend. Delete all codes 4767
4768 used only when USE_FONT_BACKEND is not defined. 4768 * lisp.h (enum pvec_type): New member PREV_FONT.
4769 (handle_auto_composed_prop): Do nothing if it->f is not on a 4769 (Fassoc_string): EXFUN it.
4770 window system. Check how many following characters can be 4770
4771 displayed by the same font. 4771 * print.c: Include font.h.
4772 (calc_pixel_width_or_height): Type of the 4th arg is changed to 4772 (print_object): Handle font-related objects.
4773 'struct font *'. 4773
4774 (get_char_face_and_encoding): Assign the whole encoding task to 4774 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
4775 the `encode-char' method of a font driver. 4775 conditionals. Don't check enable_font_backend. Delete all codes
4776 (fill_composite_glyph_string): Adjusted for the change of `struct 4776 used only when USE_FONT_BACKEND is not defined.
4777 face' and `struct glyph_string'. 4777 (handle_auto_composed_prop): Do nothing if it->f is not on a
4778 (fill_glyph_string): Likewise. 4778 window system. Check how many following characters can be
4779 (get_per_char_metric): Arguments changed. 4779 displayed by the same font.
4780 (x_get_glyph_overhangs): Adjusted for the change of `struct face' 4780 (calc_pixel_width_or_height): Type of the 4th arg is changed to
4781 and `struct glyph_string'. 4781 'struct font *'.
4782 (produce_stretch_glyph, calc_line_height_property) 4782 (get_char_face_and_encoding): Assign the whole encoding task to
4783 (x_produce_glyphs): Likewise. 4783 the `encode-char' method of a font driver.
4784 4784 (fill_composite_glyph_string): Adjusted for the change of `struct
4785 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND 4785 face' and `struct glyph_string'.
4786 conditionals. Don't check enable_font_backend. Delete all codes 4786 (fill_glyph_string): Likewise.
4787 used only when USE_FONT_BACKEND is not defined. Use 4787 (get_per_char_metric): Arguments changed.
4788 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx. 4788 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
4789 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth) 4789 and `struct glyph_string'.
4790 (Qp): Extern them. 4790 (produce_stretch_glyph, calc_line_height_property)
4791 (clear_font_table, load_face_font, xlfd_lookup_field_contents): 4791 (x_produce_glyphs): Likewise.
4792 Deleted. 4792
4793 (struct font_name): Deleted. 4793 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
4794 (xlfd_numeric_value, xlfd_symbolic_value): Deleted. 4794 conditionals. Don't check enable_font_backend. Delete all codes
4795 (compare_fonts_by_sort_order): New function. 4795 used only when USE_FONT_BACKEND is not defined. Use
4796 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight) 4796 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
4797 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth): 4797 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
4798 Deleted. 4798 (Qp): Extern them.
4799 (Fx_family_fonts): Use font_list_entities, and sort fonts by 4799 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
4800 compare_fonts_by_sort_order. 4800 Deleted.
4801 (Fx_font_family_list): Call Ffont_family_list. 4801 (struct font_name): Deleted.
4802 (face_numeric_value, face_numeric_weight, face_numeric_slant) 4802 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
4803 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight) 4803 (compare_fonts_by_sort_order): New function.
4804 (face_symbolic_slant, face_symbolic_swidth) 4804 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
4805 (split_font_name_into_vector, build_font_name_from_vector) 4805 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
4806 (xlfd_fixed_p, xlfd_point_size, pixel_point_size) 4806 Deleted.
4807 (font_rescale_ratio, split_font_name, build_font_name) 4807 (Fx_family_fonts): Use font_list_entities, and sort fonts by
4808 (free_font_names, sort_fonts, x_face_list_fonts) 4808 compare_fonts_by_sort_order.
4809 (face_font_available_p, sorted_font_list, cmp_font_names) 4809 (Fx_font_family_list): Call Ffont_family_list.
4810 (font_list_1, concat_font_list, font_list, remove_duplicates): 4810 (face_numeric_value, face_numeric_weight, face_numeric_slant)
4811 Deleted. 4811 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
4812 (Fx_list_fonts): Use Ffont_list. 4812 (face_symbolic_slant, face_symbolic_swidth)
4813 (LFACE_AVGWIDTH): Deleted. 4813 (split_font_name_into_vector, build_font_name_from_vector)
4814 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT 4814 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
4815 by FONTP. 4815 (font_rescale_ratio, split_font_name, build_font_name)
4816 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. 4816 (free_font_names, sort_fonts, x_face_list_fonts)
4817 (set_lface_from_font_name): Delete it. 4817 (face_font_available_p, sorted_font_list, cmp_font_names)
4818 (set_lface_from_font): Renamed from 4818 (font_list_1, concat_font_list, font_list, remove_duplicates):
4819 set_lface_from_font_and_fontset. Caller changed. Don't set 4819 Deleted.
4820 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable 4820 (Fx_list_fonts): Use Ffont_list.
4821 for face. 4821 (LFACE_AVGWIDTH): Deleted.
4822 (merge_face_vectors): Copy font-spec if necessary. 4822 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
4823 Clear properties of the font-spec if necessary. 4823 by FONTP.
4824 (merge_face_ref): Clear properties of the font-spec if necessary. 4824 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4825 (Finternal_set_lisp_face_attribute): Likewise. 4825 (set_lface_from_font_name): Delete it.
4826 (set_font_frame_param): Use font_load_for_lface to load a 4826 (set_lface_from_font): Renamed from
4827 font-object, and call Fmodify_frame_parameters with it. 4827 set_lface_from_font_and_fontset. Caller changed. Don't set
4828 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD 4828 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
4829 font name by Ffont_xlfd_name. 4829 for face.
4830 (Finternal_lisp_face_attribute_values): Don't check QCweight, 4830 (merge_face_vectors): Copy font-spec if necessary.
4831 QCslant, and QCwidth. 4831 Clear properties of the font-spec if necessary.
4832 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX]. 4832 (merge_face_ref): Clear properties of the font-spec if necessary.
4833 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH. 4833 (Finternal_set_lisp_face_attribute): Likewise.
4834 Compare fonts by EQ. 4834 (set_font_frame_param): Use font_load_for_lface to load a
4835 (lookup_non_ascii_face): Deleted. 4835 font-object, and call Fmodify_frame_parameters with it.
4836 (face_for_font): The 2nd argument changed. 4836 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
4837 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. 4837 font name by Ffont_xlfd_name.
4838 Check atomic font properties by case insensitive. 4838 (Finternal_lisp_face_attribute_values): Don't check QCweight,
4839 (realize_non_ascii_face): Set face->overstrike correctly. 4839 QCslant, and QCwidth.
4840 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object. 4840 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
4841 (dump_realized_face): Get font name from 4841 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
4842 font->props[FONT_NAME_INDEX]. Don't print font_info_id. 4842 Compare fonts by EQ.
4843 4843 (lookup_non_ascii_face): Deleted.
4844 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND 4844 (face_for_font): The 2nd argument changed.
4845 conditionals. Don't check enable_font_backend. Delete all codes 4845 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
4846 used only when USE_FONT_BACKEND is not defined. 4846 Check atomic font properties by case insensitive.
4847 (xic_create_xfontset): Original code deleted and renamed from 4847 (realize_non_ascii_face): Set face->overstrike correctly.
4848 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT. 4848 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
4849 (x_make_gc): Don't set GCFont in GCs. 4849 (dump_realized_face): Get font name from
4850 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font 4850 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
4851 opened by "fixed". 4851
4852 (syms_of_xfns): Don't set get_font_info_func, load_font_func, 4852 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
4853 find_ccl_program_func, query_font_func, set_frame_fontset_func, 4853 conditionals. Don't check enable_font_backend. Delete all codes
4854 get_font_repertory_func. 4854 used only when USE_FONT_BACKEND is not defined.
4855 4855 (xic_create_xfontset): Original code deleted and renamed from
4856 * xfont.c: Include <stdlib.h> and "ccl.h". 4856 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
4857 (struct xfont_info): New structure. 4857 (x_make_gc): Don't set GCFont in GCs.
4858 (xfont_query_font): Deleted. 4858 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
4859 (xfont_find_ccl_program): Renamed from x_find_ccl_program and 4859 opened by "fixed".
4860 moved from xterm.c. 4860 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
4861 (xfont_driver): Adjusted for the change of struct font_driver. 4861 find_ccl_program_func, query_font_func, set_frame_fontset_func,
4862 (compare_font_names): New function. 4862 get_font_repertory_func.
4863 (xfont_list_pattern): Sort font names case insensitively. Make 4863
4864 font_entity by calling font_make_entity. Avoid auto-scaled fonts. 4864 * xfont.c: Include <stdlib.h> and "ccl.h".
4865 (xfont_list): Return a list, not vector. 4865 (struct xfont_info): New structure.
4866 (xfont_match): If the font doesn't have QCname property, generate 4866 (xfont_query_font): Deleted.
4867 a name from the other font properties. 4867 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
4868 (xfont_open): Return a font-object. Adjusted for the change of 4868 moved from xterm.c.
4869 struct font. Get underline_thickness and underline_position from 4869 (xfont_driver): Adjusted for the change of struct font_driver.
4870 font property. Don't update dpyinfo->smallest_font_height and 4870 (compare_font_names): New function.
4871 dpyinfo->smallest_char_width. 4871 (xfont_list_pattern): Sort font names case insensitively. Make
4872 (xfont_close): Don't free struct font. 4872 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
4873 (xfont_prepare_face): Adjusted for the change of struct font. 4873 (xfont_list): Return a list, not vector.
4874 (xfont_done_face): Deleted. 4874 (xfont_match): If the font doesn't have QCname property, generate
4875 (xfont_has_char): Adjusted for the change of struct font. 4875 a name from the other font properties.
4876 (xfont_encode_char, xfont_draw): Likewise. 4876 (xfont_open): Return a font-object. Adjusted for the change of
4877 (xfont_check): New function. 4877 struct font. Get underline_thickness and underline_position from
4878 4878 font property. Don't update dpyinfo->smallest_font_height and
4879 * xftfont.c (xftfont_list): Adjusted for the change of `list' 4879 dpyinfo->smallest_char_width.
4880 callback function. 4880 (xfont_close): Don't free struct font.
4881 (xftfont_match): Adjusted for the format change of font-entity. 4881 (xfont_prepare_face): Adjusted for the change of struct font.
4882 (xftfont_open): Adjusted for the format change of font-entity and 4882 (xfont_done_face): Deleted.
4883 font-object. Adjusted for the change of struct font. Return a 4883 (xfont_has_char): Adjusted for the change of struct font.
4884 font-object. Don't update dpyinfo->smallest_font_height and 4884 (xfont_encode_char, xfont_draw): Likewise.
4885 dpyinfo->smallest_char_width. 4885 (xfont_check): New function.
4886 (xftfont_close): Block input while calling XftFontClose. 4886
4887 (xftfont_prepare_face): Don't block input while calling 4887 * xftfont.c (xftfont_list): Adjusted for the change of `list'
4888 xftfont_get_colors. Adjusted for the change of struct font. 4888 callback function.
4889 (xftfont_shape): Return value of error case fixed. 4889 (xftfont_match): Adjusted for the format change of font-entity.
4890 4890 (xftfont_open): Adjusted for the format change of font-entity and
4891 * xrdb.c (x_load_resources): Don't setup a fontset resource. 4891 font-object. Adjusted for the change of struct font. Return a
4892 4892 font-object. Don't update dpyinfo->smallest_font_height and
4893 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND 4893 dpyinfo->smallest_char_width.
4894 conditionals. 4894 (xftfont_close): Block input while calling XftFontClose.
4895 (FONT_WIDTH): Return (f)->max_width. 4895 (xftfont_prepare_face): Don't block input while calling
4896 (struct x_display_info): Delete member `font'. 4896 xftfont_get_colors. Adjusted for the change of struct font.
4897 (x_list_fonts, x_get_font_info, x_load_font, x_query_font) 4897 (xftfont_shape): Return value of error case fixed.
4898 (x_find_ccl_program, x_get_font_repertory): Delete externs. 4898
4899 (struct x_output): Change type of `font' to `struct font *'. 4899 * xrdb.c (x_load_resources): Don't setup a fontset resource.
4900 4900
4901 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND 4901 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
4902 conditionals. Don't check enable_font_backend. Delete all codes 4902 conditionals.
4903 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h. 4903 (FONT_WIDTH): Return (f)->max_width.
4904 (x_per_char_metric, x_encode_char): Deleted. 4904 (struct x_display_info): Delete member `font'.
4905 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont. 4905 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
4906 (x_compute_glyph_string_overhangs): Adjusted for the change of 4906 (x_find_ccl_program, x_get_font_repertory): Delete externs.
4907 `struct face'. 4907 (struct x_output): Change type of `font' to `struct font *'.
4908 (x_draw_glyph_string_foreground) 4908
4909 (x_draw_composite_glyph_string_foreground): Likewise. 4909 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
4910 (x_draw_glyph_string): Likewise. Use font->underline_position and 4910 conditionals. Don't check enable_font_backend. Delete all codes
4911 font->underline_thickness. 4911 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
4912 (x_new_font): Renamed from x_new_fontset2. 4912 (x_per_char_metric, x_encode_char): Deleted.
4913 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted. 4913 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
4914 (x_check_font): Call `check' method of a font driver. 4914 (x_compute_glyph_string_overhangs): Adjusted for the change of
4915 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font) 4915 `struct face'.
4916 (x_query_font, x_get_font_repertory): Deleted. 4916 (x_draw_glyph_string_foreground)
4917 (x_find_ccl_program): Renamed and moved to xfont.c. 4917 (x_draw_composite_glyph_string_foreground): Likewise.
4918 (x_redisplay_interface): Adjusted for the change of `struct 4918 (x_draw_glyph_string): Likewise. Use font->underline_position and
4919 redisplay_interface'. 4919 font->underline_thickness.
4920 4920 (x_new_font): Renamed from x_new_fontset2.
4921 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND 4921 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
4922 conditionals. Don't check enable_font_backend. Delete all codes 4922 (x_check_font): Call `check' method of a font driver.
4923 used only when USE_FONT_BACKEND is not defined. Surround non-used 4923 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
4924 code by "#ifdef OLD_FONT" and "endif". 4924 (x_query_font, x_get_font_repertory): Deleted.
4925 (Fw32_select_font): Use FONT_COMPAT to get old font structure. 4925 (x_find_ccl_program): Renamed and moved to xfont.c.
4926 4926 (x_redisplay_interface): Adjusted for the change of `struct
4927 * w32font.h (struct w32font_info): New member. 4927 redisplay_interface'.
4928 (FONT_COMPAT): New macro. 4928
4929 (w32font_open_internal): Prototype adjusted. 4929 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
4930 4930 conditionals. Don't check enable_font_backend. Delete all codes
4931 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if 4931 used only when USE_FONT_BACKEND is not defined. Surround non-used
4932 OLD_FONT" and "endif". 4932 code by "#ifdef OLD_FONT" and "endif".
4933 4933 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
4934 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND 4934
4935 conditionals. Don't check enable_font_backend. Delete all codes 4935 * w32font.h (struct w32font_info): New member.
4936 used only when USE_FONT_BACKEND is not defined. 4936 (FONT_COMPAT): New macro.
4937 (w32font_open): Return a font-object. Make a font-object by 4937 (w32font_open_internal): Prototype adjusted.
4938 font_make_object. Adjusted for the change of struct w32font_info. 4938
4939 (w32font_close): Don't free struct font. Adjusted for the change 4939 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
4940 of struct w32font_info. 4940 OLD_FONT" and "endif".
4941 (w32font_encode_char, w32font_text_extents, w32font_draw): 4941
4942 Adjusted for the change of struct w32font_info. 4942 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
4943 (w32font_draw): Likewise. 4943 conditionals. Don't check enable_font_backend. Delete all codes
4944 (w32font_list_internal): Return a list, not vector. 4944 used only when USE_FONT_BACKEND is not defined.
4945 (w32font_open_internal): Change the 4th arg to font-object. 4945 (w32font_open): Return a font-object. Make a font-object by
4946 Adjusted for the change of struct w32font_info and font-object format. 4946 font_make_object. Adjusted for the change of struct w32font_info.
4947 (add_font_name_to_list): Don't downcase names. 4947 (w32font_close): Don't free struct font. Adjusted for the change
4948 (w32_enumfont_pattern_entity): Make a font-entity by 4948 of struct w32font_info.
4949 font_make_entity. Adjusted for the format change of font-entity. 4949 (w32font_encode_char, w32font_text_extents, w32font_draw):
4950 Use FONT_SET_STYLE to set a style-related font property. If a 4950 Adjusted for the change of struct w32font_info.
4951 font is scalable, set avgwidth property to 0. Set font-entity 4951 (w32font_draw): Likewise.
4952 property by font_put_extra. 4952 (w32font_list_internal): Return a list, not vector.
4953 (font_matches_spec): Adjusted for the format change of font-entity. 4953 (w32font_open_internal): Change the 4th arg to font-object.
4954 (w32_weight_table, w32_decode_weight): New variables. 4954 Adjusted for the change of struct w32font_info and font-object format.
4955 (w32_encode_weight): New function. 4955 (add_font_name_to_list): Don't downcase names.
4956 (fill_in_logfont): Adjusted for the format change of font-spec. 4956 (w32_enumfont_pattern_entity): Make a font-entity by
4957 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol 4957 font_make_entity. Adjusted for the format change of font-entity.
4958 weight value. 4958 Use FONT_SET_STYLE to set a style-related font property. If a
4959 (w32font_driver): Adjusted for the change of struct font_driver. 4959 font is scalable, set avgwidth property to 0. Set font-entity
4960 4960 property by font_put_extra.
4961 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND 4961 (font_matches_spec): Adjusted for the format change of font-entity.
4962 conditionals. Don't check enable_font_backend. Surround non-used 4962 (w32_weight_table, w32_decode_weight): New variables.
4963 code by "#ifdef OLD_FONT" and "endif". 4963 (w32_encode_weight): New function.
4964 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT) 4964 (fill_in_logfont): Adjusted for the format change of font-spec.
4965 (FONT_AVG_WIDTH): Adjusted for the change of struct font. 4965 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
4966 4966 weight value.
4967 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND 4967 (w32font_driver): Adjusted for the change of struct font_driver.
4968 conditionals. Don't check enable_font_backend. Delete all codes 4968
4969 used only when USE_FONT_BACKEND is not defined. Surround non-used 4969 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
4970 code by "#ifdef OLD_FONT" and "endif". 4970 conditionals. Don't check enable_font_backend. Surround non-used
4971 4971 code by "#ifdef OLD_FONT" and "endif".
4972 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional. 4972 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
4973 (uniscribe_open): Return value changed to font-object. 4973 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
4974 Adjusted for the format change of font-object. 4974
4975 (uniscribe_otf_capability): Adjusted for the change of struct font. 4975 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
4976 (add_opentype_font_name_to_list): Don't downcase names. 4976 conditionals. Don't check enable_font_backend. Delete all codes
4977 (uniscribe_font_driver): Adjusted for the change of struct 4977 used only when USE_FONT_BACKEND is not defined. Surround non-used
4978 font_driver. 4978 code by "#ifdef OLD_FONT" and "endif".
4979 4979
49802008-05-13 Chong Yidong <cyd@stupidchicken.com> 4980 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
4981 4981 (uniscribe_open): Return value changed to font-object.
4982 * dispnew.c (update_frame_1): Check if tty output is still valid 4982 Adjusted for the format change of font-object.
4983 before flushing it. 4983 (uniscribe_otf_capability): Adjusted for the change of struct font.
4984 4984 (add_opentype_font_name_to_list): Don't downcase names.
49852008-05-13 Jan Djärv <jan.h.d@swipnet.se> 4985 (uniscribe_font_driver): Adjusted for the change of struct
4986 4986 font_driver.
4987 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3 4987
4988 to Gtk+ menus. 49882008-05-13 Chong Yidong <cyd@stupidchicken.com>
4989 4989
49902008-05-13 Stefan Monnier <monnier@iro.umontreal.ca> 4990 * dispnew.c (update_frame_1): Check if tty output is still valid
4991 4991 before flushing it.
4992 * dired.c (file_name_completion): Tweak the code so as to always do it 4992
4993 in a single pass. Tighten the scope of some variables. 49932008-05-13 Jan Djärv <jan.h.d@swipnet.se>
4994 4994
4995 * dired.c (Qdefault_directory): New var. 4995 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
4996 (file_name_completion): Use it instead of Fexpand_file_name. 4996 to Gtk+ menus.
4997 (syms_of_dired): Initialize it. 4997
4998 49982008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
49992008-05-12 Stefan Monnier <monnier@iro.umontreal.ca> 4999
5000 5000 * dired.c (file_name_completion): Tweak the code so as to always do it
5001 * fileio.c (double_dollars): Remove dead code. 5001 in a single pass. Tighten the scope of some variables.
5002 5002
50032008-05-10 Eli Zaretskii <eliz@gnu.org> 5003 * dired.c (Qdefault_directory): New var.
5004 5004 (file_name_completion): Use it instead of Fexpand_file_name.
5005 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes): 5005 (syms_of_dired): Initialize it.
5006 Mention w32-get-true-file-attributes in doc string. 5006
5007 50072008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
5008 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix. 5008
5009 5009 * fileio.c (double_dollars): Remove dead code.
50102008-05-09 Glenn Morris <rgm@gnu.org> 5010
5011 50112008-05-10 Eli Zaretskii <eliz@gnu.org>
5012 * fileio.c (Fread_file_name): Remove reference to insdef, deleted 5012
5013 2008-04-23. 5013 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
5014 5014 Mention w32-get-true-file-attributes in doc string.
50152008-05-09 Eli Zaretskii <eliz@gnu.org> 5015
5016 5016 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
5017 Support for reporting owner and group of each file on MS-Windows: 5017
5018 * dired.c (stat_uname, stat_gname): New functions, with special 50182008-05-09 Glenn Morris <rgm@gnu.org>
5019 implementation for w32. 5019
5020 (Ffile_attributes): Use them instead of getpwuid and getgrgid. 5020 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
5021 5021 2008-04-23.
5022 * w32.c: Rename the_passwd_* to dflt_passwd_*. 5022
5023 (dflt_group_name): New static variable. 50232008-05-09 Eli Zaretskii <eliz@gnu.org>
5024 (dflt_group): Rename from the_group. 5024
5025 (init_user_info): Init dflt_group fields. Get user's group name 5025 Support for reporting owner and group of each file on MS-Windows:
5026 from LookupAccountSid. 5026 * dired.c (stat_uname, stat_gname): New functions, with special
5027 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner) 5027 implementation for w32.
5028 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid): 5028 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
5029 New initialization states. 5029
5030 (globals_of_w32): Initialize them to zero. Initialize the default 5030 * w32.c: Rename the_passwd_* to dflt_passwd_*.
5031 group name to "None". 5031 (dflt_group_name): New static variable.
5032 (GetFileSecurity_Name): New global var, the name of the function 5032 (dflt_group): Rename from the_group.
5033 to call for GetFileSecurity. 5033 (init_user_info): Init dflt_group fields. Get user's group name
5034 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc) 5034 from LookupAccountSid.
5035 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs. 5035 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
5036 (get_file_security, get_security_descriptor_owner) 5036 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
5037 (get_security_descriptor_group, is_valid_sid) 5037 New initialization states.
5038 (get_file_security_desc, get_rid, get_name_and_id) 5038 (globals_of_w32): Initialize them to zero. Initialize the default
5039 (get_file_owner_and_group): New functions. 5039 group name to "None".
5040 (stat): Use get_file_security_desc and get_file_owner_and_group to 5040 (GetFileSecurity_Name): New global var, the name of the function
5041 report the owner and primary group of each file. Don't ignore the 5041 to call for GetFileSecurity.
5042 high 32 bits of file's size, now that st_size is 64-bit wide. 5042 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
5043 Fix test when to get true file attributes. 5043 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
5044 (init_user_info): Use get_rid instead of equivalent inline code. 5044 (get_file_security, get_security_descriptor_owner)
5045 (fstat): Don't ignore the high 32 bits of file's size. 5045 (get_security_descriptor_group, is_valid_sid)
5046 5046 (get_file_security_desc, get_rid, get_name_and_id)
50472008-05-09 Chong Yidong <cyd@stupidchicken.com> 5047 (get_file_owner_and_group): New functions.
5048 5048 (stat): Use get_file_security_desc and get_file_owner_and_group to
5049 * image.c (png_load): Use correct bit-depth for setting background 5049 report the owner and primary group of each file. Don't ignore the
5050 color. 5050 high 32 bits of file's size, now that st_size is 64-bit wide.
5051 5051 Fix test when to get true file attributes.
50522008-05-08 Eli Zaretskii <eliz@gnu.org> 5052 (init_user_info): Use get_rid instead of equivalent inline code.
5053 5053 (fstat): Don't ignore the high 32 bits of file's size.
5054 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to 5054
5055 epa-hook.elc. 50552008-05-09 Chong Yidong <cyd@stupidchicken.com>
5056 5056
50572008-05-08 Juanma Barranquero <lekktu@gmail.com> 5057 * image.c (png_load): Use correct bit-depth for setting background
5058 5058 color.
5059 * font.c (Ffont_match_p): Don't use `iff' in docstring. 5059
5060 50602008-05-08 Eli Zaretskii <eliz@gnu.org>
50612008-05-07 Dan Nicolaescu <dann@ics.uci.edu> 5061
5062 5062 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
5063 * macfns.c (Fx_create_frame): Make a copy of frame parameters 5063 epa-hook.elc.
5064 because the original parameters are in pure storage now. 5064
5065 (mac_window): Remove unused params. Update callers. 50652008-05-08 Juanma Barranquero <lekktu@gmail.com>
5066 5066
50672008-05-06 Stefan Monnier <monnier@iro.umontreal.ca> 5067 * font.c (Ffont_match_p): Don't use `iff' in docstring.
5068 5068
5069 * lread.c (substitute_object_recurse): Use lower-level primitives. 50692008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5070 Don't signal errors when traversing sub-char-tables. 5070
5071 Don't loop over all the possible characters when traversing char-tables. 5071 * macfns.c (Fx_create_frame): Make a copy of frame parameters
5072 5072 because the original parameters are in pure storage now.
5073 * print.c (print_preprocess): Add sub-char-tables to the print-table, 5073 (mac_window): Remove unused params. Update callers.
5074 just like we do in print.c. 5074
5075 50752008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
50762008-05-05 Stefan Monnier <monnier@iro.umontreal.ca> 5076
5077 5077 * lread.c (substitute_object_recurse): Use lower-level primitives.
5078 * minibuf.c (Ftry_completion): Remove code left over from when we used 5078 Don't signal errors when traversing sub-char-tables.
5079 scmp instead of Fcompare_strings. 5079 Don't loop over all the possible characters when traversing char-tables.
5080 5080
50812008-05-04 Juanma Barranquero <lekktu@gmail.com> 5081 * print.c (print_preprocess): Add sub-char-tables to the print-table,
5082 5082 just like we do in print.c.
5083 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format. 5083
5084 50842008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
50852008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5085
5086 5086 * minibuf.c (Ftry_completion): Remove code left over from when we used
5087 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io): 5087 scmp instead of Fcompare_strings.
5088 Create bitmap context in native byte order. 5088
5089 50892008-05-04 Juanma Barranquero <lekktu@gmail.com>
5090 * macterm.c (XDrawLine) 5090
5091 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap 5091 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
5092 context in native byte order. 5092
5093 50932008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50942008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5094
5095 5095 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
5096 * config.in: Regenerate. 5096 Create bitmap context in native byte order.
5097 5097
5098 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]: 5098 * macterm.c (XDrawLine)
5099 New definitions for Image I/O support. 5099 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
5100 (XGetImage, XPutPixel, XGetPixel, XDestroyImage) 5100 context in native byte order.
5101 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap) 5101
5102 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. 51022008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5103 (mac_data_provider_release_data, image_load_image_io) 5103
5104 [USE_MAC_IMAGE_IO]: New functions. 5104 * config.in: Regenerate.
5105 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef. 5105
5106 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable. 5106 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
5107 (init_image_func_pointer) [MAC_OSX]: Remove function. 5107 New definitions for Image I/O support.
5108 (image_load_quartz2d) [MAC_OSX]: Check availability of 5108 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5109 CGImageCreateWithPNGDataProvider at compile time. 5109 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
5110 Use lowercase `false' for boolean constant. 5110 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
5111 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]: 5111 (mac_data_provider_release_data, image_load_image_io)
5112 Use image_load_image_io. 5112 [USE_MAC_IMAGE_IO]: New functions.
5113 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]: 5113 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
5114 Don't check MyCGImageCreateWithPNGDataProvider. 5114 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
5115 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]: 5115 (init_image_func_pointer) [MAC_OSX]: Remove function.
5116 Don't call init_image_func_pointer. 5116 (image_load_quartz2d) [MAC_OSX]: Check availability of
5117 5117 CGImageCreateWithPNGDataProvider at compile time.
5118 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O. 5118 Use lowercase `false' for boolean constant.
5119 5119 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
5120 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]: 5120 Use image_load_image_io.
5121 Make variable non-static. 5121 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
5122 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap) 5122 Don't check MyCGImageCreateWithPNGDataProvider.
5123 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. 5123 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
5124 5124 Don't call init_image_func_pointer.
5125 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros. 5125
5126 (RED_FROM_ULONG): Mask off higher bits. 5126 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
5127 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern. 5127
5128 5128 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
5129 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]: 5129 Make variable non-static.
5130 Include AvailabilityMacros.h. 5130 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5131 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines. 5131 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
5132 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE. 5132
5133 5133 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
51342008-05-03 Stefan Monnier <monnier@iro.umontreal.ca> 5134 (RED_FROM_ULONG): Mask off higher bits.
5135 5135 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
5136 * chartab.c (Fset_char_table_range): If range is t, really set all 5136
5137 chars to that value. 5137 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
5138 5138 Include AvailabilityMacros.h.
51392008-05-03 Eli Zaretskii <eliz@gnu.org> 5139 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
5140 5140 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
5141 * dired.c (Ffile_attributes): Don't allow the device number become 5141
5142 negative. 51422008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
5143 5143
51442008-05-02 Daiki Ueno <ueno@unixuser.org> 5144 * chartab.c (Fset_char_table_range): If range is t, really set all
5145 5145 chars to that value.
5146 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc. 5146
5147 51472008-05-03 Eli Zaretskii <eliz@gnu.org>
51482008-05-02 Juri Linkov <juri@jurta.org> 5148
5149 5149 * dired.c (Ffile_attributes): Don't allow the device number become
5150 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command) 5150 negative.
5151 (Fread_variable, Fread_buffer, Fcompleting_read): Document the 5151
5152 DEFAULT argument as a list of default values in docstrings. 51522008-05-02 Daiki Ueno <ueno@unixuser.org>
5153 5153
51542008-05-01 Chong Yidong <cyd@stupidchicken.com> 5154 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
5155 5155
5156 * puresize.h (BASE_PURESIZE): Increase to 1210000. 51562008-05-02 Juri Linkov <juri@jurta.org>
5157 5157
51582008-05-01 Martin Rudalics <rudalics@gmx.at> 5158 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
5159 5159 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
5160 * dispnew.c (change_frame_size_1): Preserve small windows when 5160 DEFAULT argument as a list of default values in docstrings.
5161 shrinking frames by calling set_window_height|width with third 5161
5162 arg 2. 51622008-05-01 Chong Yidong <cyd@stupidchicken.com>
5163 5163
5164 * window.h (struct window): Replace field too_small_ok by field 5164 * puresize.h (BASE_PURESIZE): Increase to 1210000.
5165 resize_proportionally. 5165
5166 51662008-05-01 Martin Rudalics <rudalics@gmx.at>
5167 * window.c (make_window): Initialize resize_proportionally. 5167
5168 (enlarge_window): Temporarily set resize_proportionally to make 5168 * dispnew.c (change_frame_size_1): Preserve small windows when
5169 sure that shrink_windows does scale the window proportionally. 5169 shrinking frames by calling set_window_height|width with third
5170 (shrink_windows): When window has resize_proportionally set try 5170 arg 2.
5171 to shrink it proportionally by stealing from other windows. 5171
5172 (struct saved_window, Fset_window_configuration) 5172 * window.h (struct window): Replace field too_small_ok by field
5173 (compare_window_configurations): Handle resize_proportionally. 5173 resize_proportionally.
5174 (WINDOW_TOTAL_SIZE): New macro. 5174
5175 (window_min_size, shrink_windows, size_window): Use it. 5175 * window.c (make_window): Initialize resize_proportionally.
5176 (check_min_window_sizes): Remove. Invalid values of 5176 (enlarge_window): Temporarily set resize_proportionally to make
5177 window-min-height|width are handled by window_min_size_2 now. 5177 sure that shrink_windows does scale the window proportionally.
5178 (size_window, Fsplit_window, enlarge_window) 5178 (shrink_windows): When window has resize_proportionally set try
5179 (adjust_window_trailing_edge, grow_mini_window): Don't call 5179 to shrink it proportionally by stealing from other windows.
5180 check_min_window_sizes. 5180 (struct saved_window, Fset_window_configuration)
5181 (window_min_size_2, window_min_size_1, window_min_size): 5181 (compare_window_configurations): Handle resize_proportionally.
5182 New argument safe_p for retrieving "safe" minimum sizes. 5182 (WINDOW_TOTAL_SIZE): New macro.
5183 (Fdisplay_buffer, Fsplit_window, enlarge_window) 5183 (window_min_size, shrink_windows, size_window): Use it.
5184 (adjust_window_trailing_edge, grow_mini_window): 5184 (check_min_window_sizes): Remove. Invalid values of
5185 Adjust arguments of window_min_size... functions. 5185 window-min-height|width are handled by window_min_size_2 now.
5186 (shrink_windows): Argument min_size removed. New argument 5186 (size_window, Fsplit_window, enlarge_window)
5187 safe_p allows shrinking windows to their safe minimum sizes. 5187 (adjust_window_trailing_edge, grow_mini_window): Don't call
5188 Calculate minimum size and decide whether a window shall be 5188 check_min_window_sizes.
5189 deleted for each window individually. 5189 (window_min_size_2, window_min_size_1, window_min_size):
5190 (size_window): When nodelete_p equals 2, tell shrink_windows to 5190 New argument safe_p for retrieving "safe" minimum sizes.
5191 delete windows only if their new minimum size is no more safe. 5191 (Fdisplay_buffer, Fsplit_window, enlarge_window)
5192 (shrink_window_lowest_first): Call window_min_size_1 to make 5192 (adjust_window_trailing_edge, grow_mini_window):
5193 sure to preserve modeline of bottom-most window when resizing 5193 Adjust arguments of window_min_size... functions.
5194 the minibuffer. 5194 (shrink_windows): Argument min_size removed. New argument
5195 (Fset_window_configuration, Fcurrent_window_configuration) 5195 safe_p allows shrinking windows to their safe minimum sizes.
5196 (compare_window_configurations): Do not handle 5196 Calculate minimum size and decide whether a window shall be
5197 window-min-height|width any more. 5197 deleted for each window individually.
5198 (syms_of_window): Clarify window-min-height|width doc-strings. 5198 (size_window): When nodelete_p equals 2, tell shrink_windows to
5199 5199 delete windows only if their new minimum size is no more safe.
52002008-04-30 Stefan Monnier <monnier@iro.umontreal.ca> 5200 (shrink_window_lowest_first): Call window_min_size_1 to make
5201 5201 sure to preserve modeline of bottom-most window when resizing
5202 * dired.c (file_name_completion): Fix up the encoding/decoding issue 5202 the minibuffer.
5203 some more. Copy some of the code from Ftry_completions. 5203 (Fset_window_configuration, Fcurrent_window_configuration)
5204 Remove special case code that dates back to initial revision when the 5204 (compare_window_configurations): Do not handle
5205 slash was only added when necessary and that can't trigger nowadays. 5205 window-min-height|width any more.
5206 5206 (syms_of_window): Clarify window-min-height|width doc-strings.
52072008-04-27 Kenichi Handa <handa@m17n.org> 5207
5208 52082008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
5209 * font.c (font_prop_validate): Signal `error' instead of `font'. 5209
5210 5210 * dired.c (file_name_completion): Fix up the encoding/decoding issue
52112008-04-29 Jason Rumney <jasonr@gnu.org> 5211 some more. Copy some of the code from Ftry_completions.
5212 5212 Remove special case code that dates back to initial revision when the
5213 * w32fns.c (Fw32_battery_status): New defun. 5213 slash was only added when necessary and that can't trigger nowadays.
5214 (syms_of_w32fns): Defsubr it. 5214
5215 52152008-04-27 Kenichi Handa <handa@m17n.org>
52162008-04-28 Andreas Schwab <schwab@suse.de> 5216
5217 5217 * font.c (font_prop_validate): Signal `error' instead of `font'.
5218 * dired.c (file_name_completion): Fix another mixing of encoded 5218
5219 and decoded names. 52192008-04-29 Jason Rumney <jasonr@gnu.org>
5220 5220
52212008-04-28 Juanma Barranquero <lekktu@gmail.com> 5221 * w32fns.c (Fw32_battery_status): New defun.
5222 5222 (syms_of_w32fns): Defsubr it.
5223 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring. 5223
5224 52242008-04-28 Andreas Schwab <schwab@suse.de>
52252008-04-27 Juanma Barranquero <lekktu@gmail.com> 5225
5226 5226 * dired.c (file_name_completion): Fix another mixing of encoded
5227 * fringe.c (Fdefine_fringe_bitmap): Doc fix. 5227 and decoded names.
5228 5228
52292008-04-27 Andreas Schwab <schwab@suse.de> 52292008-04-28 Juanma Barranquero <lekktu@gmail.com>
5230 5230
5231 * dired.c (file_name_completion): Fix inappropriate mixing of 5231 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
5232 encoded and decoded names. 5232
5233 52332008-04-27 Juanma Barranquero <lekktu@gmail.com>
5234 * xterm.c (XTread_socket): Fix use of uninitialized variable. 5234
5235 5235 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
5236 * puresize.h (BASE_PURESIZE): Increase to 1200000. 5236
5237 52372008-04-27 Andreas Schwab <schwab@suse.de>
52382008-04-26 Eli Zaretskii <eliz@gnu.org> 5238
5239 5239 * dired.c (file_name_completion): Fix inappropriate mixing of
5240 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from 5240 encoded and decoded names.
5241 2008-03-31, it's not needed anymore with `struct stat' definition 5241
5242 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13 5242 * xterm.c (XTread_socket): Fix use of uninitialized variable.
5243 for the same reasons. 5243
5244 5244 * puresize.h (BASE_PURESIZE): Increase to 1200000.
52452008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change) 5245
5246 52462008-04-26 Eli Zaretskii <eliz@gnu.org>
5247 * m/sparc.h: Additional redefinitions for GNU/Linux. 5247
5248 5248 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
52492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5249 2008-03-31, it's not needed anymore with `struct stat' definition
5250 5250 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
5251 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable. 5251 for the same reasons.
5252 (syms_of_macterm) [USE_MAC_TSM]: Defvar it. 5252
5253 (Qmouse_drag_overlay) [MAC_OSX]: New variable. 52532008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
5254 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it. 5254
5255 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) 5255 * m/sparc.h: Additional redefinitions for GNU/Linux.
5256 (mac_ax_selected_text_range) [MAC_OSX]: New functions. 5256
5257 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: 52572008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5258 Likewise. 5258
5259 5259 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
5260 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern. 5260 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
5261 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range) 5261 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
5262 (mac_ax_number_of_characters): Add externs. 5262 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
5263 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) 5263 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
5264 [USE_MAC_TSM]: Likewise. 5264 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
5265 (mac_handle_text_input_event) [MAC_OSX]: 5265 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
5266 Handle kEventTextInputOffsetToPos for no active input area case. 5266 Likewise.
5267 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText. 5267
5268 (mac_handle_document_access_event) 5268 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
5269 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function. 5269 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
5270 (install_application_handler) [MAC_OSX]: Register handlers for 5270 (mac_ax_number_of_characters): Add externs.
5271 kEventTextInputPosToOffset and kEventTextInputGetSelectedText. 5271 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
5272 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: 5272 [USE_MAC_TSM]: Likewise.
5273 Register mac_handle_document_access_event. 5273 (mac_handle_text_input_event) [MAC_OSX]:
5274 5274 Handle kEventTextInputOffsetToPos for no active input area case.
5275 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]: 5275 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
5276 Make functions non-static. 5276 (mac_handle_document_access_event)
5277 5277 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
52782008-04-23 Stefan Monnier <monnier@iro.umontreal.ca> 5278 (install_application_handler) [MAC_OSX]: Register handlers for
5279 5279 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
5280 * fileio.c (Vread_file_name_function, Vread_file_name_predicate) 5280 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
5281 (read_file_name_completion_ignore_case, insert_default_directory) 5281 Register mac_handle_document_access_event.
5282 (Qdefault_directory): Move to minibuffer.el. 5282
5283 (Fread_file_name): Call the new `read-file-name' instead. 5283 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
5284 5284 Make functions non-static.
52852008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5285
5286 52862008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5287 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]: 5287
5288 Make function non-static. 5288 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
5289 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: 5289 (read_file_name_completion_ignore_case, insert_default_directory)
5290 Remove function. 5290 (Qdefault_directory): Move to minibuffer.el.
5291 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: 5291 (Fread_file_name): Call the new `read-file-name' instead.
5292 Move to mactoolbox.c. 5292
5293 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function. 52932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5294 5294
5295 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef. 5295 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
5296 (mac_rect_make): New macro. 5296 Make function non-static.
5297 5297 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
5298 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat 5298 Remove function.
5299 instead of float. 5299 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
5300 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. 5300 Move to mactoolbox.c.
5301 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground) 5301 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
5302 (XSetBackground) [USE_CG_DRAWING]: Likewise. 5302
5303 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of 5303 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
5304 CGRectMake. 5304 (mac_rect_make): New macro.
5305 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. 5305
5306 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle) 5306 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
5307 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise. 5307 instead of float.
5308 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window 5308 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
5309 instead of WindowRef in argument type. 5309 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
5310 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort. 5310 (XSetBackground) [USE_CG_DRAWING]: Likewise.
5311 (mac_invert_rectangle): Use CGContextSetBlendMode if available. 5311 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
5312 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F 5312 CGRectMake.
5313 instead of DISPLAY. All uses changed. 5313 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
5314 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED. 5314 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
5315 (x_calc_absolute_position): Simplify so as not to use 5315 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
5316 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT. 5316 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
5317 5317 instead of WindowRef in argument type.
5318 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window 5318 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
5319 instead of WindowRef in argument type. 5319 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
5320 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref) 5320 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
5321 [TARGET_API_MAC_CARBON]: Remove externs. 5321 instead of DISPLAY. All uses changed.
5322 (create_apple_event, mac_event_parameters_to_lisp) 5322 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
5323 [TARGET_API_MAC_CARBON]: Add externs. 5323 (x_calc_absolute_position): Simplify so as not to use
5324 5324 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
5325 * mactoolbox.c (Vmac_ts_script_language_on_focus) 5325
5326 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs. 5326 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
5327 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part 5327 instead of WindowRef in argument type.
5328 is clicked. 5328 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
5329 (x_activate_menubar): Remove extern for saved_menu_event_location. 5329 [TARGET_API_MAC_CARBON]: Remove externs.
5330 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: 5330 (create_apple_event, mac_event_parameters_to_lisp)
5331 Move from mac.c. 5331 [TARGET_API_MAC_CARBON]: Add externs.
5332 5332
53332008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5333 * mactoolbox.c (Vmac_ts_script_language_on_focus)
5334 5334 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
5335 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc) 5335 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
5336 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex. 5336 is clicked.
5337 5337 (x_activate_menubar): Remove extern for saved_menu_event_location.
53382008-04-23 Jason Rumney <jasonr@gnu.org> 5338 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
5339 5339 Move from mac.c.
5340 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get 5340
5341 attributes only for local files. 53412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5342 5342
5343 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes 5343 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
5344 default to Qlocal. 5344 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
5345 5345
53462008-04-22 Juri Linkov <juri@jurta.org> 53462008-04-23 Jason Rumney <jasonr@gnu.org>
5347 5347
5348 * buffer.c (Fswitch_to_buffer): Change interactive spec to call 5348 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
5349 read-buffer-to-switch instead of using the letter "B". 5349 attributes only for local files.
5350 5350
53512008-04-21 Stefan Monnier <monnier@iro.umontreal.ca> 5351 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
5352 5352 default to Qlocal.
5353 * fileio.c (Qdefault_directory): New variable. 5353
5354 (Fread_file_name): Use it to pass `dir' to the completion functions. 53542008-04-22 Juri Linkov <juri@jurta.org>
5355 5355
53562008-04-20 Chong Yidong <cyd@stupidchicken.com> 5356 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
5357 5357 read-buffer-to-switch instead of using the letter "B".
5358 * xdisp.c (pos_visible_p): Check if iterator stops on a display string. 5358
5359 53592008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
53602008-04-19 Stefan Monnier <monnier@iro.umontreal.ca> 5360
5361 5361 * fileio.c (Qdefault_directory): New variable.
5362 * keyboard.c (Vpre_help_message): Remove. 5362 (Fread_file_name): Use it to pass `dir' to the completion functions.
5363 (show_help_echo): Remove default C code. 5363
5364 53642008-04-20 Chong Yidong <cyd@stupidchicken.com>
5365 * dired.c (directory_files_internal, file_name_completion): 5365
5366 Only call ENCODE_FILE if the string is indeed decoded. 5366 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
5367 5367
53682008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> 53682008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
5369 5369
5370 * Makefile.in (TOOLKIT_DEFINES): Remove. 5370 * keyboard.c (Vpre_help_message): Remove.
5371 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff. 5371 (show_help_echo): Remove default C code.
5372 5372
53732008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5373 * dired.c (directory_files_internal, file_name_completion):
5374 5374 Only call ENCODE_FILE if the string is indeed decoded.
5375 * Makefile.in (MAC_OBJ): Add mactoolbox.o. 5375
5376 (mactoolbox.o): New target. 53762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5377 5377
5378 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): 5378 * Makefile.in (TOOLKIT_DEFINES): Remove.
5379 Use mac_run_loop_run_once instead of CFRunLoopRunInMode. 5379 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
5380 5380
5381 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame): 53812008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5382 Use mac_set_frame_window_background instead of XSetWindowBackground. 5382
5383 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: 5383 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
5384 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible. 5384 (mactoolbox.o): New target.
5385 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title 5385
5386 instead of SetWindowTitleWithCFString. 5386 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
5387 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT. 5387 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
5388 Move function to mactoolbox.c. 5388
5389 (mac_update_title_bar) [TARGET_API_MAC_CARBON]: 5389 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
5390 Use mac_set_window_modified instead of SetWindowModified. 5390 Use mac_set_frame_window_background instead of XSetWindowBackground.
5391 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon. 5391 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
5392 (mac_window, x_create_tip_frame): Use mac_create_frame_window. 5392 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
5393 (Fx_focus_frame): Use mac_front_non_floating_window instead of 5393 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
5394 FrontNonFloatingWindow. Use mac_activate_window instead of 5394 instead of SetWindowTitleWithCFString.
5395 ActivateWindow. Use mac_active_non_floating_window instead of 5395 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
5396 ActiveNonFloatingWindow. 5396 Move function to mactoolbox.c.
5397 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]: 5397 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
5398 Use mac_show_hourglass and mac_hide_hourglass. 5398 Use mac_set_window_modified instead of SetWindowModified.
5399 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse 5399 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
5400 instead of GetGlobalMouse. 5400 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
5401 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window 5401 (Fx_focus_frame): Use mac_front_non_floating_window instead of
5402 instead of MoveWindow/SizeWindow/ShowWindow, respectively. 5402 FrontNonFloatingWindow. Use mac_activate_window instead of
5403 Use mac_bring_window_to_front instead of BringToFront. 5403 ActivateWindow. Use mac_active_non_floating_window instead of
5404 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to 5404 ActiveNonFloatingWindow.
5405 mactoolbox.c. 5405 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
5406 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to 5406 Use mac_show_hourglass and mac_hide_hourglass.
5407 mac_file_dialog in mactoolbox.c. Use mac_file_dialog. 5407 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
5408 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to 5408 instead of GetGlobalMouse.
5409 mactoolbox.c. 5409 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
5410 5410 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
5411 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h. 5411 Use mac_bring_window_to_front instead of BringToFront.
5412 (XtPointer): Move typedef from macmenu.c. 5412 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
5413 (enum button_type): Move enum from macmenu.c. 5413 mactoolbox.c.
5414 (widget_value): Move typedef from macmenu.c. 5414 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
5415 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID) 5415 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
5416 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) 5416 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
5417 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) 5417 mactoolbox.c.
5418 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) 5418
5419 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) 5419 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
5420 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) 5420 (XtPointer): Move typedef from macmenu.c.
5421 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) 5421 (enum button_type): Move enum from macmenu.c.
5422 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c. 5422 (widget_value): Move typedef from macmenu.c.
5423 (Selection): Move typedef from macselect.c. 5423 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
5424 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from 5424 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
5425 macterm.c. 5425 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
5426 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible) 5426 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
5427 (mac_is_window_collapsed, mac_bring_window_to_front) 5427 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
5428 (mac_send_window_behind, mac_hide_window, mac_show_window) 5428 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
5429 (mac_collapse_window, mac_front_non_floating_window) 5429 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
5430 (mac_active_non_floating_window, mac_activate_window) 5430 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
5431 (mac_move_window_structure, mac_move_window, mac_size_window) 5431 (Selection): Move typedef from macselect.c.
5432 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines. 5432 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
5433 5433 macterm.c.
5434 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c. 5434 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
5435 (enum mac_menu_kind): Move enum to mactoolbox.c. 5435 (mac_is_window_collapsed, mac_bring_window_to_front)
5436 (min_menu_id): Move variable to mactoolbox.c. 5436 (mac_send_window_behind, mac_hide_window, mac_show_window)
5437 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise. 5437 (mac_collapse_window, mac_front_non_floating_window)
5438 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c. 5438 (mac_active_non_floating_window, mac_activate_window)
5439 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) 5439 (mac_move_window_structure, mac_move_window, mac_size_window)
5440 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) 5440 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
5441 [TARGET_API_MAC_CARBON]: Likewise. 5441
5442 (XtPointer): Move typedef to macgui.h. 5442 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
5443 (enum button_type): Move enum to macgui.h. 5443 (enum mac_menu_kind): Move enum to mactoolbox.c.
5444 (widget_value): Move typedef to macgui.h. 5444 (min_menu_id): Move variable to mactoolbox.c.
5445 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) 5445 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
5446 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) 5446 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
5447 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) 5447 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
5448 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) 5448 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
5449 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) 5449 [TARGET_API_MAC_CARBON]: Likewise.
5450 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) 5450 (XtPointer): Move typedef to macgui.h.
5451 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h. 5451 (enum button_type): Move enum to macgui.h.
5452 (popup_activated_flag): Make variable non-static. 5452 (widget_value): Move typedef to macgui.h.
5453 (x_activate_menubar, install_menu_quit_handler, pop_down_menu) 5453 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
5454 (add_menu_item, fill_menu, dispose_menus): 5454 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
5455 Move functions to mactoolbox.c. 5455 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
5456 (restore_show_help_function, menu_target_item_handler) 5456 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
5457 (install_menu_target_item_handler, mac_handle_dialog_event) 5457 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
5458 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog) 5458 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
5459 [TARGET_API_MAC_CARBON]: Likewise. 5459 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
5460 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise. 5460 (popup_activated_flag): Make variable non-static.
5461 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. 5461 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
5462 (find_and_call_menu_selection, name_is_separator): Make function 5462 (add_menu_item, fill_menu, dispose_menus):
5463 non-static. 5463 Move functions to mactoolbox.c.
5464 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern 5464 (restore_show_help_function, menu_target_item_handler)
5465 to mactoolbox.c. 5465 (install_menu_target_item_handler, mac_handle_dialog_event)
5466 (set_frame_menubar): Don't call install_menu_quit_handler. 5466 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
5467 (menu_item_selection): New variable. 5467 [TARGET_API_MAC_CARBON]: Likewise.
5468 (mac_menu_show): Use create_and_show_popup_menu. 5468 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
5469 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return 5469 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5470 selection but set variable menu_item_selection. All uses changed. 5470 (find_and_call_menu_selection, name_is_separator): Make function
5471 (mac_fill_menubar): Rename from fill_menubar. All uses changed. 5471 non-static.
5472 Call install_menu_quit_handler. Move to mactoolbox.c. 5472 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
5473 5473 to mactoolbox.c.
5474 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h. 5474 (set_frame_menubar): Don't call install_menu_quit_handler.
5475 (Selection): Move typedef to macgui.h. 5475 (menu_item_selection): New variable.
5476 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype) 5476 (mac_menu_show): Use create_and_show_popup_menu.
5477 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id): 5477 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
5478 Make variables non-static. 5478 selection but set variable menu_item_selection. All uses changed.
5479 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise. 5479 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
5480 (mac_handle_apple_event, cleanup_all_suspended_apple_events): 5480 Call install_menu_quit_handler. Move to mactoolbox.c.
5481 Make functions non-static. 5481
5482 (Vmac_service_selection) [MAC_OSX]: Likewise. 5482 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
5483 (mac_get_selection_from_symbol, get_flavor_type_from_symbol) 5483 (Selection): Move typedef to macgui.h.
5484 (mac_valid_selection_target_p, mac_clear_selection) 5484 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
5485 (mac_get_selection_ownership_info, mac_valid_selection_value_p) 5485 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
5486 (mac_put_selection_value, mac_selection_has_target_p) 5486 Make variables non-static.
5487 (mac_get_selection_value, mac_get_selection_target_list) 5487 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
5488 (init_apple_event_handler, install_drag_handler, remove_drag_handler): 5488 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
5489 Move functions to mactoolbox.c. 5489 Make functions non-static.
5490 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]: 5490 (Vmac_service_selection) [MAC_OSX]: Likewise.
5491 Likewise. 5491 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
5492 (copy_scrap_flavor_data, mac_handle_service_event) 5492 (mac_valid_selection_target_p, mac_clear_selection)
5493 (install_service_handler) [MAC_OSX]: Likewise. 5493 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5494 (syms_of_macselect) <Vmac_dnd_known_types>: 5494 (mac_put_selection_value, mac_selection_has_target_p)
5495 Use mac_dnd_default_known_types. 5495 (mac_get_selection_value, mac_get_selection_target_list)
5496 5496 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
5497 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): 5497 Move functions to mactoolbox.c.
5498 Move to mactoolbox.c. 5498 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
5499 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15. 5499 Likewise.
5500 (Fx_selection_owner_p): Add EXFUN. 5500 (copy_scrap_flavor_data, mac_handle_service_event)
5501 (install_window_handler, remove_window_handler, XSetWindowBackground): 5501 (install_service_handler) [MAC_OSX]: Likewise.
5502 Remove externs. 5502 (syms_of_macselect) <Vmac_dnd_known_types>:
5503 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise. 5503 Use mac_dnd_default_known_types.
5504 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise. 5504
5505 (x_raise_frame, x_lower_frame, mac_alert_sound_play) 5505 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
5506 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse) 5506 Move to mactoolbox.c.
5507 (mac_convert_frame_point_to_global, mac_set_frame_window_background) 5507 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
5508 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush) 5508 (Fx_selection_owner_p): Add EXFUN.
5509 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip) 5509 (install_window_handler, remove_window_handler, XSetWindowBackground):
5510 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar) 5510 Remove externs.
5511 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar) 5511 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
5512 (create_and_show_popup_menu, mac_get_selection_from_symbol) 5512 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
5513 (mac_valid_selection_target_p, mac_clear_selection) 5513 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
5514 (mac_get_selection_ownership_info, mac_valid_selection_value_p) 5514 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
5515 (mac_put_selection_value, mac_selection_has_target_p) 5515 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
5516 (mac_get_selection_value, mac_get_selection_target_list): Add externs. 5516 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
5517 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass) 5517 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
5518 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog) 5518 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
5519 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise. 5519 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
5520 (mac_run_loop_run_once) [MAC_OSX]: Likewise. 5520 (create_and_show_popup_menu, mac_get_selection_from_symbol)
5521 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. 5521 (mac_valid_selection_target_p, mac_clear_selection)
5522 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise. 5522 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5523 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. 5523 (mac_put_selection_value, mac_selection_has_target_p)
5524 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. 5524 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
5525 5525 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
5526 * mactoolbox.c: New file. 5526 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
5527 5527 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
55282008-04-18 Jason Rumney <jasonr@gnu.org> 5528 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
5529 5529 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5530 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned. 5530 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
5531 5531 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
55322008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> 5532 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
5533 5533
5534 * character.c (Fmultibyte_char_to_unibyte): 5534 * mactoolbox.c: New file.
5535 Return latin1 chars unchanged. 5535
5536 55362008-04-18 Jason Rumney <jasonr@gnu.org>
5537 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only 5537
5538 relocated if it points to `name'. 5538 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
5539 5539
55402008-04-17 Kenichi Handa <handa@m17n.org> 55402008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5541 5541
5542 * data.c (Faset): Allow setting a multibyte character in an 5542 * character.c (Fmultibyte_char_to_unibyte):
5543 ASCII-only unibyte string. 5543 Return latin1 chars unchanged.
5544 5544
5545 * lisp.h (STRING_SET_MULTIBYTE): New macro. 5545 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
5546 5546 relocated if it points to `name'.
55472008-04-16 Stefan Monnier <monnier@iro.umontreal.ca> 5547
5548 55482008-04-17 Kenichi Handa <handa@m17n.org>
5549 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now 5549
5550 done in config.h. 5550 * data.c (Faset): Allow setting a multibyte character in an
5551 5551 ASCII-only unibyte string.
55522008-04-16 Juanma Barranquero <lekktu@gmail.com> 5552
5553 5553 * lisp.h (STRING_SET_MULTIBYTE): New macro.
5554 * character.c (Fchar_bytes, Fchar_width, Fstring_width) 5554
5555 (Fchar_direction): Add usage in the docstring. 55552008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
5556 5556
55572008-04-15 Chong Yidong <cyd@stupidchicken.com> 5557 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
5558 5558 done in config.h.
5559 * keyboard.c (read_key_sequence): Remove always-true checks. 5559
5560 55602008-04-16 Juanma Barranquero <lekktu@gmail.com>
55612008-04-14 Jason Rumney <jasonr@gnu.org> 5561
5562 5562 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
5563 * w32font.c (w32font_open_internal): Set max_bounds.descent in 5563 (Fchar_direction): Add usage in the docstring.
5564 compatibility struct, for better underline positioning. 5564
5565 55652008-04-15 Chong Yidong <cyd@stupidchicken.com>
55662008-04-13 David Hansen <david.hansen@gmx.net> 5566
5567 5567 * keyboard.c (read_key_sequence): Remove always-true checks.
5568 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name 5568
5569 string. 55692008-04-14 Jason Rumney <jasonr@gnu.org>
5570 5570
55712008-04-12 Dan Nicolaescu <dann@ics.uci.edu> 5571 * w32font.c (w32font_open_internal): Set max_bounds.descent in
5572 5572 compatibility struct, for better underline positioning.
5573 * m/hp800.h (XUINT, XSET): Remove. 5573
5574 55742008-04-13 David Hansen <david.hansen@gmx.net>
55752008-04-12 Juanma Barranquero <lekktu@gmail.com> 5575
5576 5576 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
5577 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in 5577 string.
5578 previous change. 5578
5579 55792008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
55802008-04-12 Stefan Monnier <monnier@iro.umontreal.ca> 5580
5581 5581 * m/hp800.h (XUINT, XSET): Remove.
5582 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars. 5582
5583 Relocate `nm' after calling DECODE_FILE, in case the GC was run. 55832008-04-12 Juanma Barranquero <lekktu@gmail.com>
5584 5584
55852008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> 5585 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
5586 5586 previous change.
5587 * keymap.h (map_keymap_canonical): Declare. 5587
5588 * xmenu.c (single_keymap_panes): Use it. 55882008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5589 5589
55902008-04-11 Glenn Morris <rgm@gnu.org> 5590 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
5591 5591 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
5592 * eval.c (Fdefvaralias): If the alias is bound and the target is not, 5592
5593 set the target's value to that of the alias. 55932008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5594 5594
55952008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> 5595 * keymap.h (map_keymap_canonical): Declare.
5596 5596 * xmenu.c (single_keymap_panes): Use it.
5597 * term.c (set_tty_color_mode): Left over typo. 5597
5598 55982008-04-11 Glenn Morris <rgm@gnu.org>
55992008-04-10 Michael Albinus <michael.albinus@gmx.de> 5599
5600 5600 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
5601 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK 5601 set the target's value to that of the alias.
5602 only after check for file name handler functions. Signal, when 5602
5603 native functionality is not supported. 56032008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5604 (syms_of_fileio): Declare it unconditionally. 5604
5605 5605 * term.c (set_tty_color_mode): Left over typo.
56062008-04-10 Jason Rumney <jasonr@gnu.org> 5606
5607 56072008-04-10 Michael Albinus <michael.albinus@gmx.de>
5608 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions. 5608
5609 (Fx_popup_dialog): Handle simple yes/no questions as dialogs. 5609 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
5610 5610 only after check for file name handler functions. Signal, when
5611 * w32.c (logon_network_drive): Also logon to remote drives that 5611 native functionality is not supported.
5612 are mapped to drive letters. 5612 (syms_of_fileio): Declare it unconditionally.
5613 5613
56142008-04-10 Glenn Morris <rgm@gnu.org> 56142008-04-10 Jason Rumney <jasonr@gnu.org>
5615 5615
5616 * xdisp.c (truncate-partial-width-windows): Doc fix. 5616 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
5617 5617 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
56182008-04-10 Stefan Monnier <monnier@iro.umontreal.ca> 5618
5619 5619 * w32.c (logon_network_drive): Also logon to remote drives that
5620 * fileio.c (read_file_name_cleanup, Fread_file_name_internal): 5620 are mapped to drive letters.
5621 Move functions to minibuffer.el. 5621
5622 (syms_of_fileio): Don't declare them. 56222008-04-10 Glenn Morris <rgm@gnu.org>
5623 5623
56242008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> 5624 * xdisp.c (truncate-partial-width-windows): Doc fix.
5625 5625
5626 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el. 56262008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
5627 (syms_of_minibuf): Remove its initialization. 5627
5628 5628 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
5629 * minibuf.c (temp_echo_area_glyphs): Remove unused function. 5629 Move functions to minibuffer.el.
5630 5630 (syms_of_fileio): Don't declare them.
56312008-04-09 Juanma Barranquero <lekktu@gmail.com> 5631
5632 56322008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5633 * editfns.c (Ffield_string_no_properties): Fix typo in docstring. 5633
5634 5634 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
56352008-04-09 Jason Rumney <jasonr@gnu.org> 5635 (syms_of_minibuf): Remove its initialization.
5636 5636
5637 * makefile.w32-in (distclean): Delete makefile too. 5637 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
5638 (maintainer-clean): New target. 5638
5639 56392008-04-09 Juanma Barranquero <lekktu@gmail.com>
5640 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change. 5640
5641 5641 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
5642 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs 5642
5643 for new font backend and composite cases. 56432008-04-09 Jason Rumney <jasonr@gnu.org>
5644 5644
56452008-04-09 Jan Djärv <jan.h.d@swipnet.se> 5645 * makefile.w32-in (distclean): Delete makefile too.
5646 5646 (maintainer-clean): New target.
5647 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT. 5647
5648 Most of the code moved to run_timers. 5648 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
5649 (do_pending_atimers): Call run_timers. 5649
5650 (run_timers): New function. 5650 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
5651 5651 for new font backend and composite cases.
5652 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers, 5652
5653 run atimers. 56532008-04-09 Jan Djärv <jan.h.d@swipnet.se>
5654 5654
5655 * process.c (wait_reading_process_output): The same as above. 5655 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
5656 5656 Most of the code moved to run_timers.
56572008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> 5657 (do_pending_atimers): Call run_timers.
5658 5658 (run_timers): New function.
5659 * minibuf.c (last_exact_completion): Remove variable. 5659
5660 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete) 5660 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
5661 (complete_and_exit_1, complete_and_exit_2) 5661 run atimers.
5662 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word) 5662
5663 (Fdisplay_completion_list, display_completion_list_1) 5663 * process.c (wait_reading_process_output): The same as above.
5664 (Fminibuffer_completion_help, Fself_insert_and_exit) 5664
5665 (Fexit_minibuffer, Fminibuffer_message): Move functions to 56652008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5666 minibuffer.el. 5666
5667 (syms_of_minibuf): Remove corresponding initializations. 5667 * minibuf.c (last_exact_completion): Remove variable.
5668 5668 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
5669 * keyboard.c (Qdeactivate_mark): New var. 5669 (complete_and_exit_1, complete_and_exit_2)
5670 (command_loop_1): Use it to call `deactivate-mark'. 5670 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
5671 (syms_of_keyboard): Initialize it. 5671 (Fdisplay_completion_list, display_completion_list_1)
5672 5672 (Fminibuffer_completion_help, Fself_insert_and_exit)
5673 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching 5673 (Fexit_minibuffer, Fminibuffer_message): Move functions to
5674 to another frame. 5674 minibuffer.el.
5675 * frame.c (do_switch_frame): Refine the top_frame/async_visible code. 5675 (syms_of_minibuf): Remove corresponding initializations.
5676 Don't call set_tty_color_mode. 5676
5677 (store_frame_param): Reset previous_frame rather than call 5677 * keyboard.c (Qdeactivate_mark): New var.
5678 set_tty_color_mode. 5678 (command_loop_1): Use it to call `deactivate-mark'.
5679 * term.c (set_tty_color_mode): Rewrite. 5679 (syms_of_keyboard): Initialize it.
5680 * dispextern.h (set_tty_color_mode): New type. 5680
5681 * termchar.h (struct tty_display_info): Add `previous_color_mode'. 5681 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
5682 5682 to another frame.
56832008-04-08 Stefan Monnier <monnier@iro.umontreal.ca> 5683 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
5684 5684 Don't call set_tty_color_mode.
5685 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used 5685 (store_frame_param): Reset previous_frame rather than call
5686 for generic chars, which do not exist any more in emacs-unicode. 5686 set_tty_color_mode.
5687 5687 * term.c (set_tty_color_mode): Rewrite.
56882008-04-08 Michael Albinus <michael.albinus@gmx.de> 5688 * dispextern.h (set_tty_color_mode): New type.
5689 5689 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
5690 * coding.c (detect_coding_emacs_mule) 5690
5691 (Ffind_operation_coding_system): Fix typo. 56912008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
5692 5692
56932008-04-08 Jason Rumney <jasonr@gnu.org> 5693 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
5694 5694 for generic chars, which do not exist any more in emacs-unicode.
5695 * w32uniscribe.c (SNAME): Extract only symbol name. 5695
5696 56962008-04-08 Michael Albinus <michael.albinus@gmx.de>
5697 * w32font.h (struct w32_metric_cache): New struct. 5697
5698 (w32font_info): Use it. 5698 * coding.c (detect_coding_emacs_mule)
5699 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL) 5699 (Ffind_operation_coding_system): Fix typo.
5700 (CACHE_BLOCKSIZE): New constants. 5700
5701 57012008-04-08 Jason Rumney <jasonr@gnu.org>
5702 * w32font.c (Qja, Qko, Qzh): New symbols. 5702
5703 (syms_of_w32font): Initialise them. 5703 * w32uniscribe.c (SNAME): Extract only symbol name.
5704 (font_matches_spec): Use them to filter by language. 5704
5705 (recompute_cached_metrics): Remove function. 5705 * w32font.h (struct w32_metric_cache): New struct.
5706 (compute_metrics, clear_cached_metrics): New functions. 5706 (w32font_info): Use it.
5707 (w32font_encode_char): Use them to manage metric cache. 5707 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
5708 (w32font_text_extents): Cache metrics for all glyphs on demand. 5708 (CACHE_BLOCKSIZE): New constants.
5709 Delay converting glyph indices to WORD until needed. 5709
5710 (w32font_open_internal): Initialize metric cache to empty. 5710 * w32font.c (Qja, Qko, Qzh): New symbols.
5711 (registry_to_w32_charset): Charset should always be a symbol. 5711 (syms_of_w32font): Initialise them.
5712 (fill_in_logfont, list_all_matching_fonts): Family should 5712 (font_matches_spec): Use them to filter by language.
5713 always be a symbol. 5713 (recompute_cached_metrics): Remove function.
5714 5714 (compute_metrics, clear_cached_metrics): New functions.
57152008-04-06 Jason Rumney <jasonr@gnu.org> 5715 (w32font_encode_char): Use them to manage metric cache.
5716 5716 (w32font_text_extents): Cache metrics for all glyphs on demand.
5717 * w32uniscribe.c (uniscribe_shape): Increase items buffer size. 5717 Delay converting glyph indices to WORD until needed.
5718 Give up if glyph indices not supported. Use uniscribe obtained 5718 (w32font_open_internal): Initialize metric cache to empty.
5719 ABC widths for individual metrics. Map glyph clusters back to 5719 (registry_to_w32_charset): Charset should always be a symbol.
5720 characters using fClusterStart flag. Return number of glyphs 5720 (fill_in_logfont, list_all_matching_fonts): Family should
5721 produced, not chars processed. 5721 always be a symbol.
5722 (uniscribe_shape): Map char at FROM to current glyph. 5722
5723 57232008-04-06 Jason Rumney <jasonr@gnu.org>
57242008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5724
5725 5725 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
5726 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]: 5726 Give up if glyph indices not supported. Use uniscribe obtained
5727 Use SetMenuItemHierarchicalMenu. 5727 ABC widths for individual metrics. Map glyph clusters back to
5728 5728 characters using fClusterStart flag. Return number of glyphs
57292008-04-05 Jason Rumney <jasonr@gnu.org> 5729 produced, not chars processed.
5730 5730 (uniscribe_shape): Map char at FROM to current glyph.
5731 * image.c (pbm_load): Allow color values up to 65535. 5731
5732 Throw an error if max_color_idx is outside the supported range. 57322008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5733 Report an error when image size is invalid. 5733
5734 Read two bytes at a time when raw images have max_color_idx above 255. 5734 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
5735 5735 Use SetMenuItemHierarchicalMenu.
57362008-04-05 Eli Zaretskii <eliz@gnu.org> 5736
5737 57372008-04-05 Jason Rumney <jasonr@gnu.org>
5738 * w32.c (readdir): If FindFirstFile/FindNextFile return in 5738
5739 cFileName a file name that includes `?' characters, use the 8+3 5739 * image.c (pbm_load): Allow color values up to 65535.
5740 alias in cAlternateFileName instead. 5740 Throw an error if max_color_idx is outside the supported range.
5741 5741 Report an error when image size is invalid.
57422008-04-05 Kenichi Handa <handa@ni.aist.go.jp> 5742 Read two bytes at a time when raw images have max_color_idx above 255.
5743 5743
5744 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't 57442008-04-05 Eli Zaretskii <eliz@gnu.org>
5745 append "CCL: Quitted" when the CCL program is quitted. 5745
5746 (setup_ccl_program): Initialize ccl->quit_silently to zero. 5746 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5747 5747 cFileName a file name that includes `?' characters, use the 8+3
5748 * ccl.h (struct ccl_program): New member quit_silently. 5748 alias in cAlternateFileName instead.
5749 5749
57502008-04-05 Chong Yidong <cyd@stupidchicken.com> 57502008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
5751 5751
5752 * search.c (compile_pattern_1): Treat non-nil and non-string of 5752 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
5753 search-spaces-regexp as nil. 5753 append "CCL: Quitted" when the CCL program is quitted.
5754 5754 (setup_ccl_program): Initialize ccl->quit_silently to zero.
5755 * minibuf.c (Fassoc_string): Tweak docstring. 5755
5756 5756 * ccl.h (struct ccl_program): New member quit_silently.
57572008-04-05 Eli Zaretskii <eliz@gnu.org> 5757
5758 57582008-04-05 Chong Yidong <cyd@stupidchicken.com>
5759 * dired.c (Ffile_attributes): Support inode numbers wider than 32 5759
5760 bits. Remove ugly WINDOWSNT-specific kludge introduced on 5760 * search.c (compile_pattern_1): Treat non-nil and non-string of
5761 2008-03-14 to force inode be positive. 5761 search-spaces-regexp as nil.
5762 5762
5763 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of 5763 * minibuf.c (Fassoc_string): Tweak docstring.
5764 _S_* ones, since we now use our own sys/stat.h. 5764
5765 (stat, fstat): Don't mangle the inode number. 57652008-04-05 Eli Zaretskii <eliz@gnu.org>
5766 (init_user_info): Don't restrict UID and GID to 0-60000 range. 5766
5767 5767 * dired.c (Ffile_attributes): Support inode numbers wider than 32
57682008-04-04 Stefan Monnier <monnier@iro.umontreal.ca> 5768 bits. Remove ugly WINDOWSNT-specific kludge introduced on
5769 5769 2008-03-14 to force inode be positive.
5770 * frame.h (struct frame): Give one more bit to `visible' since we use 5770
5771 values larger than 1 to indicate obscured frames on ttys. 5771 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
5772 5772 _S_* ones, since we now use our own sys/stat.h.
5773 * keymap.c (Qkeymap_canonicalize): New var. 5773 (stat, fstat): Don't mangle the inode number.
5774 (Fmap_keymap_internal): New fun. 5774 (init_user_info): Don't restrict UID and GID to 0-60000 range.
5775 (describe_map): Use keymap-canonicalize. 5775
5776 57762008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
5777 * undo.c (last_boundary_buffer, last_boundary_position): New vars. 5777
5778 (Fundo_boundary): Set them. 5778 * frame.h (struct frame): Give one more bit to `visible' since we use
5779 (syms_of_undo): Initialize them. 5779 values larger than 1 to indicate obscured frames on ttys.
5780 (record_point): Use them instead of last_point_position*. 5780
5781 (last_undo_buffer): Change type. 5781 * keymap.c (Qkeymap_canonicalize): New var.
5782 5782 (Fmap_keymap_internal): New fun.
57832008-04-04 Jason Rumney <jasonr@gnu.org> 5783 (describe_map): Use keymap-canonicalize.
5784 5784
5785 * w32font.c (w32font_text_extents): Use font's ascent and descent. 5785 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
5786 (recompute_cached_metrics): Don't set ascent and descent per char. 5786 (Fundo_boundary): Set them.
5787 5787 (syms_of_undo): Initialize them.
5788 * w32uniscribe.c (uniscribe_check_otf): Fix last change. 5788 (record_point): Use them instead of last_point_position*.
5789 (uniscribe_check_otf): Add GC protection before consing. 5789 (last_undo_buffer): Change type.
5790 Rearrange loop for counting features. 5790
5791 57912008-04-04 Jason Rumney <jasonr@gnu.org>
57922008-04-03 Stefan Monnier <monnier@iro.umontreal.ca> 5792
5793 5793 * w32font.c (w32font_text_extents): Use font's ascent and descent.
5794 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination 5794 (recompute_cached_metrics): Don't set ascent and descent per char.
5795 buffer with byte-size of source buffer. 5795
5796 5796 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
57972008-04-03 Chong Yidong <cyd@stupidchicken.com> 5797 (uniscribe_check_otf): Add GC protection before consing.
5798 5798 Rearrange loop for counting features.
5799 * callint.c (Fcall_interactively): Handle temporary region even 5799
5800 when shift-select-mode is off. 58002008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5801 5801
58022008-04-03 Jason Rumney <jasonr@gnu.org> 5802 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
5803 5803 buffer with byte-size of source buffer.
5804 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec. 5804
5805 58052008-04-03 Chong Yidong <cyd@stupidchicken.com>
58062008-04-03 Kenichi Handa <handa@m17n.org> 5806
5807 5807 * callint.c (Fcall_interactively): Handle temporary region even
5808 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO. 5808 when shift-select-mode is off.
5809 (CATEGORY_MASK_UTF_16): Likewise. 5809
5810 (detect_coding_utf_16): Add heuristics to reject utf-16 for a 58102008-04-03 Jason Rumney <jasonr@gnu.org>
5811 binary file. 5811
5812 (detect_coding): Add null-byte detection for a binary file. 5812 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
5813 (detect_coding_system): Likewise. 5813
5814 58142008-04-03 Kenichi Handa <handa@m17n.org>
58152008-04-03 Jason Rumney <jasonr@gnu.org> 5815
5816 5816 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
5817 * w32uniscribe.c: New file. 5817 (CATEGORY_MASK_UTF_16): Likewise.
5818 5818 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
5819 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c. 5819 binary file.
5820 5820 (detect_coding): Add null-byte detection for a binary file.
5821 * w32font.h (uniscribe_check_otf): Declare for w32font.c. 5821 (detect_coding_system): Likewise.
5822 5822
5823 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot) 58232008-04-03 Jason Rumney <jasonr@gnu.org>
5824 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi) 5824
5825 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya) 5825 * w32uniscribe.c: New file.
5826 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri) 5826
5827 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic) 5827 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
5828 (Qphonetic): New symbols. 5828
5829 (syms_of_w32font): Initialize them. 5829 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
5830 (font_supported_scripts): Use them. 5830
5831 (w32font_list_family): List all charsets. 5831 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
5832 (w32font_text_extents, recompute_cached_metrics): Fix metric 5832 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
5833 calculations. 5833 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
5834 (w32_enumfont_pattern_entity): Make full_type a DWORD. 5834 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
5835 Give opentype fonts their own format. 5835 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
5836 (font_matches_spec): New arguments backend and logfont. 5836 (Qphonetic): New symbols.
5837 Handle :otf spec for uniscribe backend. 5837 (syms_of_w32font): Initialize them.
5838 (add_font_entity_to_list): Match truetype fonts in uniscribe backend. 5838 (font_supported_scripts): Use them.
5839 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied. 5839 (w32font_list_family): List all charsets.
5840 5840 (w32font_text_extents, recompute_cached_metrics): Fix metric
5841 * w32fns.c (Fx_create_frame): Conditionally register uniscribe 5841 calculations.
5842 font backend. 5842 (w32_enumfont_pattern_entity): Make full_type a DWORD.
5843 (globals_of_w32fns): Initialize uniscribe font backend. 5843 Give opentype fonts their own format.
5844 5844 (font_matches_spec): New arguments backend and logfont.
5845 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up 5845 Handle :otf spec for uniscribe backend.
5846 dependencies. 5846 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
5847 (w32uniscribe.$(O)): New file to build. 5847 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
5848 (FONT_OBJ): Include w32uniscribe.$(O). 5848
5849 (LIBS): Add uniscribe libraries. 5849 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
5850 5850 font backend.
5851 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val. 5851 (globals_of_w32fns): Initialize uniscribe font backend.
5852 5852
58532008-04-02 Chong Yidong <cyd@stupidchicken.com> 5853 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
5854 5854 dependencies.
5855 * callint.c (Vshift_select_mode): New var. 5855 (w32uniscribe.$(O)): New file to build.
5856 (Finteractive): Document new ^ spec. 5856 (FONT_OBJ): Include w32uniscribe.$(O).
5857 (Fcall_interactively): Call handle-shift-selection if the ^ spec 5857 (LIBS): Add uniscribe libraries.
5858 is present. 5858
5859 5859 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
5860 * keyboard.c (Vthis_command_keys_shift_translated): New var. 5860
5861 (command_loop_1): Avoid running the direct display versions of 58612008-04-02 Chong Yidong <cyd@stupidchicken.com>
5862 forward-char and backward-char if shift-selection may occur. 5862
5863 (read_key_sequence): Set Vthis_command_keys_shift_translated if 5863 * callint.c (Vshift_select_mode): New var.
5864 shift-translation takes place. 5864 (Finteractive): Document new ^ spec.
5865 5865 (Fcall_interactively): Call handle-shift-selection if the ^ spec
5866 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to 5866 is present.
5867 avoid clobbering by define-minor-mode. 5867
5868 5868 * keyboard.c (Vthis_command_keys_shift_translated): New var.
5869 * cmds.c (Fforward_char, Fbackward_char, Fforward_line) 5869 (command_loop_1): Avoid running the direct display versions of
5870 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec. 5870 forward-char and backward-char if shift-selection may occur.
5871 5871 (read_key_sequence): Set Vthis_command_keys_shift_translated if
5872 * syntax.c (Fforward_word): Add ^ interactive spec. 5872 shift-translation takes place.
5873 5873
5874 * window.c (Fscroll_up, Fscroll_down, Fscroll_left) 5874 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
5875 (Fscroll_right): Add ^ interactive spec. 5875 avoid clobbering by define-minor-mode.
5876 5876
58772008-04-01 Stefan Monnier <monnier@iro.umontreal.ca> 5877 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
5878 5878 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
5879 * xdisp.c (try_window_id): Don't forget to reset delta_bytes. 5879
5880 5880 * syntax.c (Fforward_word): Add ^ interactive spec.
5881 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup. 5881
5882 5882 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
5883 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove. 5883 (Fscroll_right): Add ^ interactive spec.
5884 5884
58852008-03-31 Juri Linkov <juri@jurta.org> 58852008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
5886 5886
5887 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil. 5887 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
5888 5888
58892008-03-30 Jan Djärv <jan.h.d@swipnet.se> 5889 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
5890 5890
5891 * gtkutil.c (xg_set_geometry): Fix indentation. 5891 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
5892 (xg_resize_outer_widget): Remove. 5892
5893 (x_wm_size_hint_off): Fix indentation. 58932008-03-31 Juri Linkov <juri@jurta.org>
5894 (xg_frame_set_char_size): Call flush_and_sync after 5894
5895 gtk_window_resize. 5895 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
5896 (x_wm_set_size_hint): Pass NULL as geometry window to 5896
5897 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668. 58972008-03-30 Jan Djärv <jan.h.d@swipnet.se>
5898 Add menu bar and tool bar height to base height. 5898
5899 (xg_update_frame_menubar, free_frame_menubar) 5899 * gtkutil.c (xg_set_geometry): Fix indentation.
5900 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) 5900 (xg_resize_outer_widget): Remove.
5901 (update_frame_tool_bar, free_frame_tool_bar): 5901 (x_wm_size_hint_off): Fix indentation.
5902 Change xg_resize_outer_widget to xg_frame_set_char_size. 5902 (xg_frame_set_char_size): Call flush_and_sync after
5903 5903 gtk_window_resize.
59042008-03-30 Michael Albinus <michael.albinus@gmx.de> 5904 (x_wm_set_size_hint): Pass NULL as geometry window to
5905 5905 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
5906 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol. 5906 Add menu bar and tool bar height to base height.
5907 (Fdbus_call_method): New parameter TIMEOUT. 5907 (xg_update_frame_menubar, free_frame_menubar)
5908 (dbus-send-signal): Optimize UNGCPRO call. 5908 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5909 5909 (update_frame_tool_bar, free_frame_tool_bar):
59102008-03-29 Juri Linkov <juri@jurta.org> 5910 Change xg_resize_outer_widget to xg_frame_set_char_size.
5911 5911
5912 * window.c (Fdisplay_buffer): Move call to 59122008-03-30 Michael Albinus <michael.albinus@gmx.de>
5913 Vsplit_window_preferred_function out of conditions that check 5913
5914 if window is eligible for vertical splitting. 5914 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
5915 When Vsplit_window_preferred_function is non-nil, call it and use 5915 (Fdbus_call_method): New parameter TIMEOUT.
5916 its non-nil return value as window. Otherwise, continue doing 5916 (dbus-send-signal): Optimize UNGCPRO call.
5917 vertical splitting using Fsplit_window with arg horflag=nil. 5917
5918 (syms_of_window) <Vsplit_window_preferred_function>: Change the 59182008-03-29 Juri Linkov <juri@jurta.org>
5919 default value from `split-window' to nil. 5919
5920 5920 * window.c (Fdisplay_buffer): Move call to
59212008-03-29 Juri Linkov <juri@jurta.org> 5921 Vsplit_window_preferred_function out of conditions that check
5922 5922 if window is eligible for vertical splitting.
5923 * callint.c (Fcall_interactively): Revert 2008-03-16 change 5923 When Vsplit_window_preferred_function is non-nil, call it and use
5924 for interactive code letters 'b' and 'B'. 5924 its non-nil return value as window. Otherwise, continue doing
5925 5925 vertical splitting using Fsplit_window with arg horflag=nil.
59262008-03-29 Eli Zaretskii <eliz@gnu.org> 5926 (syms_of_window) <Vsplit_window_preferred_function>: Change the
5927 5927 default value from `split-window' to nil.
5928 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a 5928
5929 multibyte string. 59292008-03-29 Juri Linkov <juri@jurta.org>
5930 5930
59312008-03-29 Stefan Monnier <monnier@iro.umontreal.ca> 5931 * callint.c (Fcall_interactively): Revert 2008-03-16 change
5932 5932 for interactive code letters 'b' and 'B'.
5933 * keyboard.c (pending_funcalls): New var. 5933
5934 (timer_check): Run it. 59342008-03-29 Eli Zaretskii <eliz@gnu.org>
5935 (syms_of_keyboard): Initialize it. 5935
5936 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions) 5936 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
5937 (Vdelete_terminal_functions): New vars. 5937 multibyte string.
5938 (syms_of_terminal): Initialize them. 5938
5939 (Fdelete_terminal): Run delete-terminal-functions. 59392008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5940 * xdisp.c (safe_eval): Rewrite. 5940
5941 (safe_call2): New fun. 5941 * keyboard.c (pending_funcalls): New var.
5942 * frame.c (Qdelete_frame_functions): New var. 5942 (timer_check): Run it.
5943 (syms_of_frame): Initialize it. 5943 (syms_of_keyboard): Initialize it.
5944 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls. 5944 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
5945 * lisp.h (safe_call2, pending_funcalls): Declare. 5945 (Vdelete_terminal_functions): New vars.
5946 5946 (syms_of_terminal): Initialize them.
59472008-03-28 Andreas Schwab <schwab@suse.de> 5947 (Fdelete_terminal): Run delete-terminal-functions.
5948 5948 * xdisp.c (safe_eval): Rewrite.
5949 * indent.c (Fmove_to_column): Move declaration before statements. 5949 (safe_call2): New fun.
5950 5950 * frame.c (Qdelete_frame_functions): New var.
59512008-03-27 Stefan Monnier <monnier@iro.umontreal.ca> 5951 (syms_of_frame): Initialize it.
5952 5952 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
5953 * frame.h (enum fullscreen_type): Give it a name. Move it before use. 5953 * lisp.h (safe_call2, pending_funcalls): Declare.
5954 (struct frame): Use bit fields for boolean vars. 5954
5955 59552008-03-28 Andreas Schwab <schwab@suse.de>
5956 * process.c (server_accept_connection): Simplify naming. 5956
5957 (emacs_get_tty_pgrp): Use SDATA. 5957 * indent.c (Fmove_to_column): Move declaration before statements.
5958 5958
5959 * coding.c (decode_coding_object): Fix last change. 59592008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
5960 5960
59612008-03-27 Jason Rumney <jasonr@gnu.org> 5961 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
5962 5962 (struct frame): Use bit fields for boolean vars.
5963 * w32fns.c (start_hourglass): Suppress hourglass on tty frames. 5963
5964 5964 * process.c (server_accept_connection): Simplify naming.
59652008-03-27 Kenichi Handa <handa@ni.aist.go.jp> 5965 (emacs_get_tty_pgrp): Use SDATA.
5966 5966
5967 * charset.c (Fdefine_charset_internal): Change the way of 5967 * coding.c (decode_coding_object): Fix last change.
5968 registering charsets in Vcharset_order_list. 5968
5969 (syms_of_charset): Make the charset `eight-bit' supplementary. 59692008-03-27 Jason Rumney <jasonr@gnu.org>
5970 5970
59712008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change) 5971 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
5972 5972
5973 * regex.c (EXTEND_BUFFER): Change order of pointer addition 59732008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
5974 operations, to avoid having the difference between pointers 5974
5975 overflow. 5975 * charset.c (Fdefine_charset_internal): Change the way of
5976 5976 registering charsets in Vcharset_order_list.
59772008-03-26 Stefan Monnier <monnier@iro.umontreal.ca> 5977 (syms_of_charset): Make the charset `eight-bit' supplementary.
5978 5978
5979 * indent.c (check_display_width): New fun. 59792008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
5980 (scan_for_column): Use it. 5980
5981 5981 * regex.c (EXTEND_BUFFER): Change order of pointer addition
5982 * data.c (syms_of_data): Mark most-positive-fixnum and 5982 operations, to avoid having the difference between pointers
5983 most-negative-fixnum as constants. 5983 overflow.
5984 5984
5985 * xdisp.c (redisplay_internal): Reset selected_frame earlier. 59852008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5986 5986
5987 * indent.c (scan_for_column): Extract from current_column_1. 5987 * indent.c (check_display_width): New fun.
5988 Merge with the same code from Fmove_to_column. 5988 (scan_for_column): Use it.
5989 (current_column_1, Fmove_to_column): Use it. 5989
5990 5990 * data.c (syms_of_data): Mark most-positive-fixnum and
59912008-03-25 Stefan Monnier <monnier@iro.umontreal.ca> 5991 most-negative-fixnum as constants.
5992 5992
5993 * keymap.c (map_keymap_internal): New fun. 5993 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
5994 (map_keymap): Use it. 5994
5995 (Fmap_keymap_internal): New fun. 5995 * indent.c (scan_for_column): Extract from current_column_1.
5996 (Fmap_keymap): Remove left-out test from before make_save_value. 5996 Merge with the same code from Fmove_to_column.
5997 5997 (current_column_1, Fmove_to_column): Use it.
5998 * keymap.c (Fmap_keymap): Use `map-keymap-sorted. 5998
5999 59992008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6000 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters): 6000
6001 Use XCAR/XCDR. 6001 * keymap.c (map_keymap_internal): New fun.
6002 6002 (map_keymap): Use it.
6003 * process.h (struct Lisp_Process): Remove filter_multibyte. 6003 (Fmap_keymap_internal): New fun.
6004 * process.c (QCfilter_multibyte): Remove. 6004 (Fmap_keymap): Remove left-out test from before make_save_value.
6005 (setup_process_coding_systems): Don't use filter_multibyte. 6005
6006 (Fstart_process, Fmake_network_process): Don't set filter_multibyte. 6006 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
6007 (read_process_output): Don't adjust multibyteness to filter_multibyte. 6007
6008 (Fset_process_filter_multibyte): Change the coding-system to 6008 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
6009 approximate the previous behavior. 6009 Use XCAR/XCDR.
6010 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the 6010
6011 coding-system. 6011 * process.h (struct Lisp_Process): Remove filter_multibyte.
6012 6012 * process.c (QCfilter_multibyte): Remove.
6013 * coding.c (decode_coding_object): When not decoding into a buffer, 6013 (setup_process_coding_systems): Don't use filter_multibyte.
6014 obey the coding system's preference of (uni|multi)byte. 6014 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
6015 6015 (read_process_output): Don't adjust multibyteness to filter_multibyte.
60162008-03-24 Stefan Monnier <monnier@iro.umontreal.ca> 6016 (Fset_process_filter_multibyte): Change the coding-system to
6017 6017 approximate the previous behavior.
6018 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if 6018 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
6019 every char is changed and has a different byte-length. 6019 coding-system.
6020 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word): 6020
6021 Fix int -> EMACS_INT. 6021 * coding.c (decode_coding_object): When not decoding into a buffer,
6022 6022 obey the coding system's preference of (uni|multi)byte.
60232008-03-23 David Hansen <david.hansen@gmx.net> 6023
6024 60242008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6025 * dbusbind.c (xd_read_message): Remove extra copying of message 6025
6026 strings. Check for NULL `interface' or `member'. 6026 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
6027 6027 every char is changed and has a different byte-length.
60282008-03-22 Eli Zaretskii <eliz@gnu.org> 6028 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
6029 6029 Fix int -> EMACS_INT.
6030 * w32.c (readdir): If FindFirstFile/FindNextFile return in 6030
6031 cFileName a file name that includes `?' characters, use the 8+3 60312008-03-23 David Hansen <david.hansen@gmx.net>
6032 alias in cAlternateFileName instead. 6032
6033 6033 * dbusbind.c (xd_read_message): Remove extra copying of message
60342008-03-21 Stefan Monnier <monnier@iro.umontreal.ca> 6034 strings. Check for NULL `interface' or `member'.
6035 6035
6036 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT. 60362008-03-22 Eli Zaretskii <eliz@gnu.org>
6037 6037
60382008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> 6038 * w32.c (readdir): If FindFirstFile/FindNextFile return in
6039 6039 cFileName a file name that includes `?' characters, use the 8+3
6040 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT. 6040 alias in cAlternateFileName instead.
6041 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg, 6041
6042 work on current_buffer only instead (that was already the case 60422008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
6043 for some of the code anyway). 6043
6044 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int. 6044 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
6045 (temp_set_point, temp_set_point_both): Use EMACS_INT. 6045
6046 (SET_PT, SET_PT_BOTH): Adjust. 60462008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6047 * intervals.h (set_point, temp_set_point, set_point_both) 6047
6048 (temp_set_point_both): Remove redundant declarations. 6048 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
6049 6049 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
60502008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> 6050 work on current_buffer only instead (that was already the case
6051 6051 for some of the code anyway).
6052 * fileio.c (Finsert_file_contents): 6052 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
6053 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT. 6053 (temp_set_point, temp_set_point_both): Use EMACS_INT.
6054 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right 6054 (SET_PT, SET_PT_BOTH): Adjust.
6055 when buffer != current_buffer anyway. 6055 * intervals.h (set_point, temp_set_point, set_point_both)
6056 6056 (temp_set_point_both): Remove redundant declarations.
60572008-03-20 Andreas Schwab <schwab@suse.de> 6057
6058 60582008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6059 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer 6059
6060 as default. 6060 * fileio.c (Finsert_file_contents):
6061 6061 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
60622008-03-19 Jason Rumney <jasonr@gnu.org> 6062 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
6063 6063 when buffer != current_buffer anyway.
6064 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables. 6064
6065 (syms_of_w32fns): Initialize them. 60652008-03-20 Andreas Schwab <schwab@suse.de>
6066 (HOURGLASS_ID): New constant. 6066
6067 (x_window_to_frame): Don't check hourglass_window. 6067 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
6068 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer. 6068 as default.
6069 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor. 6069
6070 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor. 60702008-03-19 Jason Rumney <jasonr@gnu.org>
6071 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor. 6071
6072 Only change the cursor if hourglass is not active. 6072 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
6073 (Fx_create_frame): Initialize frame's current_cursor. 6073 (syms_of_w32fns): Initialize them.
6074 (hourglass_atimer): Remove. 6074 (HOURGLASS_ID): New constant.
6075 (hourglass_started): New function. 6075 (x_window_to_frame): Don't check hourglass_window.
6076 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. 6076 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
6077 (show_hourglass): Adapt to w32, changing argument to frame. 6077 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
6078 6078 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
6079 * w32term.h (struct w32_output): Remove hourglass_window. 6079 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
6080 Add current_cursor. 6080 Only change the cursor if hourglass is not active.
6081 6081 (Fx_create_frame): Initialize frame's current_cursor.
6082 * eval.c (call_debugger, Fsignal): 6082 (hourglass_atimer): Remove.
6083 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) 6083 (hourglass_started): New function.
6084 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) 6084 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
6085 (Fexecute_extended_command, cancel_hourglass_unwind): 6085 (show_hourglass): Adapt to w32, changing argument to frame.
6086 * minibuf.c (read_minibuf): 6086
6087 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM. 6087 * w32term.h (struct w32_output): Remove hourglass_window.
6088 6088 Add current_cursor.
60892008-03-19 Stefan Monnier <monnier@iro.umontreal.ca> 6089
6090 6090 * eval.c (call_debugger, Fsignal):
6091 * window.c (run_funs): New fun. 6091 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
6092 (run_window_configuration_change_hook): Use it to run the buffer-local 6092 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
6093 and the global part of the hook. 6093 (Fexecute_extended_command, cancel_hourglass_unwind):
6094 6094 * minibuf.c (read_minibuf):
6095 * xdisp.c (format_mode_line_unwind_data): Add window argument. 6095 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
6096 (unwind_format_mode_line): Restore selected window. 6096
6097 (x_consider_frame_title, Fformat_mode_line): Set selected window. 60972008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
6098 6098
60992008-03-17 Stefan Monnier <monnier@iro.umontreal.ca> 6099 * window.c (run_funs): New fun.
6100 6100 (run_window_configuration_change_hook): Use it to run the buffer-local
6101 * editfns.c (Fchar_equal): Check they are valid characters. 6101 and the global part of the hook.
6102 6102
6103 * buffer.h (Fbuffer_list): Declare (for use in callint.c). 6103 * xdisp.c (format_mode_line_unwind_data): Add window argument.
6104 6104 (unwind_format_mode_line): Restore selected window.
61052008-03-17 Andreas Schwab <schwab@suse.de> 6105 (x_consider_frame_title, Fformat_mode_line): Set selected window.
6106 6106
6107 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes 61072008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6108 against a charset. 6108
6109 6109 * editfns.c (Fchar_equal): Check they are valid characters.
6110 * lisp.h (Fbuffer_list): Declare. 6110
6111 6111 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
61122008-03-17 Jan Djärv <jan.h.d@swipnet.se> 6112
6113 61132008-03-17 Andreas Schwab <schwab@suse.de>
6114 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if 6114
6115 handlebox_widget is != 0. 6115 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
6116 6116 against a charset.
61172008-03-16 Juri Linkov <juri@jurta.org> 6117
6118 6118 * lisp.h (Fbuffer_list): Declare.
6119 * callint.c (Fcall_interactively): For interactive code letters 6119
6120 'b' and 'B' put the buffer list into the list of default "future" 61202008-03-17 Jan Djärv <jan.h.d@swipnet.se>
6121 values of the minibuffer. 6121
6122 6122 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
61232008-03-16 Andreas Schwab <schwab@suse.de> 6123 handlebox_widget is != 0.
6124 6124
6125 * keyboard.c (read_key_sequence): Fix downcasing of letters with 61252008-03-16 Juri Linkov <juri@jurta.org>
6126 modifiers. 6126
6127 6127 * callint.c (Fcall_interactively): For interactive code letters
6128 * regex.c (re_match_2_internal): Correct matching of a charset 6128 'b' and 'B' put the buffer list into the list of default "future"
6129 against latin-1 characters. 6129 values of the minibuffer.
6130 6130
61312008-03-16 Kenichi Handa <handa@m17n.org> 61312008-03-16 Andreas Schwab <schwab@suse.de>
6132 6132
6133 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY) 6133 * keyboard.c (read_key_sequence): Fix downcasing of letters with
6134 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros. 6134 modifiers.
6135 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap. 6135
6136 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap. 6136 * regex.c (re_match_2_internal): Correct matching of a charset
6137 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of 6137 against latin-1 characters.
6138 CHAR_STRING_ADVANCE. 6138
6139 (produce_chars): Fix for the case that the source and the 61392008-03-16 Kenichi Handa <handa@m17n.org>
6140 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY 6140
6141 instead of CHAR_STRING_ADVANCE. 6141 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
6142 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of 6142 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
6143 STRING_CHAR_ADVANCE. 6143 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
6144 6144 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
61452008-03-15 Andreas Schwab <schwab@suse.de> 6145 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
6146 6146 CHAR_STRING_ADVANCE.
6147 * regex.c (re_match_2_internal): Correct matching of eight bit 6147 (produce_chars): Fix for the case that the source and the
6148 characters in unibyte strings. 6148 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
6149 6149 instead of CHAR_STRING_ADVANCE.
61502008-03-15 Martin Rudalics <rudalics@gmx.at> 6150 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
6151 6151 STRING_CHAR_ADVANCE.
6152 * buffer.c (overlays_in, Foverlays_in): Include empty overlays 6152
6153 at end of range when it coincides with the end of the buffer. 61532008-03-15 Andreas Schwab <schwab@suse.de>
6154 6154
61552008-03-14 Eli Zaretskii <eliz@gnu.org> 6155 * regex.c (re_match_2_internal): Correct matching of eight bit
6156 6156 characters in unibyte strings.
6157 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive. 6157
6158 61582008-03-15 Martin Rudalics <rudalics@gmx.at>
6159 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change. 6159
6160 6160 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
61612008-03-14 Jason Rumney <jasonr@gnu.org> 6161 at end of range when it coincides with the end of the buffer.
6162 6162
6163 * editfns.c (initial_tz): New variable. 61632008-03-14 Eli Zaretskii <eliz@gnu.org>
6164 (syms_of_editfns): Initialize it. 6164
6165 (Fset_time_zone_rule): Set it when first called. 6165 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
6166 Use it when TZSTRING is nil. 6166
6167 6167 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
6168 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO) 6168
6169 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions. 61692008-03-14 Jason Rumney <jasonr@gnu.org>
6170 (monitor_from_point_fn, get_monitor_info_fn): New globals. 6170
6171 (globals_of_w32fns): Initialize them. 6171 * editfns.c (initial_tz): New variable.
6172 (compute_tip_xy): Use them to position tooltips. 6172 (syms_of_editfns): Initialize it.
6173 6173 (Fset_time_zone_rule): Set it when first called.
61742008-03-14 Glenn Morris <rgm@gnu.org> 6174 Use it when TZSTRING is nil.
6175 6175
6176 * emacs.c (main): Revert previous change. 6176 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
6177 (standard_args): Revert -internal-script back to -scriptload, 6177 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
6178 and remove the long-option form. 6178 (monitor_from_point_fn, get_monitor_info_fn): New globals.
6179 6179 (globals_of_w32fns): Initialize them.
61802008-03-13 Glenn Morris <rgm@gnu.org> 6180 (compute_tip_xy): Use them to position tooltips.
6181 6181
6182 * emacs.c (main, standard_args): Rename -scriptload to -internal-script. 61822008-03-14 Glenn Morris <rgm@gnu.org>
6183 Remove option -enable-font-backend. 6183
6184 6184 * emacs.c (main): Revert previous change.
61852008-03-12 Stefan Monnier <monnier@iro.umontreal.ca> 6185 (standard_args): Revert -internal-script back to -scriptload,
6186 6186 and remove the long-option form.
6187 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer. 6187
6188 61882008-03-13 Glenn Morris <rgm@gnu.org>
61892008-03-11 Jan Djärv <jan.h.d@swipnet.se> 6189
6190 6190 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
6191 * xterm.c (x_connection_closed): For GTK: If this is the last 6191 Remove option -enable-font-backend.
6192 terminal just exit without closing the display. 6192
6193 61932008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
61942008-03-11 Jason Rumney <jasonr@gnu.org> 6194
6195 6195 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
6196 * w32font.c (w32font_full_name): Use floor to round. 6196
6197 61972008-03-11 Jan Djärv <jan.h.d@swipnet.se>
61982008-03-10 dhruva <dhruvakm@gmail.com> (tiny change) 6198
6199 6199 * xterm.c (x_connection_closed): For GTK: If this is the last
6200 * sound.c (alsa_configure): Declare vol at beginning of block. 6200 terminal just exit without closing the display.
6201 6201
6202 * fontset.c (Ffontset_info): Remove extra semicolon. 62022008-03-11 Jason Rumney <jasonr@gnu.org>
6203 6203
62042008-03-10 Stefan Monnier <monnier@iro.umontreal.ca> 6204 * w32font.c (w32font_full_name): Use floor to round.
6205 6205
6206 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum 62062008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
6207 size of resulting string. 6207
6208 6208 * sound.c (alsa_configure): Declare vol at beginning of block.
62092008-03-10 Jason Rumney <jasonr@gnu.org> 6209
6210 6210 * fontset.c (Ffontset_info): Remove extra semicolon.
6211 * dispnew.c (adjust_glyph_matrix): Initialize window_height. 6211
6212 62122008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
62132008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 6213
6214 6214 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
6215 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes. 6215 size of resulting string.
6216 Don't pretend as if characters with display property haven't been 6216
6217 consumed for string-replacing-string case. 62172008-03-10 Jason Rumney <jasonr@gnu.org>
6218 6218
62192008-03-08 Kim F. Storm <storm@cua.dk> 6219 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
6220 6220
6221 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro. 62212008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6222 (get_next_display_element, next_element_from_string) 6222
6223 (next_element_from_ellipsis, next_element_from_buffer): Use it. 6223 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
6224 6224 Don't pretend as if characters with display property haven't been
62252008-03-08 Andreas Schwab <schwab@suse.de> 6225 consumed for string-replacing-string case.
6226 6226
6227 * process.h (struct Lisp_Process): Declare bit fields as unsigned. 62272008-03-08 Kim F. Storm <storm@cua.dk>
6228 6228
62292008-03-06 Jason Rumney <jasonr@gnu.org> 6229 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
6230 6230 (get_next_display_element, next_element_from_string)
6231 * w32font.c (w32_registry): Take font_type argument. Use ANSI 6231 (next_element_from_ellipsis, next_element_from_buffer): Use it.
6232 when charset not specified. Only translate ANSI to unicode when 6232
6233 font_type is truetype. 62332008-03-08 Andreas Schwab <schwab@suse.de>
6234 (w32font_coverage_ok): New function. 6234
6235 (add_font_entity_to_list): Use it to filter unsuitable fonts. 6235 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
6236 6236
62372008-03-05 Kenichi Handa <handa@ni.aist.go.jp> 62372008-03-06 Jason Rumney <jasonr@gnu.org>
6238 6238
6239 * lread.c (Fread_char): Resolve modifiers. 6239 * w32font.c (w32_registry): Take font_type argument. Use ANSI
6240 (Fread_char_exclusive): Likewise. 6240 when charset not specified. Only translate ANSI to unicode when
6241 6241 font_type is truetype.
6242 * character.c (char_resolve_modifier_mask): New function. 6242 (w32font_coverage_ok): New function.
6243 (char_string): Use char_resolve_modifier_mask. 6243 (add_font_entity_to_list): Use it to filter unsuitable fonts.
6244 (Fchar_resolve_modifiers): New function. 6244
6245 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp 62452008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
6246 function. 6246
6247 6247 * lread.c (Fread_char): Resolve modifiers.
62482008-03-04 Jason Rumney <jasonr@gnu.org> 6248 (Fread_char_exclusive): Likewise.
6249 6249
6250 * makefile.w32-in: Always include w32font.c in the build. 6250 * character.c (char_resolve_modifier_mask): New function.
6251 * w32font.c: Wrap in USE_FONT_BACKEND conditional. 6251 (char_string): Use char_resolve_modifier_mask.
6252 6252 (Fchar_resolve_modifiers): New function.
62532008-03-04 Andreas Schwab <schwab@suse.de> 6253 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
6254 6254 function.
6255 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*. 6255
6256 (versionclean): Likewise. 62562008-03-04 Jason Rumney <jasonr@gnu.org>
6257 6257
62582008-03-04 Juanma Barranquero <lekktu@gmail.com> 6258 * makefile.w32-in: Always include w32font.c in the build.
6259 6259 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
6260 * .cvsignore: Add oo. 6260
6261 62612008-03-04 Andreas Schwab <schwab@suse.de>
62622008-03-03 Andreas Schwab <schwab@suse.de> 6262
6263 6263 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
6264 * coding.c (decode_coding_object): Inhibit gap shrinking while 6264 (versionclean): Likewise.
6265 decoding in place. 6265
6266 62662008-03-04 Juanma Barranquero <lekktu@gmail.com>
62672008-03-03 Dan Nicolaescu <dann@ics.uci.edu> 6267
6268 6268 * .cvsignore: Add oo.
6269 * w32term.c: Remove unused include "gnu.h". 6269
6270 * makefile.w32-in (w32term.o): Don't depend on gnu.h. 62702008-03-03 Andreas Schwab <schwab@suse.de>
6271 6271
6272 * gnu.h: Rename to ... 6272 * coding.c (decode_coding_object): Inhibit gap shrinking while
6273 * emacs-icon.h: ... this. 6273 decoding in place.
6274 * xterm.c: Use emacs-icon.h instead of gnu.h. 6274
6275 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h. 62752008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
6276 6276
62772008-03-03 Juanma Barranquero <lekktu@gmail.com> 6277 * w32term.c: Remove unused include "gnu.h".
6278 6278 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
6279 * w32font.c: Include math.h. 6279
6280 6280 * gnu.h: Rename to ...
62812008-03-03 Jason Rumney <jasonr@gnu.org> 6281 * emacs-icon.h: ... this.
6282 6282 * xterm.c: Use emacs-icon.h instead of gnu.h.
6283 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info. 6283 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
6284 Compute options separately. 6284
6285 (w32font_open_internal): Set glyph_idx before caching metrics. 62852008-03-03 Juanma Barranquero <lekktu@gmail.com>
6286 6286
6287 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1): 6287 * w32font.c: Include math.h.
6288 Define if system headers don't. 6288
6289 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx. 62892008-03-03 Jason Rumney <jasonr@gnu.org>
6290 (w32font_encode_char): Don't declare here. 6290
6291 6291 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
6292 * w32font.c (Quniscribe, QCformat): New symbols. 6292 Compute options separately.
6293 (syms_of_w32font): Define them. 6293 (w32font_open_internal): Set glyph_idx before caching metrics.
6294 (w32font_has_char): Indicate uncertainty. 6294
6295 (w32font_encode_char): Encode as glyph point. Make static. 6295 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
6296 (recompute_cached_metrics): New function. 6296 Define if system headers don't.
6297 (w32font_open_internal): Use it. Set font to use glyph points 6297 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
6298 initially. Set format based on type of font. 6298 (w32font_encode_char): Don't declare here.
6299 (w32font_text_extents, w32font_draw): Optionally use glyph points. 6299
6300 (w32_enumfont_pattern_entity): Accept backend arg. Set type based 6300 * w32font.c (Quniscribe, QCformat): New symbols.
6301 on it. Set format based on information available here. 6301 (syms_of_w32font): Define them.
6302 (add_font_entity_to_list): Identify backend based on opentype_only. 6302 (w32font_has_char): Indicate uncertainty.
6303 6303 (w32font_encode_char): Encode as glyph point. Make static.
63042008-03-02 Andreas Schwab <schwab@suse.de> 6304 (recompute_cached_metrics): New function.
6305 6305 (w32font_open_internal): Use it. Set font to use glyph points
6306 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations. 6306 initially. Set format based on type of font.
6307 6307 (w32font_text_extents, w32font_draw): Optionally use glyph points.
6308 * coding.c (decode_coding_big5, produce_chars): 6308 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
6309 Fix typos in last change. 6309 on it. Set format based on information available here.
6310 6310 (add_font_entity_to_list): Identify backend based on opentype_only.
63112008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp> 6311
6312 63122008-03-02 Andreas Schwab <schwab@suse.de>
6313 * gnu.h: New icon. 6313
6314 6314 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
63152008-03-02 Kenichi Handa <handa@m17n.org> 6315
6316 6316 * coding.c (decode_coding_big5, produce_chars):
6317 * coding.c (decode_coding_utf_8): When eol-type of CODING is 6317 Fix typos in last change.
6318 `dos', don't decode '\r' if that is the last in the source. 6318
6319 (decode_coding_utf_16, decode_coding_emacs_mule) 63192008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
6320 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) 6320
6321 (decode_coding_raw_text, decode_coding_charset): Likewise. 6321 * gnu.h: New icon.
6322 (produce_chars): Don't decode EOL here. Use EMACS_INT. 6322
6323 63232008-03-02 Kenichi Handa <handa@m17n.org>
63242008-03-01 Jason Rumney <jasonr@gnu.org> 6324
6325 6325 * coding.c (decode_coding_utf_8): When eol-type of CODING is
6326 * w32font.c (w32font_full_name): Report point size for scalable fonts. 6326 `dos', don't decode '\r' if that is the last in the source.
6327 6327 (decode_coding_utf_16, decode_coding_emacs_mule)
63282008-03-01 Kim F. Storm <storm@cua.dk> 6328 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6329 6329 (decode_coding_raw_text, decode_coding_charset): Likewise.
6330 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face. 6330 (produce_chars): Don't decode EOL here. Use EMACS_INT.
6331 6331
63322008-03-01 Jason Rumney <jasonr@gnu.org> 63322008-03-01 Jason Rumney <jasonr@gnu.org>
6333 6333
6334 * w32font.c (w32font_full_name): New function. 6334 * w32font.c (w32font_full_name): Report point size for scalable fonts.
6335 (w32font_open_internal): Use it. 6335
6336 63362008-03-01 Kim F. Storm <storm@cua.dk>
63372008-03-01 Kim F. Storm <storm@cua.dk> 6337
6338 6338 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
6339 * dispnew.c (line_draw_cost): Fix invalid glyph check. 6339
6340 63402008-03-01 Jason Rumney <jasonr@gnu.org>
63412008-03-01 Jason Rumney <jasonr@gnu.org> 6341
6342 6342 * w32font.c (w32font_full_name): New function.
6343 * font.c (font_unparse_fcname): Increase len when style is a symbol. 6343 (w32font_open_internal): Use it.
6344 6344
63452008-03-01 Jan Djärv <jan.h.d@swipnet.se> 63452008-03-01 Kim F. Storm <storm@cua.dk>
6346 6346
6347 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call 6347 * dispnew.c (line_draw_cost): Fix invalid glyph check.
6348 xg_frame_resized when the event is for the edit widget. 6348
6349 63492008-03-01 Jason Rumney <jasonr@gnu.org>
6350 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets. 6350
6351 6351 * font.c (font_unparse_fcname): Increase len when style is a symbol.
6352 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or 6352
6353 set_char_size. 63532008-03-01 Jan Djärv <jan.h.d@swipnet.se>
6354 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all 6354
6355 operations on widgets here. Just set frame size if needed. 6355 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
6356 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions. 6356 xg_frame_resized when the event is for the edit widget.
6357 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing. 6357
6358 (x_wm_set_size_hint): Set size hints on the edit widget only, not 6358 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
6359 the whole frame. 6359
6360 (xg_create_tool_bar): Move attachment of the tool bar to 6360 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
6361 xg_pack_tool_bar. Do not attach the tool bar if there are no items. 6361 set_char_size.
6362 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED. 6362 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
6363 6363 operations on widgets here. Just set frame size if needed.
63642008-03-01 Jason Rumney <jasonr@gnu.org> 6364 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
6365 6365 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
6366 * w32fns.c (w32_msg_pump): Disable debug code. 6366 (x_wm_set_size_hint): Set size hints on the edit widget only, not
6367 6367 the whole frame.
63682008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 6368 (xg_create_tool_bar): Move attachment of the tool bar to
6369 6369 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
6370 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64. 6370 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
6371 6371
63722008-02-29 Chong Yidong <cyd@stupidchicken.com> 63722008-03-01 Jason Rumney <jasonr@gnu.org>
6373 6373
6374 * xdisp.c (next_overlay_string): Don't set 6374 * w32fns.c (w32_msg_pump): Disable debug code.
6375 overlay_strings_at_end_processed_p if we're currently reading from 6375
6376 a display string. 63762008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6377 6377
63782008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> 6378 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
6379 6379
6380 * xdisp.c (get_overlay_strings_1): Fix typo. 63802008-02-29 Chong Yidong <cyd@stupidchicken.com>
6381 6381
63822008-02-29 Chong Yidong <cyd@stupidchicken.com> 6382 * xdisp.c (next_overlay_string): Don't set
6383 6383 overlay_strings_at_end_processed_p if we're currently reading from
6384 * xdisp.c (get_overlay_strings_1): Add missing argument type. 6384 a display string.
6385 6385
63862008-02-28 Kenichi Handa <handa@ni.aist.go.jp> 63862008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
6387 6387
6388 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern. 6388 * xdisp.c (get_overlay_strings_1): Fix typo.
6389 6389
6390 * xdisp.c (display_mode_element): Cancel the previous change. 63902008-02-29 Chong Yidong <cyd@stupidchicken.com>
6391 (decode_mode_spec): Likewise. 6391
6392 (handle_auto_composed_prop): Don't make composition if it->string 6392 * xdisp.c (get_overlay_strings_1): Add missing argument type.
6393 is a string. 6393
6394 63942008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
63952008-02-27 Kim F. Storm <storm@cua.dk> 6395
6396 6396 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
6397 * lisp.h (GLYPH): Change type from int to struct with separate char 6397
6398 and face_id members. 6398 * xdisp.c (display_mode_element): Cancel the previous change.
6399 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros. 6399 (decode_mode_spec): Likewise.
6400 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg. 6400 (handle_auto_composed_prop): Don't make composition if it->string
6401 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ... 6401 is a string.
6402 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users. 6402
6403 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ... 64032008-02-27 Kim F. Storm <storm@cua.dk>
6404 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead. 6404
6405 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P) 6405 * lisp.h (GLYPH): Change type from int to struct with separate char
6406 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to 6406 and face_id members.
6407 handle new Lisp glyph code encoding, either an integer or a cons. 6407 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
6408 6408 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
6409 * disptab.h (GLYPH_SIMPLE_P): Rewrite. 6409 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
6410 (GLYPH_ALIAS): Delete. 6410 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
6411 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite. 6411 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
6412 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR. 6412 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
6413 (GLYPH_FROM_CHAR): Replace macro by ... 6413 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
6414 (SET_GLYPH_FROM_CHAR): ... this macro. Change users. 6414 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
6415 6415 handle new Lisp glyph code encoding, either an integer or a cons.
6416 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify. 6416
6417 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ... 6417 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
6418 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users. 6418 (GLYPH_ALIAS): Delete.
6419 (GLYPH_INVALID_P): New macro. 6419 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
6420 (spec_glyph_lookup_face): Update prototype. 6420 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
6421 6421 (GLYPH_FROM_CHAR): Replace macro by ...
6422 * dispnew.c (line_draw_cost): Adapt to new glyph type. 6422 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
6423 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and 6423
6424 new glyph code encoding. 6424 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
6425 (spec_glyph_lookup_face): No return value; update passed glyph instead. 6425 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
6426 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph. 6426 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
6427 6427 (GLYPH_INVALID_P): New macro.
6428 * xdisp.c (get_next_display_element, next_element_from_display_vector): 6428 (spec_glyph_lookup_face): Update prototype.
6429 Adapt to new glyph type and new glyph code encoding. 6429
6430 6430 * dispnew.c (line_draw_cost): Adapt to new glyph type.
6431 * term.c (encode_terminal_code, produce_special_glyphs): Likewise. 6431 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
6432 6432 new glyph code encoding.
6433 * indent.c (current_column, current_column_1, Fmove_to_column) 6433 (spec_glyph_lookup_face): No return value; update passed glyph instead.
6434 (compute_motion): Adapt to new glyph code encoding. 6434 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
6435 6435
6436 * msdos.c (IT_write_glyphs): Adapt to new glyph type. 6436 * xdisp.c (get_next_display_element, next_element_from_display_vector):
6437 6437 Adapt to new glyph type and new glyph code encoding.
64382008-02-27 Chong Yidong <cyd@stupidchicken.com> 6438
6439 6439 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
6440 * process.c (wait_reading_process_output): Check for window 6440
6441 changes caused by timers. 6441 * indent.c (current_column, current_column_1, Fmove_to_column)
6442 Suggested by Johan Bockgård. 6442 (compute_motion): Adapt to new glyph code encoding.
6443 6443
64442008-02-27 Glenn Morris <rgm@gnu.org> 6444 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
6445 6445
6446 * emacs.c (USAGE1): Add `--disable-font-backend'. 64462008-02-27 Chong Yidong <cyd@stupidchicken.com>
6447 6447
64482008-02-27 Stefan Monnier <monnier@iro.umontreal.ca> 6448 * process.c (wait_reading_process_output): Check for window
6449 6449 changes caused by timers.
6450 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change 6450 Suggested by Johan Bockgård.
6451 is made to the buffer. 6451
6452 64522008-02-27 Glenn Morris <rgm@gnu.org>
64532008-02-26 Stefan Monnier <monnier@iro.umontreal.ca> 6453
6454 6454 * emacs.c (USAGE1): Add `--disable-font-backend'.
6455 * dispextern.h (face_at_buffer_position, face_for_overlay_string) 6455
6456 (face_at_string_position): 64562008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
6457 * xfaces.c (face_at_buffer_position, face_for_overlay_string) 6457
6458 (face_at_string_position): 6458 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
6459 * xdisp.c (display_string, next_overlay_change): 6459 is made to the buffer.
6460 * buffer.h (overlays_at): 6460
6461 * buffer.c (overlays_at): Use EMACS_INT for buffer positions. 64612008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
6462 Update callers. 6462
6463 6463 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
64642008-02-26 Chong Yidong <cyd@stupidchicken.com> 6464 (face_at_string_position):
6465 6465 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6466 * editfns.c (Fformat): Doc fix. 6466 (face_at_string_position):
6467 6467 * xdisp.c (display_string, next_overlay_change):
64682008-02-26 Juanma Barranquero <lekktu@gmail.com> 6468 * buffer.h (overlays_at):
6469 6469 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
6470 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings. 6470 Update callers.
6471 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf) 6471
6472 (Ffont_otf_alternates, Fquery_font): Doc fixes. 64722008-02-26 Chong Yidong <cyd@stupidchicken.com>
6473 6473
64742008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> 6474 * editfns.c (Fformat): Doc fix.
6475 6475
6476 * buffer.c (Fbuffer_swap_text): New function. 64762008-02-26 Juanma Barranquero <lekktu@gmail.com>
6477 (syms_of_buffer): Defsubr it. 6477
6478 6478 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
64792008-02-25 Chong Yidong <cyd@stupidchicken.com> 6479 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
6480 6480 (Ffont_otf_alternates, Fquery_font): Doc fixes.
6481 * keyboard.c (command_loop_1): Revert 2006-10-09 change. 6481
6482 64822008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
64832008-02-25 Jason Rumney <jasonr@gnu.org> 6483
6484 6484 * buffer.c (Fbuffer_swap_text): New function.
6485 * w32font.c (w32font_draw): Draw one character at a time when padding. 6485 (syms_of_buffer): Defsubr it.
6486 6486
64872008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> 64872008-02-25 Chong Yidong <cyd@stupidchicken.com>
6488 6488
6489 * window.c (Fdelete_window, Fadjust_window_trailing_edge): 6489 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
6490 Handle a nil arg. Use run_window_configuration_change_hook. 6490
6491 (delete_window, adjust_window_trailing_edge): Don't handle nil any more. 64912008-02-25 Jason Rumney <jasonr@gnu.org>
6492 (Fenlarge_window, Fshrink_window, Fset_window_configuration): 6492
6493 Use run_window_configuration_change_hook. 6493 * w32font.c (w32font_draw): Draw one character at a time when padding.
6494 6494
64952008-02-25 Kenichi Handa <handa@ni.aist.go.jp> 64952008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6496 6496
6497 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least 6497 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
6498 1-pixel width. 6498 Handle a nil arg. Use run_window_configuration_change_hook.
6499 6499 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
65002008-02-25 Kenichi Handa <handa@ni.aist.go.jp> 6500 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
6501 6501 Use run_window_configuration_change_hook.
6502 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p. 6502
6503 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1 65032008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6504 if the glyph in the font is zero pixel with. 6504
6505 6505 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
6506 * dispextern.h (struct glyph_string): New member padding_p. 6506 1-pixel width.
6507 6507
6508 * w32font.c (w32font_draw): Pay attention to s->padding_p. 65082008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6509 6509
6510 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p. 6510 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
6511 6511 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
6512 * xfont.c (xfont_draw): Pay attention to s->padding_p. 6512 if the glyph in the font is zero pixel with.
6513 6513
6514 * xftfont.c (xftfont_draw): Pay attention to s->padding_p. 6514 * dispextern.h (struct glyph_string): New member padding_p.
6515 6515
6516 * font.c: If the font driver doesn't have `shape' function, return Qnil. 6516 * w32font.c (w32font_draw): Pay attention to s->padding_p.
6517 6517
65182008-02-25 Jason Rumney <jasonr@gnu.org> 6518 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
6519 6519
6520 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode. 6520 * xfont.c (xfont_draw): Pay attention to s->padding_p.
6521 6521
65222008-02-24 Stefan Monnier <monnier@iro.umontreal.ca> 6522 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
6523 6523
6524 Allow fine-grained image-cache flushing. 6524 * font.c: If the font driver doesn't have `shape' function, return Qnil.
6525 * dispextern.h (struct image): Add `dependencies' field. 6525
6526 (clear_image_caches): Change arg to Lisp_Object. 65262008-02-25 Jason Rumney <jasonr@gnu.org>
6527 * image.c (make_image): Initialize `dependencies' field. 6527
6528 (clear_image_cache): Change arg to allow fine-grained flushing. 6528 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
6529 Perform the flush even if image-cache-eviction-delay is nil. 6529
6530 (clear_image_caches): Change arg to Lisp_Object. 65302008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
6531 (Fclear_image_cache): Expand meaning of the argument. 6531
6532 (mark_image): Mark `dependencies' field. 6532 Allow fine-grained image-cache flushing.
6533 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches. 6533 * dispextern.h (struct image): Add `dependencies' field.
6534 (lface_hash): Use XHASH rather than XFASTINT. 6534 (clear_image_caches): Change arg to Lisp_Object.
6535 (face_at_buffer_position): Fix int -> EMACS_INT position. 6535 * image.c (make_image): Initialize `dependencies' field.
6536 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position. 6536 (clear_image_cache): Change arg to allow fine-grained flushing.
6537 (select_frame_for_redisplay): Remove code duplication. 6537 Perform the flush even if image-cache-eviction-delay is nil.
6538 (redisplay_internal): Adapt arg to call to clear_image_caches. 6538 (clear_image_caches): Change arg to Lisp_Object.
6539 6539 (Fclear_image_cache): Expand meaning of the argument.
65402008-02-24 Dan Nicolaescu <dann@ics.uci.edu> 6540 (mark_image): Mark `dependencies' field.
6541 6541 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
6542 * s/vms4-0.h: 6542 (lface_hash): Use XHASH rather than XFASTINT.
6543 * s/vms4-2.h: 6543 (face_at_buffer_position): Fix int -> EMACS_INT position.
6544 * s/vms4-4.h: 6544 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
6545 * s/vms5-5.h: Remove, unused. 6545 (select_frame_for_redisplay): Remove code duplication.
6546 6546 (redisplay_internal): Adapt arg to call to clear_image_caches.
6547 * s/irix5-2.h: 6547
6548 * s/irix6-0.h: 65482008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
6549 * s/riscos5.h: 6549
6550 * s/mach-bsd4-3.h: 6550 * s/vms4-0.h:
6551 * m/mips4.h: Remove files for obsolete systems. 6551 * s/vms4-2.h:
6552 6552 * s/vms4-4.h:
6553 * Makefile.in: 6553 * s/vms5-5.h: Remove, unused.
6554 * filelock.c: 6554
6555 * unexmips.c: 6555 * s/irix5-2.h:
6556 * m/hp9000s300.h: 6556 * s/irix6-0.h:
6557 * m/iris4d.h: 6557 * s/riscos5.h:
6558 * s/aix3-1.h: 6558 * s/mach-bsd4-3.h:
6559 * s/hpux.h: 6559 * m/mips4.h: Remove files for obsolete systems.
6560 * s/msdos.h: 6560
6561 * s/usg5-0.h: 6561 * Makefile.in:
6562 * s/usg5-2-2.h: 6562 * filelock.c:
6563 * s/usg5-2.h: 6563 * unexmips.c:
6564 * s/usg5-3.h: Remove references to obsolete variables. 6564 * m/hp9000s300.h:
6565 6565 * m/iris4d.h:
6566 * s/irix5-0.h: Remove, move all the contents ... 6566 * s/aix3-1.h:
6567 * s/irix6-5.h: ... here. Simplify. 6567 * s/hpux.h:
6568 * config.in: Regenerate. 6568 * s/msdos.h:
6569 6569 * s/usg5-0.h:
65702008-02-24 Jason Rumney <jasonr@gnu.org> 6570 * s/usg5-2-2.h:
6571 6571 * s/usg5-2.h:
6572 * w32term.c (x_draw_glyph_string_background): Clear the background 6572 * s/usg5-3.h: Remove references to obsolete variables.
6573 manually when cleartype is in use. 6573
6574 (x_draw_glyph_string_foreground): Draw text transparently when 6574 * s/irix5-0.h: Remove, move all the contents ...
6575 cleartype is in use. 6575 * s/irix6-5.h: ... here. Simplify.
6576 6576 * config.in: Regenerate.
6577 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting 6577
6578 a font into it unless we have to. 65782008-02-24 Jason Rumney <jasonr@gnu.org>
6579 6579
65802008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> 6580 * w32term.c (x_draw_glyph_string_background): Clear the background
6581 6581 manually when cleartype is in use.
6582 * intervals.h (INT_LISPLIKE): Remove. It may misfire. 6582 (x_draw_glyph_string_foreground): Draw text transparently when
6583 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it. 6583 cleartype is in use.
6584 6584
65852008-02-18 Jason Rumney <jasonr@gnu.org> 6585 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
6586 6586 a font into it unless we have to.
6587 * w32fns.c (Fw32_shell_execute): Encode parameters. 6587
6588 65882008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
65892008-02-09 Eli Zaretskii <eliz@gnu.org> 6589
6590 6590 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
6591 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix. 6591 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
6592 6592
65932008-02-05 Juanma Barranquero <lekktu@gmail.com> 65932008-02-18 Jason Rumney <jasonr@gnu.org>
6594 6594
6595 * unexhp9k800.c (read_header): Replace `legal' with `valid'. 6595 * w32fns.c (Fw32_shell_execute): Encode parameters.
6596 6596
65972008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change) 65972008-02-09 Eli Zaretskii <eliz@gnu.org>
6598 6598
6599 * xterm.c (x_set_offset): Don't change the gravity if 6599 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
6600 CHANGE_GRAVITY is -1. 6600
6601 66012008-02-05 Juanma Barranquero <lekktu@gmail.com>
66022008-02-23 Chong Yidong <cyd@stupidchicken.com> 6602
6603 6603 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
6604 * fileio.c (auto_save_error_occurred): New var. 6604
6605 (auto_save_error): Set it. 66052008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
6606 (Fdo_auto_save): Don't overwrite the error message if an auto-save 6606
6607 error occurred. 6607 * xterm.c (x_set_offset): Don't change the gravity if
6608 6608 CHANGE_GRAVITY is -1.
66092008-02-23 Eli Zaretskii <eliz@gnu.org> 6609
6610 66102008-02-23 Chong Yidong <cyd@stupidchicken.com>
6611 * w32.c (globals_of_w32): Add initializations for 6611
6612 g_b_init_get_sid_sub_authority and 6612 * fileio.c (auto_save_error_occurred): New var.
6613 g_b_init_get_sid_sub_authority_count. 6613 (auto_save_error): Set it.
6614 6614 (Fdo_auto_save): Don't overwrite the error message if an auto-save
66152008-02-22 Stefan Monnier <monnier@iro.umontreal.ca> 6615 error occurred.
6616 6616
6617 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs. 66172008-02-23 Eli Zaretskii <eliz@gnu.org>
6618 (font_parse_xlfd): Use them for sanity check. 6618
6619 (Finternal_set_font_style_table): Make sure the table is bijective. 6619 * w32.c (globals_of_w32): Add initializations for
6620 6620 g_b_init_get_sid_sub_authority and
6621 Consolidate the image_cache to the terminal struct. 6621 g_b_init_get_sid_sub_authority_count.
6622 * termhooks.h (P_): Remove redundant def. 6622
6623 (struct terminal): New field `image_cache'. 66232008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
6624 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place 6624
6625 of FRAME_X_IMAGE_CACHE. 6625 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
6626 * xterm.h (struct x_display_info): Remove image_cache field. 6626 (font_parse_xlfd): Use them for sanity check.
6627 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. 6627 (Finternal_set_font_style_table): Make sure the table is bijective.
6628 * w32term.h (struct w32_display_info): Remove image_cache field. 6628
6629 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. 6629 Consolidate the image_cache to the terminal struct.
6630 * macterm.h (struct mac_display_info): Remove image_cache field. 6630 * termhooks.h (P_): Remove redundant def.
6631 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. 6631 (struct terminal): New field `image_cache'.
6632 * xterm.c (x_term_init): 6632 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
6633 * w32term.c (w32_term_init): 6633 of FRAME_X_IMAGE_CACHE.
6634 * macterm.c (mac_term_init): Set the image_cache in the terminal. 6634 * xterm.h (struct x_display_info): Remove image_cache field.
6635 * dispextern.h (clear_image_cache, forall_images_in_image_cache): 6635 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6636 Remove declarations. 6636 * w32term.h (struct w32_display_info): Remove image_cache field.
6637 (clear_image_caches, mark_image_cache): New declarations. 6637 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6638 * xfaces.c (clear_face_cache): 6638 * macterm.h (struct mac_display_info): Remove image_cache field.
6639 * xdisp.c (redisplay_internal): Use clear_image_caches. 6639 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6640 * image.c (clear_image_cache): Don't check that a frame is on 6640 * xterm.c (x_term_init):
6641 a window-system before checking if it shares the same cache. 6641 * w32term.c (w32_term_init):
6642 (clear_image_caches): New function. 6642 * macterm.c (mac_term_init): Set the image_cache in the terminal.
6643 (Fclear_image_cache): Use it. 6643 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
6644 (mark_image): Move from allo.c. 6644 Remove declarations.
6645 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache. 6645 (clear_image_caches, mark_image_cache): New declarations.
6646 * alloc.c (mark_image, mark_image_cache): Move to image.c. 6646 * xfaces.c (clear_face_cache):
6647 (mark_object): Don't call mark_image_cache for frames. 6647 * xdisp.c (redisplay_internal): Use clear_image_caches.
6648 (mark_terminals): Call mark_image_cache. 6648 * image.c (clear_image_cache): Don't check that a frame is on
6649 6649 a window-system before checking if it shares the same cache.
6650 * lisp.h (Fdelete_terminal): Declare. 6650 (clear_image_caches): New function.
6651 6651 (Fclear_image_cache): Use it.
6652 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID) 6652 (mark_image): Move from allo.c.
6653 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of 6653 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
6654 wrong_type_argument. 6654 * alloc.c (mark_image, mark_image_cache): Move to image.c.
6655 6655 (mark_object): Don't call mark_image_cache for frames.
66562008-02-22 Kenichi Handa <handa@ni.aist.go.jp> 6656 (mark_terminals): Call mark_image_cache.
6657 6657
6658 * Makefile.in (lisp): Remove devanagari.el, kannada.el, 6658 * lisp.h (Fdelete_terminal): Declare.
6659 malayalam.el, and tamil.el. Add sinhala.el. 6659
6660 6660 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
66612008-02-21 Stefan Monnier <monnier@iro.umontreal.ca> 6661 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
6662 6662 wrong_type_argument.
6663 * xterm.c (x_connection_closed): Consolidate identical tests. 6663
6664 (x_delete_terminal): Don't crash if called via x_connection_closed. 66642008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
6665 6665
66662008-02-21 Kenichi Handa <handa@ni.aist.go.jp> 6666 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
6667 6667 malayalam.el, and tamil.el. Add sinhala.el.
6668 * xdisp.c (decode_mode_spec): New arg string. 6668
6669 (display_mode_element): Adjust for the above change. 66692008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6670 6670
66712008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> 6671 * xterm.c (x_connection_closed): Consolidate identical tests.
6672 6672 (x_delete_terminal): Don't crash if called via x_connection_closed.
6673 * callint.c (Fcall_interactively): Use AREF. 6673
6674 66742008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
66752008-02-18 Stefan Monnier <monnier@iro.umontreal.ca> 6675
6676 6676 * xdisp.c (decode_mode_spec): New arg string.
6677 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs. 6677 (display_mode_element): Adjust for the above change.
6678 6678
66792008-02-18 Jan Djärv <jan.h.d@swipnet.se> 66792008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6680 6680
6681 * xfns.c (Fx_show_tip): Set string to " " if empty. 6681 * callint.c (Fcall_interactively): Use AREF.
6682 6682
66832008-02-17 Dan Nicolaescu <dann@ics.uci.edu> 66832008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6684 6684
6685 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive 6685 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
6686 with Qt. 6686
6687 66872008-02-18 Jan Djärv <jan.h.d@swipnet.se>
66882008-02-17 Kenichi Handa <handa@m17n.org> 6688
6689 6689 * xfns.c (Fx_show_tip): Set string to " " if empty.
6690 * ftfont.c (ftfont_shape): Return Lispy number. 6690
6691 66912008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
6692 * xfaces.c (prepare_face_for_display): Use display_info->font->fid 6692
6693 for GCs. 6693 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
6694 (Finternal_set_font_selection_order): Call font_update_sort_order 6694 with Qt.
6695 only when enable_font_backend is set. 6695
6696 (realize_x_face): Set face->font_info to that of default face only 66962008-02-17 Kenichi Handa <handa@m17n.org>
6697 when enable_font_backend is set. 6697
6698 6698 * ftfont.c (ftfont_shape): Return Lispy number.
6699 * xdisp.c (handle_composition_prop): Set it->c to the fist 6699
6700 character of the composed region. 6700 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
6701 (fill_composite_glyph_string): Set base_face->font_info to 6701 for GCs.
6702 s->font_info. Get a face for ascii from base_face->ascii_face. 6702 (Finternal_set_font_selection_order): Call font_update_sort_order
6703 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string 6703 only when enable_font_backend is set.
6704 with a face already decided. 6704 (realize_x_face): Set face->font_info to that of default face only
6705 (x_produce_glyphs): Be sure to set it->ascent and it->descent to 6705 when enable_font_backend is set.
6706 non-negative. 6706
6707 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING, 6707 * xdisp.c (handle_composition_prop): Set it->c to the fist
6708 call font_prepare_composition unconditionally. 6708 character of the composed region.
6709 6709 (fill_composite_glyph_string): Set base_face->font_info to
6710 * xfns.c (x_make_gc): Use the default font id of the frame for GCs. 6710 s->font_info. Get a face for ascii from base_face->ascii_face.
6711 6711 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
6712 * xterm.h (struct x_display_info): New member font. 6712 with a face already decided.
6713 6713 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
6714 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs. 6714 non-negative.
6715 (x_set_mouse_face_gc, x_new_font): Likewise. 6715 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
6716 (x_term_init): Setup display_info->font. 6716 call font_prepare_composition unconditionally.
6717 (x_delete_terminal): Free display_info->font. 6717
6718 6718 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
6719 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT. 6719
6720 6720 * xterm.h (struct x_display_info): New member font.
6721 * ftxfont.c (ftxfont_default_fid): Delete it. 6721
6722 (ftxfont_open): Set xfont->fid to 0. 6722 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
6723 (ftxfont_end_for_frame): Clear data specific to the frame and the 6723 (x_set_mouse_face_gc, x_new_font): Likewise.
6724 font-driver. 6724 (x_term_init): Setup display_info->font.
6725 6725 (x_delete_terminal): Free display_info->font.
6726 * xftfont.c (xftfont_default_fid): Delete it. 6726
6727 (xftfont_open): Set xfont->fid to 0. 6727 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
6728 6728
6729 * fontset.c (FONTSET_OBJLIST): New macro. 6729 * ftxfont.c (ftxfont_default_fid): Delete it.
6730 (fontset_find_font): Update font-object list of the fontset. 6730 (ftxfont_open): Set xfont->fid to 0.
6731 (free_realized_fontset): New function. 6731 (ftxfont_end_for_frame): Clear data specific to the frame and the
6732 (free_face_fontset): Call free_realized_fontset. 6732 font-driver.
6733 (Ffont_info): Call font_close_object only when enable_font_backend 6733
6734 is set. 6734 * xftfont.c (xftfont_default_fid): Delete it.
6735 6735 (xftfont_open): Set xfont->fid to 0.
6736 * font.c [HAVE_X_WINDOWS]: Include xterm.h. 6736
6737 [HAVE_NTGUI]: Include w32term.h. 6737 * fontset.c (FONTSET_OBJLIST): New macro.
6738 [MAC_OS]: Include macterm.ch. 6738 (fontset_find_font): Update font-object list of the fontset.
6739 (font_otf_ValueRecord): Use make_number. 6739 (free_realized_fontset): New function.
6740 (font_finish_cache): Fix handling of reference count. 6740 (free_face_fontset): Call free_realized_fontset.
6741 (font_clear_cache): Update num_fonts. 6741 (Ffont_info): Call font_close_object only when enable_font_backend
6742 (font_open_entity): Update smallest_char_width and 6742 is set.
6743 smallest_font_height of the frame. 6743
6744 (font_close_object): Update num_fonts. 6744 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
6745 (Fclear_font_cache): Fix finding the target cache data. 6745 [HAVE_NTGUI]: Include w32term.h.
6746 6746 [MAC_OS]: Include macterm.ch.
67472008-02-16 Glenn Morris <rgm@gnu.org> 6747 (font_otf_ValueRecord): Use make_number.
6748 6748 (font_finish_cache): Fix handling of reference count.
6749 * fontset.c (Finternal_char_font): Fix compilation warning. 6749 (font_clear_cache): Update num_fonts.
6750 6750 (font_open_entity): Update smallest_char_width and
67512008-02-16 Eli Zaretskii <eliz@gnu.org> 6751 smallest_font_height of the frame.
6752 6752 (font_close_object): Update num_fonts.
6753 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP 6753 (Fclear_font_cache): Fix finding the target cache data.
6754 instead of char arrays. Enlarge the size of array passed to 6754
6755 get_token_information. 67552008-02-16 Glenn Morris <rgm@gnu.org>
6756 6756
6757 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation 6757 * fontset.c (Finternal_char_font): Fix compilation warning.
6758 warnings. 6758
6759 67592008-02-16 Eli Zaretskii <eliz@gnu.org>
67602008-02-15 Dan Nicolaescu <dann@ics.uci.edu> 6760
6761 6761 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
6762 * .gdbinit: Don't set `args', it breaks gdb --args. 6762 instead of char arrays. Enlarge the size of array passed to
6763 6763 get_token_information.
67642008-02-14 Stefan Monnier <monnier@iro.umontreal.ca> 6764
6765 6765 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
6766 * fileio.c (Finsert_file_contents): Adjust offsets when replacing 6766 warnings.
6767 within a narrowed buffer. 6767
6768 67682008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
67692008-02-14 Kenichi Handa <handa@ni.aist.go.jp> 6769
6770 6770 * .gdbinit: Don't set `args', it breaks gdb --args.
6771 * coding.c (decode_coding_object, encode_coding_object): 6771
6772 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer. 67722008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
6773 6773
67742008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> 6774 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
6775 6775 within a narrowed buffer.
6776 * coding.c (coding_set_destination): Use BEG_BYTE rather than 6776
6777 hardcoding 1. 67772008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
6778 (detect_coding_system): 6778
6779 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text) 6779 * coding.c (decode_coding_object, encode_coding_object):
6780 (string_char_to_byte, string_byte_to_char, insert_from_gap): 6780 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6781 * insdel.c (insert_from_gap): 6781
6782 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos) 67822008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6783 (string_char_to_byte, string_byte_to_char, string_make_multibyte) 6783
6784 (string_to_multibyte): 6784 * coding.c (coding_set_destination): Use BEG_BYTE rather than
6785 * character.c (chars_in_text, multibyte_chars_in_text): 6785 hardcoding 1.
6786 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions. 6786 (detect_coding_system):
6787 6787 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
6788 * character.h (FETCH_STRING_CHAR_ADVANCE) 6788 (string_char_to_byte, string_byte_to_char, insert_from_gap):
6789 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE) 6789 * insdel.c (insert_from_gap):
6790 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF. 6790 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
6791 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1. 6791 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
6792 6792 (string_to_multibyte):
6793 * casefiddle.c (casify_region): Only call after-change and composition 6793 * character.c (chars_in_text, multibyte_chars_in_text):
6794 functions on the part of the region that was changed. 6794 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
6795 6795
6796 * keyboard.c (read_avail_input): 6796 * character.h (FETCH_STRING_CHAR_ADVANCE)
6797 * frame.c (Fdelete_frame): Call Fdelete_terminal. 6797 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
6798 6798 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
67992008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> 6799 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
6800 6800
6801 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables) 6801 * casefiddle.c (casify_region): Only call after-change and composition
6802 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list. 6802 functions on the part of the region that was changed.
6803 6803
68042008-02-11 Juanma Barranquero <lekktu@gmail.com> 6804 * keyboard.c (read_avail_input):
6805 6805 * frame.c (Fdelete_frame): Call Fdelete_terminal.
6806 * w32menu.c (push_submenu_start, push_submenu_end) 6806
6807 (push_left_right_boundary, push_menu_pane, push_menu_item): 68072008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6808 * keyboard.c (read_key_sequence): Don't pass args with side effects 6808
6809 to AREF, it fails when compiling with -DENABLE_CHECKING. 6809 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
6810 6810 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
68112008-02-11 Kenichi Handa <handa@ni.aist.go.jp> 6811
6812 68122008-02-11 Juanma Barranquero <lekktu@gmail.com>
6813 * Makefile.in (${lispsource}international/charprop.el): 6813
6814 Delete this target. 6814 * w32menu.c (push_submenu_start, push_submenu_end)
6815 6815 (push_left_right_boundary, push_menu_pane, push_menu_item):
6816 * search.c (boyer_moore): Fix incorrect synching of the trunk and 6816 * keyboard.c (read_key_sequence): Don't pass args with side effects
6817 emacs-unicode-2. 6817 to AREF, it fails when compiling with -DENABLE_CHECKING.
6818 6818
68192008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> 68192008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
6820 6820
6821 * terminal.c (Fdelete_terminal): Clean up the `force' path. 6821 * Makefile.in (${lispsource}international/charprop.el):
6822 6822 Delete this target.
68232008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> 6823
6824 6824 * search.c (boyer_moore): Fix incorrect synching of the trunk and
6825 * frame.c (Qnoelisp): New symbol. 6825 emacs-unicode-2.
6826 (syms_of_frame): Initialize it. 6826
6827 (Fdelete_frame): Use it to distinguish a mere `force' passed from some 68272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6828 harmless Elisp code, from a strong `force' from x_connection_closed. 6828
6829 * frame.h (Qnoelisp): Declare. 6829 * terminal.c (Fdelete_terminal): Clean up the `force' path.
6830 * xterm.c (x_connection_closed): Pass `noelisp'. 6830
6831 68312008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6832 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker) 6832
6833 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd) 6833 * frame.c (Qnoelisp): New symbol.
6834 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type 6834 (syms_of_frame): Initialize it.
6835 rather than `int' for the type of `type'. 6835 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
6836 6836 harmless Elisp code, from a strong `force' from x_connection_closed.
68372008-02-10 Dan Nicolaescu <dann@ics.uci.edu> 6837 * frame.h (Qnoelisp): Declare.
6838 6838 * xterm.c (x_connection_closed): Pass `noelisp'.
6839 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x. 6839
6840 6840 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
6841 * Makefile.in (GNUC): Remove support for gcc-1.x. 6841 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
6842 6842 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
68432008-02-10 Richard Stallman <rms@gnu.org> 6843 rather than `int' for the type of `type'.
6844 6844
6845 * lisp.h (ASET): Use AREF, not ASLOT. 68452008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
6846 6846
68472008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> 6847 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
6848 6848
6849 * lisp.h (ASET): Check bounds. 6849 * Makefile.in (GNUC): Remove support for gcc-1.x.
6850 6850
68512008-02-10 Glenn Morris <rgm@gnu.org> 68512008-02-10 Richard Stallman <rms@gnu.org>
6852 6852
6853 * buffer.c (mode-name): Doc fix. 6853 * lisp.h (ASET): Use AREF, not ASLOT.
6854 6854
68552008-02-09 Dan Nicolaescu <dann@ics.uci.edu> 68552008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6856 6856
6857 * Makefile.in: 6857 * lisp.h (ASET): Check bounds.
6858 * emacs.c: 6858
6859 * gmalloc.c: 68592008-02-10 Glenn Morris <rgm@gnu.org>
6860 * keyboard.c: 6860
6861 * lisp.h: 6861 * buffer.c (mode-name): Doc fix.
6862 * m/ibm370aix.h: 6862
6863 * process.c: 68632008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6864 * regex.c: 6864
6865 * s/hpux.h: 6865 * Makefile.in:
6866 * sysdep.c: 6866 * emacs.c:
6867 * sysselect.h: 6867 * gmalloc.c:
6868 * systty.h: 6868 * keyboard.c:
6869 * unexec.c: 6869 * lisp.h:
6870 * w32term.c: 6870 * m/ibm370aix.h:
6871 * xsmfns.c: 6871 * process.c:
6872 * xterm.c: Remove code that deals with obsolete variables. 6872 * regex.c:
6873 6873 * s/hpux.h:
6874 * s/msdos.h (DONT_NEED_ENVIRON): Don't define. 6874 * sysdep.c:
6875 6875 * sysselect.h:
6876 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test, 6876 * systty.h:
6877 nothing else needs it anymore. 6877 * unexec.c:
6878 6878 * w32term.c:
68792008-02-09 Eli Zaretskii <eliz@gnu.org> 6879 * xsmfns.c:
6880 6880 * xterm.c: Remove code that deals with obsolete variables.
6881 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table 6881
6882 instead of unibyte_char_to_multibyte. 6882 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
6883 6883
68842008-02-09 Dan Nicolaescu <dann@ics.uci.edu> 6884 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
6885 6885 nothing else needs it anymore.
6886 * s/gnu-linux.h: Remove commented out code. 6886
6887 68872008-02-09 Eli Zaretskii <eliz@gnu.org>
6888 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE. 6888
6889 6889 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
6890 * Makefile.in: Update what RMS says about using autoconf. 6890 instead of unibyte_char_to_multibyte.
6891 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable. 6891
6892 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1) 68922008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6893 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) 6893
6894 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. 6894 * s/gnu-linux.h: Remove commented out code.
6895 6895
68962008-02-08 Stefan Monnier <monnier@iro.umontreal.ca> 6896 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
6897 6897
6898 * keymap.c (Fkey_description): Move side effect outside of macro call. 6898 * Makefile.in: Update what RMS says about using autoconf.
6899 6899 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
6900 * xfaces.c (Finternal_make_lisp_face): 6900 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
6901 * keyboard.c (add_command_key, parse_menu_item): Use ASET. 6901 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
6902 6902 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
6903 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID. 6903
6904 (syms_of_fontset): Use ASET. 69042008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6905 6905
6906 * fns.c (concat): Move side effect outside of macro call. 6906 * keymap.c (Fkey_description): Move side effect outside of macro call.
6907 (hash_clear): Use ASET. 6907
6908 6908 * xfaces.c (Finternal_make_lisp_face):
69092008-02-08 Richard Stallman <rms@gnu.org> 6909 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
6910 6910
6911 * frame.c (Fdelete_frame): If FORCE, don't call hooks. 6911 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
6912 If FORCE, and frame has a surrogate minibuffer for another frame, 6912 (syms_of_fontset): Use ASET.
6913 delete the other frame first. 6913
6914 6914 * fns.c (concat): Move side effect outside of macro call.
69152008-02-07 Timo Savola <timo.savola@iki.fi> 6915 (hash_clear): Use ASET.
6916 6916
6917 * xterm.c (x_detect_focus_change): Handle embed client message. 69172008-02-08 Richard Stallman <rms@gnu.org>
6918 (handle_one_xevent): Ditto. 6918
6919 (handle_one_xevent): If embedded and we get a button press/release, 6919 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
6920 request focus. 6920 If FORCE, and frame has a surrogate minibuffer for another frame,
6921 (xembed_set_info, xembed_send_message): New functions. 6921 delete the other frame first.
6922 (x_make_frame_visible): Call xembed_set_info if embedded. 6922
6923 (x_make_frame_invisible): Call xembed_set_info if embedded. 69232008-02-07 Timo Savola <timo.savola@iki.fi>
6924 (x_term_init): Initialize Xatom_XEMBED. 6924
6925 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also. 6925 * xterm.c (x_detect_focus_change): Handle embed client message.
6926 (x_iconify_frame): Ditto. 6926 (handle_one_xevent): Ditto.
6927 6927 (handle_one_xevent): If embedded and we get a button press/release,
6928 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED. 6928 request focus.
6929 (enum xembed_info, enum xembed_message, enum xembed_focus) 6929 (xembed_set_info, xembed_send_message): New functions.
6930 (enum xembed_modifier, enum xembed_accelerator): New. 6930 (x_make_frame_visible): Call xembed_set_info if embedded.
6931 (xembed_set_info, xembed_send_message): Declare. 6931 (x_make_frame_invisible): Call xembed_set_info if embedded.
6932 (FRAME_X_EMBEDDED_P): New. 6932 (x_term_init): Initialize Xatom_XEMBED.
6933 6933 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
6934 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call 6934 (x_iconify_frame): Ditto.
6935 gtk_plug_new. 6935
6936 6936 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
6937 * xfns.c (Fx_create_frame): Do not override the explicitly set parent 6937 (enum xembed_info, enum xembed_message, enum xembed_focus)
6938 window ID of a frame. 6938 (enum xembed_modifier, enum xembed_accelerator): New.
6939 (x_window): Reparent frame if embedded. 6939 (xembed_set_info, xembed_send_message): Declare.
6940 (Fx_create_frame): Don't set border width if embedded. 6940 (FRAME_X_EMBEDDED_P): New.
6941 6941
6942 * emacs.c (USAGE3): Add --parent-id. 6942 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
6943 (standard_args): Ditto. 6943 gtk_plug_new.
6944 6944
69452008-02-07 Jan Djärv <jan.h.d@swipnet.se> 6945 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
6946 6946 window ID of a frame.
6947 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)". 6947 (x_window): Reparent frame if embedded.
6948 6948 (Fx_create_frame): Don't set border width if embedded.
69492008-02-07 Jim Meyering <meyering@redhat.com> 6949
6950 6950 * emacs.c (USAGE3): Add --parent-id.
6951 Use "do...while (0)", not "if (1)...else" in macro definitions. 6951 (standard_args): Ditto.
6952 The latter provokes a warning from gcc about the empty else, when 6952
6953 followed by ";". Also, without that trailing semicolon, it would 69532008-02-07 Jan Djärv <jan.h.d@swipnet.se>
6954 silently swallow up any following statement. 6954
6955 * syntax.h (SETUP_SYNTAX_TABLE) 6955 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
6956 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise. 6956
6957 * buffer.h (DECODE_POSITION): Likewise. 69572008-02-07 Jim Meyering <meyering@redhat.com>
6958 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. 6958
6959 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise. 6959 Use "do...while (0)", not "if (1)...else" in macro definitions.
6960 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise. 6960 The latter provokes a warning from gcc about the empty else, when
6961 (FETCH_CHAR_ADVANCE): Likewise. 6961 followed by ";". Also, without that trailing semicolon, it would
6962 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise. 6962 silently swallow up any following statement.
6963 6963 * syntax.h (SETUP_SYNTAX_TABLE)
69642008-02-07 Jim Meyering <meyering@redhat.com> 6964 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
6965 6965 * buffer.h (DECODE_POSITION): Likewise.
6966 * lread.c [lint]: Don't include <sys/inode.h>. 6966 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
6967 6967 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
69682008-02-07 Stefan Monnier <monnier@iro.umontreal.ca> 6968 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
6969 6969 (FETCH_CHAR_ADVANCE): Likewise.
6970 * xselect.c (x_handle_dnd_message): 6970 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
6971 * xmenu.c (digest_single_submenu, xmenu_show): 6971
6972 * xdisp.c (with_echo_area_buffer_unwind_data) 69722008-02-07 Jim Meyering <meyering@redhat.com>
6973 (format_mode_line_unwind_data, unwind_format_mode_line) 6973
6974 (display_menu_bar): 6974 * lread.c [lint]: Don't include <sys/inode.h>.
6975 * eval.c (Ffetch_bytecode): 6975
6976 * doc.c (store_function_docstring): 69762008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
6977 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code) 6977
6978 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map): 6978 * xselect.c (x_handle_dnd_message):
6979 * buffer.c (add_overlay_mod_hooklist): Use ASET. 6979 * xmenu.c (digest_single_submenu, xmenu_show):
6980 6980 * xdisp.c (with_echo_area_buffer_unwind_data)
69812008-02-07 Kenichi Handa <handa@m17n.org> 6981 (format_mode_line_unwind_data, unwind_format_mode_line)
6982 6982 (display_menu_bar):
6983 * ftxfont.c (ftxfont_open): Don't set 6983 * eval.c (Ffetch_bytecode):
6984 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. 6984 * doc.c (store_function_docstring):
6985 6985 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
6986 * ftfont.c (ftfont_open): Fix previous change. 6986 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
6987 6987 * buffer.c (add_overlay_mod_hooklist): Use ASET.
69882008-02-06 Jason Rumney <jasonr@gnu.org> 6988
6989 69892008-02-07 Kenichi Handa <handa@m17n.org>
6990 * w32font.c (w32font_text_extents): Fill in lbearing metric. 6990
6991 Use cached metrics for ASCII characters. 6991 * ftxfont.c (ftxfont_open): Don't set
6992 (w32font_open_internal): Don't set font's owning_frame. 6992 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
6993 Cache metrics for ASCII characters. 6993
6994 6994 * ftfont.c (ftfont_open): Fix previous change.
6995 * w32font.h (struct w32font_info): Add ascii_metrics. 6995
6996 Remove owning_frame. 69962008-02-06 Jason Rumney <jasonr@gnu.org>
6997 6997
69982008-02-06 Kenichi Handa <handa@ni.aist.go.jp> 6998 * w32font.c (w32font_text_extents): Fill in lbearing metric.
6999 6999 Use cached metrics for ASCII characters.
7000 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent 7000 (w32font_open_internal): Don't set font's owning_frame.
7001 to negative value. 7001 Cache metrics for ASCII characters.
7002 7002
7003 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info. 7003 * w32font.h (struct w32font_info): Add ascii_metrics.
7004 7004 Remove owning_frame.
7005 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width. 7005
7006 70062008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
7007 * charset.c (syms_of_charset): Set QCtest and Qeq. 7007
7008 7008 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
70092008-02-06 Stefan Monnier <monnier@iro.umontreal.ca> 7009 to negative value.
7010 7010
7011 * process.c (Fstart_process): 7011 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
7012 * callproc.c (Fcall_process): Handle the case where 7012
7013 Funhandled_file_name_directory returns nil. 7013 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
7014 7014
7015 * font.h (enum lgstring_indices, enum lglyph_indices): New enums. 7015 * charset.c (syms_of_charset): Set QCtest and Qeq.
7016 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros. 7016
7017 * font.c (check_gstring): Use them and AREF to access the vector before 70172008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
7018 we know it's really a gstring. 7018
7019 (Ffont_shape_text): Fix typo. 7019 * process.c (Fstart_process):
7020 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups. 7020 * callproc.c (Fcall_process): Handle the case where
7021 7021 Funhandled_file_name_directory returns nil.
7022 * composite.h (Fcompose_region_internal, Fcompose_string_internal): 7022
7023 Declare. 7023 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
7024 7024 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
7025 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement. 7025 * font.c (check_gstring): Use them and AREF to access the vector before
7026 7026 we know it's really a gstring.
70272008-02-05 Jason Rumney <jasonr@gnu.org> 7027 (Ffont_shape_text): Fix typo.
7028 7028 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
7029 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth. 7029
7030 Set smallest_font_height and smallest_char_width in display info. 7030 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
7031 7031 Declare.
70322008-02-05 Kenichi Handa <handa@ni.aist.go.jp> 7032
7033 7033 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
7034 * coding.c (decode_eol): Pay attention to coding->dst_multibyte. 7034
7035 70352008-02-05 Jason Rumney <jasonr@gnu.org>
70362008-02-05 Miles Bader <miles@gnu.org> 7036
7037 7037 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
7038 * xfaces.c (get_lface_attributes, merge_named_face) 7038 Set smallest_font_height and smallest_char_width in display info.
7039 (lookup_named_face, lookup_derived_face, realize_named_face): 7039
7040 Revert 2008-02-01 change by cyd@stupidchicken.com. 70402008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
7041 7041
70422008-02-04 Kenichi Handa <handa@ni.aist.go.jp> 7042 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
7043 7043
7044 * fontset.c (Ffontset_info): Handle the case of inhibitting the 70442008-02-05 Miles Bader <miles@gnu.org>
7045 fallback fonts. 7045
7046 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names. 7046 * xfaces.c (get_lface_attributes, merge_named_face)
7047 7047 (lookup_named_face, lookup_derived_face, realize_named_face):
70482008-02-04 Jason Rumney <jasonr@gnu.org> 7048 Revert 2008-02-01 change by cyd@stupidchicken.com.
7049 7049
7050 * w32font.c (w32font_open_internal): Use font_unparse_fcname to 70502008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
7051 set full_name. 7051
7052 (w32font_open_internal): Use xmalloc, xrealloc, xfree. 7052 * fontset.c (Ffontset_info): Handle the case of inhibitting the
7053 7053 fallback fonts.
70542008-02-03 Jason Rumney <jasonr@gnu.org> 7054 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
7055 7055
7056 * makefile.w32-in (OBJ1): Include font.o here. 70562008-02-04 Jason Rumney <jasonr@gnu.org>
7057 (FONTOBJ) [USE_FONTBACKEND]: Instead of here. 7057
7058 7058 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
70592008-02-02 Jason Rumney <jasonr@gnu.org> 7059 set full_name.
7060 7060 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
7061 * makefile.w32-in (temacs): Bump EMHEAP to 21. 7061
7062 70622008-02-03 Jason Rumney <jasonr@gnu.org>
70632008-02-01 Jason Rumney <jasonr@gnu.org> 7063
7064 7064 * makefile.w32-in (OBJ1): Include font.o here.
7065 * s/cygwin.h: Define VIRT_ADDR_VARIES. 7065 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
7066 7066
7067 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition. 70672008-02-02 Jason Rumney <jasonr@gnu.org>
7068 7068
70692008-02-01 Andreas Schwab <schwab@suse.de> 7069 * makefile.w32-in (temacs): Bump EMHEAP to 21.
7070 7070
7071 * Makefile.in (shortlisp, lisp): Update for rename of 70712008-02-01 Jason Rumney <jasonr@gnu.org>
7072 ../lisp/language/myanmar.el. 7072
7073 7073 * s/cygwin.h: Define VIRT_ADDR_VARIES.
70742008-02-01 Chong Yidong <cyd@stupidchicken.com> 7074
7075 7075 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
7076 * xfaces.c (get_lface_attributes): Delete function. 7076
7077 (merge_named_face, lookup_named_face, lookup_derived_face) 70772008-02-01 Andreas Schwab <schwab@suse.de>
7078 (realize_named_face): Call lface_from_face_name directly, and use 7078
7079 the fact that merge_face_vectors does not alter its FROM argument. 7079 * Makefile.in (shortlisp, lisp): Update for rename of
7080 7080 ../lisp/language/myanmar.el.
70812008-02-01 Jason Rumney <jasonr@gnu.org> 7081
7082 70822008-02-01 Chong Yidong <cyd@stupidchicken.com>
7083 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode 7083
7084 input in the default locale. Handle non-Unicode multibyte input. 7084 * xfaces.c (get_lface_attributes): Delete function.
7085 7085 (merge_named_face, lookup_named_face, lookup_derived_face)
70862008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7086 (realize_named_face): Call lface_from_face_name directly, and use
7087 7087 the fact that merge_face_vectors does not alter its FROM argument.
7088 * fontset.c (reorder_font_vector): Exclude nil elements from the 7088
7089 font group. Don't try multiple fonts. 70892008-02-01 Jason Rumney <jasonr@gnu.org>
7090 (fontset_font): Adjust for the above change. 7090
7091 (Finternal_char_font): Return nil if the found font doesn't 7091 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
7092 contain the character ch. 7092 input in the default locale. Handle non-Unicode multibyte input.
7093 7093
7094 * Makefile.in (lisp, shortlisp): Add cham.el. 70942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7095 7095
70962008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7096 * fontset.c (reorder_font_vector): Exclude nil elements from the
7097 7097 font group. Don't try multiple fonts.
7098 * font.h (FONTP): Make it return 1 also for a font-object. 7098 (fontset_font): Adjust for the above change.
7099 7099 (Finternal_char_font): Return nil if the found font doesn't
7100 * .gdbinit (xfontset): New function. 7100 contain the character ch.
7101 7101
7102 * font.c (font_find_for_lface): Check if the character C is 7102 * Makefile.in (lisp, shortlisp): Add cham.el.
7103 supported or not only for the first font. 7103
7104 71042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7105 * fontset.c (reorder_font_vector): Fix typo. 7105
7106 (fontset_find_font): Don't add a font-spec specifying a script. 7106 * font.h (FONTP): Make it return 1 also for a font-object.
7107 Use 0 (not Qt) for the indication of empty font-group. Change the 7107
7108 format of RFONT-DEF. Return Qt if no font in the font-group 7108 * .gdbinit (xfontset): New function.
7109 support the character. 7109
7110 (fontset_font): Adjust for the above change. If no font was 7110 * font.c (font_find_for_lface): Check if the character C is
7111 found the character, remember that. 7111 supported or not only for the first font.
7112 (face_for_char): Adjust for the change of RFONT-DEF. 7112
7113 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify 7113 * fontset.c (reorder_font_vector): Fix typo.
7114 no font for the target. 7114 (fontset_find_font): Don't add a font-spec specifying a script.
7115 (Finternal_char_font): Adjust for the change of RFONT-DEF. 7115 Use 0 (not Qt) for the indication of empty font-group. Change the
7116 7116 format of RFONT-DEF. Return Qt if no font in the font-group
71172008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7117 support the character.
7118 7118 (fontset_font): Adjust for the above change. If no font was
7119 * font.c (font_load_for_face): Handle the case that the font in 7119 found the character, remember that.
7120 face->lface is a string. 7120 (face_for_char): Adjust for the change of RFONT-DEF.
7121 7121 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
71222008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7122 no font for the target.
7123 7123 (Finternal_char_font): Adjust for the change of RFONT-DEF.
7124 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface. 7124
7125 71252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
71262008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7126
7127 7127 * font.c (font_load_for_face): Handle the case that the font in
7128 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: 7128 face->lface is a string.
7129 Fix previous change. If the frame is not on a window system, 7129
7130 signal an error. 71302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7131 7131
71322008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7132 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
7133 7133
7134 * coding.c (decode_coding_object, encode_coding_object): Adjust 71342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7135 marker positions after conversion. 7135
7136 7136 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
7137 * lisp.h (struct Lisp_Marker): New member need_adjustment. 7137 Fix previous change. If the frame is not on a window system,
7138 7138 signal an error.
71392008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7139
7140 71402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7141 * font.c (font_find_for_lface): Fix the handling of the return 7141
7142 value of font_has_char. 7142 * coding.c (decode_coding_object, encode_coding_object): Adjust
7143 (Ffont_shape_text): Fix previous change. 7143 marker positions after conversion.
7144 7144
7145 * fontset.c (FONTSET_REF_AND_RANGE): Delete it. 7145 * lisp.h (struct Lisp_Marker): New member need_adjustment.
7146 (fontset_ref_and_range): Delete it. 7146
7147 (fontset_find_font): Call char_table_ref_and_range instead of 71472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7148 FONTSET_REF_AND_RANGE. 7148
7149 (make_fontset): Don't setup font groups of Latin here. 7149 * font.c (font_find_for_lface): Fix the handling of the return
7150 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII. 7150 value of font_has_char.
7151 (new_fontset_from_font): Make the specified font the default for 7151 (Ffont_shape_text): Fix previous change.
7152 all Latin characters. 7152
7153 7153 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
71542008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7154 (fontset_ref_and_range): Delete it.
7155 7155 (fontset_find_font): Call char_table_ref_and_range instead of
7156 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame 7156 FONTSET_REF_AND_RANGE.
7157 is on a window system before accessing the fontset of the frame. 7157 (make_fontset): Don't setup font groups of Latin here.
7158 7158 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
71592008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7159 (new_fontset_from_font): Make the specified font the default for
7160 7160 all Latin characters.
7161 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el. 7161
7162 71622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7163 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only 7163
7164 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined. 7164 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
7165 7165 is on a window system before accessing the fontset of the frame.
7166 * font.c (Ffont_shape_text): If the font driver doesn't have a 7166
7167 shaper function, make zero-width glyphs to have at least one-pixel 71672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7168 width. Fix setting of `to' field of glyphs. 7168
7169 7169 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
71702008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7170
7171 7171 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
7172 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of 7172 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
7173 glyphs. 7173
7174 7174 * font.c (Ffont_shape_text): If the font driver doesn't have a
7175 * font.h (struct font_driver): Improve docstring of member `shape'. 7175 shaper function, make zero-width glyphs to have at least one-pixel
7176 7176 width. Fix setting of `to' field of glyphs.
71772008-02-01 Kenichi Handa <handa@m17n.org> 7177
7178 71782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7179 * composite.c (syms_of_composite): Fix docstring of 7179
7180 auto-composition-function. 7180 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
7181 7181 glyphs.
7182 * font.h (LGLYPH_SIZE): New macro. 7182
7183 7183 * font.h (struct font_driver): Improve docstring of member `shape'.
7184 * font.c (Ffont_fill_gstring): Stop filling when a character not 7184
7185 supported by the font is found. 71852008-02-01 Kenichi Handa <handa@m17n.org>
7186 (Ffont_shape_text): When a shape callback function returns nil, 7186
7187 try at most two more times with larger gstring. 7187 * composite.c (syms_of_composite): Fix docstring of
7188 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument. 7188 auto-composition-function.
7189 7189
7190 * xdisp.c (handle_auto_composed_prop): Change the argument to 7190 * font.h (LGLYPH_SIZE): New macro.
7191 auto-composition-function. 7191
7192 7192 * font.c (Ffont_fill_gstring): Stop filling when a character not
7193 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE. 7193 supported by the font is found.
7194 (ftfont_shape_by_flt): If an element of lgstring is nil, make a 7194 (Ffont_shape_text): When a shape callback function returns nil,
7195 Lispy glyph and store it in the lgstring. 7195 try at most two more times with larger gstring.
7196 7196 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
7197 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE. 7197
7198 7198 * xdisp.c (handle_auto_composed_prop): Change the argument to
7199 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE. 7199 auto-composition-function.
7200 7200
72012008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7201 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
7202 7202 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
7203 * font.c (Ffont_shape_text): Avoid unnecessary composition. 7203 Lispy glyph and store it in the lgstring.
7204 7204
7205 * fontset.c (Vfont_encoding_charset_alist): New variable. 7205 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
7206 (syms_of_fontset): DEFVAR it. 7206
7207 (reorder_font_vector, fontset_find_font): Optimize for the case of 7207 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
7208 no need of reordering. 7208
7209 (face_for_char): Map the charset property by 72092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7210 Vfont_encoding_charset_alist. 7210
7211 7211 * font.c (Ffont_shape_text): Avoid unnecessary composition.
72122008-02-01 Jason Rumney <jasonr@gnu.org> 7212
7213 7213 * fontset.c (Vfont_encoding_charset_alist): New variable.
7214 * w32font.c (logfonts_match): Don't check adstyle here. 7214 (syms_of_fontset): DEFVAR it.
7215 (font_matches_spec): Check here against physical font instead. 7215 (reorder_font_vector, fontset_find_font): Optimize for the case of
7216 (add_font_entity_to_list): Avoid some substitutions. 7216 no need of reordering.
7217 7217 (face_for_char): Map the charset property by
7218 * font.c (font_parse_fcname): Default weight and slant to normal. 7218 Vfont_encoding_charset_alist.
7219 (font_score): Prefer normal fonts if weight or slant unspecified. 7219
7220 (font_score) [WINDOWSNT]: Scale weight difference down to closer 72202008-02-01 Jason Rumney <jasonr@gnu.org>
7221 match freetype scores. 7221
7222 7222 * w32font.c (logfonts_match): Don't check adstyle here.
72232008-02-01 Jason Rumney <jasonr@gnu.org> 7223 (font_matches_spec): Check here against physical font instead.
7224 7224 (add_font_entity_to_list): Avoid some substitutions.
7225 * w32font.c (w32font_text_extents): Don't use the frame stored in the 7225
7226 font, as it may have been deleted. 7226 * font.c (font_parse_fcname): Default weight and slant to normal.
7227 (w32_enumfont_pattern_entity): Map generic family to adstyle using 7227 (font_score): Prefer normal fonts if weight or slant unspecified.
7228 most common hyphenless variation. 7228 (font_score) [WINDOWSNT]: Scale weight difference down to closer
7229 (logfonts_match): Check generic family. 7229 match freetype scores.
7230 (font_matches_spec): Don't check generic family here. 7230
7231 (fill_in_logfont): Set generic family based on adstyle. 72312008-02-01 Jason Rumney <jasonr@gnu.org>
7232 7232
7233 * w32font.h (w32font_get_cache): Update declaration. 7233 * w32font.c (w32font_text_extents): Don't use the frame stored in the
7234 7234 font, as it may have been deleted.
72352008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7235 (w32_enumfont_pattern_entity): Map generic family to adstyle using
7236 7236 most common hyphenless variation.
7237 * ftfont.c (ftfont_get_cache): Adjust the argument type. 7237 (logfonts_match): Check generic family.
7238 7238 (font_matches_spec): Don't check generic family here.
7239 * frame.c (x_set_font_backend): Don't call Fclear_font_cache. 7239 (fill_in_logfont): Set generic family based on adstyle.
7240 If none of the new drivers are available, call font_update_drivers 7240
7241 with the old drivers. 7241 * w32font.h (w32font_get_cache): Update declaration.
7242 7242
7243 * w32font.c (w32font_get_cache): Adjust the argument type. 72432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7244 7244
7245 * xfont.c (xfont_get_cache): Adjust the argument type. 7245 * ftfont.c (ftfont_get_cache): Adjust the argument type.
7246 7246
7247 * font.h (struct font_driver): Change argument type of get_cache. 7247 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
7248 7248 If none of the new drivers are available, call font_update_drivers
7249 * xftfont.c (xftfont_start_for_frame): Delete prototype. 7249 with the old drivers.
7250 7250
7251 * font.c (Ffont_get): Fix arguments to Fassoc. 7251 * w32font.c (w32font_get_cache): Adjust the argument type.
7252 (font_prepare_cache, font_finish_cache, font_get_cache): New functions. 7252
7253 (font_clear_cache): New function. 7253 * xfont.c (xfont_get_cache): Adjust the argument type.
7254 (font_list_entities, font_matching_entity): Use font_get_cache. 7254
7255 (font_update_drivers): Call font_clear_cache when finishing a driver. 7255 * font.h (struct font_driver): Change argument type of get_cache.
7256 7256
7257 * fontset.c (fontset_find_font): Fix previous change. 7257 * xftfont.c (xftfont_start_for_frame): Delete prototype.
7258 7258
72592008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7259 * font.c (Ffont_get): Fix arguments to Fassoc.
7260 7260 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
7261 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access 7261 (font_clear_cache): New function.
7262 dpyinfo->font_table. 7262 (font_list_entities, font_matching_entity): Use font_get_cache.
7263 (x_delete_display) [USE_FONT_BACKEND]: Likewise. 7263 (font_update_drivers): Call font_clear_cache when finishing a driver.
7264 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise. 7264
7265 7265 * fontset.c (fontset_find_font): Fix previous change.
7266 * font.c (font_at): Handle the case that the arg C is negative. 7266
7267 Handle the unibyte case. 72672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7268 (Ffont_at): Call font_at with the arg C -1. 7268
7269 7269 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
7270 * xdisp.c (handle_auto_composed_prop): Don't get a character at 7270 dpyinfo->font_table.
7271 the position here, and call font_at with the arg C -1. 7271 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
7272 Don't check the range of the existing composition at the point. 7272 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
7273 7273
72742008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7274 * font.c (font_at): Handle the case that the arg C is negative.
7275 7275 Handle the unibyte case.
7276 * fontset.c (fontset_add): New args charset_id and family. 7276 (Ffont_at): Call font_at with the arg C -1.
7277 Change caller. 7277
7278 (load_font_get_repertory, fontset_find_font): Assume that 7278 * xdisp.c (handle_auto_composed_prop): Don't get a character at
7279 font_spec is always a font-spec object. 7279 the position here, and call font_at with the arg C -1.
7280 (Fset_fontset_font): Always store a font-spec object in a fontset. 7280 Don't check the range of the existing composition at the point.
7281 7281
7282 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property 72822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7283 instead of get_property_and_range. 7283
7284 7284 * fontset.c (fontset_add): New args charset_id and family.
72852008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7285 Change caller.
7286 7286 (load_font_get_repertory, fontset_find_font): Assume that
7287 * xftfont.c (struct xftfont_info): Delete the member ft_face. 7287 font_spec is always a font-spec object.
7288 (xftfont_open): Don't keep locking face. 7288 (Fset_fontset_font): Always store a font-spec object in a fontset.
7289 (xftfont_close): Don't unlock face. 7289
7290 (xftfont_anchor_point, xftfont_shape): Lock and unlock face. 7290 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
7291 7291 instead of get_property_and_range.
7292 * fontset.c (fontset_find_font): Don't prefer a font of 7292
7293 supplementary charset. 72932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7294 7294
72952008-02-01 Kenichi Handa <handa@m17n.org> 7295 * xftfont.c (struct xftfont_info): Delete the member ft_face.
7296 7296 (xftfont_open): Don't keep locking face.
7297 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to 7297 (xftfont_close): Don't unlock face.
7298 script, langsys_tag to langsys, new member script. 7298 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
7299 (OTF_TAG_STR): Terminate by '\0'. 7299
7300 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the 7300 * fontset.c (fontset_find_font): Don't prefer a font of
7301 listing to the script specified in that property. Fix arg to 7301 supplementary charset.
7302 OTF_check_features. 7302
7303 73032008-02-01 Kenichi Handa <handa@m17n.org>
73042008-02-01 Jason Rumney <jasonr@gnu.org> 7304
7305 7305 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
7306 * w32font.h: New file. 7306 script, langsys_tag to langsys, new member script.
7307 7307 (OTF_TAG_STR): Terminate by '\0'.
7308 * w32font.c: Include it. 7308 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
7309 (struct w32font_info): Add owning_frame field. Move to w32font.h. 7309 listing to the script specified in that property. Fix arg to
7310 (w32font_open): Set owning_frame. 7310 OTF_check_features.
7311 (w32font_text_extents): Use owning_frame. 7311
7312 (struct font_callback_data): Add opentype_only field. 73122008-02-01 Jason Rumney <jasonr@gnu.org>
7313 (add_font_entity_to_list): Use it to filter fonts. 7313
7314 Don't check against full name. 7314 * w32font.h: New file.
7315 (w32font_list_internal): New function. 7315
7316 (w32font_list): Use it. 7316 * w32font.c: Include it.
7317 (w32font_match_internal): New function. 7317 (struct w32font_info): Add owning_frame field. Move to w32font.h.
7318 (w32font_match): Use it. 7318 (w32font_open): Set owning_frame.
7319 (w32font_open_internal): New function. 7319 (w32font_text_extents): Use owning_frame.
7320 (w32font_open): Use it. 7320 (struct font_callback_data): Add opentype_only field.
7321 (w32font_get_cache, w32font_close, w32font_has_char) 7321 (add_font_entity_to_list): Use it to filter fonts.
7322 (w32font_encode_char, w32font_text_extents, w32font_draw): 7322 Don't check against full name.
7323 Make non-static. 7323 (w32font_list_internal): New function.
7324 7324 (w32font_list): Use it.
7325 * makefile.w32-in (w32font.o): Depend on w32font.h. 7325 (w32font_match_internal): New function.
7326 7326 (w32font_match): Use it.
73272008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7327 (w32font_open_internal): New function.
7328 7328 (w32font_open): Use it.
7329 * charset.c (Fdefine_charset_internal): Record a supplementary 7329 (w32font_get_cache, w32font_close, w32font_has_char)
7330 charset at the tail of Vcharset_order_list. 7330 (w32font_encode_char, w32font_text_extents, w32font_draw):
7331 7331 Make non-static.
7332 * font.c (Ffont_shape_text): Fix the return value. 7332
7333 7333 * makefile.w32-in (w32font.o): Depend on w32font.h.
7334 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names. 7334
7335 73352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7336 * xdisp.c (handle_auto_composed_prop): Fix previous change. 7336
7337 7337 * charset.c (Fdefine_charset_internal): Record a supplementary
73382008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7338 charset at the tail of Vcharset_order_list.
7339 7339
7340 * ftfont.c (struct OpenTypeSpec): New struct. 7340 * font.c (Ffont_shape_text): Fix the return value.
7341 (OTF_SYM_TAG, OTF_TAG_STR): New macros. 7341
7342 (ftfont_get_open_type_spec): New function. 7342 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
7343 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property. 7343
7344 7344 * xdisp.c (handle_auto_composed_prop): Fix previous change.
7345 * lread.c (read1): Redo the previous change with checking Vpurify_flag. 7345
7346 73462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
73472008-02-01 Jason Rumney <jasonr@gnu.org> 7347
7348 7348 * ftfont.c (struct OpenTypeSpec): New struct.
7349 * w32font.c (add_font_entity_to_list): Compare only the beginning 7349 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
7350 of full name. 7350 (ftfont_get_open_type_spec): New function.
7351 7351 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
73522008-02-01 Kenichi Handa <handa@m17n.org> 7352
7353 7353 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
7354 * xdisp.c (handle_auto_composed_prop): Simplify the code. 7354
7355 Never return HANDLED_RECOMPUTE_PROPS. 73552008-02-01 Jason Rumney <jasonr@gnu.org>
7356 7356
73572008-02-01 Kenichi Handa <handa@m17n.org> 7357 * w32font.c (add_font_entity_to_list): Compare only the beginning
7358 7358 of full name.
7359 * font.c (font_gstring_produce): Delete it. 7359
7360 73602008-02-01 Kenichi Handa <handa@m17n.org>
7361 * composite.h (COMPOSITION_METHOD): 7361
7362 Handle COMPOSITION_WITH_GLYPH_STRING. 7362 * xdisp.c (handle_auto_composed_prop): Simplify the code.
7363 7363 Never return HANDLED_RECOMPUTE_PROPS.
73642008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7364
7365 73652008-02-01 Kenichi Handa <handa@m17n.org>
7366 * xfont.c (Qx): Delete. 7366
7367 (syms_of_xfont): Don't initialize Qx. 7367 * font.c (font_gstring_produce): Delete it.
7368 7368
7369 * composite.h (enum composition_method): 7369 * composite.h (COMPOSITION_METHOD):
7370 Define COMPOSITION_WITH_GLYPH_STRING unconditionally. 7370 Handle COMPOSITION_WITH_GLYPH_STRING.
7371 7371
73722008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 73722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7373 7373
7374 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally. 7374 * xfont.c (Qx): Delete.
7375 (choose_face_font): Accept new form of font-spec. 7375 (syms_of_xfont): Don't initialize Qx.
7376 7376
7377 * frame.h (font_driver_list): Declare it unconditionally. 7377 * composite.h (enum composition_method):
7378 (struct frame): Define members font_driver_list and font_data_list 7378 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
7379 unconditionally. 7379
7380 73802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7381 * fontset.c: Include "font.h" unconditionally. 7381
7382 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd. 7382 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
7383 (Fset_fontset_font): Accept a font-spec object. 7383 (choose_face_font): Accept new form of font-spec.
7384 7384
7385 * font.c (font_unparse_xlfd): If pixel_size is zero, make the 7385 * frame.h (font_driver_list): Declare it unconditionally.
7386 PIXEL_SIZE part a wild card. 7386 (struct frame): Define members font_driver_list and font_data_list
7387 7387 unconditionally.
7388 * dispextern.h (struct glyph_string): Define members clip and 7388
7389 num_clips unconditionally. 7389 * fontset.c: Include "font.h" unconditionally.
7390 (struct face): Define members font_info and extra unconditionally. 7390 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
7391 7391 (Fset_fontset_font): Accept a font-spec object.
7392 * ftfont.c (ftfont_open): Set members maybe_otf and otf of 7392
7393 ftfont_info only when HAVE_LIBOTF is defined. 7393 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
7394 7394 PIXEL_SIZE part a wild card.
73952008-02-01 Andreas Schwab <schwab@suse.de> 7395
7396 7396 * dispextern.h (struct glyph_string): Define members clip and
7397 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg 7397 num_clips unconditionally.
7398 and end. 7398 (struct face): Define members font_info and extra unconditionally.
7399 7399
74002008-02-01 Jason Rumney <jasonr@gnu.org> 7400 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
7401 7401 ftfont_info only when HAVE_LIBOTF is defined.
7402 * w32font.c (w32font_driver): Add new fields. 7402
7403 74032008-02-01 Andreas Schwab <schwab@suse.de>
74042008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7404
7405 7405 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
7406 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@. 7406 and end.
7407 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally. 7407
7408 (LIBES): Add @M17N_FLT_CFLAGS@. 74082008-02-01 Jason Rumney <jasonr@gnu.org>
7409 7409
7410 * composite.c (compose_text): Don't treat the new style 7410 * w32font.c (w32font_driver): Add new fields.
7411 composition specially. 7411
7412 74122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7413 * emacs.c (main): Call syms_of_font unconditionally. 7413
7414 7414 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
7415 * font.h (FONT_ENTITY_NOT_LOADABLE) 7415 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
7416 (FONT_ENTITY_SET_NOT_LOADABLE): New macros. 7416 (LIBES): Add @M17N_FLT_CFLAGS@.
7417 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring. 7417
7418 (struct font_driver): New member shape. 7418 * composite.c (compose_text): Don't treat the new style
7419 (font_registry_charsets): Extern it. 7419 composition specially.
7420 (font_find_for_lface, font_prepare_composition): Adjust prototype. 7420
7421 (font_otf_capability, font_drive_otf): Delete their externs. 7421 * emacs.c (main): Call syms_of_font unconditionally.
7422 7422
7423 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>. 7423 * font.h (FONT_ENTITY_NOT_LOADABLE)
7424 (font_charset_alist, font_registry_charsets): Move from xfont.c 7424 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
7425 and rename. 7425 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
7426 (font_prop_validate_otf): New function. 7426 (struct font_driver): New member shape.
7427 (font_property_table): Register it for QCotf. 7427 (font_registry_charsets): Extern it.
7428 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER) 7428 (font_find_for_lface, font_prepare_composition): Adjust prototype.
7429 (font_drive_otf): Delete. 7429 (font_otf_capability, font_drive_otf): Delete their externs.
7430 (font_prepare_composition): New arg F. Adjust for the change of 7430
7431 lispy gstring. 7431 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
7432 (font_find_for_lface): New arg C. 7432 (font_charset_alist, font_registry_charsets): Move from xfont.c
7433 (font_load_for_face): Adjust for the change of font_find_for_lface. 7433 and rename.
7434 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of 7434 (font_prop_validate_otf): New function.
7435 lispy gstring. 7435 (font_property_table): Register it for QCotf.
7436 (Ffont_shape_text): New function. 7436 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
7437 (Fopen_font): If the font size is not given, use 12-pixel. 7437 (font_drive_otf): Delete.
7438 (Ffont_at): New arg STRING. 7438 (font_prepare_composition): New arg F. Adjust for the change of
7439 (syms_of_font): Initalize font_charset_alist. 7439 lispy gstring.
7440 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont 7440 (font_find_for_lface): New arg C.
7441 conditionally. 7441 (font_load_for_face): Adjust for the change of font_find_for_lface.
7442 7442 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
7443 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple 7443 lispy gstring.
7444 fonts of the same font-spec. Change the format of RFONT-DEF. 7444 (Ffont_shape_text): New function.
7445 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font): 7445 (Fopen_font): If the font size is not given, use 12-pixel.
7446 Adjust for the change of RFONT-DEF. 7446 (Ffont_at): New arg STRING.
7447 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec. 7447 (syms_of_font): Initalize font_charset_alist.
7448 7448 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
7449 * ftfont.h: New file. 7449 conditionally.
7450 7450
7451 * ftfont.c: Don't include Freetype headers. Include "ftfont.h". 7451 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
7452 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. 7452 fonts of the same font-spec. Change the format of RFONT-DEF.
7453 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members. 7453 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
7454 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set 7454 Adjust for the change of RFONT-DEF.
7455 font_otf_capability and font_drive_otf, set ftfont_shape. 7455 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
7456 (ftfont_list): Adjust for the change of :otf property value. 7456
7457 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct. 7457 * ftfont.h: New file.
7458 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf) 7458
7459 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt) 7459 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
7460 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. 7460 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
7461 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro. 7461 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
7462 (otf_gstring, gstring, m17n_flt_initialized): New variables. 7462 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
7463 7463 font_otf_capability and font_drive_otf, set ftfont_shape.
7464 * w32term.c (x_draw_composite_glyph_string_foreground): 7464 (ftfont_list): Adjust for the change of :otf property value.
7465 Adjust for the change of lispy gstring. 7465 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
7466 7466 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
7467 * xdisp.c (handle_composition_prop): Adjust for the change of 7467 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
7468 lispy gstring. Call a function for auto-composition with the 7468 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
7469 third arg it->window. 7469 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
7470 (fill_composite_glyph_string): Adjust for the change of lispy string. 7470 (otf_gstring, gstring, m17n_flt_initialized): New variables.
7471 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl. 7471
7472 7472 * w32term.c (x_draw_composite_glyph_string_foreground):
7473 * xfaces.c (set_font_frame_param): Adjust for the change of 7473 Adjust for the change of lispy gstring.
7474 font_find_for_lface. 7474
7475 7475 * xdisp.c (handle_composition_prop): Adjust for the change of
7476 * xfont.c (x_font_charset_alist): Move to font.c and rename. 7476 lispy gstring. Call a function for auto-composition with the
7477 (xfont_registry_charsets): Likewise. Change caller. 7477 third arg it->window.
7478 (syms_of_xfont): Don't handle x_font_charset_alist. 7478 (fill_composite_glyph_string): Adjust for the change of lispy string.
7479 7479 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
7480 * xftfont.c: Include "ftfont.h". 7480
7481 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. 7481 * xfaces.c (set_font_frame_param): Adjust for the change of
7482 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members. 7482 font_find_for_lface.
7483 (xftfont_close) [HAVE_LIBOTF]: Close otf. 7483
7484 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. 7484 * xfont.c (x_font_charset_alist): Move to font.c and rename.
7485 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]: 7485 (xfont_registry_charsets): Likewise. Change caller.
7486 Set xftfont_driver.shape to xftfont_shape. 7486 (syms_of_xfont): Don't handle x_font_charset_alist.
7487 7487
7488 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for 7488 * xftfont.c: Include "ftfont.h".
7489 the change of lispy gstring. 7489 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
7490 7490 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
74912008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7491 (xftfont_close) [HAVE_LIBOTF]: Close otf.
7492 7492 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
7493 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error. 7493 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
7494 7494 Set xftfont_driver.shape to xftfont_shape.
74952008-02-01 Jason Rumney <jasonr@gnu.org> 7495
7496 7496 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7497 * w32font.c (w32font_draw): Fill background manually. 7497 the change of lispy gstring.
7498 7498
74992008-02-01 Jason Rumney <jasonr@gnu.org> 74992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7500 7500
7501 * font.c (Qfontp): Remove unused symbol. 7501 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
7502 (QCantialias): New symbol. 7502
7503 (syms_of_font): Define it. 75032008-02-01 Jason Rumney <jasonr@gnu.org>
7504 (font_property_table): Set a validator for QCantialias. 7504
7505 7505 * w32font.c (w32font_draw): Fill background manually.
7506 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY): 7506
7507 Define if not already. 75072008-02-01 Jason Rumney <jasonr@gnu.org>
7508 (QCfamily): Share with xfaces.c. 7508
7509 (Qstandard, Qsubpixel, Qnatural): New symbols. 7509 * font.c (Qfontp): Remove unused symbol.
7510 (syms_of_w32font): Define them. Don't define QCfamily here. 7510 (QCantialias): New symbol.
7511 (w32_antialias_type, lispy_antialias_type): New functions. 7511 (syms_of_font): Define it.
7512 (w32_enumfont_pattern_entity): New arg requested_font. 7512 (font_property_table): Set a validator for QCantialias.
7513 Set antialias parameter if non-default was requested. 7513
7514 (fill_in_logfont): Fill in lfQuality if :antialias specified. 7514 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
7515 7515 Define if not already.
75162008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7516 (QCfamily): Share with xfaces.c.
7517 7517 (Qstandard, Qsubpixel, Qnatural): New symbols.
7518 * lread.c (read1): Undo the previous change. 7518 (syms_of_w32font): Define them. Don't define QCfamily here.
7519 7519 (w32_antialias_type, lispy_antialias_type): New functions.
75202008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change) 7520 (w32_enumfont_pattern_entity): New arg requested_font.
7521 7521 Set antialias parameter if non-default was requested.
7522 * frame.c (Fdelete_frame): Call font_update_drivers only when 7522 (fill_in_logfont): Fill in lfQuality if :antialias specified.
7523 USE_FONT_BACKEND is defined. 7523
7524 75242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
75252008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7525
7526 7526 * lread.c (read1): Undo the previous change.
7527 * font.h (struct font_bitmap): New member bits_per_pixel. 7527
7528 (struct font_driver): New members start_for_frame and end_for_frame. 75282008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
7529 (struct font_data_list): New struct. 7529
7530 (font_put_frame_data, font_get_frame_data): Extern them. 7530 * frame.c (Fdelete_frame): Call font_update_drivers only when
7531 7531 USE_FONT_BACKEND is defined.
7532 * frame.h (struct frame): New member font_data_list. 7532
7533 75332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7534 * font.c (font_update_drivers): Call driver->start_for_frame and 7534
7535 driver->end_for_frame at proper timings. 7535 * font.h (struct font_bitmap): New member bits_per_pixel.
7536 (font_put_frame_data, font_get_frame_data): New functions. 7536 (struct font_driver): New members start_for_frame and end_for_frame.
7537 (Ffont_spec): Add usage in the docstring. 7537 (struct font_data_list): New struct.
7538 7538 (font_put_frame_data, font_get_frame_data): Extern them.
7539 * frame.c (make_frame): Initialize f->font_data_list to NULL. 7539
7540 (Fdelete_frame): Call font_update_drivers. 7540 * frame.h (struct frame): New member font_data_list.
7541 7541
7542 * xftfont.c (struct xftface_info): Delete the member xft_draw. 7542 * font.c (font_update_drivers): Call driver->start_for_frame and
7543 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change. 7543 driver->end_for_frame at proper timings.
7544 (xftfont_get_xft_draw): New function. 7544 (font_put_frame_data, font_get_frame_data): New functions.
7545 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw. 7545 (Ffont_spec): Add usage in the docstring.
7546 (xftfont_end_for_frame): New function. 7546
7547 (syms_of_xftfont): Set xftfont_driver.end_for_frame. 7547 * frame.c (make_frame): Initialize f->font_data_list to NULL.
7548 7548 (Fdelete_frame): Call font_update_drivers.
7549 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs. 7549
7550 Change argument. Cache GCs in the per-frame data. 7550 * xftfont.c (struct xftface_info): Delete the member xft_draw.
7551 (struct ftxfont_frame_data): New struct. 7551 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
7552 (ftxfont_draw_bitmap): New arg gc_fore and flush. 7552 (xftfont_get_xft_draw): New function.
7553 (ftxfont_prepare_face, ftxfont_done_face): Delete them. 7553 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
7554 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs. 7554 (xftfont_end_for_frame): New function.
7555 (ftxfont_end_for_frame): New function. 7555 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
7556 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame. 7556
7557 7557 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
7558 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel. 7558 Change argument. Cache GCs in the per-frame data.
7559 7559 (struct ftxfont_frame_data): New struct.
75602008-02-01 Kenichi Handa <handa@m17n.org> 7560 (ftxfont_draw_bitmap): New arg gc_fore and flush.
7561 7561 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
7562 * xselect.c (Vselection_coding_system) 7562 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
7563 (Vnext_selection_coding_system): Delete them. 7563 (ftxfont_end_for_frame): New function.
7564 (syms_of_xselect): Don't declare selection-coding-system and 7564 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
7565 next-selection-coding-system. They are declared in select.el. 7565
7566 7566 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
75672008-02-01 Jason Rumney <jasonr@gnu.org> 7567
7568 75682008-02-01 Kenichi Handa <handa@m17n.org>
7569 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already. 7569
7570 7570 * xselect.c (Vselection_coding_system)
7571 * w32fns.c: Include imm.h. 7571 (Vnext_selection_coding_system): Delete them.
7572 (get_composition_string_fn, get_ime_context_fn): New optional 7572 (syms_of_xselect): Don't declare selection-coding-system and
7573 system functions. 7573 next-selection-coding-system. They are declared in select.el.
7574 (globals_of_w32fns): Load them from imm32.dll. 7574
7575 (ignore_ime_char): New flag. 75752008-02-01 Jason Rumney <jasonr@gnu.org>
7576 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and 7576
7577 WM_IME_ENDCOMPOSITION messages. 7577 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
7578 7578
7579 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as 7579 * w32fns.c: Include imm.h.
7580 MULTIBYTE_CHAR_KEYSTROKE_EVENT. 7580 (get_composition_string_fn, get_ime_context_fn): New optional
7581 7581 system functions.
75822008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7582 (globals_of_w32fns): Load them from imm32.dll.
7583 7583 (ignore_ime_char): New flag.
7584 * lread.c (READCHAR): Call readchar with the 2nd arg NULL. 7584 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
7585 (READCHAR_REPORT_MULTIBYTE): New macro. 7585 WM_IME_ENDCOMPOSITION messages.
7586 (readchar): New 2nd arg MULTIBYTE. 7586
7587 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read. 7587 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
7588 Make symbol's name multibyte according to the multibyteness of the 7588 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
7589 source. 7589
7590 75902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
75912008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7591
7592 7592 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
7593 * xfaces.c (face_for_overlay_string): Call lookup_face with 7593 (READCHAR_REPORT_MULTIBYTE): New macro.
7594 correct arguments (fix of synching with the trunk). 7594 (readchar): New 2nd arg MULTIBYTE.
7595 7595 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
75962008-02-01 Kenichi Handa <handa@m17n.org> 7596 Make symbol's name multibyte according to the multibyteness of the
7597 7597 source.
7598 * font.c (font_prop_validate_symbol, font_prop_validate_style) 7598
7599 (font_prop_validate_non_neg, font_prop_validate_spacing): 75992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7600 Delete argument prop_index. 7600
7601 (font_property_table): Change arguments to validater. Change Callers. 7601 * xfaces.c (face_for_overlay_string): Call lookup_face with
7602 (font_lispy_object): Delete. 7602 correct arguments (fix of synching with the trunk).
7603 (font_at): Use font_find_object instead fo font_lispy_object. 7603
7604 76042008-02-01 Kenichi Handa <handa@m17n.org>
76052008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 7605
7606 7606 * font.c (font_prop_validate_symbol, font_prop_validate_style)
7607 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory 7607 (font_prop_validate_non_neg, font_prop_validate_spacing):
7608 and file names. 7608 Delete argument prop_index.
7609 7609 (font_property_table): Change arguments to validater. Change Callers.
76102008-02-01 Jason Rumney <jasonr@gnu.org> 7610 (font_lispy_object): Delete.
7611 7611 (font_at): Use font_find_object instead fo font_lispy_object.
7612 * w32font.c (add_font_name_to_list): Avoid vertical fonts. 7612
7613 (font_matches_spec): Remove debug output. 76132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7614 (add_font_entity_to_list): Avoid using substituted fonts. 7614
7615 7615 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
76162008-02-01 Jason Rumney <jasonr@gnu.org> 7616 and file names.
7617 7617
7618 * doc.c (Fsnarf_documentation): 76182008-02-01 Jason Rumney <jasonr@gnu.org>
7619 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change. 7619
7620 7620 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
76212008-02-01 Miles Bader <miles@gnu.org> 7621 (font_matches_spec): Remove debug output.
7622 7622 (add_font_entity_to_list): Avoid using substituted fonts.
7623 * dispextern.h (struct glyph_row): Only define "clip" field if 7623
7624 HAVE_WINDOW_SYSTEM is defined. 76242008-02-01 Jason Rumney <jasonr@gnu.org>
7625 7625
76262008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> 7626 * doc.c (Fsnarf_documentation):
7627 7627 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
7628 Fix up multi-tty merge. 7628
7629 76292008-02-01 Miles Bader <miles@gnu.org>
7630 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting 7630
7631 and indentation. 7631 * dispextern.h (struct glyph_row): Only define "clip" field if
7632 7632 HAVE_WINDOW_SYSTEM is defined.
7633 * xfaces.c (free_realized_face, clear_face_gcs): 7633
7634 Include font_done_for_face in the input_blocked section, just in case. 76342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
7635 7635
7636 * xdisp.c (decode_mode_spec): Use terminal-local coding systems. 7636 Fix up multi-tty merge.
7637 (get_char_face_and_encoding): Undo last change and remove the *other* 7637
7638 duplicate definition (i.e. keep the one that's better scoped and that 7638 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
7639 includes code for the font-backend). 7639 and indentation.
7640 7640
7641 * terminal.c (create_terminal): Default keyboard_coding to 7641 * xfaces.c (free_realized_face, clear_face_gcs):
7642 `no-conversion' and terminal_coding to `undecided'. 7642 Include font_done_for_face in the input_blocked section, just in case.
7643 7643
7644 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag. 7644 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
7645 7645 (get_char_face_and_encoding): Undo last change and remove the *other*
7646 * fontset.c (free_realized_fontsets): Check that the table entry does 7646 duplicate definition (i.e. keep the one that's better scoped and that
7647 contain a fontset before trying to compare it to `base'. 7647 includes code for the font-backend).
7648 7648
7649 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc, 7649 * terminal.c (create_terminal): Default keyboard_coding to
7650 syms_of_charset, and syms_of_coding earlier because init_window_once 7650 `no-conversion' and terminal_coding to `undecided'.
7651 now needs Vcoding_system_hash_table to be setup. 7651
7652 7652 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
7653 * coding.h (default_buffer_file_coding): Remove. 7653
7654 7654 * fontset.c (free_realized_fontsets): Check that the table entry does
7655 * coding.c (default_buffer_file_coding): Remove. 7655 contain a fontset before trying to compare it to `base'.
7656 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather 7656
7657 than ->symbol, and use the terminal-local coding system. 7657 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
7658 (syms_of_coding): Don't setup the coding-systems that are not 7658 syms_of_charset, and syms_of_coding earlier because init_window_once
7659 terminal-local. 7659 now needs Vcoding_system_hash_table to be setup.
7660 (Fdefine_coding_system_internal): Use XCAR/XCDR. 7660
7661 7661 * coding.h (default_buffer_file_coding): Remove.
7662 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table): 7662
7663 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore. 7663 * coding.c (default_buffer_file_coding): Remove.
7664 7664 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
7665 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now 7665 than ->symbol, and use the terminal-local coding system.
7666 in chartab.c and were re-added here by mistake. 7666 (syms_of_coding): Don't setup the coding-systems that are not
7667 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector. 7667 terminal-local.
7668 7668 (Fdefine_coding_system_internal): Use XCAR/XCDR.
7669 * doc.c (Fsnarf_documentation): 7669
7670 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from 7670 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
7671 src to etc. 7671 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
7672 7672
7673 * ChangeLog.10: Add mistakenly removed entry. 7673 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
7674 7674 in chartab.c and were re-added here by mistake.
76752008-02-01 Dan Nicolaescu <dann@ics.uci.edu> 7675 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
7676 7676
7677 * Makefile.in (fringe.o, minibuf.o): Fix dependencies. 7677 * doc.c (Fsnarf_documentation):
7678 7678 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
76792008-02-01 Miles Bader <miles@gnu.org> 7679 src to etc.
7680 7680
7681 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition. 7681 * ChangeLog.10: Add mistakenly removed entry.
7682 Add extra args to FACE_FOR_CHAR. 7682
7683 76832008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
76842008-02-01 Kenichi Handa <handa@m17n.org> 7684
7685 7685 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
7686 * keymap.c (where_is_internal_1): If key is a cons, store the copy 7686
7687 in sequence. 76872008-02-01 Miles Bader <miles@gnu.org>
7688 7688
7689 * chartab.c (map_sub_char_table, map_char_table): If the range 7689 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
7690 contains just one character, call the function with that character 7690 Add extra args to FACE_FOR_CHAR.
7691 even if the depth is not 3. 7691
7692 76922008-02-01 Kenichi Handa <handa@m17n.org>
76932008-02-01 Jason Rumney <jasonr@gnu.org> 7693
7694 7694 * keymap.c (where_is_internal_1): If key is a cons, store the copy
7695 * w32font.c (w32font_text_extents): Calculate metrics for the 7695 in sequence.
7696 whole string. 7696
7697 7697 * chartab.c (map_sub_char_table, map_char_table): If the range
76982008-02-01 Jason Rumney <jasonr@gnu.org> 7698 contains just one character, call the function with that character
7699 7699 even if the depth is not 3.
7700 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages. 7700
7701 77012008-02-01 Jason Rumney <jasonr@gnu.org>
77022008-02-01 Jason Rumney <jasonr@gnu.org> 7702
7703 7703 * w32font.c (w32font_text_extents): Calculate metrics for the
7704 * w32term.c (x_set_glyph_string_clipping): Use 7704 whole string.
7705 get_glyph_string_clip_rects. 7705
7706 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): 77062008-02-01 Jason Rumney <jasonr@gnu.org>
7707 Adjust for the change of struct glyph_string. 7707
7708 7708 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
7709 * w32font.c (w32font_draw): Do clipping here. 7709
7710 77102008-02-01 Jason Rumney <jasonr@gnu.org>
77112008-02-01 Kenichi Handa <handa@m17n.org> 7711
7712 7712 * w32term.c (x_set_glyph_string_clipping): Use
7713 * xftfont.c (xftfont_draw): Adjust for the change of struct 7713 get_glyph_string_clip_rects.
7714 glyph_string. 7714 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7715 7715 Adjust for the change of struct glyph_string.
7716 * xterm.c (x_set_glyph_string_clipping): Use 7716
7717 get_glyph_string_clip_rects. 7717 * w32font.c (w32font_draw): Do clipping here.
7718 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): 7718
7719 Adjust for the change of struct glyph_string. 77192008-02-01 Kenichi Handa <handa@m17n.org>
7720 7720
7721 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to 7721 * xftfont.c (xftfont_draw): Adjust for the change of struct
7722 the resulting clip(s}. 7722 glyph_string.
7723 (expose_overlaps): Add arg r. Change callers. Set it to 7723
7724 row->clip temporarily. 7724 * xterm.c (x_set_glyph_string_clipping): Use
7725 (expose_window): Redraw rows overlapping the exposed area. 7725 get_glyph_string_clip_rects.
7726 7726 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7727 * dispextern.h (struct glyph_row): New member clip. 7727 Adjust for the change of struct glyph_string.
7728 (struct glyph_string): Delete members clip_x, clip_y, clip_width, 7728
7729 clip_height, new member clip, and num_clips. 7729 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
7730 7730 the resulting clip(s}.
77312008-02-01 Kenichi Handa <handa@m17n.org> 7731 (expose_overlaps): Add arg r. Change callers. Set it to
7732 7732 row->clip temporarily.
7733 * data.c (Fchar_or_string_p): Fix docstring. 7733 (expose_window): Redraw rows overlapping the exposed area.
7734 7734
77352008-02-01 Kenichi Handa <handa@m17n.org> 7735 * dispextern.h (struct glyph_row): New member clip.
7736 7736 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
7737 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info, 7737 clip_height, new member clip, and num_clips.
7738 create a temporary XftDraw object. 7738
7739 77392008-02-01 Kenichi Handa <handa@m17n.org>
77402008-02-01 Kenichi Handa <handa@m17n.org> 7740
7741 7741 * data.c (Fchar_or_string_p): Fix docstring.
7742 * font.c (Ffontp): Fix docstring. 7742
7743 77432008-02-01 Kenichi Handa <handa@m17n.org>
7744 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a 7744
7745 strong evidence of ISO-2022. 7745 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
7746 7746 create a temporary XftDraw object.
77472008-02-01 Kenichi Handa <handa@m17n.org> 7747
7748 77482008-02-01 Kenichi Handa <handa@m17n.org>
7749 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not 7749
7750 SYNTAX_ENTRY_FOLLOW_PARENT. 7750 * font.c (Ffontp): Fix docstring.
7751 7751
77522008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> 7752 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
7753 7753 strong evidence of ISO-2022.
7754 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change 7754
7755 its type. 77552008-02-01 Kenichi Handa <handa@m17n.org>
7756 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): 7756
7757 Update to the new type of weak_hash_tables and next_weak. 7757 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
7758 7758 SYNTAX_ENTRY_FOLLOW_PARENT.
7759 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to 7759
7760 a plain C pointer to Lisp_Hash_Table. 77602008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
7761 7761
7762 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP) 7762 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
7763 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP) 7763 its type.
7764 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP) 7764 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
7765 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP) 7765 Update to the new type of weak_hash_tables and next_weak.
7766 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP) 7766
7767 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP) 7767 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
7768 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP) 7768 a plain C pointer to Lisp_Hash_Table.
7769 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP) 7769
7770 (GC_EQ): Remove since they've been identical to their non-GC_ 7770 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
7771 alter-egos ever since the markbit was eradicated. 7771 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
7772 7772 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
7773 * alloc.c: 7773 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
7774 * buffer.c: 7774 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
7775 * buffer.h: 7775 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
7776 * data.c: 7776 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
7777 * fileio.c: 7777 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
7778 * filelock.c: 7778 (GC_EQ): Remove since they've been identical to their non-GC_
7779 * fns.c: 7779 alter-egos ever since the markbit was eradicated.
7780 * frame.h: 7780
7781 * lisp.h: 7781 * alloc.c:
7782 * macterm.c: 7782 * buffer.c:
7783 * print.c: 7783 * buffer.h:
7784 * process.c: 7784 * data.c:
7785 * w32fns.c: 7785 * fileio.c:
7786 * w32menu.c: 7786 * filelock.c:
7787 * w32term.c: 7787 * fns.c:
7788 * xfns.c: 7788 * frame.h:
7789 * xmenu.c: 7789 * lisp.h:
7790 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions. 7790 * macterm.c:
7791 7791 * print.c:
77922008-02-01 Kenichi Handa <handa@m17n.org> 7792 * process.c:
7793 7793 * w32fns.c:
7794 * chartab.c (map_sub_char_table): Make it work for the top-level 7794 * w32menu.c:
7795 char-table. Fix handling of parent char-table. 7795 * w32term.c:
7796 (map_char_table): Adjust for the above change. 7796 * xfns.c:
7797 7797 * xmenu.c:
77982008-02-01 Jason Rumney <jasonr@gnu.org> 7798 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
7799 7799
7800 * w32font.c (Qgdi): Rename from Qw32. 78002008-02-01 Kenichi Handa <handa@m17n.org>
7801 7801
78022008-02-01 Jason Rumney <jasonr@gnu.org> 7802 * chartab.c (map_sub_char_table): Make it work for the top-level
7803 7803 char-table. Fix handling of parent char-table.
7804 * w32bdf.c (get_quoted_string): Make function static. 7804 (map_char_table): Adjust for the above change.
7805 7805
78062008-02-01 Kenichi Handa <handa@m17n.org> 78062008-02-01 Jason Rumney <jasonr@gnu.org>
7807 7807
7808 * xftfont.c (xftfont_open): If one of font's ASCII glyph has 7808 * w32font.c (Qgdi): Rename from Qw32.
7809 bigger ascent and descent than those of the font, use them as 7809
7810 font's ascent and descent. 78102008-02-01 Jason Rumney <jasonr@gnu.org>
7811 7811
78122008-02-01 Kenichi Handa <handa@m17n.org> 7812 * w32bdf.c (get_quoted_string): Make function static.
7813 7813
7814 * Makefile.in (${lispsource}international/charprop.el): Move this 78142008-02-01 Kenichi Handa <handa@m17n.org>
7815 target within "#ifdef HAVE_UNIDATA" and "#endif". 7815
7816 7816 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
78172008-02-01 Kenichi Handa <handa@m17n.org> 7817 bigger ascent and descent than those of the font, use them as
7818 7818 font's ascent and descent.
7819 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el. 7819
7820 (shortlisp): Add ../lisp/language/tai-viet.el. 78202008-02-01 Kenichi Handa <handa@m17n.org>
7821 7821
78222008-02-01 Ulrich Mueller <ulm@gentoo.org> 7822 * Makefile.in (${lispsource}international/charprop.el): Move this
7823 7823 target within "#ifdef HAVE_UNIDATA" and "#endif".
7824 * Makefile.in (${lispsource}international/charprop.el): Depend on 7824
7825 temacs${EXEEXT}. 78252008-02-01 Kenichi Handa <handa@m17n.org>
7826 7826
78272008-02-01 Jason Rumney <jasonr@gnu.org> 7827 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
7828 7828 (shortlisp): Add ../lisp/language/tai-viet.el.
7829 * w32font.c (w32font_close): Delete the GDI font object. 7829
7830 78302008-02-01 Ulrich Mueller <ulm@gentoo.org>
7831 * w32menu.c: Include character.h. 7831
7832 7832 * Makefile.in (${lispsource}international/charprop.el): Depend on
7833 * w32proc.c: Likewise. 7833 temacs${EXEEXT}.
7834 7834
7835 * w32select.c: Likewise. 78352008-02-01 Jason Rumney <jasonr@gnu.org>
7836 7836
7837 * makefile.w32-in (w32proc.o): Depend on character.h. 7837 * w32font.c (w32font_close): Delete the GDI font object.
7838 7838
78392008-02-01 Jason Rumney <jasonr@gnu.org> 7839 * w32menu.c: Include character.h.
7840 7840
7841 * w32fns.c (syms_of_w32fns): Use DEFSYM macro. 7841 * w32proc.c: Likewise.
7842 7842
7843 * w32menu.c (syms_of_w32menu): Likewise. 7843 * w32select.c: Likewise.
7844 7844
7845 * w32proc.c (syms_of_ntproc): Likewise. 7845 * makefile.w32-in (w32proc.o): Depend on character.h.
7846 7846
7847 * w32select.c (syms_of_w32select): Likewise. 78472008-02-01 Jason Rumney <jasonr@gnu.org>
7848 7848
7849 * w32term.c (syms_of_w32term): Likewise. 7849 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
7850 7850
78512008-02-01 Jason Rumney <jasonr@gnu.org> 7851 * w32menu.c (syms_of_w32menu): Likewise.
7852 7852
7853 * w32font.c (w32font_draw): Delete brush after using it. 7853 * w32proc.c (syms_of_ntproc): Likewise.
7854 7854
78552008-02-01 Jason Rumney <jasonr@gnu.org> 7855 * w32select.c (syms_of_w32select): Likewise.
7856 7856
7857 * w32font.c (w32font_open): Don't set font_idx. 7857 * w32term.c (syms_of_w32term): Likewise.
7858 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting 7858
7859 to font settings. 78592008-02-01 Jason Rumney <jasonr@gnu.org>
7860 (w32font_draw): Fill background explicitly. 7860
7861 7861 * w32font.c (w32font_draw): Delete brush after using it.
78622008-02-01 Jason Rumney <jasonr@gnu.org> 7862
7863 78632008-02-01 Jason Rumney <jasonr@gnu.org>
7864 * w32term.c (w32_initialize): Don't call w32font_initialize. 7864
7865 7865 * w32font.c (w32font_open): Don't set font_idx.
7866 * w32font.c (w32font_info): Remove subranges. 7866 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
7867 (QCsubranges, Qmodern, Qswiss, Qroman): Remove. 7867 to font settings.
7868 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif) 7868 (w32font_draw): Fill background explicitly.
7869 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian) 7869
7870 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali) 78702008-02-01 Jason Rumney <jasonr@gnu.org>
7871 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada) 7871
7872 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian) 7872 * w32term.c (w32_initialize): Don't call w32font_initialize.
7873 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham) 7873
7874 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan) 7874 * w32font.c (w32font_info): Remove subranges.
7875 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun) 7875 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
7876 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical): 7876 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
7877 New symbols. 7877 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
7878 (font_callback_data): New struct. 7878 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
7879 (w32font_list, w32font_match): Use it. 7879 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
7880 (w32font_open): Don't populate subranges. 7880 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
7881 (w32font_has_char): Use script Lisp symbols, not subrange bitmask. 7881 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
7882 (w32font_encode_char): Always return unicode code-point as-is. 7882 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
7883 (w32font_text_extents): Supply a transformation matrix to 7883 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
7884 GetGlyphOutline. Never look up by glyph index. Avoid looping 7884 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
7885 twice. Use unicode version of GetTexExtentPoint32 instead of 7885 New symbols.
7886 glyph index version. 7886 (font_callback_data): New struct.
7887 (set_fonts_frame): Remove. 7887 (w32font_list, w32font_match): Use it.
7888 (w32_enumfont_pattern_entity): Add frame parameter, use it to 7888 (w32font_open): Don't populate subranges.
7889 set frame parameter. Use backward compatible fake foundries. 7889 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
7890 Save generic family in extra slot under QCfamily. Make width slot 7890 (w32font_encode_char): Always return unicode code-point as-is.
7891 constant. Save QCspacing value. Save list of scripts instead of 7891 (w32font_text_extents): Supply a transformation matrix to
7892 binary subranges. 7892 GetGlyphOutline. Never look up by glyph index. Avoid looping
7893 (w32_generic_family, logfonts_match, font_matches_spec): New functions. 7893 twice. Use unicode version of GetTexExtentPoint32 instead of
7894 (add_font_entity_to_list): Use font_callback_data struct. Filter 7894 glyph index version.
7895 unwanted fonts. 7895 (set_fonts_frame): Remove.
7896 (add_one_font_entity_to_list): Use font_callback_data struct. 7896 (w32_enumfont_pattern_entity): Add frame parameter, use it to
7897 (w32_registry): Default to iso10646_1. 7897 set frame parameter. Use backward compatible fake foundries.
7898 (fill_in_logfont): Use dpi from extra slot. Don't bother with 7898 Save generic family in extra slot under QCfamily. Make width slot
7899 string font registries. Don't fill in font name if it is a generic 7899 constant. Save QCspacing value. Save list of scripts instead of
7900 family name, fill family instead. Use spacing, family and script 7900 binary subranges.
7901 extra info to fill pitch, family and charset fields. 7901 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
7902 (list_all_matching_fonts): Use font_callback_data struct. 7902 (add_font_entity_to_list): Use font_callback_data struct. Filter
7903 (unicode_range_for_char): Remove. 7903 unwanted fonts.
7904 (font_supported_scripts): New function. 7904 (add_one_font_entity_to_list): Use font_callback_data struct.
7905 (w32font_initialize): Remove. 7905 (w32_registry): Default to iso10646_1.
7906 (syms_of_w32font): Update which symbols are defined. 7906 (fill_in_logfont): Use dpi from extra slot. Don't bother with
7907 7907 string font registries. Don't fill in font name if it is a generic
79082008-02-01 Jason Rumney <jasonr@gnu.org> 7908 family name, fill family instead. Use spacing, family and script
7909 7909 extra info to fill pitch, family and charset fields.
7910 * font.c (font_pixel_size): Reverse assq_no_quit args. 7910 (list_all_matching_fonts): Use font_callback_data struct.
7911 7911 (unicode_range_for_char): Remove.
7912 * w32term.h (FONT_WIDTH): Report max width, not average. 7912 (font_supported_scripts): New function.
7913 (FONT_MAX_WIDTH): Remove. 7913 (w32font_initialize): Remove.
7914 (FONT_AVG_WIDTH): New macro. 7914 (syms_of_w32font): Update which symbols are defined.
7915 7915
7916 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only 79162008-02-01 Jason Rumney <jasonr@gnu.org>
7917 redefinition of FONT_WIDTH. 7917
7918 7918 * font.c (font_pixel_size): Reverse assq_no_quit args.
7919 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH. 7919
7920 (w32_cache_char_metrics): Use FONT_WIDTH. 7920 * w32term.h (FONT_WIDTH): Report max width, not average.
7921 7921 (FONT_MAX_WIDTH): Remove.
7922 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH. 7922 (FONT_AVG_WIDTH): New macro.
7923 7923
79242008-02-01 Jason Rumney <jasonr@gnu.org> 7924 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
7925 7925 redefinition of FONT_WIDTH.
7926 * w32font.c (w32font_open): Make lfHeight negative. 7926
7927 7927 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
7928 * w32fns.c (x_default_font_parameter): Use new style font name. 7928 (w32_cache_char_metrics): Use FONT_WIDTH.
7929 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy. 7929
7930 7930 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
79312008-02-01 Jason Rumney <jasonr@gnu.org> 7931
7932 79322008-02-01 Jason Rumney <jasonr@gnu.org>
7933 * w32font.c (QCsubranges): New symbol. 7933
7934 (w32font_open, w32font_has_char): Get subranges from subproperty 7934 * w32font.c (w32font_open): Make lfHeight negative.
7935 of extra. 7935
7936 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra. 7936 * w32fns.c (x_default_font_parameter): Use new style font name.
7937 (syms_of_w32font): Define :subranges symbol. 7937 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
7938 7938
7939 * font.c (font_put_extra): Expose externally. 79392008-02-01 Jason Rumney <jasonr@gnu.org>
7940 7940
7941 * font.h (font_put_extra): Move declaration from font.c. 7941 * w32font.c (QCsubranges): New symbol.
7942 7942 (w32font_open, w32font_has_char): Get subranges from subproperty
7943 * font.c (Ffont_get): Use font driver to determine otf capability. 7943 of extra.
7944 (adjust_anchor): Check if driver defines anchor_point before using. 7944 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
7945 7945 (syms_of_w32font): Define :subranges symbol.
7946 * w32font.c (w32font_open): Handle size, height and pixel_size better. 7946
7947 (w32font_draw): Use options. 7947 * font.c (font_put_extra): Expose externally.
7948 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts. 7948
7949 Fix detection of truetype fonts. 7949 * font.h (font_put_extra): Move declaration from font.c.
7950 (registry_to_w32_charset): Handle charsets other than iso8859-1 7950
7951 expressed as lisp symbols. 7951 * font.c (Ffont_get): Use font driver to determine otf capability.
7952 (w32_registry): Express charset as lisp symbol. 7952 (adjust_anchor): Check if driver defines anchor_point before using.
7953 (fill_in_logfont): Reverse pixel and point height logic. 7953
7954 Don't set width here. Set quality to default. 7954 * w32font.c (w32font_open): Handle size, height and pixel_size better.
7955 7955 (w32font_draw): Use options.
7956 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts. 7956 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
7957 (x_to_w32_font): Fill in lfPitchAndFamily correctly. 7957 Fix detection of truetype fonts.
7958 7958 (registry_to_w32_charset): Handle charsets other than iso8859-1
7959 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: 7959 expressed as lisp symbols.
7960 Remove redundant loop and allocation. 7960 (w32_registry): Express charset as lisp symbol.
7961 7961 (fill_in_logfont): Reverse pixel and point height logic.
7962 * makefile.w32-in (font.o, w32font.o): New objects. 7962 Don't set width here. Set quality to default.
7963 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h. 7963
7964 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND. 7964 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
7965 7965 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
7966 * xdisp.c (fill_composite_glyph_string): Make the first arg to 7966
7967 STORE_XCHARB a valid l-value. 7967 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7968 7968 Remove redundant loop and allocation.
7969 * w32term.c (w32_native_per_char_metric): Swap width and rbearing 7969
7970 calculations for non-Truetype fonts. 7970 * makefile.w32-in (font.o, w32font.o): New objects.
7971 (x_draw_glyph_string): Sync with xterm.c. 7971 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
7972 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: 7972 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
7973 Remove redundant code. 7973
7974 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize. 7974 * xdisp.c (fill_composite_glyph_string): Make the first arg to
7975 7975 STORE_XCHARB a valid l-value.
7976 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member. 7976
7977 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h. 7977 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
7978 7978 calculations for non-Truetype fonts.
7979 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c. 7979 (x_draw_glyph_string): Sync with xterm.c.
7980 (x_to_w32_charset, w32_to_x_charset): Expose externally. 7980 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7981 7981 Remove redundant code.
7982 * w32font.c: New file for w32 font backend. 7982 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
7983 7983
79842008-02-01 Kenichi Handa <handa@m17n.org> 7984 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
7985 7985 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
7986 * term.c: Don't include "buffer.h" twice. 7986
7987 7987 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
79882008-02-01 Kenichi Handa <handa@m17n.org> 7988 (x_to_w32_charset, w32_to_x_charset): Expose externally.
7989 7989
7990 * character.c (Funibyte_string): New function. 7990 * w32font.c: New file for w32 font backend.
7991 (syms_of_character): Defsubr it. 7991
7992 79922008-02-01 Kenichi Handa <handa@m17n.org>
79932008-02-01 Jason Rumney <jasonr@gnu.org> 7993
7994 7994 * term.c: Don't include "buffer.h" twice.
7995 * w32term.c [USE_FONT_BACKEND]: 7995
7996 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc) 79962008-02-01 Kenichi Handa <handa@m17n.org>
7997 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly) 7997
7998 (x_draw_glyph_string, x_draw_glyph_string_foreground) 7998 * character.c (Funibyte_string): New function.
7999 (x_draw_composite_glyph_string_foreground, x_new_fontset2) 7999 (syms_of_character): Defsubr it.
8000 (x_free_frame_resources): Sync with xterm.c. 8000
8001 80012008-02-01 Jason Rumney <jasonr@gnu.org>
80022008-02-01 Andreas Schwab <schwab@suse.de> 8002
8003 8003 * w32term.c [USE_FONT_BACKEND]:
8004 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate 8004 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
8005 char-table size. 8005 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
8006 8006 (x_draw_glyph_string, x_draw_glyph_string_foreground)
80072008-02-01 Kenichi Handa <handa@m17n.org> 8007 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
8008 8008 (x_free_frame_resources): Sync with xterm.c.
8009 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF. 8009
8010 80102008-02-01 Andreas Schwab <schwab@suse.de>
80112008-02-01 Kenichi Handa <handa@m17n.org> 8011
8012 8012 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
8013 * ftfont.c (ftfont_driver): Delete font_otf_gsub and 8013 char-table size.
8014 font_otf_gpos, add font_drive_otf. 8014
8015 80152008-02-01 Kenichi Handa <handa@m17n.org>
8016 * fontset.c (fontset_find_font): Pay attention to font size 8016
8017 specified for a font. 8017 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
8018 (reorder_font_vector): Check contents of font_def. 8018
8019 80192008-02-01 Kenichi Handa <handa@m17n.org>
8020 * font.c (struct otf_list): Delete it. 8020
8021 (otf_list): Make it a lisp variable. 8021 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
8022 (otf_open): Use lispy otf_list. 8022 font_otf_gpos, add font_drive_otf.
8023 (generate_otf_features): Rename from parse_gsub_gpos_spec. 8023
8024 (check_otf_features): New function. 8024 * fontset.c (fontset_find_font): Pay attention to font size
8025 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): 8025 specified for a font.
8026 New functions. 8026 (reorder_font_vector): Check contents of font_def.
8027 (font_drive_otf): New function merging font_otf_gsub and 8027
8028 font_otf_gpos. 8028 * font.c (struct otf_list): Delete it.
8029 (font_open_for_lface): New arg spec. Change argument order. 8029 (otf_list): Make it a lisp variable.
8030 (font_load_for_face): Adjust for the change of font_open_for_lface. 8030 (otf_open): Use lispy otf_list.
8031 (Ffont_drive_otf): New function merging Ffont_otf_gsub and 8031 (generate_otf_features): Rename from parse_gsub_gpos_spec.
8032 Ffont_otf_gpos. 8032 (check_otf_features): New function.
8033 (syms_of_font): Staticpro otf_list. Delete defsubr of 8033 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8034 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf. 8034 New functions.
8035 8035 (font_drive_otf): New function merging font_otf_gsub and
8036 * xfaces.c (set_font_frame_param): Adjust for the change of 8036 font_otf_gpos.
8037 font_open_for_lface. 8037 (font_open_for_lface): New arg spec. Change argument order.
8038 8038 (font_load_for_face): Adjust for the change of font_open_for_lface.
8039 * font.h (font_open_for_lface): Adjust prototype. 8039 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
8040 (struct font_driver): Delete members otf_gsub and otf_gpos, add 8040 Ffont_otf_gpos.
8041 member otf_drive. 8041 (syms_of_font): Staticpro otf_list. Delete defsubr of
8042 (font_otf_gsub, font_otf_gpos): Delete externs. 8042 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
8043 (font_drive_otf): Extern it. 8043
8044 8044 * xfaces.c (set_font_frame_param): Adjust for the change of
80452008-02-01 Kenichi Handa <handa@m17n.org> 8045 font_open_for_lface.
8046 8046
8047 * font.c (font_at): If the window W is not on a window system, 8047 * font.h (font_open_for_lface): Adjust prototype.
8048 return Qnil. 8048 (struct font_driver): Delete members otf_gsub and otf_gpos, add
8049 8049 member otf_drive.
8050 * coding.c (produce_chars, encode_coding): Don't call 8050 (font_otf_gsub, font_otf_gpos): Delete externs.
8051 insert_from_gap if no characters to produce. 8051 (font_drive_otf): Extern it.
8052 8052
80532008-02-01 Kenichi Handa <handa@m17n.org> 80532008-02-01 Kenichi Handa <handa@m17n.org>
8054 8054
8055 * fontset.c (free_realized_fontsets): Avoid unnecessary call of 8055 * font.c (font_at): If the window W is not on a window system,
8056 Fclear_face_cache. 8056 return Qnil.
8057 8057
8058 * xfaces.c (face_for_font): Check also face->font==font->font.font. 8058 * coding.c (produce_chars, encode_coding): Don't call
8059 8059 insert_from_gap if no characters to produce.
80602008-02-01 Miles Bader <miles@gnu.org> 8060
8061 80612008-02-01 Kenichi Handa <handa@m17n.org>
8062 * emacs.c (main): Change default value of `enable_font_backend' to 1. 8062
8063 Parse "--disable-font-backend" option. 8063 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
8064 (standard_args): Add "--disable-font-backend" option. 8064 Fclear_face_cache.
8065 8065
80662008-02-01 Kenichi Handa <handa@m17n.org> 8066 * xfaces.c (face_for_font): Check also face->font==font->font.font.
8067 8067
8068 * fontset.c (fontset_find_font): New function. 80682008-02-01 Miles Bader <miles@gnu.org>
8069 (fontset_font): Use fontset_find_font. 8069
8070 (make_fontset_for_ascii_face): Don't set face ID in rfont_def. 8070 * emacs.c (main): Change default value of `enable_font_backend' to 1.
8071 Register the specified font for all Latin characters. 8071 Parse "--disable-font-backend" option.
8072 (new_fontset_from_font): Register the specified font for all Latin 8072 (standard_args): Add "--disable-font-backend" option.
8073 characters. 8073
8074 (dump_fontset): For a realized fontset, include the base fontset 80742008-02-01 Kenichi Handa <handa@m17n.org>
8075 name in the returned vector. 8075
8076 8076 * fontset.c (fontset_find_font): New function.
80772008-02-01 Kenichi Handa <handa@m17n.org> 8077 (fontset_font): Use fontset_find_font.
8078 8078 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
8079 * character.h (CHAR_STRING): Cast C to unsigned on calling 8079 Register the specified font for all Latin characters.
8080 char_string. 8080 (new_fontset_from_font): Register the specified font for all Latin
8081 8081 characters.
8082 * character.c (char_string): Type of arg C changed to unsigned. 8082 (dump_fontset): For a realized fontset, include the base fontset
8083 Signal an error if C is an invalid character code. 8083 name in the returned vector.
8084 8084
8085 * editfns.c (general_insert_function, Fchar_to_string): 80852008-02-01 Kenichi Handa <handa@m17n.org>
8086 Use CHARACTERP, not INTEGERP. 8086
8087 8087 * character.h (CHAR_STRING): Cast C to unsigned on calling
80882008-02-01 Kenichi Handa <handa@m17n.org> 8088 char_string.
8089 8089
8090 * character.h (MIN_MULTIBYTE_LEADING_CODE) 8090 * character.c (char_string): Type of arg C changed to unsigned.
8091 (MAX_MULTIBYTE_LEADING_CODE): New macros. 8091 Signal an error if C is an invalid character code.
8092 8092
8093 * regex.c (analyse_first): Fix for multibyte characters in "case 8093 * editfns.c (general_insert_function, Fchar_to_string):
8094 charset:" and "case categoryspec:". 8094 Use CHARACTERP, not INTEGERP.
8095 8095
80962008-02-01 Andreas Schwab <schwab@suse.de> 80962008-02-01 Kenichi Handa <handa@m17n.org>
8097 8097
8098 * Makefile.in (LIBES): Move standard libraries to the end. 8098 * character.h (MIN_MULTIBYTE_LEADING_CODE)
8099 8099 (MAX_MULTIBYTE_LEADING_CODE): New macros.
81002008-02-01 Kenichi Handa <handa@m17n.org> 8100
8101 8101 * regex.c (analyse_first): Fix for multibyte characters in "case
8102 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is 8102 charset:" and "case categoryspec:".
8103 nonzero, don't shrink the buffer nextb. 8103
8104 81042008-02-01 Andreas Schwab <schwab@suse.de>
8105 * buffer.h (struct buffer_text): New member inhibit_shrinking. 8105
8106 8106 * Makefile.in (LIBES): Move standard libraries to the end.
8107 * coding.c (coding_alloc_by_making_gap): New arg offset. 8107
8108 (alloc_destination): Call coding_alloc_by_making_gap with the arg 81082008-02-01 Kenichi Handa <handa@m17n.org>
8109 offset. 8109
8110 (decode_coding_iso_2022): Update coding->safe_charsets. 8110 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
8111 (decode_coding_gap): Temporarily set 8111 nonzero, don't shrink the buffer nextb.
8112 current_buffer->text->inhibit_shrinking to 1. 8112
8113 8113 * buffer.h (struct buffer_text): New member inhibit_shrinking.
81142008-02-01 Kenichi Handa <handa@m17n.org> 8114
8115 8115 * coding.c (coding_alloc_by_making_gap): New arg offset.
8116 * xterm.c (x_draw_composite_glyph_string_foreground): Fix 8116 (alloc_destination): Call coding_alloc_by_making_gap with the arg
8117 indexing into elements of s->cmp and s->char2b. 8117 offset.
8118 8118 (decode_coding_iso_2022): Update coding->safe_charsets.
81192008-02-01 Juanma Barranquero <lekktu@gmail.com> 8119 (decode_coding_gap): Temporarily set
8120 8120 current_buffer->text->inhibit_shrinking to 1.
8121 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'. 8121
8122 81222008-02-01 Kenichi Handa <handa@m17n.org>
81232008-02-01 Kenichi Handa <handa@m17n.org> 8123
8124 8124 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
8125 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable 8125 indexing into elements of s->cmp and s->char2b.
8126 target_multibyte instead of multibyte. 8126
8127 (re_match_2_internal): Call bcmp_translate with target_multibyte. 81272008-02-01 Juanma Barranquero <lekktu@gmail.com>
8128 (bcmp_translate): Change the argument name from multibyte to 8128
8129 target_multibyte. 8129 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
8130 8130
81312008-02-01 Kenichi Handa <handa@m17n.org> 81312008-02-01 Kenichi Handa <handa@m17n.org>
8132 8132
8133 These changes are to compile a regexp into a pattern that can be 8133 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
8134 used both for multibyte and unibyte targets. 8134 target_multibyte instead of multibyte.
8135 8135 (re_match_2_internal): Call bcmp_translate with target_multibyte.
8136 * Makefile.in (search.o): Depend on charset.h. 8136 (bcmp_translate): Change the argument name from multibyte to
8137 8137 target_multibyte.
8138 * character.c (multibyte_char_to_unibyte_safe): New function. 8138
8139 81392008-02-01 Kenichi Handa <handa@m17n.org>
8140 * search.c: Include "charset.h". 8140
8141 (compile_pattern_1): Delete argument multibyte. Don't set 8141 These changes are to compile a regexp into a pattern that can be
8142 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte. 8142 used both for multibyte and unibyte targets.
8143 (compile_pattern): Don't compare cp->buf.target_multibyte. 8143
8144 Compare cp->buf.charset_unibyte. 8144 * Makefile.in (search.o): Depend on charset.h.
8145 (compile_pattern): Set cp->buf.target_multibyte. 8145
8146 8146 * character.c (multibyte_char_to_unibyte_safe): New function.
8147 * lisp.h (multibyte_char_to_unibyte_safe): Extern it. 8147
8148 8148 * search.c: Include "charset.h".
8149 * regex.h (struct re_pattern_buffer): New member charset_unibyte. 8149 (compile_pattern_1): Delete argument multibyte. Don't set
8150 8150 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
8151 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg 8151 (compile_pattern): Don't compare cp->buf.target_multibyte.
8152 multibyte. Change callers. 8152 Compare cp->buf.charset_unibyte.
8153 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros. 8153 (compile_pattern): Set cp->buf.target_multibyte.
8154 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers 8154
8155 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively. 8155 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
8156 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros. 8156
8157 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table. 8157 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
8158 (regex_compile): Make the compiled pattern usable both for 8158
8159 multibyte and unibyte targets. 8159 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
8160 (analyse_first): Make the fastmap usable both for multibyte and 8160 multibyte. Change callers.
8161 unibyte targets. 8161 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
8162 (TRANSLATE_VIA_MULTIBYTE): Delete. 8162 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
8163 (re_match_2_internal): Pay attention to the case that the 8163 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
8164 multibyteness of bufp and target may be different. 8164 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
8165 8165 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
81662008-02-01 Kenichi Handa <handa@m17n.org> 8166 (regex_compile): Make the compiled pattern usable both for
8167 8167 multibyte and unibyte targets.
8168 * xdisp.c (x_produce_glyphs): When a font is not found, make the 8168 (analyse_first): Make the fastmap usable both for multibyte and
8169 empty box occupy at least one column width. 8169 unibyte targets.
8170 8170 (TRANSLATE_VIA_MULTIBYTE): Delete.
81712008-02-01 Miles Bader <miles@gnu.org> 8171 (re_match_2_internal): Pay attention to the case that the
8172 8172 multibyteness of bufp and target may be different.
8173 * Makefile.in: Remove redundant HAVE_XFT clause. 8173
8174 81742008-02-01 Kenichi Handa <handa@m17n.org>
81752008-02-01 Kenichi Handa <handa@m17n.org> 8175
8176 8176 * xdisp.c (x_produce_glyphs): When a font is not found, make the
8177 * xrdb.c (x_load_resources): Setup the default fontSet X resource. 8177 empty box occupy at least one column width.
8178 8178
81792008-02-01 Kenichi Handa <handa@m17n.org> 81792008-02-01 Miles Bader <miles@gnu.org>
8180 8180
8181 * fontset.c (Finternal_char_font): Fix for the case of POSITION 8181 * Makefile.in: Remove redundant HAVE_XFT clause.
8182 being nil. 8182
8183 81832008-02-01 Kenichi Handa <handa@m17n.org>
81842008-02-01 Kenichi Handa <handa@m17n.org> 8184
8185 8185 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
8186 * xftfont.c (xftfont_open): Call FcConfigSubstitute. 8186
8187 81872008-02-01 Kenichi Handa <handa@m17n.org>
81882008-02-01 Kenichi Handa <handa@m17n.org> 8188
8189 8189 * fontset.c (Finternal_char_font): Fix for the case of POSITION
8190 * xftfont.c (xftfont_open): Don't enable antialias explicitly. 8190 being nil.
8191 8191
81922008-02-01 Kenichi Handa <handa@m17n.org> 81922008-02-01 Kenichi Handa <handa@m17n.org>
8193 8193
8194 * search.c (simple_search): Fix previous change. 8194 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
8195 8195
81962008-02-01 Kenichi Handa <handa@m17n.org> 81962008-02-01 Kenichi Handa <handa@m17n.org>
8197 8197
8198 * xftfont.c (ftfont_font_format): Extern declaration. 8198 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
8199 8199
8200 * frame.c (x_set_font): Fix the second arg to fs_query_fontset. 82002008-02-01 Kenichi Handa <handa@m17n.org>
8201 8201
8202 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0. 8202 * search.c (simple_search): Fix previous change.
8203 (xfont_list): Don't directly use Lisp_Object as an operand of &&. 8203
8204 82042008-02-01 Kenichi Handa <handa@m17n.org>
8205 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0. 8205
8206 (ftfont_font_format): Fix previous change. 8206 * xftfont.c (ftfont_font_format): Extern declaration.
8207 8207
8208 * font.h (Ffont_xlfd_name): EXFUN it. 8208 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
8209 8209
8210 * font.c (font_parse_xlfd): Fix the array size of `f'. 8210 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
8211 (register_font_driver): Use EQ to compare driver->type. 8211 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
8212 8212
8213 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function. 8213 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
8214 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2. 8214 (ftfont_font_format): Fix previous change.
8215 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise. 8215
8216 8216 * font.h (Ffont_xlfd_name): EXFUN it.
82172008-02-01 Kenichi Handa <handa@m17n.org> 8217
8218 8218 * font.c (font_parse_xlfd): Fix the array size of `f'.
8219 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family) 8219 (register_font_driver): Use EQ to compare driver->type.
8220 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined. 8220
8221 8221 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
82222008-02-01 Kenichi Handa <handa@m17n.org> 8222 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
8223 8223 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
8224 * xfont.c (xfont_open): Set font->format. 8224
8225 82252008-02-01 Kenichi Handa <handa@m17n.org>
8226 * xftfont.c (xftfont_open): Set font->format. 8226
8227 8227 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
8228 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern. 8228 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
8229 (ftfont_list): Include FC_FONTFORMAT in FcObject. 8229
8230 (ftfont_open): Set font->format. 82302008-02-01 Kenichi Handa <handa@m17n.org>
8231 (ftfont_font_format): New function. 8231
8232 8232 * xfont.c (xfont_open): Set font->format.
8233 * font.h (struct font): New member format. 8233
8234 8234 * xftfont.c (xftfont_open): Set font->format.
8235 * font.c (Qopentype): New variable. 8235
8236 (syms_of_font): Defsym it. 8236 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
8237 (Fquery_font): Change the format of the last element of the return 8237 (ftfont_list): Include FC_FONTFORMAT in FcObject.
8238 value. 8238 (ftfont_open): Set font->format.
8239 8239 (ftfont_font_format): New function.
82402008-02-01 Kenichi Handa <handa@m17n.org> 8240
8241 8241 * font.h (struct font): New member format.
8242 * xfns.c (xic_create_xfontset): Try the default fontset name as a 8242
8243 last resort. 8243 * font.c (Qopentype): New variable.
8244 8244 (syms_of_font): Defsym it.
82452008-02-01 Kenichi Handa <handa@m17n.org> 8245 (Fquery_font): Change the format of the last element of the return
8246 8246 value.
8247 * coding.c (detect_coding_charset): Fix detection of multi-byte 8247
8248 charset. 82482008-02-01 Kenichi Handa <handa@m17n.org>
8249 8249
82502008-02-01 Bob Halley <halley@play-bow.org> (tiny change) 8250 * xfns.c (xic_create_xfontset): Try the default fontset name as a
8251 8251 last resort.
8252 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0. 8252
8253 82532008-02-01 Kenichi Handa <handa@m17n.org>
82542008-02-01 Kenichi Handa <handa@m17n.org> 8254
8255 8255 * coding.c (detect_coding_charset): Fix detection of multi-byte
8256 * xdisp.c (get_next_display_element): Set it->face_id for the 8256 charset.
8257 first component of a composition. 8257
8258 (x_produce_glyphs): Check if the font is changed or not for composition. 82582008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
8259 8259
82602008-02-01 Kenichi Handa <handa@m17n.org> 8260 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
8261 8261
8262 * fontset.c (Qlatin): New variable. 82622008-02-01 Kenichi Handa <handa@m17n.org>
8263 (syms_of_fontset): Define it as a lisp symbol. 8263
8264 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII. 8264 * xdisp.c (get_next_display_element): Set it->face_id for the
8265 8265 first component of a composition.
82662008-02-01 Kenichi Handa <handa@m17n.org> 8266 (x_produce_glyphs): Check if the font is changed or not for composition.
8267 8267
8268 * font.c (font_unparse_fcname): Pay attention to the case that 82682008-02-01 Kenichi Handa <handa@m17n.org>
8269 some of font property is a null string. 8269
8270 8270 * fontset.c (Qlatin): New variable.
82712008-02-01 Kenichi Handa <handa@m17n.org> 8271 (syms_of_fontset): Define it as a lisp symbol.
8272 8272 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
8273 * term.c: Include "composite.h". 8273
8274 (encode_terminal_code): Output all components of composition. 82742008-02-01 Kenichi Handa <handa@m17n.org>
8275 Check the size of encode_terminal_src. 8275
8276 (produce_glyphs): For composition, call produce_composite_glyph. 8276 * font.c (font_unparse_fcname): Pay attention to the case that
8277 (append_composite_glyph, produce_composite_glyph): New functions. 8277 some of font property is a null string.
8278 8278
8279 * xdisp.c (x_produce_glyphs): In handling composition, if a font 82792008-02-01 Kenichi Handa <handa@m17n.org>
8280 is not found, get font_info from the current ascii face. 8280
8281 8281 * term.c: Include "composite.h".
82822008-02-01 Kenichi Handa <handa@m17n.org> 8282 (encode_terminal_code): Output all components of composition.
8283 8283 Check the size of encode_terminal_src.
8284 * fileio.c (Finsert_file_contents): On replacing, temporarily bind 8284 (produce_glyphs): For composition, call produce_composite_glyph.
8285 buffer-file-name to Qnil before calling insert_from_buffer. 8285 (append_composite_glyph, produce_composite_glyph): New functions.
8286 8286
8287 * font.c (font_unparse_fcname): Pay attention to the case that 8287 * xdisp.c (x_produce_glyphs): In handling composition, if a font
8288 foundry is a null string. 8288 is not found, get font_info from the current ascii face.
8289 8289
82902008-02-01 Kenichi Handa <handa@m17n.org> 82902008-02-01 Kenichi Handa <handa@m17n.org>
8291 8291
8292 * ftfont.c (ftfont_list): Allow registry "unicode-sip". 8292 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
8293 8293 buffer-file-name to Qnil before calling insert_from_buffer.
8294 * font.c (Qunicode_sip): New variable. 8294
8295 (syms_of_font): Declare it as a Lisp symbol. 8295 * font.c (font_unparse_fcname): Pay attention to the case that
8296 8296 foundry is a null string.
8297 * font.h (Qunicode_sip): Extern it. 8297
8298 82982008-02-01 Kenichi Handa <handa@m17n.org>
82992008-02-01 Kenichi Handa <handa@m17n.org> 8299
8300 8300 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
8301 * composite.c (get_composition_id): Pay attention to TAB component. 8301
8302 8302 * font.c (Qunicode_sip): New variable.
8303 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw 8303 (syms_of_font): Declare it as a Lisp symbol.
8304 TAB. Adjust for the change of s->char2b which always points to 8304
8305 the first element of allocated memory. 8305 * font.h (Qunicode_sip): Extern it.
8306 8306
8307 * xftfont.c (xftfont_text_extents): Fix calculation of descent value. 83072008-02-01 Kenichi Handa <handa@m17n.org>
8308 8308
8309 * xdisp.c (handle_composition_prop): Set it->c to the first 8309 * composite.c (get_composition_id): Pay attention to TAB component.
8310 non-TAB component. 8310
8311 (fill_composite_glyph_string): Change argument. 8311 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
8312 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change. 8312 TAB. Adjust for the change of s->char2b which always points to
8313 (x_produce_glyphs): Fix handling of left/right padding. 8313 the first element of allocated memory.
8314 8314
83152008-02-01 Kenichi Handa <handa@m17n.org> 8315 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
8316 8316
8317 * coding.c (detect_coding_system): Fix for handling off 8317 * xdisp.c (handle_composition_prop): Set it->c to the first
8318 inhibit_iso_escape_detection. Fix for the case that no coding 8318 non-TAB component.
8319 system is defined for a specific coding category. 8319 (fill_composite_glyph_string): Change argument.
8320 8320 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
83212008-02-01 Kenichi Handa <handa@m17n.org> 8321 (x_produce_glyphs): Fix handling of left/right padding.
8322 8322
8323 * font.c (font_matching_entity): Delete unused local var. 83232008-02-01 Kenichi Handa <handa@m17n.org>
8324 8324
8325 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before 8325 * coding.c (detect_coding_system): Fix for handling off
8326 opening a font. 8326 inhibit_iso_escape_detection. Fix for the case that no coding
8327 8327 system is defined for a specific coding category.
8328 * fileio.c (Finsert_file_contents): On recovering a file, assume 8328
8329 Unix-like eol. 83292008-02-01 Kenichi Handa <handa@m17n.org>
8330 (choose_write_coding_system): On auto-saving a file, force 8330
8331 Unix-like eol. 8331 * font.c (font_matching_entity): Delete unused local var.
8332 8332
8333 * coding.c (setup_coding_system): Fix setting of 8333 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
8334 coding->common_flags based on eol_type. 8334 opening a font.
8335 (coding_inherit_eol_type): If PARENT is not nil, be sure to 8335
8336 inherit from it. 8336 * fileio.c (Finsert_file_contents): On recovering a file, assume
8337 8337 Unix-like eol.
83382008-02-01 Kenichi Handa <handa@m17n.org> 8338 (choose_write_coding_system): On auto-saving a file, force
8339 8339 Unix-like eol.
8340 * alloc.c (NSTATICS): Increas to 0x600. 8340
8341 8341 * coding.c (setup_coding_system): Fix setting of
83422008-02-01 Kenichi Handa <handa@m17n.org> 8342 coding->common_flags based on eol_type.
8343 8343 (coding_inherit_eol_type): If PARENT is not nil, be sure to
8344 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match. 8344 inherit from it.
8345 (ftfont_list): Don't check :name property. 8345
8346 (ftfont_match): New function. 83462008-02-01 Kenichi Handa <handa@m17n.org>
8347 (ftfont_pattern_entity): If the pattern doesn't contain 8347
8348 FC_SPACING, don't assume FC_MONO. 8348 * alloc.c (NSTATICS): Increas to 0x600.
8349 8349
8350 * font.h (struct font_driver): New member `match'. 83502008-02-01 Kenichi Handa <handa@m17n.org>
8351 (font_update_drivers): Adjust prototype. 8351
8352 8352 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
8353 * font.c (font_parse_fcname, font_parse_name): Don't change :name 8353 (ftfont_list): Don't check :name property.
8354 property of FONT. 8354 (ftfont_match): New function.
8355 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define 8355 (ftfont_pattern_entity): If the pattern doesn't contain
8356 them unconditionally. 8356 FC_SPACING, don't assume FC_MONO.
8357 (font_matching_entity): New function. 8357
8358 (font_open_by_name): Try font_matching_entity if exact match is 8358 * font.h (struct font_driver): New member `match'.
8359 not found. 8359 (font_update_drivers): Adjust prototype.
8360 (font_update_drivers): Delete the arg FONT. Return a list of 8360
8361 actually used backends. Don't free faces, font caches here. 8361 * font.c (font_parse_fcname, font_parse_name): Don't change :name
8362 Don't store data in frame parameters. Don't call x_set_font. 8362 property of FONT.
8363 (Ffont_spec): Store :name property as is. 8363 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
8364 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability. 8364 them unconditionally.
8365 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub. 8365 (font_matching_entity): New function.
8366 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos. 8366 (font_open_by_name): Try font_matching_entity if exact match is
8367 (Ffont_otf_alternates): Check if the driver has otf_gsub function. 8367 not found.
8368 Call font->driver->otf_gsub instead of font_otf_gsub. 8368 (font_update_drivers): Delete the arg FONT. Return a list of
8369 8369 actually used backends. Don't free faces, font caches here.
8370 * frame.c (x_set_font_backend): Do more works that were done in 8370 Don't store data in frame parameters. Don't call x_set_font.
8371 font_update_drivers before. 8371 (Ffont_spec): Store :name property as is.
8372 8372 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
8373 * xfont.c (xfont_match): New function. 8373 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
8374 (xfont_driver): Set xfont_driver.match to xfont_match. 8374 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
8375 (xfont_draw): Set font in GC if necessary. 8375 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
8376 8376 Call font->driver->otf_gsub instead of font_otf_gsub.
8377 * ftxfont.c (ftxfont_match): New function. 8377
8378 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match. 8378 * frame.c (x_set_font_backend): Do more works that were done in
8379 8379 font_update_drivers before.
8380 * xftfont.c (xftfont_match): New function. 8380
8381 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match. 8381 * xfont.c (xfont_match): New function.
8382 8382 (xfont_driver): Set xfont_driver.match to xfont_match.
83832008-02-01 Kenichi Handa <handa@m17n.org> 8383 (xfont_draw): Set font in GC if necessary.
8384 8384
8385 * font.h (struct font): New member scalable. 8385 * ftxfont.c (ftxfont_match): New function.
8386 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub. 8386 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
8387 (font_otf_gsub): Adjust prototype. 8387
8388 8388 * xftfont.c (xftfont_match): New function.
8389 * font.c (font_otf_capability): Fix handling of the default langsys. 8389 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
8390 (parse_gsub_gpos_spec): Change type to void. New arg nbytes. 8390
8391 Check the contents of SPEC. 83912008-02-01 Kenichi Handa <handa@m17n.org>
8392 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros. 8392
8393 (check_gstring): New function. 8393 * font.h (struct font): New member scalable.
8394 (REPLACEMENT_CHARACTER): New macro. 8394 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
8395 (font_otf_gsub): New arg alternate_subst. Be sure to set all 8395 (font_otf_gsub): Adjust prototype.
8396 glyph codes of GSTRING. 8396
8397 (font_otf_gpos): Be sure to set all glyph codes of GSTRING. 8397 * font.c (font_otf_capability): Fix handling of the default langsys.
8398 (font_prepare_composition): Set cmp->glyph_len. 8398 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
8399 (font_open_entity): Set font->scalable. 8399 Check the contents of SPEC.
8400 (Ffont_get): Handle :otf property. 8400 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
8401 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New 8401 (check_gstring): New function.
8402 functions. 8402 (REPLACEMENT_CHARACTER): New macro.
8403 (Fquery_font): Use font->font.full_name. 8403 (font_otf_gsub): New arg alternate_subst. Be sure to set all
8404 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and 8404 glyph codes of GSTRING.
8405 Sfont_otf_alternates. 8405 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
8406 8406 (font_prepare_composition): Set cmp->glyph_len.
8407 * ftfont.c (ftfont_open): Set font->font.full_name and 8407 (font_open_entity): Set font->scalable.
8408 font->font.name properly. Fix calculation of font->font.height 8408 (Ffont_get): Handle :otf property.
8409 and font->min_width. 8409 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
8410 8410 functions.
8411 * ftxfont.c (ftxfont_create_gcs): New function. 8411 (Fquery_font): Use font->font.full_name.
8412 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap. 8412 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
8413 (ftxfont_draw_backgrond): Fix filling region. 8413 Sfont_otf_alternates.
8414 (ftxfont_default_fid): New function. 8414
8415 (ftxfont_open): Set xfont->fid to the return value of 8415 * ftfont.c (ftfont_open): Set font->font.full_name and
8416 ftxfont_default_fid. 8416 font->font.name properly. Fix calculation of font->font.height
8417 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs. 8417 and font->min_width.
8418 (ftxfont_done_face): Free only GCs that are created by 8418
8419 ftxfont_create_gcs. 8419 * ftxfont.c (ftxfont_create_gcs): New function.
8420 (ftxfont_draw): If face->gc != s->gc, create proper GCs. 8420 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
8421 8421 (ftxfont_draw_backgrond): Fix filling region.
8422 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]: 8422 (ftxfont_default_fid): New function.
8423 Clip to src->width, etc (not src->clip_XXX). 8423 (ftxfont_open): Set xfont->fid to the return value of
8424 8424 ftxfont_default_fid.
8425 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle 8425 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
8426 FontBackend frame parameter. 8426 (ftxfont_done_face): Free only GCs that are created by
8427 8427 ftxfont_create_gcs.
84282008-02-01 Kenichi Handa <handa@m17n.org> 8428 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
8429 8429
8430 * font.h (struct font_driver_list): New member `on'. 8430 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
8431 (Fclear_font_cache): EXFUN it. 8431 Clip to src->width, etc (not src->clip_XXX).
8432 (font_update_drivers): Extern it. 8432
8433 8433 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
8434 * font.c (font_unparse_fcname): Fix typo (swidth->width). 8434 FontBackend frame parameter.
8435 (font_list_entities): Check driver_list->on. 8435
8436 (register_font_driver): Initalize `on' member to 0. 84362008-02-01 Kenichi Handa <handa@m17n.org>
8437 (font_update_drivers): New function. 8437
8438 (Fclear_font_cache): Check driver_list->on. 8438 * font.h (struct font_driver_list): New member `on'.
8439 8439 (Fclear_font_cache): EXFUN it.
8440 * frame.h (Qfont_backend): Extern it. 8440 (font_update_drivers): Extern it.
8441 (x_set_font_backend): Extern it. 8441
8442 8442 * font.c (font_unparse_fcname): Fix typo (swidth->width).
8443 * frame.c (Qfont_backend): New variable. 8443 (font_list_entities): Check driver_list->on.
8444 (frame_parms): New element for font-backend. 8444 (register_font_driver): Initalize `on' member to 0.
8445 (x_set_font_backend): New function. 8445 (font_update_drivers): New function.
8446 8446 (Fclear_font_cache): Check driver_list->on.
8447 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle 8447
8448 FontBackend frame parameter. 8448 * frame.h (Qfont_backend): Extern it.
8449 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element 8449 (x_set_font_backend): Extern it.
8450 x_set_font_backend. 8450
8451 8451 * frame.c (Qfont_backend): New variable.
8452 * xfont.c (xfont_list): Don't try listing by :name property if the 8452 (frame_parms): New element for font-backend.
8453 name is not for XLFD. 8453 (x_set_font_backend): New function.
8454 8454
84552008-02-01 Kenichi Handa <handa@m17n.org> 8455 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
8456 8456 FontBackend frame parameter.
8457 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM) 8457 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
8458 (LGLYPH_SET_TO): New macros. 8458 x_set_font_backend.
8459 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment 8459
8460 element of G is vector or not. 8460 * xfont.c (xfont_list): Don't try listing by :name property if the
8461 (font_at): Extern it. 8461 name is not for XLFD.
8462 8462
8463 * font.c: Include window.h. 84632008-02-01 Kenichi Handa <handa@m17n.org>
8464 (font_lispy_object): New function. 8464
8465 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the 8465 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
8466 end of valid glyph. 8466 (LGLYPH_SET_TO): New macros.
8467 (font_close_object): Fix getting (struct font *). 8467 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
8468 (font_at): New function. 8468 element of G is vector or not.
8469 (Ffont_get): If FONT is a font-object, get entity from it. 8469 (font_at): Extern it.
8470 (Ffont_make_gstring): Initialize elements of glyphs with nil. 8470
8471 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix 8471 * font.c: Include window.h.
8472 range check. 8472 (font_lispy_object): New function.
8473 (Ffont_at): New function. 8473 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
8474 (syms_of_font): Defsubr Sfont_at. 8474 end of valid glyph.
8475 8475 (font_close_object): Fix getting (struct font *).
8476 * xdisp.c (it_props): Move the entry for Qauto_composed to just 8476 (font_at): New function.
8477 before the entry for Qcomposition. 8477 (Ffont_get): If FONT is a font-object, get entity from it.
8478 (handle_auto_composed_prop): Call auto-composition-function with 4 args. 8478 (Ffont_make_gstring): Initialize elements of glyphs with nil.
8479 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from 8479 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
8480 the font in gstring. 8480 range check.
8481 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check 8481 (Ffont_at): New function.
8482 LGLYPH_FORM (g) to detect the end of valid glyph. 8482 (syms_of_font): Defsubr Sfont_at.
8483 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if 8483
8484 we are composing with gstring. 8484 * xdisp.c (it_props): Move the entry for Qauto_composed to just
8485 8485 before the entry for Qcomposition.
8486 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]: 8486 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
8487 Check if adjustment is vector or not. 8487 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
8488 8488 the font in gstring.
8489 * Makefile.in (font.o): Make it depends on window.h. 8489 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
8490 8490 LGLYPH_FORM (g) to detect the end of valid glyph.
84912008-02-01 Kenichi Handa <handa@m17n.org> 8491 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
8492 8492 we are composing with gstring.
8493 * xterm.c (x_draw_composite_glyph_string_foreground): Check if 8493
8494 adjustment is vector or not. 8494 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
8495 8495 Check if adjustment is vector or not.
84962008-02-01 Miles Bader <miles@gnu.org> 8496
8497 8497 * Makefile.in (font.o): Make it depends on window.h.
8498 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE. 8498
8499 84992008-02-01 Kenichi Handa <handa@m17n.org>
85002008-02-01 Kenichi Handa <handa@m17n.org> 8500
8501 8501 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
8502 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST) 8502 adjustment is vector or not.
8503 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format. 8503
8504 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros. 85042008-02-01 Miles Bader <miles@gnu.org>
8505 8505
8506 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card. 8506 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
8507 (DEVICE_DELTA): Fix typo. 8507
8508 (font_otf_gpos, font_prepare_compositio): Adjust for the change of 85082008-02-01 Kenichi Handa <handa@m17n.org>
8509 LGLYPH format. 8509
8510 8510 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
8511 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for 8511 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
8512 the change of LGLYPH format. 8512 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
8513 8513
85142008-02-01 Kenichi Handa <handa@m17n.org> 8514 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
8515 8515 (DEVICE_DELTA): Fix typo.
8516 * ftfont.c (ftfont_list): Fix typo. 8516 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
8517 (ftfont_build_basic_charsets): Don't include letters with diacritics. 8517 LGLYPH format.
8518 8518
85192008-02-01 Jan Djärv <jan.h.d@swipnet.se> 8519 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8520 8520 the change of LGLYPH format.
8521 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL. 8521
8522 85222008-02-01 Kenichi Handa <handa@m17n.org>
8523 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if 8523
8524 xftface_info is non-NULL. 8524 * ftfont.c (ftfont_list): Fix typo.
8525 8525 (ftfont_build_basic_charsets): Don't include letters with diacritics.
85262008-02-01 Jan Djärv <jan.h.d@swipnet.se> 8526
8527 85272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
8528 * ftfont.c (ftfont_list): Move misplaced #endif. 8528
8529 8529 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
85302008-02-01 Kenichi Handa <handa@m17n.org> 8530
8531 8531 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
8532 * ftfont.c (ftfont_list): Pay attention to the case that 8532 xftface_info is non-NULL.
8533 FC_CAPABILITY is not defined. 8533
8534 85342008-02-01 Jan Djärv <jan.h.d@swipnet.se>
85352008-02-01 Kenichi Handa <handa@m17n.org> 8535
8536 8536 * ftfont.c (ftfont_list): Move misplaced #endif.
8537 * xftfont.c (xftfont_open): Set charset related members to -1. 8537
8538 85382008-02-01 Kenichi Handa <handa@m17n.org>
8539 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of 8539
8540 QCname. 8540 * ftfont.c (ftfont_list): Pay attention to the case that
8541 (ftfont_open): Set charset related members to -1. 8541 FC_CAPABILITY is not defined.
8542 8542
8543 * fontset.c (Votf_script_alist): New variable. 85432008-02-01 Kenichi Handa <handa@m17n.org>
8544 (syms_of_fontset): Initialize it. 8544
8545 (fontset_font): Delete unused variable. 8545 * xftfont.c (xftfont_open): Set charset related members to -1.
8546 8546
8547 * fontset.h (Votf_script_alist): Extern it. 8547 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
8548 8548 QCname.
8549 * font.c (font_find_for_lface): Optimize code. 8549 (ftfont_open): Set charset related members to -1.
8550 8550
8551 * font.h (font_close_object, font_merge_old_spec): Extern them. 8551 * fontset.c (Votf_script_alist): New variable.
8552 8552 (syms_of_fontset): Initialize it.
85532008-02-01 Kenichi Handa <handa@m17n.org> 8553 (fontset_font): Delete unused variable.
8554 8554
8555 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables. 8555 * fontset.h (Votf_script_alist): Extern it.
8556 (syms_of_font): Initialize them. 8556
8557 (font_pixel_size): Allow float value in dpi. 8557 * font.c (font_find_for_lface): Optimize code.
8558 (font_prop_validate_type): Delete. 8558
8559 (font_prop_validate_symbol, font_prop_validate_style): Change argument. 8559 * font.h (font_close_object, font_merge_old_spec): Extern them.
8560 Change caller. 8560
8561 (font_prop_validate_non_neg): Rename from font_prop_validate_size. 85612008-02-01 Kenichi Handa <handa@m17n.org>
8562 (font_prop_validate_extra): Delete. 8562
8563 (font_prop_validate_spacing): New function. 8563 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
8564 (font_property_table): Add elements for all known properties. 8564 (syms_of_font): Initialize them.
8565 (get_font_prop_index): Rename from check_font_prop_name. New 8565 (font_pixel_size): Allow float value in dpi.
8566 argument FROM. Change caller. 8566 (font_prop_validate_type): Delete.
8567 (font_prop_validate): Validate all known properties. 8567 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
8568 (font_put_extra): Delete argument force. Change caller. 8568 Change caller.
8569 (font_expand_wildcards): Make it static. Fix the way of shrinking 8569 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
8570 the possible range. 8570 (font_prop_validate_extra): Delete.
8571 (font_parse_xlfd): Delete argument merge. Fix handling of RESX, 8571 (font_prop_validate_spacing): New function.
8572 RESY, SPACING, and AVGWIDTH. Don't validate property values here. 8572 (font_property_table): Add elements for all known properties.
8573 Change caller. 8573 (get_font_prop_index): Rename from check_font_prop_name. New
8574 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties. 8574 argument FROM. Change caller.
8575 (font_parse_fcname): Delete argument merge. Fix parsing of point 8575 (font_prop_validate): Validate all known properties.
8576 size. Don't validate properties values here. Change caller. 8576 (font_put_extra): Delete argument force. Change caller.
8577 (font_unparse_fcname): Handle dpi, spacing, and scalable properties. 8577 (font_expand_wildcards): Make it static. Fix the way of shrinking
8578 (font_open_by_name): Delete unused variable. 8578 the possible range.
8579 (Ffont_spec): Likewise. Validate property values. 8579 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
8580 (Ffont_match_p): New function. 8580 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
8581 8581 Change caller.
8582 * font.h (QCscalable): Extern it. 8582 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
8583 (font_parse_xlfd, font_parse_fcname): Adjust prototype. 8583 (font_parse_fcname): Delete argument merge. Fix parsing of point
8584 8584 size. Don't validate properties values here. Change caller.
8585 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable. 8585 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
8586 8586 (font_open_by_name): Delete unused variable.
8587 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd. 8587 (Ffont_spec): Likewise. Validate property values.
8588 (xfont_list_pattern): New function. 8588 (Ffont_match_p): New function.
8589 (xfont_list): Use xfont_list_pattern. 8589
8590 8590 * font.h (QCscalable): Extern it.
85912008-02-01 Kenichi Handa <handa@m17n.org> 8591 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
8592 8592
8593 * font.h (Flist_fonts): EXFUN it. 8593 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
8594 8594
85952008-02-01 Jason Rumney <jasonr@gnu.org> 8595 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
8596 8596 (xfont_list_pattern): New function.
8597 * w32term.c (w32_initialize): Add back smoothing_type and 8597 (xfont_list): Use xfont_list_pattern.
8598 smoothing_enabled definitions. 8598
8599 85992008-02-01 Kenichi Handa <handa@m17n.org>
86002008-02-01 Kenichi Handa <handa@m17n.org> 8600
8601 8601 * font.h (Flist_fonts): EXFUN it.
8602 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check 8602
8603 s->face->font on determining underline position. 86032008-02-01 Jason Rumney <jasonr@gnu.org>
8604 8604
86052008-02-01 Kenichi Handa <handa@m17n.org> 8605 * w32term.c (w32_initialize): Add back smoothing_type and
8606 8606 smoothing_enabled definitions.
8607 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field. 8607
8608 (font_has_char): Accept font-object too. 86082008-02-01 Kenichi Handa <handa@m17n.org>
8609 (font_find_for_lface): Try at first with a size specified in face. 8609
8610 8610 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
86112008-02-01 Kenichi Handa <handa@m17n.org> 8611 s->face->font on determining underline position.
8612 8612
8613 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to 86132008-02-01 Kenichi Handa <handa@m17n.org>
8614 font_open_by_name. 8614
8615 8615 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
86162008-02-01 Kenichi Handa <handa@m17n.org> 8616 (font_has_char): Accept font-object too.
8617 8617 (font_find_for_lface): Try at first with a size specified in face.
8618 * font.h (QCspacing, QCdpi): Extern them. 8618
8619 (enum font_spacing): New enum. 86192008-02-01 Kenichi Handa <handa@m17n.org>
8620 (FONT_PIXEL_SIZE_QUANTUM): New macro. 8620
8621 8621 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
8622 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10. 8622 font_open_by_name.
8623 (QCspacing, QCdpi): New variables. 8623
8624 (syms_of_font): Initialize them. 86242008-02-01 Kenichi Handa <handa@m17n.org>
8625 (font_pixel_size): New function. 8625
8626 (font_put_extra): New function. 8626 * font.h (QCspacing, QCdpi): Extern them.
8627 (font_parse_xlfd): Fix handling of font size. Add QCdpi property 8627 (enum font_spacing): New enum.
8628 in FONT_EXTRA. 8628 (FONT_PIXEL_SIZE_QUANTUM): New macro.
8629 (font_parse_fcname): Handle enumerated values (e.g. bold). 8629
8630 Fix handling font size. Add QCname property that contains only 8630 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
8631 unknown properties. 8631 (QCspacing, QCdpi): New variables.
8632 (font_score): Change argument. Change caller. Pay attention to 8632 (syms_of_font): Initialize them.
8633 FONT_PIXEL_SIZE_QUANTUM. 8633 (font_pixel_size): New function.
8634 (font_sort_entites, font_list_entities, font_find_for_lface) 8634 (font_put_extra): New function.
8635 (font_open_for_lface, font_open_by_name): Fix handling of font size. 8635 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
8636 (Ffont_spec): Add QCname property that contains only unknown properties. 8636 in FONT_EXTRA.
8637 8637 (font_parse_fcname): Handle enumerated values (e.g. bold).
8638 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't 8638 Fix handling font size. Add QCname property that contains only
8639 include weight in listing pattern, instead check weight of each 8639 unknown properties.
8640 listed font. Don't include scalable in pattern. Pay attention to 8640 (font_score): Change argument. Change caller. Pay attention to
8641 FONT_PIXEL_SIZE_QUANTUM. 8641 FONT_PIXEL_SIZE_QUANTUM.
8642 8642 (font_sort_entites, font_list_entities, font_find_for_lface)
86432008-02-01 Kenichi Handa <handa@m17n.org> 8643 (font_open_for_lface, font_open_by_name): Fix handling of font size.
8644 8644 (Ffont_spec): Add QCname property that contains only unknown properties.
8645 * font.c (font_parse_fcname): Fix parsing of point-size. 8645
8646 (font_unparse_fcname): Produce symbolic names for style properties. 8646 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
8647 (font_list_entities): Handle float size correctly. 8647 include weight in listing pattern, instead check weight of each
8648 (font_open_by_name): Prefer `normal' property values if the name 8648 listed font. Don't include scalable in pattern. Pay attention to
8649 doesn't specify them. 8649 FONT_PIXEL_SIZE_QUANTUM.
8650 8650
8651 * fontset.c (Finternal_char_font): Use font_get_name, not 86512008-02-01 Kenichi Handa <handa@m17n.org>
8652 Ffont_xlfd_name. 8652
8653 8653 * font.c (font_parse_fcname): Fix parsing of point-size.
8654 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for 8654 (font_unparse_fcname): Produce symbolic names for style properties.
8655 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing 8655 (font_list_entities): Handle float size correctly.
8656 pattern. Don't force scalable. 8656 (font_open_by_name): Prefer `normal' property values if the name
8657 8657 doesn't specify them.
8658 * xftfont.c (xftfont_open): For generating a name, start from 8658
8659 96-byte buffer. 8659 * fontset.c (Finternal_char_font): Use font_get_name, not
8660 8660 Ffont_xlfd_name.
86612008-02-01 Jan Djärv <jan.h.d@swipnet.se> 8661
8662 8662 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
8663 * frame.h (x_new_fontset2): Fix prototype. 8663 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
8664 8664 pattern. Don't force scalable.
86652008-02-01 Kenichi Handa <handa@m17n.org> 8665
8666 8666 * xftfont.c (xftfont_open): For generating a name, start from
8667 * font.h (struct font_driver): Delete member parse_name. 8667 96-byte buffer.
8668 (font_match_p, font_get_spec, font_parse_fcname) 8668
8669 (font_unparse_fcname): Extern them. 86692008-02-01 Jan Djärv <jan.h.d@swipnet.se>
8670 (font_get_name): Adjust prototype. 8670
8671 8671 * frame.h (x_new_fontset2): Fix prototype.
8672 * font.c (XLFD_SMALLNUM_MASK): Delete this macro. 8672
8673 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it. 86732008-02-01 Kenichi Handa <handa@m17n.org>
8674 (font_expand_wildcards): Fix handling ENCODING field. Avoid 8674
8675 unnecessary checks for weight, slant, and swidth. 8675 * font.h (struct font_driver): Delete member parse_name.
8676 (font_parse_fcname): New function. 8676 (font_match_p, font_get_spec, font_parse_fcname)
8677 (font_unparse_fcname): New function. 8677 (font_unparse_fcname): Extern them.
8678 (font_parse_name): New function. 8678 (font_get_name): Adjust prototype.
8679 (font_match_p): New function. 8679
8680 (font_get_name): Change return value to Lisp string. 8680 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
8681 (font_get_spec): New function. 8681 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
8682 (Qunspecified, Qignore_defface): Don't extern them. 8682 (font_expand_wildcards): Fix handling ENCODING field. Avoid
8683 (font_find_for_lface): Assume that LFACE is fully specified. 8683 unnecessary checks for weight, slant, and swidth.
8684 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font 8684 (font_parse_fcname): New function.
8685 object, use it for FACE. 8685 (font_unparse_fcname): New function.
8686 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call 8686 (font_parse_name): New function.
8687 driver->parse_name. 8687 (font_match_p): New function.
8688 (Ffont_spec): Call font_parse_name, not font_parse_xlfd. 8688 (font_get_name): Change return value to Lisp string.
8689 8689 (font_get_spec): New function.
8690 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust 8690 (Qunspecified, Qignore_defface): Don't extern them.
8691 prototype. 8691 (font_find_for_lface): Assume that LFACE is fully specified.
8692 8692 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
8693 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete 8693 object, use it for FACE.
8694 argument F. Don't call Fnew_fontset. Instead, directly call 8694 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
8695 make_fontset. 8695 driver->parse_name.
8696 8696 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
8697 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype. 8697
8698 8698 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
8699 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change 8699 prototype.
8700 of x_new_fontset2. 8700
8701 8701 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
8702 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans) 8702 argument F. Don't call Fnew_fontset. Instead, directly call
8703 (Qsans__serif): New variables. 8703 make_fontset.
8704 (ftfont_generic_family_list): New variable. 8704
8705 (syms_of_ftfont): Initialize the above variables. 8705 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
8706 (ftfont_pattern_entity): Delete argument NAME. 8706
8707 (ftfont_list_generic_family): New function. 8707 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
8708 (ftfont_parse_name): Delete this function. 8708 of x_new_fontset2.
8709 (ftfont_list): Try generic family only when FcFontList found no font. 8709
8710 (ftfont_list_family): Fix args to FcObjectSetBuild. 8710 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
8711 8711 (Qsans__serif): New variables.
8712 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font 8712 (ftfont_generic_family_list): New variable.
8713 object in attrs[LFACE_FONT_INDEX]. 8713 (syms_of_ftfont): Initialize the above variables.
8714 (set_lface_from_font_name): Cancel all changes for font-backend. 8714 (ftfont_pattern_entity): Delete argument NAME.
8715 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New 8715 (ftfont_list_generic_family): New function.
8716 function. 8716 (ftfont_parse_name): Delete this function.
8717 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a 8717 (ftfont_list): Try generic family only when FcFontList found no font.
8718 font object in QCfont attribute. 8718 (ftfont_list_family): Fix args to FcObjectSetBuild.
8719 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise. 8719
8720 (realize_default_face) [USE_FONT_BACKEND]: Call 8720 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
8721 set_lface_from_font_and_fontset. 8721 object in attrs[LFACE_FONT_INDEX].
8722 8722 (set_lface_from_font_name): Cancel all changes for font-backend.
8723 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also 8723 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
8724 "fixed", and signal error here if no suitable font was found. 8724 function.
8725 8725 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
8726 * xfont.c (xfont_parse_name): Delete this function. 8726 font object in QCfont attribute.
8727 8727 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
8728 * xftfont.c (xftfont_open): Change coding style of error 8728 (realize_default_face) [USE_FONT_BACKEND]: Call
8729 handling. Generate fontconfig's fontname pattern. 8729 set_lface_from_font_and_fontset.
8730 8730
8731 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp. 8731 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
8732 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro. 8732 "fixed", and signal error here if no suitable font was found.
8733 8733
8734 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments. 8734 * xfont.c (xfont_parse_name): Delete this function.
8735 Both args FONTSET and FONT_OBJECT must be existing ones. 8735
8736 8736 * xftfont.c (xftfont_open): Change coding style of error
87372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 8737 handling. Generate fontconfig's fontname pattern.
8738 8738
8739 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR. 8739 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
8740 8740 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
87412008-02-01 Kenichi Handa <handa@m17n.org> 8741
8742 8742 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
8743 * xfont.c (xfont_open, xfont_encode_char): Fix typo. 8743 Both args FONTSET and FONT_OBJECT must be existing ones.
8744 8744
8745 * font.h (struct font): Fix typo. 87452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8746 8746
8747 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to 8747 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
8748 XLFD_XXX_INDEX. 8748
8749 (enum xlfd_field_mask): New enum. 87492008-02-01 Kenichi Handa <handa@m17n.org>
8750 (intern_font_field): Changed argument. Change caller. If digits 8750
8751 are followed by non-digits, return a symbol. 8751 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
8752 (font_expand_wildcards): New function. 8752
8753 (font_parse_xlfd): Fix wildcard handling. 8753 * font.h (struct font): Fix typo.
8754 (Ffont_spec): If :name is specified, reflect the info in the other 8754
8755 properties. 8755 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
8756 8756 XLFD_XXX_INDEX.
8757 * ftfont.c (ftfont_pattern_entity): Fix typo. 8757 (enum xlfd_field_mask): New enum.
8758 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of 8758 (intern_font_field): Changed argument. Change caller. If digits
8759 locale. 8759 are followed by non-digits, return a symbol.
8760 8760 (font_expand_wildcards): New function.
87612008-02-01 Kenichi Handa <handa@m17n.org> 8761 (font_parse_xlfd): Fix wildcard handling.
8762 8762 (Ffont_spec): If :name is specified, reflect the info in the other
8763 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them. 8763 properties.
8764 8764
8765 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c. 8765 * ftfont.c (ftfont_pattern_entity): Fix typo.
8766 (font_unparse_xlfd): Fix argument type declaration. Append "*" if 8766 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
8767 registry doesn't specify encoding part. 8767 locale.
8768 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX. 8768
8769 (font_open_by_name): At first try parsing the name. 87692008-02-01 Kenichi Handa <handa@m17n.org>
8770 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp 8770
8771 as Lisp symbols. 8771 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
8772 8772
8773 * fontset.c (reorder_font_vector): Pay attention to the case that 8773 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
8774 the 3rd element of font_def is nil. 8774 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
8775 (fontset_font): For the default fontset, append one more fontset 8775 registry doesn't specify encoding part.
8776 elements for a script-based font specification. Don't add script 8776 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
8777 attribute on finding a font. 8777 (font_open_by_name): At first try parsing the name.
8778 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the 8778 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
8779 font name. 8779 as Lisp symbols.
8780 (fontset_ascii_font): If a font can't be opened, return nil. 8780
8781 8781 * fontset.c (reorder_font_vector): Pay attention to the case that
8782 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c. 8782 the 3rd element of font_def is nil.
8783 (ftfont_pattern_entity): New function. 8783 (fontset_font): For the default fontset, append one more fontset
8784 (ftfont_get_cache): Assume that freetype_font_cache is already 8784 elements for a script-based font specification. Don't add script
8785 initialized. 8785 attribute on finding a font.
8786 (ftfont_list): Handle the case that a file is specified in font 8786 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
8787 name. Use ftfont_pattern_entity to generate entities. 8787 font name.
8788 (ftfont_has_char): Check if the pattern contains FC_CHARSET. 8788 (fontset_ascii_font): If a font can't be opened, return nil.
8789 (syms_of_ftfont): Initialize freetype_font_cache. 8789
8790 8790 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
8791 * xftfont.c (xftfont_open): Make the font name fontconfig's 8791 (ftfont_pattern_entity): New function.
8792 style. Add BLOCK_INPUT and UNBLOCK_INPUT. 8792 (ftfont_get_cache): Assume that freetype_font_cache is already
8793 (xftfont_close): Free font->font.name if not NULL. 8793 initialized.
8794 8794 (ftfont_list): Handle the case that a file is specified in font
8795 * xfont.c (xfont_list): If script is specified for a font, return 8795 name. Use ftfont_pattern_entity to generate entities.
8796 null_vector. 8796 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
8797 (xfont_list_family): Declare argument type. 8797 (syms_of_ftfont): Initialize freetype_font_cache.
8798 8798
8799 * xfaces.c (set_lface_from_font_name): If a font doesn't have a 8799 * xftfont.c (xftfont_open): Make the font name fontconfig's
8800 name, set LFACE_FONT (lface) to nil. 8800 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
8801 8801 (xftfont_close): Free font->font.name if not NULL.
8802 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded, 8802
8803 return Qnil. 8803 * xfont.c (xfont_list): If script is specified for a font, return
8804 8804 null_vector.
88052008-02-01 Kenichi Handa <handa@m17n.org> 8805 (xfont_list_family): Declare argument type.
8806 8806
8807 * emacs.c (main): Check -enable-font-backend arg after the check of -nl. 8807 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
8808 (standard_args): Add "-enable-font-backend". 8808 name, set LFACE_FONT (lface) to nil.
8809 8809
88102008-02-01 Kenichi Handa <handa@m17n.org> 8810 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
8811 8811 return Qnil.
8812 * xftfont.c (xftfont_default_fid): Set fid_known to 1. 8812
8813 (struct xftdraw_list, xftdraw_list): Delete them. 88132008-02-01 Kenichi Handa <handa@m17n.org>
8814 (register_xftdraw, check_xftdraw): Delete them. 8814
8815 (xftfont_prepare_face): Don't call register_xftdraw. 8815 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
8816 (xftfont_done_face): Don't call check_xftdraw. 8816 (standard_args): Add "-enable-font-backend".
8817 (xftfont_draw): Get background color only when with_background is 8817
8818 nonzero. 88182008-02-01 Kenichi Handa <handa@m17n.org>
8819 8819
8820 * xfont.c (xfont_encode_char): Fix calculation of char2b. 8820 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
8821 8821 (struct xftdraw_list, xftdraw_list): Delete them.
88222008-02-01 Kenichi Handa <handa@m17n.org> 8822 (register_xftdraw, check_xftdraw): Delete them.
8823 8823 (xftfont_prepare_face): Don't call register_xftdraw.
8824 These changes are for the new font handling codes. 8824 (xftfont_done_face): Don't call check_xftdraw.
8825 8825 (xftfont_draw): Get background color only when with_background is
8826 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@, 8826 nonzero.
8827 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@. 8827
8828 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@. 8828 * xfont.c (xfont_encode_char): Fix calculation of char2b.
8829 (FONTSRC, FONTOBJ): New variables. 8829
8830 (obj): Add $(FONTOBJ). 88302008-02-01 Kenichi Handa <handa@m17n.org>
8831 (SOME_MACHINE_OBJECTS): Lib_X11_Lib. 8831
8832 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and 8832 These changes are for the new font handling codes.
8833 @LIBOTF_LIBS@. 8833
8834 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets. 8834 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
8835 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC). 8835 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
8836 8836 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
8837 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files. 8837 (FONTSRC, FONTOBJ): New variables.
8838 8838 (obj): Add $(FONTOBJ).
8839 * character.h (Vscript_representative_chars): Extern it. 8839 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
8840 8840 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
8841 * character.c (Vscript_representative_chars): New variable. 8841 @LIBOTF_LIBS@.
8842 (syms_of_character): Declare it as a Lisp variable. 8842 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
8843 8843 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
8844 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If 8844
8845 enable_font_backend is nonzero, accept the composition method 8845 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
8846 COMPOSITION_WITH_GLYPH_STRING. 8846
8847 8847 * character.h (Vscript_representative_chars): Extern it.
8848 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New 8848
8849 enumeration COMPOSITION_WITH_GLYPH_STRING. 8849 * character.c (Vscript_representative_chars): New variable.
8850 8850 (syms_of_character): Declare it as a Lisp variable.
8851 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New 8851
8852 members clip_x, clip_y, clip_width, and clip_height. 8852 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
8853 (struct face) [USE_FONT_BACKEND]: New members font_info and extra. 8853 enable_font_backend is nonzero, accept the composition method
8854 8854 COMPOSITION_WITH_GLYPH_STRING.
8855 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg 8855
8856 --enable-font-backend. Call syms_of_font. 8856 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
8857 8857 enumeration COMPOSITION_WITH_GLYPH_STRING.
8858 * fns.c (assoc_no_quit): New function. 8858
8859 8859 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
8860 * fontset.h (FONT_INFO_FROM_FACE): New macro. 8860 members clip_x, clip_y, clip_width, and clip_height.
8861 (face_for_font, new_fontset_from_font) 8861 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
8862 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them. 8862
8863 8863 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
8864 * fontset.c [USE_FONT_BACKEND]: Include "font.h". 8864 --enable-font-backend. Call syms_of_font.
8865 (fontset_font, fontset_ascii, face_for_char) 8865
8866 (make_fontset_for_ascii_face, Ffont_info) 8866 * fns.c (assoc_no_quit): New function.
8867 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend 8867
8868 is nonzero, use font-backend mechanism. 8868 * fontset.h (FONT_INFO_FROM_FACE): New macro.
8869 (find_font_encoding): Make it non-static. 8869 (face_for_font, new_fontset_from_font)
8870 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]: 8870 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
8871 New functions. 8871
8872 8872 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
8873 * frame.h (struct frame): New members resx and resy. 8873 (fontset_font, fontset_ascii, face_for_char)
8874 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list. 8874 (make_fontset_for_ascii_face, Ffont_info)
8875 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it. 8875 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
8876 8876 is nonzero, use font-backend mechanism.
8877 * frame.c [USE_FONT_BACKEND]: Include "font.h". 8877 (find_font_encoding): Make it non-static.
8878 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism. 8878 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
8879 8879 New functions.
8880 * lisp.h (assoc_no_quit): Extern it. 8880
8881 8881 * frame.h (struct frame): New members resx and resy.
8882 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h". 8882 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
8883 Through out the file, use FONT_INFO_FROM_FACE instead of 8883 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
8884 FONT_INFO_FROM_ID, use get_per_char_metric instead of 8884
8885 rif->per_char_metric. 8885 * frame.c [USE_FONT_BACKEND]: Include "font.h".
8886 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition 8886 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
8887 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '. 8887
8888 (get_glyph_face_and_encoding, fill_composite_glyph_string) 8888 * lisp.h (assoc_no_quit): Extern it.
8889 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) 8889
8890 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is 8890 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
8891 nonzero, use font-backend mechanism. 8891 Through out the file, use FONT_INFO_FROM_FACE instead of
8892 (get_per_char_metric): New function. 8892 FONT_INFO_FROM_ID, use get_per_char_metric instead of
8893 8893 rif->per_char_metric.
8894 * xfaces.c [USE_FONT_BACKEND]: Include "font.h". 8894 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
8895 (set_lface_from_font_name) 8895 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
8896 (set_font_frame_param, free_realized_face) 8896 (get_glyph_face_and_encoding, fill_composite_glyph_string)
8897 (prepare_face_for_display, clear_face_gcs) 8897 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8898 (Finternal_set_font_selection_order, realize_x_face) 8898 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
8899 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use 8899 nonzero, use font-backend mechanism.
8900 font-backend mechanism. 8900 (get_per_char_metric): New function.
8901 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table. 8901
8902 (load_face_font) [USE_FONT_BACKEND]: Abort. 8902 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
8903 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant) 8903 (set_lface_from_font_name)
8904 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions. 8904 (set_font_frame_param, free_realized_face)
8905 8905 (prepare_face_for_display, clear_face_gcs)
8906 * xfns.c [USE_FONT_BACKEND]: Include "font.h". 8906 (Finternal_set_font_selection_order, realize_x_face)
8907 (x_default_font_parameter) [USE_FONT_BACKEND]: New function. 8907 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
8908 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is 8908 font-backend mechanism.
8909 nonzero, register all available font drivers. Call 8909 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
8910 x_default_font_parameter for deciding a font. 8910 (load_face_font) [USE_FONT_BACKEND]: Abort.
8911 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise. 8911 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
8912 8912 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
8913 * xterm.c [USE_FONT_BACKEND]: Include "font.h". 8913
8914 (x_set_mouse_face_gc, x_set_glyph_string_clipping) 8914 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
8915 (x_set_glyph_string_clipping_exactly) 8915 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
8916 (x_compute_glyph_string_overhangs) 8916 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
8917 (x_draw_glyph_string_foreground) 8917 nonzero, register all available font drivers. Call
8918 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string) 8918 x_default_font_parameter for deciding a font.
8919 (x_free_frame_resources) [USE_FONT_BACKEND]: If 8919 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
8920 enable_font_backend is nonzero, use font-backend mechanism. 8920
8921 (x_new_fontset2) [USE_FONT_BACKEND]: New function. 8921 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
8922 8922 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
89232008-02-01 Kenichi Handa <handa@m17n.org> 8923 (x_set_glyph_string_clipping_exactly)
8924 8924 (x_compute_glyph_string_overhangs)
8925 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from 8925 (x_draw_glyph_string_foreground)
8926 system_eol_type. 8926 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
8927 (syms_of_coding): Initialize system_eol_type. 8927 (x_free_frame_resources) [USE_FONT_BACKEND]: If
8928 8928 enable_font_backend is nonzero, use font-backend mechanism.
8929 * process.c (Fset_process_coding_system): Inherit system's eol 8929 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
8930 format if necessary. 8930
8931 89312008-02-01 Kenichi Handa <handa@m17n.org>
89322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 8932
8933 8933 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
8934 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch. 8934 system_eol_type.
8935 8935 (syms_of_coding): Initialize system_eol_type.
89362008-02-01 Kenichi Handa <handa@m17n.org> 8936
8937 8937 * process.c (Fset_process_coding_system): Inherit system's eol
8938 * coding.c (decode_eol): Pay attention to buffer relocation in 8938 format if necessary.
8939 del_range_2. 8939
8940 (decode_coding): Call decode_eol before restoring undo_list. 89402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8941 8941
89422008-02-01 Kenichi Handa <handa@m17n.org> 8942 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
8943 8943
8944 * charset.c (Fdefine_charset_internal): Fix setting of 89442008-02-01 Kenichi Handa <handa@m17n.org>
8945 emacs_mule_bytes. 8945
8946 8946 * coding.c (decode_eol): Pay attention to buffer relocation in
89472008-02-01 Kenichi Handa <handa@m17n.org> 8947 del_range_2.
8948 8948 (decode_coding): Call decode_eol before restoring undo_list.
8949 * keyboard.c (read_char): Check if C is a character or not before 8949
8950 looking up Vkeyboard_translate_table. 89502008-02-01 Kenichi Handa <handa@m17n.org>
8951 8951
89522008-02-01 Kenichi Handa <handa@m17n.org> 8952 * charset.c (Fdefine_charset_internal): Fix setting of
8953 8953 emacs_mule_bytes.
8954 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix 8954
8955 condition to terminate the loop. 89552008-02-01 Kenichi Handa <handa@m17n.org>
8956 8956
89572008-02-01 Kenichi Handa <handa@m17n.org> 8957 * keyboard.c (read_char): Check if C is a character or not before
8958 8958 looking up Vkeyboard_translate_table.
8959 * coding.c (produce_composition): Compare charbuf[i] instead of 8959
8960 args[i] against 0. 89602008-02-01 Kenichi Handa <handa@m17n.org>
8961 (Fterminal_coding_system): Use EQ to compare Lisp objects. 8961
8962 8962 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
89632008-02-01 Kenichi Handa <handa@m17n.org> 8963 condition to terminate the loop.
8964 8964
8965 * coding.c (DECODE_COMPOSITION_START): If the source is short, set 89652008-02-01 Kenichi Handa <handa@m17n.org>
8966 coding->result to CODING_RESULT_INSUFFICIENT_SRC. 8966
8967 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of 8967 * coding.c (produce_composition): Compare charbuf[i] instead of
8968 detect_coding. 8968 args[i] against 0.
8969 (emacs_mule_char): Handle old style (Emacs 20) component character 8969 (Fterminal_coding_system): Use EQ to compare Lisp objects.
8970 of a composition. 8970
8971 (DECODE_EMACS_MULE_COMPOSITION_RULE_20) 89712008-02-01 Kenichi Handa <handa@m17n.org>
8972 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a 8972
8973 composition rule. 8973 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
8974 (decode_coding_emacs_mule): Handle invalid bytes correctly. 8974 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
8975 8975 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
89762008-02-01 Kenichi Handa <handa@m17n.org> 8976 detect_coding.
8977 8977 (emacs_mule_char): Handle old style (Emacs 20) component character
8978 * coding.c (encode_coding_ccl): Allocate destination dynamically 8978 of a composition.
8979 when necessary. 8979 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
8980 8980 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
89812008-02-01 Kenichi Handa <handa@m17n.org> 8981 composition rule.
8982 8982 (decode_coding_emacs_mule): Handle invalid bytes correctly.
8983 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating 8983
8984 the loop. When quitted, show a proper error message. 89842008-02-01 Kenichi Handa <handa@m17n.org>
8985 8985
89862008-02-01 Kenichi Handa <handa@m17n.org> 8986 * coding.c (encode_coding_ccl): Allocate destination dynamically
8987 8987 when necessary.
8988 * xterm.c (x_set_glyph_string_clipping_exactly): Set 8988
8989 src->clip_head and src->clip_tail temporarily instead of src->hl. 89892008-02-01 Kenichi Handa <handa@m17n.org>
8990 8990
8991 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte 8991 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
8992 character sequence. 8992 the loop. When quitted, show a proper error message.
8993 (Fccl_execute_on_string): Use ASET, not XSET. 8993
8994 89942008-02-01 Kenichi Handa <handa@m17n.org>
89952008-02-01 Kenichi Handa <handa@m17n.org> 8995
8996 8996 * xterm.c (x_set_glyph_string_clipping_exactly): Set
8997 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp. 8997 src->clip_head and src->clip_tail temporarily instead of src->hl.
8998 8998
89992008-02-01 Kenichi Handa <handa@m17n.org> 8999 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
9000 9000 character sequence.
9001 * coding.c (decode_coding): Fix the condition of terminating the 9001 (Fccl_execute_on_string): Use ASET, not XSET.
9002 decoding loop. 9002
9003 90032008-02-01 Kenichi Handa <handa@m17n.org>
90042008-02-01 Kenichi Handa <handa@m17n.org> 9004
9005 9005 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
9006 * data.c (Faset): On setting a character bigger than 255 in a 9006
9007 unibyte string, signal an error instead of make the string multibyte. 90072008-02-01 Kenichi Handa <handa@m17n.org>
9008 9008
90092008-02-01 Kenichi Handa <handa@m17n.org> 9009 * coding.c (decode_coding): Fix the condition of terminating the
9010 9010 decoding loop.
9011 * charset.c (map_charset_chars): Fix for ascii-compatible charset 9011
9012 made by a mapping table. 90122008-02-01 Kenichi Handa <handa@m17n.org>
9013 9013
90142008-02-01 Kenichi Handa <handa@m17n.org> 9014 * data.c (Faset): On setting a character bigger than 255 in a
9015 9015 unibyte string, signal an error instead of make the string multibyte.
9016 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or 9016
9017 not. 90172008-02-01 Kenichi Handa <handa@m17n.org>
9018 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL. 9018
9019 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly. 9019 * charset.c (map_charset_chars): Fix for ascii-compatible charset
9020 9020 made by a mapping table.
9021 * xterm.c (x_draw_composite_glyph_string_foreground): Check 9021
9022 s->face is NULL or not. 90222008-02-01 Kenichi Handa <handa@m17n.org>
9023 9023
90242008-02-01 Kenichi Handa <handa@m17n.org> 9024 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
9025 9025 not.
9026 * xterm.c (x_set_glyph_string_clipping_exactly): New function. 9026 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
9027 (x_draw_glyph_string): Fix drawing of right_overhang and 9027 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
9028 left_overhang around/on cursor. 9028
9029 9029 * xterm.c (x_draw_composite_glyph_string_foreground): Check
9030 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs. 9030 s->face is NULL or not.
9031 9031
90322008-02-01 Kenichi Handa <handa@m17n.org> 90322008-02-01 Kenichi Handa <handa@m17n.org>
9033 9033
9034 * xdisp.c (x_produce_glyphs): Handle composition with TAB. 9034 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
9035 9035 (x_draw_glyph_string): Fix drawing of right_overhang and
90362008-02-01 Kenichi Handa <handa@m17n.org> 9036 left_overhang around/on cursor.
9037 9037
9038 * coding.c (Fdefine_coding_system_internal) 9038 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
9039 (Fdefine_coding_system_alias): Avoid a duplicated element in 9039
9040 Vcoding_system_alist. 90402008-02-01 Kenichi Handa <handa@m17n.org>
9041 9041
90422008-02-01 Kenichi Handa <handa@m17n.org> 9042 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
9043 9043
9044 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. 90442008-02-01 Kenichi Handa <handa@m17n.org>
9045 9045
9046 * coding.c (Qcoding_system_define_form): New variable. 9046 * coding.c (Fdefine_coding_system_internal)
9047 (syms_of_coding): Intern and staticpro it. 9047 (Fdefine_coding_system_alias): Avoid a duplicated element in
9048 (Fcoding_system_p): Check Qcoding_system_define_form. 9048 Vcoding_system_alist.
9049 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM. 9049
9050 90502008-02-01 Kenichi Handa <handa@m17n.org>
9051 * coding.h (CODING_SYSTEM_P): If ID is not available, call 9051
9052 Fcoding_system_p. 9052 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
9053 (CHECK_CODING_SYSTEM): If ID is not available, call 9053
9054 Fcheck_coding_system. 9054 * coding.c (Qcoding_system_define_form): New variable.
9055 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID): 9055 (syms_of_coding): Intern and staticpro it.
9056 Try also Fcheck_coding_system. 9056 (Fcoding_system_p): Check Qcoding_system_define_form.
9057 9057 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
90582008-02-01 Kenichi Handa <handa@m17n.org> 9058
9059 9059 * coding.h (CODING_SYSTEM_P): If ID is not available, call
9060 * coding.c (code_conversion_restore): GCPRO arg. 9060 Fcoding_system_p.
9061 9061 (CHECK_CODING_SYSTEM): If ID is not available, call
90622008-02-01 Kenichi Handa <handa@m17n.org> 9062 Fcheck_coding_system.
9063 9063 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
9064 * character.c (lisp_string_width): Check multibyteness of STRING. 9064 Try also Fcheck_coding_system.
9065 9065
90662008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 90662008-02-01 Kenichi Handa <handa@m17n.org>
9067 9067
9068 * macterm.c (mac_encode_char): Call ccl_driver with the last arg 9068 * coding.c (code_conversion_restore): GCPRO arg.
9069 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS. 9069
9070 (decode_mac_font_name): Use decode_coding_c_string instead of 90702008-02-01 Kenichi Handa <handa@m17n.org>
9071 decode_coding. 9071
9072 (x_load_font): Initialize fontp->fontset to -1. Set 9072 * character.c (lisp_string_width): Check multibyteness of STRING.
9073 fontp->encoding_type. 9073
9074 90742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
90752008-02-01 Kenichi Handa <handa@m17n.org> 9075
9076 9076 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
9077 * search.c (search_buffer): Give up BM search on case-fold-search 9077 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
9078 if one of a target character has a case-equivalence of different 9078 (decode_mac_font_name): Use decode_coding_c_string instead of
9079 byte length even if that target charcter is an ASCII. 9079 decode_coding.
9080 (simple_search): Fix calculation of byte length of matched text. 9080 (x_load_font): Initialize fontp->fontset to -1. Set
9081 (boyer_moore): Fix handling of case-equivalent multibyte characters. 9081 fontp->encoding_type.
9082 9082
90832008-02-01 Kenichi Handa <handa@m17n.org> 90832008-02-01 Kenichi Handa <handa@m17n.org>
9084 9084
9085 * coding.c (decode_coding): Fix handling of invalid bytes. 9085 * search.c (search_buffer): Give up BM search on case-fold-search
9086 9086 if one of a target character has a case-equivalence of different
90872008-02-01 Kenichi Handa <handa@m17n.org> 9087 byte length even if that target charcter is an ASCII.
9088 9088 (simple_search): Fix calculation of byte length of matched text.
9089 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to 9089 (boyer_moore): Fix handling of case-equivalent multibyte characters.
9090 Unicode characters. 9090
9091 90912008-02-01 Kenichi Handa <handa@m17n.org>
90922008-02-01 Kenichi Handa <handa@m17n.org> 9092
9093 9093 * coding.c (decode_coding): Fix handling of invalid bytes.
9094 * coding.c (encode_coding_object): If a pre-write-conversion 9094
9095 function makes a new buffer, kill it. 90952008-02-01 Kenichi Handa <handa@m17n.org>
9096 9096
90972008-02-01 Kenichi Handa <handa@m17n.org> 9097 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
9098 9098 Unicode characters.
9099 * coding.c (QCascii_compatible_p): New variable. 9099
9100 (syms_of_coding): Initialize it. 91002008-02-01 Kenichi Handa <handa@m17n.org>
9101 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before 9101
9102 calling string_char. 9102 * coding.c (encode_coding_object): If a pre-write-conversion
9103 (record_conversion_result): Add `default:' case. 9103 function makes a new buffer, kill it.
9104 (coding_charset_list): Delete unused variable `coding_type'. 9104
9105 (Fdefine_coding_system_internal): Add `ascii-compatible-p' 91052008-02-01 Kenichi Handa <handa@m17n.org>
9106 property in the plist of the coding system. 9106
9107 (Fcoding_system_put): Check QCascii_compatible_p. 9107 * coding.c (QCascii_compatible_p): New variable.
9108 9108 (syms_of_coding): Initialize it.
91092008-02-01 Miles Bader <miles@gnu.org> 9109 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
9110 9110 calling string_char.
9111 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously 9111 (record_conversion_result): Add `default:' case.
9112 removed calculation of frame `f', as it's now used. 9112 (coding_charset_list): Delete unused variable `coding_type'.
9113 9113 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
91142008-02-01 Kenichi Handa <handa@m17n.org> 9114 property in the plist of the coding system.
9115 9115 (Fcoding_system_put): Check QCascii_compatible_p.
9116 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined. 9116
9117 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally. 91172008-02-01 Miles Bader <miles@gnu.org>
9118 (UNIDATA): New variable. 9118
9119 (${lispsource}international/charprop.el): Depends on ${UNIDATA}. 9119 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
9120 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run 9120 removed calculation of frame `f', as it's now used.
9121 $(RUN_TEMACS) unconditionally. 9121
9122 91222008-02-01 Kenichi Handa <handa@m17n.org>
91232008-02-01 Kenichi Handa <handa@m17n.org> 9123
9124 9124 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
9125 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary. 9125 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
9126 (admindir): New variable. 9126 (UNIDATA): New variable.
9127 ($(lispsource)international/charprop.el): New target. 9127 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
9128 9128 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
91292008-02-01 Miles Bader <miles@gnu.org> 9129 $(RUN_TEMACS) unconditionally.
9130 9130
9131 * character.c (chars-in-region): Remove obsolete function. 91312008-02-01 Kenichi Handa <handa@m17n.org>
9132 (syms_of_character): Remove its initialization. 9132
9133 9133 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
91342008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net> 9134 (admindir): New variable.
9135 9135 ($(lispsource)international/charprop.el): New target.
9136 * w32select.c (validate_coding_system) 9136
9137 (setup_windows_coding_system): New functions. 91372008-02-01 Miles Bader <miles@gnu.org>
9138 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use 9138
9139 setup_windows_coding_system. 9139 * character.c (chars-in-region): Remove obsolete function.
9140 (setup_config, Fw32_get_clipboard_data): Use 9140 (syms_of_character): Remove its initialization.
9141 validate_coding_system. 9141
9142 (Fx_selection_exists): Move call to setup_config to a place 91422008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
9143 where signals are allowed. 9143
9144 9144 * w32select.c (validate_coding_system)
9145 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type) 9145 (setup_windows_coding_system): New functions.
9146 (Fcheck_coding_system): Add declarations. 9146 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
9147 9147 setup_windows_coding_system.
91482008-02-01 Kenichi Handa <handa@m17n.org> 9148 (setup_config, Fw32_get_clipboard_data): Use
9149 9149 validate_coding_system.
9150 * charset.c (load_charset_map_from_vector): Fix for the first iteration. 9150 (Fx_selection_exists): Move call to setup_config to a place
9151 9151 where signals are allowed.
91522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 9152
9153 9153 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
9154 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp 9154 (Fcheck_coding_system): Add declarations.
9155 string as the second argument for x_new_fontset. 9155
9156 91562008-02-01 Kenichi Handa <handa@m17n.org>
91572008-02-01 Kenichi Handa <handa@m17n.org> 9157
9158 9158 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
9159 * coding.c (decode_coding_object): Use safe_call1 instead of call1. 9159
9160 (encode_coding_object): Use safe_call instead of call2. 91602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9161 9161
91622008-02-01 Kenichi Handa <handa@m17n.org> 9162 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
9163 9163 string as the second argument for x_new_fontset.
9164 * fontset.c (Fset_fontset_font): Check family element of a given vector. 9164
9165 91652008-02-01 Kenichi Handa <handa@m17n.org>
9166 * Makefile.in (lisp): Include charprop.el. 9166
9167 9167 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
91682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 9168 (encode_coding_object): Use safe_call instead of call2.
9169 9169
9170 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash. 91702008-02-01 Kenichi Handa <handa@m17n.org>
9171 Not sure if it's unnecessary. 9171
9172 9172 * fontset.c (Fset_fontset_font): Check family element of a given vector.
91732008-02-01 Steven Tamm <steventamm@mac.com> 9173
9174 9174 * Makefile.in (lisp): Include charprop.el.
9175 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out 9175
9176 some possibly unnecessary fontset checking code that crashed 91762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9177 when creating a new frame. 9177
9178 9178 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
91792008-02-01 Kenichi Handa <handa@m17n.org> 9179 Not sure if it's unnecessary.
9180 9180
9181 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and 91812008-02-01 Steven Tamm <steventamm@mac.com>
9182 lookup_face. 9182
9183 9183 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
9184 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face. 9184 some possibly unnecessary fontset checking code that crashed
9185 9185 when creating a new frame.
9186 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face. 9186
9187 91872008-02-01 Kenichi Handa <handa@m17n.org>
91882008-02-01 Kenichi Handa <handa@m17n.org> 9188
9189 9189 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
9190 * coding.c: Cancel the change done in HEAD on 2008-02-01. 9190 lookup_face.
9191 (coding_charset_list): New function. 9191
9192 9192 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
9193 * coding.h (coding_charset_list): Extern it. 9193
9194 9194 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
91952008-02-01 Kenichi Handa <handa@m17n.org> 9195
9196 91962008-02-01 Kenichi Handa <handa@m17n.org>
9197 * fontset.c (Fset_fontset_font): Call find_font_encoding with 9197
9198 concatenation of family and registry. 9198 * coding.c: Cancel the change done in HEAD on 2008-02-01.
9199 9199 (coding_charset_list): New function.
92002008-02-01 Kenichi Handa <handa@m17n.org> 9200
9201 9201 * coding.h (coding_charset_list): Extern it.
9202 * character.h (BYTE8_STRING): Fix typo. 9202
9203 92032008-02-01 Kenichi Handa <handa@m17n.org>
9204 * editfns.c (Ftranslate_region_internal): Don't convert unibyte 9204
9205 string to multibyte (sync to HEAD). 9205 * fontset.c (Fset_fontset_font): Call find_font_encoding with
9206 9206 concatenation of family and registry.
9207 * casefiddle.c (casify_region): Handle changes in byte-length 9207
9208 using replace_range_2 (sync to HEAD). 92082008-02-01 Kenichi Handa <handa@m17n.org>
9209 9209
92102008-02-01 Andreas Schwab <schwab@suse.de> 9210 * character.h (BYTE8_STRING): Fix typo.
9211 9211
9212 * chartab.c (map_char_table): GCPRO table and arg. 9212 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
9213 9213 string to multibyte (sync to HEAD).
92142008-02-01 Kenichi Handa <handa@m17n.org> 9214
9215 9215 * casefiddle.c (casify_region): Handle changes in byte-length
9216 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is 9216 using replace_range_2 (sync to HEAD).
9217 already at limit. 9217
9218 92182008-02-01 Andreas Schwab <schwab@suse.de>
92192008-02-01 Kenichi Handa <handa@m17n.org> 9219
9220 9220 * chartab.c (map_char_table): GCPRO table and arg.
9221 * fontset.c (fs_load_font): Use fast_string_match_ignore_case 9221
9222 instead of fast_c_string_match_ignore_case. 92222008-02-01 Kenichi Handa <handa@m17n.org>
9223 (find_font_encoding): Change argument to Lisp_Object. Use 9223
9224 fast_string_match_ignore_case instead of 9224 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
9225 fast_c_string_match_ignore_case. Change caller. 9225 already at limit.
9226 9226
92272008-02-01 Kenichi Handa <handa@m17n.org> 92272008-02-01 Kenichi Handa <handa@m17n.org>
9228 9228
9229 * xdisp.c (get_next_display_element): In unibyte case, decide to 9229 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
9230 display in octal form by checking a character by 9230 instead of fast_c_string_match_ignore_case.
9231 UNIBYTE_CHAR_HAS_MULTIBYTE_P. 9231 (find_font_encoding): Change argument to Lisp_Object. Use
9232 9232 fast_string_match_ignore_case instead of
9233 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table. 9233 fast_c_string_match_ignore_case. Change caller.
9234 9234
9235 * character.c (unibyte_has_multibyte_table): New variable. 92352008-02-01 Kenichi Handa <handa@m17n.org>
9236 9236
9237 * character.h (unibyte_has_multibyte_table): Extern it. 9237 * xdisp.c (get_next_display_element): In unibyte case, decide to
9238 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro. 9238 display in octal form by checking a character by
9239 9239 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
92402008-02-01 Kenichi Handa <handa@m17n.org> 9240
9241 9241 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
9242 * coding.c (encode_coding_iso_2022): Fix handling of charset 9242
9243 annotation. 9243 * character.c (unibyte_has_multibyte_table): New variable.
9244 9244
92452008-02-01 Kenichi Handa <handa@m17n.org> 9245 * character.h (unibyte_has_multibyte_table): Extern it.
9246 9246 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
9247 * coding.c (setup_coding_system): If coding_system is nil, use 9247
9248 Qundecided. 92482008-02-01 Kenichi Handa <handa@m17n.org>
9249 (Fterminal_coding_system): Return nil if terminal coding system is 9249
9250 `undecided'. 9250 * coding.c (encode_coding_iso_2022): Fix handling of charset
9251 (syms_of_coding): Define coding-system `undecided' here. Setup 9251 annotation.
9252 terminal_coding as `undecided'. 9252
9253 92532008-02-01 Kenichi Handa <handa@m17n.org>
92542008-02-01 Kenichi Handa <handa@m17n.org> 9254
9255 9255 * coding.c (setup_coding_system): If coding_system is nil, use
9256 * xdisp.c (message_dolog, set_message_1): Call 9256 Qundecided.
9257 unibyte_char_to_multibyte with arg type int. 9257 (Fterminal_coding_system): Return nil if terminal coding system is
9258 9258 `undecided'.
9259 * lread.c (read1): Fix reading of a char-table. 9259 (syms_of_coding): Define coding-system `undecided' here. Setup
9260 9260 terminal_coding as `undecided'.
9261 * print.c (print_object): Include sub char-table in circularities 9261
9262 detection. 92622008-02-01 Kenichi Handa <handa@m17n.org>
9263 9263
92642008-02-01 Kenichi Handa <handa@m17n.org> 9264 * xdisp.c (message_dolog, set_message_1): Call
9265 9265 unibyte_char_to_multibyte with arg type int.
9266 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons. 9266
9267 Append the found sequences in car of ARGS instead of prepending. 9267 * lread.c (read1): Fix reading of a char-table.
9268 9268
92692008-02-01 Kenichi Handa <handa@m17n.org> 9269 * print.c (print_object): Include sub char-table in circularities
9270 9270 detection.
9271 * fileio.c (report_file_error): Make a unibyte string from 9271
9272 strerror (errorno). 92722008-02-01 Kenichi Handa <handa@m17n.org>
9273 (Fsubstitute_in_file_name): Fix the arg to 9273
9274 unibyte_char_to_multibyte. It is evaluated twice. 9274 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
9275 9275 Append the found sequences in car of ARGS instead of prepending.
92762008-02-01 Kenichi Handa <handa@m17n.org> 9276
9277 92772008-02-01 Kenichi Handa <handa@m17n.org>
9278 * charset.h (CHAR_CHARSET): Shortcut for ASCII case. 9278
9279 9279 * fileio.c (report_file_error): Make a unibyte string from
92802008-02-01 Kenichi Handa <handa@m17n.org> 9280 strerror (errorno).
9281 9281 (Fsubstitute_in_file_name): Fix the arg to
9282 * coding.c (detect_coding_utf_16): Don't set detect_info->found if 9282 unibyte_char_to_multibyte. It is evaluated twice.
9283 BOM is not found. 9283
9284 (detect_coding, detect_coding_system): Optimization for ISO-2022 92842008-02-01 Kenichi Handa <handa@m17n.org>
9285 when no 8-bit data is found. 9285
9286 9286 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
92872008-02-01 Jason Rumney <jasonr@gnu.org> 9287
9288 92882008-02-01 Kenichi Handa <handa@m17n.org>
9289 * w32fns.c (x_to_w32_font): Update to use new coding struct. 9289
9290 9290 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
92912008-02-01 Kenichi Handa <handa@m17n.org> 9291 BOM is not found.
9292 9292 (detect_coding, detect_coding_system): Optimization for ISO-2022
9293 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of 9293 when no 8-bit data is found.
9294 CHARS. 9294
9295 92952008-02-01 Jason Rumney <jasonr@gnu.org>
92962008-02-01 Steven Tamm <steventamm@mac.com> 9296
9297 9297 * w32fns.c (x_to_w32_font): Update to use new coding struct.
9298 * macterm.c (mac_encode_char): Add charset argument and update 9298
9299 to use encoding_type. 92992008-02-01 Kenichi Handa <handa@m17n.org>
9300 (x_new_font, x_new_fontset): Merge in changes from xterm.c; 9300
9301 switch to pure fontset. 9301 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
9302 (decode_mac_font_name): Temporarily remove decoding. 9302 CHARS.
9303 (x_font_name_to_mac_font_name): Temporarily remove encoding. 9303
9304 (x_load_font): Temporarily remove encoding. 93042008-02-01 Steven Tamm <steventamm@mac.com>
9305 9305
93062008-02-01 Kenichi Handa <handa@m17n.org> 9306 * macterm.c (mac_encode_char): Add charset argument and update
9307 9307 to use encoding_type.
9308 * xfaces.c (Fface_font): If frame is not on a window system, 9308 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
9309 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't 9309 switch to pure fontset.
9310 refer to face->font. 9310 (decode_mac_font_name): Temporarily remove decoding.
9311 (split_font_name_into_vector, build_font_name_from_vector) 9311 (x_font_name_to_mac_font_name): Temporarily remove encoding.
9312 (lookup_non_ascii_face, realize_non_ascii_face): Define them only 9312 (x_load_font): Temporarily remove encoding.
9313 when HAVE_WINDOW_SYSTEM is defined. 9313
9314 93142008-02-01 Kenichi Handa <handa@m17n.org>
93152008-02-01 Kenichi Handa <handa@m17n.org> 9315
9316 9316 * xfaces.c (Fface_font): If frame is not on a window system,
9317 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL. 9317 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
9318 (x_produce_glyphs): Fix setting of members of cmp in case 9318 refer to face->font.
9319 cmp->glyph_len is zero. 9319 (split_font_name_into_vector, build_font_name_from_vector)
9320 9320 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
9321 * fontset.c (Fset_fontset_font): Fix docstring. 9321 when HAVE_WINDOW_SYSTEM is defined.
9322 (Ffontset_info): Make it backward compatible. New arg ALL. 9322
9323 93232008-02-01 Kenichi Handa <handa@m17n.org>
93242008-02-01 Kim F. Storm <storm@cua.dk> 9324
9325 9325 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
9326 * process.c (read_process_output): Grow decoding_buf when needed; 9326 (x_produce_glyphs): Fix setting of members of cmp in case
9327 this could cause a crash in allocate_string and compact_small_strings. 9327 cmp->glyph_len is zero.
9328 9328
93292008-02-01 Kenichi Handa <handa@m17n.org> 9329 * fontset.c (Fset_fontset_font): Fix docstring.
9330 9330 (Ffontset_info): Make it backward compatible. New arg ALL.
9331 * fileio.c (WRITE_BUF_SIZE): Delete this macro. 9331
9332 93322008-02-01 Kim F. Storm <storm@cua.dk>
93332008-02-01 Kenichi Handa <handa@m17n.org> 9333
9334 9334 * process.c (read_process_output): Grow decoding_buf when needed;
9335 * coding.c (setup_coding_system): Set coding->common_flags 9335 this could cause a crash in allocate_string and compact_small_strings.
9336 correctly for raw-text. 9336
9337 (consume_chars): On encoding unibyte text by raw-text, don't check 93372008-02-01 Kenichi Handa <handa@m17n.org>
9338 multibyte form. 9338
9339 (encode_coding): On encoding by raw-text, never use translation tables. 9339 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
9340 9340
9341 * fileio.c (e_write): Short cut for the case of no encoding. 93412008-02-01 Kenichi Handa <handa@m17n.org>
9342 9342
93432008-02-01 Kenichi Handa <handa@m17n.org> 9343 * coding.c (setup_coding_system): Set coding->common_flags
9344 9344 correctly for raw-text.
9345 * coding.c (detect_coding, detect_coding_system): Delete unused 9345 (consume_chars): On encoding unibyte text by raw-text, don't check
9346 variables. 9346 multibyte form.
9347 9347 (encode_coding): On encoding by raw-text, never use translation tables.
93482008-02-01 Kenichi Handa <handa@m17n.org> 9348
9349 9349 * fileio.c (e_write): Short cut for the case of no encoding.
9350 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char. 9350
9351 (consume_chars): Fix handling of 8-bit bytes in unibyte source. 93512008-02-01 Kenichi Handa <handa@m17n.org>
9352 9352
93532008-02-01 Kenichi Handa <handa@m17n.org> 9353 * coding.c (detect_coding, detect_coding_system): Delete unused
9354 9354 variables.
9355 * coding.c (Ffind_coding_systems_region_internal): Include 9355
9356 raw-text and no-conversion in the result. 93562008-02-01 Kenichi Handa <handa@m17n.org>
9357 9357
93582008-02-01 Kenichi Handa <handa@m17n.org> 9358 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
9359 9359 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
9360 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding. 9360
9361 (load_font_get_repertory): Delete unnecessary check of ENCODING of 93612008-02-01 Kenichi Handa <handa@m17n.org>
9362 FONT_DEF. 9362
9363 (font_def_arg, add_arg, from_arg, to_arg): New args. 9363 * coding.c (Ffind_coding_systems_region_internal): Include
9364 (set_fontset_font): Change argument. 9364 raw-text and no-conversion in the result.
9365 (Fset_fontset_font): Fix for the case that TARGET is a script 9365
9366 name and charset name. 93662008-02-01 Kenichi Handa <handa@m17n.org>
9367 (new_fontset_from_font_name): Fix argument to Fnew_fontset. 9367
9368 9368 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
93692008-02-01 Kenichi Handa <handa@m17n.org> 9369 (load_font_get_repertory): Delete unnecessary check of ENCODING of
9370 9370 FONT_DEF.
9371 * fontset.c (fontset_font): Rename from fontset_face. Change return 9371 (font_def_arg, add_arg, from_arg, to_arg): New args.
9372 value. 9372 (set_fontset_font): Change argument.
9373 (face_suitable_for_char_p, face_for_char): Adjust for the change 9373 (Fset_fontset_font): Fix for the case that TARGET is a script
9374 of fontset_font. 9374 name and charset name.
9375 (make_fontset_for_ascii_face): Fix setting of the fontset element 9375 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
9376 for ASCII. 9376
9377 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR 93772008-02-01 Kenichi Handa <handa@m17n.org>
9378 to get a font name. 9378
9379 (Ffontset_info): Adjust for the change of fontset_font. 9379 * fontset.c (fontset_font): Rename from fontset_face. Change return
9380 9380 value.
9381 * coding.c (emacs_mule_char): Check invalid code more rigidly. 9381 (face_suitable_for_char_p, face_for_char): Adjust for the change
9382 9382 of fontset_font.
9383 * character.h (LEADING_CODE_LATIN_1_MIN) 9383 (make_fontset_for_ascii_face): Fix setting of the fontset element
9384 (LEADING_CODE_LATIN_1_MAX): Delete these macros. 9384 for ASCII.
9385 9385 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
93862008-02-01 Kenichi Handa <handa@m17n.org> 9386 to get a font name.
9387 9387 (Ffontset_info): Adjust for the change of fontset_font.
9388 * editfns.c (check_translation): New function. 9388
9389 (Ftranslate_region_internal): Handle M:N mapping. 9389 * coding.c (emacs_mule_char): Check invalid code more rigidly.
9390 9390
93912008-02-01 Kenichi Handa <handa@m17n.org> 9391 * character.h (LEADING_CODE_LATIN_1_MIN)
9392 9392 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
9393 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE]. 9393
9394 93942008-02-01 Kenichi Handa <handa@m17n.org>
93952008-02-01 Kenichi Handa <handa@m17n.org> 9395
9396 9396 * editfns.c (check_translation): New function.
9397 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of 9397 (Ftranslate_region_internal): Handle M:N mapping.
9398 goto invalid_code. 9398
9399 (decode_coding_iso_2022): Fix handling of invalid designation. 93992008-02-01 Kenichi Handa <handa@m17n.org>
9400 9400
9401 * fileio.c (Finsert_file_contents): Be sure to call unbind_to 9401 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
9402 after calling code_conversion_save. 9402
9403 94032008-02-01 Kenichi Handa <handa@m17n.org>
94042008-02-01 Kenichi Handa <handa@m17n.org> 9404
9405 9405 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
9406 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup. 9406 goto invalid_code.
9407 9407 (decode_coding_iso_2022): Fix handling of invalid designation.
9408 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup. 9408
9409 9409 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
9410 * fontset.c: Include "intervals.h". 9410 after calling code_conversion_save.
9411 (fontset_face): Fix comparing of Lisp_Objects. 9411
9412 (free_face_fontset, new_fontset_from_font_name): Fix 94122008-02-01 Kenichi Handa <handa@m17n.org>
9413 Lisp_Object/int mixup. 9413
9414 9414 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
9415 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup. 9415
9416 9416 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
9417 * coding.c: Add many prototypes for static functions. 9417
9418 (get_translation_table): Allow max_lookup to be NULL. 9418 * fontset.c: Include "intervals.h".
9419 (decode_coding, Ffind_coding_systems_region_internal) 9419 (fontset_face): Fix comparing of Lisp_Objects.
9420 (Funencodable_char_position, Fcheck_coding_systems_region): Call 9420 (free_face_fontset, new_fontset_from_font_name): Fix
9421 get_translation_table with max_lookup NULL. 9421 Lisp_Object/int mixup.
9422 9422
94232008-02-01 Kenichi Handa <handa@m17n.org> 9423 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
9424 9424
9425 * coding.c (get_translation_table): Declare it as Lisp_Object. 9425 * coding.c: Add many prototypes for static functions.
9426 (LOOKUP_TRANSLATION_TABLE): New macro. 9426 (get_translation_table): Allow max_lookup to be NULL.
9427 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE 9427 (decode_coding, Ffind_coding_systems_region_internal)
9428 instead of CHAR_TABLE_REF. 9428 (Funencodable_char_position, Fcheck_coding_systems_region): Call
9429 9429 get_translation_table with max_lookup NULL.
94302008-02-01 Kenichi Handa <handa@m17n.org> 9430
9431 94312008-02-01 Kenichi Handa <handa@m17n.org>
9432 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of 9432
9433 annotation data format. 9433 * coding.c (get_translation_table): Declare it as Lisp_Object.
9434 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): 9434 (LOOKUP_TRANSLATION_TABLE): New macro.
9435 Change arguments FROM and TO to single argument NCHARS. Change caller. 9435 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
9436 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule) 9436 instead of CHAR_TABLE_REF.
9437 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) 9437
9438 (decode_coding_ccl, decode_coding_charset): Pay attention to 94382008-02-01 Kenichi Handa <handa@m17n.org>
9439 coding->charbuf_used. 9439
9440 (get_translation): New function. 9440 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
9441 (produce_chars): New arguments translation_table and last_block. 9441 annotation data format.
9442 Translate characters here. Return number of carryover chars. 9442 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
9443 Change caller. 9443 Change arguments FROM and TO to single argument NCHARS. Change caller.
9444 (produce_composition): New argument pos. Change caller. 9444 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
9445 Adjust for the change of annotation data format. 9445 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9446 (produce_charset, produce_annotation): Likewise. 9446 (decode_coding_ccl, decode_coding_charset): Pay attention to
9447 (decode_coding, encode_coding): Don't call translate_chars. 9447 coding->charbuf_used.
9448 (consume_chars): New arg translation_table. Change caller. 9448 (get_translation): New function.
9449 (translate_chars): Delete. 9449 (produce_chars): New arguments translation_table and last_block.
9450 (syms_of_coding): Make translation-table's number of extra slots 2. 9450 Translate characters here. Return number of carryover chars.
9451 9451 Change caller.
94522008-02-01 Kenichi Handa <handa@m17n.org> 9452 (produce_composition): New argument pos. Change caller.
9453 9453 Adjust for the change of annotation data format.
9454 * search.c (simple_search): Fix setting this_pos_byte in backward 9454 (produce_charset, produce_annotation): Likewise.
9455 search. 9455 (decode_coding, encode_coding): Don't call translate_chars.
9456 9456 (consume_chars): New arg translation_table. Change caller.
9457 * coding.c (detect_coding_emacs_mule): Fix counting of encoded 9457 (translate_chars): Delete.
9458 byte sequence. 9458 (syms_of_coding): Make translation-table's number of extra slots 2.
9459 (detect_coding_ccl): Fix setting of the variable valids. 9459
9460 94602008-02-01 Kenichi Handa <handa@m17n.org>
94612008-02-01 Kenichi Handa <handa@m17n.org> 9461
9462 9462 * search.c (simple_search): Fix setting this_pos_byte in backward
9463 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font. 9463 search.
9464 9464
9465 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair. 9465 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
9466 9466 byte sequence.
9467 * editfns.c (Ftranslate_region_internal): Rename from 9467 (detect_coding_ccl): Fix setting of the variable valids.
9468 Ftranslate_region. Accept a char-table in TABLE. 9468
9469 (syms_of_editfns): Defsubr Stranslate_region_internal. 94692008-02-01 Kenichi Handa <handa@m17n.org>
9470 9470
9471 * xfaces.c (set_lface_from_font_name): If a font is specified for 9471 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
9472 a frame, generate a fontset from the font. 9472
9473 (build_scalable_font_name): If the scalable font is requested for 9473 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
9474 a specific size, don't change that size. 9474
9475 (try_font_list): Try a scalable font also in the case that a 9475 * editfns.c (Ftranslate_region_internal): Rename from
9476 pattern string is specified. 9476 Ftranslate_region. Accept a char-table in TABLE.
9477 9477 (syms_of_editfns): Defsubr Stranslate_region_internal.
94782008-02-01 Kenichi Handa <handa@m17n.org> 9478
9479 9479 * xfaces.c (set_lface_from_font_name): If a font is specified for
9480 * xfaces.c (Fface_font): New optional arg CHARACTER. 9480 a frame, generate a fontset from the font.
9481 9481 (build_scalable_font_name): If the scalable font is requested for
94822008-02-01 Kenichi Handa <handa@m17n.org> 9482 a specific size, don't change that size.
9483 9483 (try_font_list): Try a scalable font also in the case that a
9484 * charset.h (CHARSET_OFFSET): New macro. 9484 pattern string is specified.
9485 9485
94862008-02-01 Kenichi Handa <handa@m17n.org> 94862008-02-01 Kenichi Handa <handa@m17n.org>
9487 9487
9488 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset. 9488 * xfaces.c (Fface_font): New optional arg CHARACTER.
9489 9489
9490 * fontset.c (fontset_face): Handle the case that repertory is a 94902008-02-01 Kenichi Handa <handa@m17n.org>
9491 char-table. 9491
9492 (find_font_encoding): Return nil for unknown encoding. 9492 * charset.h (CHARSET_OFFSET): New macro.
9493 (Fset_fontset_font): Ignore a font of unknown encoding. 9493
9494 94942008-02-01 Kenichi Handa <handa@m17n.org>
94952008-02-01 Kenichi Handa <handa@m17n.org> 9495
9496 9496 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
9497 * keymap.c (describe_vector): Handle default value of a char table. 9497
9498 9498 * fontset.c (fontset_face): Handle the case that repertory is a
9499 * fontset.c (fontset_face): Handle fallback fonts correctly. 9499 char-table.
9500 (Ffontset_info): Return infomation about fallback fonts. 9500 (find_font_encoding): Return nil for unknown encoding.
9501 9501 (Fset_fontset_font): Ignore a font of unknown encoding.
95022008-02-01 Kenichi Handa <handa@m17n.org> 9502
9503 95032008-02-01 Kenichi Handa <handa@m17n.org>
9504 * fontset.c (FONTSET_DEFAULT): New macro. 9504
9505 (FONTSET_ADD, fontset_add): Handle the case that range is nil. 9505 * keymap.c (describe_vector): Handle default value of a char table.
9506 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle 9506
9507 the case that it is nil. 9507 * fontset.c (fontset_face): Handle fallback fonts correctly.
9508 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK. 9508 (Ffontset_info): Return infomation about fallback fonts.
9509 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9. 9509
9510 95102008-02-01 Kenichi Handa <handa@m17n.org>
9511 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is 9511
9512 subset or superset. 9512 * fontset.c (FONTSET_DEFAULT): New macro.
9513 9513 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
95142008-02-01 Kenichi Handa <handa@m17n.org> 9514 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
9515 9515 the case that it is nil.
9516 * emacs.c (main): Call init_charset after syms_of_XXX. 9516 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
9517 9517 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
9518 * charset.c (Vcharset_map_directory): Delete. 9518
9519 (Vcharset_map_path): New variable. 9519 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
9520 (load_charset_map_from_file): Use Vcharset_map_path instead. 9520 subset or superset.
9521 (init_charset): Initialize Vcharset_map_path. 9521
9522 (syms_of_charset): Delete declaration of "charset-map-directory", 95222008-02-01 Kenichi Handa <handa@m17n.org>
9523 add declaration of "charset-map-path". 9523
9524 9524 * emacs.c (main): Call init_charset after syms_of_XXX.
95252008-02-01 Kenichi Handa <handa@m17n.org> 9525
9526 9526 * charset.c (Vcharset_map_directory): Delete.
9527 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for 9527 (Vcharset_map_path): New variable.
9528 ASCII only string. 9528 (load_charset_map_from_file): Use Vcharset_map_path instead.
9529 9529 (init_charset): Initialize Vcharset_map_path.
9530 * fileio.c (Finsert_file_contents): Avoid detecting a code twice. 9530 (syms_of_charset): Delete declaration of "charset-map-directory",
9531 9531 add declaration of "charset-map-path".
9532 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. 9532
9533 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte. 95332008-02-01 Kenichi Handa <handa@m17n.org>
9534 9534
95352008-02-01 Kenichi Handa <handa@m17n.org> 9535 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
9536 9536 ASCII only string.
9537 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros. 9537
9538 9538 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
9539 * coding.c (QCmnemonic, QCdefalut_char) 9539
9540 (QCdecode_translation_table, QCencode_translation_table) 9540 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
9541 (QCpost_read_conversion, QCpre_write_conversion): New variables. 9541 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
9542 (get_translation_table): Return a list of translation tables if 9542
9543 necessary. 95432008-02-01 Kenichi Handa <handa@m17n.org>
9544 (decode_coding): Call get_translation_table with ENCODEP 0. 9544
9545 (char_encodable_p): If translation_table is non-nil, always call 9545 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
9546 translate_char. 9546
9547 (Fdefine_coding_system_internal): Accept list of translation 9547 * coding.c (QCmnemonic, QCdefalut_char)
9548 tables as :encode-translation-table and :decode-translation-table. 9548 (QCdecode_translation_table, QCencode_translation_table)
9549 (Fcoding_system_put): New function. 9549 (QCpost_read_conversion, QCpre_write_conversion): New variables.
9550 (syms_of_coding): Declare new symbols. Defsubr 9550 (get_translation_table): Return a list of translation tables if
9551 Scoding_system_put. 9551 necessary.
9552 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset, 9552 (decode_coding): Call get_translation_table with ENCODEP 0.
9553 typically JISX0212. 9553 (char_encodable_p): If translation_table is non-nil, always call
9554 9554 translate_char.
9555 * charset.c (map_charset_chars): Fix arg to map_charset_chars in 9555 (Fdefine_coding_system_internal): Accept list of translation
9556 when the charset is superset type. 9556 tables as :encode-translation-table and :decode-translation-table.
9557 9557 (Fcoding_system_put): New function.
9558 * character.c (translate_char): Accept list of translation tables. 9558 (syms_of_coding): Declare new symbols. Defsubr
9559 9559 Scoding_system_put.
95602008-02-01 Kenichi Handa <handa@m17n.org> 9560 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
9561 9561 typically JISX0212.
9562 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl. 9562
9563 (CODING_ATTR_TRANS_TBL): New macro. 9563 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
9564 9564 when the charset is superset type.
9565 * coding.c (get_translation_table): New function. 9565
9566 (translate_chars): Fix the bug of skipping annotation data. 9566 * character.c (translate_char): Accept list of translation tables.
9567 (decode_coding, encode_coding): Utilize get_translation_table. 9567
9568 (char_encodable_p, Funencodable_char_position): Translate char if 95682008-02-01 Kenichi Handa <handa@m17n.org>
9569 necessary. 9569
9570 (Ffind_coding_systems_region_internal) 9570 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
9571 (Fcheck_coding_systems_region): Setup translation table for encode 9571 (CODING_ATTR_TRANS_TBL): New macro.
9572 in a coding system attribute vector in advance. 9572
9573 (Fdefine_coding_system_internal): Allow a symbol as translation 9573 * coding.c (get_translation_table): New function.
9574 table. For shift-jis type coding system, allow 4th charset. 9574 (translate_chars): Fix the bug of skipping annotation data.
9575 9575 (decode_coding, encode_coding): Utilize get_translation_table.
95762008-02-01 Kenichi Handa <handa@m17n.org> 9576 (char_encodable_p, Funencodable_char_position): Translate char if
9577 9577 necessary.
9578 * coding.c (decode_coding_sjis): Check the first byte rigidly. 9578 (Ffind_coding_systems_region_internal)
9579 9579 (Fcheck_coding_systems_region): Setup translation table for encode
9580 * xdisp.c (get_next_display_element): Pass -1 as POS to 9580 in a coding system attribute vector in advance.
9581 FACE_FOR_CHAR if displaying a C-string. 9581 (Fdefine_coding_system_internal): Allow a symbol as translation
9582 9582 table. For shift-jis type coding system, allow 4th charset.
95832008-02-01 Kenichi Handa <handa@m17n.org> 9583
9584 95842008-02-01 Kenichi Handa <handa@m17n.org>
9585 * composite.c (get_composition_id): Handle xoff and yoff in a 9585
9586 composition rule. 9586 * coding.c (decode_coding_sjis): Check the first byte rigidly.
9587 9587
9588 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff. 9588 * xdisp.c (get_next_display_element): Pass -1 as POS to
9589 (struct composition): New member lbearing and rbearing. 9589 FACE_FOR_CHAR if displaying a C-string.
9590 9590
9591 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y). 95912008-02-01 Kenichi Handa <handa@m17n.org>
9592 (x_get_glyph_overhangs): Handle a composition glyph. 9592
9593 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph. 9593 * composite.c (get_composition_id): Handle xoff and yoff in a
9594 9594 composition rule.
9595 * xterm.c (x_compute_glyph_string_overhangs): Handle also a 9595
9596 composition glyph. 9596 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
9597 9597 (struct composition): New member lbearing and rbearing.
95982008-02-01 Kenichi Handa <handa@m17n.org> 9598
9599 9599 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
9600 * print.c: Include charset.h. 9600 (x_get_glyph_overhangs): Handle a composition glyph.
9601 (Vprint_charset_text_property): New variable. 9601 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
9602 (Qdefault): Extern it. 9602
9603 (PRINT_STRING_NON_CHARSET_FOUND) 9603 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
9604 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros. 9604 composition glyph.
9605 (print_check_string_result): New variable. 9605
9606 (print_check_string_charset_prop): New function. 96062008-02-01 Kenichi Handa <handa@m17n.org>
9607 (print_prune_charset_plist): New variable. 9607
9608 (print_prune_string_charset): New function. 9608 * print.c: Include charset.h.
9609 (print_object): Call print_prune_string_charset if 9609 (Vprint_charset_text_property): New variable.
9610 Vprint_charset_text_property is not t. 9610 (Qdefault): Extern it.
9611 (print_interval): Print nothing if interval->plist is nil. 9611 (PRINT_STRING_NON_CHARSET_FOUND)
9612 (syms_of_print): Declare Vprint_charset_text_property as a lisp 9612 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
9613 variable. Init and staticpro print_prune_charset_plist. 9613 (print_check_string_result): New variable.
9614 9614 (print_check_string_charset_prop): New function.
96152008-02-01 Kenichi Handa <handa@m17n.org> 9615 (print_prune_charset_plist): New variable.
9616 9616 (print_prune_string_charset): New function.
9617 * fontset.c (new_fontset_from_font_name): Use the specified font 9617 (print_object): Call print_prune_string_charset if
9618 for all characters in the new fontset. 9618 Vprint_charset_text_property is not t.
9619 9619 (print_interval): Print nothing if interval->plist is nil.
9620 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and 9620 (syms_of_print): Declare Vprint_charset_text_property as a lisp
9621 OBJECT args. 9621 variable. Init and staticpro print_prune_charset_plist.
9622 9622
9623 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and 96232008-02-01 Kenichi Handa <handa@m17n.org>
9624 OBJECT args for composition too. 9624
9625 9625 * fontset.c (new_fontset_from_font_name): Use the specified font
9626 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and 9626 for all characters in the new fontset.
9627 OBJECT args. 9627
9628 9628 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
96292008-02-01 Kenichi Handa <handa@m17n.org> 9629 OBJECT args.
9630 9630
9631 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT. 9631 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
9632 9632 OBJECT args for composition too.
9633 * fontset.c (reorder_font_vector): Adjust for the change of 9633
9634 FONT_DEF format. 9634 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
9635 (fontset_face): New arg id. Change caller. 9635 OBJECT args.
9636 (face_for_char): New args pos and object. 9636
9637 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format. 96372008-02-01 Kenichi Handa <handa@m17n.org>
9638 (fs_query_fontset): Check NAME by Fassoc too. 9638
9639 (Fset_fontset_font): Allow non-XLFD font name. 9639 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
9640 (Ffontset_info): Adjust for the change of FONT_DEF format. 9640
9641 9641 * fontset.c (reorder_font_vector): Adjust for the change of
9642 * fontset.h (face_for_char): Adjust prototype. 9642 FONT_DEF format.
9643 9643 (fontset_face): New arg id. Change caller.
9644 * xdisp.c (face_before_or_after_it_pos, get_next_display_element) 9644 (face_for_char): New args pos and object.
9645 (append_space, extend_face_to_end_of_line) 9645 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
9646 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) 9646 (fs_query_fontset): Check NAME by Fassoc too.
9647 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args. 9647 (Fset_fontset_font): Allow non-XLFD font name.
9648 9648 (Ffontset_info): Adjust for the change of FONT_DEF format.
9649 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with 9649
9650 POS and OBJECT args. 9650 * fontset.h (face_for_char): Adjust prototype.
9651 9651
9652 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with 9652 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
9653 POS and OBJECT args. 9653 (append_space, extend_face_to_end_of_line)
9654 9654 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
96552008-02-01 Jason Rumney <jasonr@gnu.org> 9655 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
9656 9656
9657 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc 9657 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
9658 of GlobalAlloc'ed memory. 9658 POS and OBJECT args.
9659 9659
96602008-02-01 Kenichi Handa <handa@m17n.org> 9660 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
9661 9661 POS and OBJECT args.
9662 * ccl.c (Fccl_execute_on_string): Fix the condition of loop. 9662
9663 96632008-02-01 Jason Rumney <jasonr@gnu.org>
9664 * charset.h (charset_table_used): Delete extern. 9664
9665 9665 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
9666 * charset.c (charset_table_used): Make it static. 9666 of GlobalAlloc'ed memory.
9667 (map_charset_chars): Fix args to c_function with. 9667
9668 96682008-02-01 Kenichi Handa <handa@m17n.org>
9669 * chartab.c (map_sub_char_table_for_charset): Fix args to 9669
9670 c_function with. 9670 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
9671 9671
9672 * coding.h (enum coding_result_code): Delete 9672 * charset.h (charset_table_used): Delete extern.
9673 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC. 9673
9674 9674 * charset.c (charset_table_used): Make it static.
9675 * coding.c (Qinsufficient_source, Qinconsistent_eol) 9675 (map_charset_chars): Fix args to c_function with.
9676 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables. 9676
9677 (Vlast_code_conversion_error): New variables. 9677 * chartab.c (map_sub_char_table_for_charset): Fix args to
9678 (syms_of_coding): DEFSYM or DEFVAR_LISP them. 9678 c_function with.
9679 (ONE_MORE_BYTE): Record error if any instead of signaling an 9679
9680 error. If non-ASCII multibyte char is found, return the negative 9680 * coding.h (enum coding_result_code): Delete
9681 value of the code. All callers changed to check it. 9681 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
9682 (ONE_MORE_BYTE_NO_CHECK): Likewise. 9682
9683 (record_conversion_result): New function. Change all codes setting 9683 * coding.c (Qinsufficient_source, Qinconsistent_eol)
9684 coding->result to call this function. 9684 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
9685 (detect_coding_utf_8, decode_coding_utf_8) 9685 (Vlast_code_conversion_error): New variables.
9686 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5): 9686 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
9687 Don't use the local variable incomplete. 9687 (ONE_MORE_BYTE): Record error if any instead of signaling an
9688 (emacs_mule_char): Change the second arg to `const'. 9688 error. If non-ASCII multibyte char is found, return the negative
9689 (decode_coding): Fix of flushing out unprocessed data. 9689 value of the code. All callers changed to check it.
9690 (make_conversion_work_buffer): Fix making of a work buffer. 9690 (ONE_MORE_BYTE_NO_CHECK): Likewise.
9691 (decode_coding_object): Return coding->dst_object. 9691 (record_conversion_result): New function. Change all codes setting
9692 9692 coding->result to call this function.
9693 * fontset.c (set_fontset_font): Fix args. 9693 (detect_coding_utf_8, decode_coding_utf_8)
9694 9694 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
9695 * lisp.h (CHARACTERBITS): Define as 22. 9695 Don't use the local variable incomplete.
9696 9696 (emacs_mule_char): Change the second arg to `const'.
9697 * process.c (send_process): Be sure to set coding->src_multibyte. 9697 (decode_coding): Fix of flushing out unprocessed data.
9698 9698 (make_conversion_work_buffer): Fix making of a work buffer.
9699 * xdisp.c (handle_auto_composed_prop): Fix setting of limit. 9699 (decode_coding_object): Return coding->dst_object.
9700 9700
97012008-02-01 Kenichi Handa <handa@m17n.org> 9701 * fontset.c (set_fontset_font): Fix args.
9702 9702
9703 * xdisp.c (handle_auto_composed_prop): Give limit to 9703 * lisp.h (CHARACTERBITS): Define as 22.
9704 Fnext_single_char_property_change. 9704
9705 9705 * process.c (send_process): Be sure to set coding->src_multibyte.
97062008-02-01 Kenichi Handa <handa@m17n.org> 9706
9707 9707 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
9708 * composite.c (syms_of_composite): Don't make the composition hash 9708
9709 table weak. 97092008-02-01 Kenichi Handa <handa@m17n.org>
9710 9710
9711 * fontset.c (Fset_fontset_font): Fix docstring. 9711 * xdisp.c (handle_auto_composed_prop): Give limit to
9712 9712 Fnext_single_char_property_change.
9713 * lisp.h (detect_coding_system): Adjust prototype. 9713
9714 97142008-02-01 Kenichi Handa <handa@m17n.org>
9715 * fileio.c (kill_workbuf_unwind): Delete this function. 9715
9716 (Finsert_file_contents): Adjust the call of detect_coding_system. 9716 * composite.c (syms_of_composite): Don't make the composition hash
9717 Get conversion_buffer by code_conversion_save. Use the macro 9717 table weak.
9718 CODING_MAY_REQUIRE_DECODING. After decoding, update 9718
9719 coding_system. 9719 * fontset.c (Fset_fontset_font): Fix docstring.
9720 9720
9721 * coding.h (make_conversion_work_buffer): Delete extern. 9721 * lisp.h (detect_coding_system): Adjust prototype.
9722 (code_conversion_save): Extern it. 9722
9723 9723 * fileio.c (kill_workbuf_unwind): Delete this function.
9724 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return. 9724 (Finsert_file_contents): Adjust the call of detect_coding_system.
9725 (CODING_GET_INFO): Delete argument eol_type. Change callers. 9725 Get conversion_buffer by code_conversion_save. Use the macro
9726 (decode_coding_utf_8): Don't do eol converion. 9726 CODING_MAY_REQUIRE_DECODING. After decoding, update
9727 (detect_coding_utf_16): Check coding->src_chars, not 9727 coding_system.
9728 coding->src_bytes. Add heuristics for those that have no signature. 9728
9729 (decode_coding_emacs_mule, decode_coding_iso_2022) 9729 * coding.h (make_conversion_work_buffer): Delete extern.
9730 (decode_coding_sjis, decode_coding_big5, decode_coding_charset): 9730 (code_conversion_save): Extern it.
9731 Don't do eol converion. 9731
9732 (adjust_coding_eol_type): Return a new coding system. 9732 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
9733 (detect_coding): Don't detect eol. Fix for utf-16 detection. 9733 (CODING_GET_INFO): Delete argument eol_type. Change callers.
9734 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on 9734 (decode_coding_utf_8): Don't do eol converion.
9735 each change. 9735 (detect_coding_utf_16): Check coding->src_chars, not
9736 (decode_coding): Pay attention to undo_list. Do eol conversion for 9736 coding->src_bytes. Add heuristics for those that have no signature.
9737 all types of coding-systems (if necessary). 9737 (decode_coding_emacs_mule, decode_coding_iso_2022)
9738 (Vcode_conversion_work_buf_list): Delete it. 9738 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9739 (Vcode_conversion_reused_workbuf): Rename from 9739 Don't do eol converion.
9740 Vcode_conversion_reused_work_buf. 9740 (adjust_coding_eol_type): Return a new coding system.
9741 (Vcode_conversion_workbuf_name): New variable. 9741 (detect_coding): Don't detect eol. Fix for utf-16 detection.
9742 (reused_workbuf_in_use): New variable. 9742 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
9743 (make_conversion_work_buffer): Delete the arg DEPTH. 9743 each change.
9744 (code_conversion_restore): Change argument to cons. 9744 (decode_coding): Pay attention to undo_list. Do eol conversion for
9745 (code_conversion_save): Delete the argument BUFFER. Change callers. 9745 all types of coding-systems (if necessary).
9746 (detect_coding_system): New argument src_chars. Change callers. 9746 (Vcode_conversion_work_buf_list): Delete it.
9747 Fix for utf-16 detection. 9747 (Vcode_conversion_reused_workbuf): Rename from
9748 (init_coding_once): Don't use ISO_carriage_return. 9748 Vcode_conversion_reused_work_buf.
9749 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and 9749 (Vcode_conversion_workbuf_name): New variable.
9750 reused_workbuf_in_use. 9750 (reused_workbuf_in_use): New variable.
9751 9751 (make_conversion_work_buffer): Delete the arg DEPTH.
97522008-02-01 Kenichi Handa <handa@m17n.org> 9752 (code_conversion_restore): Change argument to cons.
9753 9753 (code_conversion_save): Delete the argument BUFFER. Change callers.
9754 * keymap.c (store_in_keymap): Pay attention to the case that idx 9754 (detect_coding_system): New argument src_chars. Change callers.
9755 is a cons specifying a character range. 9755 Fix for utf-16 detection.
9756 9756 (init_coding_once): Don't use ISO_carriage_return.
97572008-02-01 Kenichi Handa <handa@m17n.org> 9757 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
9758 9758 reused_workbuf_in_use.
9759 * xdisp.c (handle_auto_composed_prop): Fix the case of returning 9759
9760 HANDLED_RECOMPUTE_PROPS. 97602008-02-01 Kenichi Handa <handa@m17n.org>
9761 9761
9762 * coding.c (Fdefine_coding_system_internal): Fix checking of 9762 * keymap.c (store_in_keymap): Pay attention to the case that idx
9763 ascii compatibility. 9763 is a cons specifying a character range.
9764 9764
97652008-02-01 Kenichi Handa <handa@m17n.org> 97652008-02-01 Kenichi Handa <handa@m17n.org>
9766 9766
9767 * charset.c (find_charsets_in_text): Delete unused locale variable. 9767 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
9768 (Fset_charset_priority): Update Vemacs_mule_charset_list too. 9768 HANDLED_RECOMPUTE_PROPS.
9769 9769
9770 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB. 9770 * coding.c (Fdefine_coding_system_internal): Fix checking of
9771 Resync charset_list to Vemacs_mule_charset_list. 9771 ascii compatibility.
9772 9772
9773 * keymap.c (store_in_keymap): Pay attention to the case that idx 97732008-02-01 Kenichi Handa <handa@m17n.org>
9774 is a cons specifying a character range. 9774
9775 9775 * charset.c (find_charsets_in_text): Delete unused locale variable.
97762008-02-01 Kenichi Handa <handa@m17n.org> 9776 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
9777 9777
9778 * composite.c (update_compositions): Bind inhibit-read-only, etc 9778 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
9779 to t before calling remove-list-of-text-properties. 9779 Resync charset_list to Vemacs_mule_charset_list.
9780 9780
9781 * print.c (print_object): Always print ASCII chars as is. 9781 * keymap.c (store_in_keymap): Pay attention to the case that idx
9782 9782 is a cons specifying a character range.
97832008-02-01 Kenichi Handa <handa@m17n.org> 9783
9784 97842008-02-01 Kenichi Handa <handa@m17n.org>
9785 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list. 9785
9786 9786 * composite.c (update_compositions): Bind inhibit-read-only, etc
9787 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE 9787 to t before calling remove-list-of-text-properties.
9788 is a char table. 9788
9789 9789 * print.c (print_object): Always print ASCII chars as is.
97902008-02-01 Kenichi Handa <handa@m17n.org> 9790
9791 97912008-02-01 Kenichi Handa <handa@m17n.org>
9792 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary. 9792
9793 9793 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
97942008-02-01 Kenichi Handa <handa@m17n.org> 9794
9795 9795 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
9796 * xfaces.c (set_lface_from_font_name): Fix for the case that 9796 is a char table.
9797 FONTNAME is not fontset name. 9797
9798 97982008-02-01 Kenichi Handa <handa@m17n.org>
97992008-02-01 Kenichi Handa <handa@m17n.org> 9799
9800 9800 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
9801 * fns.c (base64_encode_1): Fix previous change. 9801
9802 98022008-02-01 Kenichi Handa <handa@m17n.org>
98032008-02-01 Kenichi Handa <handa@m17n.org> 9803
9804 9804 * xfaces.c (set_lface_from_font_name): Fix for the case that
9805 * fontset.c (set_fontset_font): New function. 9805 FONTNAME is not fontset name.
9806 (Fset_fontset_font): If a font is specified for a charset, use 9806
9807 map_charset_chars to store the font spec in a fontset. 98072008-02-01 Kenichi Handa <handa@m17n.org>
9808 9808
98092008-02-01 Kenichi Handa <handa@m17n.org> 9809 * fns.c (base64_encode_1): Fix previous change.
9810 9810
9811 * fontset.c (fontset_face): Create a fallback fontset on demand. 98112008-02-01 Kenichi Handa <handa@m17n.org>
9812 (make_fontset): Don't create a fallback fontset here. 9812
9813 (free_face_fontset): Free a fallback fontset (if any) too. 9813 * fontset.c (set_fontset_font): New function.
9814 (n_auto_fontsets): Delete this variable. 9814 (Fset_fontset_font): If a font is specified for a charset, use
9815 (auto_fontset_alist): New variable. 9815 map_charset_chars to store the font spec in a fontset.
9816 (new_fontset_from_font_name): Check auto_fontset_alist. 9816
9817 (dump_fontset) [FONTSET_DEBUG]: Fully re-written. 98172008-02-01 Kenichi Handa <handa@m17n.org>
9818 (Ffontset_list_all) [FONTSET_DEBUG]: New function. 9818
9819 (syms_of_fontset): Initialize and staticpro auto_fontset_alist. 9819 * fontset.c (fontset_face): Create a fallback fontset on demand.
9820 Defsubr Sfontset_list_all. 9820 (make_fontset): Don't create a fallback fontset here.
9821 9821 (free_face_fontset): Free a fallback fontset (if any) too.
98222008-02-01 Kenichi Handa <handa@m17n.org> 9822 (n_auto_fontsets): Delete this variable.
9823 9823 (auto_fontset_alist): New variable.
9824 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts. 9824 (new_fontset_from_font_name): Check auto_fontset_alist.
9825 9825 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
98262008-02-01 Kenichi Handa <handa@m17n.org> 9826 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
9827 9827 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
9828 * fontset.c (Fnew_fontset): Check NAME more rigidly. 9828 Defsubr Sfontset_list_all.
9829 9829
98302008-02-01 Kenichi Handa <handa@m17n.org> 98302008-02-01 Kenichi Handa <handa@m17n.org>
9831 9831
9832 * editfns.c (Fgoto_char): Fix docstring. 9832 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
9833 9833
98342008-02-01 Kenichi Handa <handa@m17n.org> 98342008-02-01 Kenichi Handa <handa@m17n.org>
9835 9835
9836 * insdel.c (insert_from_gap): Adjust intervals correctly. 9836 * fontset.c (Fnew_fontset): Check NAME more rigidly.
9837 9837
98382008-02-01 Jason Rumney <jasonr@gnu.org> 98382008-02-01 Kenichi Handa <handa@m17n.org>
9839 9839
9840 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't. 9840 * editfns.c (Fgoto_char): Fix docstring.
9841 (pfnGetFontUnicodeRanges): New dynamically loaded function. 9841
9842 (w32_initialize): Try to load it. 98422008-02-01 Kenichi Handa <handa@m17n.org>
9843 (x_get_font_repertory): Use it if available. 9843
9844 (w32_encode_char): Add shortcut for unicode output. 9844 * insdel.c (insert_from_gap): Adjust intervals correctly.
9845 9845
9846 * w32fns.c (w32_load_system_font): Default charset to -1. 98462008-02-01 Jason Rumney <jasonr@gnu.org>
9847 (x_to_w32_charset): Match all fonts for unicode. 9847
9848 (w32_to_x_charset): New parameter matching. Don't return partial 9848 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
9849 or wildcard charsets. 9849 (pfnGetFontUnicodeRanges): New dynamically loaded function.
9850 (w32_to_all_x_charsets): Don't return partial or wildcard charsets. 9850 (w32_initialize): Try to load it.
9851 (w32_codepage_for_font): Return CP_UNICODE for unicode. 9851 (x_get_font_repertory): Use it if available.
9852 (w32_to_x_font): Match charset to real charset. 9852 (w32_encode_char): Add shortcut for unicode output.
9853 (enum_font_cb2): Always list unicode versions. 9853
9854 9854 * w32fns.c (w32_load_system_font): Default charset to -1.
9855 * makefile.w32-in (temacs): Increase EMHEAP. 9855 (x_to_w32_charset): Match all fonts for unicode.
9856 9856 (w32_to_x_charset): New parameter matching. Don't return partial
98572008-02-01 Jason Rumney <jasonr@gnu.org> 9857 or wildcard charsets.
9858 9858 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
9859 * w32term.c (w32_encode_char): New charset parameter. 9859 (w32_codepage_for_font): Return CP_UNICODE for unicode.
9860 font_info.encoding becomes encoding_type. 9860 (w32_to_x_font): Match charset to real charset.
9861 (x_get_font_repertory): New function. Warning: stub only! 9861 (enum_font_cb2): Always list unicode versions.
9862 (x_new_font): Return quickly if font already set. 9862
9863 (x_new_fontset): fontsetname parameter is Lisp_Object. 9863 * makefile.w32-in (temacs): Increase EMHEAP.
9864 Use new fs_query_fontset. Try new_fontset_from_font_name. 9864
9865 Use fontset_name for return value. 98652008-02-01 Jason Rumney <jasonr@gnu.org>
9866 9866
9867 * w32term.h: Declare x_get_font_repertory. 9867 * w32term.c (w32_encode_char): New charset parameter.
9868 9868 font_info.encoding becomes encoding_type.
9869 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in 9869 (x_get_font_repertory): New function. Warning: stub only!
9870 place of find_charset_in_text. Use encode_coding_object in place 9870 (x_new_font): Return quickly if font already set.
9871 of encode_coding. 9871 (x_new_fontset): fontsetname parameter is Lisp_Object.
9872 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of 9872 Use new fs_query_fontset. Try new_fontset_from_font_name.
9873 decode_coding. 9873 Use fontset_name for return value.
9874 9874
9875 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version 9875 * w32term.h: Declare x_get_font_repertory.
9876 of x_new_fontset. 9876
9877 (w32_load_system_font): Initialize charset as unicode. 9877 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
9878 font_info.encoding becomes encoding_type. 9878 place of find_charset_in_text. Use encode_coding_object in place
9879 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding. 9879 of encode_coding.
9880 (x_to_w32_font): Use encode_coding_object in place of encode_coding. 9880 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
9881 (syms_of_w32fns): Set get_font_repertory_func. 9881 decode_coding.
9882 9882
9883 * w32console.c: Include character.h. Use terminal_encode_buffer 9883 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
9884 from term.c. 9884 of x_new_fontset.
9885 (write_glyphs): Use new version of encode_terminal_code. Use 9885 (w32_load_system_font): Initialize charset as unicode.
9886 encode_coding_object in place of encode_coding. 9886 font_info.encoding becomes encoding_type.
9887 9887 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
9888 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling. 9888 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
9889 encoding becomes encoding_type. 9889 (syms_of_w32fns): Set get_font_repertory_func.
9890 9890
9891 * term.c (terminal_encode_buffer): Make externally visible. 9891 * w32console.c: Include character.h. Use terminal_encode_buffer
9892 9892 from term.c.
9893 * makefile.w32-in: Add character.h dependancies. 9893 (write_glyphs): Use new version of encode_terminal_code. Use
9894 (character.o, chartab.o): New targets. 9894 encode_coding_object in place of encode_coding.
9895 9895
98962008-02-01 Kenichi Handa <handa@m17n.org> 9896 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
9897 9897 encoding becomes encoding_type.
9898 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro 9898
9899 CODING_ID_EOL_TYPE. 9899 * term.c (terminal_encode_buffer): Make externally visible.
9900 9900
99012008-02-01 Andreas Schwab <schwab@suse.de> 9901 * makefile.w32-in: Add character.h dependancies.
9902 9902 (character.o, chartab.o): New targets.
9903 * coding.c (produce_chars): Revert last change. 9903
9904 99042008-02-01 Kenichi Handa <handa@m17n.org>
99052008-02-01 Kenichi Handa <handa@m17n.org> 9905
9906 9906 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
9907 * charset.h (charset_unicode): Extern it. 9907 CODING_ID_EOL_TYPE.
9908 9908
9909 * charset.c (string_xstring_p): Check by (C >= 0x100). 99092008-02-01 Andreas Schwab <schwab@suse.de>
9910 (find_charsets_in_text): Change format of the arc CHARSETS. New 9910
9911 arg MULTIBYTE. 9911 * coding.c (produce_chars): Revert last change.
9912 (Ffind_charset_region, Ffind_charset_string): Adjust for the 9912
9913 change of find_charsets_in_text. 99132008-02-01 Kenichi Handa <handa@m17n.org>
9914 (Fsplit_char): Fix doc. Never return unknown. 9914
9915 9915 * charset.h (charset_unicode): Extern it.
9916 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP. 9916
9917 9917 * charset.c (string_xstring_p): Check by (C >= 0x100).
9918 * coding.c (Fdefine_coding_system_alias): Update 9918 (find_charsets_in_text): Change format of the arc CHARSETS. New
9919 Vcoding_system_list. 9919 arg MULTIBYTE.
9920 9920 (Ffind_charset_region, Ffind_charset_string): Adjust for the
9921 * fontset.c (load_font_get_repertory): Pay attention to the case 9921 change of find_charsets_in_text.
9922 that ENCODING of a font is specified by a char-table. 9922 (Fsplit_char): Fix doc. Never return unknown.
9923 9923
9924 * xterm.c (x_get_font_repertory): Handle the case that the 9924 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
9925 encoding of font is other than Unicode. 9925
9926 9926 * coding.c (Fdefine_coding_system_alias): Update
99272008-02-01 Kenichi Handa <handa@m17n.org> 9927 Vcoding_system_list.
9928 9928
9929 * term.c (encode_terminal_code): Don't handle glyph-table. Check 9929 * fontset.c (load_font_get_repertory): Pay attention to the case
9930 if a character is encodable by the terminal coding system. If 9930 that ENCODING of a font is specified by a char-table.
9931 not, produces proper number of `?'s. Update 9931
9932 terminal_encode_buffer and terminal_encode_buf_size if necessary. 9932 * xterm.c (x_get_font_repertory): Handle the case that the
9933 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. 9933 encoding of font is other than Unicode.
9934 9934
99352008-02-01 Kenichi Handa <handa@m17n.org> 99352008-02-01 Kenichi Handa <handa@m17n.org>
9936 9936
9937 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New 9937 * term.c (encode_terminal_code): Don't handle glyph-table. Check
9938 variables. 9938 if a character is encodable by the terminal coding system. If
9939 (encode_terminal_code): Change argument. Encode multiple 9939 not, produces proper number of `?'s. Update
9940 characters at once. Store the result of encoding in 9940 terminal_encode_buffer and terminal_encode_buf_size if necessary.
9941 terminal_encode_buffer. 9941 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
9942 (write_glyphs, insert_glyphs): Adjust for the change of 9942
9943 encode_terminal_code. 99432008-02-01 Kenichi Handa <handa@m17n.org>
9944 (term_init): Initialize terminal_encode_buffer and 9944
9945 terminal_encode_buf_size. 9945 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
9946 9946 variables.
9947 * coding.c (consume_chars): If coding->src_object is nil, don't 9947 (encode_terminal_code): Change argument. Encode multiple
9948 check annotation. 9948 characters at once. Store the result of encoding in
9949 9949 terminal_encode_buffer.
99502008-02-01 Kenichi Handa <handa@m17n.org> 9950 (write_glyphs, insert_glyphs): Adjust for the change of
9951 9951 encode_terminal_code.
9952 * character.c (char_string): Use ASCII_CHAR_P instead of 9952 (term_init): Initialize terminal_encode_buffer and
9953 SINGLE_BYTE_CHAR_P. 9953 terminal_encode_buf_size.
9954 9954
99552008-02-01 Kenichi Handa <handa@m17n.org> 9955 * coding.c (consume_chars): If coding->src_object is nil, don't
9956 9956 check annotation.
9957 * xdisp.c (handle_auto_composed_prop): Check if the last 9957
9958 characters of auto-composed region is newly composed with the 99582008-02-01 Kenichi Handa <handa@m17n.org>
9959 following characters. 9959
9960 (handle_composition_prop): Fix checking of point being inside 9960 * character.c (char_string): Use ASCII_CHAR_P instead of
9961 composition. 9961 SINGLE_BYTE_CHAR_P.
9962 9962
99632008-02-01 Kenichi Handa <handa@m17n.org> 99632008-02-01 Kenichi Handa <handa@m17n.org>
9964 9964
9965 * fns.c (concat): Don't change multibyteness of the result by 9965 * xdisp.c (handle_auto_composed_prop): Check if the last
9966 concatenating an 8-bit character. 9966 characters of auto-composed region is newly composed with the
9967 9967 following characters.
9968 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change 9968 (handle_composition_prop): Fix checking of point being inside
9969 multibyteness of the result when newelt is an 8-bit character. 9969 composition.
9970 9970
99712008-02-01 Dave Love <fx@gnu.org> 99712008-02-01 Kenichi Handa <handa@m17n.org>
9972 9972
9973 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used 9973 * fns.c (concat): Don't change multibyteness of the result by
9974 EMACS_INT. 9974 concatenating an 8-bit character.
9975 9975
9976 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. 9976 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
9977 9977 multibyteness of the result when newelt is an 8-bit character.
9978 * xfaces.c (face_numeric_value): Declare dim size_t. 9978
9979 (Finternal_lisp_face_equal_p): Remove unused f. 99792008-02-01 Dave Love <fx@gnu.org>
9980 9980
9981 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor) 9981 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
9982 (MATRIX_ROW): Remove unused vars. 9982 EMACS_INT.
9983 (draw_glyphs, x_insert_glyphs, fast_find_position) 9983
9984 (fast_find_position, fast_find_string_pos): Use EMACS_INT for 9984 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
9985 byte/char counts. 9985
9986 9986 * xfaces.c (face_numeric_value): Declare dim size_t.
9987 * regex.c (regex_compile): Remove unused var. 9987 (Finternal_lisp_face_equal_p): Remove unused f.
9988 9988
9989 * minibuf.c (Fminibuffer_complete_word): Remove unused var. 9989 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
9990 9990 (MATRIX_ROW): Remove unused vars.
9991 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap) 9991 (draw_glyphs, x_insert_glyphs, fast_find_position)
9992 (Faccessible_keymaps, where_is_internal): Remove unused vars. 9992 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
9993 9993 byte/char counts.
9994 * keyboard.c (cancel_hourglass_unwind): Return Qnil. 9994
9995 9995 * regex.c (regex_compile): Remove unused var.
9996 * frame.c (frame_name_fnn_p): Make len EMACS_INT. 9996
9997 9997 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9998 * fileio.c (Fwrite_region): Remove unused var. 9998
9999 9999 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10000 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay) 10000 (Faccessible_keymaps, where_is_internal): Remove unused vars.
10001 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim. 10001
10002 10002 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
10003 * composite.c (Fremove_list_of_text_properties): Declare. 10003
10004 10004 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
10005 * coding.c (inhibit_pre_post_conversion): Remove (unused). 10005
10006 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts. 10006 * fileio.c (Fwrite_region): Remove unused var.
10007 (coding_inherit_eol_type): Remove unused attrs. 10007
10008 (detect_coding): Cast arg of detect_eol. 10008 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
10009 10009 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
10010 * charset.c (syms_of_charset): Remove unused var p. 10010
10011 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for 10011 * composite.c (Fremove_list_of_text_properties): Declare.
10012 byte/char counts. 10012
10013 10013 * coding.c (inhibit_pre_post_conversion): Remove (unused).
10014 * casetab.c (set_case_table): Remove unused var. 10014 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
10015 10015 (coding_inherit_eol_type): Remove unused attrs.
10016 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove 10016 (detect_coding): Cast arg of detect_eol.
10017 unused vars. 10017
10018 10018 * charset.c (syms_of_charset): Remove unused var p.
100192008-02-01 Dave Love <fx@gnu.org> 10019 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
10020 10020 byte/char counts.
10021 * xterm.c (x_bitmap_mask): Declare. 10021
10022 10022 * casetab.c (set_case_table): Remove unused var.
100232008-02-01 Dave Love <fx@gnu.org> 10023
10024 10024 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
10025 * xterm.c (x_term_init): Fix type error. 10025 unused vars.
10026 10026
10027 * lisp.h: Add Funibyte_char_to_multibyte. 100272008-02-01 Dave Love <fx@gnu.org>
10028 10028
10029 * coding.c (Fread_coding_system): Fix arg of XSETSTRING. 10029 * xterm.c (x_bitmap_mask): Declare.
10030 (Fset_coding_system_priority): Doc fix. 10030
10031 100312008-02-01 Dave Love <fx@gnu.org>
10032 * ccl.c (ccl_driver): Fix arg of CHARACTERP. 10032
10033 10033 * xterm.c (x_term_init): Fix type error.
10034 * indent.c (check_composition): Make start and end EMACS_INT. 10034
10035 10035 * lisp.h: Add Funibyte_char_to_multibyte.
10036 * character.c (lisp_string_width): Make ignore and end EMACS_INT. 10036
10037 10037 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
10038 * xdisp.c (handle_composition_prop, check_point_in_composition): 10038 (Fset_coding_system_priority): Doc fix.
10039 Make buffer positions EMACS_INT. 10039
10040 10040 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
10041 * composite.c (find_composition, run_composition_function) 10041
10042 (update_compositions, Ffind_composition_internal): Make buffer 10042 * indent.c (check_composition): Make start and end EMACS_INT.
10043 positions EMACS_INT. 10043
10044 10044 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
10045 * composite.h (find_composition, update_compositions): Make 10045
10046 position args EMACS_INT. 10046 * xdisp.c (handle_composition_prop, check_point_in_composition):
10047 10047 Make buffer positions EMACS_INT.
10048 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT. 10048
10049 10049 * composite.c (find_composition, run_composition_function)
10050 * intervals.c (get_property_and_range): 10050 (update_compositions, Ffind_composition_internal): Make buffer
10051 * intervals.h (get_property_and_range): Make start and end EMACS_INT. 10051 positions EMACS_INT.
10052 10052
10053 * unexalpha.c: Don't include varargs.h. 10053 * composite.h (find_composition, update_compositions): Make
10054 10054 position args EMACS_INT.
100552008-02-01 Dave Love <fx@gnu.org> 10055
10056 10056 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
10057 * coding.h (ENCODE_UTF_8): New. 10057
10058 10058 * intervals.c (get_property_and_range):
10059 * Makefile.in (gtkutil.o): Depend on coding.h. 10059 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
10060 10060
10061 * coding.c (Fset_coding_system_priority): Doc fix. 10061 * unexalpha.c: Don't include varargs.h.
10062 10062
100632008-02-01 Kenichi Handa <handa@m17n.org> 100632008-02-01 Dave Love <fx@gnu.org>
10064 10064
10065 * fileio.c (Finsert_file_contents): Call setup_coding_system in 10065 * coding.h (ENCODE_UTF_8): New.
10066 the case of auto saving. 10066
10067 10067 * Makefile.in (gtkutil.o): Depend on coding.h.
100682008-02-01 Andreas Schwab <schwab@suse.de> 10068
10069 10069 * coding.c (Fset_coding_system_priority): Doc fix.
10070 * chartab.c (map_char_table, map_char_table_for_charset): Protect 10070
10071 `range' from GC. 100712008-02-01 Kenichi Handa <handa@m17n.org>
10072 10072
100732008-02-01 Kenichi Handa <handa@m17n.org> 10073 * fileio.c (Finsert_file_contents): Call setup_coding_system in
10074 10074 the case of auto saving.
10075 * coding.c (decode_coding_sjis): Check bytes more rigidly. 10075
10076 100762008-02-01 Andreas Schwab <schwab@suse.de>
100772008-02-01 Kenichi Handa <handa@m17n.org> 10077
10078 10078 * chartab.c (map_char_table, map_char_table_for_charset): Protect
10079 * fileio.c (choose_write_coding_system): Return a decided coding system. 10079 `range' from GC.
10080 (Fwrite_region): Set Vlast_coding_system_used to the return value 10080
10081 of choose_write_coding_system. 100812008-02-01 Kenichi Handa <handa@m17n.org>
10082 10082
100832008-02-01 Kenichi Handa <handa@m17n.org> 10083 * coding.c (decode_coding_sjis): Check bytes more rigidly.
10084 10084
10085 * charset.c (Fset_charset_priority): Pay attention to duplicated 100852008-02-01 Kenichi Handa <handa@m17n.org>
10086 arguments. 10086
10087 10087 * fileio.c (choose_write_coding_system): Return a decided coding system.
10088 * coding.c (QCcategory): New variable. 10088 (Fwrite_region): Set Vlast_coding_system_used to the return value
10089 (syms_of_coding): Defsym it. Set all elements of 10089 of choose_write_coding_system.
10090 Vcoding_category_table and their symbol values. 10090
10091 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of 100912008-02-01 Kenichi Handa <handa@m17n.org>
10092 coding-category-XXX, and coding-category-list. 10092
10093 (Fdefine_coding_system_internal): Add category in the plist. 10093 * charset.c (Fset_charset_priority): Pay attention to duplicated
10094 10094 arguments.
100952008-02-01 Kenichi Handa <handa@m17n.org> 10095
10096 10096 * coding.c (QCcategory): New variable.
10097 * callproc.c (Fcall_process): Handle carryover correctly. 10097 (syms_of_coding): Defsym it. Set all elements of
10098 10098 Vcoding_category_table and their symbol values.
10099 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes. 10099 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
10100 (raw_text_coding_system): Check NILP (coding_system). 10100 coding-category-XXX, and coding-category-list.
10101 (coding_inherit_eol_type): Check NILP (coding_system) and 10101 (Fdefine_coding_system_internal): Add category in the plist.
10102 NILP (parent). 10102
10103 (consume_chars): Fix for the case of raw-text. 101032008-02-01 Kenichi Handa <handa@m17n.org>
10104 10104
10105 * process.c (read_process_output): Handle carryover correctly. 10105 * callproc.c (Fcall_process): Handle carryover correctly.
10106 10106
101072008-02-01 Dave Love <fx@gnu.org> 10107 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
10108 10108 (raw_text_coding_system): Check NILP (coding_system).
10109 * regex.c (re_search_2): Fix last change. 10109 (coding_inherit_eol_type): Check NILP (coding_system) and
10110 10110 NILP (parent).
101112008-02-01 Kenichi Handa <handa@m17n.org> 10111 (consume_chars): Fix for the case of raw-text.
10112 10112
10113 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not 10113 * process.c (read_process_output): Handle carryover correctly.
10114 target_multibyte. Even in a unibyte case, return a converted 10114
10115 multibyte char. 101152008-02-01 Dave Love <fx@gnu.org>
10116 (GET_CHAR_AFTER): New macro. 10116
10117 (PATFETCH): Translate via multibyte char. 10117 * regex.c (re_search_2): Fix last change.
10118 (HANDLE_UNIBYTE_RANGE): Delete this macro. 10118
10119 (SETUP_MULTIBYTE_RANGE): New macro. 101192008-02-01 Kenichi Handa <handa@m17n.org>
10120 (regex_compile): Setup compiled code so that its multibyteness 10120
10121 matches that of a target. Fix the handling of "[X-YZ]" using 10121 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
10122 SETUP_MULTIBYTE_RANGE. 10122 target_multibyte. Even in a unibyte case, return a converted
10123 (analyse_first) <charset>: For filling fastmap for all multibyte 10123 multibyte char.
10124 characters, don't check by BASE_LEADING_CODE_P. 10124 (GET_CHAR_AFTER): New macro.
10125 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is 10125 (PATFETCH): Translate via multibyte char.
10126 the same as RE_MULTIBYTE_P (bufp) now. 10126 (HANDLE_UNIBYTE_RANGE): Delete this macro.
10127 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)). 10127 (SETUP_MULTIBYTE_RANGE): New macro.
10128 (TARGET_CHAR_AND_LENGTH): Delete this macro. 10128 (regex_compile): Setup compiled code so that its multibyteness
10129 (TRANSLATE_VIA_MULTIBYTE): New macro. 10129 matches that of a target. Fix the handling of "[X-YZ]" using
10130 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). 10130 SETUP_MULTIBYTE_RANGE.
10131 It is the same as RE_MULTIBYTE_P (bufp) now. 10131 (analyse_first) <charset>: For filling fastmap for all multibyte
10132 <exactn>: Translate via multibyte. 10132 characters, don't check by BASE_LEADING_CODE_P.
10133 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't 10133 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
10134 translate it. 10134 the same as RE_MULTIBYTE_P (bufp) now.
10135 <charset, charset_not>: Fetch a character by 10135 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
10136 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. 10136 (TARGET_CHAR_AND_LENGTH): Delete this macro.
10137 <duplicate>: Call bcmp_translate with the last arg `multibyte'. 10137 (TRANSLATE_VIA_MULTIBYTE): New macro.
10138 <wordbound, notwordbound, wordbeg, wordend, syntaxspec, 10138 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
10139 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character 10139 It is the same as RE_MULTIBYTE_P (bufp) now.
10140 by GET_CHAR_AFTER. 10140 <exactn>: Translate via multibyte.
10141 (bcmp_translate): Likewise. 10141 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
10142 10142 translate it.
10143 * search.c (compile_pattern): Check the member target_multibyte, 10143 <charset, charset_not>: Fetch a character by
10144 not the member multibyte of buf. 10144 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
10145 10145 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
10146 * lread.c (read1): While reading a string, set force_singlebyte 10146 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
10147 and force_multibyte correctly. 10147 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
10148 10148 by GET_CHAR_AFTER.
10149 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting 10149 (bcmp_translate): Likewise.
10150 up of unibyte_to_multibyte_table. 10150
10151 10151 * search.c (compile_pattern): Check the member target_multibyte,
101522008-02-01 Kenichi Handa <handa@m17n.org> 10152 not the member multibyte of buf.
10153 10153
10154 * coding.c (setup_coding_system): If coding has 10154 * lread.c (read1): While reading a string, set force_singlebyte
10155 post-read-conversion or pre-write-conversion, set 10155 and force_multibyte correctly.
10156 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK 10156
10157 respectively. 10157 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
10158 (decode_coding_gap): Run post-read-conversion if any. 10158 up of unibyte_to_multibyte_table.
10159 10159
10160 * fileio.c (Finsert_file_contents): Even if we read into a 101602008-02-01 Kenichi Handa <handa@m17n.org>
10161 unibyte buffer, check if we must decode the result or not. 10161
10162 10162 * coding.c (setup_coding_system): If coding has
101632008-02-01 Kenichi Handa <handa@m17n.org> 10163 post-read-conversion or pre-write-conversion, set
10164 10164 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
10165 * coding.c (make_conversion_work_buffer): Change the work buffer 10165 respectively.
10166 name to the same one as that of Emacs 21. 10166 (decode_coding_gap): Run post-read-conversion if any.
10167 10167
101682008-02-01 Kenichi Handa <handa@m17n.org> 10168 * fileio.c (Finsert_file_contents): Even if we read into a
10169 10169 unibyte buffer, check if we must decode the result or not.
10170 * coding.h (make_conversion_work_buffer): Adjust prototype. 10170
10171 (code_conversion_restore): Don't extern it. 101712008-02-01 Kenichi Handa <handa@m17n.org>
10172 10172
10173 * coding.c (detected_mask): Delete unused variable. 10173 * coding.c (make_conversion_work_buffer): Change the work buffer
10174 (decode_coding_iso_2022): Pay attention to the byte sequence of 10174 name to the same one as that of Emacs 21.
10175 CTEXT extended segment, and retain those bytes as is. 10175
10176 (decode_coding_ccl): Delete unused variable `valids'. 101762008-02-01 Kenichi Handa <handa@m17n.org>
10177 (setup_coding_system): Delete unused variable `category'. 10177
10178 (consume_chars): Delete unused variable `category'. Make it work 10178 * coding.h (make_conversion_work_buffer): Adjust prototype.
10179 for non-multibyte case. 10179 (code_conversion_restore): Don't extern it.
10180 (make_conversion_work_buffer): Change argument. 10180
10181 (saved_coding): Delete unused variable. 10181 * coding.c (detected_mask): Delete unused variable.
10182 (code_conversion_restore): Don't check saved_coding->destination. 10182 (decode_coding_iso_2022): Pay attention to the byte sequence of
10183 (code_conversion_save): New function. 10183 CTEXT extended segment, and retain those bytes as is.
10184 (decode_coding_gap, encode_coding_gap): Call code_conversion_save 10184 (decode_coding_ccl): Delete unused variable `valids'.
10185 instead of record_unwind_protect. 10185 (setup_coding_system): Delete unused variable `category'.
10186 (decode_coding_object, encode_coding_object): Likewise. Recover PT. 10186 (consume_chars): Delete unused variable `category'. Make it work
10187 (detect_coding_system): Delete unused variable `mask'. 10187 for non-multibyte case.
10188 (Fdefine_coding_system_internal): Delete unused variable id. 10188 (make_conversion_work_buffer): Change argument.
10189 10189 (saved_coding): Delete unused variable.
10190 * fileio.c (kill_workbuf_unwind): New function. 10190 (code_conversion_restore): Don't check saved_coding->destination.
10191 (Finsert_file_contents): On replacing, call 10191 (code_conversion_save): New function.
10192 make_conversion_work_buffer with correct args, and call 10192 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
10193 record_unwind_protect with the first arg kill_workbuf_unwind. 10193 instead of record_unwind_protect.
10194 10194 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
10195 * lisp.h (Fgenerate_new_buffer_name): EXFUN it. 10195 (detect_coding_system): Delete unused variable `mask'.
10196 10196 (Fdefine_coding_system_internal): Delete unused variable id.
101972008-02-01 Kenichi Handa <handa@m17n.org> 10197
10198 10198 * fileio.c (kill_workbuf_unwind): New function.
10199 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME. 10199 (Finsert_file_contents): On replacing, call
10200 (fontset_add): Fix for the case that TO is less than TO1. 10200 make_conversion_work_buffer with correct args, and call
10201 (Ffontset_info): Don't use fallback fontset on checking the 10201 record_unwind_protect with the first arg kill_workbuf_unwind.
10202 default fontset. 10202
10203 (dump_fontset): New function for debugging. 10203 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
10204 10204
10205 * coding.c (Fdefine_coding_system_internal): Fix for the case that 102052008-02-01 Kenichi Handa <handa@m17n.org>
10206 coding_type is Qcharset. 10206
10207 10207 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
102082008-02-01 Kenichi Handa <handa@m17n.org> 10208 (fontset_add): Fix for the case that TO is less than TO1.
10209 10209 (Ffontset_info): Don't use fallback fontset on checking the
10210 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. 10210 default fontset.
10211 (map_char_table): Don't inherit the value from the parent on 10211 (dump_fontset): New function for debugging.
10212 initializing VAL. Adjust for the above change. 10212
10213 10213 * coding.c (Fdefine_coding_system_internal): Fix for the case that
102142008-02-01 Kenichi Handa <handa@m17n.org> 10214 coding_type is Qcharset.
10215 10215
10216 * coding.c (Qsignature, Qendian): Delete these variables. 102162008-02-01 Kenichi Handa <handa@m17n.org>
10217 (syms_of_coding): Don't initialize them. 10217
10218 (CATEGORY_MASK_UTF_16_AUTO): New macro. 10218 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
10219 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in 10219 (map_char_table): Don't inherit the value from the parent on
10220 detect_info->found. 10220 initializing VAL. Adjust for the above change.
10221 (decode_coding_utf_16): Don't detect BOM here. 10221
10222 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) 102222008-02-01 Kenichi Handa <handa@m17n.org>
10223 is NOT utf_16_without_bom. 10223
10224 (setup_coding_system): For a coding system of type utf-16, check 10224 * coding.c (Qsignature, Qendian): Delete these variables.
10225 if the attribute :endian is Qbig or not (not nil or not), and set 10225 (syms_of_coding): Don't initialize them.
10226 CODING_REQUIRE_DETECTION_MASK if BOM detection is required. 10226 (CATEGORY_MASK_UTF_16_AUTO): New macro.
10227 (detect_coding): If coding type is utf-16 and BOM detection is 10227 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
10228 required, detect it. 10228 detect_info->found.
10229 (Fdefine_coding_system_internal): For a coding system of type 10229 (decode_coding_utf_16): Don't detect BOM here.
10230 utf-16, check if the attribute :endian is Qbig or not (not nil or not). 10230 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
10231 10231 is NOT utf_16_without_bom.
102322008-02-01 Kenichi Handa <handa@m17n.org> 10232 (setup_coding_system): For a coding system of type utf-16, check
10233 10233 if the attribute :endian is Qbig or not (not nil or not), and set
10234 * coding.c (coding_set_source): Fix for the case that the current 10234 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
10235 buffer is different from coding->src_object. 10235 (detect_coding): If coding type is utf-16 and BOM detection is
10236 (decode_coding_object): Don't use the conversion work buffer if 10236 required, detect it.
10237 DST_OBJECT is a buffer. 10237 (Fdefine_coding_system_internal): For a coding system of type
10238 10238 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
102392008-02-01 Dave Love <fx@gnu.org> 10239
10240 102402008-02-01 Kenichi Handa <handa@m17n.org>
10241 * lread.c (read_emacs_mule_char) [len==2]: Index 10241
10242 emacs_mule_charset correctly. 10242 * coding.c (coding_set_source): Fix for the case that the current
10243 10243 buffer is different from coding->src_object.
102442008-02-01 Dave Love <fx@gnu.org> 10244 (decode_coding_object): Don't use the conversion work buffer if
10245 10245 DST_OBJECT is a buffer.
10246 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) 10246
10247 (detect_coding_big5, decode_coding_big5, encode_coding_big5) 102472008-02-01 Dave Love <fx@gnu.org>
10248 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer 10248
10249 treated specially.) 10249 * lread.c (read_emacs_mule_char) [len==2]: Index
10250 (setup_coding_system, coding_category, CATEGORY_MASK_ANY) 10250 emacs_mule_charset correctly.
10251 (detected_mask): Remove Big5 bits. 10251
10252 102522008-02-01 Dave Love <fx@gnu.org>
102532008-02-01 Kenichi Handa <handa@m17n.org> 10253
10254 10254 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
10255 The following changes are to make the font rescaling facility 10255 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
10256 compatible with Emacs 21. 10256 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
10257 10257 treated specially.)
10258 * xfaces.c (Vface_font_rescale_alist): Rename from 10258 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
10259 Vface_resizing_fonts. 10259 (detected_mask): Remove Big5 bits.
10260 (struct font_name): Rename member resizing_ratio to rescale_ratio. 10260
10261 (font_rescale_ratio): Rename from font_resizing_ratio. 102612008-02-01 Kenichi Handa <handa@m17n.org>
10262 (split_font_name): Set font->rescale_ratio. 10262
10263 (better_font_p): Pay attention to font->rescale_ratio. 10263 The following changes are to make the font rescaling facility
10264 (build_scalable_font_name): Likewise. Change RESX, and RESY 10264 compatible with Emacs 21.
10265 fields. 10265
10266 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable. 10266 * xfaces.c (Vface_font_rescale_alist): Rename from
10267 10267 Vface_resizing_fonts.
102682008-02-01 Kenichi Handa <handa@m17n.org> 10268 (struct font_name): Rename member resizing_ratio to rescale_ratio.
10269 10269 (font_rescale_ratio): Rename from font_resizing_ratio.
10270 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) 10270 (split_font_name): Set font->rescale_ratio.
10271 (Qutf_16_le): Remove these variables. 10271 (better_font_p): Pay attention to font->rescale_ratio.
10272 (syms_of_coding): Don't DEFSYM them. 10272 (build_scalable_font_name): Likewise. Change RESX, and RESY
10273 (decode_coding_utf_16): Fix handling of BOM. 10273 fields.
10274 (encode_coding_utf_16): Fix handling of BOM. 10274 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
10275 10275
102762008-02-01 Kenichi Handa <handa@m17n.org> 102762008-02-01 Kenichi Handa <handa@m17n.org>
10277 10277
10278 * fileio.c (Finsert_file_contents): On replacing, before decoding 10278 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
10279 the file into the work buffer, set point of the work buffer to the end. 10279 (Qutf_16_le): Remove these variables.
10280 10280 (syms_of_coding): Don't DEFSYM them.
102812008-02-01 Dave Love <fx@gnu.org> 10281 (decode_coding_utf_16): Fix handling of BOM.
10282 10282 (encode_coding_utf_16): Fix handling of BOM.
10283 * coding.c (Fcheck_coding_systems_region): Fix type errors. 10283
10284 102842008-02-01 Kenichi Handa <handa@m17n.org>
102852008-02-01 Dave Love <fx@gnu.org> 10285
10286 10286 * fileio.c (Finsert_file_contents): On replacing, before decoding
10287 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table 10287 the file into the work buffer, set point of the work buffer to the end.
10288 and fix C types. 10288
10289 102892008-02-01 Dave Love <fx@gnu.org>
102902008-02-01 Kenichi Handa <handa@m17n.org> 10290
10291 10291 * coding.c (Fcheck_coding_systems_region): Fix type errors.
10292 * xdisp.c (SKIP_GLYPHS): New macro. 10292
10293 (set_cursor_from_row): Pay attention to string display properties. 102932008-02-01 Dave Love <fx@gnu.org>
10294 10294
10295 * category.c (copy_category_entry): Fix for the case that RANGE 10295 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10296 is an integer. 10296 and fix C types.
10297 10297
10298 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. 102982008-02-01 Kenichi Handa <handa@m17n.org>
10299 10299
10300 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil. 10300 * xdisp.c (SKIP_GLYPHS): New macro.
10301 10301 (set_cursor_from_row): Pay attention to string display properties.
103022008-02-01 Kenichi Handa <handa@m17n.org> 10302
10303 10303 * category.c (copy_category_entry): Fix for the case that RANGE
10304 * charset.c (Fcharset_id_internal): New function. 10304 is an integer.
10305 (syms_of_charset): Defsubr it. 10305
10306 10306 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
10307 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver 10307
10308 with the last arg charset_list acquired from coding. 10308 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
10309 (Fdefine_coding_system_internal): For ccl-based coding system, fix 10309
10310 the attribute coding_attr_ccl_valids. 103102008-02-01 Kenichi Handa <handa@m17n.org>
10311 10311
10312 * coding.h (enum define_coding_ccl_arg_index): Set the first 10312 * charset.c (Fcharset_id_internal): New function.
10313 member coding_arg_ccl_decoder to coding_arg_max. 10313 (syms_of_charset): Defsubr it.
10314 10314
10315 * ccl.h (ccl_driver): Adjust prototype. 10315 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
10316 10316 with the last arg charset_list acquired from coding.
10317 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros. 10317 (Fdefine_coding_system_internal): For ccl-based coding system, fix
10318 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead 10318 the attribute coding_attr_ccl_valids.
10319 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. 10319
10320 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the 10320 * coding.h (enum define_coding_ccl_arg_index): Set the first
10321 last arg Qnil. 10321 member coding_arg_ccl_decoder to coding_arg_max.
10322 10322
103232008-02-01 Kenichi Handa <handa@m17n.org> 10323 * ccl.h (ccl_driver): Adjust prototype.
10324 10324
10325 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, 10325 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
10326 call encode_char. 10326 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
10327 10327 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
10328 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET. 10328 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
10329 10329 last arg Qnil.
103302008-02-01 Dave Love <fx@gnu.org> 10330
10331 103312008-02-01 Kenichi Handa <handa@m17n.org>
10332 * composite.c (syms_of_composite): Make composition_hash_table weak. 10332
10333 10333 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
103342008-02-01 Kenichi Handa <handa@m17n.org> 10334 call encode_char.
10335 10335
10336 * dispextern.h (check_face_attributes, generate_ascii_font_name) 10336 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
10337 (font_name_registry): Don't extern them. 10337
10338 (split_font_name_into_vector, build_font_name_from_vector): Extern them. 103382008-02-01 Dave Love <fx@gnu.org>
10339 10339
10340 * fontset.h (Qfontset): Don't extern it. 10340 * composite.c (syms_of_composite): Make composition_hash_table weak.
10341 (new_fontset_from_font_name): Extern it. 10341
10342 103422008-02-01 Kenichi Handa <handa@m17n.org>
10343 * fontset.c: Give 8 extra slots to fontset objects. 10343
10344 (Qfontset_info): New variable. 10344 * dispextern.h (check_face_attributes, generate_ascii_font_name)
10345 (syms_of_fontset): Defsym it. 10345 (font_name_registry): Don't extern them.
10346 (FONTSET_FALLBACK): New macro. 10346 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
10347 (fontset_face): Try also the default fontset. 10347
10348 (make_fontset): Realize a fallback fontset from the default fontset. 10348 * fontset.h (Qfontset): Don't extern it.
10349 (generate_ascii_font_name): Move from xfaces.c. Rewritten by 10349 (new_fontset_from_font_name): Extern it.
10350 using split_font_name_into_vector and build_font_name_from_vector. 10350
10351 (Fset_fontset_font): Access the elements of font_spec by enum 10351 * fontset.c: Give 8 extra slots to fontset objects.
10352 FONT_SPEC_INDEX. If font_spec is a string, extract the registry 10352 (Qfontset_info): New variable.
10353 name by using split_font_name_into_vector. 10353 (syms_of_fontset): Defsym it.
10354 (Fnew_fontset): If no ASCII font is specified in FONTLIST, 10354 (FONTSET_FALLBACK): New macro.
10355 generate a proper font name from the fontset name. Update 10355 (fontset_face): Try also the default fontset.
10356 Vfontset_alias_alist. 10356 (make_fontset): Realize a fallback fontset from the default fontset.
10357 (n_auto_fontsets): New variable. 10357 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
10358 (new_fontset_from_font_name): New function. 10358 using split_font_name_into_vector and build_font_name_from_vector.
10359 (Ffont_info): Store the information about fonts generated from the 10359 (Fset_fontset_font): Access the elements of font_spec by enum
10360 default fontset in the first extra slot of the returned char-table. 10360 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
10361 10361 name by using split_font_name_into_vector.
10362 * xfaces.c (generate_ascii_font_name): Move to fontset.c. 10362 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
10363 (font_name_registry): Delete function. 10363 generate a proper font name from the fontset name. Update
10364 (split_font_name_into_vector): New function. 10364 Vfontset_alias_alist.
10365 (build_font_name_from_vector): New function. 10365 (n_auto_fontsets): New variable.
10366 (font_list): The argument REGISTRY is now a list of registry names. 10366 (new_fontset_from_font_name): New function.
10367 (choose_face_font): If we are choosing an ASCII font, and ATTRS 10367 (Ffont_info): Store the information about fonts generated from the
10368 specifies an explicit font name, return the name as is. Make a 10368 default fontset in the first extra slot of the returned char-table.
10369 list of registy names. 10369
10370 10370 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
10371 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change 10371 (font_name_registry): Delete function.
10372 of x_new_fontset. 10372 (split_font_name_into_vector): New function.
10373 (Fx_create_frame): Don't call x_new_fontset here. Just use 10373 (build_font_name_from_vector): New function.
10374 x_list_fonts to check the existence of fonts. 10374 (font_list): The argument REGISTRY is now a list of registry names.
10375 10375 (choose_face_font): If we are choosing an ASCII font, and ATTRS
10376 * xterm.h (x_new_fontset): Adjust prototype. 10376 specifies an explicit font name, return the name as is. Make a
10377 10377 list of registy names.
10378 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp 10378
10379 string. Use new_fontset_from_font_name to create a fontset from a 10379 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
10380 font name. 10380 of x_new_fontset.
10381 10381 (Fx_create_frame): Don't call x_new_fontset here. Just use
103822008-02-01 Kenichi Handa <handa@m17n.org> 10382 x_list_fonts to check the existence of fonts.
10383 10383
10384 * syntax.c (Vfind_word_boundary_function_table): New name for 10384 * xterm.h (x_new_fontset): Adjust prototype.
10385 Vnext_word_boundary_function_table. 10385
10386 (find-word-boundary-function-table): New name for 10386 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
10387 next-word-boundary-function-table. 10387 string. Use new_fontset_from_font_name to create a fontset from a
10388 10388 font name.
103892008-02-01 Dave Love <fx@gnu.org> 10389
10390 103902008-02-01 Kenichi Handa <handa@m17n.org>
10391 * Makefile.in: Fix some dependencies. 10391
10392 10392 * syntax.c (Vfind_word_boundary_function_table): New name for
10393 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but 10393 Vnext_word_boundary_function_table.
10394 set it to nil before returning. 10394 (find-word-boundary-function-table): New name for
10395 10395 next-word-boundary-function-table.
10396 * composite.c (update_compositions): Fix type error. 10396
10397 103972008-02-01 Dave Love <fx@gnu.org>
10398 * syntax.c (skip_chars, skip_syntaxes): Fix type errors. 10398
10399 10399 * Makefile.in: Fix some dependencies.
104002008-02-01 Kenichi Handa <handa@m17n.org> 10400
10401 10401 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
10402 * xterm.c (x_new_font): Optimize for the case that the font is 10402 set it to nil before returning.
10403 already set for the frame. 10403
10404 10404 * composite.c (update_compositions): Fix type error.
104052008-02-01 Kenichi Handa <handa@m17n.org> 10405
10406 10406 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
10407 * chartab.c (char_table_ascii): Check if the char table contents 10407
10408 is sub-char-table or not. 104082008-02-01 Kenichi Handa <handa@m17n.org>
10409 (char_table_set, char_table_set_range): Fix argument to 10409
10410 char_table_ascii. 10410 * xterm.c (x_new_font): Optimize for the case that the font is
10411 10411 already set for the frame.
10412 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro. 10412
10413 (detect_coding_utf_8, detect_coding_utf_16) 104132008-02-01 Kenichi Handa <handa@m17n.org>
10414 (detect_coding_emacs_mule, detect_coding_iso_2022) 10414
10415 (detect_coding_sjis, detect_coding_big5) 10415 * chartab.c (char_table_ascii): Check if the char table contents
10416 (detect_coding_ccl, detect_coding_charset): Change argument MASK 10416 is sub-char-table or not.
10417 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte 10417 (char_table_set, char_table_set_range): Fix argument to
10418 sequence is valid in this coding system. Change callers. 10418 char_table_ascii.
10419 (MAX_ANNOTATION_LENGTH): New macro. 10419
10420 (ADD_ANNOTATION_DATA): New macro. 10420 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
10421 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call 10421 (detect_coding_utf_8, detect_coding_utf_16)
10422 ADD_ANNOTATION_DATA. Change the format of annotation data. 10422 (detect_coding_emacs_mule, detect_coding_iso_2022)
10423 (ADD_CHARSET_DATA): New macro. 10423 (detect_coding_sjis, detect_coding_big5)
10424 (emacs_mule_char): New argument ID. Change callers. 10424 (detect_coding_ccl, detect_coding_charset): Change argument MASK
10425 (decode_coding_emacs_mule, decode_coding_iso_2022) 10425 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
10426 (decode_coding_sjis, decode_coding_big5, decode_coding_charset): 10426 sequence is valid in this coding system. Change callers.
10427 Produce charset annotation data in coding->charbuf. 10427 (MAX_ANNOTATION_LENGTH): New macro.
10428 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention 10428 (ADD_ANNOTATION_DATA): New macro.
10429 to charset annotation data in coding->charbuf. 10429 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
10430 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK 10430 ADD_ANNOTATION_DATA. Change the format of annotation data.
10431 coding->common_flags if the coding system is iso-2022 based and 10431 (ADD_CHARSET_DATA): New macro.
10432 uses designation. 10432 (emacs_mule_char): New argument ID. Change callers.
10433 (produce_composition): Adjust for the new annotation data format. 10433 (decode_coding_emacs_mule, decode_coding_iso_2022)
10434 (produce_charset): New function. 10434 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
10435 (produce_annotation): Handle charset annotation. 10435 Produce charset annotation data in coding->charbuf.
10436 (handle_composition_annotation, handle_charset_annotation): New 10436 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
10437 functions. 10437 to charset annotation data in coding->charbuf.
10438 (consume_chars): Handle charset annotation. Utilize the above two 10438 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
10439 functions. 10439 coding->common_flags if the coding system is iso-2022 based and
10440 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same 10440 uses designation.
10441 buffer, get the deleted text as a string and set 10441 (produce_composition): Adjust for the new annotation data format.
10442 coding->src_object to that string. 10442 (produce_charset): New function.
10443 (detect_coding, detect_coding_system): Use the new struct 10443 (produce_annotation): Handle charset annotation.
10444 coding_detection_info. 10444 (handle_composition_annotation, handle_charset_annotation): New
10445 10445 functions.
10446 * coding.h (struct coding_detection_info): New structure. 10446 (consume_chars): Handle charset annotation. Utilize the above two
10447 (struct coding_system): Adjust prototype of the member `detector'. 10447 functions.
10448 (CODING_ANNOTATE_CHARSET_MASK): New macro. 10448 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
10449 10449 buffer, get the deleted text as a string and set
104502008-02-01 Kenichi Handa <handa@m17n.org> 10450 coding->src_object to that string.
10451 10451 (detect_coding, detect_coding_system): Use the new struct
10452 * insdel.c (insert_from_gap): Fix argument to offset_intervals. 10452 coding_detection_info.
10453 10453
104542008-02-01 Dave Love <fx@gnu.org> 10454 * coding.h (struct coding_detection_info): New structure.
10455 10455 (struct coding_system): Adjust prototype of the member `detector'.
10456 * keymap.c (apropos_predicate, apropos_accumulate): Declare static. 10456 (CODING_ANNOTATE_CHARSET_MASK): New macro.
10457 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result 10457
10458 to new local and nullify apropos_accumulate before returning. 104582008-02-01 Kenichi Handa <handa@m17n.org>
10459 (syms_of_keymap): Staticpro and initialize apropos_accumulate. 10459
10460 10460 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
104612008-02-01 Kenichi Handa <handa@m17n.org> 10461
10462 104622008-02-01 Dave Love <fx@gnu.org>
10463 * charset.c (Fdefine_charset_internal): Setup charset.fast_map 10463
10464 correctly. 10464 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
10465 10465 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
104662008-02-01 Dave Love <fx@gnu.org> 10466 to new local and nullify apropos_accumulate before returning.
10467 10467 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
10468 * fns.c (Flanginfo): Call synchronize_system_time_locale. 10468
10469 104692008-02-01 Kenichi Handa <handa@m17n.org>
104702008-02-01 Kenichi Handa <handa@m17n.org> 10470
10471 10471 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
10472 The following changes are to make character composition happen 10472 correctly.
10473 automatically on displaying. 10473
10474 104742008-02-01 Dave Love <fx@gnu.org>
10475 * Makefile.in (lisp, shortlisp): Add composite.elc. 10475
10476 10476 * fns.c (Flanginfo): Call synchronize_system_time_locale.
10477 * composite.h (Qauto_composed, Vauto_composition_function) 10477
10478 (Qauto_composition_function): Extern them. 104782008-02-01 Kenichi Handa <handa@m17n.org>
10479 10479
10480 * composite.c (Vcomposition_function_table) 10480 The following changes are to make character composition happen
10481 (Qcomposition_function_table): Delete variables. 10481 automatically on displaying.
10482 (Qauto_composed, Vauto_composition_function) 10482
10483 (Qauto_composition_function): New variables. 10483 * Makefile.in (lisp, shortlisp): Add composite.elc.
10484 (run_composition_function): Don't call 10484
10485 compose-chars-after-function. 10485 * composite.h (Qauto_composed, Vauto_composition_function)
10486 (update_compositions): Clear `auto-composed' text property. 10486 (Qauto_composition_function): Extern them.
10487 (compose_chars_in_text): Delete this function. 10487
10488 (syms_of_composite): Staticpro Qauto_composed and 10488 * composite.c (Vcomposition_function_table)
10489 Qauto_composition_function. Declare Vauto_composition_function as 10489 (Qcomposition_function_table): Delete variables.
10490 a Lisp variable. 10490 (Qauto_composed, Vauto_composition_function)
10491 10491 (Qauto_composition_function): New variables.
10492 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX. 10492 (run_composition_function): Don't call
10493 10493 compose-chars-after-function.
10494 * xdisp.c (it_props): Add an entry for Qauto_composed. 10494 (update_compositions): Clear `auto-composed' text property.
10495 (handle_auto_composed_prop): New function. 10495 (compose_chars_in_text): Delete this function.
10496 10496 (syms_of_composite): Staticpro Qauto_composed and
10497 * xselect.c (selection_data_to_lisp_data): Don't call 10497 Qauto_composition_function. Declare Vauto_composition_function as
10498 compose_chars_in_text. 10498 a Lisp variable.
10499 10499
105002008-02-01 Dave Love <fx@gnu.org> 10500 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
10501 10501
10502 * keyboard.c (read_char): Modify checking around use of 10502 * xdisp.c (it_props): Add an entry for Qauto_composed.
10503 Vkeyboard_translate_table. 10503 (handle_auto_composed_prop): New function.
10504 10504
10505 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table 10505 * xselect.c (selection_data_to_lisp_data): Don't call
10506 and fix C types. 10506 compose_chars_in_text.
10507 10507
105082008-02-01 Kenichi Handa <handa@m17n.org> 105082008-02-01 Dave Love <fx@gnu.org>
10509 10509
10510 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule) 10510 * keyboard.c (read_char): Modify checking around use of
10511 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) 10511 Vkeyboard_translate_table.
10512 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle 10512
10513 the case that the last byte is '\r' correctly. 10513 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10514 (decode_coding): Flush out the unprocessed data correctly. 10514 and fix C types.
10515 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode. 10515
10516 105162008-02-01 Kenichi Handa <handa@m17n.org>
105172008-02-01 Dave Love <fx@gnu.org> 10517
10518 10518 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
10519 * xterm.c (XTread_socket): Fix changes for defined keysyms. 10519 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10520 Add XK_ISO... case. 10520 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
10521 (xaw_scroll_callback): Revert last change. 10521 the case that the last byte is '\r' correctly.
10522 10522 (decode_coding): Flush out the unprocessed data correctly.
105232008-02-01 Kenichi Handa <handa@m17n.org> 10523 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
10524 10524
10525 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list. 105252008-02-01 Dave Love <fx@gnu.org>
10526 10526
105272008-02-01 Kenichi Handa <handa@m17n.org> 10527 * xterm.c (XTread_socket): Fix changes for defined keysyms.
10528 10528 Add XK_ISO... case.
10529 * xfaces.c (Vface_resizing_fonts): New variable. 10529 (xaw_scroll_callback): Revert last change.
10530 (struct font_name): New member `resizing_ratio'. 10530
10531 (font_resizing_ratio): New function. 105312008-02-01 Kenichi Handa <handa@m17n.org>
10532 (split_font_name): Set font->resizing_ratio. 10532
10533 (better_font_p): Pay attention to font->resizing_ratio. 10533 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
10534 (build_scalable_font_name): Likewise. Don't change POINT_SIZE, 10534
10535 RESX, and RESY fields. 105352008-02-01 Kenichi Handa <handa@m17n.org>
10536 (try_alternative_families): Try scalable fonts if 10536
10537 Vscalable_fonts_allowed is not Qt. 10537 * xfaces.c (Vface_resizing_fonts): New variable.
10538 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. 10538 (struct font_name): New member `resizing_ratio'.
10539 10539 (font_resizing_ratio): New function.
105402008-02-01 Dave Love <fx@gnu.org> 10540 (split_font_name): Set font->resizing_ratio.
10541 10541 (better_font_p): Pay attention to font->resizing_ratio.
10542 * xterm.c (xaw_scroll_callback): Cast correctly. 10542 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
10543 10543 RESX, and RESY fields.
105442008-02-01 Dave Love <fx@gnu.org> 10544 (try_alternative_families): Try scalable fonts if
10545 10545 Vscalable_fonts_allowed is not Qt.
10546 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. 10546 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
10547 (lispy_kana_keys): Comment out. 10547
10548 (make_lispy_event) [XK_kana_A]: Comment out. 105482008-02-01 Dave Love <fx@gnu.org>
10549 10549
10550 * xterm.c (xaw_scroll_callback): Cast call_data. 10550 * xterm.c (xaw_scroll_callback): Cast correctly.
10551 (XTread_socket): Deal with ASCII keysyms. 10551
10552 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. 105522008-02-01 Dave Love <fx@gnu.org>
10553 10553
105542008-02-01 Dave Love <fx@gnu.org> 10554 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
10555 10555 (lispy_kana_keys): Comment out.
10556 * xterm.c (Vx_keysym_table): New. 10556 (make_lispy_event) [XK_kana_A]: Comment out.
10557 (syms_of_xterm): Initialize it. 10557
10558 (XTread_socket): Use it. 10558 * xterm.c (xaw_scroll_callback): Cast call_data.
10559 From head: Eliminate incorrect optimization that tried to avoid 10559 (XTread_socket): Deal with ASCII keysyms.
10560 decoding the output of X*LookupString. 10560 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
10561 (x_get_font_repertory): Delete charset declaration. 10561
10562 105622008-02-01 Dave Love <fx@gnu.org>
105632008-02-01 Kenichi Handa <handa@m17n.org> 10563
10564 10564 * xterm.c (Vx_keysym_table): New.
10565 * coding.c (detect_coding_charset): If only ASCII bytes are found, 10565 (syms_of_xterm): Initialize it.
10566 return 0. 10566 (XTread_socket): Use it.
10567 (Fdefine_coding_system_internal): Setup 10567 From head: Eliminate incorrect optimization that tried to avoid
10568 CODING_ATTR_ASCII_COMPAT (attrs) correctly. 10568 decoding the output of X*LookupString.
10569 10569 (x_get_font_repertory): Delete charset declaration.
105702008-02-01 Dave Love <fx@gnu.org> 10570
10571 105712008-02-01 Kenichi Handa <handa@m17n.org>
10572 * coding.c (Fcheck_coding_system): Doc fix. 10572
10573 10573 * coding.c (detect_coding_charset): If only ASCII bytes are found,
10574 * editfns.c (Finsert_byte): Return a proper value. 10574 return 0.
10575 10575 (Fdefine_coding_system_internal): Setup
105762008-02-01 Kenichi Handa <handa@m17n.org> 10576 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
10577 10577
10578 * coding.c (decode_coding): Fix args to translate_chars. Pay 105782008-02-01 Dave Love <fx@gnu.org>
10579 attention to Vstandard_translation_table_for_decode. 10579
10580 (encode_coding): Fix args to translate_chars. Pay attention to 10580 * coding.c (Fcheck_coding_system): Doc fix.
10581 Vstandard_translation_table_for_encode. 10581
10582 10582 * editfns.c (Finsert_byte): Return a proper value.
10583 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by 10583
10584 SINGLE_BYTE_CHAR_P. 105842008-02-01 Kenichi Handa <handa@m17n.org>
10585 10585
10586 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P, 10586 * coding.c (decode_coding): Fix args to translate_chars. Pay
10587 not by SINGLE_BYTE_CHAR_P. 10587 attention to Vstandard_translation_table_for_decode.
10588 10588 (encode_coding): Fix args to translate_chars. Pay attention to
10589 * fns.c (concat): Check CH by ASCII_CHAR_P, not by 10589 Vstandard_translation_table_for_encode.
10590 SINGLE_BYTE_CHAR_P. 10590
10591 10591 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
10592 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by 10592 SINGLE_BYTE_CHAR_P.
10593 SINGLE_BYTE_CHAR_P. 10593
10594 10594 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
10595 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not 10595 not by SINGLE_BYTE_CHAR_P.
10596 by SINGLE_BYTE_CHAR_P. 10596
10597 10597 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
10598 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by 10598 SINGLE_BYTE_CHAR_P.
10599 SINGLE_BYTE_CHAR_P. 10599
10600 10600 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
106012008-02-01 Dave Love <fx@gnu.org> 10601 SINGLE_BYTE_CHAR_P.
10602 10602
10603 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. 10603 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
10604 10604 by SINGLE_BYTE_CHAR_P.
106052008-02-01 Dave Love <fx@gnu.org> 10605
10606 10606 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
10607 * fns.c (Flanginfo): Fix typo. 10607 SINGLE_BYTE_CHAR_P.
10608 10608
10609 * unexelf.c (unexec): Make last change conditional on Irix 6.5. 106092008-02-01 Dave Love <fx@gnu.org>
10610 10610
106112008-02-01 Kenichi Handa <handa@m17n.org> 10611 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
10612 10612
10613 * coding.c (detect_coding_utf_8, detect_coding_utf_16) 106132008-02-01 Dave Love <fx@gnu.org>
10614 (detect_coding_emacs_mule, detect_coding_iso_2022) 10614
10615 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check 10615 * fns.c (Flanginfo): Fix typo.
10616 incomplete byte sequence. Don't update *mask when correctly detected. 10616
10617 (decode_coding_sjis): Fix decoding of katakana-jisx0201. 10617 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
10618 (detect_eol): Delete the argument CODING, and add the argument CATEGORY. 10618
10619 (detect_coding, detect_coding_system): Adjust for the changes above. 106192008-02-01 Kenichi Handa <handa@m17n.org>
10620 10620
106212008-02-01 Kenichi Handa <handa@m17n.org> 10621 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
10622 10622 (detect_coding_emacs_mule, detect_coding_iso_2022)
10623 * character.c (char_string): Rename from 10623 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
10624 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK. 10624 incomplete byte sequence. Don't update *mask when correctly detected.
10625 (string_char): Rename from string_char. 10625 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
10626 10626 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
10627 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string 10627 (detect_coding, detect_coding_system): Adjust for the changes above.
10628 if C is greater than MAX_3_BYTE_CHAR. 10628
10629 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call 106292008-02-01 Kenichi Handa <handa@m17n.org>
10630 string_char instead of string_char_with_unification. 10630
10631 10631 * character.c (char_string): Rename from
106322008-02-01 Dave Love <fx@gnu.org> 10632 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
10633 10633 (string_char): Rename from string_char.
10634 * coding.c (decode_coding_utf_8): Treat surrogates as invalid. 10634
10635 10635 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
106362008-02-01 Kenichi Handa <handa@m17n.org> 10636 if C is greater than MAX_3_BYTE_CHAR.
10637 10637 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
10638 * keymap.c (push_key_description): Pay attention to force_multibyte. 10638 string_char instead of string_char_with_unification.
10639 10639
10640 * regex.c (re_search_2): Fix for the case of unibyte buffer. 106402008-02-01 Dave Love <fx@gnu.org>
10641 10641
106422008-02-01 Dave Love <fx@gnu.org> 10642 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
10643 10643
10644 * charset.c (define_charset_internal): Rename `supprementary'. 106442008-02-01 Kenichi Handa <handa@m17n.org>
10645 10645
10646 * Makefile.in (lisp, shortlisp): Remove latin-N. 10646 * keymap.c (push_key_description): Pay attention to force_multibyte.
10647 10647
106482008-02-01 Dave Love <fx@gnu.org> 10648 * regex.c (re_search_2): Fix for the case of unibyte buffer.
10649 10649
10650 * xfns.c (x_window, x_window): Use use_xim. 106502008-02-01 Dave Love <fx@gnu.org>
10651 10651
10652 * xterm.c (use_xim): Initialize. 10652 * charset.c (define_charset_internal): Rename `supprementary'.
10653 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. 10653
10654 (x_term_init): Maybe set use_xim. 10654 * Makefile.in (lisp, shortlisp): Remove latin-N.
10655 10655
10656 * xterm.h (use_xim) [HAVE_X_I18N]: Declare. 106562008-02-01 Dave Love <fx@gnu.org>
10657 10657
106582008-02-01 Kenichi Handa <handa@m17n.org> 10658 * xfns.c (x_window, x_window): Use use_xim.
10659 10659
10660 * search.c (search_buffer): Fix case-fold-search of multibyte 10660 * xterm.c (use_xim): Initialize.
10661 characters. 10661 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10662 (boyer_moore): Rename the last argument to char_high_bits. 10662 (x_term_init): Maybe set use_xim.
10663 10663
106642008-02-01 Kenichi Handa <handa@m17n.org> 10664 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10665 10665
10666 * xdisp.c (display_string): Fix for the case of zero width glyph. 106662008-02-01 Kenichi Handa <handa@m17n.org>
10667 10667
10668 * xfns.c (x_set_font): Change the error message of the case that 10668 * search.c (search_buffer): Fix case-fold-search of multibyte
10669 x_new_fontset returns Qt. 10669 characters.
10670 10670 (boyer_moore): Rename the last argument to char_high_bits.
10671 * xfaces.c (set_lface_from_font_name): Reject the default fontset. 10671
10672 (Finternal_set_lisp_face_attribute): Use signal_error for the 106722008-02-01 Kenichi Handa <handa@m17n.org>
10673 error of invalid fontset. 10673
10674 10674 * xdisp.c (display_string): Fix for the case of zero width glyph.
10675 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default 10675
10676 fontset, return Qt. 10676 * xfns.c (x_set_font): Change the error message of the case that
10677 10677 x_new_fontset returns Qt.
106782008-02-01 Dave Love <fx@gnu.org> 10678
10679 10679 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
10680 * unexelf.c (unexec): Make .got handling not SGI-specific. 10680 (Finternal_set_lisp_face_attribute): Use signal_error for the
10681 10681 error of invalid fontset.
10682 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. 10682
10683 10683 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
10684 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'. 10684 fontset, return Qt.
10685 10685
10686 * keyboard.c (read_key_sequence): Fix type error. 106862008-02-01 Dave Love <fx@gnu.org>
10687 10687
10688 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix 10688 * unexelf.c (unexec): Make .got handling not SGI-specific.
10689 type error. 10689
10690 10690 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
10691 * fontset.c (fontset_add): Return Lisp_Object. 10691
10692 10692 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
106932008-02-01 Dave Love <fx@gnu.org> 10693
10694 10694 * keyboard.c (read_key_sequence): Fix type error.
10695 * charset.h (charset_ordered_list_tick): Declare extern. 10695
10696 10696 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
106972008-02-01 Kenichi Handa <handa@m17n.org> 10697 type error.
10698 10698
10699 The following changes (and some of 2008-02-01 changes of mine) are 10699 * fontset.c (fontset_add): Return Lisp_Object.
10700 for handling syntax, category, and case conversion for unibyte 10700
10701 characters by converting them to multibyte on the fly. With these 107012008-02-01 Dave Love <fx@gnu.org>
10702 changes, we don't have to setup syntax and case tables for unibyte 10702
10703 characters in each language environment. 10703 * charset.h (charset_ordered_list_tick): Declare extern.
10704 10704
10705 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to 107052008-02-01 Kenichi Handa <handa@m17n.org>
10706 multibyte if necessary. 10706
10707 10707 The following changes (and some of 2008-02-01 changes of mine) are
10708 * bytecode.c (Fbyte_code): Likewise. 10708 for handling syntax, category, and case conversion for unibyte
10709 10709 characters by converting them to multibyte on the fly. With these
10710 * character.h (LEADING_CODE_LATIN_1_MIN) 10710 changes, we don't have to setup syntax and case tables for unibyte
10711 (LEADING_CODE_LATIN_1_MAX): New macros. 10711 characters in each language environment.
10712 (unibyte_to_multibyte_table): Extern it. 10712
10713 (unibyte_char_to_multibyte): New macro. 10713 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
10714 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table. 10714 multibyte if necessary.
10715 (CHAR_LEADING_CODE): New macro. 10715
10716 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro. 10716 * bytecode.c (Fbyte_code): Likewise.
10717 10717
10718 * character.c (unibyte_to_multibyte_table): New variable. 10718 * character.h (LEADING_CODE_LATIN_1_MIN)
10719 (unibyte_char_to_multibyte): Move to character.h and define as macro. 10719 (LEADING_CODE_LATIN_1_MAX): New macros.
10720 (multibyte_char_to_unibyte): If C is an eight-bit character, 10720 (unibyte_to_multibyte_table): Extern it.
10721 convert it to the corresponding byte value. 10721 (unibyte_char_to_multibyte): New macro.
10722 10722 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
10723 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is 10723 (CHAR_LEADING_CODE): New macro.
10724 not 1, signals an error. Update the elements of 10724 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
10725 unibyte_to_multibyte_table. 10725
10726 (init_charset_once): Initialize unibyte_to_multibyte_table. 10726 * character.c (unibyte_to_multibyte_table): New variable.
10727 (syms_of_charset): Define the charset `iso-8859-1'. 10727 (unibyte_char_to_multibyte): Move to character.h and define as macro.
10728 10728 (multibyte_char_to_unibyte): If C is an eight-bit character,
10729 * cmds.c (internal_self_insert): In a multibyte buffer, insert C 10729 convert it to the corresponding byte value.
10730 as is without converting it to unibyte. In a unibyte buffer, 10730
10731 convert C to multibyte before checking the syntax. 10731 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
10732 10732 not 1, signals an error. Update the elements of
10733 * lisp.h (unibyte_char_to_multibyte): Delete extern. 10733 unibyte_to_multibyte_table.
10734 10734 (init_charset_once): Initialize unibyte_to_multibyte_table.
10735 * minibuf.c (Fminibuffer_complete_word): Use the macro 10735 (syms_of_charset): Define the charset `iso-8859-1'.
10736 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE. 10736
10737 10737 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
10738 * regex.h (struct re_pattern_buffer): New member target_multibyte. 10738 as is without converting it to unibyte. In a unibyte buffer,
10739 10739 convert C to multibyte before checking the syntax.
10740 * regex.c (RE_TARGET_MULTIBYTE_P): New macro. 10740
10741 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If 10741 * lisp.h (unibyte_char_to_multibyte): Delete extern.
10742 that is zero, convert an eight-bit char to multibyte. 10742
10743 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for 10743 * minibuf.c (Fminibuffer_complete_word): Use the macro
10744 non-emacs case. 10744 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
10745 (PATFETCH): Convert an eight-bit char to multibyte. 10745
10746 (HANDLE_UNIBYTE_RANGE): New macro. 10746 * regex.h (struct re_pattern_buffer): New member target_multibyte.
10747 (regex_compile): Setup the compiled pattern for multibyte chars 10747
10748 even if the given regex string is unibyte. Use PATFETCH_RAW 10748 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
10749 instead of PATFETCH in many places. To handle `charset' 10749 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
10750 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap 10750 that is zero, convert an eight-bit char to multibyte.
10751 only for ASCII chars. 10751 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
10752 (analyse_first) <exactn>: Simplify because the compiled pattern 10752 non-emacs case.
10753 is multibyte. 10753 (PATFETCH): Convert an eight-bit char to multibyte.
10754 <charset_not>: Setup fastmap from bitmap only for ASCII chars. 10754 (HANDLE_UNIBYTE_RANGE): New macro.
10755 <charset>: Use CHAR_LEADING_CODE to get leading codes. 10755 (regex_compile): Setup the compiled pattern for multibyte chars
10756 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here. 10756 even if the given regex string is unibyte. Use PATFETCH_RAW
10757 (re_compile_fastmap) [emacs]: Call analyse_first with the arg 10757 instead of PATFETCH in many places. To handle `charset'
10758 multibyte always 1. 10758 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
10759 (re_search_2): In emacs, set the locale variable multibyte to 1, 10759 only for ASCII chars.
10760 otherwise to 0. New local variable target_multibyte. Check it 10760 (analyse_first) <exactn>: Simplify because the compiled pattern
10761 to decide the multibyteness of STR1 and STR2. If 10761 is multibyte.
10762 target_multibyte is zero, convert unibyte chars to multibyte 10762 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
10763 before translating and checking fastmap. 10763 <charset>: Use CHAR_LEADING_CODE to get leading codes.
10764 (TARGET_CHAR_AND_LENGTH): New macro. 10764 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
10765 (re_match_2_internal): In emacs, set the locale variable multibyte 10765 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
10766 to 1, otherwise to 0. New local variable target_multibyte. Check 10766 multibyte always 1.
10767 it to decide the multibyteness of STR1 and STR2. Use 10767 (re_search_2): In emacs, set the locale variable multibyte to 1,
10768 TARGET_CHAR_AND_LENGTH to fetch a character from D. 10768 otherwise to 0. New local variable target_multibyte. Check it
10769 <charset, charset_not>: If multibyte is nonzero, check fastmap 10769 to decide the multibyteness of STR1 and STR2. If
10770 only for ASCII chars. Call bcmp_translate with 10770 target_multibyte is zero, convert unibyte chars to multibyte
10771 target_multibyte, not with multibyte. 10771 before translating and checking fastmap.
10772 <begline>: Declare the local variable C as `unsigned'. 10772 (TARGET_CHAR_AND_LENGTH): New macro.
10773 (bcmp_translate): Change the last arg name to target_multibyte. 10773 (re_match_2_internal): In emacs, set the locale variable multibyte
10774 10774 to 1, otherwise to 0. New local variable target_multibyte. Check
10775 * search.c (compile_pattern_1): Don't adjust the multibyteness of 10775 it to decide the multibyteness of STR1 and STR2. Use
10776 the regexp pattern and the matching target. Set cp->buf.multibyte 10776 TARGET_CHAR_AND_LENGTH to fetch a character from D.
10777 to the multibyteness of the regexp pattern. Set 10777 <charset, charset_not>: If multibyte is nonzero, check fastmap
10778 cp->but.target_multibyte to the multibyteness of the matching target. 10778 only for ASCII chars. Call bcmp_translate with
10779 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of 10779 target_multibyte, not with multibyte.
10780 FETCH_STRING_CHAR_ADVANCE. 10780 <begline>: Declare the local variable C as `unsigned'.
10781 (Freplace_match): Convert unibyte chars to multibyte. 10781 (bcmp_translate): Change the last arg name to target_multibyte.
10782 10782
10783 * syntax.c (char_quoted, back_comment, scan_words) 10783 * search.c (compile_pattern_1): Don't adjust the multibyteness of
10784 (Fforward_comment, scan_lists, Fbackward_prefix_chars) 10784 the regexp pattern and the matching target. Set cp->buf.multibyte
10785 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert 10785 to the multibyteness of the regexp pattern. Set
10786 unibyte chars to multibyte. 10786 cp->but.target_multibyte to the multibyteness of the matching target.
10787 (skip_chars): Delete the arg syntaxp, and move the code for 10787 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
10788 handling syntaxes to skip_syntaxes. Change callers. 10788 FETCH_STRING_CHAR_ADVANCE.
10789 Fix the case that the multibyteness of STRING and the current 10789 (Freplace_match): Convert unibyte chars to multibyte.
10790 buffer doesn't match. 10790
10791 (skip_syntaxes): New function. 10791 * syntax.c (char_quoted, back_comment, scan_words)
10792 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by 10792 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
10793 SINGLE_BYTE_CHAR_P. 10793 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
10794 10794 unibyte chars to multibyte.
107952008-02-01 Kenichi Handa <handa@m17n.org> 10795 (skip_chars): Delete the arg syntaxp, and move the code for
10796 10796 handling syntaxes to skip_syntaxes. Change callers.
10797 * xfaces.c (QCfontset): New variable. 10797 Fix the case that the multibyteness of STRING and the current
10798 (LFACE_FONTSET): New macro. 10798 buffer doesn't match.
10799 (check_lface_attrs): Check also LFACE_FONTSET_INDEX. 10799 (skip_syntaxes): New function.
10800 (set_lface_from_font_name): Setup LFACE_FONTSET (lface). 10800 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
10801 (Finternal_set_lisp_face_attribute) 10801 SINGLE_BYTE_CHAR_P.
10802 (Finternal_get_lisp_face_attribute): Handle QCfontset. 10802
10803 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX, 108032008-02-01 Kenichi Handa <handa@m17n.org>
10804 check also LFACE_FONTSET_INDEX. 10804
10805 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not 10805 * xfaces.c (QCfontset): New variable.
10806 attrs[LFACE_FONT_INDEX]. 10806 (LFACE_FONTSET): New macro.
10807 (syms_of_xfaces): Intern and staticpro QCfontset. 10807 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
10808 10808 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
10809 * dispextern.h (enum lface_attribute_index): New member 10809 (Finternal_set_lisp_face_attribute)
10810 LFACE_FONTSET_INDEX. 10810 (Finternal_get_lisp_face_attribute): Handle QCfontset.
10811 10811 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
10812 * fns.c (base64_encode_1): Handle eight-bit chars correctly. 10812 check also LFACE_FONTSET_INDEX.
10813 10813 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
108142008-02-01 Kenichi Handa <handa@m17n.org> 10814 attrs[LFACE_FONT_INDEX].
10815 10815 (syms_of_xfaces): Intern and staticpro QCfontset.
10816 * coding.c (coding_set_destination): Fix coding->destination for 10816
10817 the case converting a region. 10817 * dispextern.h (enum lface_attribute_index): New member
10818 (encode_coding_utf_8): Encode eight-bit chars as single byte. 10818 LFACE_FONTSET_INDEX.
10819 (encode_coding_object): Fix coding->dst_pos and 10819
10820 coding->dst_pos_byte for the case converting a region. 10820 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
10821 10821
10822 * insdel.c (insert_from_gap): Make it work even if PT != GTP. 108222008-02-01 Kenichi Handa <handa@m17n.org>
10823 10823
10824 * character.h (BYTE8_STRING): New macro. 10824 * coding.c (coding_set_destination): Fix coding->destination for
10825 10825 the case converting a region.
10826 * fns.c (base64_decode_1): Insert eight-bit chars correctly. 10826 (encode_coding_utf_8): Encode eight-bit chars as single byte.
10827 10827 (encode_coding_object): Fix coding->dst_pos and
108282008-02-01 Kenichi Handa <handa@m17n.org> 10828 coding->dst_pos_byte for the case converting a region.
10829 10829
10830 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit 10830 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
10831 characters by octal form. 10831
10832 10832 * character.h (BYTE8_STRING): New macro.
10833 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. 10833
10834 10834 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
10835 * buffer.h (_fetch_multibyte_char_len): Delete extern. 10835
10836 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use 108362008-02-01 Kenichi Handa <handa@m17n.org>
10837 _fetch_multibyte_char_len. 10837
10838 (FETCH_CHAR_AS_MULTIBYTE): New macro. 10838 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
10839 10839 characters by octal form.
10840 * casetab.c (set_canon, set_identity, shuffle): Simplify. 10840
10841 10841 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10842 * casefiddle.c (casify_object): Simplify. Handle the case that 10842
10843 the case conversion change the byte length. 10843 * buffer.h (_fetch_multibyte_char_len): Delete extern.
10844 (casify_region): Likewise. 10844 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
10845 10845 _fetch_multibyte_char_len.
10846 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros. 10846 (FETCH_CHAR_AS_MULTIBYTE): New macro.
10847 10847
10848 * character.c (_fetch_multibyte_char_len): Delete this variable. 10848 * casetab.c (set_canon, set_identity, shuffle): Simplify.
10849 (syms_of_character): Setup Vprintable_chars. 10849
10850 10850 * casefiddle.c (casify_object): Simplify. Handle the case that
10851 * editfns.c (Fchar_equal): Fix for the unibyte case. 10851 the case conversion change the byte length.
10852 (Finsert_byte): New function. 10852 (casify_region): Likewise.
10853 (syms_of_editfns): Defsubr it. 10853
10854 10854 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
10855 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead 10855
10856 of direct code 0x3ffff. 10856 * character.c (_fetch_multibyte_char_len): Delete this variable.
10857 10857 (syms_of_character): Setup Vprintable_chars.
10858 * search.c (Freplace_match): Fix for the unibyte case. 10858
10859 10859 * editfns.c (Fchar_equal): Fix for the unibyte case.
108602008-02-01 Kenichi Handa <handa@m17n.org> 10860 (Finsert_byte): New function.
10861 10861 (syms_of_editfns): Defsubr it.
10862 * lread.c (safe_to_load_p): Fix the logic. 10862
10863 10863 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
10864 * syntax.c (scan_words): Don't treat characters belonging to 10864 of direct code 0x3ffff.
10865 different scripts as constituting a word. 10865
10866 10866 * search.c (Freplace_match): Fix for the unibyte case.
10867 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. 10867
10868 108682008-02-01 Kenichi Handa <handa@m17n.org>
10869 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script. 10869
10870 10870 * lread.c (safe_to_load_p): Fix the logic.
10871 * emacs.c (main): In the case of --unibyte, instead of aborting on 10871
10872 finding non-empty buffer, make it unibyte. 10872 * syntax.c (scan_words): Don't treat characters belonging to
10873 10873 different scripts as constituting a word.
108742008-02-01 Kenichi Handa <handa@m17n.org> 10874
10875 10875 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10876 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' 10876
10877 to create a fontset. 10877 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
10878 10878
108792008-02-01 Dave Love <fx@gnu.org> 10879 * emacs.c (main): In the case of --unibyte, instead of aborting on
10880 10880 finding non-empty buffer, make it unibyte.
10881 * character.c (Funibyte_char_to_multibyte): Doc fix. 10881
10882 108822008-02-01 Kenichi Handa <handa@m17n.org>
10883 * xfns.c [HAVE_STDLIB_H]: Fix last change. 10883
10884 10884 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
108852008-02-01 Kenichi Handa <handa@m17n.org> 10885 to create a fontset.
10886 10886
10887 * fontset.c (fontset_add): Make the type `int'. 108872008-02-01 Dave Love <fx@gnu.org>
10888 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. 10888
10889 10889 * character.c (Funibyte_char_to_multibyte): Doc fix.
10890 * character.c (unibyte_char_to_multibyte) 10890
10891 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to 10891 * xfns.c [HAVE_STDLIB_H]: Fix last change.
10892 charset_unibyte, not charset_primary. 10892
10893 108932008-02-01 Kenichi Handa <handa@m17n.org>
10894 * charset.h (charset_unibyte): Extern it instead of charset_primary. 10894
10895 10895 * fontset.c (fontset_add): Make the type `int'.
10896 * charset.c (charset_unibyte): Rename from charset_primary. 10896 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
10897 (Funibyte_charset): Rename from Fprimary_charset. 10897
10898 (Fset_unibyte_charset): Rename from Fset_primary_charset. 10898 * character.c (unibyte_char_to_multibyte)
10899 (syms_of_charset): Adjust for the above changes. 10899 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
10900 10900 charset_unibyte, not charset_primary.
10901 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not 10901
10902 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when 10902 * charset.h (charset_unibyte): Extern it instead of charset_primary.
10903 it->multibyte_p is zero. 10903
10904 10904 * charset.c (charset_unibyte): Rename from charset_primary.
10905 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): 10905 (Funibyte_charset): Rename from Fprimary_charset.
10906 Delete extern. 10906 (Fset_unibyte_charset): Rename from Fset_primary_charset.
10907 10907 (syms_of_charset): Adjust for the above changes.
109082008-02-01 Kenichi Handa <handa@m17n.org> 10908
10909 10909 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10910 * coding.c (Fdefine_coding_system_internal): Fix category setting 10910 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10911 for a coding system of type iso-2022. 10911 it->multibyte_p is zero.
10912 10912
109132008-02-01 Kenichi Handa <handa@m17n.org> 10913 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
10914 10914 Delete extern.
10915 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1. 10915
10916 109162008-02-01 Kenichi Handa <handa@m17n.org>
109172008-02-01 Kenichi Handa <handa@m17n.org> 10917
10918 10918 * coding.c (Fdefine_coding_system_internal): Fix category setting
10919 * syntax.c (Vnext_word_boundary_function_table): New variable. 10919 for a coding system of type iso-2022.
10920 (next-word-boundary-function-table): Declare it as a Lisp variable 10920
10921 in syms_of_syntax. 109212008-02-01 Kenichi Handa <handa@m17n.org>
10922 (scan_words): Call functions in Vnext_word_boundary_function_table 10922
10923 if any. 10923 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
10924 10924
10925 * xterm.c (x_load_font): Initialize fontp->fontset to -1. 109252008-02-01 Kenichi Handa <handa@m17n.org>
10926 10926
10927 * fontset.c (fs_load_font): If fontp->charset is not negative, 10927 * syntax.c (Vnext_word_boundary_function_table): New variable.
10928 return fontp without setting its members. 10928 (next-word-boundary-function-table): Declare it as a Lisp variable
10929 10929 in syms_of_syntax.
109302008-02-01 Dave Love <fx@gnu.org> 10930 (scan_words): Call functions in Vnext_word_boundary_function_table
10931 10931 if any.
10932 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). 10932
10933 10933 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
10934 * m/sparc.h (HAVE_ALLOCA): Delete. 10934
10935 10935 * fontset.c (fs_load_font): If fontp->charset is not negative,
10936 * s/irix6-5.h: Don't include strings.h. 10936 return fontp without setting its members.
10937 (bcopy, bzero, bcmp): Don't undef. 10937
10938 109382008-02-01 Dave Love <fx@gnu.org>
10939 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef. 10939
10940 10940 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
10941 * s/usg5-4.h (NO_SIOCTL_H): Don't define. 10941
10942 (TIOCSIGSEND): Don't test IRIX6. 10942 * m/sparc.h (HAVE_ALLOCA): Delete.
10943 (bcopy, bzero, bcmp): Define conditionally. 10943
10944 10944 * s/irix6-5.h: Don't include strings.h.
109452008-02-01 Kenichi Handa <handa@m17n.org> 10945 (bcopy, bzero, bcmp): Don't undef.
10946 10946
10947 * buffer.c (Qas, Qmake, Qto): New variables. 10947 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
10948 (Fset_buffer_multibyte): New optional arg METHOD. Change caller. 10948
10949 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. 10949 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
10950 10950 (TIOCSIGSEND): Don't test IRIX6.
10951 * callproc.c (Fcall_process): Don't call insert_1_both directly if 10951 (bcopy, bzero, bcmp): Define conditionally.
10952 we are inserting a process output into a multibyte buffer. 10952
10953 109532008-02-01 Kenichi Handa <handa@m17n.org>
10954 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call 10954
10955 multibyte_char_to_unibyte. 10955 * buffer.c (Qas, Qmake, Qto): New variables.
10956 10956 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
10957 * character.c (Funibyte_char_to_multibyte): If C can't be decoded 10957 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
10958 by the primary charset, make it eight-bit char. 10958
10959 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8. 10959 * callproc.c (Fcall_process): Don't call insert_1_both directly if
10960 10960 we are inserting a process output into a multibyte buffer.
10961 * charset.c (charset_eight_bit, Qeight_bit_control): New variables. 10961
10962 (charset_8_bit__control, charset_8_bit_graphic) 10962 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
10963 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables. 10963 multibyte_char_to_unibyte.
10964 (define_charset_internal): New function. 10964
10965 (syms_of_charset): Call define_charset_internal for pre-defined 10965 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
10966 charsets. 10966 by the primary charset, make it eight-bit char.
10967 10967 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
10968 * charset.h (charset_8_bit): Extern it. 10968
10969 10969 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
10970 * coding.c (make_conversion_work_buffer): Adjust for the change 10970 (charset_8_bit__control, charset_8_bit_graphic)
10971 of Fset_buffer_multibyte. 10971 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
10972 (encode_coding_raw_text): Increment p0 in the loop. 10972 (define_charset_internal): New function.
10973 10973 (syms_of_charset): Call define_charset_internal for pre-defined
10974 * lisp.h (Fset_buffer_multibyte): Adjust prototype. 10974 charsets.
10975 10975
10976 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust 10976 * charset.h (charset_8_bit): Extern it.
10977 for the change of Fset_buffer_multibyte. 10977
10978 10978 * coding.c (make_conversion_work_buffer): Adjust for the change
10979 * fns.c (Fstring_to_multibyte): New function. 10979 of Fset_buffer_multibyte.
10980 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. 10980 (encode_coding_raw_text): Increment p0 in the loop.
10981 10981
109822008-02-01 Dave Love <fx@gnu.org> 10982 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
10983 10983
10984 * xfns.c (x_put_x_image): Declare args. 10984 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
10985 10985 for the change of Fset_buffer_multibyte.
10986 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars. 10986
10987 (try_font_list): Declare an arg. 10987 * fns.c (Fstring_to_multibyte): New function.
10988 10988 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
10989 * xdisp.c (message2_nolog, set_message): Declare an arg. 10989
10990 109902008-02-01 Dave Love <fx@gnu.org>
10991 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm. 10991
10992 10992 * xfns.c (x_put_x_image): Declare args.
10993 * syntax.c (scan_sexps_forward): Declare an arg. 10993
10994 10994 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
10995 * scroll.c (calculate_scrolling, calculate_direct_scrolling): 10995 (try_font_list): Declare an arg.
10996 Declare an arg. 10996
10997 10997 * xdisp.c (message2_nolog, set_message): Declare an arg.
10998 * lisp.h (Fnew_fontset): Declare. 10998
10999 10999 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
11000 * keymap.c (push_key_description): Call CHARACTERP correctly. 11000
11001 11001 * syntax.c (scan_sexps_forward): Declare an arg.
11002 * fontset.c (fontset_add): Declare args. Call make_number correctly. 11002
11003 (face_for_char): Delete unused vars. 11003 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11004 (Fset_fontset_font): Doc fix. Delete unused vars. 11004 Declare an arg.
11005 11005
11006 * doc.c (Fsubstitute_command_keys): Delete unused vars. 11006 * lisp.h (Fnew_fontset): Declare.
11007 11007
11008 * composite.c (update_compositions): Declare arg. 11008 * keymap.c (push_key_description): Call CHARACTERP correctly.
11009 11009
11010 * cm.c (calccost, cmgoto): Declare args. 11010 * fontset.c (fontset_add): Declare args. Call make_number correctly.
11011 11011 (face_for_char): Delete unused vars.
11012 * charset.c: Remove `emacs' conditional. Doc fixes. 11012 (Fset_fontset_font): Doc fix. Delete unused vars.
11013 (map_char_table_for_charset): Declare. 11013
11014 11014 * doc.c (Fsubstitute_command_keys): Delete unused vars.
11015 * character.c (syms_of_character) <translation-table-vector>: Doc fix. 11015
11016 11016 * composite.c (update_compositions): Declare arg.
11017 * ccl.c: Remove `emacs' conditional. 11017
11018 11018 * cm.c (calccost, cmgoto): Declare args.
110192008-02-01 Kenichi Handa <handa@m17n.org> 11019
11020 11020 * charset.c: Remove `emacs' conditional. Doc fixes.
11021 The following changes are to allow specifying multiple font 11021 (map_char_table_for_charset): Declare.
11022 patterns for a character range (specified by script or charset). 11022
11023 11023 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
11024 * Makefile.in (abbrev.o): Depend on syntax.h. 11024
11025 (xfaces.o): Depend on charset.h. 11025 * ccl.c: Remove `emacs' conditional.
11026 11026
11027 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not 110272008-02-01 Kenichi Handa <handa@m17n.org>
11028 SINGLE_BYTE_CHAR_P. 11028
11029 11029 The following changes are to allow specifying multiple font
11030 * ccl.c (Fccl_execute_on_string): Add `const' to local variables. 11030 patterns for a character range (specified by script or charset).
11031 11031
11032 * character.h (Vchar_script_table): Extern it. 11032 * Makefile.in (abbrev.o): Depend on syntax.h.
11033 11033 (xfaces.o): Depend on charset.h.
11034 * character.c (Vscript_alist): Delete. 11034
11035 (Vchar_script_table, Qchar_script_table): New variable. 11035 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
11036 (syms_of_character): Declare Vchar_script_table as a lisp variable 11036 SINGLE_BYTE_CHAR_P.
11037 and initialize it. 11037
11038 11038 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
11039 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't 11039
11040 have property char-table-extra-slots, make no extra slot. 11040 * character.h (Vchar_script_table): Extern it.
11041 11041
11042 * dispextern.h (struct face): Delete member `charset'. 11042 * character.c (Vscript_alist): Delete.
11043 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not 11043 (Vchar_script_table, Qchar_script_table): New variable.
11044 SINGLE_BYTE_CHAR_P. 11044 (syms_of_character): Declare Vchar_script_table as a lisp variable
11045 (choose_face_font, lookup_non_ascii_face, font_name_registry): 11045 and initialize it.
11046 Add prototypes. 11046
11047 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype. 11047 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
11048 (generate_ascii_font_name): Rename from generate_ascii_font. 11048 have property char-table-extra-slots, make no extra slot.
11049 11049
11050 * fontset.h (get_font_repertory_func): New prototype. 11050 * dispextern.h (struct face): Delete member `charset'.
11051 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes. 11051 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
11052 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii. 11052 SINGLE_BYTE_CHAR_P.
11053 11053 (choose_face_font, lookup_non_ascii_face, font_name_registry):
11054 * fontset.c (Qprepend, Qappend): New variables. 11054 Add prototypes.
11055 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete. 11055 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
11056 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros. 11056 (generate_ascii_font_name): Rename from generate_ascii_font.
11057 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset. 11057
11058 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros. 11058 * fontset.h (get_font_repertory_func): New prototype.
11059 (fontset_ref_and_range, fontset_add, reorder_font_vector) 11059 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
11060 (load_font_get_repertory): New functions. 11060 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
11061 (fontset_set): Delete. 11061
11062 (fontset_face): New arg FACE. Return face ID, not face. 11062 * fontset.c (Qprepend, Qappend): New variables.
11063 Complete re-write to handle new fontset structure. Change caller. 11063 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
11064 (free_face_fontset): Use ASET istead of AREF (X) = Y. 11064 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
11065 (face_for_char): Don't call lookup_face. 11065 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
11066 (make_fontset_for_ascii_face): New arg FACE. 11066 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
11067 (fs_load_font): New arg CHARSET_ID. Don't check 11067 (fontset_ref_and_range, fontset_add, reorder_font_vector)
11068 Vfont_encoding_alist here. 11068 (load_font_get_repertory): New functions.
11069 (find_font_encoding): New function. 11069 (fontset_set): Delete.
11070 (list_fontsets): Use STRINGP, not ! NILP. 11070 (fontset_face): New arg FACE. Return face ID, not face.
11071 (accumulate_script_ranges): New function. 11071 Complete re-write to handle new fontset structure. Change caller.
11072 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely 11072 (free_face_fontset): Use ASET istead of AREF (X) = Y.
11073 re-written to handle new fontset structure. 11073 (face_for_char): Don't call lookup_face.
11074 (Ffontset_font): Return a copy of element. 11074 (make_fontset_for_ascii_face): New arg FACE.
11075 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix 11075 (fs_load_font): New arg CHARSET_ID. Don't check
11076 docstring of font-encoding-alist. 11076 Vfont_encoding_alist here.
11077 11077 (find_font_encoding): New function.
11078 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). 11078 (list_fontsets): Use STRINGP, not ! NILP.
11079 (Fset_fotset_font): Fix arguments to 5. 11079 (accumulate_script_ranges): New function.
11080 11080 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
11081 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face. 11081 re-written to handle new fontset structure.
11082 11082 (Ffontset_font): Return a copy of element.
11083 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line): 11083 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
11084 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. 11084 docstring of font-encoding-alist.
11085 (highlight_trailing_whitespace): Adjust for the change of 11085
11086 lookup_named_face. 11086 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
11087 11087 (Fset_fotset_font): Fix arguments to 5.
11088 * xfaces.c: Include charset.h. 11088
11089 (load_face_font): Delete argument C. Change caller. 11089 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
11090 (generate_ascii_font_name): Rename from generate_ascii_font. 11090
11091 (font_name_registry): New function. 11091 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
11092 (cache_face): Store ascii faces before non-ascii faces in buckets. 11092 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11093 (lookup_face): Delete arguments C and BASE_FACE. Change caller. 11093 (highlight_trailing_whitespace): Adjust for the change of
11094 Lookup only ascii faces. 11094 lookup_named_face.
11095 (lookup_non_ascii_face): New function. 11095
11096 (lookup_named_face): Delete argument C. Change caller. 11096 * xfaces.c: Include charset.h.
11097 (lookup_derived_face): Delete argument C. Change caller. 11097 (load_face_font): Delete argument C. Change caller.
11098 (try_font_list): New arg PATTERN. Change caller. If PATTERN is 11098 (generate_ascii_font_name): Rename from generate_ascii_font.
11099 a string, just call font_list with it. 11099 (font_name_registry): New function.
11100 (choose_face_font): Delete arguments FACE and C. New arg 11100 (cache_face): Store ascii faces before non-ascii faces in buckets.
11101 FONT_SPEC. Change caller. 11101 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
11102 (realize_face, realize_x_face): Delete arguments C and BASE_FACE. 11102 Lookup only ascii faces.
11103 Change caller. 11103 (lookup_non_ascii_face): New function.
11104 (realize_non_ascii_face): New function. 11104 (lookup_named_face): Delete argument C. Change caller.
11105 (realize_x_face): Call load_face_font here. 11105 (lookup_derived_face): Delete argument C. Change caller.
11106 (realize_tty_face): Delete argument C. Change caller. 11106 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
11107 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to 11107 a string, just call font_list with it.
11108 get a face ID. 11108 (choose_face_font): Delete arguments FACE and C. New arg
11109 (dump_realized_face): Don't print charset of FACE. 11109 FONT_SPEC. Change caller.
11110 11110 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
11111 * xfns.c (x_set_font): Always call x_new_fontset and 11111 Change caller.
11112 store_frame_parameter. 11112 (realize_non_ascii_face): New function.
11113 (Fx_create_frame): Call x_new_fontset, not x_new_font. 11113 (realize_x_face): Call load_face_font here.
11114 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory. 11114 (realize_tty_face): Delete argument C. Change caller.
11115 11115 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
11116 * xterm.h (x_get_font_repertory): Extern it. 11116 get a face ID.
11117 11117 (dump_realized_face): Don't print charset of FACE.
11118 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not 11118
11119 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when 11119 * xfns.c (x_set_font): Always call x_new_fontset and
11120 it->multibyte_p is zero. 11120 store_frame_parameter.
11121 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. 11121 (Fx_create_frame): Call x_new_fontset, not x_new_font.
11122 (x_new_fontset): If FONTSETNAME doesn't match any existing 11122 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
11123 fontsets, create a new one. 11123
11124 (x_get_font_repertory): New function. 11124 * xterm.h (x_get_font_repertory): Extern it.
11125 11125
111262008-02-01 Kenichi Handa <handa@m17n.org> 11126 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
11127 11127 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
11128 * coding.c (Ffind_coding_systems_region_internal): Detect an 11128 it->multibyte_p is zero.
11129 ASCII only string correctly. 11129 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11130 11130 (x_new_fontset): If FONTSETNAME doesn't match any existing
11131 * lread.c (Fload): Don't load with Qload_force_doc_strings t if 11131 fontsets, create a new one.
11132 version is 0. 11132 (x_get_font_repertory): New function.
11133 11133
111342008-02-01 Kenichi Handa <handa@m17n.org> 111342008-02-01 Kenichi Handa <handa@m17n.org>
11135 11135
11136 * lread.c: Include "coding.h". 11136 * coding.c (Ffind_coding_systems_region_internal): Detect an
11137 (Qget_emacs_mule_file_char, Qload_force_doc_strings) 11137 ASCII only string correctly.
11138 (load_each_byte, unread_char): New variables. 11138
11139 (readchar_backlog): Delete. 11139 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
11140 (readchar): Return a character unless load_each_byte is nonzero. 11140 version is 0.
11141 Handle the case that readcharfun is Qget_emacs_mule_file_char or a 11141
11142 cons. If unread_char is not -1, simply return it. 111422008-02-01 Kenichi Handa <handa@m17n.org>
11143 (unreadchar): Handle the case that readcharfun is 11143
11144 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary. 11144 * lread.c: Include "coding.h".
11145 (read_multibyte): Delete. 11145 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
11146 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) 11146 (load_each_byte, unread_char): New variables.
11147 (read_emacs_mule_char): New functions. 11147 (readchar_backlog): Delete.
11148 (Fload): Even if the file doesn't have the extension ".elc", if 11148 (readchar): Return a character unless load_each_byte is nonzero.
11149 safe_to_load_p returns a positive version number, assume that the 11149 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
11150 file contains bytecompiled code. If the version is less than 22, 11150 cons. If unread_char is not -1, simply return it.
11151 load the file while decoding multibyte sequences by emacs-mule. 11151 (unreadchar): Handle the case that readcharfun is
11152 (readevalloop): Don't use readchar_backlog. 11152 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
11153 (Fread): Likewise. Pay attention to the case that STREAM is a cons. 11153 (read_multibyte): Delete.
11154 (Fread_from_string): Pay attention to the case that STREAM is a cons. 11154 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
11155 (read_escape): Delete the arg BYTEREP. 11155 (read_emacs_mule_char): New functions.
11156 (read1): Set load_each_byte to 1 temporarily while handling 11156 (Fload): Even if the file doesn't have the extension ".elc", if
11157 #@NUMBER. Don't call read_multibyte. 11157 safe_to_load_p returns a positive version number, assume that the
11158 (read_vector): Call Fread with a cons. If readcharfun is 11158 file contains bytecompiled code. If the version is less than 22,
11159 Qget_emacs_mule_file_char, decode the read string by emacs-mule. 11159 load the file while decoding multibyte sequences by emacs-mule.
11160 (read_list): If doc_reference is 2, make the cdr part string as unibyte. 11160 (readevalloop): Don't use readchar_backlog.
11161 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char 11161 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
11162 and Qload_force_doc_strings. 11162 (Fread_from_string): Pay attention to the case that STREAM is a cons.
11163 11163 (read_escape): Delete the arg BYTEREP.
111642008-02-01 Kenichi Handa <handa@m17n.org> 11164 (read1): Set load_each_byte to 1 temporarily while handling
11165 11165 #@NUMBER. Don't call read_multibyte.
11166 * xdisp.c (face_before_or_after_it_pos): Call 11166 (read_vector): Call Fread with a cons. If readcharfun is
11167 FETCH_MULTIBYTE_CHAR with byte postion, not char position. 11167 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
11168 11168 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
111692008-02-01 Kenichi Handa <handa@m17n.org> 11169 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
11170 11170 and Qload_force_doc_strings.
11171 * character.h (TRAILING_CODE_P): New macro. 11171
11172 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset. 111722008-02-01 Kenichi Handa <handa@m17n.org>
11173 (string_char_with_unification): Fix prototype. 11173
11174 (Vscript_alist): Extern it. 11174 * xdisp.c (face_before_or_after_it_pos): Call
11175 11175 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11176 * character.c (Vscript_alist): New variable. 11176
11177 (string_char_with_unification, str_as_unibyte) 111772008-02-01 Kenichi Handa <handa@m17n.org>
11178 (string_escape_byte8): Add `const' to local variables. 11178
11179 (syms_of_character): Declare script-alist as a Lisp variable. 11179 * character.h (TRAILING_CODE_P): New macro.
11180 11180 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
11181 * charset.h (Vcharset_ordered_list): Extern it. 11181 (string_char_with_unification): Fix prototype.
11182 (charset_ordered_list_tick): Extern it. 11182 (Vscript_alist): Extern it.
11183 (EMACS_MULE_LEADING_CODE_PRIVATE_11) 11183
11184 (EMACS_MULE_LEADING_CODE_PRIVATE_12) 11184 * character.c (Vscript_alist): New variable.
11185 (EMACS_MULE_LEADING_CODE_PRIVATE_21) 11185 (string_char_with_unification, str_as_unibyte)
11186 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros. 11186 (string_escape_byte8): Add `const' to local variables.
11187 (Funify_charset): Adjust for the change of Funify_charset. 11187 (syms_of_character): Declare script-alist as a Lisp variable.
11188 11188
11189 * charset.c (charset_ordered_list_tick): New variable. 11189 * charset.h (Vcharset_ordered_list): Extern it.
11190 (Fdefine_charset_internal): Increment charset_ordered_list_tick. 11190 (charset_ordered_list_tick): Extern it.
11191 (Funify_charset): New optional arg DEUNIFY. If it is non-nil, 11191 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
11192 deunify intead of unify a charset. 11192 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
11193 (string_xstring_p): Add `const' to local variables. 11193 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
11194 (find_charsets_in_text): Add `const' to arguments and local variables. 11194 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
11195 (encode_char): Adjust for the change of Funify_charset. Fix 11195 (Funify_charset): Adjust for the change of Funify_charset.
11196 detecting of invalid code. 11196
11197 (Fset_charset_priority): Increment charset_ordered_list_tick. 11197 * charset.c (charset_ordered_list_tick): New variable.
11198 (Fmap_charset_chars): Fix handling of default value for FROM_CODE 11198 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
11199 and TO_CODE. 11199 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
11200 11200 deunify intead of unify a charset.
11201 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12) 11201 (string_xstring_p): Add `const' to local variables.
11202 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros. 11202 (find_charsets_in_text): Add `const' to arguments and local variables.
11203 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc. 11203 (encode_char): Adjust for the change of Funify_charset. Fix
11204 (decode_coding_ccl, consume_chars) 11204 detecting of invalid code.
11205 (Ffind_coding_systems_region_internal) 11205 (Fset_charset_priority): Increment charset_ordered_list_tick.
11206 (Fcheck_coding_systems_region): Add `const' to local variables. 11206 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
11207 11207 and TO_CODE.
11208 * print.c (print_object): Use octal form for printing the 11208
11209 contents of a bool vector. 11209 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
11210 11210 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
112112008-02-01 Dave Love <fx@gnu.org> 11211 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
11212 11212 (decode_coding_ccl, consume_chars)
11213 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. 11213 (Ffind_coding_systems_region_internal)
11214 <version == 20>: Refuse to load. 11214 (Fcheck_coding_systems_region): Add `const' to local variables.
11215 11215
112162008-02-01 Dave Love <fx@gnu.org> 11216 * print.c (print_object): Use octal form for printing the
11217 11217 contents of a bool vector.
11218 * fns.c: Move coding.h. 11218
11219 (Qcodeset, Qdays, Qmonths): New. 112192008-02-01 Dave Love <fx@gnu.org>
11220 (concat): Use CHARACTERP instead of INTEGERP. 11220
11221 (Flocale_codeset): Delete. 11221 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
11222 (Flanginfo): New function. 11222 <version == 20>: Refuse to load.
11223 (syms_of_fns): Change accordingly. 11223
11224 112242008-02-01 Dave Love <fx@gnu.org>
11225 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. 11225
11226 11226 * fns.c: Move coding.h.
112272008-02-01 Dave Love <fx@gnu.org> 11227 (Qcodeset, Qdays, Qmonths): New.
11228 11228 (concat): Use CHARACTERP instead of INTEGERP.
11229 * casetab.c (init_casetab_once, init_casetab_once): Fix 11229 (Flocale_codeset): Delete.
11230 CHAR_TABLE_SET call. 11230 (Flanginfo): New function.
11231 11231 (syms_of_fns): Change accordingly.
11232 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. 11232
11233 11233 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
11234 * character.c (syms_of_character): Fix CHAR_TABLE_SET call. 11234
11235 112352008-02-01 Dave Love <fx@gnu.org>
11236 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types. 11236
11237 (load_charset_map, Fdeclare_equiv_charset, Fencode_char) 11237 * casetab.c (init_casetab_once, init_casetab_once): Fix
11238 (Fset_charset_priority, syms_of_charset): Convert Lisp types. 11238 CHAR_TABLE_SET call.
11239 11239
11240 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result. 11240 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
11241 11241
11242 * coding.c (ENCODE_DESIGNATION, decode_eol) 11242 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
11243 (make_conversion_work_buffer, code_conversion_restore) 11243
11244 (Fdefine_coding_system_internal): Convert Lisp types. 11244 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
11245 (code_conversion_restore): Use EQ, not ==. 11245 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
11246 (Fencode_coding_string): Fix code_convert_string call. 11246 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
11247 11247
11248 * coding.h (code_convert_region): Fix prototype. 11248 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
11249 11249
11250 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove. 11250 * coding.c (ENCODE_DESIGNATION, decode_eol)
11251 11251 (make_conversion_work_buffer, code_conversion_restore)
11252 * fontset.c (fontset_ref, fontset_set, fs_load_font) 11252 (Fdefine_coding_system_internal): Convert Lisp types.
11253 (Ffontset_info): Convert Lisp types. 11253 (code_conversion_restore): Use EQ, not ==.
11254 11254 (Fencode_coding_string): Fix code_convert_string call.
11255 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number. 11255
11256 11256 * coding.h (code_convert_region): Fix prototype.
11257 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates. 11257
11258 11258 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
11259 * xdisp.c (display_mode_element): Fix call of Fset_text_properties. 11259
11260 11260 * fontset.c (fontset_ref, fontset_set, fs_load_font)
11261 * chartab.c: Include "...h", not <...h> in some cases. 11261 (Ffontset_info): Convert Lisp types.
11262 11262
11263 * callproc.c (Fcall_process): Remove unused variables. 11263 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
11264 11264
112652008-02-01 Dave Love <fx@gnu.org> 11265 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
11266 11266
11267 * coding.c (Fset_coding_system_priority): Allow null arg list. 11267 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
11268 11268
112692008-02-01 Dave Love <fx@gnu.org> 11269 * chartab.c: Include "...h", not <...h> in some cases.
11270 11270
11271 * minibuf.c (Fminibuffer_complete_word): Remove unused var. 11271 * callproc.c (Fcall_process): Remove unused variables.
11272 (Fself_insert_and_exit): Use CHARACTERP. 11272
11273 112732008-02-01 Dave Love <fx@gnu.org>
11274 * callproc.c (Fcall_process): Remove unused vars. 11274
11275 11275 * coding.c (Fset_coding_system_priority): Allow null arg list.
11276 * xterm.c (XTread_socket): Add extra dead keysyms. 11276
11277 112772008-02-01 Dave Love <fx@gnu.org>
11278 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP. 11278
11279 11279 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
11280 * dispextern.h: Remove prototypes for redraw_frame, 11280 (Fself_insert_and_exit): Use CHARACTERP.
11281 redraw_garbaged_frames. 11281
11282 11282 * callproc.c (Fcall_process): Remove unused vars.
11283 * cmds.c (Fself_insert_command): Use CHARACTERP. 11283
11284 11284 * xterm.c (XTread_socket): Add extra dead keysyms.
11285 * chartab.c (make_sub_char_table): Remove unused var. 11285
11286 (Fset_char_table_default, Fmap_char_table): Doc fix. 11286 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
11287 11287
11288 * keymap.c (access_keymap): Remove generic char code. 11288 * dispextern.h: Remove prototypes for redraw_frame,
11289 (push_key_description): Use CHARACTERP. 11289 redraw_garbaged_frames.
11290 11290
112912008-02-01 Dave Love <fx@gnu.org> 11291 * cmds.c (Fself_insert_command): Use CHARACTERP.
11292 11292
11293 * charset.c: Doc fixes. 11293 * chartab.c (make_sub_char_table): Remove unused var.
11294 (Funify_charset): Extra checking. 11294 (Fset_char_table_default, Fmap_char_table): Doc fix.
11295 11295
112962008-02-01 Dave Love <fx@gnu.org> 11296 * keymap.c (access_keymap): Remove generic char code.
11297 11297 (push_key_description): Use CHARACTERP.
11298 * lread.c: Remove some unused variables. 11298
11299 (safe_to_load_p): If safe, return the magic number version byte. 112992008-02-01 Dave Love <fx@gnu.org>
11300 (Fload): Maybe use load-with-code-conversion. 11300
11301 11301 * charset.c: Doc fixes.
113022008-02-01 Kenichi Handa <handa@m17n.org> 11302 (Funify_charset): Extra checking.
11303 11303
11304 * category.c (Fmodify_category_entry): Don't modify the contents 113042008-02-01 Dave Love <fx@gnu.org>
11305 of category_set for characters out of the range. Avoid 11305
11306 unnecessary modification. 11306 * lread.c: Remove some unused variables.
11307 11307 (safe_to_load_p): If safe, return the magic number version byte.
11308 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of 11308 (Fload): Maybe use load-with-code-conversion.
11309 Vchar_unify_table. The default value of the table is now nil. 11309
11310 113102008-02-01 Kenichi Handa <handa@m17n.org>
11311 * character.c (syms_of_character): Setup Vchar_width_table for 11311
11312 eight-bit-control and raw-byte chars. 11312 * category.c (Fmodify_category_entry): Don't modify the contents
11313 11313 of category_set for characters out of the range. Avoid
11314 * charset.h (enum define_charset_arg_index): Delete 11314 unnecessary modification.
11315 charset_arg_parents and add charset_arg_subset and 11315
11316 charset_arg_superset. 11316 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
11317 (enum charset_attr_index): Delete charset_parents and add 11317 Vchar_unify_table. The default value of the table is now nil.
11318 charset_subset and charset_superset. 11318
11319 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add 11319 * character.c (syms_of_character): Setup Vchar_width_table for
11320 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. 11320 eight-bit-control and raw-byte chars.
11321 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete. 11321
11322 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET) 11322 * charset.h (enum define_charset_arg_index): Delete
11323 (CHARSET_SUPERSET): New macros. 11323 charset_arg_parents and add charset_arg_subset and
11324 (charset_work): Extern it. 11324 charset_arg_superset.
11325 (ENCODE_CHAR): Use charset_work. 11325 (enum charset_attr_index): Delete charset_parents and add
11326 (CHAR_CHARSET_P): Adjust for the change of encoder format. 11326 charset_subset and charset_superset.
11327 (map_charset_chars): Extern it. 11327 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
11328 11328 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
11329 * charset.c (load_charset_map): Set the default value of encoder 11329 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
11330 and deunifier char-tables to nil. 11330 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
11331 (map_charset_chars): Change argument. Change callers. Use 11331 (CHARSET_SUPERSET): New macros.
11332 map_char_table_for_charset instead of map_char_table. 11332 (charset_work): Extern it.
11333 (Fmap_charset_chars): New optional args from_code and to_code. 11333 (ENCODE_CHAR): Use charset_work.
11334 (Fdefine_charset_internal): Adjust for the change of 11334 (CHAR_CHARSET_P): Adjust for the change of encoder format.
11335 `define-charset' (:parents -> :subset or :superset). 11335 (map_charset_chars): Extern it.
11336 (charset_work): New variable. 11336
11337 (encode_char, syms_of_charset): Adjust for the change of 11337 * charset.c (load_charset_map): Set the default value of encoder
11338 Fdefine_charset_internal. 11338 and deunifier char-tables to nil.
11339 (Ffind_charset_string): Setup the vector `charsets' correctly. 11339 (map_charset_chars): Change argument. Change callers. Use
11340 11340 map_char_table_for_charset instead of map_char_table.
11341 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix 11341 (Fmap_charset_chars): New optional args from_code and to_code.
11342 the previous change. 11342 (Fdefine_charset_internal): Adjust for the change of
11343 (char_table_ref_and_range): Adjust for the above change. 11343 `define-charset' (:parents -> :subset or :superset).
11344 (map_sub_char_table_for_charset): New function. 11344 (charset_work): New variable.
11345 (map_char_table_for_charset): New function. 11345 (encode_char, syms_of_charset): Adjust for the change of
11346 11346 Fdefine_charset_internal.
11347 * keymap.c (describe_vector): Handle a char-table directly here. 11347 (Ffind_charset_string): Setup the vector `charsets' correctly.
11348 (describe_char_table): Delete. 11348
11349 11349 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
11350 * lisp.h (map_charset_chars): Delete. 11350 the previous change.
11351 11351 (char_table_ref_and_range): Adjust for the above change.
113522008-02-01 Dave Love <fx@gnu.org> 11352 (map_sub_char_table_for_charset): New function.
11353 11353 (map_char_table_for_charset): New function.
11354 * fns.c (count_combining): Comment out (unused). 11354
11355 (Flocale_codeset): New. 11355 * keymap.c (describe_vector): Handle a char-table directly here.
11356 (syms_of_fns): Defsubr it. 11356 (describe_char_table): Delete.
11357 11357
11358 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. 11358 * lisp.h (map_charset_chars): Delete.
11359 (size_t): Remove. 11359
11360 113602008-02-01 Dave Love <fx@gnu.org>
113612008-02-01 Dave Love <fx@gnu.org> 11361
11362 11362 * fns.c (count_combining): Comment out (unused).
11363 * Makefile.in (chartab.o): Depend on charset.h. 11363 (Flocale_codeset): New.
11364 11364 (syms_of_fns): Defsubr it.
113652008-02-01 Kenichi Handa <handa@m17n.org> 11365
11366 11366 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
11367 * character.c (syms_of_character): Set the default value of 11367 (size_t): Remove.
11368 Vprintable_chars to Qnil. 11368
11369 113692008-02-01 Dave Love <fx@gnu.org>
113702008-02-01 Dave Love <fx@gnu.org> 11370
11371 11371 * Makefile.in (chartab.o): Depend on charset.h.
11372 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. 11372
11373 113732008-02-01 Kenichi Handa <handa@m17n.org>
113742008-02-01 Kenichi Handa <handa@m17n.org> 11374
11375 11375 * character.c (syms_of_character): Set the default value of
11376 * charset.c (load_charset_map): Handle the case that from < to 11376 Vprintable_chars to Qnil.
11377 correctly. 11377
11378 113782008-02-01 Dave Love <fx@gnu.org>
11379 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022) 11379
11380 (encode_coding_sjis, encode_coding_big5, encode_coding_charset): 11380 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
11381 Pay attention to raw-8-bit chars. 11381
11382 113822008-02-01 Kenichi Handa <handa@m17n.org>
113832008-02-01 Kenichi Handa <handa@m17n.org> 11383
11384 11384 * charset.c (load_charset_map): Handle the case that from < to
11385 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el. 11385 correctly.
11386 It is not bytecompiled now. 11386
11387 11387 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
11388 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978) 11388 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
11389 (charset_jisx0208): New variables. 11389 Pay attention to raw-8-bit chars.
11390 (Fdefine_charset_internal): Setup them if appropriate. 11390
11391 (init_charset_once): Initialize them to -1. 113912008-02-01 Kenichi Handa <handa@m17n.org>
11392 11392
11393 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978) 11393 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
11394 (charset_jisx0208): Extern them. 11394 It is not bytecompiled now.
11395 11395
11396 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro. 11396 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
11397 (CODING_ISO_FLAG_USE_OLDJIS): New macro. 11397 (charset_jisx0208): New variables.
11398 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition. 11398 (Fdefine_charset_internal): Setup them if appropriate.
11399 (setup_iso_safe_charsets): Fix arguments to Fassq. 11399 (init_charset_once): Initialize them to -1.
11400 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1) 11400
11401 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to 11401 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
11402 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS. 11402 (charset_jisx0208): Extern them.
11403 (encode_coding_iso_2022): Change the 1st arg to 11403
11404 ENCODE_ISO_CHARACTER to a variable. 11404 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
11405 11405 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
114062008-02-01 Kenichi Handa <handa@m17n.org> 11406 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
11407 11407 (setup_iso_safe_charsets): Fix arguments to Fassq.
11408 * charset.h (enum define_charset_arg_index): New enums 11408 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
11409 charset_arg_min_code and charset_arg_max_code. 11409 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
11410 (struct charset): New member char_index_offset. 11410 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
11411 11411 (encode_coding_iso_2022): Change the 1st arg to
11412 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT): 11412 ENCODE_ISO_CHARACTER to a variable.
11413 Take charset->char_index_offset into account. 11413
11414 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and 114142008-02-01 Kenichi Handa <handa@m17n.org>
11415 args[charset_arg_max_code]. Setup charset.char_index_offset. 11415
11416 (syms_of_charset): Fix args to Fdefine_charset_internal. 11416 * charset.h (enum define_charset_arg_index): New enums
11417 11417 charset_arg_min_code and charset_arg_max_code.
114182008-02-01 Dave Love <fx@gnu.org> 11418 (struct charset): New member char_index_offset.
11419 11419
11420 * coding.c (decode_coding_utf_8): Reject overlong sequences. 11420 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
11421 11421 Take charset->char_index_offset into account.
114222008-02-01 Dave Love <fx@gnu.org> 11422 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
11423 11423 args[charset_arg_max_code]. Setup charset.char_index_offset.
11424 * coding.c: Doc fixes. 11424 (syms_of_charset): Fix args to Fdefine_charset_internal.
11425 (Fcoding_system_aliases): Fix return value. 11425
11426 (Qmac): Remove (duplicated) definition. 114262008-02-01 Dave Love <fx@gnu.org>
11427 11427
114282008-02-01 Dave Love <fx@gnu.org> 11428 * coding.c (decode_coding_utf_8): Reject overlong sequences.
11429 11429
11430 * charset.c (Fcharset_priority_list, Fset_charset_priority): New 114302008-02-01 Dave Love <fx@gnu.org>
11431 functions. 11431
11432 11432 * coding.c: Doc fixes.
11433 * character.c (Fstring): Doc fix. 11433 (Fcoding_system_aliases): Fix return value.
11434 11434 (Qmac): Remove (duplicated) definition.
11435 * charset.c (Fdefine_charset_alias): Update Vcharset_list. 11435
11436 114362008-02-01 Dave Love <fx@gnu.org>
11437 * fontset.c (Ffontset_info): Doc fix. Return charset names, not 11437
11438 ids. 11438 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
11439 (font-encoding-alist): Doc fix. 11439 functions.
11440 11440
114412008-02-01 Dave Love <fx@gnu.org> 11441 * character.c (Fstring): Doc fix.
11442 11442
11443 * term.c (costs_set): Declare static, non-initialized for pcc. 11443 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
11444 (encode_terminal_code): Remove unused var. 11444
11445 11445 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
11446 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl 11446 ids.
11447 for K&R. 11447 (font-encoding-alist): Doc fix.
11448 11448
11449 * xterm.c (xlwmenu_window_p): Fix prototype for K&R. 114492008-02-01 Dave Love <fx@gnu.org>
11450 11450
11451 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R. 11451 * term.c (costs_set): Declare static, non-initialized for pcc.
11452 (suffixes): Move out of make_subsidiaries for K&R. 11452 (encode_terminal_code): Remove unused var.
11453 11453
11454 * charset.c (map_charset_chars): Fix c_function declaration for K&R. 11454 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11455 11455 for K&R.
11456 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. 11456
11457 11457 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
114582008-02-01 Dave Love <fx@gnu.org> 11458
11459 11459 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
11460 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. 11460 (suffixes): Move out of make_subsidiaries for K&R.
11461 11461
11462 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars. 11462 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
11463 11463
114642008-02-01 Yong Lu <lyongu@asia-infonet.com> 11464 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
11465 11465
11466 * charset.c (Fdefine_charset_internal): Fix argument to bzero. 114662008-02-01 Dave Love <fx@gnu.org>
11467 11467
11468 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96. 11468 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
11469 11469
114702008-02-01 Kenichi Handa <handa@m17n.org> 11470 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
11471 11471
11472 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el, 114722008-02-01 Yong Lu <lyongu@asia-infonet.com>
11473 vietnamese.elc to vietnamese.el. They are not bytecompiled now. 11473
11474 11474 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
114752008-02-01 Kenichi Handa <handa@m17n.org> 11475
11476 11476 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
11477 * coding.c (decode_coding_charset): Adjust for the change of 11477
11478 Fdefine_coding_system_internal. 114782008-02-01 Kenichi Handa <handa@m17n.org>
11479 (Fdefine_coding_system_internal): For a coding system of 11479
11480 `charset' type, store a list of charset IDs in 11480 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
11481 `charset_attr_charset_valids' element of coding attributes. 11481 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
11482 11482
114832008-02-01 Kenichi Handa <handa@m17n.org> 114832008-02-01 Kenichi Handa <handa@m17n.org>
11484 11484
11485 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. 11485 * coding.c (decode_coding_charset): Adjust for the change of
11486 (emacs_mule_char): New arg src. Delete arg `composition'. Change 11486 Fdefine_coding_system_internal.
11487 caller. Handle 2-byte and 3-byte charsets correctly. 11487 (Fdefine_coding_system_internal): For a coding system of
11488 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from 11488 `charset' type, store a list of charset IDs in
11489 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller. 11489 `charset_attr_charset_valids' element of coding attributes.
11490 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. 11490
11491 (DECODE_EMACS_MULE_21_COMPOSITION): Call 114912008-02-01 Kenichi Handa <handa@m17n.org>
11492 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation 11492
11493 sequence. 11493 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
11494 (decode_coding_emacs_mule): Handle composition correctly. Rewind 11494 (emacs_mule_char): New arg src. Delete arg `composition'. Change
11495 `src' and `consumed_chars' correctly before calling emacs_mule_char. 11495 caller. Handle 2-byte and 3-byte charsets correctly.
11496 (DECODE_COMPOSITION_START): Correctly handle the case of altchar 11496 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
11497 and alt&rule composition. 11497 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
11498 (decode_coding_iso_2022): Handle composition correctly. 11498 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
11499 (init_coding_once): Setup emacs_mule_bytes for private charsets. 11499 (DECODE_EMACS_MULE_21_COMPOSITION): Call
11500 11500 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
11501 * charset.c (Fdefine_charset_internal): Fix bug for the case of 11501 sequence.
11502 re-defining a charset. If the charset has :emacs-mule-id, setup 11502 (decode_coding_emacs_mule): Handle composition correctly. Rewind
11503 emacs_mule_bytes. 11503 `src' and `consumed_chars' correctly before calling emacs_mule_char.
11504 (Fmake_char): If CODE1 is nil, use the minimum code of the charset. 11504 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
11505 11505 and alt&rule composition.
115062008-02-01 Kenichi Handa <handa@m17n.org> 11506 (decode_coding_iso_2022): Handle composition correctly.
11507 11507 (init_coding_once): Setup emacs_mule_bytes for private charsets.
11508 * coding.c (encode_coding_iso_2022, encode_coding_sjis) 11508
11509 (encode_coding_big5, encode_coding_charset): If coding requires safe 11509 * charset.c (Fdefine_charset_internal): Fix bug for the case of
11510 encoding, produce a character specified by 11510 re-defining a charset. If the charset has :emacs-mule-id, setup
11511 CODING_INHIBIT_CHARACTER_SUBSTITUTION. 11511 emacs_mule_bytes.
11512 11512 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
115132008-02-01 Dave Love <fx@gnu.org> 11513
11514 115142008-02-01 Kenichi Handa <handa@m17n.org>
11515 * xterm.c (XSetIMValues): Declare. 11515
11516 11516 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
11517 * process.c: Conditionally include sys/wait.h, pty.h. 11517 (encode_coding_big5, encode_coding_charset): If coding requires safe
11518 11518 encoding, produce a character specified by
11519 * print.c (print_object): Fix print format for 64-bit systems. 11519 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
11520 11520
11521 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems. 115212008-02-01 Dave Love <fx@gnu.org>
11522 11522
11523 * buffer.c (emacs_strerror): Declare. 11523 * xterm.c (XSetIMValues): Declare.
11524 11524
11525 * fontset.c (Fclear_face_cache): Declare. 11525 * process.c: Conditionally include sys/wait.h, pty.h.
11526 (accumulate_font_info): Comment-out (unused). 11526
11527 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused 11527 * print.c (print_object): Fix print format for 64-bit systems.
11528 variables. 11528
11529 11529 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
11530 * character.h (string_escape_byte8): Declare. 11530
11531 11531 * buffer.c (emacs_strerror): Declare.
11532 * charset.c (load_charset_map, load_charset_map_from_file): Remove 11532
11533 unused vars. 11533 * fontset.c (Fclear_face_cache): Declare.
11534 (Fdefine_charset_internal, Fsplit_char, syms_of_charset) 11534 (accumulate_font_info): Comment-out (unused).
11535 (Fmap_charset_chars): Doc fix. 11535 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
11536 11536 variables.
11537 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove. 11537
11538 (Fset_coding_system_priority, Fset_coding_system_priority) 11538 * character.h (string_escape_byte8): Declare.
11539 (Fdefine_coding_system_internal): Doc fix. 11539
11540 11540 * charset.c (load_charset_map, load_charset_map_from_file): Remove
115412008-02-01 Dave Love <fx@gnu.org> 11541 unused vars.
11542 11542 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
11543 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. 11543 (Fmap_charset_chars): Doc fix.
11544 11544
115452008-02-01 Kenichi Handa <handa@m17n.org> 11545 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
11546 11546 (Fset_coding_system_priority, Fset_coding_system_priority)
11547 * character.c (string_escape_byte8): Make multibyte string with 11547 (Fdefine_coding_system_internal): Doc fix.
11548 correct size. 11548
11549 115492008-02-01 Dave Love <fx@gnu.org>
11550 * charset.c (Fmake_char): Delete unnecessary code. 11550
11551 11551 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
115522008-02-01 Kenichi Handa <handa@m17n.org> 11552
11553 115532008-02-01 Kenichi Handa <handa@m17n.org>
11554 * xfns.c (x_encode_text): Allocate coding.destination here, and 11554
11555 call encode_coding_object with dst_object Qnil. 11555 * character.c (string_escape_byte8): Make multibyte string with
11556 11556 correct size.
11557 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to 11557
11558 multibyte form correctly. 11558 * charset.c (Fmake_char): Delete unnecessary code.
11559 11559
11560 * fontset.c (fs_load_font): Check fontp->full_name (not fontname) 115602008-02-01 Kenichi Handa <handa@m17n.org>
11561 against Vfont_encoding_alist. 11561
11562 11562 * xfns.c (x_encode_text): Allocate coding.destination here, and
11563 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the 11563 call encode_coding_object with dst_object Qnil.
11564 handling of charset list. 11564
11565 (encode_coding_iso_2022): Setup coding->safe_charsets in advance. 11565 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
11566 (decode_coding_object): Move point to coding->dst_pos before 11566 multibyte form correctly.
11567 calling post-read-conversion function. 11567
11568 (encode_coding_object): Give correct arguments to 11568 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
11569 pre-write-conversion. Ignore the return value of 11569 against Vfont_encoding_alist.
11570 pre-write-conversion function. Pay attention to the case that 11570
11571 pre-write-conversion changes the current buffer. If dst_object is 11571 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
11572 Qt, even if coding->src_bytes is zero, allocate at least one byte 11572 handling of charset list.
11573 to coding->destination. 11573 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
11574 11574 (decode_coding_object): Move point to coding->dst_pos before
11575 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). 11575 calling post-read-conversion function.
11576 11576 (encode_coding_object): Give correct arguments to
11577 * charset.c (Fmake_char): Make it more backward compatible. 11577 pre-write-conversion. Ignore the return value of
11578 (Fmap_charset_chars): Fix docstring. 11578 pre-write-conversion function. Pay attention to the case that
11579 11579 pre-write-conversion changes the current buffer. If dst_object is
115802008-02-01 Dave Love <fx@gnu.org> 11580 Qt, even if coding->src_bytes is zero, allocate at least one byte
11581 11581 to coding->destination.
11582 * coding.c: Doc fixes. 11582
11583 (Fdefine_coding_system_alias): Use names, not symbols, in 11583 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
11584 coding-system-alist. 11584
11585 11585 * charset.c (Fmake_char): Make it more backward compatible.
115862008-02-01 Kenichi Handa <handa@m17n.org> 11586 (Fmap_charset_chars): Fix docstring.
11587 11587
11588 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead 115882008-02-01 Dave Love <fx@gnu.org>
11589 of calling free_realized_face. 11589
11590 11590 * coding.c: Doc fixes.
115912008-02-01 Yong Lu <lyongu@asia-infonet.com> 11591 (Fdefine_coding_system_alias): Use names, not symbols, in
11592 11592 coding-system-alist.
11593 * charset.c (read_hex): Don't treat SPC as a comment starter. 11593
11594 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1. 115942008-02-01 Kenichi Handa <handa@m17n.org>
11595 (Fdecode_char): Fix typo. 11595
11596 11596 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
115972008-02-01 Kenichi Handa <handa@m17n.org> 11597 of calling free_realized_face.
11598 11598
11599 * charset.h (struct charset): New member `code_space_mask'. 115992008-02-01 Yong Lu <lyongu@asia-infonet.com>
11600 11600
11601 * coding.c (coding_set_source): Delete the local variable beg_byte. 11601 * charset.c (read_hex): Don't treat SPC as a comment starter.
11602 (encode_coding_charset, Fdefine_coding_system_internal): 11602 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
11603 Delete the local variable charset. 11603 (Fdecode_char): Fix typo.
11604 (Fdefine_coding_system_internal): Setup 11604
11605 attrs[coding_attr_charset_valids] correctly. 116052008-02-01 Kenichi Handa <handa@m17n.org>
11606 11606
11607 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' 11607 * charset.h (struct charset): New member `code_space_mask'.
11608 member to check if CODE is valid or not. 11608
11609 (Fdefine_charset_internal): Initialize `code_space_mask' member. 11609 * coding.c (coding_set_source): Delete the local variable beg_byte.
11610 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE 11610 (encode_coding_charset, Fdefine_coding_system_internal):
11611 is within the range of charset->min_code and carset->max_code. 11611 Delete the local variable charset.
11612 11612 (Fdefine_coding_system_internal): Setup
116132008-02-01 Dave Love <fx@gnu.org> 11613 attrs[coding_attr_charset_valids] correctly.
11614 11614
11615 * syntax.h (syntax_temp) [!__GNUC__]: Declare. 11615 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
11616 11616 member to check if CODE is valid or not.
11617 * dispextern.h (generate_ascii_font): Fix return type. 11617 (Fdefine_charset_internal): Initialize `code_space_mask' member.
11618 11618 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
11619 * xfaces.c (generate_ascii_font): Fix arg declaration. 11619 is within the range of charset->min_code and carset->max_code.
11620 11620
11621 * coding.c (coding_inherit_eol_type) 116212008-02-01 Dave Love <fx@gnu.org>
11622 (Fset_terminal_coding_system_internal) 11622
11623 (Fset_safe_terminal_coding_system_internal): Fix arg declarations. 11623 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
11624 11624
116252008-02-01 Kenichi Handa <handa@m17n.org> 11625 * dispextern.h (generate_ascii_font): Fix return type.
11626 11626
11627 * coding.c (decode_coding_charset, encode_coding_charset): Handle 11627 * xfaces.c (generate_ascii_font): Fix arg declaration.
11628 multiple charsets correctly. 11628
11629 11629 * coding.c (coding_inherit_eol_type)
116302008-02-01 Kenichi Handa <handa@m17n.org> 11630 (Fset_terminal_coding_system_internal)
11631 11631 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
11632 * search.c (boyer_moore): Fix handling of multibyte character 11632
11633 translation. 116332008-02-01 Kenichi Handa <handa@m17n.org>
11634 11634
11635 * xdisp.c (display_mode_element): When the variable `elt' is 11635 * coding.c (decode_coding_charset, encode_coding_charset): Handle
11636 changed, update `this' and `lisp_string'. 11636 multiple charsets correctly.
11637 11637
116382008-02-01 Kenichi Handa <handa@m17n.org> 116382008-02-01 Kenichi Handa <handa@m17n.org>
11639 11639
11640 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. 11640 * search.c (boyer_moore): Fix handling of multibyte character
11641 11641 translation.
11642 * callproc.c (Fcall_process): Be sure to give the current buffer 11642
11643 to decode_coding_c_string. Update PT and PT_BYTE after the insertion. 11643 * xdisp.c (display_mode_element): When the variable `elt' is
11644 11644 changed, update `this' and `lisp_string'.
11645 * charset.c (struct charset_map_entries): New struct. 11645
11646 (load_charset_map): Rename from parse_charset_map. New args 116462008-02-01 Kenichi Handa <handa@m17n.org>
11647 entries and n_entries. Change caller. 11647
11648 (load_charset_map_from_file): Rename from load_charset_map. 11648 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
11649 Change caller. New arg control_flag. Call load_charset_map at 11649
11650 the tail. 11650 * callproc.c (Fcall_process): Be sure to give the current buffer
11651 (load_charset_map_from_vector): New function. 11651 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
11652 (Fdefine_charset_internal): Setup charset.compact_codes_p. 11652
11653 (encode_char): If the charset is compact, change a character index 11653 * charset.c (struct charset_map_entries): New struct.
11654 to a code point. 11654 (load_charset_map): Rename from parse_charset_map. New args
11655 11655 entries and n_entries. Change caller.
11656 * coding.c (coding_alloc_by_making_gap): Check the case that the 11656 (load_charset_map_from_file): Rename from load_charset_map.
11657 source and destination are the same correctly. 11657 Change caller. New arg control_flag. Call load_charset_map at
11658 (decode_coding_raw_text): Set coding->consumed_char and 11658 the tail.
11659 coding->consumed to 0. 11659 (load_charset_map_from_vector): New function.
11660 (produce_chars): If coding->chars_at_source is nonzero, update 11660 (Fdefine_charset_internal): Setup charset.compact_codes_p.
11661 coding->consumed_char and coding->consumed before calling 11661 (encode_char): If the charset is compact, change a character index
11662 alloc_destination. 11662 to a code point.
11663 (Fdefine_coding_system_alias): Register ALIAS in 11663
11664 Vcoding_system_alist. 11664 * coding.c (coding_alloc_by_making_gap): Check the case that the
11665 (syms_of_coding): Define `no-conversion' coding system at the tail. 11665 source and destination are the same correctly.
11666 11666 (decode_coding_raw_text): Set coding->consumed_char and
11667 * fileio.c (Finsert_file_contents): Set coding_system instead of 11667 coding->consumed to 0.
11668 val. If the current buffer is multibyte, always call 11668 (produce_chars): If coding->chars_at_source is nonzero, update
11669 decode_coding_gap. 11669 coding->consumed_char and coding->consumed before calling
11670 11670 alloc_destination.
11671 * xfaces.c (try_font_list): Give higher priority to fontset's 11671 (Fdefine_coding_system_alias): Register ALIAS in
11672 family than face's family. 11672 Vcoding_system_alist.
11673 11673 (syms_of_coding): Define `no-conversion' coding system at the tail.
116742008-02-01 Kenichi Handa <handa@m17n.org> 11674
11675 11675 * fileio.c (Finsert_file_contents): Set coding_system instead of
11676 * callproc.c (Fcall_process): Be sure to give the current buffer 11676 val. If the current buffer is multibyte, always call
11677 to decode_coding_c_string. 11677 decode_coding_gap.
11678 11678
11679 * xfaces.c (try_font_list): Give a family specified in a fontset 11679 * xfaces.c (try_font_list): Give higher priority to fontset's
11680 higher priority than a family specified in a face. 11680 family than face's family.
11681 11681
116822008-02-01 Kenichi Handa <handa@m17n.org> 116822008-02-01 Kenichi Handa <handa@m17n.org>
11683 11683
11684 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. 11684 * callproc.c (Fcall_process): Be sure to give the current buffer
11685 Fix arguments to insert_from_buffer. 11685 to decode_coding_c_string.
11686 11686
11687 * xdisp.c (display_mode_element): Fix calculation of `bytepos'. 11687 * xfaces.c (try_font_list): Give a family specified in a fontset
11688 11688 higher priority than a family specified in a face.
116892008-02-01 Kenichi Handa <handa@m17n.org> 11689
11690 116902008-02-01 Kenichi Handa <handa@m17n.org>
11691 * coding.c (produce_chars): Set the variable `multibytep' correctly. 11691
11692 (decode_coding_gap): Set coding->dst_multibyte correctly. 11692 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
11693 11693 Fix arguments to insert_from_buffer.
116942008-02-01 Kenichi Handa <handa@m17n.org> 11694
11695 11695 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
11696 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. 11696
11697 (decode_coding_utf_16): Fix converting high and low bytes to code-point. 116972008-02-01 Kenichi Handa <handa@m17n.org>
11698 (encode_coding_utf_16): Substitute coding->default_char for 11698
11699 non-Unicode characters. 11699 * coding.c (produce_chars): Set the variable `multibytep' correctly.
11700 (decode_coding): Don't call record_insert here. 11700 (decode_coding_gap): Set coding->dst_multibyte correctly.
11701 (setup_coding_system): Initialize `surrogate' of 11701
11702 coding->spec.utf_16 to 0. 117022008-02-01 Kenichi Handa <handa@m17n.org>
11703 (EMIT_ONE_BYTE): Fix for multibyte case. 11703
11704 11704 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
11705 * insdel.c (insert_from_gap): Call record_insert. 11705 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
11706 11706 (encode_coding_utf_16): Substitute coding->default_char for
117072008-02-01 Kenichi Handa <handa@m17n.org> 11707 non-Unicode characters.
11708 11708 (decode_coding): Don't call record_insert here.
11709 * casefiddle.c (casify_region): Fix multibyte case. 11709 (setup_coding_system): Initialize `surrogate' of
11710 11710 coding->spec.utf_16 to 0.
11711 * character.c (c_string_width): Add return type `int'. 11711 (EMIT_ONE_BYTE): Fix for multibyte case.
11712 (char_string_with_unification): Delete arg ADVANCED. 11712
11713 11713 * insdel.c (insert_from_gap): Call record_insert.
11714 * character.h (CHAR_VALID_P): Don't call CHARACTERP. 11714
11715 (CHAR_STRING): Adjust for the change of char_string_with_unification. 117152008-02-01 Kenichi Handa <handa@m17n.org>
11716 (CHAR_STRING_ADVANCE): Make it do-while statement. 11716
11717 11717 * casefiddle.c (casify_region): Fix multibyte case.
11718 * chartab.c (sub_char_table_set_range): Optimize for the case 11718
11719 DEPTH == 3. Add workaround code for a GCC optimization bug. 11719 * character.c (c_string_width): Add return type `int'.
11720 11720 (char_string_with_unification): Delete arg ADVANCED.
11721 * charset.c (parse_charset_map): Remove an unused variable. 11721
11722 11722 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
11723 * coding.c: Delete unused variables. 11723 (CHAR_STRING): Adjust for the change of char_string_with_unification.
11724 11724 (CHAR_STRING_ADVANCE): Make it do-while statement.
11725 * fileio.c (Finsert_file_contents): Set coding_system to Qnil 11725
11726 earlier. If inserted is zero and the coding system doesn't 11726 * chartab.c (sub_char_table_set_range): Optimize for the case
11727 require flushing, don't call decode_coding_gap. 11727 DEPTH == 3. Add workaround code for a GCC optimization bug.
11728 11728
11729 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. 11729 * charset.c (parse_charset_map): Remove an unused variable.
11730 11730
117312008-02-01 Kenichi Handa <handa@m17n.org> 11731 * coding.c: Delete unused variables.
11732 11732
11733 The following changes are for using Unicode as an internal 11733 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
11734 character model, and use UTF-8 format for buffer/string 11734 earlier. If inserted is zero and the coding system doesn't
11735 representation. 11735 require flushing, don't call decode_coding_gap.
11736 11736
11737 * .gdbinit (xchartable): Adjust for the change of char table structure. 11737 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
11738 (xsubchartable, xcoding, xcharset, xcurbuf): New commands. 11738
11739 117392008-02-01 Kenichi Handa <handa@m17n.org>
11740 * Makefile.in (obj): Add character.o and chartab.o. 11740
11741 (lisp, shortlisp): Remove utf-8.elc. 11741 The following changes are for using Unicode as an internal
11742 (*.o): For many files, change dependency on charset.h to 11742 character model, and use UTF-8 format for buffer/string
11743 character.h, and add dependency on character.h. 11743 representation.
11744 (character.o, chartab.o): New targets. 11744
11745 11745 * .gdbinit (xchartable): Adjust for the change of char table structure.
11746 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c: 11746 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
11747 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c: 11747
11748 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead 11748 * Makefile.in (obj): Add character.o and chartab.o.
11749 of "charset.h". 11749 (lisp, shortlisp): Remove utf-8.elc.
11750 11750 (*.o): For many files, change dependency on charset.h to
11751 * dired.c, filelock.c: Include "character.h". 11751 character.h, and add dependency on character.h.
11752 11752 (character.o, chartab.o): New targets.
11753 * alloc.c: Include "character.h" instead of "charset.h". 11753
11754 (Fmake_char_table, make_sub_char_table): Move to chartab.c. 11754 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
11755 (syms_of_alloc): Remove defsubr for Smake_char_table. 11755 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
11756 11756 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
11757 * buffer.c: Include "character.h" instead of "charset.h", don't 11757 of "charset.h".
11758 include "coding.h". 11758
11759 (Fset_buffer_multibyte): Adjust for UTF-8. 11759 * dired.c, filelock.c: Include "character.h".
11760 11760
11761 * buffer.h: EXFUN Fbuffer_live_p. 11761 * alloc.c: Include "character.h" instead of "charset.h".
11762 11762 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
11763 * callproc.c: Include "character.h" instead of "charset.h". 11763 (syms_of_alloc): Remove defsubr for Smake_char_table.
11764 (Fcall_process): Big change for the new code-conversion APIs. 11764
11765 11765 * buffer.c: Include "character.h" instead of "charset.h", don't
11766 * casetab.c: Include "character.h" instead of "charset.h". 11766 include "coding.h".
11767 (set_canon, set_identity, shuffle): Adjust for the new 11767 (Fset_buffer_multibyte): Adjust for UTF-8.
11768 map_char_table spec. 11768
11769 (init_casetab_once): Call CHAR_TABLE_SET instead of directly 11769 * buffer.h: EXFUN Fbuffer_live_p.
11770 accessing the char table structure. 11770
11771 11771 * callproc.c: Include "character.h" instead of "charset.h".
11772 * chartab.c: New file that implements char table. 11772 (Fcall_process): Big change for the new code-conversion APIs.
11773 11773
11774 * category.c: Include "character.h". 11774 * casetab.c: Include "character.h" instead of "charset.h".
11775 (copy_category_entry): New function. 11775 (set_canon, set_identity, shuffle): Adjust for the new
11776 (copy_category_table): Call map_char_table and copy_category_entry. 11776 map_char_table spec.
11777 (Fmake_category_table): Initialize all top-level slots. 11777 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
11778 (char_category_set): New function. 11778 accessing the char table structure.
11779 (modify_lower_category_set): Delete. 11779
11780 (Fmodify_category_entry): Call char_table_ref_and_range. 11780 * chartab.c: New file that implements char table.
11781 11781
11782 * category.h (CATEGORY_SET): Just call char_category_set. 11782 * category.c: Include "character.h".
11783 11783 (copy_category_entry): New function.
11784 * ccl.c: Include "character.h". 11784 (copy_category_table): Call map_char_table and copy_category_entry.
11785 (Qccl, Qcclp): New variables. 11785 (Fmake_category_table): Initialize all top-level slots.
11786 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if 11786 (char_category_set): New function.
11787 it's less than 256. 11787 (modify_lower_category_set): Delete.
11788 (CCL_WRITE_MULTIBYTE_CHAR): Delete. 11788 (Fmodify_category_entry): Call char_table_ref_and_range.
11789 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC 11789
11790 and DST type. 11790 * category.h (CATEGORY_SET): Just call char_category_set.
11791 (ccl_driver): Change types of argument, adjust code accordingly. 11791
11792 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of 11792 * ccl.c: Include "character.h".
11793 ccl_driver. 11793 (Qccl, Qcclp): New variables.
11794 (syms_of_ccl): Intern and staticpro Qccl and Qcclp. 11794 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
11795 11795 it's less than 256.
11796 * ccl.h (struct ccl_program): Delete members eol_type and multibyte. 11796 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
11797 New members src_multibyte, dst_multibyte, consumed, and produced. 11797 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
11798 (struct ccl_spec): Delete members decoder and encoder. New member ccl. 11798 and DST type.
11799 (CODING_SPEC_CCL_PROGRAM): New macro. 11799 (ccl_driver): Change types of argument, adjust code accordingly.
11800 (ccl_driver): Update prototype. 11800 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
11801 (Qccl, Qcclp, Fccl_program_p): Extern them. 11801 ccl_driver.
11802 (CHECK_CCL_PROGRAM): New macro. 11802 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
11803 11803
11804 * character.c, character.h, chartab.c: New files. 11804 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
11805 11805 New members src_multibyte, dst_multibyte, consumed, and produced.
11806 * charset.c: Mostly re-written. Move character and multibyte sequence 11806 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
11807 handling codes to character.c. 11807 (CODING_SPEC_CCL_PROGRAM): New macro.
11808 11808 (ccl_driver): Update prototype.
11809 * charset.h: Mostly re-written. Move character and multibyte sequence 11809 (Qccl, Qcclp, Fccl_program_p): Extern them.
11810 handling codes to character.h. 11810 (CHECK_CCL_PROGRAM): New macro.
11811 11811
11812 * coding.c, coding.h: Mostly re-written. 11812 * character.c, character.h, chartab.c: New files.
11813 11813
11814 * composite.c: Include "character.h" instead of "charset.h". 11814 * charset.c: Mostly re-written. Move character and multibyte sequence
11815 (CHAR_WIDTH): Move to character.h. 11815 handling codes to character.c.
11816 (HASH_KEY, HASH_VALUE): Delete. 11816
11817 11817 * charset.h: Mostly re-written. Move character and multibyte sequence
11818 * composite.h (enum composition_method): Change order of enumeration 11818 handling codes to character.h.
11819 symbols. 11819
11820 11820 * coding.c, coding.h: Mostly re-written.
11821 * data.c: Include "character.h" instead of "charset.h". 11821
11822 (Faref): Call CHAR_TABLE_REF for a char table. 11822 * composite.c: Include "character.h" instead of "charset.h".
11823 (Faset): Call CHAR_TABLE_SET for a char table. 11823 (CHAR_WIDTH): Move to character.h.
11824 11824 (HASH_KEY, HASH_VALUE): Delete.
11825 * dispextern.h (free_realized_face, check_face_attribytes) 11825
11826 (generate_ascii_font): Extern them. 11826 * composite.h (enum composition_method): Change order of enumeration
11827 (free_realized_multibyte_face): Delete extern. 11827 symbols.
11828 11828
11829 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char 11829 * data.c: Include "character.h" instead of "charset.h".
11830 table structure. 11830 (Faref): Call CHAR_TABLE_REF for a char table.
11831 11831 (Faset): Call CHAR_TABLE_SET for a char table.
11832 * editfns.c: Include "character.h" instead of "charset.h". 11832
11833 (Fchar_to_string): Always call CHAR_STRING. 11833 * dispextern.h (free_realized_face, check_face_attribytes)
11834 11834 (generate_ascii_font): Extern them.
11835 * emacs.c (main): Call init_charset_once, init_charset, 11835 (free_realized_multibyte_face): Delete extern.
11836 syms_of_chartab, and syms_of_character. 11836
11837 11837 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
11838 * fileio.c: Include "character.h" instead of "charset.h". 11838 table structure.
11839 (Finsert_file_contents): Big change for the new code-conversion API. 11839
11840 (choose_write_coding_system, Fwrite_region): Likewise. 11840 * editfns.c: Include "character.h" instead of "charset.h".
11841 (build_annotations_2): Delete. 11841 (Fchar_to_string): Always call CHAR_STRING.
11842 (e_write): Big change for the new code-conversion API. 11842
11843 11843 * emacs.c (main): Call init_charset_once, init_charset,
11844 * fns.c: Include "character.h" instead of "charset.h". 11844 syms_of_chartab, and syms_of_character.
11845 (copy_sub_char_table): Move to chartab.c. 11845
11846 (Fcopy_sequence): Call copy_char_table for a char table. 11846 * fileio.c: Include "character.h" instead of "charset.h".
11847 (concat): Delete codes calling count_multibyte. 11847 (Finsert_file_contents): Big change for the new code-conversion API.
11848 (string_char_to_byte, string_byte_to_char): Adjust for the new 11848 (choose_write_coding_system, Fwrite_region): Likewise.
11849 multibyte form. 11849 (build_annotations_2): Delete.
11850 (internal_equal): Adjust for the change of char table structure. 11850 (e_write): Big change for the new code-conversion API.
11851 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent) 11851
11852 (Fchar_table_extra_slot, Fset_char_table_extra_slot) 11852 * fns.c: Include "character.h" instead of "charset.h".
11853 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default) 11853 (copy_sub_char_table): Move to chartab.c.
11854 (char_table_translate, optimize_sub_char_table) 11854 (Fcopy_sequence): Call copy_char_table for a char table.
11855 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to 11855 (concat): Delete codes calling count_multibyte.
11856 chartab.c. 11856 (string_char_to_byte, string_byte_to_char): Adjust for the new
11857 (char_table_ref_and_index): Delete. 11857 multibyte form.
11858 (HASH_KEY, HASH_VALUE): Move to lisp.h. 11858 (internal_equal): Adjust for the change of char table structure.
11859 (Fmd5): Call preferred_coding_system instead of accessing 11859 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
11860 Vcoding_category_list. Adjust for the new code-conversion API. 11860 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
11861 (syms_of_fns): Move defsubr for char table related functions to 11861 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
11862 chartab.c. 11862 (char_table_translate, optimize_sub_char_table)
11863 11863 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
11864 * fontset.c: Mostly re-written. 11864 chartab.c.
11865 11865 (char_table_ref_and_index): Delete.
11866 * fontset.h (struct font_info): Change type of the member encoding_type. 11866 (HASH_KEY, HASH_VALUE): Move to lisp.h.
11867 (enum FONT_SPEC_INDEX): New enum. 11867 (Fmd5): Call preferred_coding_system instead of accessing
11868 (fontset_font_pattern, fs_load_font): Update prototype. 11868 Vcoding_category_list. Adjust for the new code-conversion API.
11869 (FS_LOAD_FONT): Adjust for the change of fs_load_font. 11869 (syms_of_fns): Move defsubr for char table related functions to
11870 11870 chartab.c.
11871 * indent.c: Include "character.h" instead of "charset.h". 11871
11872 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD. 11872 * fontset.c: Mostly re-written.
11873 11873
11874 * insdel.c: Include "character.h" instead of "charset.h". 11874 * fontset.h (struct font_info): Change type of the member encoding_type.
11875 (copy_text): Don't refer to Vnonascii_translation_table. 11875 (enum FONT_SPEC_INDEX): New enum.
11876 (insert_from_gap): New function. 11876 (fontset_font_pattern, fs_load_font): Update prototype.
11877 11877 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
11878 * keyboard.c: Include "character.h" instead of "charset.h". 11878
11879 (command_loop_1): Never call direct_output_forward_char before 11879 * indent.c: Include "character.h" instead of "charset.h".
11880 a non-ASCII character. 11880 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
11881 (read_char): If Vkeyboard_translate_table is a char table, always 11881
11882 translate a character. 11882 * insdel.c: Include "character.h" instead of "charset.h".
11883 11883 (copy_text): Don't refer to Vnonascii_translation_table.
11884 * keymap.c: Include "character.h". 11884 (insert_from_gap): New function.
11885 (store_in_keymap): Handle the case that IDX is a cons. 11885
11886 (Fdefine_key): Handle the case that KEY is a cons and the car part 11886 * keyboard.c: Include "character.h" instead of "charset.h".
11887 is also a cons (range). 11887 (command_loop_1): Never call direct_output_forward_char before
11888 (push_key_description): Adjust for the new character code. 11888 a non-ASCII character.
11889 (describe_vector): Call describe_char_table for a char table. 11889 (read_char): If Vkeyboard_translate_table is a char table, always
11890 (describe_char_table): New function. 11890 translate a character.
11891 11891
11892 * keymap.h (describe_char_table): Extern it. 11892 * keymap.c: Include "character.h".
11893 11893 (store_in_keymap): Handle the case that IDX is a cons.
11894 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. 11894 (Fdefine_key): Handle the case that KEY is a cons and the car part
11895 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. 11895 is also a cons (range).
11896 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS) 11896 (push_key_description): Adjust for the new character code.
11897 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): 11897 (describe_vector): Call describe_char_table for a char table.
11898 Delete. 11898 (describe_char_table): New function.
11899 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table 11899
11900 structure. 11900 * keymap.h (describe_char_table): Extern it.
11901 (CHAR_TABLE_TRANSLATE): Just call char_table_translate. 11901
11902 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2) 11902 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
11903 (CHARTAB_SIZE_BITS_3): New macros. 11903 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
11904 (chartab_size): Extern it. 11904 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
11905 (struct Lisp_Char_Table): Re-design. 11905 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
11906 (struct Lisp_Sub_Char_Table): New structure. 11906 Delete.
11907 (HASH_KEY, HASH_VALUE): Move from fns.c. 11907 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
11908 (CHARACTERBITS): Define as 22. 11908 structure.
11909 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change. 11909 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
11910 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. 11910 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
11911 (GC_SUB_CHAR_TABLE_P): New macro. 11911 (CHARTAB_SIZE_BITS_3): New macros.
11912 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN. 11912 (chartab_size): Extern it.
11913 (code_convert_string_norecord): Deleted extern. 11913 (struct Lisp_Char_Table): Re-design.
11914 (init_character_once, syms_of_character, init_charset) 11914 (struct Lisp_Sub_Char_Table): New structure.
11915 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. 11915 (HASH_KEY, HASH_VALUE): Move from fns.c.
11916 11916 (CHARACTERBITS): Define as 22.
11917 * lread.c: Include "character.h". 11917 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
11918 (read_multibyte): New arg NBYTES. 11918 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
11919 (read_escape): Change the meaning of returned *BYTEREP. 11919 (GC_SUB_CHAR_TABLE_P): New macro.
11920 (to_multibyte): Delete. 11920 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
11921 (read1): Adjust the handling of char table and string. 11921 (code_convert_string_norecord): Deleted extern.
11922 11922 (init_character_once, syms_of_character, init_charset)
11923 * print.c: Include "character.h" instead of "charset.h". 11923 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
11924 (print_string): Convert 8-bit raw bytes to octal form by 11924
11925 string_escape_byte8. 11925 * lread.c: Include "character.h".
11926 (print_object): Adjust for the new multibyte form. Print 8-bit 11926 (read_multibyte): New arg NBYTES.
11927 raw bytes always in octal form. Handle sub char table correctly. 11927 (read_escape): Change the meaning of returned *BYTEREP.
11928 11928 (to_multibyte): Delete.
11929 * process.c: Include "character.h" instead of "charset.h". 11929 (read1): Adjust the handling of char table and string.
11930 (read_process_output, send_process): Adjust for the new 11930
11931 code-conversion API. 11931 * print.c: Include "character.h" instead of "charset.h".
11932 11932 (print_string): Convert 8-bit raw bytes to octal form by
11933 * puresize.h (BASE_PURESIZE): Increase. 11933 string_escape_byte8.
11934 11934 (print_object): Adjust for the new multibyte form. Print 8-bit
11935 * regex.c: Include "character.h" instead of "charset.h". 11935 raw bytes always in octal form. Handle sub char table correctly.
11936 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. 11936
11937 (regex_compile): Accept a range whose starting and ending 11937 * process.c: Include "character.h" instead of "charset.h".
11938 character have different leading bytes. 11938 (read_process_output, send_process): Adjust for the new
11939 (analyse_first): Adjust for the above change. 11939 code-conversion API.
11940 11940
11941 * search.c: Include "character.h" instead of "charset.h". 11941 * puresize.h (BASE_PURESIZE): Increase.
11942 (search_buffer, boyer_moore): Adjust for the new multibyte form. 11942
11943 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte. 11943 * regex.c: Include "character.h" instead of "charset.h".
11944 11944 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
11945 * syntax.c: Include "character.h" instead of "charset.h". 11945 (regex_compile): Accept a range whose starting and ending
11946 (syntax_parent_lookup): Delete. 11946 character have different leading bytes.
11947 (Fmodify_syntax_entry): Accept a cons as CHAR. 11947 (analyse_first): Adjust for the above change.
11948 (skip_chars): Adjust for the new multibyte form. 11948
11949 (init_syntax_once): Call char_table_set_range instead of directly 11949 * search.c: Include "character.h" instead of "charset.h".
11950 accessing the structure of a char table. 11950 (search_buffer, boyer_moore): Adjust for the new multibyte form.
11951 11951 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
11952 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. 11952
11953 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro. 11953 * syntax.c: Include "character.h" instead of "charset.h".
11954 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. 11954 (syntax_parent_lookup): Delete.
11955 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. 11955 (Fmodify_syntax_entry): Accept a cons as CHAR.
11956 11956 (skip_chars): Adjust for the new multibyte form.
11957 * term.c: Include "buffer.h" and "character.h". 11957 (init_syntax_once): Call char_table_set_range instead of directly
11958 (encode_terminal_code, write_glyphs): Adjust for the new 11958 accessing the structure of a char table.
11959 code-conversion API. 11959
11960 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. 11960 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
11961 11961 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
11962 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT. 11962 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
11963 11963 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
11964 * xdisp.c: Include "character.h". 11964
11965 (get_next_display_element): Adjust for the new multibyte form. 11965 * term.c: Include "buffer.h" and "character.h".
11966 (disp_char_vector): Adjust for the new char table structure. 11966 (encode_terminal_code, write_glyphs): Adjust for the new
11967 (decode_mode_spec_coding): Adjust for the new structure of 11967 code-conversion API.
11968 coding system. 11968 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
11969 (decode_mode_spec): Adjust for the new code-conversion API. 11969
11970 11970 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
11971 * xfaces.c: Include "character.h" instead of "charset.h". 11971
11972 (load_face_font): Adjust for the change of choose_face_font and 11972 * xdisp.c: Include "character.h".
11973 FS_LOAD_FONT. 11973 (get_next_display_element): Adjust for the new multibyte form.
11974 (generate_ascii_font): New function. 11974 (disp_char_vector): Adjust for the new char table structure.
11975 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT. 11975 (decode_mode_spec_coding): Adjust for the new structure of
11976 (set_font_frame_param): Adjust for the change of choose_face_font. 11976 coding system.
11977 (free_realized_face): Make it public. 11977 (decode_mode_spec): Adjust for the new code-conversion API.
11978 (free_realized_faces_for_fontset): Rename from 11978
11979 free_realized_multibyte_face. Free also faces realized for ASCII. 11979 * xfaces.c: Include "character.h" instead of "charset.h".
11980 (choose_face_font): Change arguments. Adjust for the change of 11980 (load_face_font): Adjust for the change of choose_face_font and
11981 fontset_font_pattern and FS_LOAD_FONT. 11981 FS_LOAD_FONT.
11982 11982 (generate_ascii_font): New function.
11983 * xfns.c: Include "character.h". 11983 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
11984 (x_encode_text): Adjust for the new code-conversion API. 11984 (set_font_frame_param): Adjust for the change of choose_face_font.
11985 11985 (free_realized_face): Make it public.
11986 * xselect.c: Don't include "charset.h". 11986 (free_realized_faces_for_fontset): Rename from
11987 (selection_data_to_lisp_data): Adjust for the new code conversion API. 11987 free_realized_multibyte_face. Free also faces realized for ASCII.
11988 11988 (choose_face_font): Change arguments. Adjust for the change of
11989 * xterm.c: Include "character.h". 11989 fontset_font_pattern and FS_LOAD_FONT.
11990 (x_encode_char): New argument CHARSET. Change caller. 11990
11991 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding): 11991 * xfns.c: Include "character.h".
11992 Call ENCODE_CHAR instead of SPLIT_CHAR. 11992 (x_encode_text): Adjust for the new code-conversion API.
11993 (x_produce_glyphs): Don't check Vnonascii_translation_table Call 11993
11994 CHAR_WIDTH instead of CHARSET_WIDTH. 11994 * xselect.c: Don't include "charset.h".
11995 (XTread_socket): Adjust for the new code-conversion API. 11995 (selection_data_to_lisp_data): Adjust for the new code conversion API.
11996 (x_new_font): Adjust for the change of FS_LOAD_FONT. 11996
11997 (x_load_font): Adjust for the change of struct font. 11997 * xterm.c: Include "character.h".
11998 11998 (x_encode_char): New argument CHARSET. Change caller.
119992008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> 11999 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
12000 12000 Call ENCODE_CHAR instead of SPLIT_CHAR.
12001 * xfaces.c (face_at_buffer_position): Remove unused vars. 12001 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
12002 12002 CHAR_WIDTH instead of CHARSET_WIDTH.
120032008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 12003 (XTread_socket): Adjust for the new code-conversion API.
12004 12004 (x_new_font): Adjust for the change of FS_LOAD_FONT.
12005 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR): 12005 (x_load_font): Adjust for the change of struct font.
12006 Fix overflow checking. 12006
12007 120072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
120082008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 12008
12009 12009 * xfaces.c (face_at_buffer_position): Remove unused vars.
12010 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver): 12010
12011 Cancel previous change. 120112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12012 12012
120132008-01-31 Kenichi Handa <handa@ni.aist.go.jp> 12013 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
12014 12014 Fix overflow checking.
12015 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when 12015
12016 ccl->eight_bit_control. Fix check for buffer overflow. 120162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12017 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow. 12017
12018 (ccl_driver): Initialize extra_bytes to 0. 12018 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
12019 12019 Cancel previous change.
120202008-01-31 Kenichi Handa <handa@ni.aist.go.jp> 12020
12021 120212008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
12022 * keyboard.c (make_ctrl_char): If C is a multibyte character, just 12022
12023 return it ORed with ctrl_modifier. 12023 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
12024 12024 ccl->eight_bit_control. Fix check for buffer overflow.
120252008-01-29 Miles Bader <miles@gnu.org> 12025 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
12026 12026 (ccl_driver): Initialize extra_bytes to 0.
12027 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake. 12027
12028 120282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
120292008-01-28 Jason Rumney <jasonr@gnu.org> 12029
12030 12030 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
12031 * w32.c (stat): Don't double check for networked drive. 12031 return it ORed with ctrl_modifier.
12032 12032
120332008-01-28 Stefan Monnier <monnier@iro.umontreal.ca> 120332008-01-29 Miles Bader <miles@gnu.org>
12034 12034
12035 * window.c (run_window_configuration_change_hook): New function. 12035 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
12036 Code extracted from set_window_buffer. Set the selected frame. 12036
12037 (set_window_buffer): Use it. 120372008-01-28 Jason Rumney <jasonr@gnu.org>
12038 * window.h (run_window_configuration_change_hook): Declare. 12038
12039 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer. 12039 * w32.c (stat): Don't double check for networked drive.
12040 12040
12041 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM). 120412008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
12042 12042
120432008-01-27 Dan Nicolaescu <dann@ics.uci.edu> 12043 * window.c (run_window_configuration_change_hook): New function.
12044 12044 Code extracted from set_window_buffer. Set the selected frame.
12045 * Makefile.in: Remove references to unused macros. 12045 (set_window_buffer): Use it.
12046 12046 * window.h (run_window_configuration_change_hook): Declare.
120472008-01-26 Eli Zaretskii <eliz@gnu.org> 12047 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
12048 12048
12049 * w32.c (g_b_init_get_sid_sub_authority) 12049 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
12050 (g_b_init_get_sid_sub_authority_count): New static variables. 12050
12051 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs. 120512008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
12052 (get_sid_sub_authority, get_sid_sub_authority_count): New functions. 12052
12053 (init_user_info): Use them to retrieve uid and gid. 12053 * Makefile.in: Remove references to unused macros.
12054 Use 500/513, the Windows defaults, as Administrator's uid/gid. 12054
12055 (fstat): Use pw_uid and pw_gid from the_passwd structure for 120552008-01-26 Eli Zaretskii <eliz@gnu.org>
12056 st_uid and st_gid of the file. 12056
12057 12057 * w32.c (g_b_init_get_sid_sub_authority)
120582008-01-26 Jason Rumney <jasonr@gnu.org> 12058 (g_b_init_get_sid_sub_authority_count): New static variables.
12059 12059 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
12060 * w32.c (logon_network_drive): New function. 12060 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
12061 (stat): Use it. 12061 (init_user_info): Use them to retrieve uid and gid.
12062 12062 Use 500/513, the Windows defaults, as Administrator's uid/gid.
120632008-01-26 Chong Yidong <cyd@stupidchicken.com> 12063 (fstat): Use pw_uid and pw_gid from the_passwd structure for
12064 12064 st_uid and st_gid of the file.
12065 * xdisp.c (pos_visible_p): Handle the case where charpos falls on 12065
12066 invisible text covered with an ellipsis. 120662008-01-26 Jason Rumney <jasonr@gnu.org>
12067 12067
120682008-01-25 Richard Stallman <rms@gnu.org> 12068 * w32.c (logon_network_drive): New function.
12069 12069 (stat): Use it.
12070 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and 12070
12071 jump back to beginning. Move some other initializations after that. 120712008-01-26 Chong Yidong <cyd@stupidchicken.com>
12072 (Qwindow_text_change_functions, Vwindow_text_change_functions): 12072
12073 New variables. 12073 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
12074 (syms_of_xdisp): Init them. 12074 invisible text covered with an ellipsis.
12075 12075
12076 * keyboard.c (read_char): Restore echo_message_buffer after redisplay. 120762008-01-25 Richard Stallman <rms@gnu.org>
12077 12077
12078 * buffer.c (reset_buffer_local_variables): 12078 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
12079 Implement `permanent-local-hook'. 12079 jump back to beginning. Move some other initializations after that.
12080 (Qpermanent_local_hook): New variable. 12080 (Qwindow_text_change_functions, Vwindow_text_change_functions):
12081 (syms_of_buffer): Init and staticpro it. 12081 New variables.
12082 12082 (syms_of_xdisp): Init them.
120832008-01-25 Michael Albinus <michael.albinus@gmx.de> 12083
12084 12084 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
12085 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux. 12085
12086 12086 * buffer.c (reset_buffer_local_variables):
120872008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org> 12087 Implement `permanent-local-hook'.
12088 12088 (Qpermanent_local_hook): New variable.
12089 * fns.c (Fclrhash): Return TABLE. 12089 (syms_of_buffer): Init and staticpro it.
12090 12090
120912008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 120912008-01-25 Michael Albinus <michael.albinus@gmx.de>
12092 12092
12093 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p. 12093 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
12094 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p 12094
12095 is set even without positional changes. 120952008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
12096 (x_scroll_bar_clear): Set bar->redraw_needed_p. 12096
12097 12097 * fns.c (Fclrhash): Return TABLE.
12098 * macterm.h (struct scroll_bar): New member `redraw_needed_p'. 12098
12099 120992008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
121002008-01-23 Jason Rumney <jasonr@gnu.org> 12100
12101 12101 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
12102 * xterm.c (handle_one_xevent): Revert to counting chars not bytes. 12102 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
12103 12103 is set even without positional changes.
12104 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside 12104 (x_scroll_bar_clear): Set bar->redraw_needed_p.
12105 the unicode range available in MULE by locale-coding-system. 12105
12106 Improve dbcs lead byte detection. Set event timestamp and modifiers 12106 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
12107 earlier. 12107
12108 121082008-01-23 Jason Rumney <jasonr@gnu.org>
121092008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12109
12110 12110 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
12111 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable. 12111
12112 [MAC_OSX] (init_mac_osx_environment): Initialize it. 12112 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
12113 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 12113 the unicode range available in MULE by locale-coding-system.
12114 when used on child processes. 12114 Improve dbcs lead byte detection. Set event timestamp and modifiers
12115 12115 earlier.
121162008-01-21 Michael Albinus <michael.albinus@gmx.de> 12116
12117 121172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12118 * dbusbind.c (Fdbus_method_return_internal): Rename from 12118
12119 Fdbus_method_return. 12119 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
12120 (Fdbus_unregister_object): Move to dbus.el. 12120 [MAC_OSX] (init_mac_osx_environment): Initialize it.
12121 (Fdbus_call_method, Fdbus_method_return_internal) 12121 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
12122 (Fdbus_send_signal): Improve debug messages. 12122 when used on child processes.
12123 12123
121242008-01-20 Martin Rudalics <rudalics@gmx.at> 121242008-01-21 Michael Albinus <michael.albinus@gmx.de>
12125 12125
12126 * undo.c (undo_inhibit_record_point): New variable. 12126 * dbusbind.c (Fdbus_method_return_internal): Rename from
12127 (syms_of_undo): Initialize it. 12127 Fdbus_method_return.
12128 (record_point): Don't record point when undo_inhibit_record_point 12128 (Fdbus_unregister_object): Move to dbus.el.
12129 is set. 12129 (Fdbus_call_method, Fdbus_method_return_internal)
12130 12130 (Fdbus_send_signal): Improve debug messages.
121312008-01-19 Stefan Monnier <monnier@iro.umontreal.ca> 12131
12132 121322008-01-20 Martin Rudalics <rudalics@gmx.at>
12133 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name. 12133
12134 12134 * undo.c (undo_inhibit_record_point): New variable.
12135 * xdisp.c (Qauto_hscroll_mode): New var. 12135 (syms_of_undo): Initialize it.
12136 (syms_of_xdisp): Initialize it. 12136 (record_point): Don't record point when undo_inhibit_record_point
12137 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each 12137 is set.
12138 window's buffer. 12138
12139 (hscroll_windows): Don't check automatic_hscrolling_p here. 121392008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
12140 12140
12141 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and 12141 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
12142 vscroll if we're setting window-buffer to the value it already has. 12142
12143 12143 * xdisp.c (Qauto_hscroll_mode): New var.
121442008-01-18 Dan Nicolaescu <dann@ics.uci.edu> 12144 (syms_of_xdisp): Initialize it.
12145 12145 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
12146 * m/intel386.h: Remove references to XENIX. 12146 window's buffer.
12147 12147 (hscroll_windows): Don't check automatic_hscrolling_p here.
121482008-01-17 Andreas Schwab <schwab@suse.de> 12148
12149 12149 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
12150 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR 12150 vscroll if we're setting window-buffer to the value it already has.
12151 instead of HAVE_X86_64_LIB64_DIR. 12151
12152 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise. 121522008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
12153 12153
121542008-01-17 Glenn Morris <rgm@gnu.org> 12154 * m/intel386.h: Remove references to XENIX.
12155 12155
12156 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according 121562008-01-17 Andreas Schwab <schwab@suse.de>
12157 to HAVE_X86_64_LIB64_DIR. 12157
12158 12158 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
121592008-01-16 Dan Nicolaescu <dann@ics.uci.edu> 12159 instead of HAVE_X86_64_LIB64_DIR.
12160 12160 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
12161 * s/irix3-3.h: 12161
12162 * s/irix4-0.h: 121622008-01-17 Glenn Morris <rgm@gnu.org>
12163 * s/386-ix.h: 12163
12164 * s/domain.h: 12164 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
12165 * s/hpux9-x11r4.h: 12165 to HAVE_X86_64_LIB64_DIR.
12166 * s/hpux9shxr4.h: Remove files for systems no longer supported. 12166
12167 121672008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
12168 * sysdep.c: Remove code containing references to symbols defined 12168
12169 by unsupported systems. 12169 * s/irix3-3.h:
12170 12170 * s/irix4-0.h:
121712008-01-16 Glenn Morris <rgm@gnu.org> 12171 * s/386-ix.h:
12172 12172 * s/domain.h:
12173 * coding.c (select-safe-coding-system-function): Doc fix. 12173 * s/hpux9-x11r4.h:
12174 12174 * s/hpux9shxr4.h: Remove files for systems no longer supported.
121752008-01-15 Glenn Morris <rgm@gnu.org> 12175
12176 12176 * sysdep.c: Remove code containing references to symbols defined
12177 * config.in: Revert 2008-01-13 change: this is a generated file. 12177 by unsupported systems.
12178 12178
121792008-01-13 Tom Tromey <tromey@redhat.com> 121792008-01-16 Glenn Morris <rgm@gnu.org>
12180 12180
12181 * lisp.h: Fix typo. 12181 * coding.c (select-safe-coding-system-function): Doc fix.
12182 12182
121832008-01-13 Dan Nicolaescu <dann@ics.uci.edu> 121832008-01-15 Glenn Morris <rgm@gnu.org>
12184 12184
12185 * m/sequent-ptx.h: 12185 * config.in: Revert 2008-01-13 change: this is a generated file.
12186 * m/sequent.h: 12186
12187 * s/ptx.h: 121872008-01-13 Tom Tromey <tromey@redhat.com>
12188 * s/ptx4-2.h: 12188
12189 * s/ptx4.h: Remove files for systems no longer supported. 12189 * lisp.h: Fix typo.
12190 12190
12191 * callproc.c (Fcall_process): Fix previous change. 121912008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
12192 12192
121932008-01-13 Dan Nicolaescu <dann@ics.uci.edu> 12193 * m/sequent-ptx.h:
12194 12194 * m/sequent.h:
12195 * unexsunos4.c: Remove file, system not supported anymore. 12195 * s/ptx.h:
12196 12196 * s/ptx4-2.h:
12197 * m/mips.h: 12197 * s/ptx4.h: Remove files for systems no longer supported.
12198 * m/intel386.h: 12198
12199 * callproc.c: 12199 * callproc.c (Fcall_process): Fix previous change.
12200 * config.in: 12200
12201 * ecrt0.c: 122012008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
12202 * emacs.c: 12202
12203 * fileio.c: 12203 * unexsunos4.c: Remove file, system not supported anymore.
12204 * frame.c: 12204
12205 * getpagesize.h: 12205 * m/mips.h:
12206 * keyboard.c: 12206 * m/intel386.h:
12207 * lread.c: 12207 * callproc.c:
12208 * process.c: 12208 * config.in:
12209 * puresize.h: 12209 * ecrt0.c:
12210 * sysdep.c: 12210 * emacs.c:
12211 * systty.h: 12211 * fileio.c:
12212 * syswait.h: 12212 * frame.c:
12213 * unexec.c: 12213 * getpagesize.h:
12214 * xdisp.c: 12214 * keyboard.c:
12215 * alloc.c: Remove code containing references to symbols defined by 12215 * lread.c:
12216 unsupported systems. 12216 * process.c:
12217 12217 * puresize.h:
122182008-01-11 Kenichi Handa <handa@ni.aist.go.jp> 12218 * sysdep.c:
12219 12219 * systty.h:
12220 * coding.c (detect_coding_mask): Fix previous change. 12220 * syswait.h:
12221 12221 * unexec.c:
122222008-01-09 Kenichi Handa <handa@ni.aist.go.jp> 12222 * xdisp.c:
12223 12223 * alloc.c: Remove code containing references to symbols defined by
12224 * coding.c (detect_coding_iso2022): New arg 12224 unsupported systems.
12225 latin_extra_code_state. Allow Latin extra codes only 12225
12226 when *latin_extra_code_state is nonzero. 122262008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
12227 (detect_coding_mask): If there is a NULL byte, detect the encoding 12227
12228 as UTF-16 or binary. If Latin extra codes exist, detect the 12228 * coding.c (detect_coding_mask): Fix previous change.
12229 encoding as ISO-2022 only when there's no other proper encoding is 12229
12230 found. 122302008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
12231 12231
122322008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12232 * coding.c (detect_coding_iso2022): New arg
12233 12233 latin_extra_code_state. Allow Latin extra codes only
12234 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of 12234 when *latin_extra_code_state is nonzero.
12235 #ifdef MAC_OS. 12235 (detect_coding_mask): If there is a NULL byte, detect the encoding
12236 12236 as UTF-16 or binary. If Latin extra codes exist, detect the
122372008-01-08 Richard Stallman <rms@gnu.org> 12237 encoding as ISO-2022 only when there's no other proper encoding is
12238 12238 found.
12239 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes. 12239
12240 122402008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
122412008-01-06 Nick Roberts <nickrob@snap.net.nz> 12241
12242 12242 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
12243 * keyboard.c (parse_menu_item): Don't enclose key bindings on 12243 #ifdef MAC_OS.
12244 menu bar in parentheses. 12244
12245 122452008-01-08 Richard Stallman <rms@gnu.org>
122462008-01-06 Dan Nicolaescu <dann@ics.uci.edu> 12246
12247 12247 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
12248 * m/7300.h: 12248
12249 * m/acorn.h: 122492008-01-06 Nick Roberts <nickrob@snap.net.nz>
12250 * m/alliant-2800.h: 12250
12251 * m/alliant.h: 12251 * keyboard.c (parse_menu_item): Don't enclose key bindings on
12252 * m/alliant1.h: 12252 menu bar in parentheses.
12253 * m/alliant4.h: 12253
12254 * m/altos.h: 122542008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
12255 * m/amdahl.h: 12255
12256 * m/apollo.h: 12256 * m/7300.h:
12257 * m/att3b.h: 12257 * m/acorn.h:
12258 * m/aviion-intel.h: 12258 * m/alliant-2800.h:
12259 * m/aviion.h: 12259 * m/alliant.h:
12260 * m/celerity.h: 12260 * m/alliant1.h:
12261 * m/clipper.h: 12261 * m/alliant4.h:
12262 * m/cnvrgnt.h: 12262 * m/altos.h:
12263 * m/convex.h: 12263 * m/amdahl.h:
12264 * m/cydra5.h: 12264 * m/apollo.h:
12265 * m/delta88k.h: 12265 * m/att3b.h:
12266 * m/dpx2.h: 12266 * m/aviion-intel.h:
12267 * m/dual.h: 12267 * m/aviion.h:
12268 * m/elxsi.h: 12268 * m/celerity.h:
12269 * m/f301.h: 12269 * m/clipper.h:
12270 * m/gould-np1.h: 12270 * m/cnvrgnt.h:
12271 * m/gould.h: 12271 * m/convex.h:
12272 * m/i860.h: 12272 * m/cydra5.h:
12273 * m/ibmps2-aix.h: 12273 * m/delta88k.h:
12274 * m/ibmrt-aix.h: 12274 * m/dpx2.h:
12275 * m/ibmrt.h: 12275 * m/dual.h:
12276 * m/irist.h: 12276 * m/elxsi.h:
12277 * m/is386.h: 12277 * m/f301.h:
12278 * m/isi-ov.h: 12278 * m/gould-np1.h:
12279 * m/mega68.h: 12279 * m/gould.h:
12280 * m/mg1.h: 12280 * m/i860.h:
12281 * m/news-r6.h: 12281 * m/ibmps2-aix.h:
12282 * m/news-risc.h: 12282 * m/ibmrt-aix.h:
12283 * m/news.h: 12283 * m/ibmrt.h:
12284 * m/nh3000.h: 12284 * m/irist.h:
12285 * m/nh4000.h: 12285 * m/is386.h:
12286 * m/ns16000.h: 12286 * m/isi-ov.h:
12287 * m/ns32000.h: 12287 * m/mega68.h:
12288 * m/nu.h: 12288 * m/mg1.h:
12289 * m/orion.h: 12289 * m/news-r6.h:
12290 * m/orion105.h: 12290 * m/news-risc.h:
12291 * m/paragon.h: 12291 * m/news.h:
12292 * m/pfa50.h: 12292 * m/nh3000.h:
12293 * m/plexus.h: 12293 * m/nh4000.h:
12294 * m/pyramid.h: 12294 * m/ns16000.h:
12295 * m/pyrmips.h: 12295 * m/ns32000.h:
12296 * m/sh3el.h: 12296 * m/nu.h:
12297 * m/sps7.h: 12297 * m/orion.h:
12298 * m/sr2k.h: 12298 * m/orion105.h:
12299 * m/stride.h: 12299 * m/paragon.h:
12300 * m/sun1.h: 12300 * m/pfa50.h:
12301 * m/sun2.h: 12301 * m/plexus.h:
12302 * m/sun3-68881.h: 12302 * m/pyramid.h:
12303 * m/sun3-fpa.h: 12303 * m/pyrmips.h:
12304 * m/sun3-soft.h: 12304 * m/sh3el.h:
12305 * m/sun3.h: 12305 * m/sps7.h:
12306 * m/sun386.h: 12306 * m/sr2k.h:
12307 * m/symmetry.h: 12307 * m/stride.h:
12308 * m/tad68k.h: 12308 * m/sun1.h:
12309 * m/tahoe.h: 12309 * m/sun2.h:
12310 * m/targon31.h: 12310 * m/sun3-68881.h:
12311 * m/tek4300.h: 12311 * m/sun3-fpa.h:
12312 * m/tekxd88.h: 12312 * m/sun3-soft.h:
12313 * m/tower32.h: 12313 * m/sun3.h:
12314 * m/tower32v3.h: 12314 * m/sun386.h:
12315 * m/ustation.h: 12315 * m/symmetry.h:
12316 * m/wicat.h: 12316 * m/tad68k.h:
12317 * m/xps100.h: 12317 * m/tahoe.h:
12318 * s/cxux.h: 12318 * m/targon31.h:
12319 * s/cxux7.h: 12319 * m/tek4300.h:
12320 * s/dgux.h: 12320 * m/tekxd88.h:
12321 * s/dgux4.h: 12321 * m/tower32.h:
12322 * s/dgux5-4-3.h: 12322 * m/tower32v3.h:
12323 * s/dgux5-4r2.h: 12323 * m/ustation.h:
12324 * s/esix.h: 12324 * m/wicat.h:
12325 * s/esix5r4.h: 12325 * m/xps100.h:
12326 * s/hiuxmpp.h: 12326 * s/cxux.h:
12327 * s/hiuxwe2.h: 12327 * s/cxux7.h:
12328 * s/iris3-5.h: 12328 * s/dgux.h:
12329 * s/iris3-6.h: 12329 * s/dgux4.h:
12330 * s/isc2-2.h: 12330 * s/dgux5-4-3.h:
12331 * s/isc3-0.h: 12331 * s/dgux5-4r2.h:
12332 * s/isc4-0.h: 12332 * s/esix.h:
12333 * s/isc4-1.h: 12333 * s/esix5r4.h:
12334 * s/newsos5.h: 12334 * s/hiuxmpp.h:
12335 * s/newsos6.h: 12335 * s/hiuxwe2.h:
12336 * s/osf1.h: 12336 * s/iris3-5.h:
12337 * s/osf5-0.h: 12337 * s/iris3-6.h:
12338 * s/riscix1-1.h: 12338 * s/isc2-2.h:
12339 * s/riscix12.h: 12339 * s/isc3-0.h:
12340 * s/sco4.h: 12340 * s/isc4-0.h:
12341 * s/sco5.h: 12341 * s/isc4-1.h:
12342 * s/sunos4-0.h: 12342 * s/newsos5.h:
12343 * s/sunos4-1.h: 12343 * s/newsos6.h:
12344 * s/sunos413.h: 12344 * s/osf1.h:
12345 * s/sunos4shr.h: 12345 * s/osf5-0.h:
12346 * s/umax.h: 12346 * s/riscix1-1.h:
12347 * s/unipl5-2.h: 12347 * s/riscix12.h:
12348 * s/xenix.h: 12348 * s/sco4.h:
12349 * cxux-crt0.s: 12349 * s/sco5.h:
12350 * unexapollo.c: 12350 * s/sunos4-0.h:
12351 * unexconvex.c: 12351 * s/sunos4-1.h:
12352 * unexenix.c: 12352 * s/sunos413.h:
12353 * unexsni.c: Remove files for systems no longer supported. 12353 * s/sunos4shr.h:
12354 12354 * s/umax.h:
12355 * m/intel386.h: Remove references to unsupported systems. 12355 * s/unipl5-2.h:
12356 12356 * s/xenix.h:
12357 * w32.c (get_emacs_configuration): Remove reference to i860. 12357 * cxux-crt0.s:
12358 12358 * unexapollo.c:
12359 * sysdep.c: Remove dead code. 12359 * unexconvex.c:
12360 12360 * unexenix.c:
123612008-01-05 Dan Nicolaescu <dann@ics.uci.edu> 12361 * unexsni.c: Remove files for systems no longer supported.
12362 12362
12363 * s/rtu.h: 12363 * m/intel386.h: Remove references to unsupported systems.
12364 * m/masscomp.h: Remove files. Platform is obsolete. 12364
12365 12365 * w32.c (get_emacs_configuration): Remove reference to i860.
123662008-01-04 Michael Albinus <michael.albinus@gmx.de> 12366
12367 12367 * sysdep.c: Remove dead code.
12368 * dbusbind.c (Fdbus_method_return): New function. 12368
12369 (xd_read_message): Add the serial number to the event. 123692008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
12370 (Fdbus_register_method): Activate the function. 12370
12371 12371 * s/rtu.h:
123722008-01-03 Stefan Monnier <monnier@iro.umontreal.ca> 12372 * m/masscomp.h: Remove files. Platform is obsolete.
12373 12373
12374 * keyboard.c (read_key_sequence): Fix typo. 123742008-01-04 Michael Albinus <michael.albinus@gmx.de>
12375 12375
123762008-01-03 Michael Albinus <michael.albinus@gmx.de> 12376 * dbusbind.c (Fdbus_method_return): New function.
12377 12377 (xd_read_message): Add the serial number to the event.
12378 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE. 12378 (Fdbus_register_method): Activate the function.
12379 (xd_signature, xd_append_arg): Handle element type detection for 12379
12380 empty arrays. 123802008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
12381 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for 12381
12382 SDATA () calls; this must be solved more general. 12382 * keyboard.c (read_key_sequence): Fix typo.
12383 (Fdbus_register_signal): Use SBYTES instead of strlen. 12383
12384 123842008-01-03 Michael Albinus <michael.albinus@gmx.de>
123852008-01-03 Magnus Henoch <magnus@zemdatav> 12385
12386 12386 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
12387 * dbusbind.c (xd_append_arg): Use unsigned char instead of 12387 (xd_signature, xd_append_arg): Handle element type detection for
12388 unsigned int for byte values (necessary for big-endian platform). 12388 empty arrays.
12389 (Fdbus_call_method): Handle the case of no returned arguments. 12389 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
12390 12390 SDATA () calls; this must be solved more general.
123912007-12-31 Tom Tromey <tromey@redhat.com> (tiny change) 12391 (Fdbus_register_signal): Use SBYTES instead of strlen.
12392 12392
12393 * dbusbind.c (xd_read_message): Use non-static input_event struct. 123932008-01-03 Magnus Henoch <magnus@zemdatav>
12394 12394
123952007-12-31 Magnus Henoch <mange@freemail.hu> 12395 * dbusbind.c (xd_append_arg): Use unsigned char instead of
12396 12396 unsigned int for byte values (necessary for big-endian platform).
12397 * dbusbind.c (xd_signature): Signature of variant is just "v". 12397 (Fdbus_call_method): Handle the case of no returned arguments.
12398 12398
123992007-12-30 Michael Albinus <michael.albinus@gmx.de> 123992007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
12400 12400
12401 * dbusbind.c: Fix several errors and compiler warnings. 12401 * dbusbind.c (xd_read_message): Use non-static input_event struct.
12402 Reported by Tom Tromey <tromey@redhat.com>. 12402
12403 (XD_ERROR, XD_DEBUG_MESSAGE) 124032007-12-31 Magnus Henoch <mange@freemail.hu>
12404 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)". 12404
12405 (xd_append_arg): Part for basic D-Bus types rewritten. 12405 * dbusbind.c (xd_signature): Signature of variant is just "v".
12406 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and 12406
12407 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not 124072007-12-30 Michael Albinus <michael.albinus@gmx.de>
12408 appropriate. 12408
12409 (xd_read_message): Return Qnil. Don't signal an error; it is not 12409 * dbusbind.c: Fix several errors and compiler warnings.
12410 useful during event reading. 12410 Reported by Tom Tromey <tromey@redhat.com>.
12411 (Fdbus_register_signal): Signal an error if the check for 12411 (XD_ERROR, XD_DEBUG_MESSAGE)
12412 FUNCTIONP fails. 12412 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
12413 (Fdbus_register_method): New function. The implementation is not 12413 (xd_append_arg): Part for basic D-Bus types rewritten.
12414 complete, the call of the function signals an error therefore. 12414 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
12415 (Fdbus_unregister_object): New function, renamed from 12415 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
12416 Fdbus_unregister_signal. The initial check signals an error, if 12416 appropriate.
12417 the object is not well formed. 12417 (xd_read_message): Return Qnil. Don't signal an error; it is not
12418 12418 useful during event reading.
124192007-12-30 Richard Stallman <rms@gnu.org> 12419 (Fdbus_register_signal): Signal an error if the check for
12420 12420 FUNCTIONP fails.
12421 * textprop.c (get_char_property_and_overlay): 12421 (Fdbus_register_method): New function. The implementation is not
12422 Signal error if POSITION is out of range in a buffer. 12422 complete, the call of the function signals an error therefore.
12423 12423 (Fdbus_unregister_object): New function, renamed from
124242007-12-29 Martin Rudalics <rudalics@gmx.at> 12424 Fdbus_unregister_signal. The initial check signals an error, if
12425 12425 the object is not well formed.
12426 * w32fns.c (Fx_create_frame): Make copy of frame parameters 12426
12427 because the original parameters are in pure storage now. 124272007-12-30 Richard Stallman <rms@gnu.org>
12428 12428
124292007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12429 * textprop.c (get_char_property_and_overlay):
12430 12430 Signal error if POSITION is out of range in a buffer.
12431 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area. 12431
12432 124322007-12-29 Martin Rudalics <rudalics@gmx.at>
124332007-12-22 Eli Zaretskii <eliz@gnu.org> 12433
12434 12434 * w32fns.c (Fx_create_frame): Make copy of frame parameters
12435 * callint.c (syms_of_callint) <command-history>: Add reference to 12435 because the original parameters are in pure storage now.
12436 history-length in the doc string. 12436
12437 124372007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
124382007-12-17 Jason Rumney <jasonr@gnu.org> 12438
12439 12439 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
12440 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned 12440
12441 before passing as wParam. 124412007-12-22 Eli Zaretskii <eliz@gnu.org>
12442 12442
124432007-12-22 Michael Albinus <michael.albinus@gmx.de> 12443 * callint.c (syms_of_callint) <command-history>: Add reference to
12444 12444 history-length in the doc string.
12445 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE, 12445
12446 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64, 124462007-12-17 Jason Rumney <jasonr@gnu.org>
12447 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE. 12447
12448 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit 12448 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
12449 as number. 12449 before passing as wParam.
12450 (Fdbus_call_method): Fix docstring. 12450
12451 124512007-12-22 Michael Albinus <michael.albinus@gmx.de>
124522007-12-21 Michael Albinus <michael.albinus@gmx.de> 12452
12453 12453 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
12454 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE): 12454 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
12455 New macros. 12455 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
12456 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE. 12456 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
12457 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE. 12457 as number.
12458 Simplify. 12458 (Fdbus_call_method): Fix docstring.
12459 (xd_signature): New function. 12459
12460 (xd_append_arg): Compute also signatures. Major rewrite. 124602007-12-21 Michael Albinus <michael.albinus@gmx.de>
12461 (xd_retrieve_arg): Make debug messages friendly. 12461
12462 (Fdbus_call_method, Fdbus_send_signal): Extend docstring. 12462 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
12463 Check for signatures of arguments. 12463 New macros.
12464 12464 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
124652007-12-19 Michael Albinus <michael.albinus@gmx.de> 12465 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
12466 12466 Simplify.
12467 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean) 12467 (xd_signature): New function.
12468 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32) 12468 (xd_append_arg): Compute also signatures. Major rewrite.
12469 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64) 12469 (xd_retrieve_arg): Make debug messages friendly.
12470 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path) 12470 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
12471 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant) 12471 Check for signatures of arguments.
12472 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols. 12472
12473 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro. 124732007-12-19 Michael Albinus <michael.albinus@gmx.de>
12474 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types. 12474
12475 (xd_retrieve_value): Remove. Functionality included in ... 12475 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
12476 (xd_append_arg): New function. 12476 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
12477 (Fdbus_call_method, Fdbus_send_signal): Apply it. 12477 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
12478 12478 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
124792007-12-16 Michael Albinus <michael.albinus@gmx.de> 12479 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
12480 12480 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
12481 * dbusbind.c (top): Include <stdio.h>. 12481 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
12482 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in 12482 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
12483 dbus_message_new_method_call and dbus_message_new_signal. 12483 (xd_retrieve_value): Remove. Functionality included in ...
12484 (Fdbus_register_signal): Rename unique_name to uname. 12484 (xd_append_arg): New function.
12485 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of 12485 (Fdbus_call_method, Fdbus_send_signal): Apply it.
12486 non-existing unique name. Fix typos in matching rule. Return an 12486
12487 object which is useful in Fdbus_unregister_signal. 124872007-12-16 Michael Albinus <michael.albinus@gmx.de>
12488 (Fdbus_unregister_signal): Reimplementation, in order to remove 12488
12489 only the corresponding entry. 12489 * dbusbind.c (top): Include <stdio.h>.
12490 (Vdbus_registered_functions_table): Change the order of entries. 12490 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
12491 Apply these changes in xd_read_message and Fdbus_register_signal. 12491 dbus_message_new_method_call and dbus_message_new_signal.
12492 12492 (Fdbus_register_signal): Rename unique_name to uname.
124932007-12-16 Andreas Schwab <schwab@suse.de> 12493 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
12494 12494 non-existing unique name. Fix typos in matching rule. Return an
12495 * fileio.c (Finsert_file_contents): Fix overflow check to not 12495 object which is useful in Fdbus_unregister_signal.
12496 depend on undefined integer overflow. 12496 (Fdbus_unregister_signal): Reimplementation, in order to remove
12497 12497 only the corresponding entry.
124982007-12-14 Jason Rumney <jasonr@gnu.org> 12498 (Vdbus_registered_functions_table): Change the order of entries.
12499 12499 Apply these changes in xd_read_message and Fdbus_register_signal.
12500 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT 12500
12501 for characters above 127. 125012007-12-16 Andreas Schwab <schwab@suse.de>
12502 12502
125032007-12-13 Jason Rumney <jasonr@gnu.org> 12503 * fileio.c (Finsert_file_contents): Fix overflow check to not
12504 12504 depend on undefined integer overflow.
12505 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check 12505
12506 before dereferencing array. 125062007-12-14 Jason Rumney <jasonr@gnu.org>
12507 (lookup_vk_code): Remove zero comparison. 12507
12508 12508 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
125092007-12-14 Michael Albinus <michael.albinus@gmx.de> 12509 for characters above 127.
12510 12510
12511 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg) 125112007-12-13 Jason Rumney <jasonr@gnu.org>
12512 (Fdbus_call_method, Fdbus_send_signal, xd_read_message): 12512
12513 Use `unsigned int' instead of `uint'. 12513 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
12514 (xd_read_message, Fdbus_register_signal): Split expressions into 12514 before dereferencing array.
12515 multiple lines before operators "&&" and "||", according to the 12515 (lookup_vk_code): Remove zero comparison.
12516 GNU Coding Standards. 12516
12517 125172007-12-14 Michael Albinus <michael.albinus@gmx.de>
125182007-12-14 Eli Zaretskii <eliz@gnu.org> 12518
12519 12519 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
12520 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT. 12520 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
12521 12521 Use `unsigned int' instead of `uint'.
125222007-12-12 Juri Linkov <juri@jurta.org> 12522 (xd_read_message, Fdbus_register_signal): Split expressions into
12523 12523 multiple lines before operators "&&" and "||", according to the
12524 * buffer.c (Frename_buffer): In interactive spec replace 12524 GNU Coding Standards.
12525 `read-buffer' with `read-string' that uses `buffer-name-history' 12525
12526 as history, and the current buffer's name as default. 125262007-12-14 Eli Zaretskii <eliz@gnu.org>
12527 12527
125282007-12-10 Stefan Monnier <monnier@iro.umontreal.ca> 12528 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
12529 12529
12530 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of 125302007-12-12 Juri Linkov <juri@jurta.org>
12531 manipulating the backtrace manually. 12531
12532 (make_lispy_event): Merge the ASCII and MULTIBYTE cases. 12532 * buffer.c (Frename_buffer): In interactive spec replace
12533 (struct backtrace, backtrace_list): Remove. 12533 `read-buffer' with `read-string' that uses `buffer-name-history'
12534 (command_loop_1): Remove dead var `no_direct'. 12534 as history, and the current buffer's name as default.
12535 12535
12536 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also 125362007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
12537 preserve non-built-in buffer-local variables. 12537
12538 (Fkill_all_local_variables): Don't re-create&re-set permanent 12538 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
12539 buffer-local variables. 12539 manipulating the backtrace manually.
12540 12540 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
125412007-12-09 Juri Linkov <juri@jurta.org> 12541 (struct backtrace, backtrace_list): Remove.
12542 12542 (command_loop_1): Remove dead var `no_direct'.
12543 * buffer.c (Frename_buffer): Change interactive spec from "s" to 12543
12544 Lisp code that uses `read-buffer' with current buffer as default. 12544 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
12545 12545 preserve non-built-in buffer-local variables.
125462007-12-08 Michael Albinus <michael.albinus@gmx.de> 12546 (Fkill_all_local_variables): Don't re-create&re-set permanent
12547 12547 buffer-local variables.
12548 * dbusbind.c (xd_read_message): Generate an event for every 12548
12549 registered handler. There might be several handlers registered 125492007-12-09 Juri Linkov <juri@jurta.org>
12550 for the same signal. 12550
12551 (Fdbus_register_signal): Don't overwrite a registration for the 12551 * buffer.c (Frename_buffer): Change interactive spec from "s" to
12552 same signal. Add a new registration if handlers are different. 12552 Lisp code that uses `read-buffer' with current buffer as default.
12553 (Vdbus_registered_functions_table): Rework doc string. 12553
12554 125542007-12-08 Michael Albinus <michael.albinus@gmx.de>
125552007-12-07 Michael Albinus <michael.albinus@gmx.de> 12555
12556 12556 * dbusbind.c (xd_read_message): Generate an event for every
12557 * dbusbind.c (Fdbus_get_unique_name, xd_read_message) 12557 registered handler. There might be several handlers registered
12558 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and 12558 for the same signal.
12559 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths. 12559 (Fdbus_register_signal): Don't overwrite a registration for the
12560 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal): 12560 same signal. Add a new registration if handlers are different.
12561 Unify argument lists. 12561 (Vdbus_registered_functions_table): Rework doc string.
12562 (xd_read_message, Fdbus_register_signal): Reorder and extend event 12562
12563 arguments and hash table keys. Use unique name for service. 125632007-12-07 Michael Albinus <michael.albinus@gmx.de>
12564 (Fdbus_unregister_signal): Remove checks. 12564
12565 (Vdbus_registered_functions_table): Fix doc string. 12565 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
12566 12566 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
125672007-12-05 Magnus Henoch <mange@freemail.hu> 12567 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
12568 12568 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
12569 * process.c (make_process): Initialize pty_flag to 0. 12569 Unify argument lists.
12570 12570 (xd_read_message, Fdbus_register_signal): Reorder and extend event
125712007-12-05 Jason Rumney <jasonr@gnu.org> 12571 arguments and hash table keys. Use unique name for service.
12572 12572 (Fdbus_unregister_signal): Remove checks.
12573 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly 12573 (Vdbus_registered_functions_table): Fix doc string.
12574 specified XBMs. 12574
12575 125752007-12-05 Magnus Henoch <mange@freemail.hu>
125762007-12-05 Richard Stallman <rms@gnu.org> 12576
12577 12577 * process.c (make_process): Initialize pty_flag to 0.
12578 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix. 12578
12579 125792007-12-05 Jason Rumney <jasonr@gnu.org>
125802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12580
12581 12581 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
12582 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]: 12582 specified XBMs.
12583 New variable. 12583
12584 (mac_try_close_socket) [MAC_OSX]: New function. 125842007-12-05 Richard Stallman <rms@gnu.org>
12585 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: 12585
12586 Update cfsockets_for_select. Replace invalid CFRunLoop source. 12586 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
12587 12587
12588 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]: 125882007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12589 Use mac_try_close_socket. 12589
12590 12590 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
125912007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12591 New variable.
12592 12592 (mac_try_close_socket) [MAC_OSX]: New function.
12593 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of 12593 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
12594 reloc_base. 12594 Update cfsockets_for_select. Replace invalid CFRunLoop source.
12595 (copy_dysymtab): Compute relocation base here. 12595
12596 (rebase_reloc_address) [__ppc64__]: New function. 12596 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
12597 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be 12597 Use mac_try_close_socket.
12598 changed. 12598
12599 125992007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
126002007-12-05 Jason Rumney <jasonr@gnu.org> 12600
12601 12601 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
12602 * w32proc.c (sys_spawnve): Quote args with wildcards. 12602 reloc_base.
12603 12603 (copy_dysymtab): Compute relocation base here.
126042007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12604 (rebase_reloc_address) [__ppc64__]: New function.
12605 12605 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
12606 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and 12606 changed.
12607 __objc_* sections. 12607
12608 (unrelocate) [_LP64]: Set relocation base to address of data segment. 126082007-12-05 Jason Rumney <jasonr@gnu.org>
12609 12609
126102007-12-05 Michael Albinus <michael.albinus@gmx.de> 12610 * w32proc.c (sys_spawnve): Quote args with wildcards.
12611 12611
12612 * dbusbind.c (xd_read_message): Return value is a Lisp_Object. 126122007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12613 Move check for Vdbus_registered_functions_table to 12613
12614 xd_read_queued_messages. 12614 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
12615 (xd_read_queued_messages): Protect xd_read_message calls by 12615 __objc_* sections.
12616 internal_condition_case_1. 12616 (unrelocate) [_LP64]: Set relocation base to address of data segment.
12617 12617
126182007-12-04 Michael Albinus <michael.albinus@gmx.de> 126182007-12-05 Michael Albinus <michael.albinus@gmx.de>
12619 12619
12620 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from 12620 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
12621 Qdbus_system_bus and Qdbus_session_bus, respectively. 12621 Move check for Vdbus_registered_functions_table to
12622 (Vdbus_intern_symbols): Remove. 12622 xd_read_queued_messages.
12623 (Vdbus_registered_functions_table): New hash table. 12623 (xd_read_queued_messages): Protect xd_read_message calls by
12624 (XD_SYMBOL_INTERN_SYMBOL): Remove. 12624 internal_condition_case_1.
12625 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal): 12625
12626 Rewrite in order to manage registered functions by hash table 126262007-12-04 Michael Albinus <michael.albinus@gmx.de>
12627 Vdbus_registered_functions_table. 12627
12628 12628 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
126292007-12-03 Jan Djärv <jan.h.d@swipnet.se> 12629 Qdbus_system_bus and Qdbus_session_bus, respectively.
12630 12630 (Vdbus_intern_symbols): Remove.
12631 * xterm.c: Update URL to Window Manager Specification in comment. 12631 (Vdbus_registered_functions_table): New hash table.
12632 12632 (XD_SYMBOL_INTERN_SYMBOL): Remove.
126332007-12-02 Michael Albinus <michael.albinus@gmx.de> 12633 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
12634 12634 Rewrite in order to manage registered functions by hash table
12635 * config.in (HAVE_DBUS): Add. 12635 Vdbus_registered_functions_table.
12636 12636
12637 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined. 126372007-12-03 Jan Djärv <jan.h.d@swipnet.se>
12638 (ALL_CFLAGS): Add ${DBUS_CFLAGS}. 12638
12639 (obj): Add $(DBUS_OBJ). 12639 * xterm.c: Update URL to Window Manager Specification in comment.
12640 (LIBES): Add $(DBUS_LIBS). 12640
12641 (dbusbind.o): New target. 126412007-12-02 Michael Albinus <michael.albinus@gmx.de>
12642 12642
12643 * dbusbind.c: New file. 12643 * config.in (HAVE_DBUS): Add.
12644 12644
12645 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined. 12645 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
12646 12646 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
12647 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS". 12647 (obj): Add $(DBUS_OBJ).
12648 (Qdbus_event): New Lisp symbol. 12648 (LIBES): Add $(DBUS_LIBS).
12649 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT. 12649 (dbusbind.o): New target.
12650 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages. 12650
12651 (keys_of_keyboard ): Define dbus-event. 12651 * dbusbind.c: New file.
12652 12652
12653 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined. 12653 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
12654 12654
126552007-12-01 Richard Stallman <rms@gnu.org> 12655 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
12656 12656 (Qdbus_event): New Lisp symbol.
12657 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix. 12657 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
12658 12658 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
126592007-11-30 Jason Rumney <jasonr@gnu.org> 12659 (keys_of_keyboard ): Define dbus-event.
12660 12660
12661 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window. 12661 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
12662 (w32con_reset_terminal_modes): Clear screen buffer. 12662
12663 (w32_face_attributes): Don't use color indexes that are out of range. 126632007-12-01 Richard Stallman <rms@gnu.org>
12664 Only reverse the default colors. 12664
12665 12665 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
12666 * xfaces.c (map_tty_color, tty_color_name): Remove special case for 12666
12667 WINDOWSNT. 126672007-11-30 Jason Rumney <jasonr@gnu.org>
12668 12668
12669 * w32console.c, w32term.h (vga_stdcolor_name): Remove. 12669 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
12670 12670 (w32con_reset_terminal_modes): Clear screen buffer.
126712007-11-29 Jason Rumney <jasonr@gnu.org> 12671 (w32_face_attributes): Don't use color indexes that are out of range.
12672 12672 Only reverse the default colors.
12673 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined. 12673
12674 (w32_face_attributes): Use Vtty_defined_color_alist to determine 12674 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
12675 if the terminal colors are initialized. 12675 WINDOWSNT.
12676 (unspecified_fg, unspecified_bg): Remove unused declarations. 12676
12677 12677 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
126782007-11-29 Andreas Schwab <schwab@suse.de> 12678
12679 126792007-11-29 Jason Rumney <jasonr@gnu.org>
12680 * keyboard.c (apply_modifiers): Fix typo. 12680
12681 12681 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
126822007-11-29 Richard Stallman <rms@gnu.org> 12682 (w32_face_attributes): Use Vtty_defined_color_alist to determine
12683 12683 if the terminal colors are initialized.
12684 * keymap.c (Fcurrent_local_map): Doc fix. 12684 (unspecified_fg, unspecified_bg): Remove unused declarations.
12685 12685
126862007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change) 126862007-11-29 Andreas Schwab <schwab@suse.de>
12687 12687
12688 * s/gnu-kfreebsd.h: New file. 12688 * keyboard.c (apply_modifiers): Fix typo.
12689 12689
126902007-11-28 Stefan Monnier <monnier@iro.umontreal.ca> 126902007-11-29 Richard Stallman <rms@gnu.org>
12691 12691
12692 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): 12692 * keymap.c (Fcurrent_local_map): Doc fix.
12693 Don't cast redundantly. 12693
12694 126942007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
12695 * keyboard.c (KEY_TO_CHAR): New macro. 12695
12696 (parse_modifiers, apply_modifiers): Accept integer arguments. 12696 * s/gnu-kfreebsd.h: New file.
12697 (read_key_sequence): Use them to unify the "shift->unshift" mapping 12697
12698 for chars and symbol keys. 126982007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
12699 After doing such remapping, apply function-key-map again. 12699
12700 12700 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
127012007-11-27 Dan Nicolaescu <dann@ics.uci.edu> 12701 Don't cast redundantly.
12702 12702
12703 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not 12703 * keyboard.c (KEY_TO_CHAR): New macro.
12704 compiled anymore. 12704 (parse_modifiers, apply_modifiers): Accept integer arguments.
12705 12705 (read_key_sequence): Use them to unify the "shift->unshift" mapping
127062007-11-26 Andreas Schwab <schwab@suse.de> 12706 for chars and symbol keys.
12707 12707 After doing such remapping, apply function-key-map again.
12708 * process.c (list_processes_1): Fix indentation level of the 12708
12709 command column. 127092007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
12710 12710
127112007-11-23 Andreas Schwab <schwab@suse.de> 12711 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
12712 12712 compiled anymore.
12713 * editfns.c (Fformat): Handle %c specially since it requires the 12713
12714 argument to be of type int. 127142007-11-26 Andreas Schwab <schwab@suse.de>
12715 12715
127162007-11-23 Markus Triska <markus.triska@gmx.at> 12716 * process.c (list_processes_1): Fix indentation level of the
12717 12717 command column.
12718 * emacs.c (main): Call init_editfns before init_process, since 12718
12719 init_process sets Vprocess_connection_type depending on OS release. 127192007-11-23 Andreas Schwab <schwab@suse.de>
12720 12720
127212007-11-22 Stefan Monnier <monnier@iro.umontreal.ca> 12721 * editfns.c (Fformat): Handle %c specially since it requires the
12722 12722 argument to be of type int.
12723 * data.c (do_symval_forwarding): Use same code as in find_symbol_value. 12723
12724 (find_symbol_value): Use do_symval_forwarding. 127242007-11-23 Markus Triska <markus.triska@gmx.at>
12725 12725
12726 * data.c (set_internal): Set the value in the `cons-cell' (for 12726 * emacs.c (main): Call init_editfns before init_process, since
12727 Buffer_Local_values) not only for frame-local variables. 12727 init_process sets Vprocess_connection_type depending on OS release.
12728 12728
127292007-11-22 Andreas Schwab <schwab@suse.de> 127292007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
12730 12730
12731 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT 12731 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
12732 values to sprintf. 12732 (find_symbol_value): Use do_symval_forwarding.
12733 * keymap.c (Fsingle_key_description): Likewise. 12733
12734 * print.c (print_object): Likewise. 12734 * data.c (set_internal): Set the value in the `cons-cell' (for
12735 12735 Buffer_Local_values) not only for frame-local variables.
127362007-11-22 Jan Djärv <jan.h.d@swipnet.se> 12736
12737 127372007-11-22 Andreas Schwab <schwab@suse.de>
12738 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if 12738
12739 file for image is nil. 12739 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
12740 12740 values to sprintf.
127412007-11-22 Dan Nicolaescu <dann@ics.uci.edu> 12741 * keymap.c (Fsingle_key_description): Likewise.
12742 12742 * print.c (print_object): Likewise.
12743 * term.c: Include stdarg.h. 12743
12744 (fatal): Implement using varargs. 127442007-11-22 Jan Djärv <jan.h.d@swipnet.se>
12745 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change). 12745
12746 12746 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
127472007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> 12747 file for image is nil.
12748 12748
12749 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field. 127492007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
12750 * data.c (store_symval_forwarding): Get type from buffer_objfwd. 12750
12751 Update call to buffer_slot_type_mismatch. 12751 * term.c: Include stdarg.h.
12752 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove. 12752 (fatal): Implement using varargs.
12753 (buffer_slot_type_mismatch): Update. 12753 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
12754 * buffer.c (buffer_local_types): Remove. 12754
12755 (buffer_slot_type_mismatch): Get the symbol and type as arguments. 127552007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12756 (defvar_per_buffer): Set the type in the buffer_objfwd. 12756
12757 12757 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
127582007-11-21 Jason Rumney <jasonr@gnu.org> 12758 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
12759 12759 Update call to buffer_slot_type_mismatch.
12760 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): 12760 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
12761 CreateFileMapping returns NULL on failure. 12761 (buffer_slot_type_mismatch): Update.
12762 12762 * buffer.c (buffer_local_types): Remove.
127632007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> 12763 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
12764 12764 (defvar_per_buffer): Set the type in the buffer_objfwd.
12765 * search.c (Fset_match_data): Remove the `evaporate' feature. 12765
12766 (unwind_set_match_data): Don't use the `evaporate' feature. 127662007-11-21 Jason Rumney <jasonr@gnu.org>
12767 12767
127682007-11-21 Jason Rumney <jasonr@gnu.org> 12768 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
12769 12769 CreateFileMapping returns NULL on failure.
12770 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type. 12770
12771 127712007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12772 * w32console.c (w32con_write_glyphs): Remove unused variables. 12772
12773 12773 * search.c (Fset_match_data): Remove the `evaporate' feature.
127742007-11-20 Dan Nicolaescu <dann@ics.uci.edu> 12774 (unwind_set_match_data): Don't use the `evaporate' feature.
12775 12775
12776 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor. 127762007-11-21 Jason Rumney <jasonr@gnu.org>
12777 12777
12778 * s/darwin.h (MULTI_KBOARD): Remove. 12778 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
12779 12779
12780 * macfns.c (x_create_tip_frame, Fx_create_frame) 12780 * w32console.c (w32con_write_glyphs): Remove unused variables.
12781 (x_create_tip_frame): Don't deal with MULTI_KBOARD. 12781
12782 127822007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
127832007-11-19 Stefan Monnier <monnier@iro.umontreal.ca> 12783
12784 12784 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
12785 * buffer.c (Fbuffer_local_value): Remove redundant test. 12785
12786 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather 12786 * s/darwin.h (MULTI_KBOARD): Remove.
12787 than in `current-buffer' to match the comment. 12787
12788 Do the swap using swap_in_global_binding. 12788 * macfns.c (x_create_tip_frame, Fx_create_frame)
12789 12789 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
12790 * data.c (store_symval_forwarding, set_internal): 12790
12791 * eval.c (specbind): Remove dead code. 127912007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12792 12792
12793 * coding.c (detect_coding, Fupdate_coding_systems_internal): 12793 * buffer.c (Fbuffer_local_value): Remove redundant test.
12794 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE 12794 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
12795 Since we do not want to see internal Lisp_*fwd objects here. 12795 than in `current-buffer' to match the comment.
12796 12796 Do the swap using swap_in_global_binding.
127972007-11-18 Jan Djärv <jan.h.d@swipnet.se> 12797
12798 12798 * data.c (store_symval_forwarding, set_internal):
12799 * sysdep.c (init_system_name): Use getaddrinfo if available. 12799 * eval.c (specbind): Remove dead code.
12800 12800
12801 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click) 12801 * coding.c (detect_coding, Fupdate_coding_systems_internal):
12802 (x_scroll_bar_note_movement): start, end, with, height in struct 12802 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
12803 scroll_bar are integers and not Lisp_Object, so remove XINT for them. 12803 Since we do not want to see internal Lisp_*fwd objects here.
12804 12804
128052007-11-17 Dan Nicolaescu <dann@ics.uci.edu> 128052007-11-18 Jan Djärv <jan.h.d@swipnet.se>
12806 12806
12807 * puresize.h (BASE_PURESIZE): Increase to 1190000. 12807 * sysdep.c (init_system_name): Use getaddrinfo if available.
12808 12808
128092007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> 12809 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
12810 12810 (x_scroll_bar_note_movement): start, end, with, height in struct
12811 * buffer.h (struct buffer): Move `undo_list' back to before `name'. 12811 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
12812 This undoes Richard's change of 14-Oct-2002. 12812
12813 128132007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
12814 * alloc.c (allocate_other_vector): 12814
12815 * lisp.h (allocate_other_vector): Remove. 12815 * puresize.h (BASE_PURESIZE): Increase to 1190000.
12816 12816
12817 * window.c (struct save_window_data): Move non-lisp data to the end 128172007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
12818 and make it `int' rather than Lisp_Object. 12818
12819 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR. 12819 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
12820 Done wrap/unwrap integer values. 12820 This undoes Richard's change of 14-Oct-2002.
12821 (Fset_window_configuration, compare_window_configurations): 12821
12822 Update use of fields to their new types. 12822 * alloc.c (allocate_other_vector):
12823 12823 * lisp.h (allocate_other_vector): Remove.
12824 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data. 12824
12825 Turn integer fields into `int'. Merge x_window_low and x_window_high. 12825 * window.c (struct save_window_data): Move non-lisp data to the end
12826 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW) 12826 and make it `int' rather than Lisp_Object.
12827 (SET_SCROLL_BAR_X_WINDOW): Remove. 12827 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
12828 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET): 12828 Done wrap/unwrap integer values.
12829 Access the new x_window field directly. 12829 (Fset_window_configuration, compare_window_configurations):
12830 * xterm.c (x_scroll_bar_create): Use a pseudovector. 12830 Update use of fields to their new types.
12831 Don't wrap/unwrap integers into Lisp_Objects. 12831
12832 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click) 12832 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
12833 (x_scroll_bar_report_motion): 12833 Turn integer fields into `int'. Merge x_window_low and x_window_high.
12834 Don't wrap/unwrap integers into Lisp_Objects. 12834 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
12835 (x_term_init): Use SDATA. 12835 (SET_SCROLL_BAR_X_WINDOW): Remove.
12836 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar) 12836 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
12837 (x_scroll_bar_set_handle, x_scroll_bar_remove) 12837 Access the new x_window field directly.
12838 (XTset_vertical_scroll_bar, x_scroll_bar_expose) 12838 * xterm.c (x_scroll_bar_create): Use a pseudovector.
12839 (x_scroll_bar_report_motion, x_scroll_bar_clear): 12839 Don't wrap/unwrap integers into Lisp_Objects.
12840 * xfns.c (x_set_background_color): 12840 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
12841 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb): 12841 (x_scroll_bar_report_motion):
12842 Access the new x_window field directly. 12842 Don't wrap/unwrap integers into Lisp_Objects.
12843 12843 (x_term_init): Use SDATA.
12844 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h. 12844 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
12845 (allocate_pseudovector): Make non-static. 12845 (x_scroll_bar_set_handle, x_scroll_bar_remove)
12846 12846 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
12847 * lisp.h (enum pvec_type): New tag PVEC_OTHER. 12847 (x_scroll_bar_report_motion, x_scroll_bar_clear):
12848 (allocate_pseudovector): Declare. 12848 * xfns.c (x_set_background_color):
12849 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c. 12849 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
12850 12850 Access the new x_window field directly.
128512007-11-15 Andreas Schwab <schwab@suse.de> 12851
12852 12852 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
12853 * editfns.c (Fformat): Correctly format EMACS_INT values. 12853 (allocate_pseudovector): Make non-static.
12854 Also take precision into account when formatting an integer. 12854
12855 12855 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
12856 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration. 12856 (allocate_pseudovector): Declare.
12857 12857 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
128582007-11-15 Stefan Monnier <monnier@iro.umontreal.ca> 12858
12859 128592007-11-15 Andreas Schwab <schwab@suse.de>
12860 * keyboard.c (Fevent_symbol_parse_modifiers): New function. 12860
12861 (syms_of_keyboard): Defsubr it. 12861 * editfns.c (Fformat): Correctly format EMACS_INT values.
12862 12862 Also take precision into account when formatting an integer.
12863 * data.c (swap_in_global_binding): Fix longstanding bug where 12863
12864 store_symval_forwarding was not called with the right second argument, 12864 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
12865 thus causing objfwd-ing from being dropped. 12865
12866 128662007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
128672007-11-14 Juanma Barranquero <lekktu@gmail.com> 12867
12868 12868 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
12869 * macfns.c (Fx_create_frame, Fx_display_pixel_width) 12869 (syms_of_keyboard): Defsubr it.
12870 (Fx_display_pixel_height, Fx_display_planes) 12870
12871 (Fx_display_color_cells, Fx_server_max_request_size) 12871 * data.c (swap_in_global_binding): Fix longstanding bug where
12872 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) 12872 store_symval_forwarding was not called with the right second argument,
12873 (Fx_display_visual_class, Fx_display_save_under): 12873 thus causing objfwd-ing from being dropped.
12874 * w32fns.c (Fx_create_frame, Fx_display_pixel_width) 12874
12875 (Fx_display_pixel_height, Fx_display_planes) 128752007-11-14 Juanma Barranquero <lekktu@gmail.com>
12876 (Fx_display_color_cells, Fx_server_max_request_size) 12876
12877 (Fx_server_vendor, Fx_server_version, Fx_display_screens) 12877 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
12878 (Fx_display_mm_height, Fx_display_mm_width) 12878 (Fx_display_pixel_height, Fx_display_planes)
12879 (Fx_display_backing_store, Fx_display_visual_class) 12879 (Fx_display_color_cells, Fx_server_max_request_size)
12880 (Fw32_select_font, Fx_display_save_under): 12880 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12881 * xfns.c (Fx_create_frame, Fx_display_pixel_width) 12881 (Fx_display_visual_class, Fx_display_save_under):
12882 (Fx_display_pixel_height, Fx_display_planes) 12882 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
12883 (Fx_display_color_cells, Fx_server_max_request_size) 12883 (Fx_display_pixel_height, Fx_display_planes)
12884 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) 12884 (Fx_display_color_cells, Fx_server_max_request_size)
12885 (Fx_display_save_under): Fix typos in docstrings. 12885 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12886 12886 (Fx_display_mm_height, Fx_display_mm_width)
128872007-11-14 Juanma Barranquero <lekktu@gmail.com> 12887 (Fx_display_backing_store, Fx_display_visual_class)
12888 12888 (Fw32_select_font, Fx_display_save_under):
12889 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values 12889 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
12890 corresponding to deleted entries; they are an implementation detail. 12890 (Fx_display_pixel_height, Fx_display_planes)
12891 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): 12891 (Fx_display_color_cells, Fx_server_max_request_size)
12892 Remove variables. 12892 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12893 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames) 12893 (Fx_display_save_under): Fix typos in docstrings.
12894 (w32_pass_multimedia_buttons_to_system, w32_strict_painting) 12894
12895 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class) 128952007-11-14 Juanma Barranquero <lekktu@gmail.com>
12896 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers) 12896
12897 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static. 12897 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
12898 (Fw32_define_rgb_color, Fw32_load_color_file) 12898 corresponding to deleted entries; they are an implementation detail.
12899 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>: 12899 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
12900 Fix typos in docstrings. 12900 Remove variables.
12901 (Fx_server_version): Reflow docstring. 12901 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
12902 (Fw32_shell_execute): Doc fixes. 12902 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
12903 12903 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
129042007-11-13 Juanma Barranquero <lekktu@gmail.com> 12904 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
12905 12905 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
12906 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key 12906 (Fw32_define_rgb_color, Fw32_load_color_file)
12907 if w32_parse_hot_key returned nil. 12907 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
12908 12908 Fix typos in docstrings.
129092007-11-10 Stefan Monnier <monnier@iro.umontreal.ca> 12909 (Fx_server_version): Reflow docstring.
12910 12910 (Fw32_shell_execute): Doc fixes.
12911 * xdisp.c (load_overlay_strings): Fix copy&paste typo. 12911
12912 129122007-11-13 Juanma Barranquero <lekktu@gmail.com>
129132007-11-09 Jason Rumney <jasonr@gnu.org> 12913
12914 12914 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
12915 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define. 12915 if w32_parse_hot_key returned nil.
12916 12916
12917 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT. 129172007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12918 12918
12919 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]: 12919 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
12920 Remove W32_SCROLL_BAR_CLICK_EVENT. 12920
12921 129212007-11-09 Jason Rumney <jasonr@gnu.org>
12922 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise. 12922
12923 Add MULTIMEDIA_KEY_EVENT. 12923 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
12924 12924
12925 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys. 12925 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
12926 (lispy_multimedia_keys) [WINDOWSNT]: New array. 12926
12927 (make_lispy_event) [WINDOWSNT]: Use it to translate 12927 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
12928 MULTIMEDIA_KEY_EVENT. 12928 Remove W32_SCROLL_BAR_CLICK_EVENT.
12929 12929
12930 * w32term.h (WM_APPCOMMAND): Define if not already. 12930 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
12931 (GET_APPCOMMAND_LPARAM): Likewise. 12931 Add MULTIMEDIA_KEY_EVENT.
12932 12932
12933 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from 12933 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
12934 WM_APPCOMMAND. 12934 (lispy_multimedia_keys) [WINDOWSNT]: New array.
12935 12935 (make_lispy_event) [WINDOWSNT]: Use it to translate
12936 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option. 12936 MULTIMEDIA_KEY_EVENT.
12937 (syms_of_w32fns): Export and initialize it. 12937
12938 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket. 12938 * w32term.h (WM_APPCOMMAND): Define if not already.
12939 12939 (GET_APPCOMMAND_LPARAM): Likewise.
129402007-11-09 Chong Yidong <cyd@stupidchicken.com> 12940
12941 12941 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
12942 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE 12942 WM_APPCOMMAND.
12943 twice. 12943
12944 12944 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
12945 * xdisp.c (handle_face_prop): Fix last change. 12945 (syms_of_w32fns): Export and initialize it.
12946 12946 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
129472007-11-09 Richard Stallman <rms@gnu.org> 12947
12948 129482007-11-09 Chong Yidong <cyd@stupidchicken.com>
12949 * xdisp.c (handle_face_prop): Test for strings that came from overlays, 12949
12950 not just for after-strings and before-strings. 12950 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
12951 Call face_for_overlay_string and pass the overlay to it. 12951 twice.
12952 (handle_display_prop): Determine whether property came from an overlay. 12952
12953 Pass OVERLAY arg to handle_single_display_spec. 12953 * xdisp.c (handle_face_prop): Fix last change.
12954 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay. 12954
12955 (load_overlay_strings): Fill in it->string_overlays. 129552007-11-09 Richard Stallman <rms@gnu.org>
12956 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays. 12956
12957 12957 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
12958 * xfaces.c (face_for_overlay_string): Function renamed from 12958 not just for after-strings and before-strings.
12959 face_at_buffer_position_no_overlays, and add arg OVERLAY. 12959 Call face_for_overlay_string and pass the overlay to it.
12960 12960 (handle_display_prop): Determine whether property came from an overlay.
12961 * dispextern.h (struct it): New elt string_overlays. 12961 Pass OVERLAY arg to handle_single_display_spec.
12962 New elt from_overlay, also in stack. 12962 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
12963 Rearrange a few elements. 12963 (load_overlay_strings): Fill in it->string_overlays.
12964 (face_for_overlay_string): Decl renamed from 12964 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
12965 face_at_buffer_position_no_overlays, and add argument. 12965
12966 12966 * xfaces.c (face_for_overlay_string): Function renamed from
129672007-11-09 Richard Stallman <rms@gnu.org> 12967 face_at_buffer_position_no_overlays, and add arg OVERLAY.
12968 12968
12969 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays 12969 * dispextern.h (struct it): New elt string_overlays.
12970 to get the base face for an overlay string. 12970 New elt from_overlay, also in stack.
12971 12971 Rearrange a few elements.
12972 * dispextern.h (face_at_buffer_position_no_overlays): Add decl. 12972 (face_for_overlay_string): Decl renamed from
12973 12973 face_at_buffer_position_no_overlays, and add argument.
12974 * xfaces.c (face_at_buffer_position_no_overlays): New function. 12974
12975 129752007-11-09 Richard Stallman <rms@gnu.org>
12976 * xdisp.c (handle_stop): Move some code out of loop. 12976
12977 12977 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
129782007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12978 to get the base face for an overlay string.
12979 12979
12980 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes): 12980 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
12981 Fix conversion from Lisp object to ATSUFontID. 12981
12982 12982 * xfaces.c (face_at_buffer_position_no_overlays): New function.
129832007-11-09 Jason Rumney <jasonr@gnu.org> 12983
12984 12984 * xdisp.c (handle_stop): Move some code out of loop.
12985 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive. 12985
12986 129862007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
129872007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 12987
12988 12988 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
12989 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge): 12989 Fix conversion from Lisp object to ATSUFontID.
12990 Don't assume regions are aligned to page boundary. 12990
12991 (print_load_command_name): Add LC_UUID if defined. 129912007-11-09 Jason Rumney <jasonr@gnu.org>
12992 12992
129932007-11-09 Richard Stallman <rms@gnu.org> 12993 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
12994 12994
12995 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring. 129952007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12996 12996
129972007-11-07 Jason Rumney <jasonr@gnu.org> 12997 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
12998 12998 Don't assume regions are aligned to page boundary.
12999 * s/windows95.h: Remove. 12999 (print_load_command_name): Add LC_UUID if defined.
13000 13000
130012007-11-06 Jan Djärv <jan.h.d@swipnet.se> 130012007-11-09 Richard Stallman <rms@gnu.org>
13002 13002
13003 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and 13003 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
13004 abort with a message on unhandled store_type values. 13004
13005 130052007-11-07 Jason Rumney <jasonr@gnu.org>
130062007-11-01 Jan Djärv <jan.h.d@swipnet.se> 13006
13007 13007 * s/windows95.h: Remove.
13008 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h: 13008
13009 Remove HAVE_X11R5 and HAVE_X11R4. 130092007-11-06 Jan Djärv <jan.h.d@swipnet.se>
13010 13010
130112007-11-01 Dan Nicolaescu <dann@ics.uci.edu> 13011 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
13012 13012 abort with a message on unhandled store_type values.
13013 * Makefile.in: Remove references to sunfns.c and sunfns.o. 13013
13014 130142007-11-01 Jan Djärv <jan.h.d@swipnet.se>
130152007-11-01 Johan Bockgård <bojohan@gnu.org> 13015
13016 13016 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
13017 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): 13017 Remove HAVE_X11R5 and HAVE_X11R4.
13018 Don't set s->stippled_p here, since it has already been set by 13018
13019 x_set_glyph_string_gc from x_draw_glyph_string. 130192007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
13020 13020
130212007-11-01 Dan Nicolaescu <dann@ics.uci.edu> 13021 * Makefile.in: Remove references to sunfns.c and sunfns.o.
13022 13022
13023 * sunfns.c: Remove file. 130232007-11-01 Johan Bockgård <bojohan@gnu.org>
13024 13024
13025 * m/sun386.h: 13025 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
13026 * m/sun2.h: 13026 Don't set s->stippled_p here, since it has already been set by
13027 * m/sparc.h: Remove Sun windows code. 13027 x_set_glyph_string_gc from x_draw_glyph_string.
13028 13028
130292007-10-31 Stefan Monnier <monnier@iro.umontreal.ca> 130292007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
13030 13030
13031 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard. 13031 * sunfns.c: Remove file.
13032 (init_keyboard): Set current_kboard's window-system to nil. 13032
13033 (tty_read_avail_input): Typo. 13033 * m/sun386.h:
13034 * frame.c (make_initial_frame): Don't initialize the initial_kboard. 13034 * m/sun2.h:
13035 13035 * m/sparc.h: Remove Sun windows code.
130362007-10-31 Dan Nicolaescu <dann@ics.uci.edu> 13036
13037 130372007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
13038 * s/usg5-4.h: 13038
13039 * s/usg5-3.h: 13039 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
13040 * s/ptx.h: 13040 (init_keyboard): Set current_kboard's window-system to nil.
13041 * m/is386.h: 13041 (tty_read_avail_input): Typo.
13042 * m/ibmps2-aix.h: 13042 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
13043 * Makefile.in: Remove all mentions of X10. 13043
13044 130442007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
13045 * dispnew.c (syms_of_display): Don't mention version 10. 13045
13046 13046 * s/usg5-4.h:
130472007-10-28 Juanma Barranquero <lekktu@gmail.com> 13047 * s/usg5-3.h:
13048 13048 * s/ptx.h:
13049 * makefile.w32-in (OBJ1): Remove abbrev.$(O). 13049 * m/is386.h:
13050 ($(BLD)/abbrev.$(O)): Remove. 13050 * m/ibmps2-aix.h:
13051 13051 * Makefile.in: Remove all mentions of X10.
130522007-10-28 Stefan Monnier <monnier@iro.umontreal.ca> 13052
13053 13053 * dispnew.c (syms_of_display): Don't mention version 10.
13054 Rewrite abbrev.c in Elisp. 13054
13055 * image.c (Qcount): Don't declare as extern. 130552007-10-28 Juanma Barranquero <lekktu@gmail.com>
13056 (syms_of_image): Initialize and staticpro `Qcount'. 13056
13057 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions. 13057 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
13058 * emacs.c (main): Don't call syms_of_abbrev. 13058 ($(BLD)/abbrev.$(O)): Remove.
13059 * Makefile.in (obj): Remove abbrev.o. 13059
13060 (abbrev.o): Remove. 130602007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
13061 * abbrev.c: Remove. 13061
13062 13062 Rewrite abbrev.c in Elisp.
130632007-10-26 Martin Rudalics <rudalics@gmx.at> 13063 * image.c (Qcount): Don't declare as extern.
13064 13064 (syms_of_image): Initialize and staticpro `Qcount'.
13065 * window.c (window_min_size_2): Don't count header-line. 13065 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
13066 13066 * emacs.c (main): Don't call syms_of_abbrev.
130672007-10-26 Dan Nicolaescu <dann@ics.uci.edu> 13067 * Makefile.in (obj): Remove abbrev.o.
13068 13068 (abbrev.o): Remove.
13069 * frame.h (struct frame): Move all bit fields after the first bit 13069 * abbrev.c: Remove.
13070 field to take advantage of the available space. Group all the 13070
13071 chars together to reduce wasted space due to padding. 130712007-10-26 Martin Rudalics <rudalics@gmx.at>
13072 13072
130732007-10-26 Juanma Barranquero <lekktu@gmail.com> 13073 * window.c (window_min_size_2): Don't count header-line.
13074 13074
13075 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings. 130752007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
13076 13076
13077 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings) 13077 * frame.h (struct frame): Move all bit fields after the first bit
13078 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block) 13078 field to take advantage of the available space. Group all the
13079 (n_interval_blocks, init_strings, check_string_bytes, check_sblock) 13079 chars together to reduce wasted space due to padding.
13080 (init_float, free_float, n_cons_blocks, init_cons, all_vectors) 13080
13081 (n_vectors, symbol_block, symbol_block_index, symbol_free_list) 130812007-10-26 Juanma Barranquero <lekktu@gmail.com>
13082 (n_symbol_blocks, init_symbol, marker_block, marker_free_list) 13082
13083 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float) 13083 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
13084 (last_marked, mark_object_loop_halt): Make static. 13084
13085 13085 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
13086 * frame.c (syms_of_frame) <delete-frame-functions>: 13086 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
13087 Fix typo in docstring. 13087 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
13088 13088 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
130892007-10-25 Juanma Barranquero <lekktu@gmail.com> 13089 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
13090 13090 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
13091 * w32.c (init_environment): Fix tiny memory leak. 13091 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
13092 (w32_get_resource): Remove unused variable `ok'. 13092 (last_marked, mark_object_loop_halt): Make static.
13093 13093
130942007-10-25 Stefan Monnier <monnier@iro.umontreal.ca> 13094 * frame.c (syms_of_frame) <delete-frame-functions>:
13095 13095 Fix typo in docstring.
13096 Make `window-system' into a keyboard-local variable (rather than 13096
13097 frame-local as done originally by multi-tty). 130972007-10-25 Juanma Barranquero <lekktu@gmail.com>
13098 13098
13099 * keyboard.h (struct kboard): Add Vwindow_system. 13099 * w32.c (init_environment): Fix tiny memory leak.
13100 * keyboard.c (init_kboard): Set a default for Vwindow_system. 13100 (w32_get_resource): Remove unused variable `ok'.
13101 (mark_kboards): Mark Vwindow_system. 13101
13102 131022007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
13103 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local. 13103
13104 (init_display): Don't set the obsolete `window-system' frame-param. 13104 Make `window-system' into a keyboard-local variable (rather than
13105 13105 frame-local as done originally by multi-tty).
13106 * xterm.c (x_term_init): 13106
13107 * w32term.c (w32_create_terminal): 13107 * keyboard.h (struct kboard): Add Vwindow_system.
13108 * term.c (init_tty): Set Vwindow_system. 13108 * keyboard.c (init_kboard): Set a default for Vwindow_system.
13109 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the 13109 (mark_kboards): Mark Vwindow_system.
13110 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system. 13110
13111 13111 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
13112 * xfns.c (Fx_create_frame, x_create_tip_frame): 13112 (init_display): Don't set the obsolete `window-system' frame-param.
13113 * w32fns.c (Fx_create_frame, x_create_tip_frame): 13113
13114 * macfns.c (Fx_create_frame): 13114 * xterm.c (x_term_init):
13115 Don't set the obsolete `window-system' frame-param. 13115 * w32term.c (w32_create_terminal):
13116 13116 * term.c (init_tty): Set Vwindow_system.
13117 * frame.h (Qwindow_system): Remove. 13117 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
13118 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well. 13118 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
13119 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param. 13119
13120 13120 * xfns.c (Fx_create_frame, x_create_tip_frame):
131212007-10-24 Richard Stallman <rms@gnu.org> 13121 * w32fns.c (Fx_create_frame, x_create_tip_frame):
13122 13122 * macfns.c (Fx_create_frame):
13123 * frame.c (x_figure_window_size): For fullscreen case, 13123 Don't set the obsolete `window-system' frame-param.
13124 set USPosition | PPosition without clobbering rest of window_prompting. 13124
13125 13125 * frame.h (Qwindow_system): Remove.
13126 * keyboard.c (Fcurrent_idle_time): Doc fix. 13126 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
13127 13127 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
13128 * print.c (Fwith_output_to_temp_buffer): Doc fix. 13128
13129 131292007-10-24 Richard Stallman <rms@gnu.org>
131302007-10-23 Stefan Monnier <monnier@iro.umontreal.ca> 13130
13131 13131 * frame.c (x_figure_window_size): For fullscreen case,
13132 * process.c (unwind_request_sigio): Only define if __ultrix__. 13132 set USPosition | PPosition without clobbering rest of window_prompting.
13133 13133
13134 * callproc.c (child_setup): Remove spurious *. 13134 * keyboard.c (Fcurrent_idle_time): Doc fix.
13135 13135
13136 * lisp.h (Fget_text_property): Declare. 13136 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13137 (have_menus_p): Declare it here rather than in sys-dep header files. 13137
13138 * macterm.h (have_menus_p): 131382007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
13139 * msdos.h (have_menus_p): 13139
13140 * xterm.h (have_menus_p): Remove. 13140 * process.c (unwind_request_sigio): Only define if __ultrix__.
13141 13141
13142 * data.c (Fmake_variable_buffer_local, Fmake_local_variable) 13142 * callproc.c (child_setup): Remove spurious *.
13143 (Fmake_variable_frame_local): Just check the variable's const-ness 13143
13144 rather than checking nil or t. 13144 * lisp.h (Fget_text_property): Declare.
13145 13145 (have_menus_p): Declare it here rather than in sys-dep header files.
131462007-10-22 Jason Rumney <jasonr@gnu.org> 13146 * macterm.h (have_menus_p):
13147 13147 * msdos.h (have_menus_p):
13148 * w32fns.c: Include math.h. 13148 * xterm.h (have_menus_p): Remove.
13149 (w32_abort): Declaration moved to nt/config.nt. 13149
13150 13150 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13151 * s/ms-w32.h (HAVE_STDLIB_H): Define. 13151 (Fmake_variable_frame_local): Just check the variable's const-ness
13152 (abort): Redefinition moved to nt/config.nt. 13152 rather than checking nil or t.
13153 13153
13154 * m/windowsnt.h: Remove. 131542007-10-22 Jason Rumney <jasonr@gnu.org>
13155 13155
131562007-10-22 Juanma Barranquero <lekktu@gmail.com> 13156 * w32fns.c: Include math.h.
13157 13157 (w32_abort): Declaration moved to nt/config.nt.
13158 * emacs.c (Fdump_emacs): Fix typo in message. 13158
13159 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring. 13159 * s/ms-w32.h (HAVE_STDLIB_H): Define.
13160 <installation-directory>: Reflow docstring. 13160 (abort): Redefinition moved to nt/config.nt.
13161 13161
131622007-10-22 Juri Linkov <juri@jurta.org> 13162 * m/windowsnt.h: Remove.
13163 13163
13164 * minibuf.c: Allow minibuffer default to be a list of default values. 131642007-10-22 Juanma Barranquero <lekktu@gmail.com>
13165 With empty input use the first element of this list as returned default. 13165
13166 (string_to_object) 13166 * emacs.c (Fdump_emacs): Fix typo in message.
13167 (read_minibuf_noninteractive): If defalt is cons, set val to its car. 13167 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
13168 (read_minibuf): If defalt is cons, set histstring to its car. 13168 <installation-directory>: Reflow docstring.
13169 (Fread_string): If default_value is cons, set val to its car. 13169
13170 (Fread_buffer): If def is cons, use its car. 131702007-10-22 Juri Linkov <juri@jurta.org>
13171 (Fcompleting_read): If defalt is cons, set val to its car. 13171
13172 13172 * minibuf.c: Allow minibuffer default to be a list of default values.
131732007-10-21 Michael Albinus <michael.albinus@gmx.de> 13173 With empty input use the first element of this list as returned default.
13174 13174 (string_to_object)
13175 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid. 13175 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
13176 13176 (read_minibuf): If defalt is cons, set histstring to its car.
131772007-10-20 Juanma Barranquero <lekktu@gmail.com> 13177 (Fread_string): If default_value is cons, set val to its car.
13178 13178 (Fread_buffer): If def is cons, use its car.
13179 * doc.c (Fdocumentation): Check for advice in all cases. 13179 (Fcompleting_read): If defalt is cons, set val to its car.
13180 13180
131812007-10-19 Chong Yidong <cyd@stupidchicken.com> 131812007-10-21 Michael Albinus <michael.albinus@gmx.de>
13182 13182
13183 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags. 13183 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
13184 13184
131852007-10-19 Richard Stallman <rms@gnu.org> 131852007-10-20 Juanma Barranquero <lekktu@gmail.com>
13186 13186
13187 * doc.c (Fdocumentation): Check for and handle an advised function. 13187 * doc.c (Fdocumentation): Check for advice in all cases.
13188 13188
131892007-10-19 Juanma Barranquero <lekktu@gmail.com> 131892007-10-19 Chong Yidong <cyd@stupidchicken.com>
13190 13190
13191 * process.c (Fset_process_filter): Doc fix. 13191 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
13192 13192
131932007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> 131932007-10-19 Richard Stallman <rms@gnu.org>
13194 13194
13195 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty 13195 * doc.c (Fdocumentation): Check for and handle an advised function.
13196 which caused key-translation-map to applied repeatedly (thus breaking 13196
13197 double-mode). 131972007-10-19 Juanma Barranquero <lekktu@gmail.com>
13198 13198
131992007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> 13199 * process.c (Fset_process_filter): Doc fix.
13200 13200
13201 * xselect.c (x_own_selection, x_handle_selection_clear) 132012007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
13202 (x_clear_frame_selections): 13202
13203 * w32menu.c (list_of_panes, list_of_items): 13203 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
13204 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list): 13204 which caused key-translation-map to applied repeatedly (thus breaking
13205 * textprop.c (validate_plist, interval_has_all_properties) 13205 double-mode).
13206 (interval_has_some_properties, interval_has_some_properties_list) 13206
13207 (add_properties, text_property_list): 132072007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
13208 * process.c (Fget_buffer_process, list_processes_1, status_notify): 13208
13209 * minibuf.c (Fassoc_string): 13209 * xselect.c (x_own_selection, x_handle_selection_clear)
13210 * macselect.c (x_own_selection, x_clear_frame_selections) 13210 (x_clear_frame_selections):
13211 (Fx_disown_selection_internal): 13211 * w32menu.c (list_of_panes, list_of_items):
13212 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree): 13212 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
13213 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r. 13213 * textprop.c (validate_plist, interval_has_all_properties)
13214 13214 (interval_has_some_properties, interval_has_some_properties_list)
132152007-10-17 Chong Yidong <cyd@stupidchicken.com> 13215 (add_properties, text_property_list):
13216 13216 * process.c (Fget_buffer_process, list_processes_1, status_notify):
13217 * process.c: Link to libs for calling res_init() if available. 13217 * minibuf.c (Fassoc_string):
13218 (Fmake_network_process): Call res_init() before getaddrinfo or 13218 * macselect.c (x_own_selection, x_clear_frame_selections)
13219 gethostbyname, if possible. 13219 (Fx_disown_selection_internal):
13220 13220 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
132212007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> 13221 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
13222 13222
13223 * lread.c (read1): Set pvectype for char_tables. 132232007-10-17 Chong Yidong <cyd@stupidchicken.com>
13224 13224
13225 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY) 13225 * process.c: Link to libs for calling res_init() if available.
13226 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE): 13226 (Fmake_network_process): Call res_init() before getaddrinfo or
13227 Add type checks. 13227 gethostbyname, if possible.
13228 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove. 13228
13229 132292007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
13230 * alloc.c (free_misc): Use XMISCTYPE. 13230
13231 (live_misc_p, gc_sweep): Use Lisp_Misc_Any. 13231 * lread.c (read1): Set pvectype for char_tables.
13232 13232
132332007-10-17 Glenn Morris <rgm@gnu.org> 13233 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
13234 13234 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
13235 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object. 13235 Add type checks.
13236 (syms_of_minibuf): Add Qcompletion_ignore_case. 13236 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
13237 * dired.c (Qcompletion_ignore_case): Change to external. 13237
13238 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case. 13238 * alloc.c (free_misc): Use XMISCTYPE.
13239 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object. 13239 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
13240 (Fread_file_name): Use it rather than intern'ing. 13240
13241 132412007-10-17 Glenn Morris <rgm@gnu.org>
13242 * coding.c (Qcompletion_ignore_case): New external Lisp_Object. 13242
13243 (Fread_coding_system): Ignore case of user input. 13243 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
13244 13244 (syms_of_minibuf): Add Qcompletion_ignore_case.
132452007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 13245 * dired.c (Qcompletion_ignore_case): Change to external.
13246 13246 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
13247 * xdisp.c (handle_display_prop): Ignore display specs after 13247 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
13248 replacing one when string text is being replaced. 13248 (Fread_file_name): Use it rather than intern'ing.
13249 (handle_single_display_spec): Pretend as if characters with display 13249
13250 property haven't been consumed only when buffer text is being replaced. 13250 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
13251 13251 (Fread_coding_system): Ignore case of user input.
132522007-10-16 Stefan Monnier <monnier@iro.umontreal.ca> 13252
13253 132532007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13254 * xfns.c (Fx_create_frame, Fx_display_list): 13254
13255 * window.c (window_fixed_size_p, enlarge_window) 13255 * xdisp.c (handle_display_prop): Ignore display specs after
13256 (shrink_window_lowest_first): 13256 replacing one when string text is being replaced.
13257 * macterm.c (init_font_name_table): 13257 (handle_single_display_spec): Pretend as if characters with display
13258 * macfns.c (Fx_create_frame, Fx_display_list): 13258 property haven't been consumed only when buffer text is being replaced.
13259 * lread.c (close_load_descs): 13259
13260 * keyboard.c (read_char_x_menu_prompt): 132602007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
13261 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent): 13261
13262 * coding.c (code_convert_region_unwind): Test the type of an object 13262 * xfns.c (Fx_create_frame, Fx_display_list):
13263 rather than just !NILP before extracting data from it. 13263 * window.c (window_fixed_size_p, enlarge_window)
13264 13264 (shrink_window_lowest_first):
13265 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors. 13265 * macterm.c (init_font_name_table):
13266 13266 * macfns.c (Fx_create_frame, Fx_display_list):
13267 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value. 13267 * lread.c (close_load_descs):
13268 (XMISCANY): New macro. 13268 * keyboard.c (read_char_x_menu_prompt):
13269 (XMISCTYPE): Use it. 13269 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
13270 (struct Lisp_Misc_Any): New type. 13270 * coding.c (code_convert_region_unwind): Test the type of an object
13271 (union Lisp_Misc): Use it. 13271 rather than just !NILP before extracting data from it.
13272 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit. 13272
13273 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding) 13273 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
13274 (find_symbol_value, set_internal, default_value, Fset_default) 13274
13275 (Fmake_variable_buffer_local, Fmake_local_variable) 13275 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
13276 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p) 13276 (XMISCANY): New macro.
13277 (Flocal_variable_if_set_p, Fvariable_binding_locus): 13277 (XMISCTYPE): Use it.
13278 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set. 13278 (struct Lisp_Misc_Any): New type.
13279 * alloc.c (allocate_buffer): Set the size and tag. 13279 (union Lisp_Misc): Use it.
13280 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p): 13280 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
13281 Use XMISCANY. 13281 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
13282 (die): Follow the GNU convention for error messages. 13282 (find_symbol_value, set_internal, default_value, Fset_default)
13283 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set. 13283 (Fmake_variable_buffer_local, Fmake_local_variable)
13284 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the 13284 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
13285 tag any more. 13285 (Flocal_variable_if_set_p, Fvariable_binding_locus):
13286 (set_buffer_internal_1): 13286 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
13287 * frame.c (store_frame_param): 13287 * alloc.c (allocate_buffer): Set the size and tag.
13288 * eval.c (specbind): 13288 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
13289 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP. 13289 Use XMISCANY.
13290 13290 (die): Follow the GNU convention for error messages.
13291 * doc.c (Fsnarf_documentation): Simplify. 13291 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
13292 13292 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
132932007-10-14 Juanma Barranquero <lekktu@gmail.com> 13293 tag any more.
13294 13294 (set_buffer_internal_1):
13295 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static. 13295 * frame.c (store_frame_param):
13296 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring. 13296 * eval.c (specbind):
13297 13297 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
132982007-10-14 Stefan Monnier <monnier@iro.umontreal.ca> 13298
13299 13299 * doc.c (Fsnarf_documentation): Simplify.
13300 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag. 13300
13301 133012007-10-14 Juanma Barranquero <lekktu@gmail.com>
133022007-10-14 Juanma Barranquero <lekktu@gmail.com> 13302
13303 13303 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
13304 * eval.c (do_autoload): Don't save autoloads. 13304 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
13305 13305
13306 * data.c (Ffset): Save autoload of the function being set. 133062007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
13307 13307
133082007-10-07 John Paul Wallington <jpw@pobox.com> 13308 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
13309 13309
13310 * xfns.c (x_create_tip_frame): Set the `display-type' frame 133102007-10-14 Juanma Barranquero <lekktu@gmail.com>
13311 parameter before setting up faces. 13311
13312 13312 * eval.c (do_autoload): Don't save autoloads.
133132007-10-13 Eli Zaretskii <eliz@gnu.org> 13313
13314 13314 * data.c (Ffset): Save autoload of the function being set.
13315 * ccl.c (Fregister_code_conversion_map): 13315
13316 * keyboard.c (append_tool_bar_item): Reformat last change. 133162007-10-07 John Paul Wallington <jpw@pobox.com>
13317 13317
13318 * lisp.h (eabs): Rename from `abs'. All callers changed. 13318 * xfns.c (x_create_tip_frame): Set the `display-type' frame
13319 13319 parameter before setting up faces.
133202007-10-05 Dmitry Antipov <dmantipov@yandex.ru> 13320
13321 133212007-10-13 Eli Zaretskii <eliz@gnu.org>
13322 * buffer.c (add_overlay_mod_hooklist): 13322
13323 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map): 13323 * ccl.c (Fregister_code_conversion_map):
13324 * fontset.c (make_fontset): 13324 * keyboard.c (append_tool_bar_item): Reformat last change.
13325 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item) 13325
13326 (append_tool_bar_item): 13326 * lisp.h (eabs): Rename from `abs'. All callers changed.
13327 * macmenu.c (grow_menu_items): 13327
13328 * w32menu.c (grow_menu_items): 133282007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
13329 * xmenu.c (grow_menu_items): Use larger_vector. 13329
13330 13330 * buffer.c (add_overlay_mod_hooklist):
133312007-10-13 Eli Zaretskii <eliz@gnu.org> 13331 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
13332 13332 * fontset.c (make_fontset):
13333 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving 13333 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
13334 selected frame'' on MSDOS). 13334 (append_tool_bar_item):
13335 13335 * macmenu.c (grow_menu_items):
133362007-10-12 Martin Rudalics <rudalics@gmx.at> 13336 * w32menu.c (grow_menu_items):
13337 13337 * xmenu.c (grow_menu_items): Use larger_vector.
13338 * frame.c (Qexplicit_name): New variable. 13338
13339 (x_report_frame_params): Report it in parameter alist. 133392007-10-13 Eli Zaretskii <eliz@gnu.org>
13340 (syms_of_frame): Intern and staticpro it. 13340
13341 13341 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
133422007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change) 13342 selected frame'' on MSDOS).
13343 13343
13344 * macfns.c (x_create_tip_frame): Set terminal for frame. 133442007-10-12 Martin Rudalics <rudalics@gmx.at>
13345 13345
133462007-10-10 Stefan Monnier <monnier@iro.umontreal.ca> 13346 * frame.c (Qexplicit_name): New variable.
13347 13347 (x_report_frame_params): Report it in parameter alist.
13348 * frame.c (Qenvironment): Remove. 13348 (syms_of_frame): Intern and staticpro it.
13349 (syms_of_frame) <Qenvironment>: Don't initialize. 13349
13350 (Fdelete_frame): Don't treat the `environment' param specially. 133502007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
13351 * frame.h (Qenvironment): Don't declare. 13351
13352 * callproc.c (set_initial_environment): Don't set unused frame param. 13352 * macfns.c (x_create_tip_frame): Set terminal for frame.
13353 13353
13354 * frame.c (Fframe_with_environment): Remove. 133542007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
13355 (syms_of_frame) <Sframe_with_environment>: Don't declare. 13355
13356 13356 * frame.c (Qenvironment): Remove.
13357 * lisp.h (Fframe_with_environment): Don't declare. 13357 (syms_of_frame) <Qenvironment>: Don't initialize.
13358 13358 (Fdelete_frame): Don't treat the `environment' param specially.
133592007-10-10 Juanma Barranquero <lekktu@gmail.com> 13359 * frame.h (Qenvironment): Don't declare.
13360 13360 * callproc.c (set_initial_environment): Don't set unused frame param.
13361 * indent.c (indent_tabs_mode, last_known_column) 13361
13362 (last_known_column_modified): Make static. 13362 * frame.c (Fframe_with_environment): Remove.
13363 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring. 13363 (syms_of_frame) <Sframe_with_environment>: Don't declare.
13364 13364
133652007-10-10 Katsumi Yamaoka <yamaoka@jpl.org> 13365 * lisp.h (Fframe_with_environment): Don't declare.
13366 13366
13367 * puresize.h (BASE_PURESIZE): Increase to 1170000. 133672007-10-10 Juanma Barranquero <lekktu@gmail.com>
13368 13368
133692007-10-09 Jason Rumney <jasonr@gnu.org> 13369 * indent.c (indent_tabs_mode, last_known_column)
13370 13370 (last_known_column_modified): Make static.
13371 * w32term.c (x_set_window_size): Disable code that attempts to tell 13371 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
13372 Lisp code about a size change before it actually happens. 13372
13373 133732007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
133742007-10-09 Richard Stallman <rms@gnu.org> 13374
13375 13375 * puresize.h (BASE_PURESIZE): Increase to 1170000.
13376 * xdisp.c (handle_invisible_prop): After setting up an ellipsis, 13376
13377 return HANDLED_RETURN. 133772007-10-09 Jason Rumney <jasonr@gnu.org>
13378 13378
133792007-10-08 Martin Rudalics <rudalics@gmx.at> 13379 * w32term.c (x_set_window_size): Disable code that attempts to tell
13380 13380 Lisp code about a size change before it actually happens.
13381 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input 13381
13382 when there's an unread command event. 133822007-10-09 Richard Stallman <rms@gnu.org>
13383 13383
13384 * frame.c (focus_follows_mouse): Move here from frame.el to allow 13384 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
13385 window autoselection act appropriately when leaving selected frame. 13385 return HANDLED_RETURN.
13386 (syms_of_frame): Initialize focus_follows_mouse. 13386
13387 * frame.h (focus_follows_mouse): Extern it. 133872007-10-08 Martin Rudalics <rudalics@gmx.at>
13388 * macterm.c (XTread_socket): When focus_follows_mouse is nil 13388
13389 make SELECT_WINDOW_EVENT only if we don't leave the selected frame. 13389 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
13390 * msdos.c (dos_rawgetc): Likewise. 13390 when there's an unread command event.
13391 * w32term.c (w32_read_socket): Likewise. 13391
13392 * xterm.c (handle_one_xevent): Likewise. 13392 * frame.c (focus_follows_mouse): Move here from frame.el to allow
13393 * xdisp.c (syms_of_xdisp): In doc-string of 13393 window autoselection act appropriately when leaving selected frame.
13394 mouse-autoselect-window mention focus-follows-mouse. 13394 (syms_of_frame): Initialize focus_follows_mouse.
13395 13395 * frame.h (focus_follows_mouse): Extern it.
133962007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 13396 * macterm.c (XTread_socket): When focus_follows_mouse is nil
13397 13397 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
13398 * macterm.c (mac_load_query_font): Fix missing return value. 13398 * msdos.c (dos_rawgetc): Likewise.
13399 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap): 13399 * w32term.c (w32_read_socket): Likewise.
13400 Add BLOCK_INPUT. 13400 * xterm.c (handle_one_xevent): Likewise.
13401 13401 * xdisp.c (syms_of_xdisp): In doc-string of
134022007-10-08 Richard Stallman <rms@gnu.org> 13402 mouse-autoselect-window mention focus-follows-mouse.
13403 13403
13404 * xdisp.c (get_window_cursor_type): Implement documented behavior 134042007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13405 for cursor-in-non-selected-windows = t. 13405
13406 13406 * macterm.c (mac_load_query_font): Fix missing return value.
134072007-10-08 Jason Rumney <jasonr@gnu.org> 13407 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
13408 13408 Add BLOCK_INPUT.
13409 * w32.c (w32_get_resource): Always close registry keys. 13409
13410 134102007-10-08 Richard Stallman <rms@gnu.org>
134112007-10-08 Jason Rumney <jasonr@gnu.org> 13411
13412 13412 * xdisp.c (get_window_cursor_type): Implement documented behavior
13413 * makefile.w32-in (LIBS): Add COMCTL32. 13413 for cursor-in-non-selected-windows = t.
13414 13414
13415 * w32fns.c (globals_of_w32fns): Init common controls. 134152007-10-08 Jason Rumney <jasonr@gnu.org>
13416 13416
134172007-10-08 Richard Stallman <rms@gnu.org> 13417 * w32.c (w32_get_resource): Always close registry keys.
13418 13418
13419 * image.c (our_memory_buffer): Rename from omfib_buffer. 134192007-10-08 Jason Rumney <jasonr@gnu.org>
13420 13420
134212007-10-08 Richard Stallman <rms@gnu.org> 13421 * makefile.w32-in (LIBS): Add COMCTL32.
13422 13422
13423 * buffer.c (Foverlays_at): Doc fix. 13423 * w32fns.c (globals_of_w32fns): Init common controls.
13424 13424
134252007-10-08 Stefan Monnier <monnier@iro.umontreal.ca> 134252007-10-08 Richard Stallman <rms@gnu.org>
13426 13426
13427 * fns.c (Fplist_put): Preserve uneven tail data. 13427 * image.c (our_memory_buffer): Rename from omfib_buffer.
13428 13428
134292007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) 134292007-10-08 Richard Stallman <rms@gnu.org>
13430 13430
13431 * termhooks.h (enum event_kind): Remove trailing comma. 13431 * buffer.c (Foverlays_at): Doc fix.
13432 13432
13433 * frame.h (enum): Remove trailing comma. 134332007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
13434 13434
134352007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change) 13435 * fns.c (Fplist_put): Preserve uneven tail data.
13436 13436
13437 * w32proc.c (delete_child): Don't terminate threads of zombies. 134372007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
13438 13438
134392007-10-08 Martin Rudalics <rudalics@gmx.at> 13439 * termhooks.h (enum event_kind): Remove trailing comma.
13440 13440
13441 * keyboard.h (struct kboard): New elt Vlast_repeatable_command. 13441 * frame.h (enum): Remove trailing comma.
13442 13442
13443 * keyboard.c (syms_of_keyboard): Set up new Lisp variable 134432007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
13444 last-repeatable-command. 13444
13445 (init_kboard): Initialize Vlast_repeatable_command. 13445 * w32proc.c (delete_child): Don't terminate threads of zombies.
13446 (command_loop_1): Set it to real_this_command unless that was 13446
13447 bound to an input event. 134472007-10-08 Martin Rudalics <rudalics@gmx.at>
13448 (mark_kboards): Mark it. 13448
13449 13449 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
134502007-10-08 Richard Stallman <rms@gnu.org> 13450
13451 13451 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
13452 * eval.c (condition-case): Doc fix. 13452 last-repeatable-command.
13453 13453 (init_kboard): Initialize Vlast_repeatable_command.
134542007-10-08 Masatake YAMATO <jet@gyve.org> 13454 (command_loop_1): Set it to real_this_command unless that was
13455 13455 bound to an input event.
13456 * xfaces.c (tty_supports_face_attributes_p): Fix code 13456 (mark_kboards): Mark it.
13457 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code 13457
13458 was copied and not edited. 134582007-10-08 Richard Stallman <rms@gnu.org>
13459 13459
134602007-10-09 Stefan Monnier <monnier@iro.umontreal.ca> 13460 * eval.c (condition-case): Doc fix.
13461 13461
13462 Add new `input-decode-map' keymap and use it for terminal 134622007-10-08 Masatake YAMATO <jet@gyve.org>
13463 escape sequences. 13463
13464 * keyboard.h (struct kboard): Add Vinput_decode_map. 13464 * xfaces.c (tty_supports_face_attributes_p): Fix code
13465 Remove Vlocal_key_translation_map. 13465 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
13466 * keyboard.c (read_key_sequence): Add support for input-decode-map. 13466 was copied and not edited.
13467 (init_kboard): Init input-decode-map. 13467
13468 Replace local-key-translation-map back with key-translation-map. 134682007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
13469 (syms_of_keyboard): Declare input-decode-map. 13469
13470 Remove local-key-translation-map. Update docstrings. 13470 Add new `input-decode-map' keymap and use it for terminal
13471 (mark_kboards): Mark Vinput_decode_map. 13471 escape sequences.
13472 Don't mark Vlocal_key_translation_map. 13472 * keyboard.h (struct kboard): Add Vinput_decode_map.
13473 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map. 13473 Remove Vlocal_key_translation_map.
13474 Replace local-key-translation-map back with key-translation-map. 13474 * keyboard.c (read_key_sequence): Add support for input-decode-map.
13475 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN): 13475 (init_kboard): Init input-decode-map.
13476 Bind in input-decode-map rather than function-key-map. 13476 Replace local-key-translation-map back with key-translation-map.
13477 13477 (syms_of_keyboard): Declare input-decode-map.
13478 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore. 13478 Remove local-key-translation-map. Update docstrings.
13479 This was made redundant by the previous introduction of XSETPVECTYPE. 13479 (mark_kboards): Mark Vinput_decode_map.
13480 13480 Don't mark Vlocal_key_translation_map.
134812007-10-09 Richard Stallman <rms@gnu.org> 13481 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
13482 13482 Replace local-key-translation-map back with key-translation-map.
13483 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record. 13483 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
13484 13484 Bind in input-decode-map rather than function-key-map.
134852007-09-29 Richard Stallman <rms@gnu.org> 13485
13486 13486 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
13487 * eval.c (internal_condition_case_2, internal_condition_case_1) 13487 This was made redundant by the previous introduction of XSETPVECTYPE.
13488 (internal_condition_case): Reenable abort if x_catching_errors () 13488
13489 to see if that really happens and why. 134892007-10-09 Richard Stallman <rms@gnu.org>
13490 13490
134912007-10-06 Andreas Schwab <schwab@suse.de> 13491 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
13492 13492
13493 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync. 134932007-09-29 Richard Stallman <rms@gnu.org>
13494 13494
134952007-10-04 Juanma Barranquero <lekktu@gmail.com> 13495 * eval.c (internal_condition_case_2, internal_condition_case_1)
13496 13496 (internal_condition_case): Reenable abort if x_catching_errors ()
13497 * image.c (syms_of_image) <image-types>: Fix typo in docstring. 13497 to see if that really happens and why.
13498 13498
134992007-10-03 Stefan Monnier <monnier@iro.umontreal.ca> 134992007-10-06 Andreas Schwab <schwab@suse.de>
13500 13500
13501 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used. 13501 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
13502 13502
135032007-10-02 Stefan Monnier <monnier@iro.umontreal.ca> 135032007-10-04 Juanma Barranquero <lekktu@gmail.com>
13504 13504
13505 * window.h (struct window): 13505 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
13506 * window.c (struct save_window_data, struct saved_window): 13506
13507 * termhooks.h (struct terminal): 135072007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
13508 * process.h (struct Lisp_Process): 13508
13509 * frame.h (struct frame): 13509 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
13510 * buffer.h (struct buffer): 13510
13511 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table) 135112007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
13512 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table): 13512
13513 The size field of (pseudo)vectors is now unsigned. 13513 * window.h (struct window):
13514 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly. 13514 * window.c (struct save_window_data, struct saved_window):
13515 13515 * termhooks.h (struct terminal):
13516 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end. 13516 * process.h (struct Lisp_Process):
13517 Turn `count' into an integer. 13517 * frame.h (struct frame):
13518 13518 * buffer.h (struct buffer):
13519 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear) 13519 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
13520 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count): 13520 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
13521 * print.c (print_object) <HASH_TABLE_P>: `count' is an int. 13521 The size field of (pseudo)vectors is now unsigned.
13522 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR. 13522 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
13523 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike. 13523
13524 13524 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
13525 * alloc.c (allocate_pseudovector): New fun. 13525 Turn `count' into an integer.
13526 (ALLOCATE_PSEUDOVECTOR): New macro. 13526
13527 (allocate_window, allocate_terminal, allocate_frame) 13527 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
13528 (allocate_process): Use it. 13528 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
13529 (mark_vectorlike): New function. 13529 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
13530 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it. 13530 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
13531 (mark_terminals): Use it. 13531 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
13532 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table) 13532
13533 (Fmake_byte_code): Use XSETPVECTYPE. 13533 * alloc.c (allocate_pseudovector): New fun.
13534 13534 (ALLOCATE_PSEUDOVECTOR): New macro.
13535 * frame.c (Fframe_parameters): Minor simplification. 13535 (allocate_window, allocate_terminal, allocate_frame)
13536 13536 (allocate_process): Use it.
13537 * insdel.c (adjust_markers_for_insert): Generalize assertion checks. 13537 (mark_vectorlike): New function.
13538 13538 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
13539 * marker.c (Fmarker_buffer): Make test for odd case into a failure. 13539 (mark_terminals): Use it.
13540 13540 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
13541 * buffer.c (Fget_buffer_create, init_buffer_once): 13541 (Fmake_byte_code): Use XSETPVECTYPE.
13542 * lread.c (defsubr): 13542
13543 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE. 13543 * frame.c (Fframe_parameters): Minor simplification.
13544 13544
13545 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be 13545 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
13546 defined differently in the m/*.h files. 13546
13547 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking. 13547 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
13548 (XSETPVECTYPE): New macro. 13548
13549 (XSETPSEUDOVECTOR): Use it. 13549 * buffer.c (Fget_buffer_create, init_buffer_once):
13550 13550 * lread.c (defsubr):
13551 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c. 13551 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
13552 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. 13552
13553 13553 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
13554 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): 13554 defined differently in the m/*.h files.
13555 * lread.c (defvar_per_buffer): 13555 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
13556 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c. 13556 (XSETPVECTYPE): New macro.
13557 13557 (XSETPSEUDOVECTOR): Use it.
13558 * window.c (candidate_window_p): Only consider as visible frames that 13558
13559 are on the same terminal. 13559 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
13560 13560 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
13561 * m/ibms390x.h (MARKBIT): Remove unused macro. 13561
13562 13562 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
135632007-10-01 Juanma Barranquero <lekktu@gmail.com> 13563 * lread.c (defvar_per_buffer):
13564 13564 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
13565 * lread.c (Fload): Fix typo in docstring. 13565
13566 13566 * window.c (candidate_window_p): Only consider as visible frames that
135672007-10-01 Michaël Cadilhac <michael@cadilhac.name> 13567 are on the same terminal.
13568 13568
13569 * floatfns.c (Fexpt): Manually check for overflows, so that a power 13569 * m/ibms390x.h (MARKBIT): Remove unused macro.
13570 of a non-zero value can't yield zero. 13570
13571 135712007-10-01 Juanma Barranquero <lekktu@gmail.com>
135722007-09-29 Stefan Monnier <monnier@iro.umontreal.ca> 13572
13573 13573 * lread.c (Fload): Fix typo in docstring.
13574 * term.c (term_clear_mouse_face, term_mouse_highlight) 13574
13575 (tty_write_glyphs_with_face): Only define is HAVE_GPM. 135752007-10-01 Michaël Cadilhac <michael@cadilhac.name>
13576 13576
13577 * print.c (safe_debug_print): Use XHASH. 13577 * floatfns.c (Fexpt): Manually check for overflows, so that a power
13578 13578 of a non-zero value can't yield zero.
13579 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of 13579
13580 Lisp elements such as tags. 135802007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
13581 (XHASH): New macro. 13581
13582 (EQ): Use it. 13582 * term.c (term_clear_mouse_face, term_mouse_highlight)
13583 (SREF, SSET, STRING_COPYIN): Use SDATA. 13583 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
13584 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove. 13584
13585 13585 * print.c (safe_debug_print): Use XHASH.
13586 * alloc.c (mark_terminal): Remove left-over declaration. 13586
13587 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE. 13587 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
13588 (allocate_vectorlike): Remove type argument. Adjust callers. 13588 Lisp elements such as tags.
13589 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p): 13589 (XHASH): New macro.
13590 Only handle the one remaining MEM_TYPE_VECTORLIKE. 13590 (EQ): Use it.
13591 13591 (SREF, SSET, STRING_COPYIN): Use SDATA.
13592 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros 13592 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
13593 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used. 13593
13594 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc) 13594 * alloc.c (mark_terminal): Remove left-over declaration.
13595 (lisp_align_free, make_interval, allocate_string, allocate_string_data) 13595 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
13596 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc): 13596 (allocate_vectorlike): Remove type argument. Adjust callers.
13597 Use them. 13597 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
13598 13598 Only handle the one remaining MEM_TYPE_VECTORLIKE.
13599 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs): 13599
13600 Don't let signal handlers run when a GC is freed but not yet NULL'ed. 13600 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
13601 (x_free_gc): Remove BLOCK_INPUT since it's now redundant. 13601 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
13602 13602 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
136032007-09-28 Dan Nicolaescu <dann@ics.uci.edu> 13603 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
13604 13604 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
13605 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not 13605 Use them.
13606 loaded by default. 13606
13607 13607 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
136082007-09-28 Stefan Monnier <monnier@iro.umontreal.ca> 13608 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
13609 13609 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
13610 * term.c (Fgpm_mouse_start): Don't signal an error if already activated 13610
13611 on this tty. 136112007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13612 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty. 13612
13613 13613 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
13614 * term.c (mouse_face_window): Rename from Qmouse_face_window. 13614 loaded by default.
13615 Update all users. 13615
13616 (handle_one_term_event): Use Gpm_DrawPointer. 136162007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
13617 (Fgpm_mouse_start): Rename from Fterm_open_connection. 13617
13618 Signal errors instead of returning nil. Always return nil. 13618 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
13619 (Fgpm_mouse_stop): Rename from Fterm_close_connection. 13619 on this tty.
13620 Make it a noop if gpm-mouse was not activated. 13620 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
13621 (syms_of_term): Update names. 13621
13622 13622 * term.c (mouse_face_window): Rename from Qmouse_face_window.
136232007-09-27 Stefan Monnier <monnier@iro.umontreal.ca> 13623 Update all users.
13624 13624 (handle_one_term_event): Use Gpm_DrawPointer.
13625 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static. 13625 (Fgpm_mouse_start): Rename from Fterm_open_connection.
13626 (init_sys_modes): Check that gpm_tty is the current tty. 13626 Signal errors instead of returning nil. Always return nil.
13627 13627 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
13628 * alloc.c (allocate_terminal): Set the vector size to only count the 13628 Make it a noop if gpm-mouse was not activated.
13629 lisp fields. Initialize those to nil. 13629 (syms_of_term): Update names.
13630 (mark_object): Don't treat terminals specially. 13630
13631 (mark_terminal): Remove. 136312007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
13632 (mark_terminals): Use mark_object instead. 13632
13633 13633 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
13634 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by 13634 (init_sys_modes): Check that gpm_tty is the current tty.
13635 the GC to the beginning. 13635
13636 13636 * alloc.c (allocate_terminal): Set the vector size to only count the
13637 * indent.h: 13637 lisp fields. Initialize those to nil.
13638 * indent.c: Use EMACS_INT for ints coming from Elisp data. 13638 (mark_object): Don't treat terminals specially.
13639 13639 (mark_terminal): Remove.
13640 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions. 13640 (mark_terminals): Use mark_object instead.
13641 13641
136422007-09-25 Jason Rumney <jasonr@gnu.org> 13642 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
13643 13643 the GC to the beginning.
13644 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT. 13644
13645 13645 * indent.h:
13646 * w32console.c (create_w32cons_output): Remove. 13646 * indent.c: Use EMACS_INT for ints coming from Elisp data.
13647 13647
13648 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also. 13648 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
13649 13649
13650 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook. 136502007-09-25 Jason Rumney <jasonr@gnu.org>
13651 (reset_sys_modes): Use reset_terminal_modes_hook. 13651
13652 13652 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
136532007-09-24 Stefan Monnier <monnier@iro.umontreal.ca> 13653
13654 13654 * w32console.c (create_w32cons_output): Remove.
13655 * eval.c (do_autoload): Don't output any message. 13655
13656 13656 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
136572007-09-24 Juri Linkov <juri@jurta.org> 13657
13658 13658 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
13659 * emacs.c (standard_args): Change priority of "--no-splash" 13659 (reset_sys_modes): Use reset_terminal_modes_hook.
13660 from 40 to 3. Add "--no-desktop" with the same priority. 13660
13661 136612007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
136622007-09-23 Dmitry Antipov <dmantipov@yandex.ru> 13662
13663 13663 * eval.c (do_autoload): Don't output any message.
13664 * alloc.c (gc_sweep): Check cons cell mark bits word by word 13664
13665 and optimize the case where they are all 1. 136652007-09-24 Juri Linkov <juri@jurta.org>
13666 13666
136672007-09-23 Johannes Weiner <hannes@saeurebad.de> 13667 * emacs.c (standard_args): Change priority of "--no-splash"
13668 13668 from 40 to 3. Add "--no-desktop" with the same priority.
13669 * lisp.h (abs): Define if not defined. 13669
13670 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c: 136702007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
13671 Don't define `abs', since it's defined in lisp.h. 13671
13672 13672 * alloc.c (gc_sweep): Check cons cell mark bits word by word
136732007-09-22 Eli Zaretskii <eliz@gnu.org> 13673 and optimize the case where they are all 1.
13674 13674
13675 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows. 136752007-09-23 Johannes Weiner <hannes@saeurebad.de>
13676 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero. 13676
13677 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty) 13677 * lisp.h (abs): Define if not defined.
13678 (init_tty): Use DEV_TTY instead of "/dev/tty". 13678 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
13679 [WINDOWSNT]: No need to protect from NAME arg being null. 13679 Don't define `abs', since it's defined in lisp.h.
13680 13680
136812007-09-21 Dan Nicolaescu <dann@ics.uci.edu> 136812007-09-22 Eli Zaretskii <eliz@gnu.org>
13682 13682
13683 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning 13683 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
13684 up the tty state. 13684 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
13685 13685 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
136862007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> 13686 (init_tty): Use DEV_TTY instead of "/dev/tty".
13687 13687 [WINDOWSNT]: No need to protect from NAME arg being null.
13688 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead. 13688
13689 (gpm_tty): Change its type. 136892007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13690 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead. 13690
13691 (gpm_tty): Change its type and initialize it. 13691 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
13692 (Fterm_open_connection): Check the frame is indeed a tty. 13692 up the tty state.
13693 Use the new gpm_tty. 13693
13694 (Fterm_close_connection): Use the new gpm_tty. 136942007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13695 * keyboard.c (tty_read_avail_input): Use the new gpm_tty. 13695
13696 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty. 13696 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
13697 13697 (gpm_tty): Change its type.
136982007-09-21 Juanma Barranquero <lekktu@gmail.com> 13698 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
13699 13699 (gpm_tty): Change its type and initialize it.
13700 * w32term.c (x_draw_glyph_string): Use strike_through_color, not 13700 (Fterm_open_connection): Check the frame is indeed a tty.
13701 underline_color, to draw strike-through. 13701 Use the new gpm_tty.
13702 13702 (Fterm_close_connection): Use the new gpm_tty.
137032007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> 13703 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
13704 13704 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
13705 * lisp.h (allocate_terminal): Declare. 13705
13706 137062007-09-21 Juanma Barranquero <lekktu@gmail.com>
13707 * window.c (candidate_window_p): Consider frames that are being placed 13707
13708 by the user as somewhere between visible and iconified. 13708 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
13709 (window_loop): Prefer windows on the current frame. 13709 underline_color, to draw strike-through.
13710 (Fselect_window): Move the use of select-frame to the beginning so we 13710
13711 can just delegate all the work (it'll call us back anyway). 137112007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13712 13712
13713 * frame.c (Qdisplay_environment_variable): 13713 * lisp.h (allocate_terminal): Declare.
13714 * frame.h (Qdisplay_environment_variable): Delete. 13714
13715 13715 * window.c (candidate_window_p): Consider frames that are being placed
13716 * .gdbinit (xbacktrace): Print the arg's address rather than the value 13716 by the user as somewhere between visible and iconified.
13717 of the first arg, since that value may be a union. 13717 (window_loop): Prefer windows on the current frame.
13718 13718 (Fselect_window): Move the use of select-frame to the beginning so we
13719 * callproc.c (child_setup, getenv_internal): Use the frame's `display' 13719 can just delegate all the work (it'll call us back anyway).
13720 parameter rather than Qdisplay_environment_variable. If all else 13720
13721 fails, look for DISPLAY in initial-environment. 13721 * frame.c (Qdisplay_environment_variable):
13722 13722 * frame.h (Qdisplay_environment_variable): Delete.
137232007-09-21 Glenn Morris <rgm@gnu.org> 13723
13724 13724 * .gdbinit (xbacktrace): Print the arg's address rather than the value
13725 * Makefile.in (emacstool): Remove target. 13725 of the first arg, since that value may be a union.
13726 (lisp, shortlisp): Remove termdev.elc. 13726
13727 13727 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
137282007-09-21 Markus Triska <markus.triska@gmx.at> 13728 parameter rather than Qdisplay_environment_variable. If all else
13729 13729 fails, look for DISPLAY in initial-environment.
13730 * xterm.c (x_delete_display): Compile session management conditionally. 13730
13731 137312007-09-21 Glenn Morris <rgm@gnu.org>
137322007-09-20 Stefan Monnier <monnier@iro.umontreal.ca> 13732
13733 13733 * Makefile.in (emacstool): Remove target.
13734 * callproc.c (getenv_internal_1): New function. 13734 (lisp, shortlisp): Remove termdev.elc.
13735 (getenv_internal): Use it. 13735
13736 (Fgetenv_internal): Use it. Accept an env-list as optional arg. 137362007-09-21 Markus Triska <markus.triska@gmx.at>
13737 13737
13738 * terminal.c (get_terminal): Don't accept ints to represent terminals. 13738 * xterm.c (x_delete_display): Compile session management conditionally.
13739 (Fterminal_name, Fterminal_parameters, Fterminal_parameter) 13739
13740 (Fset_terminal_parameter): Work with dead terminals as well. 137402007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
13741 (Fmodify_terminal_parameters): Remove. 13741
13742 13742 * callproc.c (getenv_internal_1): New function.
13743 * terminal.c (get_terminal): Handle terminals. 13743 (getenv_internal): Use it.
13744 Make sure the terminal returned is live. 13744 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
13745 (create_terminal): Use allocate_terminal. 13745
13746 (mark_terminals): Move to alloc.c. 13746 * terminal.c (get_terminal): Don't accept ints to represent terminals.
13747 (delete_terminal): Use terminal->name as liveness status. 13747 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
13748 NULL out fields after freeing their contents. 13748 (Fset_terminal_parameter): Work with dead terminals as well.
13749 Don't deallocate the object. 13749 (Fmodify_terminal_parameters): Remove.
13750 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object 13750
13751 rather than an int. 13751 * terminal.c (get_terminal): Handle terminals.
13752 (Fterminal_live_p): Accept non-integer arguments. 13752 Make sure the terminal returned is live.
13753 (Fterminal_list): Return terminal objects rather than an ints. 13753 (create_terminal): Use allocate_terminal.
13754 13754 (mark_terminals): Move to alloc.c.
13755 * alloc.c (enum mem_type): New member for `terminal' objects. 13755 (delete_terminal): Use terminal->name as liveness status.
13756 (allocate_terminal): New function. 13756 NULL out fields after freeing their contents.
13757 (mark_maybe_pointer, valid_lisp_object_p, mark_object): 13757 Don't deallocate the object.
13758 Handle terminals. 13758 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
13759 (mark_terminal): New fun. 13759 rather than an int.
13760 (mark_terminals): Move from terminal.c. 13760 (Fterminal_live_p): Accept non-integer arguments.
13761 13761 (Fterminal_list): Return terminal objects rather than an ints.
13762 * term.c (get_tty_terminal): Don't treat output_initial specially. 13762
13763 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints. 13763 * alloc.c (enum mem_type): New member for `terminal' objects.
13764 (delete_tty): Use terminal->name as liveness status. 13764 (allocate_terminal): New function.
13765 13765 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
13766 * termhooks.h (struct terminal): Make it into a pseudovector. 13766 Handle terminals.
13767 Remove `deleted' replaced by checking `name's nullness. 13767 (mark_terminal): New fun.
13768 13768 (mark_terminals): Move from terminal.c.
13769 * print.c (print_object): Handle terminals. 13769
13770 13770 * term.c (get_tty_terminal): Don't treat output_initial specially.
13771 * lisp.h (enum pvec_type): New `terminal' pseudovector. 13771 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
13772 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros. 13772 (delete_tty): Use terminal->name as liveness status.
13773 13773
13774 * frame.c (make_terminal_frame): 13774 * termhooks.h (struct terminal): Make it into a pseudovector.
13775 * keyboard.c (tty_read_avail_input): 13775 Remove `deleted' replaced by checking `name's nullness.
13776 * w32term.c (x_delete_terminal): 13776
13777 * xfns.c (Fx_create_frame, x_create_tip_frame): 13777 * print.c (print_object): Handle terminals.
13778 * xterm.c (x_delete_terminal): Use terminal->name as liveness status. 13778
13779 13779 * lisp.h (enum pvec_type): New `terminal' pseudovector.
137802007-09-20 Glenn Morris <rgm@gnu.org> 13780 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
13781 13781
13782 * process.c (Fmake_network_process): Doc fix. 13782 * frame.c (make_terminal_frame):
13783 13783 * keyboard.c (tty_read_avail_input):
137842007-09-19 Jason Rumney <jasonr@gnu.org> 13784 * w32term.c (x_delete_terminal):
13785 13785 * xfns.c (Fx_create_frame, x_create_tip_frame):
13786 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument. 13786 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
13787 13787
137882007-09-19 Michaël Cadilhac <michael@cadilhac.name> 137882007-09-20 Glenn Morris <rgm@gnu.org>
13789 13789
13790 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form): 13790 * process.c (Fmake_network_process): Doc fix.
13791 Fix a C warning regarding variable constness. 13791
13792 137922007-09-19 Jason Rumney <jasonr@gnu.org>
13793 * xterm.c (handle_one_xevent): Fix a C warning. 13793
13794 13794 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
137952007-09-18 Jason Rumney <jasonr@gnu.org> 13795
13796 137962007-09-19 Michaël Cadilhac <michael@cadilhac.name>
13797 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame. 13797
13798 13798 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
137992007-09-17 Jan Djärv <jan.h.d@swipnet.se> 13799 Fix a C warning regarding variable constness.
13800 13800
13801 * gtkutil.c (gdpy_def): New variable. 13801 * xterm.c (handle_one_xevent): Fix a C warning.
13802 (xg_initialize): Initialize gdpy_def. 13802
13803 (xg_display_close): If no other display exists, set gdpy_def to a 138032007-09-18 Jason Rumney <jasonr@gnu.org>
13804 new connection. 13804
13805 13805 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
138062007-09-16 Jan Djärv <jan.h.d@swipnet.se> 13806
13807 138072007-09-17 Jan Djärv <jan.h.d@swipnet.se>
13808 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf 13808
13809 when we have no file name for the icon. 13809 * gtkutil.c (gdpy_def): New variable.
13810 (xg_tool_bar_expose_callback): Remove. 13810 (xg_initialize): Initialize gdpy_def.
13811 (xg_create_tool_bar): Don't connect expose signal to 13811 (xg_display_close): If no other display exists, set gdpy_def to a
13812 xg_tool_bar_expose_callback. 13812 new connection.
13813 (xg_get_file_with_chooser): Move GCPRO1 after declarations. 13813
13814 138142007-09-16 Jan Djärv <jan.h.d@swipnet.se>
138152007-09-16 Andreas Schwab <schwab@suse.de> 13815
13816 13816 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
13817 * alloc.c (reset_malloc_hooks): Set the hooks to the previous 13817 when we have no file name for the icon.
13818 values instead of zapping them. 13818 (xg_tool_bar_expose_callback): Remove.
13819 13819 (xg_create_tool_bar): Don't connect expose signal to
138202007-09-14 Glenn Morris <rgm@gnu.org> 13820 xg_tool_bar_expose_callback.
13821 13821 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
13822 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope. 13822
13823 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope. 138232007-09-16 Andreas Schwab <schwab@suse.de>
13824 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file 13824
13825 scope and rename to omfib_buffer for clarity. 13825 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
13826 (gif_load) <interlace_start, interlace_increment>: Move to file scope. 13826 values instead of zapping them.
13827 13827
138282007-09-14 Kenichi Handa <handa@m17n.org> 138282007-09-14 Glenn Morris <rgm@gnu.org>
13829 13829
13830 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. 13830 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
13831 13831 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
138322007-09-13 Jason Rumney <jasonr@gnu.org> 13832 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
13833 13833 scope and rename to omfib_buffer for clarity.
13834 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument. 13834 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
13835 13835
13836 * w32term.c (w32_term_init): Pass rif to w32_init_fringe. 138362007-09-14 Kenichi Handa <handa@m17n.org>
13837 13837
13838 * macterm.c (mac_initialize): Don't call mac_init_fringe here. 13838 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
13839 (mac_term_init): Call here instead, passing rif. 13839
13840 138402007-09-13 Jason Rumney <jasonr@gnu.org>
138412007-09-13 Glenn Morris <rgm@gnu.org> 13841
13842 13842 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
13843 * s/hpux.h: No longer define `static' as nothing. 13843
13844 13844 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
138452007-09-13 Johan Bockgård <bojohan@gnu.org> 13845
13846 13846 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
13847 * callint.c (Fcall_interactively): Remove unused var `fun'. 13847 (mac_term_init): Call here instead, passing rif.
13848 13848
138492007-09-12 Romain Francoise <romain@orebokech.com> 138492007-09-13 Glenn Morris <rgm@gnu.org>
13850 13850
13851 * window.c (prefer_window_split_horizontally, display_buffer): 13851 * s/hpux.h: No longer define `static' as nothing.
13852 Revert 2007-09-08 change. 13852
13853 138532007-09-13 Johan Bockgård <bojohan@gnu.org>
138542007-09-12 Glenn Morris <rgm@gnu.org> 13854
13855 13855 * callint.c (Fcall_interactively): Remove unused var `fun'.
13856 * alloca.c: Remove file. 13856
13857 * Makefile.in (alloca): Do not undef. 138572007-09-12 Romain Francoise <romain@orebokech.com>
13858 (allocaobj, alloca.o): Remove. 13858
13859 (otherobj): Remove allocaobj. 13859 * window.c (prefer_window_split_horizontally, display_buffer):
13860 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block. 13860 Revert 2007-09-08 change.
13861 * regex.c (C_ALLOCA): Remove all references and code that was only 13861
13862 used when this was defined. 138622007-09-12 Glenn Morris <rgm@gnu.org>
13863 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block. 13863
13864 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block. 13864 * alloca.c: Remove file.
13865 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this. 13865 * Makefile.in (alloca): Do not undef.
13866 13866 (allocaobj, alloca.o): Remove.
13867 * Makefile.in (SOURCES, unlock, relock): Delete. 13867 (otherobj): Remove allocaobj.
13868 13868 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
13869 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity. 13869 * regex.c (C_ALLOCA): Remove all references and code that was only
13870 (menu_grab_callback): All uses changed. 13870 used when this was defined.
13871 13871 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
13872 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity. 13872 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
13873 (x_reply_selection_request): All uses changed. 13873 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
13874 13874
138752007-09-11 Stefan Monnier <monnier@iro.umontreal.ca> 13875 * Makefile.in (SOURCES, unlock, relock): Delete.
13876 13876
13877 * lread.c (load_warn_old_style_backquotes): Change message to look 13877 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
13878 better when it appears in the middle of byte-compiler messages. 13878 (menu_grab_callback): All uses changed.
13879 13879
138802007-09-10 Dan Nicolaescu <dann@ics.uci.edu> 13880 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
13881 13881 (x_reply_selection_request): All uses changed.
13882 * s/darwin.h (MULTI_KBOARD): Only define for Carbon. 13882
13883 138832007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13884 * xterm.c (x_create_terminal): Add comment. 13884
13885 13885 * lread.c (load_warn_old_style_backquotes): Change message to look
13886 * term.c (clear_tty_hooks, set_tty_hooks): Add comments. 13886 better when it appears in the middle of byte-compiler messages.
13887 13887
138882007-09-10 Richard Stallman <rms@gnu.org> 138882007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
13889 13889
13890 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME. 13890 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
13891 13891
138922007-09-10 Michaël Cadilhac <michael@cadilhac.name> 13892 * xterm.c (x_create_terminal): Add comment.
13893 13893
13894 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'. 13894 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
13895 (DEFUN): Document `intspec', use it instead of `prompt'. 13895
13896 138962007-09-10 Richard Stallman <rms@gnu.org>
13897 * eval.c (Fcommandp): Change `->prompt' to `->intspec'. 13897
13898 13898 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
13899 * data.c (Finteractive_form): If the interactive specification starts 13899
13900 with a `(', use it as a Lisp form. 139002007-09-10 Michaël Cadilhac <michael@cadilhac.name>
13901 13901
13902 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file 13902 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
13903 name and file modes. 13903 (DEFUN): Document `intspec', use it instead of `prompt'.
13904 13904
13905 * callint.c (Fcall_interactively): Comment fixes. 13905 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
13906 13906
139072007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> 13907 * data.c (Finteractive_form): If the interactive specification starts
13908 13908 with a `(', use it as a Lisp form.
13909 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs 13909
13910 and compiled functions. 13910 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
13911 13911 name and file modes.
139122007-09-08 Fredrik Axelsson <f.axelsson@gmail.com> 13912
13913 13913 * callint.c (Fcall_interactively): Comment fixes.
13914 * window.c (prefer_window_split_horizontally): New variable. 13914
13915 (display_buffer): Consider splitting window horizontally depending 139152007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13916 on prefer_window_split_horizontally. 13916
13917 13917 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
139182007-09-08 Eli Zaretskii <eliz@gnu.org> 13918 and compiled functions.
13919 13919
13920 * sysdep.c [WINDOWSNT]: Don't include sysselect.h. 139202007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
13921 13921
139222007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> 13922 * window.c (prefer_window_split_horizontally): New variable.
13923 13923 (display_buffer): Consider splitting window horizontally depending
13924 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking. 13924 on prefer_window_split_horizontally.
13925 13925
13926 * frame.c (x_set_frame_parameters): Check number is positive before 139262007-09-08 Eli Zaretskii <eliz@gnu.org>
13927 using XFASTINT. 13927
13928 13928 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
13929 * window.c (freeze_window_start): Don't presume selected_window holds 13929
13930 a window object. 139302007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13931 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd. 13931
13932 13932 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
139332007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change) 13933
13934 13934 * frame.c (x_set_frame_parameters): Check number is positive before
13935 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. 13935 using XFASTINT.
13936 13936
139372007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> 13937 * window.c (freeze_window_start): Don't presume selected_window holds
13938 13938 a window object.
13939 * window.c (Vsplit_window_preferred_function): New var. 13939 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
13940 (Fdisplay_buffer): Use it. 13940
13941 (syms_of_window): Export, and initialize it. 139412007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
13942 13942
139432007-09-06 Pixel <pixel@mandriva.com> (tiny change) 13943 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
13944 13944
13945 * image.c (gif_load): Fix bug: Handle nonexistent colormap. 139452007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13946 13946
139472007-09-06 Glenn Morris <rgm@gnu.org> 13947 * window.c (Vsplit_window_preferred_function): New var.
13948 13948 (Fdisplay_buffer): Use it.
13949 * gtkutil.c (menu_grab_callback) <cnt>: 13949 (syms_of_window): Export, and initialize it.
13950 * xselect.c (x_reply_selection_request) <cnt>: Move static 13950
13951 variable to file scope. 139512007-09-06 Pixel <pixel@mandriva.com> (tiny change)
13952 13952
139532007-09-06 Stefan Monnier <monnier@iro.umontreal.ca> 13953 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
13954 13954
13955 * xdisp.c (redisplay_internal): Make sure Elisp code always sees 139552007-09-06 Glenn Morris <rgm@gnu.org>
13956 consistent values of selected_frame and selected_window. 13956
13957 13957 * gtkutil.c (menu_grab_callback) <cnt>:
139582007-09-04 Jason Rumney <jasonr@gnu.org> 13958 * xselect.c (x_reply_selection_request) <cnt>: Move static
13959 13959 variable to file scope.
13960 * w32console.c (initialize_w32_display): Zero unused hooks. 13960
13961 139612007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
139622007-09-04 Dan Nicolaescu <dann@ics.uci.edu> 13962
13963 13963 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
13964 * term.c (Vsuspend_tty_functions, Vresume_tty_functions) 13964 consistent values of selected_frame and selected_window.
13965 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change. 13965
13966 139662007-09-04 Jason Rumney <jasonr@gnu.org>
139672007-09-04 Jason Rumney <jasonr@gnu.org> 13967
13968 13968 * w32console.c (initialize_w32_display): Zero unused hooks.
13969 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible 13969
13970 in w32console.c. Set up input. Remove XXX comments that have been 139702007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13971 confirmed as correct. 13971
13972 13972 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
13973 * s/ms-w32.h (MULTI_KBOARD): Define. 13973 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
13974 13974
13975 * w32console.c (one_and_only_w32cons): Remove. 139752007-09-04 Jason Rumney <jasonr@gnu.org>
13976 (initialize_w32_display): Take terminal argument. 13976
13977 13977 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
13978 * term.c (init_tty) [WINDOWSNT]: Pass terminal to 13978 in w32console.c. Set up input. Remove XXX comments that have been
13979 initialize_w32_display. 13979 confirmed as correct.
13980 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too. 13980
13981 13981 * s/ms-w32.h (MULTI_KBOARD): Define.
13982 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. 13982
13983 13983 * w32console.c (one_and_only_w32cons): Remove.
13984 * keyboard.c (discard_mouse_events): Discard it. 13984 (initialize_w32_display): Take terminal argument.
13985 (make_lispy_event): Translate it to a lisp event. 13985
13986 (lispy_wheel_names): Add wheel-left and right events. 13986 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
13987 (syms_of_keyboard): Enlarge wheel_syms. 13987 initialize_w32_display.
13988 13988 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
13989 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL. 13989
13990 <WM_MOUSEHWHEEL>: Pass new system message to lisp. 13990 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
13991 13991
13992 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't. 13992 * keyboard.c (discard_mouse_events): Discard it.
13993 13993 (make_lispy_event): Translate it to a lisp event.
13994 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT 13994 (lispy_wheel_names): Add wheel-left and right events.
13995 from WM_MOUSEHWHEEL. 13995 (syms_of_keyboard): Enlarge wheel_syms.
13996 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL. 13996
13997 13997 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
13998 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from 13998 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
13999 terminal. 13999
14000 14000 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
14001 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new 14001
14002 keyboard for the terminal. 14002 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
14003 14003 from WM_MOUSEHWHEEL.
140042007-09-04 Dan Nicolaescu <dann@ics.uci.edu> 14004 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
14005 14005
14006 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. 14006 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
14007 (Vresume_tty_hook): Rename from Vresume_tty_functions. 14007 terminal.
14008 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook 14008
14009 and resume-tty-function to resume-tty-hook. 14009 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
14010 (Fsuspend_tty, Fresume_tty): Use new names. 14010 keyboard for the terminal.
14011 14011
140122007-09-02 Jan Djärv <jan.h.d@swipnet.se> 140122007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
14013 14013
14014 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon 14014 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
14015 if it starts with "n:". 14015 (Vresume_tty_hook): Rename from Vresume_tty_functions.
14016 14016 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
140172007-08-31 Jan Djärv <jan.h.d@swipnet.se> 14017 and resume-tty-function to resume-tty-hook.
14018 14018 (Fsuspend_tty, Fresume_tty): Use new names.
14019 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL. 14019
14020 140202007-09-02 Jan Djärv <jan.h.d@swipnet.se>
140212007-08-31 Stefan Monnier <monnier@iro.umontreal.ca> 14021
14022 14022 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
14023 * frame.h: 14023 if it starts with "n:".
14024 * frame.c (Qterm_environment_variable): Remove. 14024
14025 (syms_of_frame): Don't init and staticpro it. 140252007-08-31 Jan Djärv <jan.h.d@swipnet.se>
14026 14026
14027 * callproc.c (getenv_internal): Remove special case for $TERM. 14027 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
14028 14028
14029 * callproc.c (Vinitial_environment): New variable. 140292007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
14030 (set_initial_environment): Initialize it. 14030
14031 (syms_of_callproc): Declare it. 14031 * frame.h:
14032 (child_setup): Don't mess with TERM via Qterm_environment_variable; the 14032 * frame.c (Qterm_environment_variable): Remove.
14033 TERM under which a process runs is never related to the TERM in which 14033 (syms_of_frame): Don't init and staticpro it.
14034 Emacs is running. 14034
14035 14035 * callproc.c (getenv_internal): Remove special case for $TERM.
140362007-08-29 Dan Nicolaescu <dann@ics.uci.edu> 14036
14037 14037 * callproc.c (Vinitial_environment): New variable.
14038 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here... 14038 (set_initial_environment): Initialize it.
14039 * s/darwin.h: ... do it here. 14039 (syms_of_callproc): Declare it.
14040 14040 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
140412007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> 14041 TERM under which a process runs is never related to the TERM in which
14042 14042 Emacs is running.
14043 * lisp.h (set_initial_environment): Rename from set_global_environment. 14043
14044 140442007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
14045 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been 14045
14046 removed by mistake on the multi-tty branch. 14046 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
14047 14047 * s/darwin.h: ... do it here.
14048 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup. 14048
14049 (Fmodify_frame_parameters): Return a value. 140492007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
14050 14050
14051 * image.c (png_load): Comment-out var only used in commented-out code. 14051 * lisp.h (set_initial_environment): Rename from set_global_environment.
14052 14052
14053 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly) 14053 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
14054 before passing it to mark_object. 14054 removed by mistake on the multi-tty branch.
14055 14055
14056 * xfaces.c (internal_resolve_face_name): Return a value. 14056 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
14057 (internal_resolve_face_name, resolve_face_name_error): Comment out. 14057 (Fmodify_frame_parameters): Return a value.
14058 14058
14059 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup. 14059 * image.c (png_load): Comment-out var only used in commented-out code.
14060 (x_icon): Comment-out var only used in commented-out code. 14060
14061 14061 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
140622007-08-29 Romain Francoise <romain@orebokech.com> 14062 before passing it to mark_object.
14063 14063
14064 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if 14064 * xfaces.c (internal_resolve_face_name): Return a value.
14065 QUIT hasn't been provided. 14065 (internal_resolve_face_name, resolve_face_name_error): Comment out.
14066 14066
140672007-08-29 Dan Nicolaescu <dann@ics.uci.edu> 14067 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
14068 14068 (x_icon): Comment-out var only used in commented-out code.
14069 * callproc.c (child_setup, getenv_internal): Use the 14069
14070 display-environment-variable and term-environment-variable frame params. 140702007-08-29 Romain Francoise <romain@orebokech.com>
14071 (set_initial_environment): Initialise Vprocess_environment. 14071
14072 14072 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
14073 * config.in: Disable multi-keyboard support on a mac. 14073 QUIT hasn't been provided.
14074 14074
14075 * frame.c (Qterm_environment_variable) 140752007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
14076 (Qdisplay_environment_variable): New variables. 14076
14077 (syms_of_frame): Intern and staticpro them. 14077 * callproc.c (child_setup, getenv_internal): Use the
14078 (Fmake_terminal_frame): Disable output method test. 14078 display-environment-variable and term-environment-variable frame params.
14079 14079 (set_initial_environment): Initialise Vprocess_environment.
14080 * frame.h: Declare them here. 14080
14081 14081 * config.in: Disable multi-keyboard support on a mac.
14082 * macfns.c (x_set_mouse_color): Get rif from the frame. 14082
14083 (x_set_tool_bar_lines): Don't use updating_frame. 14083 * frame.c (Qterm_environment_variable)
14084 (mac_window): Add 2 new parameters for consistency with other systems. 14084 (Qdisplay_environment_variable): New variables.
14085 (Fx_create_frame): Fix doc string. Rename the parameter. Set the 14085 (syms_of_frame): Intern and staticpro them.
14086 frame parameters following what is done in X11 and w32. Don't use 14086 (Fmake_terminal_frame): Disable output method test.
14087 FRAME_MAC_DISPLAY_INFO. 14087
14088 (Fx_open_connection, start_hourglass): Remove window-system check. 14088 * frame.h: Declare them here.
14089 (x_create_tip_frame): Get the keyboard from the terminal. 14089
14090 14090 * macfns.c (x_set_mouse_color): Get rif from the frame.
14091 * macmenu.c: Reorder includes. 14091 (x_set_tool_bar_lines): Don't use updating_frame.
14092 (Fx_popup_menu): Use terminal specific mouse_position_hook. 14092 (mac_window): Add 2 new parameters for consistency with other systems.
14093 14093 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
14094 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a 14094 frame parameters following what is done in X11 and w32. Don't use
14095 terminal parameter. 14095 FRAME_MAC_DISPLAY_INFO.
14096 (x_clear_frame): Add a frame parameter. 14096 (Fx_open_connection, start_hourglass): Remove window-system check.
14097 (note_mouse_movement): Get rif from the frame. 14097 (x_create_tip_frame): Get the keyboard from the terminal.
14098 (mac_term_init): Initialize the terminal. 14098
14099 (mac_initialize): Make static and move terminal initialization ... 14099 * macmenu.c: Reorder includes.
14100 (mac_create_terminal): ... to this new function. 14100 (Fx_popup_menu): Use terminal specific mouse_position_hook.
14101 14101
14102 * macterm.h (struct mac_display_info): Add terminal. 14102 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
14103 (mac_initialize): Delete declaration. 14103 terminal parameter.
14104 14104 (x_clear_frame): Add a frame parameter.
14105 * puresize.h (BASE_PURESIZE): Increase base value to 1164000. 14105 (note_mouse_movement): Get rif from the frame.
14106 14106 (mac_term_init): Initialize the terminal.
14107 * sysdep.c: Comment out text after #endif. 14107 (mac_initialize): Make static and move terminal initialization ...
14108 14108 (mac_create_terminal): ... to this new function.
14109 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD 14109
14110 is defined. Better initialize ttys in windows. Use terminal 14110 * macterm.h (struct mac_display_info): Add terminal.
14111 specific mouse_position_hook. 14111 (mac_initialize): Delete declaration.
14112 14112
14113 * termhooks.h (union display_info): Add mac_display_info. 14113 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
14114 14114
14115 * w32fns.c (Fx_create_frame): Use kboard from the terminal. 14115 * sysdep.c: Comment out text after #endif.
14116 Set the default minibuffer frame, window_system and the rest of the 14116
14117 frame parameters following what is done in X11. 14117 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
14118 14118 is defined. Better initialize ttys in windows. Use terminal
14119 * w32term.c (w32_initialize): Make static. 14119 specific mouse_position_hook.
14120 14120
14121 * xselect.c (x_handle_selection_clear): Only access 14121 * termhooks.h (union display_info): Add mac_display_info.
14122 terminal->kboard when MULTI_KBOARD is defined. 14122
14123 14123 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
14124 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. 14124 Set the default minibuffer frame, window_system and the rest of the
14125 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon. 14125 frame parameters following what is done in X11.
14126 14126
141272007-08-29 Jason Rumney <jasonr@gnu.org> 14127 * w32term.c (w32_initialize): Make static.
14128 14128
14129 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined. 14129 * xselect.c (x_handle_selection_clear): Only access
14130 (make_terminal_frame) [WINDOWSNT]: Initialize terminal. 14130 terminal->kboard when MULTI_KBOARD is defined.
14131 14131
14132 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]: 14132 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
14133 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame. 14133 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
14134 14134
14135 * keyboard.c (restore_kboard_configuration): Only define when 141352007-08-29 Jason Rumney <jasonr@gnu.org>
14136 MULTI_KBOARD defined. 14136
14137 14137 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
14138 * makefile.w32-in: Update dependancies from Makefile.in. 14138 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
14139 (OBJ1): Add terminal.$(O) 14139
14140 14140 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
14141 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: 14141 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
14142 Don't define function body. 14142
14143 (init_tty) [WINDOWSNT]: Use selected_frame for initializing. 14143 * keyboard.c (restore_kboard_configuration): Only define when
14144 14144 MULTI_KBOARD defined.
14145 * termhooks.h (display_info) [WINDOWSNT]: Add w32. 14145
14146 14146 * makefile.w32-in: Update dependancies from Makefile.in.
14147 * w32.c (request_sigio, unrequest_sigio): Remove. 14147 (OBJ1): Add terminal.$(O)
14148 14148
14149 * w32console.c (w32con_move_cursor, w32con_clear_to_end) 14149 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
14150 (w32con_clear_frame, w32con_clear_end_of_line) 14150 Don't define function body.
14151 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) 14151 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
14152 (w32con_delete_glyphs, w32con_set_terminal_window) 14152
14153 (scroll_line, w32_sys_ring_bell): Add frame arg. 14153 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
14154 (w32con_set_terminal_modes, w32con_reset_terminal_modes): 14154
14155 Add terminal arg. 14155 * w32.c (request_sigio, unrequest_sigio): Remove.
14156 (PICK_FRAME): Remove. 14156
14157 (w32con_write_glyphs): Use frame specific terminal coding. 14157 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
14158 (one_and_only_w32cons): New global variable. 14158 (w32con_clear_frame, w32con_clear_end_of_line)
14159 (initialize_w32_display): Use it for storing hooks. 14159 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
14160 (create_w32cons_output): New function. 14160 (w32con_delete_glyphs, w32con_set_terminal_window)
14161 14161 (scroll_line, w32_sys_ring_bell): Add frame arg.
14162 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first 14162 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
14163 arg a frame. 14163 Add terminal arg.
14164 14164 (PICK_FRAME): Remove.
14165 * w32fns.c (x_create_tip_frame): Set terminal and ref count. 14165 (w32con_write_glyphs): Use frame specific terminal coding.
14166 Set window_system. 14166 (one_and_only_w32cons): New global variable.
14167 (x_set_tool_bar_lines): Don't use updating_frame. 14167 (initialize_w32_display): Use it for storing hooks.
14168 (Fx_create_frame): Set terminal and ref count. 14168 (create_w32cons_output): New function.
14169 (Fx_open_connection): Remove window-system check. 14169
14170 14170 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
14171 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. 14171 arg a frame.
14172 14172
14173 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor. 14173 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
14174 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg. 14174 Set window_system.
14175 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines): 14175 (x_set_tool_bar_lines): Don't use updating_frame.
14176 Add frame arg. 14176 (Fx_create_frame): Set terminal and ref count.
14177 (x_delete_terminal, w32_create_terminal): New functions. 14177 (Fx_open_connection): Remove window-system check.
14178 (w32_term_init): Create a terminal. 14178
14179 (w32_initialize): Move terminal specific initialization to 14179 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
14180 w32_create_terminal. 14180
14181 14181 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
14182 * w32term.h (x_output): Remove foreground_pixel and background_pixel. 14182 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
14183 (w32_clear_rect, w32_clear_area): Use background from frame. 14183 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
14184 (w32_display_info): Add terminal. 14184 Add frame arg.
14185 (w32_sys_ring_bell, x_delete_display): Declare here. 14185 (x_delete_terminal, w32_create_terminal): New functions.
14186 14186 (w32_term_init): Create a terminal.
14187 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. 14187 (w32_initialize): Move terminal specific initialization to
14188 14188 w32_create_terminal.
14189 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k. 14189
14190 14190 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
141912007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change) 14191 (w32_clear_rect, w32_clear_area): Use background from frame.
14192 14192 (w32_display_info): Add terminal.
14193 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char): 14193 (w32_sys_ring_bell, x_delete_display): Declare here.
14194 Fix get_named_tty calls for the controlling tty. 14194
14195 14195 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
141962007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) 14196
14197 14197 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
14198 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error. 14198
14199 141992007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
142002007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) 14200
14201 14201 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
14202 * term.c (tty_insert_glyphs): Add missing first parameter. 14202 Fix get_named_tty calls for the controlling tty.
14203 14203
142042007-08-29 Károly Lőrentey <karoly@lorentey.hu> 142042007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
14205 14205
14206 * buffer.c (Fbuffer_list, Fbury_buffer): 14206 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
14207 Take frame->buried_buffer_list into account. 14207
14208 142082007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
14209 * cm.c (current_tty): New variable, for cmputc(). 14209
14210 (cmputc): Use it. 14210 * term.c (tty_insert_glyphs): Add missing first parameter.
14211 (cmcheckmagic): Add tty parameter, look up terminal streams there. 14211
14212 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). 142122007-08-29 Károly Lőrentey <karoly@lorentey.hu>
14213 (cmgoto): Add tty parameter. Pass it on to calccost(). 14213
14214 Use emacs_tputs() instead of tputs(). 14214 * buffer.c (Fbuffer_list, Fbury_buffer):
14215 14215 Take frame->buried_buffer_list into account.
14216 * cm.h (emacs_tputs): New macro to set current_tty, and then call 14216
14217 tputs(). 14217 * cm.c (current_tty): New variable, for cmputc().
14218 (current_tty): New variable, for cmputc(). 14218 (cmputc): Use it.
14219 (cmcheckmagic, cmputc, cmgoto): Add prototypes. 14219 (cmcheckmagic): Add tty parameter, look up terminal streams there.
14220 14220 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
14221 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors. 14221 (cmgoto): Add tty parameter. Pass it on to calccost().
14222 (internal_condition_case, internal_condition_case_1) 14222 Use emacs_tputs() instead of tputs().
14223 (internal_condition_case_2): Don't abort when x_catching_errors. 14223
14224 14224 * cm.h (emacs_tputs): New macro to set current_tty, and then call
14225 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals. 14225 tputs().
14226 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to 14226 (current_tty): New variable, for cmputc().
14227 prevent crashes caused by bogus longjmps in read_char. 14227 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
14228 14228
14229 * keymap.h (Fset_keymap_parent): Add EXFUN. 14229 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
14230 14230 (internal_condition_case, internal_condition_case_1)
14231 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) 14231 (internal_condition_case_2): Don't abort when x_catching_errors.
14232 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): 14232
14233 Remove redundant definition. 14233 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
14234 14234 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
14235 * macfns.c (x_set_mouse_color, x_make_gc): 14235 prevent crashes caused by bogus longjmps in read_char.
14236 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 14236
14237 14237 * keymap.h (Fset_keymap_parent): Add EXFUN.
14238 * w32term.c (x_free_frame_resources): 14238
14239 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 14239 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
14240 (w32_initialize): Use the accessor macros for terminal characteristics. 14240 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
14241 14241 Remove redundant definition.
14242 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. 14242
14243 Use the accessor macros for terminal characteristics. 14243 * macfns.c (x_set_mouse_color, x_make_gc):
14244 * msdos.c (internal_terminal_init): Use the accessor macros for 14244 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14245 terminal characteristics. 14245
14246 (ScreenVisualBell, internal_terminal_init): 14246 * w32term.c (x_free_frame_resources):
14247 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 14247 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14248 14248 (w32_initialize): Use the accessor macros for terminal characteristics.
14249 * termopts.h (no_redraw_on_reenter): Declare. 14249
14250 14250 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
14251 * alloc.c (emacs_blocked_malloc): Disable mallopt call. 14251 Use the accessor macros for terminal characteristics.
14252 (mark_terminals, mark_ttys): Declare. 14252 * msdos.c (internal_terminal_init): Use the accessor macros for
14253 (Fgarbage_collect): Call them. 14253 terminal characteristics.
14254 (mark_object): Mark buried_buffer_list. 14254 (ScreenVisualBell, internal_terminal_init):
14255 14255 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14256 * prefix-args.c: Include stdlib.h for exit. 14256
14257 14257 * termopts.h (no_redraw_on_reenter): Declare.
14258 * syssignal.h: Add comment. 14258
14259 14259 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
14260 * indent.c: Include stdio.h. 14260 (mark_terminals, mark_ttys): Declare.
14261 14261 (Fgarbage_collect): Call them.
14262 * window.h (Vinitial_window_system): Declare. 14262 (mark_object): Mark buried_buffer_list.
14263 (Vwindow_system): Delete declaration. 14263
14264 14264 * prefix-args.c: Include stdlib.h for exit.
14265 * fontset.c (Finternal_char_font): Use FRAME_RIF. 14265
14266 14266 * syssignal.h: Add comment.
14267 * image.c (lookup_image): Don't initialize `c' until the xasserts 14267
14268 have been run. 14268 * indent.c: Include stdio.h.
14269 14269
14270 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and 14270 * window.h (Vinitial_window_system): Declare.
14271 FRAME_FOREGROUND_PIXEL. 14271 (Vwindow_system): Delete declaration.
14272 14272
14273 * print.c (print_preprocess): Don't lose print_depth levels while 14273 * fontset.c (Finternal_char_font): Use FRAME_RIF.
14274 iterating. 14274
14275 14275 * image.c (lookup_image): Don't initialize `c' until the xasserts
14276 * widget.c (update_from_various_frame_slots): 14276 have been run.
14277 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 14277
14278 14278 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
14279 * window.c (set_window_buffer): Don't call clear_mouse_face on tty 14279 FRAME_FOREGROUND_PIXEL.
14280 frames. 14280
14281 (window_internal_height): Remove bogus make_number call. 14281 * print.c (print_preprocess): Don't lose print_depth levels while
14282 (init_window_once): Call make_terminal_frame with two zero parameters. 14282 iterating.
14283 14283
14284 * fileio.c (Fread_file_name): Update comment. 14284 * widget.c (update_from_various_frame_slots):
14285 14285 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14286 * callint.c (Fcall_interactively): 14286
14287 Use temporarily_switch_to_single_kboard instead of single_kboard_state. 14287 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
14288 Make sure it is correctly unwound. 14288 frames.
14289 14289 (window_internal_height): Remove bogus make_number call.
14290 * xsmfns.c (x_session_close): New function. 14290 (init_window_once): Call make_terminal_frame with two zero parameters.
14291 14291
14292 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): 14292 * fileio.c (Fread_file_name): Update comment.
14293 Delete declarations. 14293
14294 14294 * callint.c (Fcall_interactively):
14295 * xterm.h: Remove declaration for x_fully_uncatch_errors. 14295 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
14296 (x_output): Remove background_pixel and foreground_pixel fields. 14296 Make sure it is correctly unwound.
14297 (x_display_info): Add new field TERMINAL. Remove KBOARD field. 14297
14298 (x_delete_device, x_session_close): Declare. 14298 * xsmfns.c (x_session_close): New function.
14299 14299
14300 * lread.c: Include setjmp.h. Update declaration of `read_char'. 14300 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
14301 (read_filtered_event): Call `read_char' with a local 14301 Delete declarations.
14302 `wrong_kboard_jmpbuf'. 14302
14303 14303 * xterm.h: Remove declaration for x_fully_uncatch_errors.
14304 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard. 14304 (x_output): Remove background_pixel and foreground_pixel fields.
14305 Don't call single_kboard_state. Use FRAME_RIF. 14305 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
14306 14306 (x_delete_device, x_session_close): Declare.
14307 * process.c (Fmake_network_process): Don't unrequest_sigio on modern 14307
14308 systems. 14308 * lread.c: Include setjmp.h. Update declaration of `read_char'.
14309 14309 (read_filtered_event): Call `read_char' with a local
14310 * lisp.h (set_process_environment): Rename to `set_global_environment'. 14310 `wrong_kboard_jmpbuf'.
14311 (Fframe_with_environment, Fset_input_meta_mode) 14311
14312 (Fset_quit_char): EXFUN. 14312 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
14313 (x_create_device, tty_output, terminal, tty_display_info): Declare. 14313 Don't call single_kboard_state. Use FRAME_RIF.
14314 (init_sys_modes, reset_sys_modes): Update prototypes. 14314
14315 (init_all_sys_modes, reset_all_sys_modes): New prototypes. 14315 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
14316 14316 systems.
14317 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map, 14317
14318 Vlocal_key_translation_map, and Vkeyboard_translate_table. 14318 * lisp.h (set_process_environment): Rename to `set_global_environment'.
14319 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): 14319 (Fframe_with_environment, Fset_input_meta_mode)
14320 Delete declarations. 14320 (Fset_quit_char): EXFUN.
14321 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) 14321 (x_create_device, tty_output, terminal, tty_display_info): Declare.
14322 (temporarily_switch_to_single_kboard, tty_read_avail_input): 14322 (init_sys_modes, reset_sys_modes): Update prototypes.
14323 New declarations. 14323 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
14324 14324
14325 * emacs.c (main): Don't call init_sys_modes(), the new term_init() 14325 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
14326 already does that during init_display(). Call syms_of_keymap 14326 Vlocal_key_translation_map, and Vkeyboard_translate_table.
14327 before syms_of_keyboard. Call `syms_of_terminal'. 14327 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
14328 Call set_initial_environment, not set_process_environment. 14328 Delete declarations.
14329 (shut_down_emacs): Call reset_all_sys_modes() instead of 14329 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
14330 reset_sys_modes(). 14330 (temporarily_switch_to_single_kboard, tty_read_avail_input):
14331 14331 New declarations.
14332 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. 14332
14333 (internal_resolve_face_name, resolve_face_name_error): New functions. 14333 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
14334 (resolve_face_name): Protect against loops and errors thrown by Fget. 14334 already does that during init_display(). Call syms_of_keymap
14335 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame. 14335 before syms_of_keyboard. Call `syms_of_terminal'.
14336 (Ftty_supports_face_attributes_p): Update tty_capable_p call. 14336 Call set_initial_environment, not set_process_environment.
14337 14337 (shut_down_emacs): Call reset_all_sys_modes() instead of
14338 * scroll.c: Replace CURTTY() with local variables throughout the 14338 reset_sys_modes().
14339 file (where applicable). 14339
14340 (calculate_scrolling, calculate_direct_scrolling) 14340 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
14341 (scrolling_1, scroll_cost): Use the accessor macros for terminal 14341 (internal_resolve_face_name, resolve_face_name_error): New functions.
14342 characteristics. 14342 (resolve_face_name): Protect against loops and errors thrown by Fget.
14343 14343 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
14344 * keymap.c (Vfunction_key_map): Remove. 14344 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
14345 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map. 14345
14346 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. 14346 * scroll.c: Replace CURTTY() with local variables throughout the
14347 (Vkey_translation_map): Remove. 14347 file (where applicable).
14348 (syms_of_keymap): Remove DEFVAR for key-translation-map. 14348 (calculate_scrolling, calculate_direct_scrolling)
14349 (Fdescribe_buffer_bindings) 14349 (scrolling_1, scroll_cost): Use the accessor macros for terminal
14350 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): 14350 characteristics.
14351 Update for terminal-local key-translation-map. 14351
14352 14352 * keymap.c (Vfunction_key_map): Remove.
14353 * Makefile.in (callproc.o): Update dependencies. 14353 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
14354 (lisp, shortlisp): Add termdev.elc. 14354 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
14355 (obj): Add terminal.o. 14355 (Vkey_translation_map): Remove.
14356 (terminal.o): Add dependencies. 14356 (syms_of_keymap): Remove DEFVAR for key-translation-map.
14357 [HAVE_CARBON]: Make terminal.o depend on macgui.h. 14357 (Fdescribe_buffer_bindings)
14358 (data.o, fns.o): Add termhooks.h dependency. 14358 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
14359 (SOME_MACHINE_LISP): Add dnd.elc. 14359 Update for terminal-local key-translation-map.
14360 (minibuf.o): Fix typo. 14360
14361 Update dependencies. 14361 * Makefile.in (callproc.o): Update dependencies.
14362 14362 (lisp, shortlisp): Add termdev.elc.
14363 * data.c (do_symval_forwarding, store_symval_forwarding) 14363 (obj): Add terminal.o.
14364 (find_symbol_value): Use the selected frame's keyboard, not 14364 (terminal.o): Add dependencies.
14365 current_kboard. 14365 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
14366 14366 (data.o, fns.o): Add termhooks.h dependency.
14367 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of 14367 (SOME_MACHINE_LISP): Add dnd.elc.
14368 Vwindow_system. 14368 (minibuf.o): Fix typo.
14369 14369 Update dependencies.
14370 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from 14370
14371 Fmenu_bar_open. 14371 * data.c (do_symval_forwarding, store_symval_forwarding)
14372 (syms_of_xmenu): Update defsubr. 14372 (find_symbol_value): Use the selected frame's keyboard, not
14373 (mouse_position_for_popup, Fx_popup_menu) 14373 current_kboard.
14374 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar) 14374
14375 (set_frame_menubar, free_frame_menubar) 14375 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
14376 (create_and_show_popup_menu, xmenu_show, ) 14376 Vwindow_system.
14377 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not 14377
14378 an X frame. 14378 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
14379 14379 Fmenu_bar_open.
14380 * xselect.c (x_own_selection): Abort if not an X frame. 14380 (syms_of_xmenu): Update defsubr.
14381 (some_frame_on_display): Check if it is an X frame. 14381 (mouse_position_for_popup, Fx_popup_menu)
14382 (x_handle_selection_clear): Deal with MULTI_KBOARD. 14382 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
14383 14383 (set_frame_menubar, free_frame_menubar)
14384 * coding.c: Include frame.h and termhooks.h. 14384 (create_and_show_popup_menu, xmenu_show, )
14385 (terminal_coding, keyboard_coding): Delete. 14385 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
14386 (Fset_terminal_coding_system_internal) 14386 an X frame.
14387 (Fset_keyboard_coding_system_internal) 14387
14388 (Fkeyboard_coding_system) 14388 * xselect.c (x_own_selection): Abort if not an X frame.
14389 (Fterminal_coding_system): Add a terminal parameter. 14389 (some_frame_on_display): Check if it is an X frame.
14390 Get terminal_coding from the terminal. 14390 (x_handle_selection_clear): Deal with MULTI_KBOARD.
14391 (init_coding_once): Don't call setup_coding_system here. 14391
14392 14392 * coding.c: Include frame.h and termhooks.h.
14393 * dispextern.h (set_scroll_region, turn_off_insert) 14393 (terminal_coding, keyboard_coding): Delete.
14394 (turn_off_highlight, background_highlight, clear_end_of_line_raw) 14394 (Fset_terminal_coding_system_internal)
14395 (tty_clear_end_of_line, tty_setup_colors) 14395 (Fset_keyboard_coding_system_internal)
14396 (delete_tty, updating_frame) 14396 (Fkeyboard_coding_system)
14397 (produce_special_glyphs, produce_glyphs, write_glyphs) 14397 (Fterminal_coding_system): Add a terminal parameter.
14398 (insert_glyphs): Remove. 14398 Get terminal_coding from the terminal.
14399 (raw_cursor_to, clear_to_end, tty_turn_off_insert) 14399 (init_coding_once): Don't call setup_coding_system here.
14400 (tty_turn_off_highlight, get_tty_size): Add declaration. 14400
14401 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes. 14401 * dispextern.h (set_scroll_region, turn_off_insert)
14402 14402 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
14403 * frame.h (enum output_method): Add output_initial. 14403 (tty_clear_end_of_line, tty_setup_colors)
14404 (struct x_output): Delete. 14404 (delete_tty, updating_frame)
14405 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): 14405 (produce_special_glyphs, produce_glyphs, write_glyphs)
14406 Access foreground_pixel and background_pixel directly from the frame. 14406 (insert_glyphs): Remove.
14407 (tty_display): Delete. 14407 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
14408 (struct frame): Add buried_buffer_list, foreground_pixel, 14408 (tty_turn_off_highlight, get_tty_size): Add declaration.
14409 background_pixel and terminal. Delete kboard. 14409 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
14410 (union output_data): Add tty. 14410
14411 (FRAME_KBOARD): Get the kboard from the terminal. 14411 * frame.h (enum output_method): Add output_initial.
14412 (FRAME_INITIAL_P): New macro. 14412 (struct x_output): Delete.
14413 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) 14413 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
14414 (Qterm_environment_variable, Qdisplay_environment_variable) 14414 Access foreground_pixel and background_pixel directly from the frame.
14415 (make_terminal_frame, Qburied_buffer_list, Qwindow_system): 14415 (tty_display): Delete.
14416 New declarations. 14416 (struct frame): Add buried_buffer_list, foreground_pixel,
14417 14417 background_pixel and terminal. Delete kboard.
14418 * termchar.h (tty_output, tty_display_info): New structures. 14418 (union output_data): Add tty.
14419 (tty_list): Declare. 14419 (FRAME_KBOARD): Get the kboard from the terminal.
14420 (FRAME_TTY, CURTTY): New macros. 14420 (FRAME_INITIAL_P): New macro.
14421 (must_write_spaces, min_padding_speed, fast_clear_end_of_line) 14421 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
14422 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok) 14422 (Qterm_environment_variable, Qdisplay_environment_variable)
14423 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line) 14423 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
14424 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations. 14424 New declarations.
14425 14425
14426 * callproc.c: Include frame.h and termhooks.h, for terminal 14426 * termchar.h (tty_output, tty_display_info): New structures.
14427 parameters. 14427 (tty_list): Declare.
14428 (add_env): New function. 14428 (FRAME_TTY, CURTTY): New macros.
14429 (child_setup): Use it. 14429 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
14430 (child_setup, getenv_internal): Handle the new Vprocess_environment. 14430 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
14431 (getenv_internal): Fix get_terminal_param call. 14431 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
14432 (Fgetenv_internal, egetenv): Update doc. 14432 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
14433 (syms_of_callproc): Initialize Vprocess_environment to nil. 14433
14434 Register and initialize them. Remove obsolete defvars. Update doc 14434 * callproc.c: Include frame.h and termhooks.h, for terminal
14435 strings. 14435 parameters.
14436 (child_setup): Handle Vlocal_environment_variables. 14436 (add_env): New function.
14437 (getenv_internal): Add terminal parameter. 14437 (child_setup): Use it.
14438 Handle Vlocal_environment_variables. 14438 (child_setup, getenv_internal): Handle the new Vprocess_environment.
14439 (Fgetenv_internal): Add terminal parameter. 14439 (getenv_internal): Fix get_terminal_param call.
14440 (child_setup, getenv_internal, Fgetenv_internal): Store the local 14440 (Fgetenv_internal, egetenv): Update doc.
14441 environment in a frame (not terminal) parameter. Update doc strings. 14441 (syms_of_callproc): Initialize Vprocess_environment to nil.
14442 (set_initial_environment): Rename from set_global_environment. 14442 Register and initialize them. Remove obsolete defvars. Update doc
14443 Store Emacs environment in initial frame parameter. 14443 strings.
14444 14444 (child_setup): Handle Vlocal_environment_variables.
14445 * xdisp.c (redisplay_internal): Update references to 14445 (getenv_internal): Add terminal parameter.
14446 `previous_terminal_frame'. 14446 Handle Vlocal_environment_variables.
14447 (display_mode_line, Fformat_mode_line): Replace calls to 14447 (Fgetenv_internal): Add terminal parameter.
14448 `push_frame_kboard' with `push_kboard'. 14448 (child_setup, getenv_internal, Fgetenv_internal): Store the local
14449 (get_glyph_string_clip_rects): Add extra parentheses and 14449 environment in a frame (not terminal) parameter. Update doc strings.
14450 braces to prevent compiler warnings. 14450 (set_initial_environment): Rename from set_global_environment.
14451 (calc_pixel_width_or_height): Add xassert to check that the 14451 Store Emacs environment in initial frame parameter.
14452 frame is alive. Don't call `lookup_image' on a termcap frame. 14452
14453 (message2_nolog, message3_nolog, redisplay_internal) 14453 * xdisp.c (redisplay_internal): Update references to
14454 (set_vertical_scroll_bar, redisplay_window, check_x_display_info) 14454 `previous_terminal_frame'.
14455 (x_set_scroll_bar_foreground, x_set_scroll_bar_background) 14455 (display_mode_line, Fformat_mode_line): Replace calls to
14456 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p) 14456 `push_frame_kboard' with `push_kboard'.
14457 (Fx_display_pixel_width, Fx_display_pixel_height) 14457 (get_glyph_string_clip_rects): Add extra parentheses and
14458 (Fx_display_planes, Fx_display_color_cells) 14458 braces to prevent compiler warnings.
14459 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) 14459 (calc_pixel_width_or_height): Add xassert to check that the
14460 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width) 14460 frame is alive. Don't call `lookup_image' on a termcap frame.
14461 (Fx_display_backing_store, Fx_display_visual_class) 14461 (message2_nolog, message3_nolog, redisplay_internal)
14462 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): 14462 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
14463 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. 14463 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
14464 14464 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
14465 * xfns.c (x_set_foreground_color x_set_background_color) 14465 (Fx_display_pixel_width, Fx_display_pixel_height)
14466 (x_set_mouse_color, x_set_cursor_color, x_make_gc): 14466 (Fx_display_planes, Fx_display_color_cells)
14467 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 14467 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
14468 (Fx_create_frame, x_create_tip_frame, build_string, x_window) 14468 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
14469 (Fx_create_frame, x_create_tip_frame): Don't create frames on a 14469 (Fx_display_backing_store, Fx_display_visual_class)
14470 terminal that is being deleted. 14470 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
14471 (Fx_create_frame): Use `store_frame_param' to set `window-system' 14471 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
14472 frame parameter, and make sure it overrides any user-supplied setting. 14472
14473 (Fx_close_connection, Fx_synchronize): Unify argument names with 14473 * xfns.c (x_set_foreground_color x_set_background_color)
14474 the rest of the DEFUNs. 14474 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
14475 14475 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14476 * dispnew.c (Fsend_string_to_terminal): Update call to 14476 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
14477 `get_tty_terminal'. 14477 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
14478 (Fredraw_frame, Fsend_string_to_terminal) 14478 terminal that is being deleted.
14479 (Fsend_string_to_terminal, init_display): Use FRAME_RIF, 14479 (Fx_create_frame): Use `store_frame_param' to set `window-system'
14480 FRAME_TERMCAP_P and FRAME_TTY. 14480 frame parameter, and make sure it overrides any user-supplied setting.
14481 (window_change_signal): Don't believe width/height values that are 14481 (Fx_close_connection, Fx_synchronize): Unify argument names with
14482 impossibly small. 14482 the rest of the DEFUNs.
14483 (Vinitial_window_system): Rename from Vwindow_system. 14483
14484 (termscript, Wcm, rif): Delete. 14484 * dispnew.c (Fsend_string_to_terminal): Update call to
14485 14485 `get_tty_terminal'.
14486 * termhooks.h (struct terminal): New struct containing the 14486 (Fredraw_frame, Fsend_string_to_terminal)
14487 previously global text display hooks and new members NAME, 14487 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
14488 DELETED and PARAM_ALIST. 14488 FRAME_TERMCAP_P and FRAME_TTY.
14489 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING) 14489 (window_change_signal): Don't believe width/height values that are
14490 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P) 14490 impossibly small.
14491 (FRAME_RIF): New macros. 14491 (Vinitial_window_system): Rename from Vwindow_system.
14492 (get_terminal_param, get_device): New declarations. 14492 (termscript, Wcm, rif): Delete.
14493 (termscript): Delete declaration. 14493
14494 14494 * termhooks.h (struct terminal): New struct containing the
14495 * xterm.c (x_initialize): Use Fset_input_interrupt_mode. 14495 previously global text display hooks and new members NAME,
14496 (XTflash, x_free_frame_resources, x_scroll_bar_create) 14496 DELETED and PARAM_ALIST.
14497 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and 14497 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
14498 FRAME_FOREGROUND_PIXEL. 14498 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
14499 (x_fully_uncatch_errors): Disable definition. 14499 (FRAME_RIF): New macros.
14500 (x_scroll_bar_expose): Fix reference to foreground pixel. 14500 (get_terminal_param, get_device): New declarations.
14501 (XTread_socket): Disable loop on all X displays. 14501 (termscript): Delete declaration.
14502 (x_delete_terminal): Don't set terminal->deleted and let 14502
14503 delete_terminal delete the frames on the terminal. 14503 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
14504 (x_delete_display): Doc update to reflect changes in 14504 (XTflash, x_free_frame_resources, x_scroll_bar_create)
14505 delete_terminal. 14505 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
14506 (x_display_info) <terminal>: Move member earlier in the struct. 14506 FRAME_FOREGROUND_PIXEL.
14507 (deleting_tty): Remove old variable. 14507 (x_fully_uncatch_errors): Disable definition.
14508 (Fsuspend_tty): Call clear_tty_hooks. 14508 (x_scroll_bar_expose): Fix reference to foreground pixel.
14509 (Fresume_tty, init_tty): Call set_tty_hooks. 14509 (XTread_socket): Disable loop on all X displays.
14510 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw 14510 (x_delete_terminal): Don't set terminal->deleted and let
14511 errors on X frames. 14511 delete_terminal delete the frames on the terminal.
14512 (x_catch_errors_unwind): Abort if x_error_message is NULL. 14512 (x_delete_display): Doc update to reflect changes in
14513 (handle_one_xevent): Initialize `f' to NULL. 14513 delete_terminal.
14514 (x_delete_terminal, x_create_terminal): New functions. 14514 (x_display_info) <terminal>: Move member earlier in the struct.
14515 (XTset_terminal_modes, XTreset_terminal_modes) 14515 (deleting_tty): Remove old variable.
14516 (XTread_socket, x_connection_closed, x_term_init) 14516 (Fsuspend_tty): Call clear_tty_hooks.
14517 (x_term_init, x_delete_display): Add terminal parameter. 14517 (Fresume_tty, init_tty): Call set_tty_hooks.
14518 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary 14518 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
14519 X connections. 14519 errors on X frames.
14520 14520 (x_catch_errors_unwind): Abort if x_error_message is NULL.
14521 * frame.c: Include termchar.h. 14521 (handle_one_xevent): Initialize `f' to NULL.
14522 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type) 14522 (x_delete_terminal, x_create_terminal): New functions.
14523 (Qwindow_system, Qenvironment, Qterm_environment_variable) 14523 (XTset_terminal_modes, XTreset_terminal_modes)
14524 (Qdisplay_environment_variable): New vars. 14524 (XTread_socket, x_connection_closed, x_term_init)
14525 (Fframep): Deal with output_initial. 14525 (x_term_init, x_delete_display): Add terminal parameter.
14526 (Fframe-live-p): Doc fix. 14526 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
14527 (Fwindow-system): New function. 14527 X connections.
14528 (x_set_screen_gamma, store_frame_param): Fix compilation errors. 14528
14529 (make_terminal_frame): Don't create frames on a terminal that is 14529 * frame.c: Include termchar.h.
14530 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 14530 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
14531 (store_frame_param): Check for found_for_frame before calling XFRAME. 14531 (Qwindow_system, Qenvironment, Qterm_environment_variable)
14532 (Fmake_terminal_frame): Handle NULL tty names correctly. 14532 (Qdisplay_environment_variable): New vars.
14533 (syms_of_frame): Enhance doc string of `default-frame-alist'. 14533 (Fframep): Deal with output_initial.
14534 (Fdelete_frame): Remove unused variable `count'. Don't allow other 14534 (Fframe-live-p): Doc fix.
14535 frames to refer to a deleted frame in their 'environment parameter. 14535 (Fwindow-system): New function.
14536 (Fframe_with_environment): New function. 14536 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
14537 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment. 14537 (make_terminal_frame): Don't create frames on a terminal that is
14538 (get_future_frame_param): New function. 14538 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14539 (Fmake_terminal_frame): Use it. 14539 (store_frame_param): Check for found_for_frame before calling XFRAME.
14540 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF. 14540 (Fmake_terminal_frame): Handle NULL tty names correctly.
14541 14541 (syms_of_frame): Enhance doc string of `default-frame-alist'.
14542 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. 14542 (Fdelete_frame): Remove unused variable `count'. Don't allow other
14543 * sysdep.c (reset_sys_modes): Update for renames. 14543 frames to refer to a deleted frame in their 'environment parameter.
14544 14544 (Fframe_with_environment): New function.
14545 * keyboard.c (tty_read_avail_input): New function. 14545 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
14546 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions. 14546 (get_future_frame_param): New function.
14547 (syms_of_keyboard): Defsubr them. 14547 (Fmake_terminal_frame): Use it.
14548 (Fset_input_meta_mode, Fset_quit_char): New functions. 14548 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
14549 (Fset_input_mode): Split to above functions. 14549
14550 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf 14550 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
14551 parameter. Use it in call to `read_char'. 14551 * sysdep.c (reset_sys_modes): Update for renames.
14552 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'. 14552
14553 Set wrong_kboard_jmpbuf correctly in recursive calls. 14553 * keyboard.c (tty_read_avail_input): New function.
14554 Use current_kboard to access Vkeyboard_translate_table. 14554 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
14555 Enhance comment before extra longjmp to wrong_kboard_jmpbuf. 14555 (syms_of_keyboard): Defsubr them.
14556 Add wrong_kboard_jmpbuf parameter to allow for recursive calls. 14556 (Fset_input_meta_mode, Fset_quit_char): New functions.
14557 Update longjmp invocations. Remember the original current_kboard, 14557 (Fset_input_mode): Split to above functions.
14558 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel 14558 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
14559 changes it. Comment out unnecessary calls to 14559 parameter. Use it in call to `read_char'.
14560 `record_single_kboard_state' and `any_kboard_state'. 14560 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
14561 Update recursive calls. 14561 Set wrong_kboard_jmpbuf correctly in recursive calls.
14562 (wrong_kboard_jmpbuf): Remove global variable. 14562 Use current_kboard to access Vkeyboard_translate_table.
14563 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. 14563 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
14564 Handle deleted interrupted_kboards correctly; that is a legal 14564 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
14565 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp 14565 Update longjmp invocations. Remember the original current_kboard,
14566 and read_char calls. Abort if interrupted_kboard died in read_char. 14566 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
14567 (any_kboard_state, single_kboard_state) 14567 changes it. Comment out unnecessary calls to
14568 (push_frame_kboard): Remove function. 14568 `record_single_kboard_state' and `any_kboard_state'.
14569 (pop_kboard): Switch out of single_kboard mode if the kboard has 14569 Update recursive calls.
14570 been deleted. Remove unused variable. Help debugging by not 14570 (wrong_kboard_jmpbuf): Remove global variable.
14571 changing current_kboard unnecessarily. Set current_kboard to the 14571 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
14572 kboard of the selected frame when the stored kboard object has 14572 Handle deleted interrupted_kboards correctly; that is a legal
14573 been deleted before pop_kboard. 14573 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
14574 (temporarily_switch_to_single_kboard): Change first parameter to a 14574 and read_char calls. Abort if interrupted_kboard died in read_char.
14575 frame pointer. Throw an error when caller wants to change kboards 14575 (any_kboard_state, single_kboard_state)
14576 while in single_kboard mode. Don't push_kboard if we weren't in 14576 (push_frame_kboard): Remove function.
14577 single kboard state. Don't pop_kboard if we popped into any 14577 (pop_kboard): Switch out of single_kboard mode if the kboard has
14578 kboard state. 14578 been deleted. Remove unused variable. Help debugging by not
14579 (restore_kboard_configuration): Abort if pop_kboard changed the 14579 changing current_kboard unnecessarily. Set current_kboard to the
14580 kboard in single_kboard mode. Call pop_kboard only after setting 14580 kboard of the selected frame when the stored kboard object has
14581 up single_kboard mode. 14581 been deleted before pop_kboard.
14582 (Frecursive_edit): Switch to single_kboard mode only in nested 14582 (temporarily_switch_to_single_kboard): Change first parameter to a
14583 command loops. 14583 frame pointer. Throw an error when caller wants to change kboards
14584 (cmd_error, command_loop, command_loop_1, timer_check): 14584 while in single_kboard mode. Don't push_kboard if we weren't in
14585 Comment out unnecessary call to `any_kboard_state' and 14585 single kboard state. Don't pop_kboard if we popped into any
14586 `record_single_kboard_state'. 14586 kboard state.
14587 (delete_kboard): Exit single_kboard mode if we have just deleted 14587 (restore_kboard_configuration): Abort if pop_kboard changed the
14588 that kboard. Use FRAME_KBOARD. 14588 kboard in single_kboard mode. Call pop_kboard only after setting
14589 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not 14589 up single_kboard mode.
14590 `fatal_error_signal'. 14590 (Frecursive_edit): Switch to single_kboard mode only in nested
14591 (record_single_kboard_state): Don't push_kboard if we weren't in 14591 command loops.
14592 single kboard state. Don't pop_kboard if we popped into any 14592 (cmd_error, command_loop, command_loop_1, timer_check):
14593 kboard state. 14593 Comment out unnecessary call to `any_kboard_state' and
14594 (push_frame_kboard): Rename to push_kboard. 14594 `record_single_kboard_state'.
14595 (kbd_buffer_get_event): Use FRAME_TERMINAL. 14595 (delete_kboard): Exit single_kboard mode if we have just deleted
14596 (read_avail_input): Read input from all terminals. 14596 that kboard. Use FRAME_KBOARD.
14597 (mark_kboards): Also mark Vkeyboard_translate_table. 14597 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
14598 (kbd_buffer_store_event_hold): Simplify condition. 14598 `fatal_error_signal'.
14599 (read_key_sequence): Reinitialize fkey and keytran at each replay. 14599 (record_single_kboard_state): Don't push_kboard if we weren't in
14600 (Vkeyboard_translate_table): Move to struct kboard. 14600 single kboard state. Don't pop_kboard if we popped into any
14601 (init_kboard): Initialize Vkeyboard_translate_table. 14601 kboard state.
14602 (syms_of_keyboard): Use DEFVAR_KBOARD to define 14602 (push_frame_kboard): Rename to push_kboard.
14603 Vkeyboard_translate_table. Update doc strings. Update docs of 14603 (kbd_buffer_get_event): Use FRAME_TERMINAL.
14604 local-function-key-map and function-key-map. 14604 (read_avail_input): Read input from all terminals.
14605 14605 (mark_kboards): Also mark Vkeyboard_translate_table.
14606 * terminal.c: New file. 14606 (kbd_buffer_store_event_hold): Simplify condition.
14607 14607 (read_key_sequence): Reinitialize fkey and keytran at each replay.
14608 * term.c: Include errno.h. 14608 (Vkeyboard_translate_table): Move to struct kboard.
14609 (Vring_bell_function, device_list, initial_device) 14609 (init_kboard): Initialize Vkeyboard_translate_table.
14610 (next_device_id, ring_bell, update_begin, update_end) 14610 (syms_of_keyboard): Use DEFVAR_KBOARD to define
14611 (set_terminal_window, cursor_to, raw_cursor_to) 14611 Vkeyboard_translate_table. Update doc strings. Update docs of
14612 (clear_to_end, clear_frame, clear_end_of_line) 14612 local-function-key-map and function-key-map.
14613 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines) 14613
14614 (Fdisplay_name, create_device, delete_device): Move to terminal.c. 14614 * terminal.c: New file.
14615 (syms_of_term): Move their initialization to terminal.c. 14615
14616 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p) 14616 * term.c: Include errno.h.
14617 (Ftty_display_color_cells) 14617 (Vring_bell_function, device_list, initial_device)
14618 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output) 14618 (next_device_id, ring_bell, update_begin, update_end)
14619 (clear_tty_hooks, set_tty_hooks) 14619 (set_terminal_window, cursor_to, raw_cursor_to)
14620 (init_tty, maybe_fatal): New functions. 14620 (clear_to_end, clear_frame, clear_end_of_line)
14621 (Ftty_type): Return nil if terminal is not on a tty instead of 14621 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
14622 throwing an error. Doc update. 14622 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
14623 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>: 14623 (syms_of_term): Move their initialization to terminal.c.
14624 Doc update. Initialize new subrs and variables. 14624 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
14625 (delete_tty): Use terminal->deleted. 14625 (Ftty_display_color_cells)
14626 (tty_set_terminal_modes): Rename from set_terminal_modes. 14626 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
14627 (tty_reset_terminal_modes): Rename from reset_terminal_modes. 14627 (clear_tty_hooks, set_tty_hooks)
14628 (set_scroll_region): Rename to `tty_set_scroll_region'. 14628 (init_tty, maybe_fatal): New functions.
14629 (turn_on_insert): Rename to `tty_turn_on_insert'. 14629 (Ftty_type): Return nil if terminal is not on a tty instead of
14630 (turn_off_insert): Rename to `tty_turn_off_insert'. 14630 throwing an error. Doc update.
14631 (turn_off_highlight): Rename to `tty_turn_off_highlight'. 14631 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
14632 (turn_on_highlight): Rename to `tty_turn_on_highlight'. 14632 Doc update. Initialize new subrs and variables.
14633 (toggle_highligh): Rename to `tty_toggle_highlight'. 14633 (delete_tty): Use terminal->deleted.
14634 (background_highlight): Rename to `tty_background_highlight'. 14634 (tty_set_terminal_modes): Rename from set_terminal_modes.
14635 (highlight_if_desired): Rename to `tty_highlight_if_desired'. 14635 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
14636 (tty_ring_bell, tty_update_end, tty_set_terminal_window) 14636 (set_scroll_region): Rename to `tty_set_scroll_region'.
14637 (tty_set_scroll_region, tty_background_highlight) 14637 (turn_on_insert): Rename to `tty_turn_on_insert'.
14638 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end) 14638 (turn_off_insert): Rename to `tty_turn_off_insert'.
14639 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs) 14639 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
14640 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines) 14640 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
14641 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty): 14641 (toggle_highligh): Rename to `tty_toggle_highlight'.
14642 Add static modifier. 14642 (background_highlight): Rename to `tty_background_highlight'.
14643 (tty_reset_terminal_modes, tty_set_terminal_window) 14643 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
14644 (tty_set_scroll_region, tty_background_highlight) 14644 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
14645 (tty_highlight_if_desired, tty_cursor_to) 14645 (tty_set_scroll_region, tty_background_highlight)
14646 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame) 14646 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
14647 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs) 14647 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
14648 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for 14648 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
14649 renames. 14649 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
14650 14650 Add static modifier.
146512007-08-28 Jan Djärv <jan.h.d@swipnet.se> 14651 (tty_reset_terminal_modes, tty_set_terminal_window)
14652 14652 (tty_set_scroll_region, tty_background_highlight)
14653 * keyboard.c: Qrtl is new. 14653 (tty_highlight_if_desired, tty_cursor_to)
14654 (parse_tool_bar_item): Handle :rtl keyword. 14654 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
14655 (syms_of_keyboard): Intern :rtl keyword. 14655 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
14656 14656 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
14657 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE. 14657 renames.
14658 14658
14659 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED 146592007-08-28 Jan Djärv <jan.h.d@swipnet.se>
14660 so no Lisp code is executed. 14660
14661 (file_for_image, find_rtl_image): New functions. 14661 * keyboard.c: Qrtl is new.
14662 (xg_get_image_for_pixmap): Use file_for_image. 14662 (parse_tool_bar_item): Handle :rtl keyword.
14663 (update_frame_tool_bar): If direction is RTL, use RTL image if 14663 (syms_of_keyboard): Intern :rtl keyword.
14664 defined. Use Gtk stock images if defined. 14664
14665 14665 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
146662007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14666
14667 14667 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
14668 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle 14668 so no Lisp code is executed.
14669 for nonexistent or zero-width glyph in composition glyph. 14669 (file_for_image, find_rtl_image): New functions.
14670 14670 (xg_get_image_for_pixmap): Use file_for_image.
146712007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> 14671 (update_frame_tool_bar): If direction is RTL, use RTL image if
14672 14672 defined. Use Gtk stock images if defined.
14673 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386. 14673
14674 146742007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14675 * xdisp.c (Finvisible_p): New function. 14675
14676 (syms_of_xdisp): defsubr it. 14676 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
14677 14677 for nonexistent or zero-width glyph in composition glyph.
146782007-08-24 Juanma Barranquero <lekktu@gmail.com> 14678
14679 146792007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
14680 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>: 14680
14681 Doc fixes. 14681 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
14682 14682
146832007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14683 * xdisp.c (Finvisible_p): New function.
14684 14684 (syms_of_xdisp): defsubr it.
14685 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes. 14685
14686 146862007-08-24 Juanma Barranquero <lekktu@gmail.com>
146872007-08-24 Martin Rudalics <rudalics@gmx.at> 14687
14688 14688 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
14689 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell 14689 Doc fixes.
14690 whether decoding has modified buffer contents. 14690
14691 146912007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
146922007-08-24 Jason Rumney <jasonr@gnu.org> 14692
14693 14693 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
14694 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG. 14694
14695 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols. 146952007-08-24 Martin Rudalics <rudalics@gmx.at>
14696 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them. 14696
14697 (init_svg_functions) [HAVE_NTGUI]: New function. 14697 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
14698 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines. 14698 whether decoding has modified buffer contents.
14699 (svg_load_image): Use them. 14699
14700 (svg_load_image) [HAVE_NTGUI]: Implement background. 147002007-08-24 Jason Rumney <jasonr@gnu.org>
14701 14701
147022007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14702 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
14703 14703 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
14704 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables. 14704 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
14705 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@. 14705 (init_svg_functions) [HAVE_NTGUI]: New function.
14706 (LIBX): Remove @RSVG_LIBS@. 14706 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
14707 (LIBES): Add $(RSVG_LIBS). 14707 (svg_load_image): Use them.
14708 14708 (svg_load_image) [HAVE_NTGUI]: Implement background.
14709 * image.c (svg_load_image): Blend with specified background if exists. 14709
14710 Use IMAGE_BACKGROUND. Add Mac OS Support. 147102007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14711 14711
14712 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable. 14712 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
14713 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]: 14713 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
14714 Remove macros. 14714 (LIBX): Remove @RSVG_LIBS@.
14715 [MAC_OSX] (socket_callback): Do nothing. 14715 (LIBES): Add $(RSVG_LIBS).
14716 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of 14716
14717 ReceiveNextEvent. 14717 * image.c (svg_load_image): Blend with specified background if exists.
14718 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to 14718 Use IMAGE_BACKGROUND. Add Mac OS Support.
14719 socket_callback. 14719
14720 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing. 14720 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
14721 14721 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
147222007-08-22 Glenn Morris <rgm@gnu.org> 14722 Remove macros.
14723 14723 [MAC_OSX] (socket_callback): Do nothing.
14724 * image.c (x_find_image_file): Search in etc/images/ rather than etc/. 14724 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
14725 14725 ReceiveNextEvent.
147262007-08-22 Paul Pogonyshev <pogonyshev@gmx.net> 14726 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
14727 14727 socket_callback.
14728 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS. 14728 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
14729 14729
14730 * image.c: Add support for SVG images. Some additional comments 147302007-08-22 Glenn Morris <rgm@gnu.org>
14731 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined: 14731
14732 (svg_image_p): New function to test for SVG image. 14732 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
14733 (svg_load): New function to load SVG image. 14733
14734 (svg_load_image): New function, helper for svg_load. 147342007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
14735 (Qsvg): New Lisp_object. 14735
14736 (svg_keyword_index): New enum. 14736 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
14737 (svg_format): New static `image_keyword' struct. 14737
14738 (svg_type): New static `image_type' struct. 14738 * image.c: Add support for SVG images. Some additional comments
14739 (librsvg/rsvg.h): Include it. 14739 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
14740 14740 (svg_image_p): New function to test for SVG image.
147412007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> 14741 (svg_load): New function to load SVG image.
14742 14742 (svg_load_image): New function, helper for svg_load.
14743 * lread.c (load_warn_old_style_backquotes): Fix up array size typo. 14743 (Qsvg): New Lisp_object.
14744 14744 (svg_keyword_index): New enum.
147452007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> 14745 (svg_format): New static `image_keyword' struct.
14746 14746 (svg_type): New static `image_type' struct.
14747 * lread.c (Qold_style_backquotes): New var. 14747 (librsvg/rsvg.h): Include it.
14748 (syms_of_lread): Init and staticpro it. 14748
14749 (load_warn_old_style_backquotes): New fun. 147492007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
14750 (Fload): Use them to warn about old style backquotes. 14750
14751 (end_of_file_error, Fload): Remove unused vars. 14751 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
14752 14752
14753 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare. 147532007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
14754 14754
14755 * lread.c (Vold_style_backquotes): New var. 14755 * lread.c (Qold_style_backquotes): New var.
14756 (syms_of_lread): Init and export it to Elisp. 14756 (syms_of_lread): Init and staticpro it.
14757 (read1): Set it when we find an old-style (back)quote. 14757 (load_warn_old_style_backquotes): New fun.
14758 14758 (Fload): Use them to warn about old style backquotes.
147592007-08-22 Jason Rumney <jasonr@gnu.org> 14759 (end_of_file_error, Fload): Remove unused vars.
14760 14760
14761 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator. 14761 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
14762 14762
147632007-08-22 Katsumi Yamaoka <yamaoka@jpl.org> 14763 * lread.c (Vold_style_backquotes): New var.
14764 14764 (syms_of_lread): Init and export it to Elisp.
14765 * puresize.h (BASE_PURESIZE): Increase to 1140000. 14765 (read1): Set it when we find an old-style (back)quote.
14766 14766
147672007-08-19 Richard Stallman <rms@gnu.org> 147672007-08-22 Jason Rumney <jasonr@gnu.org>
14768 14768
14769 * eval.c (Ffunction, Fquote): Signal error if not 1 argument. 14769 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
14770 14770
147712007-08-19 Andreas Schwab <schwab@suse.de> 147712007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
14772 14772
14773 * alloc.c (pure): Round PURESIZE up. 14773 * puresize.h (BASE_PURESIZE): Increase to 1140000.
14774 14774
147752007-08-17 Jan Djärv <jan.h.d@swipnet.se> 147752007-08-19 Richard Stallman <rms@gnu.org>
14776 14776
14777 * xterm.c (handle_one_xevent): Remove check that mouse click is in 14777 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
14778 active frame. 14778
14779 147792007-08-19 Andreas Schwab <schwab@suse.de>
147802007-08-16 Richard Stallman <rms@gnu.org> 14780
14781 14781 * alloc.c (pure): Round PURESIZE up.
14782 * eval.c (Fcommandp): Add parens to clarify. 14782
14783 147832007-08-17 Jan Djärv <jan.h.d@swipnet.se>
14784 * minibuf.c (Fall_completions): Use enum for type of table. 14784
14785 14785 * xterm.c (handle_one_xevent): Remove check that mouse click is in
14786 * emacs.c (USAGE2): Improve text. 14786 active frame.
14787 14787
147882007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int> 147882007-08-16 Richard Stallman <rms@gnu.org>
14789 14789
14790 * term.c (tty_default_color_capabilities): Declare static 14790 * eval.c (Fcommandp): Add parens to clarify.
14791 variables in file scope, to avoid HPUX compiler problem. 14791
14792 14792 * minibuf.c (Fall_completions): Use enum for type of table.
147932007-08-13 Jan Djärv <jan.h.d@swipnet.se> 14793
14794 14794 * emacs.c (USAGE2): Improve text.
14795 * gtkutil.c (update_frame_tool_bar): Use -1 as index 14795
14796 to gtk_toolbar_insert. 147962007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
14797 14797
147982007-08-13 Stefan Monnier <monnier@iro.umontreal.ca> 14798 * term.c (tty_default_color_capabilities): Declare static
14799 14799 variables in file scope, to avoid HPUX compiler problem.
14800 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup. 14800
14801 148012007-08-13 Jan Djärv <jan.h.d@swipnet.se>
14802 * insdel.c (reset_var_on_error): New fun. 14802
14803 (signal_before_change, signal_after_change): 14803 * gtkutil.c (update_frame_tool_bar): Use -1 as index
14804 Use it to reset (after|before)-change-functions to nil in case of error. 14804 to gtk_toolbar_insert.
14805 Bind inhibit-modification-hooks to t. 14805
14806 Don't bind (after|before)-change-functions to nil while they run. 148062007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
14807 14807
148082007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14808 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
14809 14809
14810 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when 14810 * insdel.c (reset_var_on_error): New fun.
14811 filling pixmap with stippled background. 14811 (signal_before_change, signal_after_change):
14812 14812 Use it to reset (after|before)-change-functions to nil in case of error.
148132007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14813 Bind inhibit-modification-hooks to t.
14814 14814 Don't bind (after|before)-change-functions to nil while they run.
14815 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event): 14815
14816 Don't use invisible frame as parent window for repositioning. 148162007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14817 14817
148182007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> 14818 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
14819 14819 filling pixmap with stippled background.
14820 * print.c (new_backquote_output): Rename from old_backquote_output. 14820
14821 (print): Inverse its logic (according to its name) so as to match the 148212007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14822 behavior of new_backquote_flag in lread.c. 14822
14823 14823 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
148242007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14824 Don't use invisible frame as parent window for repositioning.
14825 14825
14826 * gmalloc.c (posix_memalign): New function. 148262007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
14827 14827
14828 * macterm.c (frame_highlight, frame_unhighlight): Don't call 14828 * print.c (new_backquote_output): Rename from old_backquote_output.
14829 ActivateControl/DeactivateControl here. 14829 (print): Inverse its logic (according to its name) so as to match the
14830 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when 14830 behavior of new_backquote_flag in lread.c.
14831 frame-notice-user-settings is non-nil. 14831
14832 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter 148322007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14833 for kEventParamFMFontStyle. 14833
14834 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check 14834 * gmalloc.c (posix_memalign): New function.
14835 mac_pass_command_to_system and mac_pass_control_to_system here. 14835
14836 (XTread_socket): Call ActivateControl/DeactivateControl here. 14836 * macterm.c (frame_highlight, frame_unhighlight): Don't call
14837 (XTread_socket) [TARGET_API_MAC_CARBON]: 14837 ActivateControl/DeactivateControl here.
14838 Check mac_pass_command_to_system and mac_pass_control_to_system here. 14838 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
14839 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround 14839 frame-notice-user-settings is non-nil.
14840 for window repositioning. 14840 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
14841 14841 for kEventParamFMFontStyle.
148422007-08-08 Glenn Morris <rgm@gnu.org> 14842 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
14843 14843 mac_pass_command_to_system and mac_pass_control_to_system here.
14844 * Replace `iff' in doc-strings and comments. 14844 (XTread_socket): Call ActivateControl/DeactivateControl here.
14845 14845 (XTread_socket) [TARGET_API_MAC_CARBON]:
148462007-08-07 Chong Yidong <cyd@stupidchicken.com> 14846 Check mac_pass_command_to_system and mac_pass_control_to_system here.
14847 14847 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
14848 * xdisp.c (move_it_by_lines): Remove incorrect optimization. 14848 for window repositioning.
14849 14849
148502007-08-07 Martin Rudalics <rudalics@gmx.at> 148502007-08-08 Glenn Morris <rgm@gnu.org>
14851 14851
14852 * fileio.c (Finsert_file_contents): Run format-decode and 14852 * Replace `iff' in doc-strings and comments.
14853 after_insert_file_functions on entire buffer when REPLACE is 14853
14854 non-nil and inhibit modification_hooks and point_motion_hooks. 148542007-08-07 Chong Yidong <cyd@stupidchicken.com>
14855 For consistency, run after_insert_file_functions iff something 14855
14856 got inserted. Move signal_after_change and update_compositions 14856 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
14857 after code running after_insert_file_functions. Make sure that 14857
14858 undo_list doesn't record intermediate steps of the decoding process. 148582007-08-07 Martin Rudalics <rudalics@gmx.at>
14859 14859
148602007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14860 * fileio.c (Finsert_file_contents): Run format-decode and
14861 14861 after_insert_file_functions on entire buffer when REPLACE is
14862 * emacs.c (main) 14862 non-nil and inhibit modification_hooks and point_motion_hooks.
14863 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: 14863 For consistency, run after_insert_file_functions iff something
14864 Call malloc_enable_thread on interactive startup. 14864 got inserted. Move signal_after_change and update_compositions
14865 14865 after code running after_insert_file_functions. Make sure that
14866 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. 14866 undo_list doesn't record intermediate steps of the decoding process.
14867 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS) 14867
14868 [USE_PTHREAD]: Conditionalize with it. 148682007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14869 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) 14869
14870 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: 14870 * emacs.c (main)
14871 New functions. 14871 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
14872 14872 Call malloc_enable_thread on interactive startup.
148732007-08-06 Chong Yidong <cyd@stupidchicken.com> 14873
14874 14874 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
14875 * xdisp.c (redisplay_window): When restoring original buffer 14875 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
14876 position, make sure it is still valid. 14876 [USE_PTHREAD]: Conditionalize with it.
14877 14877 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
14878 * image.c (png_load): Ignore png-supplied background color. 14878 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
14879 14879 New functions.
148802007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14880
14881 148812007-08-06 Chong Yidong <cyd@stupidchicken.com>
14882 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value. 14882
14883 Use kCFAbsoluteTimeIntervalSince1970. 14883 * xdisp.c (redisplay_window): When restoring original buffer
14884 14884 position, make sure it is still valid.
14885 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: 14885
14886 New variable. 14886 * image.c (png_load): Ignore png-supplied background color.
14887 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog 14887
14888 event loop should be quit. 148882007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14889 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]: 14889
14890 Quit dialog event loop if quit_dialog_event_loop is set. 14890 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
14891 14891 Use kCFAbsoluteTimeIntervalSince1970.
14892 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h. 14892
14893 (Selection): New typedef. Use instead of ScrapRef. 14893 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
14894 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol. 14894 New variable.
14895 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p. 14895 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
14896 (mac_clear_selection): Rename from clear_scrap. 14896 event loop should be quit.
14897 (get_flavor_type_from_symbol): New argument SEL and subsume function of 14897 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
14898 scrap_has_target_type. All uses changed. 14898 Quit dialog event loop if quit_dialog_event_loop is set.
14899 (mac_get_selection_ownership_info, mac_valid_selection_value_p) 14899
14900 (mac_selection_has_target_p): New functions. 14900 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
14901 (mac_put_selection_value): Rename from put_scrap_string. 14901 (Selection): New typedef. Use instead of ScrapRef.
14902 (mac_get_selection_value): Rename from get_scrap_string. 14902 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
14903 (mac_get_selection_target_list): Rename from get_scrap_target_type_list. 14903 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
14904 (put_scrap_private_timestamp, scrap_has_target_type) 14904 (mac_clear_selection): Rename from clear_scrap.
14905 (get_scrap_private_timestamp): Remove functions. 14905 (get_flavor_type_from_symbol): New argument SEL and subsume function of
14906 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define. 14906 scrap_has_target_type. All uses changed.
14907 (x_own_selection, x_get_local_selection): 14907 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14908 Use mac_valid_selection_value_p. 14908 (mac_selection_has_target_p): New functions.
14909 (x_own_selection): Don't use put_scrap_private_timestamp. 14909 (mac_put_selection_value): Rename from put_scrap_string.
14910 Record OWNERSHIP-INFO into Vselection_alist instead. 14910 (mac_get_selection_value): Rename from get_scrap_string.
14911 (x_get_local_selection): Don't check type if request is local. 14911 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
14912 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp. 14912 (put_scrap_private_timestamp, scrap_has_target_type)
14913 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead. 14913 (get_scrap_private_timestamp): Remove functions.
14914 14914 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
149152007-08-04 Jan Djärv <jan.h.d@swipnet.se> 14915 (x_own_selection, x_get_local_selection):
14916 14916 Use mac_valid_selection_value_p.
14917 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s, 14917 (x_own_selection): Don't use put_scrap_private_timestamp.
14918 add comment explaining why. 14918 Record OWNERSHIP-INFO into Vselection_alist instead.
14919 14919 (x_get_local_selection): Don't check type if request is local.
149202007-08-03 Richard Stallman <rms@gnu.org> 14920 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
14921 14921 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
14922 * fileio.c (Fvisited_file_modtime): Use make_time. 14922
14923 149232007-08-04 Jan Djärv <jan.h.d@swipnet.se>
149242007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) 14924
14925 14925 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
14926 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained 14926 add comment explaining why.
14927 build. 14927
14928 149282007-08-03 Richard Stallman <rms@gnu.org>
149292007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> 14929
14930 14930 * fileio.c (Fvisited_file_modtime): Use make_time.
14931 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT. 14931
14932 149322007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
149332007-07-30 Katsumi Yamaoka <yamaoka@jpl.org> 14933
14934 14934 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
14935 * puresize.h (BASE_PURESIZE): Increase to 1130000. 14935 build.
14936 14936
149372007-07-30 Richard Stallman <rms@gnu.org> 149372007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
14938 14938
14939 * lread.c (readevalloop, read1): Treat NBSP as whitespace. 14939 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
14940 14940
149412007-07-29 Jan Djärv <jan.h.d@swipnet.se> 149412007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
14942 14942
14943 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed. 14943 * puresize.h (BASE_PURESIZE): Increase to 1130000.
14944 14944
149452007-07-28 Nick Roberts <nickrob@snap.net.nz> 149452007-07-30 Richard Stallman <rms@gnu.org>
14946 14946
14947 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for 14947 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
14948 remote default-directory. 14948
14949 149492007-07-29 Jan Djärv <jan.h.d@swipnet.se>
14950 * buffer.c (mode-line-format): Update doc string. 14950
14951 14951 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
149522007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 14952
14953 149532007-07-28 Nick Roberts <nickrob@snap.net.nz>
14954 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to 14954
14955 scroll bar gap. 14955 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
14956 (x_scroll_bar_create): Set bar->fringe_extended_p. 14956 remote default-directory.
14957 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars 14957
14958 on frame edge. Check fringe background extension. Don't clear 14958 * buffer.c (mode-line-format): Update doc string.
14959 extended fringe background area. 14959
14960 149602007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14961 * w32term.h (struct scroll_bar): New member fringe_extended_p. 14961
14962 (w32_fill_area): Enclose multiple statements with do ... while (0). 14962 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
14963 14963 scroll bar gap.
14964 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: 14964 (x_scroll_bar_create): Set bar->fringe_extended_p.
14965 Extend fringe background to scroll bar gap. 14965 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
14966 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: 14966 on frame edge. Check fringe background extension. Don't clear
14967 Set bar->fringe_extended_p. 14967 extended fringe background area.
14968 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: 14968
14969 Put leftmost/rightmost scroll bars on frame edge. Check fringe 14969 * w32term.h (struct scroll_bar): New member fringe_extended_p.
14970 background extension. Don't clear extended fringe background area. 14970 (w32_fill_area): Enclose multiple statements with do ... while (0).
14971 14971
14972 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: 14972 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
14973 New member fringe_extended_p. 14973 Extend fringe background to scroll bar gap.
14974 14974 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
149752007-07-25 Glenn Morris <rgm@gnu.org> 14975 Set bar->fringe_extended_p.
14976 14976 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14977 * Relicense all FSF files to GPLv3 or later. 14977 Put leftmost/rightmost scroll bars on frame edge. Check fringe
14978 14978 background extension. Don't clear extended fringe background area.
14979 * COPYING: Switch to GPLv3. 14979
14980 14980 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
149812007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> 14981 New member fringe_extended_p.
14982 14982
14983 * eval.c (Fcommandp): Pay attention to the `interactive-form' property. 149832007-07-25 Glenn Morris <rgm@gnu.org>
14984 14984
14985 * data.c (Finteractive_form): Check for the presence of an 14985 * Relicense all FSF files to GPLv3 or later.
14986 `interactive-form' symbol property more thoroughly. 14986
14987 14987 * COPYING: Switch to GPLv3.
14988 * data.c (Finteractive_form): Use an `interactive-form' property if 14988
14989 present, analogous to the function-documentation property. 149892007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
14990 14990
149912007-07-24 Jason Rumney <jasonr@gnu.org> 14991 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
14992 14992
14993 * w32fns.c (x_real_positions): Get real position from OS instead of 14993 * data.c (Finteractive_form): Check for the presence of an
14994 calculating it. 14994 `interactive-form' symbol property more thoroughly.
14995 14995
149962007-07-23 Jason Rumney <jasonr@gnu.org> 14996 * data.c (Finteractive_form): Use an `interactive-form' property if
14997 14997 present, analogous to the function-documentation property.
14998 * filelock.c (current_lock_owner): Allow for @ sign in username. 14998
14999 149992007-07-24 Jason Rumney <jasonr@gnu.org>
150002007-07-22 Nick Roberts <nickrob@snap.net.nz> 15000
15001 15001 * w32fns.c (x_real_positions): Get real position from OS instead of
15002 * xdisp.c (decode_mode_spec): Add case 'R' for to test for 15002 calculating it.
15003 remote default-directory. 15003
15004 150042007-07-23 Jason Rumney <jasonr@gnu.org>
15005 * buffer.c (mode-line-format): Describe above case in doc string. 15005
15006 15006 * filelock.c (current_lock_owner): Allow for @ sign in username.
150072007-07-20 Eli Zaretskii <eliz@gnu.org> 15007
15008 150082007-07-22 Nick Roberts <nickrob@snap.net.nz>
15009 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): 15009
15010 Define if not defined. 15010 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
15011 15011 remote default-directory.
150122007-07-18 Jason Rumney <jasonr@gnu.org> 15012
15013 15013 * buffer.c (mode-line-format): Describe above case in doc string.
15014 * w32proc.c (w32_executable_type): Handle 64 bit executables. 15014
15015 150152007-07-20 Eli Zaretskii <eliz@gnu.org>
150162007-07-18 Richard Stallman <rms@gnu.org> 15016
15017 15017 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
15018 * data.c (Fsetq_default): Doc fix. 15018 Define if not defined.
15019 15019
15020 * eval.c (Fsetq): Doc fix. 150202007-07-18 Jason Rumney <jasonr@gnu.org>
15021 15021
150222007-07-18 Juanma Barranquero <lekktu@gmail.com> 15022 * w32proc.c (w32_executable_type): Handle 64 bit executables.
15023 15023
15024 * coding.c (Ffind_operation_coding_system): 150242007-07-18 Richard Stallman <rms@gnu.org>
15025 * eval.c (For, Fand): Doc fixes. 15025
15026 Reported by Johan Bockgård. 15026 * data.c (Fsetq_default): Doc fix.
15027 15027
150282007-07-18 Jan Djärv <jan.h.d@swipnet.se> 15028 * eval.c (Fsetq): Doc fix.
15029 15029
15030 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame. 150302007-07-18 Juanma Barranquero <lekktu@gmail.com>
15031 15031
15032 * xterm.h: Declare x_ewmh_activate_frame. 15032 * coding.c (Ffind_operation_coding_system):
15033 15033 * eval.c (For, Fand): Doc fixes.
15034 * xterm.c (x_ewmh_activate_frame): New function. 15034 Reported by Johan Bockgård.
15035 (XTframe_raise_lower): Move code to x_ewmh_activate_frame. 15035
15036 150362007-07-18 Jan Djärv <jan.h.d@swipnet.se>
150372007-07-17 Martin Rudalics <rudalics@gmx.at> 15037
15038 15038 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
15039 * window.c (Fdisplay_buffer): If largest or LRU window is the 15039
15040 only window, split it even if it is not eligible for splitting. 15040 * xterm.h: Declare x_ewmh_activate_frame.
15041 This restores the original behavior broken by the 2007-07-15 15041
15042 change. 15042 * xterm.c (x_ewmh_activate_frame): New function.
15043 15043 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
150442007-07-17 Glenn Morris <rgm@gnu.org> 15044
15045 150452007-07-17 Martin Rudalics <rudalics@gmx.at>
15046 * abbrev.c (abbrev_check_chars): New function. 15046
15047 (Fdefine_global_abbrev, Fdefine_mode_abbrev): 15047 * window.c (Fdisplay_buffer): If largest or LRU window is the
15048 Call abbrev_check_chars to check abbrev characters are word 15048 only window, split it even if it is not eligible for splitting.
15049 constituents. Doc fix. 15049 This restores the original behavior broken by the 2007-07-15
15050 15050 change.
150512007-07-17 Stefan Monnier <monnier@iro.umontreal.ca> 15051
15052 150522007-07-17 Glenn Morris <rgm@gnu.org>
15053 * process.c (Fstart_process, Fmake_network_process) 15053
15054 (read_process_output): Fix up last changes. 15054 * abbrev.c (abbrev_check_chars): New function.
15055 15055 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
150562007-07-16 Eli Zaretskii <eliz@gnu.org> 15056 Call abbrev_check_chars to check abbrev characters are word
15057 15057 constituents. Doc fix.
15058 * makefile.w32-in (clean): Don't delete *~. 15058
15059 150592007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
150602007-07-16 Andreas Schwab <schwab@suse.de> 15060
15061 15061 * process.c (Fstart_process, Fmake_network_process)
15062 * window.c (Fdisplay_buffer): Use NILP. 15062 (read_process_output): Fix up last changes.
15063 (Fset_window_scroll_bars): Likewise. 15063
15064 150642007-07-16 Eli Zaretskii <eliz@gnu.org>
150652007-07-15 Martin Rudalics <rudalics@gmx.at> 15065
15066 15066 * makefile.w32-in (clean): Don't delete *~.
15067 * window.c (window_min_size_2): New function. 15067
15068 (window_min_size_1, size_window, Fdisplay_buffer) 150682007-07-16 Andreas Schwab <schwab@suse.de>
15069 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid 15069
15070 windows without mode- or header-lines when window-min-height is 15070 * window.c (Fdisplay_buffer): Use NILP.
15071 too small. 15071 (Fset_window_scroll_bars): Likewise.
15072 (size_window): Reset nodelete_p after testing it, following an 15072
15073 earlier note by Kim F. Storm. 150732007-07-15 Martin Rudalics <rudalics@gmx.at>
15074 (display_buffer): Do not set split_height_threshold to twice the 15074
15075 value of window_min_height to avoid changing the value of a 15075 * window.c (window_min_size_2): New function.
15076 customizable variable. Rather explicitly check whether the 15076 (window_min_size_1, size_window, Fdisplay_buffer)
15077 height of the window that shall be splitted is at least as large 15077 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
15078 as split_height_threshold. 15078 windows without mode- or header-lines when window-min-height is
15079 (Fwindow_full_width_p): New defun. 15079 too small.
15080 (syms_of_window): Defsubr it. 15080 (size_window): Reset nodelete_p after testing it, following an
15081 15081 earlier note by Kim F. Storm.
15082 * window.h: Add EXFUN for Fwindow_full_width_p. 15082 (display_buffer): Do not set split_height_threshold to twice the
15083 15083 value of window_min_height to avoid changing the value of a
150842007-07-14 Jason Rumney <jasonr@gnu.org> 15084 customizable variable. Rather explicitly check whether the
15085 15085 height of the window that shall be splitted is at least as large
15086 * process.c [WINDOWSNT]: Don't undefine AF_INET6. 15086 as split_height_threshold.
15087 15087 (Fwindow_full_width_p): New defun.
150882007-07-14 Richard Stallman <rms@gnu.org> 15088 (syms_of_window): Defsubr it.
15089 15089
15090 * eval.c (maybe_call_debugger): New function. 15090 * window.h: Add EXFUN for Fwindow_full_width_p.
15091 (find_handler_clause): Use maybe_call_debugger. 15091
15092 Call it when the handler says `debug'. 150922007-07-14 Jason Rumney <jasonr@gnu.org>
15093 Eliminate DEBUGGER_VALUE_PTR. 15093
15094 (Fsignal): Eliminate debugger_value. 15094 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
15095 (Qdebug): New variable. 15095
15096 (syms_of_eval): Initialize it. 150962007-07-14 Richard Stallman <rms@gnu.org>
15097 15097
150982007-07-14 Juanma Barranquero <lekktu@gmail.com> 15098 * eval.c (maybe_call_debugger): New function.
15099 15099 (find_handler_clause): Use maybe_call_debugger.
15100 * eval.c (Fprogn): 15100 Call it when the handler says `debug'.
15101 * keyboard.c (Ftrack_mouse): 15101 Eliminate DEBUGGER_VALUE_PTR.
15102 * print.c (Fwith_output_to_temp_buffer): 15102 (Fsignal): Eliminate debugger_value.
15103 * window.c (Fsave_window_excursion): Doc fix. 15103 (Qdebug): New variable.
15104 15104 (syms_of_eval): Initialize it.
151052007-07-13 Stefan Monnier <monnier@iro.umontreal.ca> 15105
15106 151062007-07-14 Juanma Barranquero <lekktu@gmail.com>
15107 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. 15107
15108 15108 * eval.c (Fprogn):
151092007-07-12 Stefan Monnier <monnier@iro.umontreal.ca> 15109 * keyboard.c (Ftrack_mouse):
15110 15110 * print.c (Fwith_output_to_temp_buffer):
15111 * process.h (struct Lisp_Process): Turn slots infd, outfd, 15111 * window.c (Fsave_window_excursion): Doc fix.
15112 kill_without_query, pty_flag, tick, update_tick, decoding_carryover, 15112
15113 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering, 151132007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
15114 read_output_delay, and read_output_skip from Lisp_Objects to ints. 15114
15115 Remove unused encoding_carryover. 15115 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
15116 * process.c: Adjust all functions accordingly. 15116
15117 151172007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
151182007-07-12 Richard Stallman <rms@gnu.org> 15118
15119 15119 * process.h (struct Lisp_Process): Turn slots infd, outfd,
15120 * term.c: Include unistd.h only if HAVE_UNISTD_H. 15120 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
15121 15121 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
151222007-07-11 Jason Rumney <jasonr@gnu.org> 15122 read_output_delay, and read_output_skip from Lisp_Objects to ints.
15123 15123 Remove unused encoding_carryover.
15124 * makefile.w32-in (LIBS): Include OLE32. 15124 * process.c: Adjust all functions accordingly.
15125 15125
15126 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM. 151262007-07-12 Richard Stallman <rms@gnu.org>
15127 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM. 15127
15128 15128 * term.c: Include unistd.h only if HAVE_UNISTD_H.
151292007-07-11 Stefan Monnier <monnier@iro.umontreal.ca> 15129
15130 151302007-07-11 Jason Rumney <jasonr@gnu.org>
15131 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer. 15131
15132 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned 15132 * makefile.w32-in (LIBS): Include OLE32.
15133 from a Lisp_Object into a bare pointer. 15133
15134 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): 15134 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
15135 Adjust the code correspondingly. 15135 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
15136 15136
15137 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'. 151372007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
15138 15138
15139 * term.c: Include unistd.h for ttyname, used in handle_one_term_event. 15139 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
15140 (term_show_mouse_face): Remove unused var `j'. 15140 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
15141 (handle_one_term_event): Remove unused vars `i' and `j'. 15141 from a Lisp_Object into a bare pointer.
15142 Don't cast return value of ttyname since it's not necessary. 15142 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15143 15143 Adjust the code correspondingly.
151442007-07-10 Stefan Monnier <monnier@iro.umontreal.ca> 15144
15145 15145 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
15146 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using 15146
15147 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>. 15147 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
15148 15148 (term_show_mouse_face): Remove unused var `j'.
15149 * fns.c (map_char_table): Use an array of int for `indices' rather than 15149 (handle_one_term_event): Remove unused vars `i' and `j'.
15150 an array of Lisp_Objects (which are only ever integers anyway). 15150 Don't cast return value of ttyname since it's not necessary.
15151 (Fmap_char_table): Update caller. 15151
15152 * lisp.h: Update prototype. 151522007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
15153 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap): 15153
15154 * fontset.c (Ffontset_info): 15154 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
15155 * casetab.c (set_case_table): Update callers. 15155 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
15156 15156
15157 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions. 15157 * fns.c (map_char_table): Use an array of int for `indices' rather than
15158 15158 an array of Lisp_Objects (which are only ever integers anyway).
15159 * keymap.c (struct accessible_keymaps_data) 15159 (Fmap_char_table): Update caller.
15160 (struct where_is_internal_data): New structures. 15160 * lisp.h: Update prototype.
15161 (accessible_keymaps_1, where_is_internal_1): Use them to change 15161 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
15162 interface to adhere to the one used by map_keymap. 15162 * fontset.c (Ffontset_info):
15163 (Faccessible_keymaps, where_is_internal): Use map_keymap. 15163 * casetab.c (set_case_table): Update callers.
15164 (accessible_keymaps_char_table, where_is_internal_2): Remove. 15164
15165 15165 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
15166 * keymap.h (map_keymap_function_t): More informative prototype. 15166
15167 15167 * keymap.c (struct accessible_keymaps_data)
151682007-07-10 Guanpeng Xu <herberteuler@hotmail.com> 15168 (struct where_is_internal_data): New structures.
15169 15169 (accessible_keymaps_1, where_is_internal_1): Use them to change
15170 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars. 15170 interface to adhere to the one used by map_keymap.
15171 (looking_at_1): Don't change search_regs and last_thing_searched 15171 (Faccessible_keymaps, where_is_internal): Use map_keymap.
15172 if `inhibit-changing-match-data' is non-nil. 15172 (accessible_keymaps_char_table, where_is_internal_2): Remove.
15173 (string_match_1, search_buffer, set_search_regs): Likewise. 15173
15174 (syms_of_search): Add Lisp level definition for 15174 * keymap.h (map_keymap_function_t): More informative prototype.
15175 `inhibit-changing-match-data' and set it to nil. 15175
15176 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute 151762007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
15177 start and end of the match, instead of using values in search_regs. 15177
15178 15178 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
151792007-07-01 Stefan Monnier <monnier@iro.umontreal.ca> 15179 (looking_at_1): Don't change search_regs and last_thing_searched
15180 15180 if `inhibit-changing-match-data' is non-nil.
15181 * minibuf.c (Fcompleting_read): New value `confirm-only' 15181 (string_match_1, search_buffer, set_search_regs): Likewise.
15182 for `require-match'. 15182 (syms_of_search): Add Lisp level definition for
15183 15183 `inhibit-changing-match-data' and set it to nil.
151842007-06-28 Stefan Monnier <monnier@iro.umontreal.ca> 15184 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
15185 15185 start and end of the match, instead of using values in search_regs.
15186 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as 15186
15187 part of the 2007-06-27 change to syms_of_fileio. 151872007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
15188 15188
151892007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15189 * minibuf.c (Fcompleting_read): New value `confirm-only'
15190 15190 for `require-match'.
15191 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): 15191
15192 Check WINDOWP before using XWINDOW. Consolidate return statements. 151922007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
15193 15193
151942007-06-27 Richard Stallman <rms@gnu.org> 15194 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
15195 15195 part of the 2007-06-27 change to syms_of_fileio.
15196 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix. 15196
15197 151972007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
151982007-06-27 Juanma Barranquero <lekktu@gmail.com> 15198
15199 15199 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
15200 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring. 15200 Check WINDOWP before using XWINDOW. Consolidate return statements.
15201 15201
152022007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 152022007-06-27 Richard Stallman <rms@gnu.org>
15203 15203
15204 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h. 15204 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
15205 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable. 15205
15206 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros. 152062007-06-27 Juanma Barranquero <lekktu@gmail.com>
15207 (_free_internal, memalign): Use them. 15207
15208 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]: 15208 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
15209 Initialize to PTHREAD_MUTEX_INITIALIZER. 15209
15210 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex. 152102007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15211 (morecore_nolock): Rename from morecore. All uses changed. 15211
15212 Use only nolock versions of internal allocation functions. 15212 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
15213 (_malloc_internal_nolock, _realloc_internal_nolock) 15213 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
15214 (_free_internal_nolock): New functions created from 15214 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
15215 _malloc_internal, _realloc_internal, and _free_internal. 15215 (_free_internal, memalign): Use them.
15216 (_malloc_internal, _realloc_internal, _free_internal): Use them. 15216 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
15217 Copy hook value to automatic variable before its use. 15217 Initialize to PTHREAD_MUTEX_INITIALIZER.
15218 (memalign): Copy hook value to automatic variable before its use. 15218 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
15219 15219 (morecore_nolock): Rename from morecore. All uses changed.
152202007-06-26 Kenichi Handa <handa@m17n.org> 15220 Use only nolock versions of internal allocation functions.
15221 15221 (_malloc_internal_nolock, _realloc_internal_nolock)
15222 * coding.c (Ffind_operation_coding_system): Docstring improved. 15222 (_free_internal_nolock): New functions created from
15223 (syms_of_coding): Docstring of `file-coding-system-alist' improved. 15223 _malloc_internal, _realloc_internal, and _free_internal.
15224 15224 (_malloc_internal, _realloc_internal, _free_internal): Use them.
152252007-06-25 David Kastrup <dak@gnu.org> 15225 Copy hook value to automatic variable before its use.
15226 15226 (memalign): Copy hook value to automatic variable before its use.
15227 * keymap.c (Fcurrent_active_maps): Add `position' argument. 15227
15228 (Fwhere_is_internal): Adjust call to `current-active-maps' to 152282007-06-26 Kenichi Handa <handa@m17n.org>
15229 cater for additional parameter. 15229
15230 15230 * coding.c (Ffind_operation_coding_system): Docstring improved.
15231 * keymap.h: Adjust number of parameters to `current-active-maps'. 15231 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
15232 15232
15233 * doc.c (Fsubstitute_command_keys): Adjust call of 152332007-06-25 David Kastrup <dak@gnu.org>
15234 `current-active-maps'. 15234
15235 15235 * keymap.c (Fcurrent_active_maps): Add `position' argument.
152362007-06-25 David Kastrup <dak@gnu.org> 15236 (Fwhere_is_internal): Adjust call to `current-active-maps' to
15237 15237 cater for additional parameter.
15238 * callint.c (Fcall_interactively): Make the parsing of interactive 15238
15239 specs somewhat more readable. 15239 * keymap.h: Adjust number of parameters to `current-active-maps'.
15240 15240
152412007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15241 * doc.c (Fsubstitute_command_keys): Adjust call of
15242 15242 `current-active-maps'.
15243 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background 15243
15244 to scroll bar gap also when bitmap fills fringe. Draw only foreground 152442007-06-25 David Kastrup <dak@gnu.org>
15245 if extended background has already been filled. 15245
15246 15246 * callint.c (Fcall_interactively): Make the parsing of interactive
152472007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15247 specs somewhat more readable.
15248 15248
15249 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI. 152492007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15250 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING. 15250
15251 15251 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
15252 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: 15252 to scroll bar gap also when bitmap fills fringe. Draw only foreground
15253 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p 15253 if extended background has already been filled.
15254 in #if 0 as it is not compatible with y-or-n-p-with-timeout. 15254
15255 (timer_check) [TARGET_API_MAC_CARBON]: Add extern. 152552007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15256 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop 15256
15257 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls. 15257 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
15258 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function. 15258 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
15259 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind. 15259
15260 Run timers during dialog popup. 15260 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
15261 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated. 15261 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
15262 15262 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
152632007-06-21 Jason Rumney <jasonr@gnu.org> 15263 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
15264 15264 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
15265 * image.c (convert_mono_to_color_image): Swap fore and background. 15265 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
15266 15266 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
152672007-06-20 Jason Rumney <jasonr@gnu.org> 15267 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
15268 15268 Run timers during dialog popup.
15269 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. 15269 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
15270 (w32_free_bdf_font): Unmap memory not handle. 15270
15271 152712007-06-21 Jason Rumney <jasonr@gnu.org>
152722007-06-20 Sam Steingold <sds@gnu.org> 15272
15273 15273 * image.c (convert_mono_to_color_image): Swap fore and background.
15274 * gmalloc.c (__morecore): Fix the declaration to comply with the 15274
15275 definition. 152752007-06-20 Jason Rumney <jasonr@gnu.org>
15276 15276
152772007-06-20 Juanma Barranquero <lekktu@gmail.com> 15277 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
15278 15278 (w32_free_bdf_font): Unmap memory not handle.
15279 * w32term.c (w32_delete_display): Remove leftover declaration. 15279
15280 (w32_define_cursor, w32_initialize): Make static. 152802007-06-20 Sam Steingold <sds@gnu.org>
15281 15281
15282 * w32.c (_wsa_errlist): Fix typo in error message. 15282 * gmalloc.c (__morecore): Fix the declaration to comply with the
15283 (init_environment): Ignore any environment variable from the 15283 definition.
15284 registry having a null value. 15284
15285 152852007-06-20 Juanma Barranquero <lekktu@gmail.com>
152862007-06-20 Glenn Morris <rgm@gnu.org> 15286
15287 15287 * w32term.c (w32_delete_display): Remove leftover declaration.
15288 * Makefile.in (LIBGIF): Default to -lgif. 15288 (w32_define_cursor, w32_initialize): Make static.
15289 15289
152902007-06-17 Jason Rumney <jasonr@gnu.org> 15290 * w32.c (_wsa_errlist): Fix typo in error message.
15291 15291 (init_environment): Ignore any environment variable from the
15292 * w32menu.c (add_menu_item): Don't use multibyte string functions on 15292 registry having a null value.
15293 unicode strings. 15293
15294 152942007-06-20 Glenn Morris <rgm@gnu.org>
152952007-06-16 Juanma Barranquero <lekktu@gmail.com> 15295
15296 15296 * Makefile.in (LIBGIF): Default to -lgif.
15297 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>: 15297
15298 Fix typo in docstring. 152982007-06-17 Jason Rumney <jasonr@gnu.org>
15299 15299
153002007-06-16 Eli Zaretskii <eliz@gnu.org> 15300 * w32menu.c (add_menu_item): Don't use multibyte string functions on
15301 15301 unicode strings.
15302 * w32menu.c (add_menu_item): Escape `&' characters in menu items 15302
15303 and their keybindings. 153032007-06-16 Juanma Barranquero <lekktu@gmail.com>
15304 15304
153052007-06-15 Chong Yidong <cyd@stupidchicken.com> 15305 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
15306 15306 Fix typo in docstring.
15307 * composite.c (update_compositions): Fix last fix. 15307
15308 153082007-06-16 Eli Zaretskii <eliz@gnu.org>
153092007-06-14 Jason Rumney <jasonr@gnu.org> 15309
15310 15310 * w32menu.c (add_menu_item): Escape `&' characters in menu items
15311 * w32.c (get_process_times_fn): New function pointer. 15311 and their keybindings.
15312 (globals_of_w32): Intialize it if present in kernel32.dll. 15312
15313 (w32_get_internal_run_time): New function. 153132007-06-15 Chong Yidong <cyd@stupidchicken.com>
15314 15314
15315 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it. 15315 * composite.c (update_compositions): Fix last fix.
15316 15316
153172007-06-14 Kenichi Handa <handa@etlken.m17n.org> 153172007-06-14 Jason Rumney <jasonr@gnu.org>
15318 15318
15319 * composite.c (update_compositions): Check the validness of 15319 * w32.c (get_process_times_fn): New function pointer.
15320 compositions. 15320 (globals_of_w32): Intialize it if present in kernel32.dll.
15321 15321 (w32_get_internal_run_time): New function.
153222007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15322
15323 15323 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
15324 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar. 15324
15325 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it. 153252007-06-14 Kenichi Handa <handa@etlken.m17n.org>
15326 15326
15327 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity. 15327 * composite.c (update_compositions): Check the validness of
15328 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR. 15328 compositions.
15329 15329
15330 * macgui.h (USE_MAC_TOOLBAR): New define. 153302007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15331 15331
15332 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): 15332 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
15333 Return immediately unless popup is activated. 15333 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
15334 15334
15335 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe 15335 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
15336 background to scroll bar gap. 15336 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
15337 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p. 15337
15338 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost 15338 * macgui.h (USE_MAC_TOOLBAR): New define.
15339 scroll bars on frame edge. Check fringe background extension. 15339
15340 Don't clear extended fringe background area. 15340 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
15341 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER) 15341 Return immediately unless popup is activated.
15342 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P) 15342
15343 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID): 15343 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
15344 [USE_MAC_TOOLBAR]: New macros. 15344 background to scroll bar gap.
15345 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity) 15345 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
15346 (mac_handle_toolbar_event, mac_image_spec_to_cg_image) 15346 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
15347 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar) 15347 scroll bars on frame edge. Check fringe background extension.
15348 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event) 15348 Don't clear extended fringe background area.
15349 [USE_MAC_TOOLBAR]: New functions. 15349 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
15350 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window 15350 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
15351 manually if previous repositioning has failed. 15351 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
15352 (mac_handle_keyboard_event): Use precomputed event kind. 15352 [USE_MAC_TOOLBAR]: New macros.
15353 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region 15353 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
15354 as tool bar item click. Handle mouse movement over tool bar items. 15354 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
15355 15355 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
15356 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member 15356 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
15357 toolbar_win_gravity. 15357 [USE_MAC_TOOLBAR]: New functions.
15358 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p. 15358 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
15359 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]: 15359 manually if previous repositioning has failed.
15360 Add externs. 15360 (mac_handle_keyboard_event): Use precomputed event kind.
15361 15361 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
15362 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window) 15362 as tool bar item click. Handle mouse movement over tool bar items.
15363 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display. 15363
15364 15364 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
153652007-06-14 Chong Yidong <cyd@stupidchicken.com> 15365 toolbar_win_gravity.
15366 15366 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
15367 * image.c (search_image_cache): Remove unused variable. 15367 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
15368 15368 Add externs.
153692007-06-13 Chong Yidong <cyd@stupidchicken.com> 15369
15370 15370 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
15371 * xfns.c, xmenu.c: Link to xaw3d if available. 15371 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
15372 15372
153732007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 153732007-06-14 Chong Yidong <cyd@stupidchicken.com>
15374 15374
15375 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members 15375 * image.c (search_image_cache): Remove unused variable.
15376 frame_foreground and frame_background. 15376
15377 153772007-06-13 Chong Yidong <cyd@stupidchicken.com>
15378 * image.c (lookup_image): Save frame foreground and background colors. 15378
15379 (search_image_cache): Check if saved and current frame colors match. 15379 * xfns.c, xmenu.c: Link to xaw3d if available.
15380 15380
153812007-06-12 Stefan Monnier <monnier@iro.umontreal.ca> 153812007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15382 15382
15383 * regex.c (regex_compile): Remove the `regnum' counter. 15383 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
15384 Use bufp->re_nsub instead. Add support for \(?N:RE\). 15384 frame_foreground and frame_background.
15385 15385
153862007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> 15386 * image.c (lookup_image): Save frame foreground and background colors.
15387 15387 (search_image_cache): Check if saved and current frame colors match.
15388 * term.c: Include intervals.h to declare Fget_text_property. 15388
15389 153892007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
153902007-06-10 Jason Rumney <jasonr@gnu.org> 15390
15391 15391 * regex.c (regex_compile): Remove the `regnum' counter.
15392 * w32fns.c (Fx_file_dialog): Take size from struct not pointer. 15392 Use bufp->re_nsub instead. Add support for \(?N:RE\).
15393 15393
153942007-06-08 Juanma Barranquero <lekktu@gmail.com> 153942007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15395 15395
15396 * callint.c (Fcall_interactively): 15396 * term.c: Include intervals.h to declare Fget_text_property.
15397 * editfns.c (Fdelete_and_extract_region): 15397
15398 * fileio.c (Fread_file_name): 153982007-06-10 Jason Rumney <jasonr@gnu.org>
15399 * fns.c (Fmapconcat): 15399
15400 * keyboard.c (cmd_error_internal): 15400 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
15401 * keymap.c (Fkey_description): 15401
15402 * lread.c (openp): 154022007-06-08 Juanma Barranquero <lekktu@gmail.com>
15403 * minibuf.c (read_minibuf): 15403
15404 * search.c (wordify): 15404 * callint.c (Fcall_interactively):
15405 * sunfns.c (sel_read): 15405 * editfns.c (Fdelete_and_extract_region):
15406 * xdisp.c (Fformat_mode_line, syms_of_xdisp): 15406 * fileio.c (Fread_file_name):
15407 * xfns.c (x_default_scroll_bar_color_parameter): 15407 * fns.c (Fmapconcat):
15408 * xmenu.c (menu_help_callback): 15408 * keyboard.c (cmd_error_internal):
15409 * xselect.c (Fx_get_atom_name): 15409 * keymap.c (Fkey_description):
15410 * xterm.c (x_term_init): Use empty_unibyte_string. 15410 * lread.c (openp):
15411 15411 * minibuf.c (read_minibuf):
154122007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change) 15412 * search.c (wordify):
15413 15413 * sunfns.c (sel_read):
15414 * alloc.c (init_strings): Initialize canonical empty strings. 15414 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
15415 (make_uninit_string, make_uninit_multibyte_string): Return appropriate 15415 * xfns.c (x_default_scroll_bar_color_parameter):
15416 canonical empty string when the requested size is 0. 15416 * xmenu.c (menu_help_callback):
15417 15417 * xselect.c (Fx_get_atom_name):
15418 * emacs.c (empty_unibyte_string): Rename from empty_string. 15418 * xterm.c (x_term_init): Use empty_unibyte_string.
15419 (empty_multibyte_string): New canonical empty string. 15419
15420 (syms_of_emacs): Don't initialize empty_string. 154202007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
15421 15421
15422 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte 15422 * alloc.c (init_strings): Initialize canonical empty strings.
15423 string, if appropriate. 15423 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
15424 (empty_unibyte_string, empty_multibyte_string): New externs. 15424 canonical empty string when the requested size is 0.
15425 (empty_string): Remove extern. 15425
15426 15426 * emacs.c (empty_unibyte_string): Rename from empty_string.
15427 * lread.c (syms_of_lread): Use empty_unibyte_string. 15427 (empty_multibyte_string): New canonical empty string.
15428 15428 (syms_of_emacs): Don't initialize empty_string.
154292007-06-07 Jason Rumney <jasonr@gnu.org> 15429
15430 15430 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
15431 * s/ms-w32.h: Don't define HAVE_TZNAME. 15431 string, if appropriate.
15432 15432 (empty_unibyte_string, empty_multibyte_string): New externs.
15433 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows. 15433 (empty_string): Remove extern.
15434 15434
154352007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15435 * lread.c (syms_of_lread): Use empty_unibyte_string.
15436 15436
15437 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT. 154372007-06-07 Jason Rumney <jasonr@gnu.org>
15438 15438
15439 * macfns.c (mac_get_window_bounds): Move extern to macterm.h. 15439 * s/ms-w32.h: Don't define HAVE_TZNAME.
15440 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse. 15440
15441 15441 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
15442 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): 15442
15443 Don't call next handler. 154432007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15444 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler): 15444
15445 Remove argument. Install handler to application. 15445 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
15446 (set_frame_menubar): Don't change deep_p. 15446
15447 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and 15447 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
15448 FRAME_OUTER_TO_INNER_DIFF_Y. 15448 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
15449 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) 15449
15450 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) 15450 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
15451 [HAVE_DIALOGS]: New macros. 15451 Don't call next handler.
15452 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog): 15452 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
15453 Use them. 15453 Remove argument. Install handler to application.
15454 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString. 15454 (set_frame_menubar): Don't change deep_p.
15455 15455 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
15456 * macselect.c [MAC_OSX] (install_service_handler): Rename from 15456 FRAME_OUTER_TO_INNER_DIFF_Y.
15457 init_service_handler. All callers changed. Return OSStatus value. 15457 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15458 15458 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15459 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. 15459 [HAVE_DIALOGS]: New macros.
15460 All callers changed so as not to call SetPortWindowPort. 15460 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
15461 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. 15461 Use them.
15462 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from 15462 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
15463 mac_draw_string_common. 15463
15464 (mac_draw_image_string_qd): Likewise. 15464 * macselect.c [MAC_OSX] (install_service_handler): Rename from
15465 (mac_draw_string_common): Use them. Add INLINE. 15465 init_service_handler. All callers changed. Return OSStatus value.
15466 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]: 15466
15467 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and 15467 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
15468 GetGlobalMouse. 15468 All callers changed so as not to call SetPortWindowPort.
15469 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X 15469 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
15470 and FRAME_OUTER_TO_INNER_DIFF_Y. 15470 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
15471 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise. 15471 mac_draw_string_common.
15472 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise. 15472 (mac_draw_image_string_qd): Likewise.
15473 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for 15473 (mac_draw_string_common): Use them. Add INLINE.
15474 repositioning window to mac_handle_window_event. 15474 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
15475 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for 15475 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
15476 saving window location to mac_handle_window_event 15476 GetGlobalMouse.
15477 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. 15477 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
15478 (install_menu_target_item_handler): Remove argument in extern. 15478 and FRAME_OUTER_TO_INNER_DIFF_Y.
15479 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): 15479 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
15480 Also accept command events. 15480 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
15481 (do_keystroke): New function created from XTread_socket. 15481 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
15482 (init_command_handler): Remove functions. 15482 repositioning window to mac_handle_window_event.
15483 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window 15483 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
15484 and save window location by kEventWindowShowing and kEventWindowHiding 15484 saving window location to mac_handle_window_event
15485 handlers here. Don't call next handler for window state change and 15485 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
15486 focus events. 15486 (install_menu_target_item_handler): Remove argument in extern.
15487 (mac_handle_application_event, mac_handle_keyboard_event) 15487 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
15488 [TARGET_API_MAC_CARBON]: New functions. 15488 Also accept command events.
15489 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for 15489 (do_keystroke): New function created from XTread_socket.
15490 kEventWindowShowing and kEventWindowHiding events. Move installation 15490 (init_command_handler): Remove functions.
15491 of mouse, font, text input and menu target item handlers to 15491 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
15492 install_application_handler. 15492 and save window location by kEventWindowShowing and kEventWindowHiding
15493 (install_application_handler) [TARGET_API_MAC_CARBON]: New function. 15493 handlers here. Don't call next handler for window state change and
15494 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: 15494 focus events.
15495 New function. 15495 (mac_handle_application_event, mac_handle_keyboard_event)
15496 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: 15496 [TARGET_API_MAC_CARBON]: New functions.
15497 Register it. 15497 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
15498 (XTread_socket) [TARGET_API_MAC_CARBON]: 15498 kEventWindowShowing and kEventWindowHiding events. Move installation
15499 Consolidate SendEventToEventTarget calls. 15499 of mouse, font, text input and menu target item handlers to
15500 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y. 15500 install_application_handler.
15501 Move application activation handler to mac_handle_application_event. 15501 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
15502 Move keyboard handler to mac_handle_keyboard_event. 15502 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15503 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke. 15503 New function.
15504 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call 15504 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15505 init_command_handler. Call install_application_handler. 15505 Register it.
15506 15506 (XTread_socket) [TARGET_API_MAC_CARBON]:
15507 * macterm.h (mac_get_window_bounds): Move extern from macfns.c. 15507 Consolidate SendEventToEventTarget calls.
15508 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros. 15508 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
15509 15509 Move application activation handler to mac_handle_application_event.
155102007-06-07 Glenn Morris <rgm@gnu.org> 15510 Move keyboard handler to mac_handle_keyboard_event.
15511 15511 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
15512 * emacs.c (main): Use `emacs-copyright' in --version output. 15512 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
15513 15513 init_command_handler. Call install_application_handler.
155142007-06-06 Chong Yidong <cyd@stupidchicken.com> 15514
15515 15515 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
15516 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. 15516 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
15517 15517
155182007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 155182007-06-07 Glenn Morris <rgm@gnu.org>
15519 15519
15520 * macfns.c (mac_window): Replace WindowPtr with WindowRef. 15520 * emacs.c (main): Use `emacs-copyright' in --version output.
15521 15521
15522 * macgui.h: Replace WindowPtr with WindowRef. 155222007-06-06 Chong Yidong <cyd@stupidchicken.com>
15523 15523
15524 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and 15524 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
15525 GetMenuRef, respectively. Replace WindowPtr with WindowRef. 15525
15526 Replace ControlHandle with ControlRef. 155262007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15527 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU. 15527
15528 15528 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
15529 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and 15529
15530 GetMenuRef, respectively. Replace WindowPtr with WindowRef. 15530 * macgui.h: Replace WindowPtr with WindowRef.
15531 Replace ControlHandle with ControlRef. 15531
15532 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead. 15532 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15533 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'. 15533 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15534 15534 Replace ControlHandle with ControlRef.
15535 * macterm.h (struct scroll_bar): Rename member control_handle_low 15535 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
15536 and control_handle_high to control_ref_low and control_ref_high. 15536
15537 All uses changed. 15537 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15538 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from 15538 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15539 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE, 15539 Replace ControlHandle with ControlRef.
15540 respectively. All uses changed. 15540 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
15541 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground) 15541 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
15542 (install_window_handler, remove_window_handler): Replace WindowPtr 15542
15543 with WindowRef in externs. 15543 * macterm.h (struct scroll_bar): Rename member control_handle_low
15544 15544 and control_handle_high to control_ref_low and control_ref_high.
155452007-06-05 Juanma Barranquero <lekktu@gmail.com> 15545 All uses changed.
15546 15546 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
15547 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. 15547 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
15548 15548 respectively. All uses changed.
155492007-06-03 Nick Roberts <nickrob@snap.net.nz> 15549 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
15550 15550 (install_window_handler, remove_window_handler): Replace WindowPtr
15551 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case. 15551 with WindowRef in externs.
15552 15552
15553 * frame.c (Fmouse_position, Fmouse_pixel_position): 155532007-06-05 Juanma Barranquero <lekktu@gmail.com>
15554 Condition on HAVE_GPM too. 15554
15555 15555 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
15556 * term.c (term_mouse_highlight): Remove unused variables. 15556
15557 (Fterm_open_connection): Set gpm_zerobased to 1. 155572007-06-03 Nick Roberts <nickrob@snap.net.nz>
15558 (term_mouse_movement, term_mouse_click, handle_one_term_event): 15558
15559 Use zero based co-ordinates. 15559 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
15560 (handle_one_term_event): Report a drag as mouse movement too. 15560
15561 15561 * frame.c (Fmouse_position, Fmouse_pixel_position):
15562 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM. 15562 Condition on HAVE_GPM too.
15563 15563
155642007-06-03 Chong Yidong <cyd@stupidchicken.com> 15564 * term.c (term_mouse_highlight): Remove unused variables.
15565 15565 (Fterm_open_connection): Set gpm_zerobased to 1.
15566 * image.c (search_image_cache): New function. Require background 15566 (term_mouse_movement, term_mouse_click, handle_one_term_event):
15567 color match if background color is unspecified in the image spec. 15567 Use zero based co-ordinates.
15568 (uncache_image, lookup_image): Use it. 15568 (handle_one_term_event): Report a drag as mouse movement too.
15569 15569
155702007-06-01 Juanma Barranquero <lekktu@gmail.com> 15570 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
15571 15571
15572 * window.c (Fshrink_window): Reflow docstring. 155722007-06-03 Chong Yidong <cyd@stupidchicken.com>
15573 15573
155742007-06-02 Chong Yidong <cyd@stupidchicken.com> 15574 * image.c (search_image_cache): New function. Require background
15575 15575 color match if background color is unspecified in the image spec.
15576 * Version 22.1 released. 15576 (uncache_image, lookup_image): Use it.
15577 15577
155782007-06-01 Richard Stallman <rms@gnu.org> 155782007-06-01 Juanma Barranquero <lekktu@gmail.com>
15579 15579
15580 * xfns.c (x_encode_text): Add GCPRO. 15580 * window.c (Fshrink_window): Reflow docstring.
15581 15581
155822007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 155822007-06-02 Chong Yidong <cyd@stupidchicken.com>
15583 15583
15584 * xfns.c (x_set_name_internal): Save encoded name before 15584 * Version 22.1 released.
15585 x_encode_text in case string data is relocated. 15585
15586 155862007-06-01 Richard Stallman <rms@gnu.org>
155872007-05-31 Richard Stallman <rms@gnu.org> 15587
15588 15588 * xfns.c (x_encode_text): Add GCPRO.
15589 * buffer.c (syms_of_buffer): Doc fix. 15589
15590 155902007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
155912007-05-30 Nick Roberts <nickrob@snap.net.nz> 15591
15592 15592 * xfns.c (x_set_name_internal): Save encoded name before
15593 * sysdep.c (init_sys_modes): Add rather than replace with 15593 x_encode_text in case string data is relocated.
15594 O_NONBLOCK. 15594
15595 155952007-05-31 Richard Stallman <rms@gnu.org>
15596 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to 15596
15597 term_mouse_moveto. 15597 * buffer.c (syms_of_buffer): Doc fix.
15598 15598
15599 * termhooks.h (term_mouse_moveto): New extern. 155992007-05-30 Nick Roberts <nickrob@snap.net.nz>
15600 15600
15601 * term.c (mouse_face_window): Rename... 15601 * sysdep.c (init_sys_modes): Add rather than replace with
15602 (Qmouse_face_window): ...to this. 15602 O_NONBLOCK.
15603 (term_show_mouse_face, term_clear_mouse_face) 15603
15604 (term_mouse_highlight): Use Qmouse_face_window. 15604 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
15605 (term_mouse_moveto): New function. 15605 term_mouse_moveto.
15606 (term_mouse_position): Make it work. 15606
15607 (syms_of_term): Uncomment assignment to mouse_position_hook. 15607 * termhooks.h (term_mouse_moveto): New extern.
15608 Staticpro Qmouse_face_window. 15608
15609 15609 * term.c (mouse_face_window): Rename...
156102007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15610 (Qmouse_face_window): ...to this.
15611 15611 (term_show_mouse_face, term_clear_mouse_face)
15612 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t 15612 (term_mouse_highlight): Use Qmouse_face_window.
15613 around current_column call. 15613 (term_mouse_moveto): New function.
15614 15614 (term_mouse_position): Make it work.
156152007-05-26 Dan Nicolaescu <dann@ics.uci.edu> 15615 (syms_of_term): Uncomment assignment to mouse_position_hook.
15616 15616 Staticpro Qmouse_face_window.
15617 * xfaces.c (syms_of_xfaces): Delete stray semicolon. 15617
15618 * xdisp.c (next_element_from_buffer): 156182007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15619 * window.c (delete_window): 15619
15620 * term.c (term_mouse_highlight): 15620 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
15621 * msdos.c (getdefdir): 15621 around current_column call.
15622 * macterm.c (mac_create_bitmap_from_bitmap_data) 15622
15623 (init_font_name_table): 156232007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
15624 * fns.c (Fsxhash): 15624
15625 * data.c (Fmake_local_variable): 15625 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
15626 * ccl.c (ccl_driver): Likewise. 15626 * xdisp.c (next_element_from_buffer):
15627 15627 * window.c (delete_window):
156282007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15628 * term.c (term_mouse_highlight):
15629 15629 * msdos.c (getdefdir):
15630 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event): 15630 * macterm.c (mac_create_bitmap_from_bitmap_data)
15631 Call mac_wakeup_from_rne on window size change. 15631 (init_font_name_table):
15632 15632 * fns.c (Fsxhash):
156332007-05-25 Chong Yidong <cyd@stupidchicken.com> 15633 * data.c (Fmake_local_variable):
15634 15634 * ccl.c (ccl_driver): Likewise.
15635 * image.c (uncache_image): Fix typo. 15635
15636 156362007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
156372007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change) 15637
15638 15638 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
15639 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too. 15639 Call mac_wakeup_from_rne on window size change.
15640 15640
156412007-05-22 Richard Stallman <rms@gnu.org> 156412007-05-25 Chong Yidong <cyd@stupidchicken.com>
15642 15642
15643 * xterm.c (x_connection_closed): Remove NO_RETURN. 15643 * image.c (uncache_image): Fix typo.
15644 15644
156452007-05-22 Martin Rudalics <rudalics@gmx.at> 156452007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
15646 15646
15647 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. 15647 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
15648 15648
156492007-05-21 Chong Yidong <cyd@stupidchicken.com> 156492007-05-22 Richard Stallman <rms@gnu.org>
15650 15650
15651 * image.c (uncache_image): New function. 15651 * xterm.c (x_connection_closed): Remove NO_RETURN.
15652 (Fimage_refresh): New function. 15652
15653 156532007-05-22 Martin Rudalics <rudalics@gmx.at>
156542007-05-20 Jan Djärv <jan.h.d@swipnet.se> 15654
15655 15655 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
15656 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS. 15656
15657 156572007-05-21 Chong Yidong <cyd@stupidchicken.com>
156582007-05-20 Nick Roberts <nickrob@snap.net.nz> 15658
15659 15659 * image.c (uncache_image): New function.
15660 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c, 15660 (Fimage_refresh): New function.
15661 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H. 15661
15662 156622007-05-20 Jan Djärv <jan.h.d@swipnet.se>
156632007-05-20 Nick Roberts <nickrob@snap.net.nz> 15663
15664 15664 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
15665 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT 15665
15666 conditional on [HAVE_GPM_H]. 156662007-05-20 Nick Roberts <nickrob@snap.net.nz>
15667 15667
156682007-05-19 Stefan Monnier <monnier@iro.umontreal.ca> 15668 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
15669 15669 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
15670 * syntax.c (skip_chars): Update syntax-table only after we checked that 15670
15671 the new location is valid. 156712007-05-20 Nick Roberts <nickrob@snap.net.nz>
15672 15672
156732007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15673 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
15674 15674 conditional on [HAVE_GPM_H].
15675 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around 15675
15676 mac_get_window_bounds. 156762007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15677 15677
156782007-05-20 Nick Roberts <nickrob@snap.net.nz> 15678 * syntax.c (skip_chars): Update syntax-table only after we checked that
15679 15679 the new location is valid.
15680 * Makefile.in (LIBGPM): Allow it to be set from configure. 15680
15681 If set then link Emacs with it. 156812007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15682 15682
15683 * config.in: Regenerate. 15683 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
15684 15684 mac_get_window_bounds.
15685 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): 15685
15686 New externs. 156862007-05-20 Nick Roberts <nickrob@snap.net.nz>
15687 15687
15688 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT. 15688 * Makefile.in (LIBGPM): Allow it to be set from configure.
15689 Include gpm.h. 15689 If set then link Emacs with it.
15690 (handle_one_term_event, term_gpm): New externs. 15690
15691 15691 * config.in: Regenerate.
15692 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking 15692
15693 and allow it to be interrupted by SIGIO. 15693 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
15694 15694 New externs.
15695 * process.c (gpm_wait_mask, max_gpm_desc): New variables. 15695
15696 (wait_reading_process_output): Wait on gpm_fd too. 15696 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
15697 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions. 15697 Include gpm.h.
15698 (add_gpm_wait_descriptor_called_flag): New variable. 15698 (handle_one_term_event, term_gpm): New externs.
15699 (delete_keyboard_wait_descriptor): Check gpm_wait_mask. 15699
15700 15700 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
15701 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message) 15701 and allow it to be interrupted by SIGIO.
15702 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved) 15702
15703 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard): 15703 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
15704 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H. 15704 (wait_reading_process_output): Wait on gpm_fd too.
15705 (make_lispy_event): Add case GPM_CLICK_EVENT. 15705 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
15706 (read_avail_input): Handle mouse input. 15706 (add_gpm_wait_descriptor_called_flag): New variable.
15707 15707 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
15708 * term.c (write_glyphs_with_face): New function. 15708
15709 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h. 15709 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
15710 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row) 15710 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
15711 (mouse_face_end_col, mouse_face_past_end, mouse_face_window) 15711 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
15712 (mouse_face_face_id, term_gpm, pos_x, pos_y) 15712 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
15713 (last_mouse_x, last_mouse_y): New variables. 15713 (make_lispy_event): Add case GPM_CLICK_EVENT.
15714 (term_show_mouse_face, term_clear_mouse_face, fast_find_position) 15714 (read_avail_input): Handle mouse input.
15715 (term_mouse_highlight, term_mouse_movement, term_mouse_position) 15715
15716 (term_mouse_click, handle_one_term_event, Fterm_open_connection) 15716 * term.c (write_glyphs_with_face): New function.
15717 (Fterm_close_connection): New functions. 15717 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
15718 (term_init): Initialise mouse_face_window. 15718 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
15719 15719 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
157202007-05-19 Chong Yidong <cyd@stupidchicken.com> 15720 (mouse_face_face_id, term_gpm, pos_x, pos_y)
15721 15721 (last_mouse_x, last_mouse_y): New variables.
15722 * xdisp.c (redisplay_window): If first window line is a 15722 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
15723 continuation line, recompute the new window start instead of 15723 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
15724 recentering. 15724 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
15725 15725 (Fterm_close_connection): New functions.
157262007-05-18 Glenn Morris <rgm@gnu.org> 15726 (term_init): Initialise mouse_face_window.
15727 15727
15728 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD. 157282007-05-19 Chong Yidong <cyd@stupidchicken.com>
15729 Suggested by Alfred M. Szmidt <ams@gnu.org>. 15729
15730 15730 * xdisp.c (redisplay_window): If first window line is a
157312007-05-17 Glenn Morris <rgm@gnu.org> 15731 continuation line, recompute the new window start instead of
15732 15732 recentering.
15733 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. 15733
15734 157342007-05-18 Glenn Morris <rgm@gnu.org>
157352007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15735
15736 15736 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
15737 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert 15737 Suggested by Alfred M. Szmidt <ams@gnu.org>.
15738 dead key repeat and up events. 15738
15739 157392007-05-17 Glenn Morris <rgm@gnu.org>
157402007-05-14 Chong Yidong <cyd@stupidchicken.com> 15740
15741 15741 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
15742 * image.c (pbm_load): Check image size for monochrome pbm. 15742
15743 157432007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
157442007-05-13 Chong Yidong <cyd@stupidchicken.com> 15744
15745 15745 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
15746 * xterm.c (XTread_socket): Revert last change. 15746 dead key repeat and up events.
15747 15747
157482007-05-12 Chong Yidong <cyd@stupidchicken.com> 157482007-05-14 Chong Yidong <cyd@stupidchicken.com>
15749 15749
15750 * image.c (pbm_load): Correctly check image size for greyscale pbm. 15750 * image.c (pbm_load): Check image size for monochrome pbm.
15751 15751
15752 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC). 157522007-05-13 Chong Yidong <cyd@stupidchicken.com>
15753 15753
157542007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> 15754 * xterm.c (XTread_socket): Revert last change.
15755 15755
15756 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object 157562007-05-12 Chong Yidong <cyd@stupidchicken.com>
15757 mixup (YAILOM). 15757
15758 15758 * image.c (pbm_load): Correctly check image size for greyscale pbm.
157592007-05-07 Andreas Schwab <schwab@suse.de> 15759
15760 15760 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
15761 * keymap.c (Flookup_key): Fix typo in last change. 15761
15762 157622007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
157632007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> 15763
15764 15764 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
15765 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier 15765 mixup (YAILOM).
15766 mapping for unibyte strings. 15766
15767 157672007-05-07 Andreas Schwab <schwab@suse.de>
157682007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 15768
15769 15769 * keymap.c (Flookup_key): Fix typo in last change.
15770 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. 15770
15771 (Fx_popup_dialog) [MAC_OSX]: Likewise. 157712007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
15772 15772
157732007-04-29 Richard Stallman <rms@gnu.org> 15773 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
15774 15774 mapping for unibyte strings.
15775 * insdel.c (replace_range): For undo, record insertion first. 15775
15776 157762007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
157772007-04-29 Andreas Schwab <schwab@suse.de> 15777
15778 15778 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
15779 * lisp.h (VECSIZE): Use OFFSETOF. 15779 (Fx_popup_dialog) [MAC_OSX]: Likewise.
15780 15780
157812007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 157812007-04-29 Richard Stallman <rms@gnu.org>
15782 15782
15783 * xdisp.c (try_window_reusing_current_matrix): Fix number of 15783 * insdel.c (replace_range): For undo, record insertion first.
15784 disabled lines. 15784
15785 157852007-04-29 Andreas Schwab <schwab@suse.de>
157862007-04-28 Richard Stallman <rms@gnu.org> 15786
15787 15787 * lisp.h (VECSIZE): Use OFFSETOF.
15788 * lread.c (read_escape): In a string, \s is always space. 15788
15789 157892007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
157902007-04-27 Jan Djärv <jan.h.d@swipnet.se> 15790
15791 15791 * xdisp.c (try_window_reusing_current_matrix): Fix number of
15792 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog. 15792 disabled lines.
15793 15793
15794 * gtkutil.c (xg_update_menubar, create_menus): Create empty 157942007-04-28 Richard Stallman <rms@gnu.org>
15795 submenu for menu bar items. 15795
15796 15796 * lread.c (read_escape): In a string, \s is always space.
15797See ChangeLog.10 for earlier changes. 15797
15798 157982007-04-27 Jan Djärv <jan.h.d@swipnet.se>
15799;; Local Variables: 15799
15800;; coding: utf-8 15800 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
15801;; add-log-time-zone-rule: t 15801
15802;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s" 15802 * gtkutil.c (xg_update_menubar, create_menus): Create empty
15803;; End: 15803 submenu for menu bar items.
15804 15804
15805 Copyright (C) 2007, 2008 Free Software Foundation, Inc. 15805See ChangeLog.10 for earlier changes.
15806 15806
15807 This file is part of GNU Emacs. 15807;; Local Variables:
15808 15808;; coding: utf-8
15809 GNU Emacs is free software: you can redistribute it and/or modify 15809;; add-log-time-zone-rule: t
15810 it under the terms of the GNU General Public License as published by 15810;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
15811 the Free Software Foundation, either version 3 of the License, or 15811;; End:
15812 (at your option) any later version. 15812
15813 15813 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
15814 GNU Emacs is distributed in the hope that it will be useful, 15814
15815 but WITHOUT ANY WARRANTY; without even the implied warranty of 15815 This file is part of GNU Emacs.
15816 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15816
15817 GNU General Public License for more details. 15817 GNU Emacs is free software: you can redistribute it and/or modify
15818 15818 it under the terms of the GNU General Public License as published by
15819 You should have received a copy of the GNU General Public License 15819 the Free Software Foundation, either version 3 of the License, or
15820 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 15820 (at your option) any later version.
15821 15821
15822;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40 15822 GNU Emacs is distributed in the hope that it will be useful,
15823 but WITHOUT ANY WARRANTY; without even the implied warranty of
15824 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15825 GNU General Public License for more details.
15826
15827 You should have received a copy of the GNU General Public License
15828 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
15829
15830;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40