* Makefile.in: Compile menu.c.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c07cbae6
CY
12008-06-08 Chong Yidong <cyd@stupidchicken.com>
2
3 * Makefile.in: Compile menu.c.
4
5 * lisp.h: Declare syms_of_menu.
6
7 * emacs.c (main): Call syms_of_menu.
8
9 * keyboard.h: Relocate platform-independent menu definitions from
10 xmenu.c.
11
12 * menu.c: New file. Relocate platform-independent menu
13 definitions from xmenu.c.
14
15 * xmenu.c: Remove platform-independent menu definitions.
16 (menu_items menu_items_inuse, menu_items_allocated)
17 (menu_items_used, menu_items_n_panes)
18 (menu_items_submenu_depth): Move to keyboard.h.
19 (init_menu_items, finish_menu_items, unuse_menu_items)
20 (discard_menu_items, restore_menu_items, save_menu_items)
21 (grow_menu_items, push_submenu_start, push_submenu_end)
22 (push_left_right_boundary, push_menu_pane, push_menu_item)
23 (keymap_panes, single_keymap_panes, single_menu_item)
24 (list_of_panes, list_of_items, find_and_call_menu_selection)
25 (xmalloc_widget_value, free_menubar_widget_value_tree)
26 (parse_single_submenu, digest_single_submenu)
27 (update_submenu_strings): Move to menu.c.
28
4958ed94
SM
292008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
30
31 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
32
408b8ab4
MB
332008-06-06 Miles Bader <miles@gnu.org>
34
35 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
36 face, not frame default.
37
87478b52
SM
382008-06-05 Martin Rudalics <rudalics@gmx.at>
39
40 * window.c (pop_up_windows, pop_up_frames)
41 (display_buffer_reuse_frames, Vpop_up_frame_function)
42 (Vdisplay_buffer_function, Veven_window_heights)
43 (Vspecial_display_buffer_names, Vspecial_display_regexps)
44 (Vspecial_display_function, Vsame_window_buffer_names)
45 (Vsame_window_regexps, split_height_threshold)
46 (Vsplit_window_preferred_function): Move those vars to window.el.
47 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
48 (Fdisplay_buffer): Move those functions to window.el.
49 (syms_of_window): Remove corresponding declarations.
50 (display_buffer): New function.
51 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
52 * dispnew.c (Flast_nonminibuf_frame): New function.
53 * buffer.c (Fpop_to_buffer): Move to window.el.
54
9e0e0d77
SM
552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
56
57 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
58
4a485df8
KH
592008-06-05 Kenichi Handa <handa@m17n.org>
60
61 * coding.c (detect_coding): Fix previous change.
62 (detect_coding_system): Likewise.
63
8ba31f36
SM
642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
65
c0dc8f64
SM
66 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
67
8ba31f36
SM
68 * keymap.c (Vminibuffer_local_filename_must_match_map):
69 Rename from Vminibuffer_local_must_match_filename_map.
70 (syms_of_keymap):
71 * minibuf.c (Fcompleting_read): Adjust accordingly.
72 * commands.h: Rename declaration as well.
73
7740d2c7
KH
742008-06-05 Kenichi Handa <handa@m17n.org>
75
e7438ece
KH
76 * font.c (Ffont_spec): Don't use font_parse_family_registry for
77 family name.
78 (Ffont_put): Likewise.
79
80 * fontset.c (fontset_find_font): Call font_open_for_lface with the
81 current font-spec.
82
7740d2c7
KH
83 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
84 is unspecified.
85
86 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
87 are the same as those of default face, realize a new fontset from
88 default->fontset.
9e0e0d77 89 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 90
c876b227
SM
912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
92
93 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
94 (move_it_in_display_line): New wrapper.
95
96 * window.c (window_scroll_pixel_based_preserve_x)
97 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
98 (window_scroll_pixel_based, window_scroll_line_based):
99 Use them to preserve column positions.
100 (syms_of_window): Initialize them.
101
102 * indent.c (Fvertical_motion): Extend first arg to allow passing an
103 (HPOS . VPOS) pair.
104
105 * dispextern.h (move_it_in_display_line): Declare.
106
927abf37
JB
1072008-06-05 Juanma Barranquero <lekktu@gmail.com>
108
109 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
110 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
111 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
112
9d14503e
JB
1132008-06-04 Juanma Barranquero <lekktu@gmail.com>
114
115 * window.c (Fset_window_parameter): Doc fix.
116 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
117
e6841c3b
JB
1182008-06-04 Joakim Verona <joakim@verona.se>
119
120 * window.h (struct window): Add new member window_parameters.
121
122 * window.c (Fwindow_parameters, Fwindow_parameter)
123 (Fset_window_parameter): New defuns.
124 (syms_of_window): Defsubr the new defuns.
125 (make_window): Initialize window_parameters to nil.
126
4ba50634
JPW
1272008-06-04 John Paul Wallington <jpw@pobox.com>
128
129 * eval.c (Fdefmacro): Doc fix.
130
c0e16b14
KH
1312008-06-04 Kenichi Handa <handa@m17n.org>
132
133 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 134 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
135 (detect_coding_system): Fix handling of coding->head_ascii.
136
0615d903
AS
1372008-06-03 Andreas Schwab <schwab@suse.de>
138
139 * font.c (font_prop_validate_spacing): Fix last change.
140
8a1816bb
KH
1412008-06-03 Kenichi Handa <handa@m17n.org>
142
eea9c5c4
KH
143 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
144 (font_parse_fcname): Fix handling of unknown key.
145
146 * xfont.c (xfont_list): Try an alias.
147
8a1816bb
KH
148 * charset.c (char_charset): Return NULL if the arg charset_list is
149 specified and C doesn't belong to any of them.
150
2f593f4c 1512008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
152
153 * font.c (font_pixel_size): Don't take cdr of an integer.
154
c2cd06e6
JM
1552008-06-02 Jim Meyering <meyering@redhat.com>
156
70fdbb46
JM
157 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
158 * alloc.c (xfree): Return right away for a NULL arg.
159 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
160 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
161 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
162 (create_apple_event_from_drag_ref, cfstring_create_normalized):
163 Likewise.
70fdbb46
JM
164 * doprnt.c (doprnt1): Likewise.
165 * frame.c (frame): Likewise.
166 * keyboard.c (wipe_kboard): Likewise.
167 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap):
168 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
169 * term.c (tty_default_color_capabilities, maybe_fatal)
170 (delete_tty): Likewise.
171 * w16select.c (string): Likewise.
172 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
173 * w32bdf.c (w32_free_bdf_font): Likewise.
174 * w32fns.c (w32_unload_font): Likewise.
175 * w32font.c (w32font_close): Likewise.
176 * window.c (size_window): Likewise.
177 * xselect.c (receive_incremental_selection): Likewise.
178 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
179 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
180 * w32.c (stat): Likewise.
181
2f593f4c 182 Remove useless if-before-free tests.
70fdbb46
JM
183 * editfns.c (Fset_time_zone_rule): Likewise.
184 * lread.c (nosuffix): Likewise.
185 * ralloc.c (get_bloc): Likewise.
186 * regex.c (reg_free): Likewise.
187 * xftfont.c (xftfont_open, xftfont_close): Likewise.
188 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
189 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 190
4fc1984a
KH
1912008-06-02 Kenichi Handa <handa@m17n.org>
192
1d1e1245
KH
193 * font.c (font_find_for_lface): Handle float font size.
194 (font_open_for_lface): Likewise.
195
4fc1984a
KH
196 * xfaces.c (x_supports_face_attributes_p): Check face->font before
197 comparing the properties.
198
aee986fd
JR
1992008-06-01 Jason Rumney <jasonr@gnu.org>
200
e6841c3b
JB
201 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
202 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
203 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
204 Don't add empty script list.
205 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 206
60a3d7ee
DN
2072008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
208
aee986fd 209 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
210 ".." has been used elsewhere in the file for a long time.
211 (LIBXT_STATIC): Remove conditional based on unused variable.
212
f2cec7a9
MB
2132008-06-01 Miles Bader <miles@gnu.org>
214
215 * xfaces.c (Vface_remapping_alist): New variable.
216 (syms_of_xfaces): Initialize it.
217 (enum named_merge_point_kind): New type.
218 (struct named_merge_point): Add `named_merge_point_kind' field.
219 (push_named_merge_point): Make cycle detection respect different
220 named-merge-point kinds.
c876b227 221 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
222 Remove face-name alias resolution.
223 (lface_from_face_name): New definition using
224 `lface_from_face_name_no_resolve'.
c876b227 225 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
226 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
227 (get_lface_attributes): New definition that layers face-remapping on
228 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
229 (lookup_basic_face): New function.
230 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
231 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
232 `get_lface_attributes'.
233 (face_at_buffer_position): Use `lookup_basic_face' to lookup
234 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
235 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
236
237 * xdisp.c (init_iterator): Pass base_face_id through
238 `lookup_basic_face' when we actually use it as a face-id.
239 (handle_single_display_prop): Use `lookup_basic_face' to lookup
240 DEFAULT_FACE_ID.
241
242 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
243 lookup the initial face-id.
244
245 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
246
518c0b83
JB
2472008-06-01 Juanma Barranquero <lekktu@gmail.com>
248
249 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
250 (Fremove_text_properties): Fix typos in docstrings.
251
719b3d63
KH
2522008-05-31 Kenichi Handa <handa@m17n.org>
253
e4c93315
KH
254 * font.c (font_list_entities): Fix the car part of data to be
255 stored in the cache.
256
719b3d63
KH
257 * ftfont.c (ftfont_font_format): Don't use strcasestr.
258
d0827857
SM
2592008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
260
261 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
262 Add a `test' argument so another predicate than `equal' can be used.
263 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
264 (map_char_table): Remove unused vars `c' and `i'.
265 * lisp.h (Foptimize_char_table): Adjust declaration.
266 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
267
a266686a
KH
2682008-05-30 Kenichi Handa <handa@m17n.org>
269
d0827857 270 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
271 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
272 defined.
273
fd9440c5
SM
2742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
277 (Fmake_variable_frame_local): Disallow mixing buffer-local and
278 frame-local settings for the same variable.
279
fd2ae9b2
KH
2802008-05-30 Kenichi Handa <handa@m17n.org>
281
9e0e0d77 282 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
283 (syms_of_fontset): Delete defsubr of Sfont_info.
284
285 * font.c (font_style_to_value, font_score): Delete casting of the
286 args to xstcasecmp.
287 (register_font_driver): Increment num_font_drivers only when
288 registering the driver globally.
9e0e0d77 289 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
290 (syms_of_font): Defsubr Sfont_info.
291
eaf11618
KH
2922008-05-29 Kenichi Handa <handa@m17n.org>
293
294 * coding.h (enum define_coding_utf8_arg_index): New enum.
295 (enum coding_attr_index): Change coding_attr_utf_16_bom to
296 coding_attr_utf_bom.
fd9440c5
SM
297 (enum utf_bom_type): Rename from utf_16_bom_type.
298 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
299 (struct coding_system): Add utf_8_bom in `spec' union.
300
301 * coding.c (CODING_UTF_8_BOM): New macro.
302 (enum coding_category): Delete coding_category_utf_8, add
303 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
304 coding_category_utf_8_sig.
305 (CATEGORY_MASK_UTF_8): Delete it.
306 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
307 (CATEGORY_MASK_UTF_8_SIG): New macros.
308 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
309 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
310 CATEGORY_MASK_UTF_8_SIG.
311 (CATEGORY_MASK_UTF_8): New macro.
312 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
313 (detect_coding_utf_8): Check BOM.
314 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 315 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
316 (encode_coding_utf_16): Likewise.
317 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
318 (detect_coding, detect_coding_system): Handle utf-8-auto.
319 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
320 (syms_of_coding): Fix setting up of Vcoding_category_table.
321
891bd142
SM
3222008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
323
324 * process.c (Faccept_process_output): If `millisec' is non-nil,
325 `seconds' default to 0.
326 (wait_reading_process_output): Also return non-nil if we read output
327 from a non-running process.
328
1519d52e
JR
3292008-05-29 Jason Rumney <jasonr@gnu.org>
330
fd9440c5
SM
331 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
332 `raster' specified.
333 (add_font_entity_to_list): Allow non-opentype truetype fonts back
334 in the uniscribe backend, but disallow any font that has no
335 unicode subrange support.
1519d52e 336
d5ab09cd
JB
3372008-05-29 Juanma Barranquero <lekktu@gmail.com>
338
339 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
340 Fix typos in docstrings.
341
a4eec626
KH
3422008-05-29 Kenichi Handa <handa@m17n.org>
343
344 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 345 (Fx_family_fonts): Set frame correctly.
a4eec626 346
a6e0b7e5
JR
3472008-05-28 Jason Rumney <jasonr@gnu.org>
348
d5ab09cd 349 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 350
6b3d752c
SM
3512008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
352
353 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
354 calling build_annotations.
355
c3f9fba8
JB
3562008-05-28 Juanma Barranquero <lekktu@gmail.com>
357
358 * coding.c (Fdecode_coding_region, Fencode_coding_region)
359 (Fencode_coding_string):
360 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
361 <latin-extra-code-table>: Fix typos in docstrings.
362 (syms_of_coding) <coding-system-alist>: Doc fix.
363 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
364
00c670e1
KH
3652008-05-28 Kenichi Handa <handa@m17n.org>
366
b75d7f28
KH
367 * fontset.c (Ffont_info): Don't call font_close_object.
368
369 * font.c (font_parse_family_registry): Use Ffont_put to validate
370 foundry and family.
371 (font_delete_unmatched): Don't check spacing.
372 (font_list_entities): Add spacing to the spec to list fonts.
373
374 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 375 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 376
00c670e1
KH
377 * coding.c (encode_coding_raw_text): Fix previous change.
378 (encode_coding_object): When the dst_object is a buffer and is
379 different from src_object, move gap to PT.
380
45feca91
CY
3812008-05-27 Chong Yidong <cyd@stupidchicken.com>
382
c3f9fba8 383 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 384
5dd5d9eb
SM
3852008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
386
01d45367
SM
387 * coding.c (encode_coding_raw_text): Set coding->produced_char for
388 all branches. Compute it differently.
389
5dd5d9eb
SM
390 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
391
9c623c85
JB
3922008-05-27 Juanma Barranquero <lekktu@gmail.com>
393
394 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
395 into "else if () ... else ...".
396
943f2093
JR
3972008-05-27 Jason Rumney <jasonr@gnu.org>
398
5dd5d9eb
SM
399 * w32font.c (w32font_open_internal): Determine if glyph indices
400 are likely to work here.
943f2093 401
7385fe74
CY
4022008-05-27 Chong Yidong <cyd@stupidchicken.com>
403
404 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
405 draw overlap glyphs with appropriate highlighting.
406
4f64a164
KH
4072008-05-27 Kenichi Handa <handa@m17n.org>
408
409 * xfont.c (xfont_open): Fix calculation of font->average_width.
410
1fb5aad7
SM
4112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
412
413 * casefiddle.c (casify_object): Try to guess better whether the
414 argument is a byte or a char.
415
f8eb1603
AS
4162008-05-26 Andreas Schwab <schwab@suse.de>
417
1fb5aad7
SM
418 * xselect.c (x_reply_selection_request): Properly handle format == 32.
419 Always send multiples of format size.
5a9c35e5 420
f8eb1603
AS
421 * xterm.c (x_set_frame_alpha): Fix type mismatch.
422
ba93d684
JR
4232008-05-26 Jason Rumney <jasonr@gnu.org>
424
1fb5aad7
SM
425 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
426 (compute_metrics): Don't set failure if we just cleared the cache.
427 (w32_weight_table): Remove unused variable.
428 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
429 backwards compatibility.
ba93d684 430
505ecc49
KH
4312008-05-25 Kenichi Handa <handa@m17n.org>
432
1fb5aad7
SM
433 * w32term.c (x_draw_glyph_string):
434 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
435
436 * xfaces.c: Delete unused function prototypes.
437 (xstrlwr, font_frame): Delete them.
438 (clear_face_cache): Delete unused variable.
439
1fb5aad7
SM
440 * xftfont.c (xftfont_open): Delete unused variable.
441 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
442
443 * ftxfont.c (ftxfont_open): Delete unused variable.
444
445 * fontset.c (face_for_char): Optimize for the case of no charset
446 property.
447
448 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
449 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
450 (otf_open, font_otf_capability, generate_otf_features)
451 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 452 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
453 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
454 (syms_of_font): Codes for accessing above commented out.
455
f481eb31
EZ
4562008-05-24 Eli Zaretskii <eliz@gnu.org>
457
458 * w32proc.c: Include dispextern.h.
459
460 * w32.c: Include dispextern.h.
461
20746fe4
JB
4622008-05-23 Juanma Barranquero <lekktu@gmail.com>
463
464 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
465 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
466 Fix typos in docstrings.
467
e7150846
JR
4682008-05-23 Jason Rumney <jasonr@gnu.org>
469
20746fe4 470 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 471
dbf46ba6
KH
4722008-05-23 Kenichi Handa <handa@m17n.org>
473
6c652beb
KH
474 * charset.c (Qemacs, charset_emacs): New variables.
475 (char_charset): Fix for non-Unicode characters.
476 (syms_of_charset): Define charset_emacs.
477
baf4d3b3 478 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
479 s->underline_thickness and s->underline_position. Be sure to draw
480 underline within the current line area.
baf4d3b3
KH
481
482 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 483 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 484 underline within the current line area.
baf4d3b3 485
dbf46ba6
KH
486 * fontset.c: Delete unused variables and add casting for char *
487 throughout the file.
488 (fontset_font): Try the fallback fonts of the current fontset
489 before consulting the default fontset.
490
491 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
492
9e0e0d77 493 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 494
3b780338
JR
4952008-05-22 Jason Rumney <jasonr@gnu.org>
496
20746fe4 497 * font.c: Don't include strings.h.
577eba22 498
9e0e0d77 499 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 500
20746fe4
JB
501 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
502 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
503 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
504 to call xstrcasecmp.
05131107 505
b1722a46 506 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 507
b1722a46 508 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 509
b1722a46 510 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 511
b1722a46 512 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 513
a30e1957
KH
5142008-05-22 Kenichi Handa <handa@m17n.org>
515
20746fe4 516 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 517
20746fe4 518 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
519 change of font_style_table.
520
a30e1957
KH
521 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
522 two args.
523
524 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
525 two args.
526
631248e5
SM
5272008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
528
529 * minibuf.c (keys_of_minibuf): Delete.
530 * lisp.h (keys_of_minibuf): Delete.
531 * emacs.c (main): Don't call keys_of_minibuf.
532
318548be
KH
5332008-05-22 Kenichi Handa <handa@m17n.org>
534
631248e5 535 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
536 ftfont_list_generic_family. Return a single family for each
537 generic family.
538 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
539 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
540 Call font_add_log.
318548be
KH
541 (ftfont_match): Call font_add_log.
542
543 * font.h (Ffont_xlfd_name): EXFUN adjusted.
544 (FONT_DEBUG): Define it.
545 (font_add_log): Extern it.
631248e5 546 (font_assert): Rename from xassert.
318548be
KH
547
548 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
549 (xfont_list_family): Call font_add_log.
550 (xfont_match): Likewise.
631248e5 551 (memq_no_quit): Delete.
318548be
KH
552
553 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
554 call of Ffont_xlfd_name.
555
556 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 557 (swidth_table): Move to font.c.
318548be
KH
558
559 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 560 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
561 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
562 New variables.
631248e5
SM
563 (struct table_entry): Move from xfaces.c and modified.
564 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 565 contents adjusted for the change of struct table_entry.
20746fe4 566 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 567 format change of font_style_table.
318548be
KH
568 (font_parse_family_registry): Don't overwrite existing foundry and
569 family of font_spec.
570 (font_score): Fix calculation of diff for sizes.
571 (font_sort_entites): Call font_add_log.
572 (font_delete_unmatched): Return a newly created list.
573 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
574 (font_matching_entity, font_open_entity, font_close_entity):
575 Call font_add_log.
318548be 576 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 577 (Finternal_set_font_style_table): Delete.
318548be
KH
578 (BUILD_STYLE_TABLE): New macro.
579 (build_style_table): New function.
580 (Vfont_log, font_log_env_checked): New variables.
581 (font_add_log): New function.
582 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
583 Declare Lisp variables "font-weight-table", "font-slant-table",
584 "font-width-table", and "font-log". Initialize font_style_table.
585
6aac1c03
DN
5862008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
587
bcc850aa 588 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 589
7950790f
GM
5902008-05-21 Seiji Zenitani <zenitani@mac.com>
591 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 592
7950790f 593 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 594 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 595 (x_set_alpha): New function.
a2979e8e 596
7950790f 597 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 598
7950790f
GM
599 * xfns.c (x-create-frame, Qalpha):
600 Initialize the frame parameter `alpha'.
b9fb2c45
GM
601 * xterm.c (OPAQUE, OPACITY): New.
602 (x_set_frame_alpha): New function.
603 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 604
7950790f
GM
605 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
606 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 607
5c2a72d9
JR
6082008-05-20 Jason Rumney <jasonr@gnu.org>
609
20746fe4
JB
610 * w32font.c (add_font_entity_to_list): Don't add non-opentype
611 truetype fonts to opentype list.
5c2a72d9 612
eb152aa9
JB
6132008-05-20 Juanma Barranquero <lekktu@gmail.com>
614
615 * fontset.c (Ffontset_info): Doc fix.
616 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
617 <ignore-relative-composition>: Fix typos in docstrings.
618
619 * font.c (syms-of-font) <font-encoding-alist>:
620 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
621 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
622 (Ffont_otf_alternates): Doc fixes.
623
ad00e1a3
KH
6242008-05-20 Kenichi Handa <handa@m17n.org>
625
626 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
627 font.h through out the file.
9e0e0d77 628 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 629 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
630 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
631
632 * emacs.c (main): Call syms_of_font unconditionally.
633
634 * font.h (find_font_encoding): Extern it.
635
9e0e0d77 636 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
637 fontset.c.
638 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
639 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
640 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
641 only when HAVE_WINDOW_SYSTEM is defined.
642 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
643 when HAVE_WINDOW_SYSTEM is defined.
644
9e0e0d77
SM
645 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
646 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
647
648 * xfaces.c: Include font.h unconditionally.
649 (merge_face_ref, merge_face_vectors)
650 (Finternal_set_lisp_face_attribute): Cancel the previous change.
651
40a69fac
SM
6522008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
653
654 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
655 indirect_variable.
656 * eval.c (lisp_indirect_variable): New fun.
657 (Fuser_variable_p): Use it.
658
8c2dccbf
SM
6592008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
660
ad97b375
SM
661 * lisp.h (indirect_variable):
662 * data.c (indirect_variable, let_shadows_buffer_binding_p):
663 Use Lisp_Symbol pointers rather than Lisp_Object.
664 Adjust callers.
665 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
666 To this end, change calling-convention.
667
8c2dccbf
SM
668 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
669 if some non-hidden buffers are selected by string&pred.
670
ad97b375
SM
6712008-05-19 Chong Yidong <cyd@stupidchicken.com>
672
673 * process.c (wait_reading_process_output): Always check status
674 when in batch mode.
675
25b81df4
KH
6762008-05-19 Kenichi Handa <handa@m17n.org>
677
678 * font.c (font_list_entities): Fix handling of cache.
679 (font_matching_entity): Likewise.
680
8c2dccbf 681 * ftfont.c (cs_iso8859_1): Delete.
25b81df4
KH
682 (ft_face_cache): New variable.
683 (struct ftfont_info): New member fc_charset_idx;
8c2dccbf 684 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
685 (fc_charset_table): New variable.
686 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
687 . FC_CHARSET_IDX) as :font-entity property in the font entity.
688 Callers changed.
dde8403f 689 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
690 (ftfont_spec_pattern): New argument fc_charset_idx.
691 Check registry more rigidly. Change callers.
a2979e8e 692 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
693 change of :font-entity property of the font.
694
a2979e8e 695 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
696 property of the font.
697
d4a1d553
JB
6982008-05-18 Juanma Barranquero <lekktu@gmail.com>
699
700 * coding.c (Fcoding_system_p): Rename argument to match docstring.
701 (Funencodable_char_position, Fcheck_coding_systems_region)
702 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
703 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
704 (Ffind_operation_coding_system, Fset_coding_system_priority)
705 (Fcoding_system_eol_type): Doc fixes.
706
07cfc4e7
GM
7072008-05-17 Glenn Morris <rgm@gnu.org>
708
709 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
710
1cab27d2
EZ
7112008-05-16 Eli Zaretskii <eliz@gnu.org>
712
713 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
714 and st_gid.
715
dde8403f 716 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
717 HAVE_WINDOW_SYSTEM is not defined.
718
719 * xfaces.c (merge_face_ref, merge_face_vectors)
720 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
721 HAVE_WINDOW_SYSTEM is defined.
722 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
723
86b89713
SM
7242008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
725
726 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
727
6750bd93
YM
7282008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
729
62867b11 730 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 731
79f105c9
KH
7322008-05-15 Kenichi Handa <handa@m17n.org>
733
734 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
735 preference.
736
6b33da9f
GM
7372008-05-15 Glenn Morris <rgm@gnu.org>
738
739 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
740
d0e4433b
CY
7412008-05-15 Chong Yidong <cyd@stupidchicken.com>
742
743 * fns.c (init_fns): Don't initialize weak_hash_tables here.
744 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
745
746 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
747
5f2d79e0
KH
7482008-05-15 Kenichi Handa <handa@m17n.org>
749
fd8a1cae
KH
750 * ftfont.c (ftfont_list): Downcase family name to check generic
751 families.
752
753 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
754 font-spec for QCfont value.
755
5f2d79e0
KH
756 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
757 buffer. Check the return value of it.
758
e5e29349
JR
7592008-05-14 Jason Rumney <jasonr@gnu.org>
760
761 * w32term.c (w32_get_glyph_overhangs): Remove.
762 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
763
1f09f444
KH
7642008-05-14 Kenichi Handa <handa@m17n.org>
765
766 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
767 (font_clear_cache): Check if the cached vector of entities is nil
768 or not.
1f09f444 769
ecae6af9 7702008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
771
772 * emacs.c (main_thread): Conditionalize on
773 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
774 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
775
776 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
777 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
778 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
779
c6b278e7
KH
7802008-05-14 Kenichi Handa <handa@m17n.org>
781
782 * coding.c (detect_coding_iso_2022): Ignore a coding category that
783 has no corresponding coding system.
784
7852008-05-14 Jason Rumney <jasonr@gnu.org>
786
787 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
788
789 * w32font.h (w32font_open_internal): Update declaration.
790
791 * w32font.c (w32font_open_internal): Change last argument from
792 w32font_info struct to font object. Fill in font object from
793 font_entity. Get Outline metrics if possible. Use them to
794 calculate underline position and thickness. Use xlfd name as name
795 property. Don't set codepage.
796 (w32font_open): Pass font_object to w32font_open_internal. Don't
797 update dpyinfo->smallest_font_height and
798 dpyinfo->smallest_char_width.
799 (w32font_draw): Use s->font.
800 (clear_cached_metrics): Don't clear non-existent blocks.
801
802 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
803 font was not found.
804 (x_draw_glyph_string): Use underline position and thickness from
805 font.
806
807 * w32uniscribe.c (uniscribe_open): Pass font_object to
808 w32font_open_internal.
809
8102008-05-14 Kenichi Handa <handa@m17n.org>
811
812 These changes are to delete all legacy font-handling codes, and
813 make Emacs use only font-backends.
814
815 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
816 (frame.o, image.o, print.o): Depend on $(FONTSRC).
817
818 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
819
820 * charset.h (Vcharset_non_preferred_head)
821 (Vcurrent_iso639_language): Extern them.
822
823 * charset.c (Vcharset_non_preferred_head): New variable.
824 (Vcurrent_iso639_language): New variable.
825 (syms_of_charset): Declare it as a Lisp variable.
826 (char_charset): Don't check non preferred charsets. As a last
827 resort, return charset_unicode.
828 (Fset_charset_priority): Update Vcharset_non_preferred_head.
829
830 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
831 conditionals. Don't check enable_font_backend. Delete all codes
832 used only when USE_FONT_BACKEND is not defined.
833
834 * dispextern.h (struct glyph_string): Change type of `font' to
835 `struct font *'.
836 (struct glyph_string): New member underline_position and
837 underline_thickness.
838 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
839 (struct face): Change type of `font' to `struct font *'. Remove
840 members `font_name', `font_info_id'.
841 (per_char_metric, encode_char): Delete externs.
842 (calc_pixel_width_or_height): Adjust the prototype.
843
844 * emacs.c (enable_font_backend): Delete extern.
845 (main): Don't set enable_font_backend. Don't check the command
846 line argument "-disable-font-backend".
847
848 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
849 (enum font_property_index): New members FONT_DPI_INDEX,
850 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
851 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
852 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
853 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
854 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
855 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
856 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
857 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
858 (struct font_spec, struct font_entity): New structs.
859 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
860 (struct font): Many members from old "struct font_info" moved to
861 here. Members font and entity deleted.
862 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
863 the new font-related objects.
864 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
865 (CHECK_FONT_GET_OBJECT): Likewise.
866 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
867 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
868 (struct font_driver): New members case_sensitive anc check. Type
869 of the member list and open changed.
870 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
871 (font_symbolic_width, font_find_object, font_get_spec)
872 (font_set_lface_from_name): Delete extern.
20746fe4 873 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
874
875 * font.c: Include <strings.h>.
876 (enable_font_backend): Delete it.
877 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
878 (CHECK_VALIDATE_FONT_SPEC): Delete it.
879 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
880 (null_string): Delete it.
881 (null_vector): Make it static.
882 (font_family_alist): Delete it.
883 (Qnormal): Extern it.
884 (QCextra, QClanguage): Delete it.
20746fe4 885 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
886 (font_make_spec, font_make_entity, font_make_object)
887 (font_intern_prop): Renamed from intern_downcase. Don't downcase
888 the string. Callers changed.
889 (font_pixel_size): Adjusted for the format change of font-related
890 objects.
891 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
892 (font_style_to_value, font_style_symbolic): New function.
893 (build_font_family_alist): Delete it.
894 (font_registry_charsets): Use Fassoc_string instead of
895 assq_no_quit.
896 (font_prop_validate_symbol): Don't return null_string.
897 (font_prop_validate_style): Adjusted for the change of
898 style-related values in a font vector.
20746fe4 899 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
900 QCantialias, add entries for QCavgwidth.
901 (get_font_prop_index): Delete the 2nd argument FROM.
902 (font_prop_validate): Arguments changed.
903 (font_put_extra): Adjusted for the change of font-related objects.
904 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
905 (font_parse_fcname, font_unparse_fcname)
906 (font_prepare_composition): Likewise.
907 (font_parse_family_registry): Renamed from font_merge_old_spec.
908 (otf_open): Delete the 1st arg entity.
909 (font_otf_capability): Adjusted for the above change.
910 (font_score): New arg alternate_families. Adjusted for the change
911 of font-related objects.
912 (font_sort_entites): New arg best_only.
913 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
914 Delete them.
915 (font_match_p): Check alternate families.
916 (font_find_object): Delete it.
917 (font_check_object): New function.
c3f9fba8 918 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
919 (font_delete_unmatched): New arg.
920 (font_list_entities): Call font_driver->list with a spec that
921 doesn't specify style-related properties.
922 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 923 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
924 (font_close_object, font_has_char, font_encode_char)
925 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
926 (font_spec_from_name, font_clear_prop, font_update_lface):
927 New functions.
928 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
929 (font_prepare_for_face, font_done_for_face, font_open_by_name)
930 (font_at): Adjusted for the change of font-related objects.
931 (font_range): New function.
932 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 933 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
934 (Fcopy_font_spec, Fmerge_font_spec): New function.
935 (Ffont_family_list): Renamed from list-families.
936 (Finternal_set_font_style_table): Arguments changed.
937 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
938 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
939 change of font-related objects.
c3f9fba8 940 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7
KH
941
942 * fontset.h (struct font_info): Delete it. Most memnbers go to
943 struct font.
944 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
945 (enum FONT_SPEC_INDEX): Delete it.
946 (font_info, list_fonts_func, load_font_func, query_font_func)
947 (set_frame_fontset_func, find_ccl_program_func)
948 (get_font_repertory_func, new_fontset_from_font_name): Delete
949 externs.
950 (fontset_from_font_name): Extern it.
951 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
952 (FONT_INFO_FROM_FACE): Deleted.
953 (face_for_font): Adjust prototype.
954
955 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
956 conditionals. Don't check enable_font_backend. Delete all codes
957 used only when USE_FONT_BACKEND is not defined.
958 (get_font_info_func, list_font_func, load_font_func)
959 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
960 (get_font_repertory_func): Delete them.
961 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
962 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
963 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
964 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
965 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
966 (fontset_compare_rfontdef): New function.
967 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
968 ront-defs by qsort. Adjusted for the change of font-group vector.
969 (load_font_get_repertory): Deleted.
970 (fontset_find_font): Use new macros to ref/set elements of
971 font-def and rfont-def.
972 (fontset_font): Fix the timing of remembering that no font for C.
973 (free_face_fontset): Do nothing if the face has no fontset.
974 (face_suitable_for_char_p): Use new macros to ref/set elements of
975 rfont-def.
976 (face_for_char): Likewise. Call face_for_char with font_object.
977 (fs_load_font): Delete. Delete #pragma surrounding it.
978 (fs_query_fontset): Use strcasecmp instead of strcmp.
979 (generate_ascii_font_name): Adjusted for the format change of
980 font-spec.
981 (Fset_fontset_font): Likewise. Use new macros to set elements of
982 font-def.
983 (Fnew_fontset): Use font_unparse_xlfd to generate
984 FONTSET_ASCII (fontset).
985 (new_fontset_from_font_name): Deleted.
986 (fontset_from_font): Renamed from new_fontset_from_font. Check if
987 a fontset is already created for the font. FIx updating of
988 Vfontset_alias_alist.
989 (fontset_ascii_font): Deleted.
990 (Ffont_info): Adjusted for the format change of font-spec.
991 (Finternal_char_font): Likewise.
992 (Ffontset_info): Likewise.
993 (syms_of_fontset): Don't check load_font_func.
994
995 * fns.c (internal_equal): Handle PREV_FONT.
996
997 * frame.h: Delete USE_FONT_BACKEND conditional.
998
999 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1000 conditionals. Don't check enable_font_backend. Delete all codes
1001 used only when USE_FONT_BACKEND is not defined.
1002 (x_set_font): Call x_new_font, not x_new_fontset2.
1003 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1004 already set for the frame.
1005
1006 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1007 a font-entity by font_make_entity. Use font_intern_prop instead
1008 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1009 font property. If a font is scalable, set avgwidth property to 0.
1010 Set font-entity property by font_put_extra.
1011 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1012 (ffont_driver): Adjusted for the change of struct font_driver.
1013 (ftfont_spec_pattern): New function.
1014 (ftfont_list): Return a list, not vector.
1015 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1016 (ftfont_list_family): Don't downcase names.
1017 (ftfont_free_entity): Deleted.
1018 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1019 struct font. Get underline_thickness and underline_position from
1020 font property. Don't update dpyinfo->smallest_font_height and
1021 dpyinfo->smallest_char_width.
1022 (ftfont_close): Don't free `struct font'.
1023 (ftfont_has_char): Adjusted for the format change of font-entity.
1024 (ftfont_encode_char, ftfont_text_extents): Likewise.
1025
1026 * ftxfont.c (ftxfont_list): Return a list, not vector.
1027 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1028 struct font. Get underline_thickness and underline_position from
1029 font property. Don't update dpyinfo->smallest_font_height and
1030 dpyinfo->smallest_char_width.
1031 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1032 (ftxfont_draw): Adjusted for the change of struct font.
1033
1034 * image.c (image_ascent): Don't include "charset.h". Include
1035 "character.h" and "font.h".
1036
1037 * lisp.h (enum pvec_type): New member PREV_FONT.
1038 (Fassoc_string): EXFUN it.
1039
1040 * print.c: Include font.h.
1041 (print_object): Handle font-related objects.
1042
1043 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1044 conditionals. Don't check enable_font_backend. Delete all codes
1045 used only when USE_FONT_BACKEND is not defined.
1046 (handle_auto_composed_prop): Do nothing if it->f is not on a
1047 window system. Check how many following characters can be
1048 displayed by the same font.
1049 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1050 'struct font *'.
1051 (get_char_face_and_encoding): Assign the whole encoding task to
1052 the `encode-char' method of a font driver.
1053 (fill_composite_glyph_string): Adjusted for the change of `struct
1054 face' and `struct glyph_string'.
1055 (fill_glyph_string): Likewise.
1056 (get_per_char_metric): Arguments changed.
1057 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1058 and `struct glyph_string'.
1059 (produce_stretch_glyph, calc_line_height_property)
1060 (x_produce_glyphs): Likewise.
1061
1062 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1063 conditionals. Don't check enable_font_backend. Delete all codes
1064 used only when USE_FONT_BACKEND is not defined. Use
1065 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1066 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1067 (Qp): Extern them.
1068 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1069 Deleted.
1070 (struct font_name): Deleted.
1071 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1072 (compare_fonts_by_sort_order): New function.
1073 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1074 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1075 Deleted.
1076 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1077 compare_fonts_by_sort_order.
1078 (Fx_font_family_list): Call Ffont_family_list.
1079 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1080 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1081 (face_symbolic_slant, face_symbolic_swidth)
1082 (split_font_name_into_vector, build_font_name_from_vector)
1083 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1084 (font_rescale_ratio, split_font_name, build_font_name)
1085 (free_font_names, sort_fonts, x_face_list_fonts)
1086 (face_font_available_p, sorted_font_list, cmp_font_names)
1087 (font_list_1, concat_font_list, font_list, remove_duplicates):
1088 Deleted.
1089 (Fx_list_fonts): Use Ffont_list.
1090 (LFACE_AVGWIDTH): Deleted.
1091 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1092 by FONTP.
1093 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1094 (set_lface_from_font_name): Delete it.
1095 (set_lface_from_font): Renamed from
1096 set_lface_from_font_and_fontset. Caller changed. Don't set
1097 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1098 for face.
c3f9fba8
JB
1099 (merge_face_vectors): Copy font-spec if necessary.
1100 Clear properties of the font-spec if necessary.
c6b278e7
KH
1101 (merge_face_ref): Clear properties of the font-spec if necessary.
1102 (Finternal_set_lisp_face_attribute): Likewise.
1103 (set_font_frame_param): Use font_load_for_lface to load a
1104 font-object, and call Fmodify_frame_parameters with it.
1105 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1106 font name by Ffont_xlfd_name.
1107 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1108 QCslant, and QCwidth.
1109 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1110 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1111 Compare fonts by EQ.
1112 (lookup_non_ascii_face): Deleted.
1113 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
1114 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1115 Check atomic font properties by case insensitive.
c6b278e7
KH
1116 (realize_non_ascii_face): Set face->overstrike correctly.
1117 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1118 (dump_realized_face): Get font name from
1119 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1120
1121 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1122 conditionals. Don't check enable_font_backend. Delete all codes
1123 used only when USE_FONT_BACKEND is not defined.
1124 (xic_create_xfontset): Original code deleted and renamed from
1125 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1126 (x_make_gc): Don't set GCFont in GCs.
1127 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1128 opened by "fixed".
1129 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1130 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1131 get_font_repertory_func.
1132
1133 * xfont.c: Include <stdlib.h> and "ccl.h".
1134 (struct xfont_info): New structure.
1135 (xfont_query_font): Deleted.
1136 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1137 moved from xterm.c.
1138 (xfont_driver): Adjusted for the change of struct font_driver.
1139 (compare_font_names): New function.
1140 (xfont_list_pattern): Sort font names case insensitively. Make
1141 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1142 (xfont_list): Return a list, not vector.
1143 (xfont_match): If the font doesn't have QCname property, generate
1144 a name from the other font properties.
1145 (xfont_open): Return a font-ojbect. Adjusted for the change of
1146 struct font. Get underline_thickness and underline_position from
1147 font property. Don't update dpyinfo->smallest_font_height and
1148 dpyinfo->smallest_char_width.
1149 (xfont_close): Don't free struct font.
1150 (xfont_prepare_face): Adjusted for the change of struct font.
1151 (xfont_done_face): Deleted.
1152 (xfont_has_char): Adjusted for the change of struct font.
1153 (xfont_encode_char, xfont_draw): Likewise.
1154 (xfont_check): New function.
1155
1156 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1157 callback function.
1158 (xftfont_match): Adjusted for the fontmat change of font-entity.
1159 (xftfont_open): Adjusted for the format change of font-entity and
1160 font-object. Adjusted for the change of struct font. Return a
1161 font-object. Don't update dpyinfo->smallest_font_height and
1162 dpyinfo->smallest_char_width.
1163 (xftfont_close): Block input while calling XftFontClose.
1164 (xftfont_prepare_face): Don't block input while calling
1165 xftfont_get_colors. Adjusted for the change of struct font.
1166 (xftfont_shape): Return value of error case fixed.
1167
1168 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1169
1170 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
1171 conditionals.
1172 (FONT_WIDTH): Return (f)->max_width.
1173 (struct x_display_info): Delete member `font'.
1174 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
1175 (x_find_ccl_program, x_get_font_repertory): Delete externs.
1176 (struct x_output): Change type of `font' to `struct font *'.
1177
1178 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
1179 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 1180 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
1181 (x_per_char_metric, x_encode_char): Deleted.
1182 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
1183 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 1184 `struct face'.
c6b278e7
KH
1185 (x_draw_glyph_string_foreground)
1186 (x_draw_composite_glyph_string_foreground): Likewise.
1187 (x_draw_glyph_string): Likewise. Use font->underline_position and
1188 font->underline_thickness.
1189 (x_new_font): Renamed from x_new_fontset2.
1190 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
1191 (x_check_font): Call `check' method of a font driver.
1192 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
1193 (x_query_font, x_get_font_repertory): Deleted.
1194 (x_find_ccl_program): Renamed and moved to xfont.c.
1195 (x_redisplay_interface): Adjusted for the change of `struct
1196 redisplay_interface'.
1197
1198 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
1199 conditionals. Don't check enable_font_backend. Delete all codes
1200 used only when USE_FONT_BACKEND is not defined. Surround non-used
1201 code by "#ifdef OLD_FONT" and "endif".
1202 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
1203
1204 * w32font.h (struct w32font_info): New member.
1205 (FONT_COMPAT): New macro.
1206 (w32font_open_internal): Prototype adjusted.
1207
1208 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
1209 OLD_FONT" and "endif".
1210
1211 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
1212 conditionals. Don't check enable_font_backend. Delete all codes
1213 used only when USE_FONT_BACKEND is not defined.
1214 (w32font_open): Return a font-object. Make a font-object by
1215 font_make_object. Adjusted for the change of struct w32font_info.
1216 (w32font_close): Don't free struct font. Adjusted for the change
1217 of struct w32font_info.
1218 (w32font_encode_char, w32font_text_extents, w32font_draw):
1219 Adjusted for the change of struct w32font_info.
1220 (w32font_draw): Likewise.
1221 (w32font_list_internal): Return a list, not vector.
1222 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 1223 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
1224 (add_font_name_to_list): Don't downcase names.
1225 (w32_enumfont_pattern_entity): Make a font-entity by
1226 font_make_entity. Adjusted for the format change of font-entity.
1227 Use FONT_SET_STYLE to set a style-related font property. If a
1228 font is scalable, set avgwidth property to 0. Set font-entity
1229 property by font_put_extra.
c3f9fba8 1230 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
1231 (w32_weight_table, w32_decode_weight): New variables.
1232 (w32_encode_weight): New function.
1233 (fill_in_logfont): Adjusted for the format change of font-spec.
1234 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
1235 weight value.
1236 (w32font_driver): Adjusted for the change of struct font_driver.
1237
1238 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
1239 conditionals. Don't check enable_font_backend. Surround non-used
1240 code by "#ifdef OLD_FONT" and "endif".
1241 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
1242 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
1243
1244 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
1245 conditionals. Don't check enable_font_backend. Delete all codes
1246 used only when USE_FONT_BACKEND is not defined. Surround non-used
1247 code by "#ifdef OLD_FONT" and "endif".
1248
1249 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
1250 (uniscribe_open): Return value changed to font-object.
1251 Adjusted for the format change of font-object.
1252 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
1253 (add_opentype_font_name_to_list): Don't downcase names.
1254 (uniscribe_font_driver): Adjusted for the change of struct
1255 font_driver.
1256
f9d4c199
CY
12572008-05-13 Chong Yidong <cyd@stupidchicken.com>
1258
1259 * dispnew.c (update_frame_1): Check if tty output is still valid
1260 before flushing it.
1261
44f249c0
JD
12622008-05-13 Jan Djärv <jan.h.d@swipnet.se>
1263
1264 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
1265 to Gtk+ menus.
1266
01bb4018
SM
12672008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1268
3271a8f5
SM
1269 * dired.c (file_name_completion): Tweak the code so as to always do it
1270 in a single pass. Tighten the scope of some variables.
1271
01bb4018
SM
1272 * dired.c (Qdefault_directory): New var.
1273 (file_name_completion): Use it instead of Fexpand_file_name.
1274 (syms_of_dired): Initialize it.
1275
728bb8e0
SM
12762008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
1277
1278 * fileio.c (double_dollars): Remove dead code.
1279
ed4c17bb
EZ
12802008-05-10 Eli Zaretskii <eliz@gnu.org>
1281
6c5665e9
EZ
1282 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
1283 Mention w32-get-true-file-attributes in doc string.
1284
ed4c17bb
EZ
1285 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1286
71e1f69d
GM
12872008-05-09 Glenn Morris <rgm@gnu.org>
1288
1289 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
1290 2008-04-23.
1291
ee7a2e7a
EZ
12922008-05-09 Eli Zaretskii <eliz@gnu.org>
1293
8aaaec6b
EZ
1294 Support for reporting owner and group of each file on MS-Windows:
1295 * dired.c (stat_uname, stat_gname): New functions, with special
1296 implementation for w32.
1297 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
1298
ee7a2e7a
EZ
1299 * w32.c: Rename the_passwd_* to dflt_passwd_*.
1300 (dflt_group_name): New static variable.
728bb8e0 1301 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
1302 (init_user_info): Init dflt_group fields. Get user's group name
1303 from LookupAccountSid.
8aaaec6b
EZ
1304 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
1305 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
1306 New initialization states.
1307 (globals_of_w32): Initialize them to zero. Initialize the default
1308 group name to "None".
1309 (GetFileSecurity_Name): New global var, the name of the function
1310 to call for GetFileSecurity.
1311 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
1312 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
1313 (get_file_security, get_security_descriptor_owner)
1314 (get_security_descriptor_group, is_valid_sid)
1315 (get_file_security_desc, get_rid, get_name_and_id)
1316 (get_file_owner_and_group): New functions.
1317 (stat): Use get_file_security_desc and get_file_owner_and_group to
1318 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
1319 high 32 bits of file's size, now that st_size is 64-bit wide.
1320 Fix test when to get true file attributes.
8aaaec6b
EZ
1321 (init_user_info): Use get_rid instead of equivalent inline code.
1322 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 1323
b199c436
CY
13242008-05-09 Chong Yidong <cyd@stupidchicken.com>
1325
1326 * image.c (png_load): Use correct bit-depth for setting background
1327 color.
1328
86914123
EZ
13292008-05-08 Eli Zaretskii <eliz@gnu.org>
1330
1331 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
1332 epa-hook.elc.
1333
67b5d7de
JB
13342008-05-08 Juanma Barranquero <lekktu@gmail.com>
1335
1336 * font.c (Ffont_match_p): Don't use `iff' in docstring.
1337
1a111394
DN
13382008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1339
1340 * macfns.c (Fx_create_frame): Make a copy of frame parameters
1341 because the original parameters are in pure storage now.
1342 (mac_window): Remove unused params. Update callers.
1343
6d77fa95
SM
13442008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1345
7a3d90dc
SM
1346 * lread.c (substitute_object_recurse): Use lower-level primitives.
1347 Don't signal errors when traversing sub-char-tables.
1348 Don't loop over all the possible characters when traversing char-tables.
1349
6d77fa95
SM
1350 * print.c (print_preprocess): Add sub-char-tables to the print-table,
1351 just like we do in print.c.
1352
140eb764
SM
13532008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1354
1355 * minibuf.c (Ftry_completion): Remove code left over from when we used
1356 scmp instead of Fcompare_strings.
1357
e9184ccb
JB
13582008-05-04 Juanma Barranquero <lekktu@gmail.com>
1359
1360 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
1361
0e9378b3
YM
13622008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1363
1364 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
1365 Create bitmap context in native byte order.
1366
f67e15be
MB
1367 * macterm.c (XDrawLine)
1368 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
1369 context in native byte order.
064032d0 1370
f67e15be 13712008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
1372
1373 * config.in: Regenerate.
1374
1375 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
1376 New definitions for Image I/O support.
1377 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1378 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
1379 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1380 (mac_data_provider_release_data, image_load_image_io)
1381 [USE_MAC_IMAGE_IO]: New functions.
1382 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
1383 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
1384 (init_image_func_pointer) [MAC_OSX]: Remove function.
1385 (image_load_quartz2d) [MAC_OSX]: Check availability of
1386 CGImageCreateWithPNGDataProvider at compile time.
1387 Use lowercase `false' for boolean constant.
1388 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
1389 Use image_load_image_io.
1390 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
1391 Don't check MyCGImageCreateWithPNGDataProvider.
1392 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
1393 Don't call init_image_func_pointer.
1394
1395 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
1396
1397 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
1398 Make variable non-static.
1399 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1400 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1401
1402 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
1403 (RED_FROM_ULONG): Mask off higher bits.
1404 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
1405
1406 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
1407 Include AvailabilityMacros.h.
1408 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
1409 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
1410
c6bff69e
SM
14112008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
1412
1413 * chartab.c (Fset_char_table_range): If range is t, really set all
1414 chars to that value.
1415
7412d429
EZ
14162008-05-03 Eli Zaretskii <eliz@gnu.org>
1417
1418 * dired.c (Ffile_attributes): Don't allow the device number become
1419 negative.
1420
f83bbfac
DU
14212008-05-02 Daiki Ueno <ueno@unixuser.org>
1422
5a81d3d7 1423 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 1424
2e3148e2
JL
14252008-05-02 Juri Linkov <juri@jurta.org>
1426
1427 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
1428 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
1429 DEFAULT argument as a list of default values in docstrings.
2e3148e2 1430
923fb88c
CY
14312008-05-01 Chong Yidong <cyd@stupidchicken.com>
1432
1433 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1434
047aaeb9
MR
14352008-05-01 Martin Rudalics <rudalics@gmx.at>
1436
1437 * dispnew.c (change_frame_size_1): Preserve small windows when
1438 shrinking frames by calling set_window_height|width with third
1439 arg 2.
1440
1441 * window.h (struct window): Replace field too_small_ok by field
1442 resize_proportionally.
1443
1444 * window.c (make_window): Initialize resize_proportionally.
1445 (enlarge_window): Temporarily set resize_proportionally to make
1446 sure that shrink_windows does scale the window proportionally.
1447 (shrink_windows): When window has resize_proportionally set try
1448 to shrink it proportionally by stealing from other windows.
1449 (struct saved_window, Fset_window_configuration)
1450 (compare_window_configurations): Handle resize_proportionally.
1451 (WINDOW_TOTAL_SIZE): New macro.
1452 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 1453 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
1454 window-min-height|width are handled by window_min_size_2 now.
1455 (size_window, Fsplit_window, enlarge_window)
1456 (adjust_window_trailing_edge, grow_mini_window): Don't call
1457 check_min_window_sizes.
c6bff69e
SM
1458 (window_min_size_2, window_min_size_1, window_min_size):
1459 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 1460 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
1461 (adjust_window_trailing_edge, grow_mini_window):
1462 Adjust arguments of window_min_size... functions.
047aaeb9
MR
1463 (shrink_windows): Argument min_size removed. New argument
1464 safe_p allows shrinking windows to their safe minimum sizes.
1465 Calculate minimum size and decide whether a window shall be
1466 deleted for each window individually.
1467 (size_window): When nodelete_p equals 2, tell shrink_windows to
1468 delete windows only if their new minimum size is no more safe.
1469 (shrink_window_lowest_first): Call window_min_size_1 to make
1470 sure to preserve modeline of bottom-most window when resizing
1471 the minibuffer.
1472 (Fset_window_configuration, Fcurrent_window_configuration)
1473 (compare_window_configurations): Do not handle
1474 window-min-height|width any more.
1475 (syms_of_window): Clarify window-min-height|width doc-strings.
1476
2a54a229
SM
14772008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
1478
1479 * dired.c (file_name_completion): Fix up the encoding/decoding issue
1480 some more. Copy some of the code from Ftry_completions.
1481 Remove special case code that dates back to initial revision when the
1482 slash was only added when necessary and that can't trigger nowadays.
1483
384bc634
KH
14842008-04-27 Kenichi Handa <handa@m17n.org>
1485
1486 * font.c (font_prop_validate): Signal `error' instead of `font'.
1487
2c2279c6
JR
14882008-04-29 Jason Rumney <jasonr@gnu.org>
1489
1490 * w32fns.c (Fw32_battery_status): New defun.
1491 (syms_of_w32fns): Defsubr it.
1492
fb4a622a
AS
14932008-04-28 Andreas Schwab <schwab@suse.de>
1494
1495 * dired.c (file_name_completion): Fix another mixing of encoded
1496 and decoded names.
1497
23f250f4
JB
14982008-04-28 Juanma Barranquero <lekktu@gmail.com>
1499
1500 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
1501
d8d30dff
JB
15022008-04-27 Juanma Barranquero <lekktu@gmail.com>
1503
1504 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1505
ea6104a8
AS
15062008-04-27 Andreas Schwab <schwab@suse.de>
1507
9c691c00
AS
1508 * dired.c (file_name_completion): Fix inappropriate mixing of
1509 encoded and decoded names.
1510
ec1bf773
AS
1511 * xterm.c (XTread_socket): Fix use of uninitialized variable.
1512
ea6104a8
AS
1513 * puresize.h (BASE_PURESIZE): Increase to 1200000.
1514
01388a3d
EZ
15152008-04-26 Eli Zaretskii <eliz@gnu.org>
1516
1517 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
1518 2008-03-31, it's not needed anymore with `struct stat' definition
1519 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
1520 for the same reasons.
1521
175aea10 15222008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
1523
1524 * m/sparc.h: Additional redefinitions for GNU/Linux.
1525
1289aeb8
YM
15262008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1527
1528 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
1529 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1530 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
1531 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
1532 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1533 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
1534 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1535 Likewise.
1536
1537 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 1538 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
1539 (mac_ax_number_of_characters): Add externs.
1540 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1541 [USE_MAC_TSM]: Likewise.
1542 (mac_handle_text_input_event) [MAC_OSX]:
1543 Handle kEventTextInputOffsetToPos for no active input area case.
1544 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1545 (mac_handle_document_access_event)
1546 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
1547 (install_application_handler) [MAC_OSX]: Register handlers for
1548 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1549 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1550 Register mac_handle_document_access_event.
1551
1552 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
1553 Make functions non-static.
1554
dbd50d4b
SM
15552008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1556
1557 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
1558 (read_file_name_completion_ignore_case, insert_default_directory)
1559 (Qdefault_directory): Move to minibuffer.el.
1560 (Fread_file_name): Call the new `read-file-name' instead.
1561
9ea37b9d 15622008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
1563
1564 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
1565 Make function non-static.
1566 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
1567 Remove function.
1568 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1569 Move to mactoolbox.c.
1570 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
1571
1572 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
1573 (mac_rect_make): New macro.
1574
1575 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
1576 instead of float.
1577 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1578 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
1579 (XSetBackground) [USE_CG_DRAWING]: Likewise.
1580 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
1581 CGRectMake.
1582 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1583 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
1584 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
1585 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1586 instead of WindowRef in argument type.
1587 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
1588 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
1589 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
1590 instead of DISPLAY. All uses changed.
1591 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
1592 (x_calc_absolute_position): Simplify so as not to use
1593 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
1594
1595 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1596 instead of WindowRef in argument type.
1597 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
1598 [TARGET_API_MAC_CARBON]: Remove externs.
1599 (create_apple_event, mac_event_parameters_to_lisp)
1600 [TARGET_API_MAC_CARBON]: Add externs.
1601
d8d30dff 1602 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
1603 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
1604 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
1605 is clicked.
1606 (x_activate_menubar): Remove extern for saved_menu_event_location.
1607 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1608 Move from mac.c.
1609
9ea37b9d 16102008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
1611
1612 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
1613 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
1614
9ea37b9d 16152008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
1616
1617 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
1618 attributes only for local files.
1619
1620 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 1621 default to Qlocal.
bd735631 1622
88970542
JL
16232008-04-22 Juri Linkov <juri@jurta.org>
1624
1625 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
1626 read-buffer-to-switch instead of using the letter "B".
1627
92ec67e3
SM
16282008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1629
1630 * fileio.c (Qdefault_directory): New variable.
1631 (Fread_file_name): Use it to pass `dir' to the completion functions.
1632
a32b2382
CY
16332008-04-20 Chong Yidong <cyd@stupidchicken.com>
1634
2a2e8de7 1635 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 1636
6c8b4f07
SM
16372008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
1638
ece5f847
SM
1639 * keyboard.c (Vpre_help_message): Remove.
1640 (show_help_echo): Remove default C code.
1641
6c8b4f07
SM
1642 * dired.c (directory_files_internal, file_name_completion):
1643 Only call ENCODE_FILE if the string is indeed decoded.
1644
73d798d5
SM
16452008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1646
1647 * Makefile.in (TOOLKIT_DEFINES): Remove.
1648 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
1649
d8d30dff 16502008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
1651
1652 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
1653 (mactoolbox.o): New target.
1654
1655 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
1656 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
1657
1658 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
1659 Use mac_set_frame_window_background instead of XSetWindowBackground.
1660 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
1661 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
1662 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
1663 instead of SetWindowTitleWithCFString.
1664 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
1665 Move function to mactoolbox.c.
1666 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1667 Use mac_set_window_modified instead of SetWindowModified.
1668 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
1669 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
1670 (Fx_focus_frame): Use mac_front_non_floating_window instead of
1671 FrontNonFloatingWindow. Use mac_activate_window instead of
1672 ActivateWindow. Use mac_active_non_floating_window instead of
1673 ActiveNonFloatingWindow.
1674 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
1675 Use mac_show_hourglass and mac_hide_hourglass.
1676 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
1677 instead of GetGlobalMouse.
1678 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
1679 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
1680 Use mac_bring_window_to_front instead of BringToFront.
1681 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
1682 mactoolbox.c.
1683 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
1684 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
1685 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
1686 mactoolbox.c.
1687
1688 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
1689 (XtPointer): Move typedef from macmenu.c.
1690 (enum button_type): Move enum from macmenu.c.
1691 (widget_value): Move typedef from macmenu.c.
1692 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
1693 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1694 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1695 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1696 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1697 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1698 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1699 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
1700 (Selection): Move typedef from macselect.c.
1701 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
1702 macterm.c.
1703 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
1704 (mac_is_window_collapsed, mac_bring_window_to_front)
1705 (mac_send_window_behind, mac_hide_window, mac_show_window)
1706 (mac_collapse_window, mac_front_non_floating_window)
1707 (mac_active_non_floating_window, mac_activate_window)
1708 (mac_move_window_structure, mac_move_window, mac_size_window)
1709 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
1710
1711 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
1712 (enum mac_menu_kind): Move enum to mactoolbox.c.
1713 (min_menu_id): Move variable to mactoolbox.c.
1714 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
1715 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
1716 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1717 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1718 [TARGET_API_MAC_CARBON]: Likewise.
1719 (XtPointer): Move typedef to macgui.h.
1720 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
1721 (widget_value): Move typedef to macgui.h.
1722 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1723 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1724 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1725 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1726 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1727 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1728 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
1729 (popup_activated_flag): Make variable non-static.
1730 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
1731 (add_menu_item, fill_menu, dispose_menus):
1732 Move functions to mactoolbox.c.
1733 (restore_show_help_function, menu_target_item_handler)
1734 (install_menu_target_item_handler, mac_handle_dialog_event)
1735 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
1736 [TARGET_API_MAC_CARBON]: Likewise.
1737 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
1738 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1739 (find_and_call_menu_selection, name_is_separator): Make function
1740 non-static.
1741 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
1742 to mactoolbox.c.
1743 (set_frame_menubar): Don't call install_menu_quit_handler.
1744 (menu_item_selection): New variable.
1745 (mac_menu_show): Use create_and_show_popup_menu.
1746 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
1747 selection but set variable menu_item_selection. All uses changed.
1748 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
1749 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 1750
d02fe47d
MB
1751 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
1752 (Selection): Move typedef to macgui.h.
1753 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
1754 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
1755 Make variables non-static.
1756 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1757 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
1758 Make functions non-static.
1759 (Vmac_service_selection) [MAC_OSX]: Likewise.
1760 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
1761 (mac_valid_selection_target_p, mac_clear_selection)
1762 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1763 (mac_put_selection_value, mac_selection_has_target_p)
1764 (mac_get_selection_value, mac_get_selection_target_list)
1765 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
1766 Move functions to mactoolbox.c.
1767 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
1768 Likewise.
1769 (copy_scrap_flavor_data, mac_handle_service_event)
1770 (install_service_handler) [MAC_OSX]: Likewise.
1771 (syms_of_macselect) <Vmac_dnd_known_types>:
1772 Use mac_dnd_default_known_types.
463f55ee 1773
d02fe47d
MB
1774 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
1775 Move to mactoolbox.c.
1776 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
1777 (Fx_selection_owner_p): Add EXFUN.
1778 (install_window_handler, remove_window_handler, XSetWindowBackground):
1779 Remove externs.
1780 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
1781 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
1782 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
1783 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
1784 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
1785 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
1786 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
1787 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
1788 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
1789 (create_and_show_popup_menu, mac_get_selection_from_symbol)
1790 (mac_valid_selection_target_p, mac_clear_selection)
1791 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1792 (mac_put_selection_value, mac_selection_has_target_p)
1793 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
1794 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
1795 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
1796 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1797 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
1798 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1799 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
1800 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
1801 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 1802
d02fe47d 1803 * mactoolbox.c: New file.
af253914 1804
d8d30dff 18052008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 1806
d02fe47d 1807 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 1808
8ee085a4
SM
18092008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1810
73d798d5
SM
1811 * character.c (Fmultibyte_char_to_unibyte):
1812 Return latin1 chars unchanged.
5556875b 1813
8ee085a4
SM
1814 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
1815 relocated if it points to `name'.
1816
5dff5999
KH
18172008-04-17 Kenichi Handa <handa@m17n.org>
1818
1819 * data.c (Faset): Allow setting a multibyte character in an
1820 ASCII-only unibyte string.
1821
1822 * lisp.h (STRING_SET_MULTIBYTE): New macro.
1823
a51f4969
SM
18242008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
1825
1826 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
1827 done in config.h.
1828
add553ac
JB
18292008-04-16 Juanma Barranquero <lekktu@gmail.com>
1830
1831 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
1832 (Fchar_direction): Add usage in the docstring.
1833
8ad7b280
CY
18342008-04-15 Chong Yidong <cyd@stupidchicken.com>
1835
1836 * keyboard.c (read_key_sequence): Remove always-true checks.
1837
e157d7ba
JR
18382008-04-14 Jason Rumney <jasonr@gnu.org>
1839
1840 * w32font.c (w32font_open_internal): Set max_bounds.descent in
1841 compatibility struct, for better underline positioning.
1842
9ec3aaef 18432008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
1844
1845 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
1846 string.
1847
36c08864
DN
18482008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1849
1850 * m/hp800.h (XUINT, XSET): Remove.
1851
f5acc071
JB
18522008-04-12 Juanma Barranquero <lekktu@gmail.com>
1853
1854 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
1855 previous change.
1856
5b5a2ea1
SM
18572008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1858
1859 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
1860 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
1861
492d9fd6
SM
18622008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1863
1864 * keymap.h (map_keymap_canonical): Declare.
1865 * xmenu.c (single_keymap_panes): Use it.
1866
dd60787c
GM
18672008-04-11 Glenn Morris <rgm@gnu.org>
1868
1869 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
1870 set the target's value to that of the alias.
1871
c23b5410
SM
18722008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1873
1874 * term.c (set_tty_color_mode): Left over typo.
1875
e89b536d
MA
18762008-04-10 Michael Albinus <michael.albinus@gmx.de>
1877
1878 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 1879 only after check for file name handler functions. Signal, when
e89b536d
MA
1880 native functionality is not supported.
1881 (syms_of_fileio): Declare it unconditionally.
1882
40a339c8
JR
18832008-04-10 Jason Rumney <jasonr@gnu.org>
1884
31403b24
JR
1885 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
1886 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
1887
40a339c8
JR
1888 * w32.c (logon_network_drive): Also logon to remote drives that
1889 are mapped to drive letters.
1890
96a7394f
GM
18912008-04-10 Glenn Morris <rgm@gnu.org>
1892
1893 * xdisp.c (truncate-partial-width-windows): Doc fix.
1894
34b67b0f
SM
18952008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
1896
1897 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
1898 Move functions to minibuffer.el.
1899 (syms_of_fileio): Don't declare them.
1900
c025fb0a
SM
19012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1902
ba5ff07b
SM
1903 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
1904 (syms_of_minibuf): Remove its initialization.
1905
c025fb0a
SM
1906 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
1907
7a6a86ad
JB
19082008-04-09 Juanma Barranquero <lekktu@gmail.com>
1909
1910 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
1911
cf907d69
JR
19122008-04-09 Jason Rumney <jasonr@gnu.org>
1913
3dc94c30
JR
1914 * makefile.w32-in (distclean): Delete makefile too.
1915 (maintainer-clean): New target.
1916
8d28646b
JR
1917 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
1918
cf907d69
JR
1919 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
1920 for new font backend and composite cases.
1921
ef5eb925
JD
19222008-04-09 Jan Djärv <jan.h.d@swipnet.se>
1923
1924 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
1925 Most of the code moved to run_timers.
1926 (do_pending_atimers): Call run_timers.
1927 (run_timers): New function.
1928
cf907d69
JR
1929 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
1930 run atimers.
ef5eb925
JD
1931
1932 * process.c (wait_reading_process_output): The same as above.
1933
9b2cd403
SM
19342008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1935
32bae13c
SM
1936 * minibuf.c (last_exact_completion): Remove variable.
1937 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
1938 (complete_and_exit_1, complete_and_exit_2)
1939 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
1940 (Fdisplay_completion_list, display_completion_list_1)
1941 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
1942 (Fexit_minibuffer, Fminibuffer_message): Move functions to
1943 minibuffer.el.
32bae13c
SM
1944 (syms_of_minibuf): Remove corresponding initializations.
1945
5c4cc82a
SM
1946 * keyboard.c (Qdeactivate_mark): New var.
1947 (command_loop_1): Use it to call `deactivate-mark'.
1948 (syms_of_keyboard): Initialize it.
1949
9b2cd403
SM
1950 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
1951 to another frame.
1952 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
1953 Don't call set_tty_color_mode.
1954 (store_frame_param): Reset previous_frame rather than call
1955 set_tty_color_mode.
1956 * term.c (set_tty_color_mode): Rewrite.
1957 * dispextern.h (set_tty_color_mode): New type.
1958 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
1959
84cb7b45
SM
19602008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1961
1962 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
1963 for generic chars, which do not exist any more in emacs-unicode.
1964
3ed051d4
MA
19652008-04-08 Michael Albinus <michael.albinus@gmx.de>
1966
1967 * coding.c (detect_coding_emacs_mule)
1968 (Ffind_operation_coding_system): Fix typo.
1969
58c3ea42
JR
19702008-04-08 Jason Rumney <jasonr@gnu.org>
1971
3bf8d230
JR
1972 * w32uniscribe.c (SNAME): Extract only symbol name.
1973
56a70cca
JR
1974 * w32font.h (struct w32_metric_cache): New struct.
1975 (w32font_info): Use it.
1976 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
1977 (CACHE_BLOCKSIZE): New constants.
3ed051d4 1978
58c3ea42
JR
1979 * w32font.c (Qja, Qko, Qzh): New symbols.
1980 (syms_of_w32font): Initialise them.
1981 (font_matches_spec): Use them to filter by language.
1982 (recompute_cached_metrics): Remove function.
1983 (compute_metrics, clear_cached_metrics): New functions.
1984 (w32font_encode_char): Use them to manage metric cache.
1985 (w32font_text_extents): Cache metrics for all glyphs on demand.
1986 Delay converting glyph indices to WORD until needed.
1987 (w32font_open_internal): Initialize metric cache to empty.
1988 (registry_to_w32_charset): Charset should always be a symbol.
1989 (fill_in_logfont, list_all_matching_fonts): Family should
1990 always be a symbol.
1991
0ce24b2d
JR
19922008-04-06 Jason Rumney <jasonr@gnu.org>
1993
1994 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
1995 Give up if glyph indices not supported. Use uniscribe obtained
1996 ABC widths for individual metrics. Map glyph clusters back to
1997 characters using fClusterStart flag. Return number of glyphs
1998 produced, not chars processed.
b7655e0c 1999 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 2000
5bc6ddff 20012008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 2002
fbf57abb
JB
2003 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2004 Use SetMenuItemHierarchicalMenu.
56613f06 2005
5bc6ddff 20062008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 2007
5bc6ddff
MB
2008 * image.c (pbm_load): Allow color values up to 65535.
2009 Throw an error if max_color_idx is outside the supported range.
2010 Report an error when image size is invalid.
2011 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 2012
5bc6ddff 20132008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 2014
5bc6ddff
MB
2015 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2016 cFileName a file name that includes `?' characters, use the 8+3
2017 alias in cAlternateFileName instead.
5ed6ba5b 2018
5bc6ddff 20192008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 2020
5bc6ddff
MB
2021 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2022 append "CCL: Quitted" when the CCL program is quitted.
2023 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 2024
5bc6ddff 2025 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 2026
c36e15db
CY
20272008-04-05 Chong Yidong <cyd@stupidchicken.com>
2028
9605d567
CY
2029 * search.c (compile_pattern_1): Treat non-nil and non-string of
2030 search-spaces-regexp as nil.
2031
c36e15db
CY
2032 * minibuf.c (Fassoc_string): Tweak docstring.
2033
40beb147
EZ
20342008-04-05 Eli Zaretskii <eliz@gnu.org>
2035
2036 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2037 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2038 2008-03-14 to force inode be positive.
2039
2040 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2041 _S_* ones, since we now use our own sys/stat.h.
2042 (stat, fstat): Don't mangle the inode number.
aa08d1ff 2043 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 2044
4591d6cb
SM
20452008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2046
d4417eb0
SM
2047 * frame.h (struct frame): Give one more bit to `visible' since we use
2048 values larger than 1 to indicate obscured frames on ttys.
2049
00f7c5ed
SM
2050 * keymap.c (Qkeymap_canonicalize): New var.
2051 (Fmap_keymap_internal): New fun.
2052 (describe_map): Use keymap-canonicalize.
2053
4591d6cb
SM
2054 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2055 (Fundo_boundary): Set them.
2056 (syms_of_undo): Initialize them.
2057 (record_point): Use them instead of last_point_position*.
2058 (last_undo_buffer): Change type.
2059
3187540e
JR
20602008-04-04 Jason Rumney <jasonr@gnu.org>
2061
0ce24b2d
JR
2062 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2063 (recompute_cached_metrics): Don't set ascent and descent per char.
2064
3187540e 2065 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 2066 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 2067 Rearrange loop for counting features.
3187540e 2068
f1a6b216
SM
20692008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2070
2071 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2072 buffer with byte-size of source buffer.
2073
1d8dcf63
CY
20742008-04-03 Chong Yidong <cyd@stupidchicken.com>
2075
2076 * callint.c (Fcall_interactively): Handle temporary region even
2077 when shift-select-mode is off.
2078
6b8aa22a
JR
20792008-04-03 Jason Rumney <jasonr@gnu.org>
2080
2081 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2082
2f3cbb32
KH
20832008-04-03 Kenichi Handa <handa@m17n.org>
2084
2085 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2086 (CATEGORY_MASK_UTF_16): Likewise.
2087 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2088 binary file.
2089 (detect_coding): Add null-byte detection for a binary file.
2090 (detect_coding_system): Likewise.
2091
43f4f91c
JR
20922008-04-03 Jason Rumney <jasonr@gnu.org>
2093
0c1b4ae2
JR
2094 * w32uniscribe.c: New file.
2095
2096 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2097
2098 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2099
2100 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2101 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2102 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2103 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2104 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2105 (Qphonetic): New symbols.
2106 (syms_of_w32font): Initialize them.
2107 (font_supported_scripts): Use them.
2108 (w32font_list_family): List all charsets.
2109 (w32font_text_extents, recompute_cached_metrics): Fix metric
2110 calculations.
2111 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2112 Give opentype fonts their own format.
2113 (font_matches_spec): New arguments backend and logfont.
2114 Handle :otf spec for uniscribe backend.
2115 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2116 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 2117
0c1b4ae2
JR
2118 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2119 font backend.
2120 (globals_of_w32fns): Initialize uniscribe font backend.
2121
fbf57abb 2122 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
2123 dependencies.
2124 (w32uniscribe.$(O)): New file to build.
2125 (FONT_OBJ): Include w32uniscribe.$(O).
2126 (LIBS): Add uniscribe libraries.
2127
43f4f91c
JR
2128 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2129
75043a7d
CY
21302008-04-02 Chong Yidong <cyd@stupidchicken.com>
2131
2132 * callint.c (Vshift_select_mode): New var.
2133 (Finteractive): Document new ^ spec.
2134 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2135 is present.
2136
2137 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2138 (command_loop_1): Avoid running the direct display versions of
2139 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
2140 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2141 shift-translation takes place.
2142
2143 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2144 avoid clobbering by define-minor-mode.
2145
2146 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2147 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2148
2149 * syntax.c (Fforward_word): Add ^ interactive spec.
2150
2151 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2152 (Fscroll_right): Add ^ interactive spec.
2153
b2b7f29e
SM
21542008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2155
a432c0a6
SM
2156 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2157
994b75e0
SM
2158 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2159
b2b7f29e
SM
2160 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2161
e99c7806
JL
21622008-03-31 Juri Linkov <juri@jurta.org>
2163
2164 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2165
1c9c1270
JD
21662008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2167
2168 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 2169 (xg_resize_outer_widget): Remove.
1c9c1270
JD
2170 (x_wm_size_hint_off): Fix indentation.
2171 (xg_frame_set_char_size): Call flush_and_sync after
2172 gtk_window_resize.
2173 (x_wm_set_size_hint): Pass NULL as geometry window to
2174 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
2175 Add menu bar and tool bar height to base height.
2176 (xg_update_frame_menubar, free_frame_menubar)
2177 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
2178 (update_frame_tool_bar, free_frame_tool_bar):
2179 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 2180
90b3fc84
MA
21812008-03-30 Michael Albinus <michael.albinus@gmx.de>
2182
2183 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
2184 (Fdbus_call_method): New parameter TIMEOUT.
2185 (dbus-send-signal): Optimize UNGCPRO call.
2186
7ae6d1d1
JL
21872008-03-29 Juri Linkov <juri@jurta.org>
2188
2189 * window.c (Fdisplay_buffer): Move call to
2190 Vsplit_window_preferred_function out of conditions that check
2191 if window is eligible for vertical splitting.
2192 When Vsplit_window_preferred_function is non-nil, call it and use
2193 its non-nil return value as window. Otherwise, continue doing
2194 vertical splitting using Fsplit_window with arg horflag=nil.
2195 (syms_of_window) <Vsplit_window_preferred_function>: Change the
2196 default value from `split-window' to nil.
2197
f03f8f2c
JL
21982008-03-29 Juri Linkov <juri@jurta.org>
2199
2200 * callint.c (Fcall_interactively): Revert 2008-03-16 change
2201 for interactive code letters 'b' and 'B'.
2202
6d557778
EZ
22032008-03-29 Eli Zaretskii <eliz@gnu.org>
2204
2205 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
2206 multibyte string.
2207
58555d81
SM
22082008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2209
2210 * keyboard.c (pending_funcalls): New var.
2211 (timer_check): Run it.
2212 (syms_of_keyboard): Initialize it.
2213 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
2214 (Vdelete_terminal_functions): New vars.
2215 (syms_of_terminal): Initialize them.
2216 (Fdelete_terminal): Run delete-terminal-functions.
2217 * xdisp.c (safe_eval): Rewrite.
2218 (safe_call2): New fun.
2219 * frame.c (Qdelete_frame_functions): New var.
2220 (syms_of_frame): Initialize it.
2221 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
2222 * lisp.h (safe_call2, pending_funcalls): Declare.
2223
4c92f429
AS
22242008-03-28 Andreas Schwab <schwab@suse.de>
2225
2226 * indent.c (Fmove_to_column): Move declaration before statements.
2227
a1567c45
SM
22282008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2229
2806a183
SM
2230 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
2231 (struct frame): Use bit fields for boolean vars.
2232
eef60308
SM
2233 * process.c (server_accept_connection): Simplify naming.
2234 (emacs_get_tty_pgrp): Use SDATA.
2235
a1567c45
SM
2236 * coding.c (decode_coding_object): Fix last change.
2237
30076589
JR
22382008-03-27 Jason Rumney <jasonr@gnu.org>
2239
2240 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
2241
880820fe
KH
22422008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
2243
2244 * charset.c (Fdefine_charset_internal): Change the way of
2245 registering charsets in Vcharset_order_list.
2246 (syms_of_charset): Make the charset `eight-bit' supplementary.
2247
3cf8cdfb
CY
22482008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
2249
2250 * regex.c (EXTEND_BUFFER): Change order of pointer addition
2251 operations, to avoid having the difference between pointers
2252 overflow.
2253
ef6f5c0e
SM
22542008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2255
80e3db56
SM
2256 * indent.c (check_display_width): New fun.
2257 (scan_for_column): Use it.
2258
c397dc7a
SM
2259 * data.c (syms_of_data): Mark most-positive-fixnum and
2260 most-negative-fixnum as constants.
2261
bf6b4d58
SM
2262 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
2263
ef6f5c0e
SM
2264 * indent.c (scan_for_column): Extract from current_column_1.
2265 Merge with the same code from Fmove_to_column.
2266 (current_column_1, Fmove_to_column): Use it.
2267
72d5003d
SM
22682008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2269
12270607
SM
2270 * keymap.c (map_keymap_internal): New fun.
2271 (map_keymap): Use it.
2272 (Fmap_keymap_internal): New fun.
2273 (Fmap_keymap): Remove left-out test from before make_save_value.
2274
a10cca6c
SM
2275 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2276
d7b10f4c
SM
2277 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
2278 Use XCAR/XCDR.
2279
5431bd6a
SM
2280 * process.h (struct Lisp_Process): Remove filter_multibyte.
2281 * process.c (QCfilter_multibyte): Remove.
2282 (setup_process_coding_systems): Don't use filter_multibyte.
2283 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
2284 (read_process_output): Don't adjust multibyteness to filter_multibyte.
2285 (Fset_process_filter_multibyte): Change the coding-system to
2286 approximate the previous behavior.
2287 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
2288 coding-system.
2289
72d5003d
SM
2290 * coding.c (decode_coding_object): When not decoding into a buffer,
2291 obey the coding system's preference of (uni|multi)byte.
2292
438eba3c
SM
22932008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2294
2295 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
2296 every char is changed and has a different byte-length.
2297 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
2298 Fix int -> EMACS_INT.
2299
9ec3aaef 23002008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 2301
438eba3c 2302 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
2303 strings. Check for NULL `interface' or `member'.
2304
b07103dc
EZ
23052008-03-22 Eli Zaretskii <eliz@gnu.org>
2306
2307 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2308 cFileName a file name that includes `?' characters, use the 8+3
2309 alias in cAlternateFileName instead.
2310
5371d722
SM
23112008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2312
2313 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
2314
6ba7f443
SM
23152008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2316
2317 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
2318 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
2319 work on current_buffer only instead (that was already the case
2320 for some of the code anyway).
2321 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
2322 (temp_set_point, temp_set_point_both): Use EMACS_INT.
2323 (SET_PT, SET_PT_BOTH): Adjust.
2324 * intervals.h (set_point, temp_set_point, set_point_both)
2325 (temp_set_point_both): Remove redundant declarations.
2326
bf1c0f27
SM
23272008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2328
2329 * fileio.c (Finsert_file_contents):
2330 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
2331 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
2332 when buffer != current_buffer anyway.
2333
acab783e
AS
23342008-03-20 Andreas Schwab <schwab@suse.de>
2335
2336 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
2337 as default.
2338
d148e14d
JR
23392008-03-19 Jason Rumney <jasonr@gnu.org>
2340
2341 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
2342 (syms_of_w32fns): Initialize them.
2343 (HOURGLASS_ID): New constant.
2344 (x_window_to_frame): Don't check hourglass_window.
2345 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
2346 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
2347 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
2348 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
2349 Only change the cursor if hourglass is not active.
2350 (Fx_create_frame): Initialize frame's current_cursor.
2351 (hourglass_atimer): Remove.
2352 (hourglass_started): New function.
2353 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
2354 (show_hourglass): Adapt to w32, changing argument to frame.
2355
2356 * w32term.h (struct w32_output): Remove hourglass_window.
2357 Add current_cursor.
2358
2359 * eval.c (call_debugger, Fsignal):
2360 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
2361 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
2362 (Fexecute_extended_command, cancel_hourglass_unwind):
2363 * minibuf.c (read_minibuf):
2364 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 2365
a5c54077
JB
23662008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2367
2368 * window.c (run_funs): New fun.
2369 (run_window_configuration_change_hook): Use it to run the buffer-local
2370 and the global part of the hook.
2371
2372 * xdisp.c (format_mode_line_unwind_data): Add window argument.
2373 (unwind_format_mode_line): Restore selected window.
2374 (x_consider_frame_title, Fformat_mode_line): Set selected window.
2375
f9f3238f
SM
23762008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2377
253c3c82
SM
2378 * editfns.c (Fchar_equal): Check they are valid characters.
2379
f9f3238f
SM
2380 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
2381
065a118d
AS
23822008-03-17 Andreas Schwab <schwab@suse.de>
2383
0b8be006
AS
2384 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
2385 against a charset.
2386
065a118d
AS
2387 * lisp.h (Fbuffer_list): Declare.
2388
880820fe 23892008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
2390
2391 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
2392 handlebox_widget is != 0.
2393
6206d6c2
JL
23942008-03-16 Juri Linkov <juri@jurta.org>
2395
2396 * callint.c (Fcall_interactively): For interactive code letters
2397 'b' and 'B' put the buffer list into the list of default "future"
2398 values of the minibuffer.
2399
f5020181
AS
24002008-03-16 Andreas Schwab <schwab@suse.de>
2401
a864f6d6
AS
2402 * keyboard.c (read_key_sequence): Fix downcasing of letters with
2403 modifiers.
2404
f5020181
AS
2405 * regex.c (re_match_2_internal): Correct matching of a charset
2406 against latin-1 characters.
2407
03f244e2
KH
24082008-03-16 Kenichi Handa <handa@m17n.org>
2409
2410 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
2411 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
2412 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
2413 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
2414 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
2415 CHAR_STRING_ADVANCE.
2416 (produce_chars): Fix for the case that the source and the
2417 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
2418 instead of CHAR_STRING_ADVANCE.
2419 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
2420 STRING_CHAR_ADVANCE.
2421
0e2501ed
AS
24222008-03-15 Andreas Schwab <schwab@suse.de>
2423
2424 * regex.c (re_match_2_internal): Correct matching of eight bit
2425 characters in unibyte strings.
2426
7723e095
MR
24272008-03-15 Martin Rudalics <rudalics@gmx.at>
2428
2429 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
2430 at end of range when it coincides with the end of the buffer.
2431
f507f365
EZ
24322008-03-14 Eli Zaretskii <eliz@gnu.org>
2433
294f1153
EZ
2434 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
2435
f507f365
EZ
2436 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2437
64f0809d
JR
24382008-03-14 Jason Rumney <jasonr@gnu.org>
2439
956ae531
JR
2440 * editfns.c (initial_tz): New variable.
2441 (syms_of_editfns): Initialize it.
2442 (Fset_time_zone_rule): Set it when first called.
2443 Use it when TZSTRING is nil.
2444
64f0809d
JR
2445 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
2446 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
2447 (monitor_from_point_fn, get_monitor_info_fn): New globals.
2448 (globals_of_w32fns): Initialize them.
2449 (compute_tip_xy): Use them to position tooltips.
2450
21a4ff8e
GM
24512008-03-14 Glenn Morris <rgm@gnu.org>
2452
2453 * emacs.c (main): Revert previous change.
2454 (standard_args): Revert -internal-script back to -scriptload,
2455 and remove the long-option form.
2456
a09a5b5b
GM
24572008-03-13 Glenn Morris <rgm@gnu.org>
2458
2459 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
2460 Remove option -enable-font-backend.
2461
1c55ebd1
SM
24622008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2463
2464 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
2465
880820fe 24662008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
2467
2468 * xterm.c (x_connection_closed): For GTK: If this is the last
2469 terminal just exit without closing the display.
2470
7145be81
JR
24712008-03-11 Jason Rumney <jasonr@gnu.org>
2472
2473 * w32font.c (w32font_full_name): Use floor to round.
2474
e6201af3 24752008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
2476
2477 * sound.c (alsa_configure): Declare vol at beginning of block.
2478
e6201af3 2479 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 2480
390b81fa 24812008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 2482
56388398
MB
2483 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
2484 size of resulting string.
af0ad939 2485
390b81fa 24862008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 2487
56388398 2488 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 2489
390b81fa 24902008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 2491
56388398
MB
2492 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
2493 Don't pretend as if characters with display property haven't been
2494 consumed for string-replacing-string case.
acd37560 2495
223ed6db
KS
24962008-03-08 Kim F. Storm <storm@cua.dk>
2497
2498 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
2499 (get_next_display_element, next_element_from_string)
2500 (next_element_from_ellipsis, next_element_from_buffer): Use it.
2501
28545f7c
AS
25022008-03-08 Andreas Schwab <schwab@suse.de>
2503
2504 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
2505
c960bff8
JR
25062008-03-06 Jason Rumney <jasonr@gnu.org>
2507
290afd83
JB
2508 * w32font.c (w32_registry): Take font_type argument. Use ANSI
2509 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
2510 font_type is truetype.
2511 (w32font_coverage_ok): New function.
2512 (add_font_entity_to_list): Use it to filter unsuitable fonts.
2513
87b8ce92
KH
25142008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
2515
2516 * lread.c (Fread_char): Resolve modifiers.
2517 (Fread_char_exclusive): Likewise.
2518
2519 * character.c (char_resolve_modifier_mask): New function.
2520 (char_string): Use char_resolve_modifier_mask.
2521 (Fchar_resolve_modifiers): New function.
2522 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
2523 function.
2524
cefd56f6
JR
25252008-03-04 Jason Rumney <jasonr@gnu.org>
2526
2527 * makefile.w32-in: Always include w32font.c in the build.
2528 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
2529
03bd3c1f
AS
25302008-03-04 Andreas Schwab <schwab@suse.de>
2531
2532 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
2533 (versionclean): Likewise.
2534
6f69e89b
JB
25352008-03-04 Juanma Barranquero <lekktu@gmail.com>
2536
2537 * .cvsignore: Add oo.
2538
f4a3cc44
AS
25392008-03-03 Andreas Schwab <schwab@suse.de>
2540
2541 * coding.c (decode_coding_object): Inhibit gap shrinking while
2542 decoding in place.
2543
73f838ad
DN
25442008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
2545
2546 * w32term.c: Remove unused include "gnu.h".
6f69e89b 2547 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
2548
2549 * gnu.h: Rename to ...
2550 * emacs-icon.h: ... this.
2551 * xterm.c: Use emacs-icon.h instead of gnu.h.
2552 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
2553
ce9c1f06
JB
25542008-03-03 Juanma Barranquero <lekktu@gmail.com>
2555
2556 * w32font.c: Include math.h.
2557
34fd2d28
JR
25582008-03-03 Jason Rumney <jasonr@gnu.org>
2559
54efdcd1
JR
2560 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
2561 Compute options separately.
2562 (w32font_open_internal): Set glyph_idx before caching metrics.
2563
ce9c1f06
JB
2564 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
2565 Define if system headers don't.
2566 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
2567 (w32font_encode_char): Don't declare here.
2568
2569 * w32font.c (Quniscribe, QCformat): New symbols.
2570 (syms_of_w32font): Define them.
2571 (w32font_has_char): Indicate uncertainty.
ce9c1f06 2572 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 2573 (recompute_cached_metrics): New function.
ce9c1f06
JB
2574 (w32font_open_internal): Use it. Set font to use glyph points
2575 initially. Set format based on type of font.
34fd2d28 2576 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
2577 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
2578 on it. Set format based on information available here.
34fd2d28
JR
2579 (add_font_entity_to_list): Identify backend based on opentype_only.
2580
14daee73
AS
25812008-03-02 Andreas Schwab <schwab@suse.de>
2582
f907fb2e
AS
2583 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
2584
ce9c1f06
JB
2585 * coding.c (decode_coding_big5, produce_chars):
2586 Fix typos in last change.
14daee73 2587
c9cc6462
DN
25882008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
2589
2590 * gnu.h: New icon.
2591
119852e7
KH
25922008-03-02 Kenichi Handa <handa@m17n.org>
2593
2594 * coding.c (decode_coding_utf_8): When eol-type of CODING is
2595 `dos', don't decode '\r' if that is the last in the source.
2596 (decode_coding_utf_16, decode_coding_emacs_mule)
2597 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2598 (decode_coding_raw_text, decode_coding_charset): Likewise.
2599 (produce_chars): Don't decode EOL here. Use EMACS_INT.
2600
a823468b
JR
26012008-03-01 Jason Rumney <jasonr@gnu.org>
2602
2603 * w32font.c (w32font_full_name): Report point size for scalable fonts.
2604
4ddc7e30
KS
26052008-03-01 Kim F. Storm <storm@cua.dk>
2606
2607 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
2608
67997c79
JR
26092008-03-01 Jason Rumney <jasonr@gnu.org>
2610
2611 * w32font.c (w32font_full_name): New function.
2612 (w32font_open_internal): Use it.
2613
3f4e9c35
KS
26142008-03-01 Kim F. Storm <storm@cua.dk>
2615
2616 * dispnew.c (line_draw_cost): Fix invalid glyph check.
2617
f3b9e479
JR
26182008-03-01 Jason Rumney <jasonr@gnu.org>
2619
2620 * font.c (font_unparse_fcname): Increase len when style is a symbol.
2621
880820fe 26222008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
2623
2624 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
2625 xg_frame_resized when the event is for the edit widget.
2626
2627 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
2628
2629 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
2630 set_char_size.
2631 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
2632 operations on widgets here. Just set frame size if needed.
2633 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
2634 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
2635 (x_wm_set_size_hint): Set size hints on the edit widget only, not
2636 the whole frame.
2637 (xg_create_tool_bar): Move attachement of the tool bar to
2638 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
2639 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
2640
6c8acaa1
JR
26412008-03-01 Jason Rumney <jasonr@gnu.org>
2642
2643 * w32fns.c (w32_msg_pump): Disable debug code.
2644
51fb064b 26452008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 2646
51fb064b 2647 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 2648
60221a33
CY
26492008-02-29 Chong Yidong <cyd@stupidchicken.com>
2650
2651 * xdisp.c (next_overlay_string): Don't set
2652 overlay_strings_at_end_processed_p if we're currently reading from
2653 a display string.
2654
10cbc34f
SM
26552008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
2656
2657 * xdisp.c (get_overlay_strings_1): Fix typo.
2658
73c0054e
CY
26592008-02-29 Chong Yidong <cyd@stupidchicken.com>
2660
2661 * xdisp.c (get_overlay_strings_1): Add missing argument type.
2662
ec1c4354
KH
26632008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
2664
55082642
KH
2665 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
2666
ec1c4354
KH
2667 * xdisp.c (display_mode_element): Cancel the previous change.
2668 (decode_mode_spec): Likewise.
ee548a94
KH
2669 (handle_auto_composed_prop): Don't make composition if it->string
2670 is a string.
ec1c4354 2671
b6d898a2
KS
26722008-02-27 Kim F. Storm <storm@cua.dk>
2673
2674 * lisp.h (GLYPH): Change type from int to struct with separate char
2675 and face_id members.
2676 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
2677 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
2678 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
2679 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
2680 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
2681 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
2682 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
2683 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
2684 handle new Lisp glyph code encoding, either an integer or a cons.
2685
2686 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
2687 (GLYPH_ALIAS): Delete.
2688 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
2689 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
2690 (GLYPH_FROM_CHAR): Replace macro by ...
2691 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
2692
2693 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
2694 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
2695 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
2696 (GLYPH_INVALID_P): New macro.
2697 (spec_glyph_lookup_face): Update prototype.
2698
2699 * dispnew.c (line_draw_cost): Adapt to new glyph type.
2700 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
2701 new glyph code encoding.
2702 (spec_glyph_lookup_face): No return value; update passed glyph instead.
2703 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
2704
2705 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2706 Adapt to new glyph type and new glyph code encoding.
2707
2708 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
2709
2710 * indent.c (current_column, current_column_1, Fmove_to_column)
2711 (compute_motion): Adapt to new glyph code encoding.
2712
2713 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
2714
af2080a2
CY
27152008-02-27 Chong Yidong <cyd@stupidchicken.com>
2716
2717 * process.c (wait_reading_process_output): Check for window
2718 changes caused by timers.
880820fe 2719 Suggested by Johan Bockgård.
af2080a2 2720
253ed25e
GM
27212008-02-27 Glenn Morris <rgm@gnu.org>
2722
2723 * emacs.c (USAGE1): Add `--disable-font-backend'.
2724
18a9f8d9
SM
27252008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
2726
2727 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
2728 is made to the buffer.
2729
0f8b27ea
SM
27302008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2731
2732 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
2733 (face_at_string_position):
2734 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2735 (face_at_string_position):
2736 * xdisp.c (display_string, next_overlay_change):
2737 * buffer.h (overlays_at):
2738 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
2739 Update callers.
2740
4e7c53ca
CY
27412008-02-26 Chong Yidong <cyd@stupidchicken.com>
2742
2743 * editfns.c (Fformat): Doc fix.
2744
51c01100
JB
27452008-02-26 Juanma Barranquero <lekktu@gmail.com>
2746
2747 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
2748 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
2749 (Ffont_otf_alternates, Fquery_font): Doc fixes.
2750
13cda5f9
SM
27512008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2752
2753 * buffer.c (Fbuffer_swap_text): New function.
2754 (syms_of_buffer): Defsubr it.
2755
8018d430
CY
27562008-02-25 Chong Yidong <cyd@stupidchicken.com>
2757
2758 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
2759
9bde1a21
JR
27602008-02-25 Jason Rumney <jasonr@gnu.org>
2761
2762 * w32font.c (w32font_draw): Draw one character at a time when padding.
2763
eeca6f6f
SM
27642008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2765
2766 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
2767 Handle a nil arg. Use run_window_configuration_change_hook.
2768 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
2769 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
2770 Use run_window_configuration_change_hook.
2771
ec1c4354
KH
27722008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2773
2774 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
2775 1-pixel width.
2776
ae185452
KH
27772008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2778
2779 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
2780 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
2781 if the glyph in the font is zero pixel with.
2782
2783 * dispextern.h (struct glyph_string): New member padding_p.
2784
2785 * w32font.c (w32font_draw): Pay attention to s->padding_p.
2786
2787 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
2788
2789 * xfont.c (xfont_draw): Pay attention to s->padding_p.
2790
2791 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
2792
eeca6f6f 2793 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 2794
ffe832ea 27952008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 2796
ffe832ea 2797 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 2798
06045130
SM
27992008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
2800
2801 Allow fine-grained image-cache flushing.
2802 * dispextern.h (struct image): Add `dependencies' field.
2803 (clear_image_caches): Change arg to Lisp_Object.
2804 * image.c (make_image): Initialize `dependencies' field.
2805 (clear_image_cache): Change arg to allow fine-grained flushing.
2806 Perform the flush even if image-cache-eviction-delay is nil.
2807 (clear_image_caches): Change arg to Lisp_Object.
2808 (Fclear_image_cache): Expand meaning of the argument.
2809 (mark_image): Mark `dependencies' field.
2810 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
2811 (lface_hash): Use XHASH rather than XFASTINT.
2812 (face_at_buffer_position): Fix int -> EMACS_INT position.
2813 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
2814 (select_frame_for_redisplay): Remove code duplication.
2815 (redisplay_internal): Adapt arg to call to clear_image_caches.
2816
9d2818d6
DN
28172008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2818
2819 * s/vms4-0.h:
2820 * s/vms4-2.h:
2821 * s/vms4-4.h:
2822 * s/vms5-5.h: Remove, unused.
2823
2824 * s/irix5-2.h:
2825 * s/irix6-0.h:
2826 * s/riscos5.h:
2827 * s/mach-bsd4-3.h:
2a2e8de7 2828 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
2829
2830 * Makefile.in:
2831 * filelock.c:
2832 * unexmips.c:
2833 * m/hp9000s300.h:
2834 * m/iris4d.h:
2835 * s/aix3-1.h:
2836 * s/hpux.h:
2837 * s/msdos.h:
2838 * s/usg5-0.h:
2839 * s/usg5-2-2.h:
2840 * s/usg5-2.h:
2841 * s/usg5-3.h: Remove references to obsolete variables.
2842
2843 * s/irix5-0.h: Remove, move all the contents ...
2844 * s/irix6-5.h: ... here. Simplify.
2845 * config.in: Regenerate.
2846
2a36efcf
JR
28472008-02-24 Jason Rumney <jasonr@gnu.org>
2848
c5ad7a3d 2849 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
2850 manually when cleartype is in use.
2851 (x_draw_glyph_string_foreground): Draw text transparently when
2852 cleartype is in use.
2853
2a36efcf
JR
2854 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
2855 a font into it unless we have to.
2856
b03f96dc 28572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 2858
b03f96dc
MB
2859 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
2860 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 2861
b03f96dc 28622008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 2863
b03f96dc 2864 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 2865
b03f96dc 28662008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 2867
b03f96dc 2868 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 2869
b03f96dc 28702008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 2871
b03f96dc 2872 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 2873
d5958163
CY
28742008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
2875
2876 * xterm.c (x_set_offset): Don't change the gravity if
2877 CHANGE_GRAVITY is -1.
2878
9997701e
CY
28792008-02-23 Chong Yidong <cyd@stupidchicken.com>
2880
2881 * fileio.c (auto_save_error_occurred): New var.
2882 (auto_save_error): Set it.
2883 (Fdo_auto_save): Don't overwrite the error message if an auto-save
2884 error occurred.
2885
9d95a291
EZ
28862008-02-23 Eli Zaretskii <eliz@gnu.org>
2887
2888 * w32.c (globals_of_w32): Add initializations for
2889 g_b_init_get_sid_sub_authority and
2890 g_b_init_get_sid_sub_authority_count.
2891
43d1af23
SM
28922008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
2893
43a1d19b
SM
2894 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
2895 (font_parse_xlfd): Use them for sanity check.
608c3307 2896 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 2897
354884c4
SM
2898 Consolidate the image_cache to the terminal struct.
2899 * termhooks.h (P_): Remove redundant def.
2900 (struct terminal): New field `image_cache'.
2901 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
2902 of FRAME_X_IMAGE_CACHE.
2903 * xterm.h (struct x_display_info): Remove image_cache field.
2904 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2905 * w32term.h (struct w32_display_info): Remove image_cache field.
2906 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2907 * macterm.h (struct mac_display_info): Remove image_cache field.
2908 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2909 * xterm.c (x_term_init):
2910 * w32term.c (w32_term_init):
2911 * macterm.c (mac_term_init): Set the image_cache in the terminal.
2912 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
2913 Remove declarations.
2914 (clear_image_caches, mark_image_cache): New declarations.
2915 * xfaces.c (clear_face_cache):
2916 * xdisp.c (redisplay_internal): Use clear_image_caches.
2917 * image.c (clear_image_cache): Don't check that a frame is on
2918 a window-system before checking if it shares the same cache.
2919 (clear_image_caches): New function.
2920 (Fclear_image_cache): Use it.
2921 (mark_image): Move from allo.c.
2922 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
2923 * alloc.c (mark_image, mark_image_cache): Move to image.c.
2924 (mark_object): Don't call mark_image_cache for frames.
2925 (mark_terminals): Call mark_image_cache.
2926
c2e42690
SM
2927 * lisp.h (Fdelete_terminal): Declare.
2928
43d1af23
SM
2929 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
2930 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
2931 wrong_type_argument.
2932
cc8d1311
KH
29332008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
2934
2935 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 2936 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 2937
6bd92640
SM
29382008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
2939
2940 * xterm.c (x_connection_closed): Consolidate identical tests.
2941 (x_delete_terminal): Don't crash if called via x_connection_closed.
2942
a73b5627
KH
29432008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
2944
2945 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 2946 (display_mode_element): Adjust for the above change.
a73b5627 2947
1b511542
SM
29482008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2949
2950 * callint.c (Fcall_interactively): Use AREF.
2951
81aefea4
SM
29522008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2953
2954 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
2955
880820fe 29562008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
2957
2958 * xfns.c (Fx_show_tip): Set string to " " if empty.
2959
a2b84f35
DN
29602008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
2961
2962 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
2963 with Qt.
2964
43c0454d
KH
29652008-02-17 Kenichi Handa <handa@m17n.org>
2966
2967 * ftfont.c (ftfont_shape): Return Lispy number.
2968
2969 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
2970 for GCs.
2971 (Finternal_set_font_selection_order): Call font_update_sort_order
2972 only when enable_font_backend is set.
2973 (realize_x_face): Set face->font_info to that of default face only
2974 when enable_font_backend is set.
2975
2976 * xdisp.c (handle_composition_prop): Set it->c to the fist
2977 characte of the composed region.
2978 (fill_composite_glyph_string): Set base_face->font_info to
2979 s->font_info. Get a face for ascii from base_face->ascii_face.
2980 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
2981 with a face already decided.
2982 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
2983 non-negative.
978bef9a
JB
2984 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
2985 call font_prepare_composition unconditionally.
43c0454d 2986
978bef9a 2987 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
2988
2989 * xterm.h (struct x_display_info): New member font.
2990
2991 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
2992 (x_set_mouse_face_gc, x_new_font): Likewise.
2993 (x_term_init): Setup display_info->font.
2994 (x_delete_terminal): Free display_info->font.
2995
2996 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
2997
2998 * ftxfont.c (ftxfont_default_fid): Delete it.
2999 (ftxfont_open): Set xfont->fid to 0.
978bef9a 3000 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
3001 font-driver.
3002
3003 * xftfont.c (xftfont_default_fid): Delete it.
3004 (xftfont_open): Set xfont->fid to 0.
3005
3006 * fontset.c (FONTSET_OBJLIST): New macro.
3007 (fontset_find_font): Update font-object list of the fontset.
3008 (free_realized_fontset): New function.
3009 (free_face_fontset): Call free_realized_fontset.
3010 (Ffont_info): Call font_close_object only when enable_font_backend
3011 is set.
3012
3013 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3014 [HAVE_NTGUI]: Include w32term.h.
3015 [MAC_OS]: Include macterm.ch.
3016 (font_otf_ValueRecord): Use make_number.
3017 (font_finish_cache): Fix handling of reference count.
3018 (font_clear_cache): Update num_fonts.
3019 (font_open_entity): Update smallest_char_width and
3020 smallest_font_height of the frame.
3021 (font_close_object): Update num_fonts.
3022 (Fclear_font_cache): Fix finding the target cache data.
3023
be617367
GM
30242008-02-16 Glenn Morris <rgm@gnu.org>
3025
3026 * fontset.c (Finternal_char_font): Fix compilation warning.
3027
2930d117
EZ
30282008-02-16 Eli Zaretskii <eliz@gnu.org>
3029
634d3003
EZ
3030 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3031 instead of char arrays. Enlarge the size of array passed to
3032 get_token_information.
3033
2930d117
EZ
3034 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3035 warnings.
3036
79214046
DN
30372008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3038
3039 * .gdbinit: Don't set `args', it breaks gdb --args.
3040
7f5d2c72
SM
30412008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3042
3043 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3044 within a narrowed buffer.
3045
6edacc43
KH
30462008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3047
b270d6af
JB
3048 * coding.c (decode_coding_object, encode_coding_object):
3049 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 3050
174105f7
SM
30512008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3052
b270d6af
JB
3053 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3054 hardcoding 1.
13818c30
SM
3055 (detect_coding_system):
3056 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3057 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3058 * insdel.c (insert_from_gap):
3059 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3060 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3061 (string_to_multibyte):
3062 * character.c (chars_in_text, multibyte_chars_in_text):
3063 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3064
f1c99628
SM
3065 * character.h (FETCH_STRING_CHAR_ADVANCE)
3066 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3067 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3068 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3069
7927d8e3
SM
3070 * casefiddle.c (casify_region): Only call after-change and composition
3071 functions on the part of the region that was changed.
3072
adf6a429 3073 * keyboard.c (read_avail_input):
174105f7
SM
3074 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3075
3ee24aec
SM
30762008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3077
3078 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3079 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3080
4ed4b975
JB
30812008-02-11 Juanma Barranquero <lekktu@gmail.com>
3082
3083 * w32menu.c (push_submenu_start, push_submenu_end)
3084 (push_left_right_boundary, push_menu_pane, push_menu_item):
3085 * keyboard.c (read_key_sequence): Don't pass args with side effects
3086 to AREF, it fails when compiling with -DENABLE_CHECKING.
3087
79e3bfb8
KH
30882008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3089
4ed4b975
JB
3090 * Makefile.in (${lispsource}international/charprop.el):
3091 Delete this target.
6e76043f 3092
79e3bfb8
KH
3093 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3094 emacs-unicode-2.
3095
5b8de9c5
SM
30962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3097
3098 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3099
eac1939a
SM
31002008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3101
c53956fe
SM
3102 * frame.c (Qnoelisp): New symbol.
3103 (syms_of_frame): Initialize it.
3104 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3105 someharmles Elisp code, from a strong `force' from x_connection_closed.
3106 * frame.h (Qnoelisp): Declare.
3107 * xterm.c (x_connection_closed): Pass `noelisp'.
3108
eac1939a
SM
3109 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3110 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3111 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3112 rather than `int' for the type of `type'.
3113
13f6772b
DN
31142008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3115
3116 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3117
3118 * Makefile.in (GNUC): Remove support for gcc-1.x.
3119
e8455367
RS
31202008-02-10 Richard Stallman <rms@gnu.org>
3121
3122 * lisp.h (ASET): Use AREF, not ASLOT.
3123
4b75ffab
SM
31242008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3125
3126 * lisp.h (ASET): Check bounds.
3127
d224e8c2
GM
31282008-02-10 Glenn Morris <rgm@gnu.org>
3129
3130 * buffer.c (mode-name): Doc fix.
3131
4624371d
DN
31322008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3133
290afd83
JB
3134 * Makefile.in:
3135 * emacs.c:
3136 * gmalloc.c:
3137 * keyboard.c:
3138 * lisp.h:
3139 * m/ibm370aix.h:
3140 * process.c:
3141 * regex.c:
3142 * s/hpux.h:
3143 * sysdep.c:
3144 * sysselect.h:
3145 * systty.h:
3146 * unexec.c:
3147 * w32term.c:
3148 * xsmfns.c:
3149 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
3150
3151 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3152
3153 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3154 nothing else needs it anymore.
3155
274ec34b
EZ
31562008-02-09 Eli Zaretskii <eliz@gnu.org>
3157
3158 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3159 instead of unibyte_char_to_multibyte.
3160
deeaffe1
DN
31612008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3162
3163 * s/gnu-linux.h: Remove commented out code.
3164
4ed4b975 3165 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
3166
3167 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 3168 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 3169 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
3170 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
3171 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
3172
68b587a6
SM
31732008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3174
9141ca5e
SM
3175 * keymap.c (Fkey_description): Move side effect outside of macro call.
3176
dfae5f9a 3177 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
3178 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
3179
ff7a2223
SM
3180 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
3181 (syms_of_fontset): Use ASET.
3182
68b587a6
SM
3183 * fns.c (concat): Move side effect outside of macro call.
3184 (hash_clear): Use ASET.
3185
a31787b1
RS
31862008-02-08 Richard Stallman <rms@gnu.org>
3187
3188 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
3189 If FORCE, and frame has a surrogate minibuffer for another frame,
3190 delete the other frame first.
3191
987be29b 31922008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
3193
3194 * xterm.c (x_detect_focus_change): Handle embed client message.
3195 (handle_one_xevent): Ditto.
3196 (handle_one_xevent): If embedded and we get a button press/release,
3197 request focus.
3198 (xembed_set_info, xembed_send_message): New functions.
3199 (x_make_frame_visible): Call xembed_set_info if embedded.
3200 (x_make_frame_invisible): Call xembed_set_info if embedded.
3201 (x_term_init): Initialize Xatom_XEMBED.
3202 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
3203 (x_iconify_frame): Ditto.
3204
3205 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
3206 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
3207 (enum xembed_modifier, enum xembed_accelerator): New.
3208 (xembed_set_info, xembed_send_message): Declare.
3209 (FRAME_X_EMBEDDED_P): New.
3210
3211 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
3212 gtk_plug_new.
3213
3214 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
3215 window ID of a frame.
3216 (x_window): Reparent frame if embedded.
3217 (Fx_create_frame): Don't set border width if embedded.
3218
3219 * emacs.c (USAGE3): Add --parent-id
3220 (standard_args): Ditto.
3221
880820fe 32222008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
3223
3224 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
3225
92413ef3
JD
32262008-02-07 Jim Meyering <meyering@redhat.com>
3227
6f69e89b 3228 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
3229 The latter provokes a warning from gcc about the empty else, when
3230 followed by ";". Also, without that trailing semicolon, it would
3231 silently swallow up any following statement.
c3f9fba8 3232 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
3233 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
3234 * buffer.h (DECODE_POSITION): Likewise.
3235 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
3236 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
3237 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
3238 (FETCH_CHAR_ADVANCE): Likewise.
3239 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 3240
03fa5713
GM
32412008-02-07 Jim Meyering <meyering@redhat.com>
3242
3243 * lread.c [lint]: Don't include <sys/inode.h>.
3244
3ae565b3
SM
32452008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
3246
3247 * xselect.c (x_handle_dnd_message):
3248 * xmenu.c (digest_single_submenu, xmenu_show):
3249 * xdisp.c (with_echo_area_buffer_unwind_data)
3250 (format_mode_line_unwind_data, unwind_format_mode_line)
3251 (display_menu_bar):
3252 * eval.c (Ffetch_bytecode):
3253 * doc.c (store_function_docstring):
3254 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
3255 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
3256 * buffer.c (add_overlay_mod_hooklist): Use ASET.
3257
146b6e55
KH
32582008-02-07 Kenichi Handa <handa@m17n.org>
3259
3260 * ftxfont.c (ftxfont_open): Don't set
3261 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
3262
3263 * ftfont.c (ftfont_open): Fix previous change.
3264
46a923ac
JR
32652008-02-06 Jason Rumney <jasonr@gnu.org>
3266
3267 * w32font.c (w32font_text_extents): Fill in lbearing metric.
3268 Use cached metrics for ASCII characters.
3ae565b3
SM
3269 (w32font_open_internal): Don't set font's owning_frame.
3270 Cache metrics for ASCII characters.
46a923ac
JR
3271
3272 * w32font.h (struct w32font_info): Add ascii_metrics.
3273 Remove owning_frame.
3274
da7d7c21
KH
32752008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
3276
3277 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
3278 to negative value.
3279
3280 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
3281
3ae565b3 3282 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
3283
3284 * charset.c (syms_of_charset): Set QCtest and Qeq.
3285
c62c8ddb
SM
32862008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
3287
ca319910
SM
3288 * process.c (Fstart_process):
3289 * callproc.c (Fcall_process): Handle the case where
3290 Funhandled_file_name_directory returns nil.
3291
76860cbb
SM
3292 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
3293 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
3294 * font.c (check_gstring): Use them and AREF to access the vector before
3295 we know it's really a gstring.
3296 (Ffont_shape_text): Fix typo.
3297 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 3298
15139d67
SM
3299 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
3300 Declare.
3301
c62c8ddb
SM
3302 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
3303
04b65d2b
JR
33042008-02-05 Jason Rumney <jasonr@gnu.org>
3305
3306 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
3307 Set smallest_font_height and smallest_char_width in display info.
3308
fccaebfd
KH
33092008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
3310
3311 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
3312
e7d7fd8c
MB
33132008-02-05 Miles Bader <miles@gnu.org>
3314
3315 * xfaces.c (get_lface_attributes, merge_named_face)
3316 (lookup_named_face, lookup_derived_face, realize_named_face):
3317 Revert 2008-02-01 change by cyd@stupidchicken.com.
3318
3d4448a8
KH
33192008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
3320
3321 * fontset.c (Ffontset_info): Handle the case of inhibitting the
3322 fallback fonts.
15139d67 3323 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 3324
5ace1ec1
JR
33252008-02-04 Jason Rumney <jasonr@gnu.org>
3326
3327 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
3328 set full_name.
e3a77b22 3329 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 3330
ffe42183
JR
33312008-02-03 Jason Rumney <jasonr@gnu.org>
3332
3333 * makefile.w32-in (OBJ1): Include font.o here.
3334 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
3335
526dc3b3
JR
33362008-02-02 Jason Rumney <jasonr@gnu.org>
3337
a0fece35 3338 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 3339
af805c82
JR
33402008-02-01 Jason Rumney <jasonr@gnu.org>
3341
3342 * s/cygwin.h: Define VIRT_ADDR_VARIES.
3343
3344 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
3345
7f6519c5
AS
33462008-02-01 Andreas Schwab <schwab@suse.de>
3347
1f45f627 3348 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 3349 ../lisp/language/myanmar.el.
7f6519c5 3350
26f8aa27
CY
33512008-02-01 Chong Yidong <cyd@stupidchicken.com>
3352
1f45f627 3353 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
3354 (merge_named_face, lookup_named_face, lookup_derived_face)
3355 (realize_named_face): Call lface_from_face_name directly, and use
3356 the fact that merge_face_vectors does not alter its FROM argument.
3357
73acf815 33582008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3359
3360 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 3361 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 3362
73acf815 33632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3364
3365 * fontset.c (reorder_font_vector): Exclude nil elements from the
3366 font group. Don't try multiple fonts.
15139d67 3367 (fontset_font): Adjust for the above change.
aca7a3d2
MB
3368 (Finternal_char_font): Return nil if the found font doesn't
3369 contain the character ch.
3370
4c4475a8 3371 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 3372
73acf815 33732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3374
3375 * font.h (FONTP): Make it return 1 also for a font-object.
3376
3377 * .gdbinit (xfontset): New function.
3378
3379 * font.c (font_find_for_lface): Check if the character C is
3380 supported or not only for the first font.
3381
3382 * fontset.c (reorder_font_vector): Fix typo.
3383 (fontset_find_font): Don't add a font-spec specifying a script.
3384 Use 0 (not Qt) for the indication of empty font-group. Change the
3385 format of RFONT-DEF. Return Qt if no font in the font-group
3386 support the character.
15139d67 3387 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 3388 found the character, remember that.
15139d67 3389 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
3390 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
3391 no font for the target.
15139d67 3392 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 3393
73acf815 33942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3395
3396 * font.c (font_load_for_face): Handle the case that the font in
3397 face->lface is a string.
3398
73acf815 33992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3400
1f45f627 3401 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 3402
73acf815 34032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3404
3405 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
3406 Fix previous change. If the frame is not on a window system,
3407 signal an error.
3408
73acf815 34092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3410
4c4475a8
GM
3411 * coding.c (decode_coding_object, encode_coding_object): Adjust
3412 marker positions after conversion.
aca7a3d2
MB
3413
3414 * lisp.h (struct Lisp_Marker): New member need_adjustment.
3415
73acf815 34162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3417
3418 * font.c (font_find_for_lface): Fix the handling of the return
3419 value of font_has_char.
3420 (Ffont_shape_text): Fix previous change.
3421
3422 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
3423 (fontset_ref_and_range): Delete it.
3424 (fontset_find_font): Call char_table_ref_and_range instead of
3425 FONTSET_REF_AND_RANGE.
3426 (make_fontset): Don't setup font groups of Latin here.
3427 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
3428 (new_fontset_from_font): Make the specified font the default for
3429 all Latin characters.
3430
73acf815 34312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3432
3433 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
3434 is on a window system before accessing the fontset of the frame.
3435
73acf815 34362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3437
1f45f627 3438 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
3439
3440 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
3441 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
3442
3443 * font.c (Ffont_shape_text): If the font driver doesn't have a
3444 shaper function, make zero-width glyphs to have at least one-pixel
3445 width. Fix setting of `to' field of glyphs.
3446
73acf815 34472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3448
3449 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
3450 glyphs.
3451
1f45f627 3452 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 3453
73acf815 34542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3455
3456 * composite.c (syms_of_composite): Fix docstring of
3457 auto-composition-function.
3458
3459 * font.h (LGLYPH_SIZE): New macro.
3460
3461 * font.c (Ffont_fill_gstring): Stop filling when a character not
3462 supported by the font is found.
3463 (Ffont_shape_text): When a shape callback function returns nil,
3464 try at most two more times with larger gstring.
15139d67 3465 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
3466
3467 * xdisp.c (handle_auto_composed_prop): Change the argument to
3468 auto-composition-function.
3469
3470 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
3471 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
3472 Lispy glyph and store it in the lgstring.
3473
3474 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
3475
3476 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
3477
73acf815 34782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3479
3480 * font.c (Ffont_shape_text): Avoid unnecessary composition.
3481
3482 * fontset.c (Vfont_encoding_charset_alist): New variable.
3483 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
3484 (reorder_font_vector, fontset_find_font): Optimize for the case of
3485 no need of reordering.
aca7a3d2
MB
3486 (face_for_char): Map the charset property by
3487 Vfont_encoding_charset_alist.
3488
73acf815 34892008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3490
3491 * w32font.c (logfonts_match): Don't check adstyle here.
3492 (font_matches_spec): Check here against physical font instead.
3493 (add_font_entity_to_list): Avoid some substitutions.
3494
3495 * font.c (font_parse_fcname): Default weight and slant to normal.
3496 (font_score): Prefer normal fonts if weight or slant unspecified.
3497 (font_score) [WINDOWSNT]: Scale weight difference down to closer
3498 match freetype scores.
3499
73acf815 35002008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3501
3502 * w32font.c (w32font_text_extents): Don't use the frame stored in the
3503 font, as it may have been deleted.
3504 (w32_enumfont_pattern_entity): Map generic family to adstyle using
3505 most common hyphenless variation.
3506 (logfonts_match): Check generic family.
3507 (font_matches_spec): Don't check generic family here.
3508 (fill_in_logfont): Set generic family based on adstyle.
3509
3510 * w32font.h (w32font_get_cache): Update declaration.
3511
73acf815 35122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3513
3514 * ftfont.c (ftfont_get_cache): Adjust the argument type.
3515
15139d67 3516 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 3517 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
3518 with the old drivers.
3519
3520 * w32font.c (w32font_get_cache): Adjust the argument type.
3521
3522 * xfont.c (xfont_get_cache): Adjust the argument type.
3523
3524 * font.h (struct font_driver): Change argument type of get_cache.
3525
3526 * xftfont.c (xftfont_start_for_frame): Delete prototype.
3527
3528 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 3529 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 3530 (font_clear_cache): New function.
4c4475a8 3531 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 3532 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
3533
3534 * fontset.c (fontset_find_font): Fix previous change.
3535
73acf815 35362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3537
3538 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
3539 dpyinfo->font_table.
3540 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 3541 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
3542
3543 * font.c (font_at): Handle the case that the arg C is negative.
3544 Handle the unibyte case.
3545 (Ffont_at): Call font_at with the arg C -1.
3546
3547 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
3548 the position here, and call font_at with the arg C -1.
3549 Don't check the range of the existing composition at the point.
aca7a3d2 3550
73acf815 35512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3552
15139d67 3553 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 3554 Change caller.
4c4475a8
GM
3555 (load_font_get_repertory, fontset_find_font): Assume that
3556 font_spec is always a font-spec object.
aca7a3d2
MB
3557 (Fset_fontset_font): Always store a font-spec object in a fontset.
3558
3559 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
3560 instead of get_property_and_range.
3561
73acf815 35622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3563
3564 * xftfont.c (struct xftfont_info): Delete the member ft_face.
3565 (xftfont_open): Don't keep locking face.
3566 (xftfont_close): Don't unlock face.
4c4475a8 3567 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
3568
3569 * fontset.c (fontset_find_font): Don't prefer a font of
3570 supplementary charset.
3571
73acf815 35722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3573
1f45f627
GM
3574 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
3575 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
3576 (OTF_TAG_STR): Terminate by '\0'.
3577 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
3578 listing to the script specified in that property. Fix arg to
3579 OTF_check_features.
3580
73acf815 35812008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3582
3583 * w32font.h: New file.
3584
3585 * w32font.c: Include it.
3586 (struct w32font_info): Add owning_frame field. Move to w32font.h.
3587 (w32font_open): Set owning_frame.
3588 (w32font_text_extents): Use owning_frame.
3589 (struct font_callback_data): Add opentype_only field.
3590 (add_font_entity_to_list): Use it to filter fonts.
3591 Don't check against full name.
3592 (w32font_list_internal): New function.
3593 (w32font_list): Use it.
3594 (w32font_match_internal): New function.
3595 (w32font_match): Use it.
3596 (w32font_open_internal): New function.
3597 (w32font_open): Use it.
3598 (w32font_get_cache, w32font_close, w32font_has_char)
3599 (w32font_encode_char, w32font_text_extents, w32font_draw):
3600 Make non-static.
3601
3602 * makefile.w32-in (w32font.o): Depend on w32font.h.
3603
73acf815 36042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3605
3606 * charset.c (Fdefine_charset_internal): Record a supplementary
3607 charset at the tail of Vcharset_order_list.
3608
3609 * font.c (Ffont_shape_text): Fix the return value.
3610
3611 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
3612
3613 * xdisp.c (handle_auto_composed_prop): Fix previous change.
3614
73acf815 36152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3616
3617 * ftfont.c (struct OpenTypeSpec): New struct.
3618 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
3619 (ftfont_get_open_type_spec): New function.
3620 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
3621
15139d67 3622 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 3623
73acf815 36242008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3625
3626 * w32font.c (add_font_entity_to_list): Compare only the beginning
3627 of full name.
3628
73acf815 36292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3630
15139d67
SM
3631 * xdisp.c (handle_auto_composed_prop): Simplify the code.
3632 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 3633
73acf815 36342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3635
3636 * font.c (font_gstring_produce): Delete it.
3637
15139d67
SM
3638 * composite.h (COMPOSITION_METHOD):
3639 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 3640
73acf815 36412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3642
15139d67 3643 * xfont.c (Qx): Delete.
aca7a3d2
MB
3644 (syms_of_xfont): Don't initialize Qx.
3645
15139d67
SM
3646 * composite.h (enum composition_method):
3647 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 3648
73acf815 36492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3650
3651 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
3652 (choose_face_font): Accept new form of font-spec.
3653
3654 * frame.h (font_driver_list): Declare it unconditionally.
3655 (struct frame): Define members font_driver_list and font_data_list
3656 unconditionally.
3657
3658 * fontset.c: Include "font.h" unconditionally.
15139d67 3659 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
3660 (Fset_fontset_font): Accept a font-spec object.
3661
3662 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
3663 PIXEL_SIZE part a wild card.
3664
3665 * dispextern.h (struct glyph_string): Define members clip and
3666 num_clips unconditionally.
3667 (struct face): Define members font_info and extra unconditionally.
3668
3669 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
3670 ftfont_info only when HAVE_LIBOTF is defined.
3671
73acf815 36722008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3673
3674 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
3675 and end.
3676
73acf815 36772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3678
3679 * w32font.c (w32font_driver): Add new fields.
3680
73acf815 36812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3682
aca7a3d2
MB
3683 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
3684 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
3685 (LIBES): Add @M17N_FLT_CFLAGS@.
3686
3687 * composite.c (compose_text): Don't treat the new style
3688 composition specially.
3689
3690 * emacs.c (main): Call syms_of_font unconditionally.
3691
3692 * font.h (FONT_ENTITY_NOT_LOADABLE)
3693 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 3694 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 3695 (struct font_driver): New member shape.
1f45f627 3696 (font_registry_charsets): Extern it.
4c4475a8 3697 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
3698 (font_otf_capability, font_drive_otf): Delete their externs.
3699
3700 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
3701 (font_charset_alist, font_registry_charsets): Move from xfont.c
3702 and rename.
aca7a3d2
MB
3703 (font_prop_validate_otf): New function.
3704 (font_property_table): Register it for QCotf.
3705 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 3706 (font_drive_otf): Delete.
1f45f627 3707 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
3708 lispy gstring.
3709 (font_find_for_lface): New arg C.
15139d67 3710 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
3711 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
3712 lispy gstring.
aca7a3d2
MB
3713 (Ffont_shape_text): New function.
3714 (Fopen_font): If the font size is not given, use 12-pixel.
3715 (Ffont_at): New arg STRING.
15139d67
SM
3716 (syms_of_font): Initalize font_charset_alist.
3717 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
3718 conditionally.
3719
3720 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
3721 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
3722 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
3723 Adjust for the change of RFONT-DEF.
15139d67 3724 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
3725
3726 * ftfont.h: New file.
3727
3728 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
3729 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
3730 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3731 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
3732 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 3733 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
3734 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
3735 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
3736 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
3737 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s
3738 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
3739 (otf_gstring, gstring, m17n_flt_initialized): New variables.
3740
15139d67
SM
3741 * w32term.c (x_draw_composite_glyph_string_foreground):
3742 Adjust for the change of lispy gstring.
aca7a3d2 3743
15139d67 3744 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 3745 lispy gstring. Call a function for auto-composition with the
15139d67
SM
3746 third arg it->window.
3747 (fill_composite_glyph_string): Adjust for the change of lispy string.
3748 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 3749
15139d67 3750 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3751 font_find_for_lface.
3752
1f45f627
GM
3753 * xfont.c (x_font_charset_alist): Move to font.c and rename.
3754 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
3755 (syms_of_xfont): Don't handle x_font_charset_alist.
3756
3757 * xftfont.c: Include "ftfont.h".
15139d67 3758 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
3759 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3760 (xftfont_close) [HAVE_LIBOTF]: Close otf.
3761 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
3762 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
3763 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 3764
15139d67 3765 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
3766 the change of lispy gstring.
3767
73acf815 37682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3769
3770 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
3771
73acf815 37722008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3773
3774 * w32font.c (w32font_draw): Fill background manually.
3775
73acf815 37762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3777
3778 * font.c (Qfontp): Remove unused symbol.
3779 (QCantialias): New symbol.
3780 (syms_of_font): Define it.
3781 (font_property_table): Set a validator for QCantialias.
3782
15139d67
SM
3783 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
3784 Define if not already.
aca7a3d2
MB
3785 (QCfamily): Share with xfaces.c.
3786 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 3787 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
3788 (w32_antialias_type, lispy_antialias_type): New functions.
3789 (w32_enumfont_pattern_entity): New arg requested_font.
3790 Set antialias parameter if non-default was requested.
3791 (fill_in_logfont): Fill in lfQuality if :antialias specified.
3792
73acf815 37932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3794
3795 * lread.c (read1): Undo the previous change.
3796
73acf815 37972008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
3798
3799 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 3800 USE_FONT_BACKEND is defined.
aca7a3d2 3801
73acf815 38022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3803
3804 * font.h (struct font_bitmap): New member bits_per_pixel.
3805 (struct font_driver): New members start_for_frame and end_for_frame.
3806 (struct font_data_list): New struct.
3807 (font_put_frame_data, font_get_frame_data): Extern them.
3808
3809 * frame.h (struct frame): New member font_data_list.
3810
3811 * font.c (font_update_drivers): Call driver->start_for_frame and
3812 driver->end_for_frame at proper timings.
3813 (font_put_frame_data, font_get_frame_data): New functions.
3814 (Ffont_spec): Add usage in the docstring.
3815
3816 * frame.c (make_frame): Initialize f->font_data_list to NULL.
3817 (Fdelete_frame): Call font_update_drivers.
3818
3819 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 3820 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
3821 (xftfont_get_xft_draw): New function.
3822 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
3823 (xftfont_end_for_frame): New function.
3824 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
3825
15139d67 3826 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 3827 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
3828 (struct ftxfont_frame_data): New struct.
3829 (ftxfont_draw_bitmap): New arg gc_fore and flush.
3830 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 3831 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
3832 (ftxfont_end_for_frame): New function.
3833 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
3834
3835 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
3836
73acf815 38372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3838
3839 * xselect.c (Vselection_coding_system)
3840 (Vnext_selection_coding_system): Delete them.
3841 (syms_of_xselect): Don't declare selection-coding-system and
3842 next-selection-coding-system. They are declared in select.el.
3843
73acf815 38442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3845
3846 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
3847
3848 * w32fns.c: Include imm.h.
3849 (get_composition_string_fn, get_ime_context_fn): New optional
3850 system functions.
3851 (globals_of_w32fns): Load them from imm32.dll.
3852 (ignore_ime_char): New flag.
3853 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
3854 WM_IME_ENDCOMPOSITION messages.
3855
3856 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
3857 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
3858
73acf815 38592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3860
3861 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
3862 (READCHAR_REPORT_MULTIBYTE): New macro.
3863 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
3864 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
3865 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
3866 source.
3867
73acf815 38682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3869
3870 * xfaces.c (face_for_overlay_string): Call lookup_face with
3871 correct arguments (fix of synching with the trunk).
3872
73acf815 38732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3874
4c4475a8
GM
3875 * font.c (font_prop_validate_symbol, font_prop_validate_style)
3876 (font_prop_validate_non_neg, font_prop_validate_spacing):
3877 Delete argument prop_index.
15139d67
SM
3878 (font_property_table): Change arguments to validater. Change Callers.
3879 (font_lispy_object): Delete.
aca7a3d2
MB
3880 (font_at): Use font_find_object instead fo font_lispy_object.
3881
73acf815 38822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3883
3884 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
3885 and file names.
3886
73acf815 38872008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3888
3889 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
3890 (font_matches_spec): Remove debug output.
3891 (add_font_entity_to_list): Avoid using substituted fonts.
3892
73acf815 38932008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3894
3895 * doc.c (Fsnarf_documentation):
3896 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
3897
73acf815 38982008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 3899
290afd83 3900 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
3901 HAVE_WINDOW_SYSTEM is defined.
3902
73acf815 39032008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
3904
3905 Fix up multi-tty merge.
3906
3907 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
3908 and indentation.
3909
3910 * xfaces.c (free_realized_face, clear_face_gcs):
3911 Include font_done_for_face in the input_blocked section, just in case.
3912
3913 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
3914 (get_char_face_and_encoding): Undo last change and remove the *other*
3915 duplicate definition (i.e. keep the one that's better scoped and that
3916 includes code for the font-backend).
3917
3918 * terminal.c (create_terminal): Default keyboard_coding to
3919 `no-conversion' and terminal_coding to `undecided'.
3920
3921 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
3922
3923 * fontset.c (free_realized_fontsets): Check that the table entry does
3924 contain a fontset before trying to compare it to `base'.
3925
3926 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
3927 syms_of_charset, and syms_of_coding earlier because init_window_once
3928 now needs Vcoding_system_hash_table to be setup.
3929
3930 * coding.h (default_buffer_file_coding): Remove.
3931
3932 * coding.c (default_buffer_file_coding): Remove.
3933 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
3934 than ->symbol, and use the terminal-local coding system.
3935 (syms_of_coding): Don't setup the coding-systems that are not
3936 terminal-local.
3937 (Fdefine_coding_system_internal): Use XCAR/XCDR.
3938
3939 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
3940 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
3941
3942 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
3943 in chartab.c and were re-added here by mistake.
3944 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
3945
3946 * doc.c (Fsnarf_documentation):
3947 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
3948 src to etc.
3949
3950 * ChangeLog.10: Add mistakenly removed entry.
3951
73acf815 39522008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
3953
3954 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
3955
73acf815 39562008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3957
3958 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
3959 Add extra args to FACE_FOR_CHAR.
3960
73acf815 39612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3962
3963 * keymap.c (where_is_internal_1): If key is a cons, store the copy
3964 in sequence.
3965
4c4475a8
GM
3966 * chartab.c (map_sub_char_table, map_char_table): If the range
3967 contains just one character, call the function with that character
3968 even if the depth is not 3.
aca7a3d2 3969
73acf815 39702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3971
3972 * w32font.c (w32font_text_extents): Calculate metrics for the
3973 whole string.
3974
73acf815 39752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3976
3977 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
3978
73acf815 39792008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3980
3981 * w32term.c (x_set_glyph_string_clipping): Use
3982 get_glyph_string_clip_rects.
4c4475a8
GM
3983 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3984 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3985
3986 * w32font.c (w32font_draw): Do clipping here.
3987
73acf815 39882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3989
1f45f627 3990 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
3991 glyph_string.
3992
3993 * xterm.c (x_set_glyph_string_clipping): Use
3994 get_glyph_string_clip_rects.
4c4475a8
GM
3995 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3996 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3997
3998 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
3999 the resulting clip(s}.
1f45f627 4000 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
4001 row->clip temporarily.
4002 (expose_window): Redraw rows overlapping the exposed area.
4003
4004 * dispextern.h (struct glyph_row): New member clip.
4005 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4006 clip_height, new member clip, and num_clips.
4007
73acf815 40082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4009
4010 * data.c (Fchar_or_string_p): Fix docstring.
4011
73acf815 40122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4013
4014 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4015 create a temporal XftDraw object.
4016
73acf815 40172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4018
4019 * font.c (Ffontp): Fix docstring.
4020
4021 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4022 strong evidence of ISO-2022.
4023
73acf815 40242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4025
4026 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4027 SYNTAX_ENTRY_FOLLOW_PARENT.
4028
73acf815 40292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4030
4031 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4032 its type.
4033 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4034 Update to the new type of weak_hash_tables and next_weak.
4035
4036 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4037 a plain C pointer to Lisp_Hash_Table.
4038
4039 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4040 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4041 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4042 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4043 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4044 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4045 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4046 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4047 (GC_EQ): Remove since they've been identical to their non-GC_
4048 alter-egos ever since the markbit was eradicated.
4049
290afd83
JB
4050 * alloc.c:
4051 * buffer.c:
4052 * buffer.h:
4053 * data.c:
4054 * fileio.c:
4055 * filelock.c:
4056 * fns.c:
4057 * frame.h:
4058 * lisp.h:
4059 * macterm.c:
4060 * print.c:
4061 * process.c:
4062 * w32fns.c:
4063 * w32menu.c:
4064 * w32term.c:
4065 * xfns.c:
4066 * xmenu.c:
4067 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 4068
73acf815 40692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4070
4071 * chartab.c (map_sub_char_table): Make it work for the top-level
4072 char-table. Fix handling of parent char-table.
c5ad7a3d 4073 (map_char_table): Adjust for the above change.
aca7a3d2 4074
73acf815 40752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4076
4077 * w32font.c (Qgdi): Rename from Qw32.
4078
73acf815 40792008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4080
4081 * w32bdf.c (get_quoted_string): Make function static.
4082
73acf815 40832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4084
4085 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4086 bigger ascent and descent than those of the font, use them as
4087 font's ascent and descent.
4088
73acf815 40892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4090
4091 * Makefile.in (${lispsource}international/charprop.el): Move this
4092 target within "#ifdef HAVE_UNIDATA" and "#endif".
4093
73acf815 40942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4095
4096 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4097 (shortlisp): Add ../lisp/language/tai-viet.el.
4098
1f45f627 40992008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
4100
4101 * Makefile.in (${lispsource}international/charprop.el): Depend on
4102 temacs${EXEEXT}.
4103
73acf815 41042008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4105
4106 * w32font.c (w32font_close): Delete the GDI font object.
4107
6f69e89b 4108 * w32menu.c: Include character.h.
aca7a3d2
MB
4109
4110 * w32proc.c: Likewise.
4111
4112 * w32select.c: Likewise.
4113
6f69e89b 4114 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 4115
73acf815 41162008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4117
4118 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4119
4120 * w32menu.c (syms_of_w32menu): Likewise.
4121
4122 * w32proc.c (syms_of_ntproc): Likewise.
4123
4124 * w32select.c (syms_of_w32select): Likewise.
4125
4126 * w32term.c (syms_of_w32term): Likewise.
4127
73acf815 41282008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4129
4130 * w32font.c (w32font_draw): Delete brush after using it.
4131
73acf815 41322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4133
4134 * w32font.c (w32font_open): Don't set font_idx.
4135 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4136 to font settings.
4137 (w32font_draw): Fill background explicitly.
4138
73acf815 41392008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4140
4141 * w32term.c (w32_initialize): Don't call w32font_initialize.
4142
4143 * w32font.c (w32font_info): Remove subranges.
4144 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4145 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4146 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4147 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4148 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4149 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4150 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4151 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4152 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4153 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4154 New symbols.
4155 (font_callback_data): New struct.
4156 (w32font_list, w32font_match): Use it.
4157 (w32font_open): Don't populate subranges.
4158 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4159 (w32font_encode_char): Always return unicode code-point as-is.
4160 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
4161 GetGlyphOutline. Never look up by glyph index. Avoid looping
4162 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2
MB
4163 glyph index version.
4164 (set_fonts_frame): Remove
4165 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
4166 set frame parameter. Use backward compatible fake foundries.
4167 Save generic family in extra slot under QCfamily. Make width slot
4168 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
4169 binary subranges.
4170 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 4171 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
4172 unwanted fonts.
4173 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
4174 (w32_registry): Default to iso10646_1.
4175 (fill_in_logfont): Use dpi from extra slot. Don't bother with
4176 string font registries. Don't fill in font name if it is a generic
4177 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
4178 extra info to fill pitch, family and charset fields.
4179 (list_all_matching_fonts): Use font_callback_data struct.
4180 (unicode_range_for_char): Remove.
4181 (font_supported_scripts): New function.
4182 (w32font_initialize): Remove.
4183 (syms_of_w32font): Update which symbols are defined.
4184
73acf815 41852008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4186
4187 * font.c (font_pixel_size): Reverse assq_no_quit args.
4188
4189 * w32term.h (FONT_WIDTH): Report max width, not average.
4190 (FONT_MAX_WIDTH): Remove.
4191 (FONT_AVG_WIDTH): New macro.
4192
4193 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
4194 redefinition of FONT_WIDTH.
4195
4196 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
4197 (w32_cache_char_metrics): Use FONT_WIDTH.
4198
4199 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
4200
73acf815 42012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4202
4203 * w32font.c (w32font_open): Make lfHeight negative.
4204
4205 * w32fns.c (x_default_font_parameter): Use new style font name.
4206 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
4207
73acf815 42082008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4209
4210 * w32font.c (QCsubranges): New symbol.
4211 (w32font_open, w32font_has_char): Get subranges from subproperty
4212 of extra.
4213 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
4214 (syms_of_w32font): Define :subranges symbol.
4215
4216 * font.c (font_put_extra): Expose externally.
4217
1f45f627 4218 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
4219
4220 * font.c (Ffont_get): Use font driver to determine otf capability.
4221 (adjust_anchor): Check if driver defines anchor_point before using.
4222
4223 * w32font.c (w32font_open): Handle size, height and pixel_size better.
4224 (w32font_draw): Use options.
4225 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
4226 Fix detection of truetype fonts.
4227 (registry_to_w32_charset): Handle charsets other than iso8859-1
4228 expressed as lisp symbols.
4229 (w32_registry): Express charset as lisp symbol.
4230 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 4231 Don't set width here. Set quality to default.
aca7a3d2
MB
4232
4233 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
4234 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
4235
4236 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4237 Remove redundant loop and allocation.
4238
4239 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 4240 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
4241 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
4242
4243 * xdisp.c (fill_composite_glyph_string): Make the first arg to
4244 STORE_XCHARB a valid l-value.
4245
4246 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
4247 calculations for non-Truetype fonts.
4248 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
4249 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4250 Remove redundant code.
aca7a3d2
MB
4251 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
4252
4253 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
4254 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
4255
4256 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
4257 (x_to_w32_charset, w32_to_x_charset): Expose externally.
4258
4259 * w32font.c: New file for w32 font backend.
4260
73acf815 42612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4262
4263 * term.c: Don't include "buffer.h" twice.
4264
73acf815 42652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4266
4267 * character.c (Funibyte_string): New function.
4268 (syms_of_character): Defsubr it.
4269
73acf815 42702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4271
4272 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
4273 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
4274 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
4275 (x_draw_glyph_string, x_draw_glyph_string_foreground)
4276 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
4277 (x_free_frame_resources): Sync with xterm.c.
4278
73acf815 42792008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4280
4281 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
4282 char-table size.
4283
73acf815 42842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4285
c3f9fba8 4286 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 4287
73acf815 42882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4289
4290 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
4291 font_otf_gpos, add font_drive_otf.
4292
4293 * fontset.c (fontset_find_font): Pay attention to font size
4294 specified for a font.
4295 (reorder_font_vector): Check contents of font_def.
4296
4297 * font.c (struct otf_list): Delete it.
6f69e89b 4298 (otf_list): Make it a lisp variable.
aca7a3d2 4299 (otf_open): Use lispy otf_list.
1f45f627 4300 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 4301 (check_otf_features): New function.
c3f9fba8
JB
4302 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4303 New functions.
aca7a3d2
MB
4304 (font_drive_otf): New function merging font_otf_gsub and
4305 font_otf_gpos.
4306 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 4307 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
4308 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
4309 Ffont_otf_gpos.
4310 (syms_of_font): Staticpro otf_list. Delete defsubr of
4311 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
4312
1f45f627 4313 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4314 font_open_for_lface.
4315
4316 * font.h (font_open_for_lface): Adjust prototype.
4317 (struct font_driver): Delete members otf_gsub and otf_gpos, add
4318 member otf_drive.
4319 (font_otf_gsub, font_otf_gpos): Delete externs.
4320 (font_drive_otf): Extern it.
4321
73acf815 43222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4323
4324 * font.c (font_at): If the window W is not on a window system,
4325 return Qnil.
4326
4c4475a8
GM
4327 * coding.c (produce_chars, encode_coding): Don't call
4328 insert_from_gap if no characters to produce.
aca7a3d2 4329
73acf815 43302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4331
4332 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
4333 Fclear_face_cache.
4334
4335 * xfaces.c (face_for_font): Check also face->font==font->font.font.
4336
73acf815 43372008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4338
4339 * emacs.c (main): Change default value of `enable_font_backend' to 1.
4340 Parse "--disable-font-backend" option.
4341 (standard_args): Add "--disable-font-backend" option.
4342
73acf815 43432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4344
4345 * fontset.c (fontset_find_font): New function.
4346 (fontset_font): Use fontset_find_font.
4347 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
4348 Register the specified font for all Latin characters.
4349 (new_fontset_from_font): Register the specified font for all Latin
4350 characters.
4351 (dump_fontset): For a realized fontset, include the base fontset
4352 name in the returned vector.
4353
73acf815 43542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4355
4356 * character.h (CHAR_STRING): Cast C to unsigned on calling
4357 char_string.
4358
4359 * character.c (char_string): Type of arg C changed to unsigned.
4360 Signal an error if C is an invalid character code.
4361
4c4475a8
GM
4362 * editfns.c (general_insert_function, Fchar_to_string):
4363 Use CHARACTERP, not INTEGERP.
aca7a3d2 4364
73acf815 43652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4366
4367 * character.h (MIN_MULTIBYTE_LEADING_CODE)
4368 (MAX_MULTIBYTE_LEADING_CODE): New macros.
4369
4370 * regex.c (analyse_first): Fix for multibyte characters in "case
4371 charset:" and "case categoryspec:".
4372
73acf815 43732008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4374
4375 * Makefile.in (LIBES): Move standard libraries to the end.
4376
73acf815 43772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4378
4379 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
4380 nonzero, don't shrink the buffer nextb.
4381
4382 * buffer.h (struct buffer_text): New member inhibit_shrinking.
4383
4384 * coding.c (coding_alloc_by_making_gap): New arg offset.
4385 (alloc_destination): Call coding_alloc_by_making_gap with the arg
4386 offset.
4387 (decode_coding_iso_2022): Update coding->safe_charsets.
4388 (decode_coding_gap): Temporarily set
4389 current_buffer->text->inhibit_shrinking to 1.
4390
73acf815 43912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4392
4393 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
4394 indexing into elements of s->cmp and s->char2b.
4395
73acf815 43962008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
4397
4398 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
4399
73acf815 44002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4401
4402 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
4403 target_multibyte instead of multibyte.
4404 (re_match_2_internal): Call bcmp_translate with target_multibyte.
4405 (bcmp_translate): Change the argument name from multibyte to
4406 target_multibyte.
4407
73acf815 44082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4409
4410 These changes are to compile a regexp into a pattern that can be
4411 used both for multibyte and unibyte targets.
4412
4413 * Makefile.in (search.o): Depend on charset.h.
4414
4415 * character.c (multibyte_char_to_unibyte_safe): New function.
4416
4417 * search.c: Include "charset.h".
4418 (compile_pattern_1): Delete argument multibyte. Don't set
4419 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
4420 (compile_pattern): Don't compare cp->buf.target_multibyte.
4421 Compare cp->buf.charset_unibyte.
4422 (compile_pattern): Set cp->buf.target_multibyte.
4423
4424 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
4425
4426 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
4427
4428 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 4429 multibyte. Change callers.
aca7a3d2 4430 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
4431 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
4432 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
4433 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
4434 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
4435 (regex_compile): Make the compiled pattern usable both for
4436 multibyte and unibyte targets.
4437 (analyse_first): Make the fastmap usable both for multibyte and
4438 unibyte targets.
1f45f627 4439 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
4440 (re_match_2_internal): Pay attention to the case that the
4441 multibyteness of bufp and target may be different.
4442
73acf815 44432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4444
4445 * xdisp.c (x_produce_glyphs): When a font is not found, make the
4446 empty box occupy at least one column width.
4447
73acf815 44482008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4449
4450 * Makefile.in: Remove redundant HAVE_XFT clause.
4451
73acf815 44522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4453
4454 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
4455
73acf815 44562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4457
4458 * fontset.c (Finternal_char_font): Fix for the case of POSITION
4459 being nil.
4460
73acf815 44612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4462
4463 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
4464
73acf815 44652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4466
4467 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
4468
73acf815 44692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4470
4471 * search.c (simple_search): Fix previous change.
4472
73acf815 44732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4474
4475 * xftfont.c (ftfont_font_format): Extern declaration.
4476
4477 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
4478
4479 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
4480 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
4481
4482 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
4483 (ftfont_font_format): Fix previous change.
4484
4485 * font.h (Ffont_xlfd_name): EXFUN it.
4486
4487 * font.c (font_parse_xlfd): Fix the array size of `f'.
4488 (register_font_driver): Use EQ to compare driver->type.
4489
4490 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
4491 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
4492 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
4493
73acf815 44942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4495
4c4475a8
GM
4496 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
4497 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 4498
73acf815 44992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4500
4501 * xfont.c (xfont_open): Set font->format.
4502
4503 * xftfont.c (xftfont_open): Set font->format.
4504
4505 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
4506 (ftfont_list): Include FC_FONTFORMAT in FcObject.
4507 (ftfont_open): Set font->format.
4508 (ftfont_font_format): New function.
4509
4510 * font.h (struct font): New memeber format.
4511
4512 * font.c (Qopentype): New variable.
4513 (syms_of_font): Defsym it.
4514 (Fquery_font): Change the format of the last element of the return
4515 value.
4516
73acf815 45172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4518
4519 * xfns.c (xic_create_xfontset): Try the default fontset name as a
4520 last resort.
4521
73acf815 45222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4523
4524 * coding.c (detect_coding_charset): Fix detection of multi-byte
4525 charset.
4526
73acf815 45272008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
4528
4529 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
4530
73acf815 45312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4532
4533 * xdisp.c (get_next_display_element): Set it->face_id for the
4534 first component of a composition.
1f45f627 4535 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 4536
73acf815 45372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4538
4539 (get_next_display_element): Set it->face_id for the
4540 first component of a composition.
1f45f627 4541 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 4542
73acf815 45432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4544
4545 * fontset.c (Qlatin): New variable.
4546 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 4547 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 4548
73acf815 45492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4550
4551 * font.c (font_unparse_fcname): Pay attention to the case that
4552 some of font property is a null string.
4553
73acf815 45542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4555
4556 * term.c: Include "composite.h".
4557 (encode_terminal_code): Output all components of composition.
4558 Check the size of encode_terminal_src.
424c157f 4559 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
4560 (append_composite_glyph, produce_composite_glyph): New functions.
4561
4562 * xdisp.c (x_produce_glyphs): In handling composition, if a font
4563 is not found, get font_info from the current ascii face.
4564
73acf815 45652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4566
4567 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
4568 buffer-file-name to Qnil before calling insert_from_buffer.
4569
4570 * font.c (font_unparse_fcname): Pay attention to the case that
4571 foundry is a null string.
4572
73acf815 45732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4574
4575 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
4576
4577 * font.c (Qunicode_sip): New variable.
4578 (syms_of_font): Declare it as a Lisp symbol.
4579
4580 * font.h (Qunicode_sip): Extern it.
4581
73acf815 45822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4583
1f45f627 4584 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
4585
4586 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 4587 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
4588 the first elememnt of allocated memory.
4589
1f45f627 4590 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
4591
4592 * xdisp.c (handle_composition_prop): Set it->c to the first
4593 non-TAB component.
1f45f627
GM
4594 (fill_composite_glyph_string): Change argument.
4595 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
4596 (x_produce_glyphs): Fix handling of left/right padding.
4597
73acf815 45982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4599
4600 * coding.c (detect_coding_system): Fix for handling off
4601 inhibit_iso_escape_detection. Fix for the case that no coding
4602 system is defined for a specific coding category.
4603
73acf815 46042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4605
1f45f627 4606 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
4607
4608 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
4609 opening a font.
4610
4611 * fileio.c (Finsert_file_contents): On recovering a file, assume
4612 Unix-like eol.
4613 (choose_write_coding_system): On auto-saving a file, force
4614 Unix-like eol.
4615
4616 * coding.c (setup_coding_system): Fix setting of
4617 coding->common_flags based on eol_type.
4618 (coding_inherit_eol_type): If PARENT is not nil, be sure to
4619 inherit from it.
4620
73acf815 46212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4622
1f45f627 4623 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 4624
73acf815 46252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4626
1f45f627 4627 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
4628 (ftfont_list): Don't check :name property.
4629 (ftfont_match): New function.
4630 (ftfont_pattern_entity): If the pattern doesn't contain
4631 FC_SPACING, don't assuce FC_MONO.
4632
4633 * font.h (struct font_driver): New member `match'.
1f45f627 4634 (font_update_drivers): Adjust prototype.
aca7a3d2 4635
4c4475a8
GM
4636 * font.c (font_parse_fcname, font_parse_name): Don't change :name
4637 property of FONT.
aca7a3d2
MB
4638 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
4639 them unconditionally.
4640 (font_matching_entity): New function.
4641 (font_open_by_name): Try font_matching_entity if exact match is
4642 not found.
4643 (font_update_drivers): Delete the arg FONT. Return a list of
4644 actually used backends. Don't free faces, font caches here.
4645 Don't store data in frame parameters. Don't call x_set_font.
4646 (Ffont_spec): Store :name property as is.
4647 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
4648 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
4649 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
4650 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
4651 Call font->driver->otf_gsub instead of font_otf_gsub.
4652
4653 * frame.c (x_set_font_backend): Do more works that were done in
4654 font_update_drivers before.
4655
4656 * xfont.c (xfont_match): New function.
4657 (xfont_driver): Set xfont_driver.match to xfont_match.
4658 (xfont_draw): Set font in GC if necessary.
4659
4660 * ftxfont.c (ftxfont_match): New function.
4661 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
4662
4663 * xftfont.c (xftfont_match): New function.
4664 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
4665
73acf815 46662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4667
4668 * font.h (struct font): New member scalable.
4669 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 4670 (font_otf_gsub): Adjust prototype.
aca7a3d2 4671
1f45f627
GM
4672 * font.c (font_otf_capability): Fix handling of the default langsys.
4673 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
4674 Check the contents of SPEC.
4675 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
4676 (check_gstring): New function.
4677 (REPLACEMENT_CHARACTER): New macro.
4678 (font_otf_gsub): New arg alternate_subst. Be sure to set all
4679 glyph codes of GSTRING.
4680 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
4681 (font_prepare_composition): Set cmp->glyph_len.
4682 (font_open_entity): Set font->scalable.
4683 (Ffont_get): Handle :otf property.
4684 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
4685 functions.
4686 (Fquery_font): Use font->font.full_name.
4687 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
4688 Sfont_otf_alternates.
4689
4690 * ftfont.c (ftfont_open): Set font->font.full_name and
4691 font->font.name properly. Fix calculation of font->font.height
4692 and font->min_width.
4693
4694 * ftxfont.c (ftxfont_create_gcs): New function.
4695 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
4696 (ftxfont_draw_backgrond): Fix filling region.
4697 (ftxfont_default_fid): New function.
4698 (ftxfont_open): Set xfotn->fid to the return value of
4699 ftxfont_default_fid.
4700 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
4701 (ftxfont_done_face): Free only GCs that are created by
4702 ftxfont_create_gcs.
4703 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
4704
4705 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
4706 Clip to src->width, etc (not src->clip_XXX).
4707
4708 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
4709 FontBackend frame parameter.
4710
73acf815 47112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4712
4713 * font.h (struct font_driver_list): New member `on'.
4714 (Fclear_font_cache): EXFUN it.
4715 (font_update_drivers): Extern it.
4716
4717 * font.c (font_unparse_fcname): Fix typo (swidth->width).
4718 (font_list_entities): Check driver_list->on.
4719 (register_font_driver): Initalize `on' member to 0.
4720 (font_update_drivers): New function.
4721 (Fclear_font_cache): Check driver_list->on.
4722
4723 * frame.h (Qfont_backend): Extern it.
4724 (x_set_font_backend): Extern it.
4725
4726 * frame.c (Qfont_backend): New variable.
4727 (frame_parms): New element for font-backend.
4728 (x_set_font_backend): New function.
4729
4730 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
4731 FontBackend frame parameter.
4732 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
4733 x_set_font_backend.
4734
4735 * xfont.c (xfont_list): Don't try listing by :name property if the
4736 name is not for XLFD.
4737
73acf815 47382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4739
4740 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
4741 (LGLYPH_SET_TO): New macros.
4742 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
4743 element of G is vector or not.
4744 (font_at): Extern it.
4745
4746 * font.c: Include window.h.
4747 (font_lispy_object): New function.
4748 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
4749 end of valid glyph.
4750 (font_close_object): Fix getting (struct font *).
4751 (font_at): New function.
4752 (Ffont_get): If FONT is a font-object, get entity from it.
4753 (Ffont_make_gstring): Initialize elements of glyphs with nil.
4754 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
4755 range check.
4756 (Ffont_at): New function.
4757 (syms_of_font): Defsubr Sfont_at.
4758
4759 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 4760 before the entry for Qcomposition.
1f45f627 4761 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
4762 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
4763 the font in gstring.
4764 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
4765 LGLYPH_FORM (g) to detect the end of valid glyph.
4766 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
4767 we are composing with gstring.
4768
4769 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
4770 Check if adjustment is vector or not.
4771
4772 * Makefile.in (font.o): Make it depends on window.h.
4773
73acf815 47742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4775
4776 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
4777 adjustment is vector or not.
4778
73acf815 47792008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4780
4781 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
4782
73acf815 47832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4784
4785 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
4786 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
4787 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
4788
1f45f627 4789 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 4790 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
4791 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
4792 LGLYPH format.
aca7a3d2 4793
1f45f627 4794 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4795 the change of LGLYPH format.
4796
73acf815 47972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4798
4799 * ftfont.c (ftfont_list): Fix typo.
1f45f627 4800 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 4801
880820fe 48022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4803
4804 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
4805
4806 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
4807 xftface_info is non-NULL.
4808
880820fe 48092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 4810
1f45f627 4811 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 4812
73acf815 48132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4814
4815 * ftfont.c (ftfont_list): Pay attention to the case that
4816 FC_CAPABILITY is not defined.
4817
73acf815 48182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4819
4820 * xftfont.c (xftfont_open): Set charset related members to -1.
4821
1f45f627
GM
4822 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
4823 QCname.
aca7a3d2
MB
4824 (ftfont_open): Set charset related members to -1.
4825
4826 * fontset.c (Votf_script_alist): New variable.
4827 (syms_of_fontset): Initialize it.
4828 (fontset_font): Delete unused variable.
4829
4830 * fontset.h (Votf_script_alist): Extern it.
4831
1f45f627 4832 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
4833
4834 * font.h (font_close_object, font_merge_old_spec): Extern them.
4835
73acf815 48362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4837
4838 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
4839 (syms_of_font): Initialize them.
4840 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
4841 (font_prop_validate_type): Delete.
4842 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
4843 Change caller.
4844 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
4845 (font_prop_validate_extra): Delete.
aca7a3d2
MB
4846 (font_prop_validate_spacing): New function.
4847 (font_property_table): Add elements for all known properties.
1f45f627
GM
4848 (get_font_prop_index): Rename from check_font_prop_name. New
4849 argument FROM. Change caller.
aca7a3d2 4850 (font_prop_validate): Validate all known properties.
1f45f627 4851 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
4852 (font_expand_wildcards): Make it static. Fix the way of shrinking
4853 the possible range.
1f45f627 4854 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 4855 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 4856 Change caller.
aca7a3d2 4857 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
4858 (font_parse_fcname): Delete argument merge. Fix parsing of point
4859 size. Don't validate properties values here. Change caller.
4860 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
4861 (font_open_by_name): Delete unused variable.
4862 (Ffont_spec): Likewise. Validate property values.
4863 (Ffont_match_p): New function.
4864
4865 * font.h (QCscalable): Extern it.
1f45f627 4866 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 4867
1f45f627 4868 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 4869
1f45f627 4870 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
4871 (xfont_list_pattern): New function.
4872 (xfont_list): Use xfont_list_pattern.
4873
73acf815 48742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4875
4876 * font.h (Flist_fonts): EXFUN it.
4877
73acf815 48782008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4879
4880 * w32term.c (w32_initialize): Add back smoothing_type and
4881 smoothing_enabled definitions.
4882
73acf815 48832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4884
4885 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
4886 s->face->font on determining underline position.
4887
73acf815 48882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4889
4890 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
4891 (font_has_char): Accept font-object too.
4892 (font_find_for_lface): Try at first with a size specified in face.
4893
73acf815 48942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4895
4896 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
4897 font_open_by_name.
4898
73acf815 48992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4900
4901 * font.h (QCspacing, QCdpi): Extern them.
4902 (enum font_spacing): New enum.
4903 (FONT_PIXEL_SIZE_QUANTUM): New macro.
4904
4905 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
4906 (QCspacing, QCdpi): New variables.
4907 (syms_of_font): Initialize them.
4908 (font_pixel_size): New function.
4909 (font_put_extra): New function.
4910 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
4911 in FONT_EXTRA.
e9184ccb
JB
4912 (font_parse_fcname): Handle enumenrated values (e.g. bold).
4913 Fix handling font size. Add QCname property that contains only
aca7a3d2 4914 unknown properties.
1f45f627 4915 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 4916 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
4917 (font_sort_entites, font_list_entities, font_find_for_lface)
4918 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 4919 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
4920
4921 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
4922 include weight in listing pattern, instead check weight of each
4923 listed font. Don't include scalable in pattern. Pay attention to
4924 FONT_PIXEL_SIZE_QUANTUM.
4925
73acf815 49262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4927
aca7a3d2 4928 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 4929 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
4930 (font_list_entities): Handle float size correctly.
4931 (font_open_by_name): Prefer `normal' property values if the name
4932 doesn't specify them.
4933
4934 * fontset.c (Finternal_char_font): Use font_get_name, not
4935 Ffont_xlfd_name.
4936
4937 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
4938 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
4939 pattern. Don't force scalable.
4940
4941 * xftfont.c (xftfont_open): For generating a name, start from
4942 96-byte buffer.
4943
880820fe 49442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4945
4946 * frame.h (x_new_fontset2): Fix prototype.
4947
73acf815 49482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4949
1f45f627 4950 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
4951 (font_match_p, font_get_spec, font_parse_fcname)
4952 (font_unparse_fcname): Extern them.
1f45f627 4953 (font_get_name): Adjust prototype.
aca7a3d2
MB
4954
4955 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
4956 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
4957 (font_expand_wildcards): Fix handling ENCODING field. Avoid
4958 unnecessary checks for weight, slant, and swidth.
4959 (font_parse_fcname): New function.
4960 (font_unparse_fcname): New function.
4961 (font_parse_name): New function.
4962 (font_match_p): New function.
1f45f627 4963 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
4964 (font_get_spec): New function.
4965 (Qunspecified, Qignore_defface): Don't extern them.
4966 (font_find_for_lface): Assume that LFACE is fully specified.
4967 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
4968 object, use it for FACE.
4969 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
4970 driver->parse_name.
4971 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
4972
1f45f627
GM
4973 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
4974 prototype.
aca7a3d2 4975
1f45f627
GM
4976 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
4977 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
4978 make_fontset.
4979
1f45f627 4980 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 4981
1f45f627 4982 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
4983 of x_new_fontset2.
4984
4985 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
4986 (Qsans__serif): New variables.
4987 (ftfont_generic_family_list): New variable.
4988 (syms_of_ftfont): Initialize the above variables.
1f45f627 4989 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
4990 (ftfont_list_generic_family): New function.
4991 (ftfont_parse_name): Delete this function.
1f45f627 4992 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
4993 (ftfont_list_family): Fix args to FcObjectSetBuild.
4994
4995 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
4996 object in attrs[LFACE_FONT_INDEX].
4997 (set_lface_from_font_name): Cancel all changes for font-backend.
4998 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
4999 function.
5000 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5001 font object in QCfont attribute.
5002 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5003 (realize_default_face) [USE_FONT_BACKEND]: Call
5004 set_lface_from_font_and_fontset.
5005
5006 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5007 "fixed", and signal error here if no suitable font was found.
5008
5009 * xfont.c (xfont_parse_name): Delete this function.
5010
5011 * xftfont.c (xftfont_open): Change coding style of error
5012 handling. Generate fontconfig's fontname pattern.
5013
5014 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5015 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5016
5017 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5018 Both args FONTSET and FONT_OBJECT must be existing ones.
5019
73acf815 50202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5021
5022 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5023
73acf815 50242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5025
5026 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5027
5028 * font.h (struct font): Fix typo.
5029
5030 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5031 XLFD_XXX_INDEX.
5032 (enum xlfd_field_mask): New enum.
1f45f627 5033 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
5034 are followed by non-digits, return a symbol.
5035 (font_expand_wildcards): New function.
5036 (font_parse_xlfd): Fix wildcard handling.
5037 (Ffont_spec): If :name is specified, reflect the info in the other
5038 properties.
5039
5040 * ftfont.c (ftfont_pattern_entity): Fix typo.
5041 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5042 locale.
5043
73acf815 50442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5045
5046 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5047
1f45f627 5048 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
5049 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5050 registry doesn't specify encoding part.
5051 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5052 (font_open_by_name): At first try parsing the name.
5053 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5054 as Lisp symbols.
5055
5056 * fontset.c (reorder_font_vector): Pay attention to the case that
5057 the 3rd element of font_def is nil.
5058 (fontset_font): For the default fontset, append one more fontset
5059 elements for a script-based font specification. Don't add script
5060 attribute on finding a font.
5061 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5062 font name.
5063 (fontset_ascii_font): If a font can't be opened, return nil.
5064
1f45f627 5065 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
5066 (ftfont_pattern_entity): New function.
5067 (ftfont_get_cache): Assume that freetype_font_cache is already
5068 initialized.
5069 (ftfont_list): Handle the case that a file is specified in font
5070 name. Use ftfont_pattern_entity to generate entities.
5071 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5072 (syms_of_ftfont): Initialize freetype_font_cache.
5073
5074 * xftfont.c (xftfont_open): Make the font name fontconfig's
5075 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5076 (xftfont_close): Free font->font.name if not NULL.
5077
5078 * xfont.c (xfont_list): If script is specified for a font, return
5079 null_vector.
5080 (xfont_list_family): Declare argument type.
5081
5082 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5083 name, set LFACE_FONT (lface) to nil.
5084
5085 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5086 return Qnil.
5087
73acf815 50882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5089
1f45f627 5090 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
5091 (standard_args): Add "-enable-font-backend".
5092
73acf815 50932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5094
5095 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5096 (struct xftdraw_list, xftdraw_list): Delete them.
5097 (register_xftdraw, check_xftdraw): Delete them.
5098 (xftfont_prepare_face): Don't call register_xftdraw.
5099 (xftfont_done_face): Don't call check_xftdraw.
5100 (xftfont_draw): Get backroudn color only when with_background is
5101 nonzero.
5102
5103 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5104
73acf815 51052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5106
5107 These changes are for the new font handling codes.
5108
5109 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5110 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5111 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5112 (FONTSRC, FONTOBJ): New variables.
5113 (obj): Add $(FONTOBJ).
5114 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5115 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5116 @LIBOTF_LIBS@.
5117 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 5118 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 5119
1f45f627 5120 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
5121
5122 * character.h (Vscript_representative_chars): Extern it.
5123
5124 * character.c (Vscript_representative_chars): New variable.
5125 (syms_of_character): Declare it as a Lisp variable.
5126
5127 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5128 enable_font_backend is nonzero, accept the composition method
5129 COMPOSITION_WITH_GLYPH_STRING.
5130
5131 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5132 enumeration COMPOSITION_WITH_GLYPH_STRING.
5133
aca7a3d2
MB
5134 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5135 members clip_x, clip_y, clip_width, and clip_height.
5136 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5137
5138 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5139 --enable-font-backend. Call syms_of_font.
5140
5141 * fns.c (assoc_no_quit): New function.
5142
5143 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5144 (face_for_font, new_fontset_from_font)
5145 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5146
5147 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5148 (fontset_font, fontset_ascii, face_for_char)
5149 (make_fontset_for_ascii_face, Ffont_info)
5150 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5151 is nonzero, use font-backend mechanism.
5152 (find_font_encoding): Make it non-static.
5153 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5154 New functions.
5155
5156 * frame.h (struct frame): New members resx and resy.
5157 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5158 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5159
5160 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 5161 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
5162
5163 * lisp.h (assoc_no_quit): Extern it.
5164
5165 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5166 Through out the file, use FONT_INFO_FROM_FACE instead of
5167 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5168 rif->per_char_metric.
5169 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5170 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5171 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5172 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5173 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5174 nonzero, use font-backend mechanism.
5175 (get_per_char_metric): New function.
5176
5177 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
5178 (set_lface_from_font_name)
5179 (set_font_frame_param, free_realized_face)
5180 (prepare_face_for_display, clear_face_gcs)
5181 (Finternal_set_font_selection_order, realize_x_face)
5182 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
5183 font-backend mechanism.
1f45f627 5184 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
5185 (load_face_font) [USE_FONT_BACKEND]: Abort.
5186 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 5187 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
5188
5189 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
5190 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
5191 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
5192 nonzero, register all available font drivers. Call
5193 x_default_font_parameter for deciding a font.
5194 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
5195
5196 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
5197 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
5198 (x_set_glyph_string_clipping_exactly)
5199 (x_compute_glyph_string_overhangs)
5200 (x_draw_glyph_string_foreground)
5201 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
5202 (x_free_frame_resources) [USE_FONT_BACKEND]: If
5203 enable_font_backend is nonzero, use font-backend mechanism.
5204 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
5205
73acf815 52062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5207
fcb314b2 5208 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
5209 system_eol_type.
5210 (syms_of_coding): Initialize system_eol_type.
5211
fcb314b2
GM
5212 * process.c (Fset_process_coding_system): Inherit system's eol
5213 format if necessary.
aca7a3d2 5214
73acf815 52152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5216
5217 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
5218
73acf815 52192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5220
5221 * coding.c (decode_eol): Pay attention to buffer relocation in
5222 del_range_2.
5223 (decode_coding): Call decode_eol before restoring undo_list.
5224
73acf815 52252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5226
5227 * charset.c (Fdefine_charset_internal): Fix setting of
5228 emacs_mule_bytes.
5229
73acf815 52302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5231
5232 * keyboard.c (read_char): Check if C is a character or not before
5233 looking up Vkeyboard_translate_table.
5234
73acf815 52352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5236
5237 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
5238 condition to terminate the loop.
5239
73acf815 52402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5241
5242 * coding.c (produce_composition): Compare charbuf[i] instead of
5243 args[i] against 0.
5244 (Fterminal_coding_system): Use EQ to compare Lisp objects.
5245
73acf815 52462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5247
5248 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
5249 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
5250 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
5251 detect_coding.
5252 (emacs_mule_char): Handle old style (Emacs 20) component character
5253 of a composition.
4c4475a8
GM
5254 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
5255 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
5256 composition rule.
aca7a3d2
MB
5257 (decode_coding_emacs_mule): Handle invalid bytes correctly.
5258
73acf815 52592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5260
5261 * coding.c (encode_coding_ccl): Allocate destination dynamically
5262 when necessary.
5263
73acf815 52642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5265
5266 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
5267 the loop. When quitted, show a proper error message.
5268
73acf815 52692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5270
aca7a3d2
MB
5271 * xterm.c (x_set_glyph_string_clipping_exactly): Set
5272 src->clip_head and src->clip_tail temporarily instead of src->hl.
5273
5274 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
5275 character sequence.
5276 (Fccl_execute_on_string): Use ASET, not XSET.
5277
73acf815 52782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5279
1f45f627 5280 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 5281
73acf815 52822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5283
5284 * coding.c (decode_coding): Fix the condition of terminating the
5285 decoding loop.
5286
73acf815 52872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5288
5289 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 5290 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 5291
73acf815 52922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5293
5294 * charset.c (map_charset_chars): Fix for ascii-compatible charset
5295 made by a mapping table.
5296
73acf815 52972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5298
5299 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
5300 not.
5301 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
5302 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
5303
5304 * xterm.c (x_draw_composite_glyph_string_foreground): Check
5305 s->face is NULL or not.
5306
73acf815 53072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5308
5309 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
5310 (x_draw_glyph_string): Fix drawing of right_overhang and
5311 left_overhang around/on cursor.
5312
1f45f627 5313 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 5314
73acf815 53152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5316
5317 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
5318
73acf815 53192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5320
4c4475a8
GM
5321 * coding.c (Fdefine_coding_system_internal)
5322 (Fdefine_coding_system_alias): Avoid a duplicated element in
5323 Vcoding_system_alist.
aca7a3d2 5324
73acf815 53252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5326
5327 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5328
fcb314b2 5329 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
5330 (syms_of_coding): Intern and staticpro it.
5331 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 5332 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
5333
5334 * coding.h (CODING_SYSTEM_P): If ID is not available, call
5335 Fcoding_system_p.
5336 (CHECK_CODING_SYSTEM): If ID is not available, call
5337 Fcheck_coding_system.
4c4475a8
GM
5338 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
5339 Try also Fcheck_coding_system.
aca7a3d2 5340
73acf815 53412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5342
aca7a3d2
MB
5343 * coding.c (code_conversion_restore): GCPRO arg.
5344
73acf815 53452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5346
5347 * character.c (lisp_string_width): Check multibyteness of STRING.
5348
73acf815 53492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5350
5351 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
5352 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
5353 (decode_mac_font_name): Use decode_coding_c_string instead of
5354 decode_coding.
5355 (x_load_font): Initialize fontp->fontset to -1. Set
5356 fontp->encoding_type.
5357
73acf815 53582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5359
5360 * search.c (search_buffer): Give up BM search on case-fold-search
5361 if one of a target character has a case-equivalence of different
5362 byte length even if that target charcter is an ASCII.
1f45f627
GM
5363 (simple_search): Fix calculation of byte length of matched text.
5364 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 5365
73acf815 53662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5367
5368 * coding.c (decode_coding): Fix handling of invalid bytes.
5369
73acf815 53702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5371
5372 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5373 Unicode characters.
5374
73acf815 53752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5376
5377 * coding.c (encode_coding_object): If a pre-write-conversion
5378 function makes a new buffer, kill it.
5379
73acf815 53802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5381
5382 * coding.c (QCascii_compatible_p): New variable.
5383 (syms_of_coding): Initialize it.
4c4475a8
GM
5384 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
5385 calling string_char.
aca7a3d2
MB
5386 (record_conversion_result): Add `default:' case.
5387 (coding_charset_list): Delete unused variable `coding_type'.
5388 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
5389 property in the plist of the coding system.
5390 (Fcoding_system_put): Check QCascii_compatible_p.
5391
73acf815 53922008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5393
5394 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
5395 removed calculation of frame `f', as it's now used.
5396
73acf815 53972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5398
1f45f627 5399 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
5400 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
5401 (UNIDATA): New variable.
5402 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
5403 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
5404 $(RUN_TEMACS) unconditionally.
5405
73acf815 54062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5407
1f45f627 5408 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
5409 (admindir): New variable.
5410 ($(lispsource)international/charprop.el): New target.
5411
73acf815 54122008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5413
1f45f627 5414 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
5415 (syms_of_character): Remove its initialization.
5416
73acf815 54172008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
5418
5419 * w32select.c (validate_coding_system)
5420 (setup_windows_coding_system): New functions.
5421 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
5422 setup_windows_coding_system.
5423 (setup_config, Fw32_get_clipboard_data): Use
5424 validate_coding_system.
5425 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 5426 where signals are allowed.
aca7a3d2
MB
5427
5428 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
5429 (Fcheck_coding_system): Add declarations.
5430
73acf815 54312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5432
1f45f627 5433 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 5434
73acf815 54352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5436
5437 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
5438 string as the second argument for x_new_fontset.
5439
73acf815 54402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5441
5442 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
5443 (encode_coding_object): Use safe_call instead of call2.
5444
73acf815 54452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5446
1f45f627 5447 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
5448
5449 * Makefile.in (lisp): Include charprop.el.
5450
73acf815 54512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5452
5453 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
5454 Not sure if it's unnecessary.
5455
73acf815 54562008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5457
5458 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
5459 some possibly unnecessary fontset checking code that crashed
1f45f627 5460 when creating a new frame.
aca7a3d2 5461
73acf815 54622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5463
5464 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
5465 lookup_face.
5466
5467 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
5468
1f45f627 5469 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 5470
73acf815 54712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5472
73acf815 5473 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
5474 (coding_charset_list): New function.
5475
5476 * coding.h (coding_charset_list): Extern it.
5477
73acf815 54782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5479
5480 * fontset.c (Fset_fontset_font): Call find_font_encoding with
5481 concatenation of family and registry.
5482
73acf815 54832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5484
5485 * character.h (BYTE8_STRING): Fix typo.
5486
5487 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
5488 string to multibyte (sync to HEAD).
5489
5490 * casefiddle.c (casify_region): Handle changes in byte-length
5491 using replace_range_2 (sync to HEAD).
5492
73acf815 54932008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5494
5495 * chartab.c (map_char_table): GCPRO table and arg.
5496
73acf815 54972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5498
5499 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
5500 already at limit.
5501
73acf815 55022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5503
5504 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
5505 instead of fast_c_string_match_ignore_case.
1f45f627 5506 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 5507 fast_string_match_ignore_case instead of
1f45f627 5508 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 5509
73acf815 55102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5511
5512 * xdisp.c (get_next_display_element): In unibyte case, decide to
5513 display in octal form by checking a chacter by
5514 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
5515
1f45f627 5516 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
5517
5518 * character.c (unibyte_has_multibyte_table): New variable.
5519
5520 * character.h (unibyte_has_multibyte_table): Extern it.
5521 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
5522
73acf815 55232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5524
5525 * coding.c (encode_coding_iso_2022): Fix handling of charset
5526 annotation.
5527
73acf815 55282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5529
5530 * coding.c (setup_coding_system): If coding_system is nil, use
5531 Qundecided.
5532 (Fterminal_coding_system): Return nil if terminal coding system is
5533 `undecided'.
5534 (syms_of_coding): Define coding-system `undecided' here. Setup
5535 terminal_coding as `undecided'.
5536
73acf815 55372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5538
5539 * xdisp.c (message_dolog, set_message_1): Call
5540 unibyte_char_to_multibyte with arg type int.
5541
aca7a3d2
MB
5542 * lread.c (read1): Fix reading of a char-table.
5543
5544 * print.c (print_object): Include sub char-table in cicularities
5545 detection.
5546
73acf815 55472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5548
5549 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 5550 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 5551
73acf815 55522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5553
5554 * fileio.c (report_file_error): Make a unibyte string from
5555 strerror (errorno).
5556 (Fsubstitute_in_file_name): Fix the arg to
5557 unibyte_char_to_multibyte. It is evaluated twice.
5558
73acf815 55592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5560
5561 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
5562
73acf815 55632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5564
5565 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
5566 BOM is not found.
4c4475a8
GM
5567 (detect_coding, detect_coding_system): Optimization for ISO-2022
5568 when no 8-bit data is found.
aca7a3d2 5569
73acf815 55702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5571
5572 * w32fns.c (x_to_w32_font): Update to use new coding struct.
5573
73acf815 55742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5575
4c4475a8
GM
5576 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
5577 CHARS.
aca7a3d2 5578
73acf815 55792008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5580
5581 * macterm.c (mac_encode_char): Add charset argument and update
5582 to use encoding_type.
2a2e8de7 5583 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
5584 switch to pure fontset.
5585 (decode_mac_font_name): Temporarily remove decoding.
5586 (x_font_name_to_mac_font_name): Temporarily remove encoding.
5587 (x_load_font): Temporarily remove encoding.
aca7a3d2 5588
73acf815 55892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5590
5591 * xfaces.c (Fface_font): If frame is not on a window system,
5592 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
5593 refer to face->font.
5594 (split_font_name_into_vector, build_font_name_from_vector)
5595 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
5596 whne HAVE_WINDOW_SYSTEM is defined.
5597
73acf815 55982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5599
5600 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
5601 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 5602 cmp->glyph_len is zero.
aca7a3d2 5603
1f45f627 5604 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
5605 (Ffontset_info): Make it backward compatible. New arg ALL.
5606
73acf815 56072008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
5608
5609 * process.c (read_process_output): Grow decoding_buf when needed;
5610 this could cause a crash in allocate_string and compact_small_strings.
5611
73acf815 56122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5613
1f45f627 5614 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 5615
73acf815 56162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5617
5618 * coding.c (setup_coding_system): Set coding->common_flags
5619 correctly for raw-text.
5620 (consume_chars): On encoding unibyte text by raw-text, don't check
5621 multibyte form.
1f45f627 5622 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
5623
5624 * fileio.c (e_write): Short cut for the case of no encoding.
5625
73acf815 56262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5627
4c4475a8
GM
5628 * coding.c (detect_coding, detect_coding_system): Delete unused
5629 variables.
aca7a3d2 5630
73acf815 56312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5632
5633 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
5634 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
5635
73acf815 56362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5637
5638 * coding.c (Ffind_coding_systems_region_internal): Include
5639 raw-text and no-conversion in the result.
5640
73acf815 56412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5642
1f45f627 5643 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
5644 (load_font_get_repertory): Delete unnecessary check of ENCODING of
5645 FONT_DEF.
5646 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 5647 (set_fontset_font): Change argument.
aca7a3d2
MB
5648 (Fset_fontset_font): Fix for the case that TARGET is a script
5649 name and charset name.
5650 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
5651
73acf815 56522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5653
1f45f627
GM
5654 * fontset.c (fontset_font): Rename from fontset_face. Change return
5655 value.
4c4475a8
GM
5656 (face_suitable_for_char_p, face_for_char): Adjust for the change
5657 of fontset_font.
aca7a3d2
MB
5658 (make_fontset_for_ascii_face): Fix setting of the fontset element
5659 for ASCII.
5660 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
5661 to get a font name.
1f45f627 5662 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 5663
fcb314b2 5664 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
5665
5666 * character.h (LEADING_CODE_LATIN_1_MIN)
5667 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
5668
73acf815 56692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5670
fcb314b2 5671 * editfns.c (check_translation): New function.
aca7a3d2
MB
5672 (Ftranslate_region_internal): Handle M:N mapping.
5673
73acf815 56742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5675
5676 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
5677
73acf815 56782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5679
5680 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
5681 goto invalid_code.
5682 (decode_coding_iso_2022): Fix handling of invalid designation.
5683
5684 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
5685 after calling code_conversion_save.
5686
73acf815 56872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5688
5689 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
5690
5691 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
5692
5693 * fontset.c: Include "intervals.h".
5694 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
5695 (free_face_fontset, new_fontset_from_font_name): Fix
5696 Lisp_Object/int mixup.
aca7a3d2
MB
5697
5698 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
5699
5700 * coding.c: Add many prototypes for static functions.
5701 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 5702 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
5703 (Funencodable_char_position, Fcheck_coding_systems_region): Call
5704 get_translation_table with max_lookup NULL.
aca7a3d2 5705
73acf815 57062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5707
5708 * coding.c (get_translation_table): Declare it as Lisp_Object.
5709 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
5710 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
5711 instead of CHAR_TABLE_REF.
aca7a3d2 5712
73acf815 57132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5714
1f45f627 5715 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
5716 annotation data format.
5717 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 5718 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 5719 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 5720 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
5721 (decode_coding_ccl, decode_coding_charset): Pay attention to
5722 coding->charbuf_used.
aca7a3d2
MB
5723 (get_translation): New function.
5724 (produce_chars): New arguments translation_table and last_block.
5725 Translate characters here. Return number of carryover chars.
1f45f627
GM
5726 Change caller.
5727 (produce_composition): New argument pos. Change caller.
5728 Adjust for the change of annotation data format.
aca7a3d2
MB
5729 (produce_charset, produce_annotation): Likewise.
5730 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
5731 (consume_chars): New arg translation_table. Change caller.
5732 (translate_chars): Delete.
5733 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 5734
73acf815 57352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5736
5737 * search.c (simple_search): Fix setting this_pos_byte in backward
5738 search.
5739
5740 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
5741 byte sequence.
5742 (detect_coding_ccl): Fix setting of the variable valids.
5743
73acf815 57442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5745
5746 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
5747
5748 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
5749
1f45f627 5750 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
5751 Ftranslate_region. Accept a char-table in TABLE.
5752 (syms_of_editfns): Defsubr Stranslate_region_internal.
5753
5754 * xfaces.c (set_lface_from_font_name): If a font is specified for
5755 a frame, generate a fontset from the font.
5756 (build_scalable_font_name): If the scalable font is requested for
5757 a specific size, don't change that size.
5758 (try_font_list): Try a scalable font also in the case that a
1f45f627 5759 pattern string is specified.
aca7a3d2 5760
73acf815 57612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5762
5763 * xfaces.c (Fface_font): New optional arg CHARACTER.
5764
73acf815 57652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5766
5767 * charset.h (CHARSET_OFFSET): New macro.
5768
73acf815 57692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5770
5771 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
5772
5773 * fontset.c (fontset_face): Handle the case that repertory is a
5774 char-table.
5775 (find_font_encoding): Return nil for unknown encoding.
5776 (Fset_fontset_font): Ignore a font of unknown encoding.
5777
73acf815 57782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5779
1f45f627 5780 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
5781
5782 * fontset.c (fontset_face): Handle fallback fonts correctly.
5783 (Ffontset_info): Return infomation about fallback fonts.
5784
73acf815 57852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5786
5787 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 5788 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
5789 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
5790 the case that it is nil.
5791 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 5792 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
5793
5794 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
5795 subset or superset.
5796
73acf815 57972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5798
5799 * emacs.c (main): Call init_charset after syms_of_XXX.
5800
1f45f627 5801 * charset.c (Vcharset_map_directory): Delete.
aca7a3d2
MB
5802 (Vcharset_map_path): New variable
5803 (load_charset_map_from_file): Use Vcharset_map_path instead.
5804 (init_charset): Initialize Vcharset_map_path.
5805 (syms_of_charset): Delete declaration of "charset-map-directory",
5806 add declaration of "charset-map-path".
5807
73acf815 58082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5809
4c4475a8
GM
5810 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
5811 ASCII only string.
aca7a3d2
MB
5812
5813 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
5814
5815 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 5816 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 5817
73acf815 58182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5819
5820 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
5821
5822 * coding.c (QCmnemonic, QCdefalut_char)
5823 (QCdecode_translation_table, QCencode_translation_table)
5824 (QCpost_read_conversion, QCpre_write_conversion): New variables.
5825 (get_translation_table): Return a list of translation tables if
5826 necessary.
5827 (decode_coding): Call get_translation_table with ENCODEP 0.
5828 (char_encodable_p): If translation_table is non-nil, always call
5829 translate_char.
5830 (Fdefine_coding_system_internal): Accept list of translation
5831 tables as :encode-translation-table and :decode-translation-table.
5832 (Fcoding_system_put): New function.
5833 (syms_of_coding): Declare new symbols. Defsubr
5834 Scoding_system_put.
4c4475a8
GM
5835 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
5836 typically JISX0212.
aca7a3d2
MB
5837
5838 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
5839 when the charset is superset type.
5840
5841 * character.c (translate_char): Accept list of translation tables.
5842
73acf815 58432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5844
1f45f627 5845 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
5846 (CODING_ATTR_TRANS_TBL): New macro.
5847
5848 * coding.c (get_translation_table): New function.
5849 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
5850 (decode_coding, encode_coding): Utilize get_translation_table.
5851 (char_encodable_p, Funencodable_char_position): Translate char if
5852 necessary.
5853 (Ffind_coding_systems_region_internal)
5854 (Fcheck_coding_systems_region): Setup translation table for encode
5855 in a coding system attribute vector in advance.
aca7a3d2
MB
5856 (Fdefine_coding_system_internal): Allow a symbol as translation
5857 table. For shift-jis type coding system, allow 4th charset.
5858
73acf815 58592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5860
5861 * coding.c (decode_coding_sjis): Check the first byte rigidly.
5862
5863 * xdisp.c (get_next_display_element): Pass -1 as POS to
5864 FACE_FOR_CHAR if displaying a C-string.
5865
73acf815 58662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5867
5868 * composite.c (get_composition_id): Handle xoff and yoff in a
5869 composition rule.
5870
5871 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
5872 (struct composition): New member lbearing and rbearing.
5873
5874 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
5875 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 5876 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
5877
5878 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
5879 composition glyph.
5880
73acf815 58812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5882
5883 * print.c: Include charset.h.
5884 (Vprint_charset_text_property): New variable.
5885 (Qdefault): Extern it.
5886 (PRINT_STRING_NON_CHARSET_FOUND)
5887 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
5888 (print_check_string_result): New variable.
5889 (print_check_string_charset_prop): New function.
5890 (print_prune_charset_plist): New variable.
5891 (print_prune_string_charset): New function.
5892 (print_object): Call print_prune_string_charset if
5893 Vprint_charset_text_property is not t.
5894 (print_interval): Print nothing if itnerval->plist is nil.
5895 (syms_of_print): Declare Vprint_charset_text_property as a lisp
5896 variable. Init and staticpro print_prune_charset_plist.
5897
73acf815 58982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5899
5900 * fontset.c (new_fontset_from_font_name): Use the specified font
5901 for all characters in the new fontset.
5902
5903 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5904 OBJECT args.
5905
5906 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
5907 OBJECT args for composition too.
5908
5909 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5910 OBJECT args.
5911
73acf815 59122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5913
5914 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
5915
1f45f627 5916 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 5917 FONT_DEF format.
1f45f627 5918 (fontset_face): New arg id. Change caller.
aca7a3d2 5919 (face_for_char): New args pos and object.
1f45f627 5920 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF
aca7a3d2
MB
5921 format.n
5922 (fs_query_fontset): Check NAME by Fassoc too.
5923 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 5924 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 5925
1f45f627 5926 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 5927
4c4475a8
GM
5928 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
5929 (append_space, extend_face_to_end_of_line)
5930 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5931 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
5932
5933 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
5934 POS and OBJECT args.
5935
5936 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
5937 POS and OBJECT args.
5938
73acf815 59392008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5940
5941 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
5942 of GlobalAlloc'ed memory.
5943
73acf815 59442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5945
5946 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
5947
5948 * charset.h (charset_table_used): Delete extern.
5949
5950 * charset.c (charset_table_used): Make it static.
5951 (map_charset_chars): Fix args to c_function with.
5952
5953 * chartab.c (map_sub_char_table_for_charset): Fix args to
5954 c_function with.
5955
5956 * coding.h (enum coding_result_code): Delete
5957 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
5958
5959 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 5960 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
5961 (Vlast_code_conversion_error): New variables.
5962 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
5963 (ONE_MORE_BYTE): Record error if any instead of signaling an
5964 error. If non-ASCII multibyte char is found, return the negative
5965 value of the code. All callers changed to check it.
5966 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
5967 (record_conversion_result): New function. Change all codes setting
5968 coding->result to call this function.
4c4475a8
GM
5969 (detect_coding_utf_8, decode_coding_utf_8)
5970 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
5971 Don't use the local variable incomplete.
aca7a3d2 5972 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
5973 (decode_coding): Fix of flushing out unprocessed data.
5974 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 5975 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
5976
5977 * fontset.c (set_fontset_font): Fix args.
5978
5979 * lisp.h (CHARACTERBITS): Define as 22.
5980
5981 * process.c (send_process): Be sure to set coding->src_multibyte.
5982
5983 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
5984
73acf815 59852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5986
5987 * xdisp.c (handle_auto_composed_prop): Give limit to
5988 Fnext_single_char_property_change.
5989
73acf815 59902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5991
424c157f 5992 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 5993 table weak.
aca7a3d2
MB
5994
5995 * fontset.c (Fset_fontset_font): Fix docstring.
5996
5997 * lisp.h (detect_coding_system): Adjust prototype.
5998
5999 * fileio.c (kill_workbuf_unwind): Delete this function.
6000 (Finsert_file_contents): Adjust the call of detect_coding_system.
6001 Get conversion_buffer by code_conversion_save. Use the macor
6002 CODING_MAY_REQUIRE_DECODING. After decoding, update
6003 coding_system.
6004
6005 * coding.h (make_conversion_work_buffer): Delete extern.
6006 (code_conversion_save): Extern it.
6007
6008 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 6009 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
6010 (decode_coding_utf_8): Don't do eol converion.
6011 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 6012 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
6013 (decode_coding_emacs_mule, decode_coding_iso_2022)
6014 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6015 Don't do eol converion.
aca7a3d2
MB
6016 (adjust_coding_eol_type): Return a new coding system.
6017 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6018 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6019 each change.
6020 (decode_coding): Pay attention to undo_list. Do eol convesion for
6021 all types of coding-systems (if necessary).
6022 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 6023 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
6024 Vcode_conversion_reused_work_buf.
6025 (Vcode_conversion_workbuf_name): New variable.
6026 (reused_workbuf_in_use): New variable.
6027 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 6028 (code_conversion_restore): Change argument to cons.
1f45f627
GM
6029 (code_conversion_save): Delete the argument BUFFER. Change callers.
6030 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
6031 Fix for utf-16 detection.
6032 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 6033 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
6034 reused_workbuf_in_use.
6035
73acf815 60362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6037
6038 * keymap.c (store_in_keymap): Pay attention to the case that idx
6039 is a cons specifying a character range.
6040
73acf815 60412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6042
6043 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6044 HANDLED_RECOMPUTE_PROPS.
6045
6046 * coding.c (Fdefine_coding_system_internal): Fix checking of
6047 ascii compatibility.
6048
73acf815 60492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6050
1f45f627 6051 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
6052 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6053
6054 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6055 Resync charset_list to Vemacs_mule_charset_list.
6056
6057 * keymap.c (store_in_keymap): Pay attention to the case that idx
6058 is a cons specifying a character range.
6059
73acf815 60602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6061
6062 * composite.c (update_compositions): Bind inhibit-read-only, etc
6063 to t before calling remove-list-of-text-properties.
6064
6065 * print.c (print_object): Always print ASCII chars as is.
6066
73acf815 60672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6068
1f45f627 6069 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 6070
4c4475a8
GM
6071 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6072 is a char table.
aca7a3d2 6073
73acf815 60742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6075
1f45f627 6076 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 6077
73acf815 60782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6079
6080 * xfaces.c (set_lface_from_font_name): Fix for the case that
6081 FONTNAME is not fontset name.
6082
73acf815 60832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6084
6085 * fns.c (base64_encode_1): Fix previous change.
6086
73acf815 60872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6088
6089 * fontset.c (set_fontset_font): New function.
6090 (Fset_fontset_font): If a font is specified for a charset, use
6091 map_charset_chars to store the font spec in a fontset.
6092
73acf815 60932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6094
6095 * fontset.c (fontset_face): Create a fallback fontset on demand
6096 (make_fontset): Don't create a fallback fontset here.
6097 (free_face_fontset): Free a fallback fontset (if any) too.
6098 (n_auto_fontsets): Delete this variable.
6099 (auto_fontset_alist): New variable.
6100 (new_fontset_from_font_name): Check auto_fontset_alist.
6101 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6102 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6103 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6104 Defsubr Sfontset_list_all.
6105
73acf815 61062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6107
6108 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6109
73acf815 61102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6111
6112 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6113
73acf815 61142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6115
6116 * editfns.c (Fgoto_char): Fix docstring.
6117
73acf815 61182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6119
6120 * insdel.c (insert_from_gap): Adjust intervals correctly.
6121
73acf815 61222008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6123
6124 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6125 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6126 (w32_initialize): Try to load it.
6127 (x_get_font_repertory): Use it if available.
6128 (w32_encode_char): Add shortcut for unicode output.
6129
6130 * w32fns.c (w32_load_system_font): Default charset to -1.
6131 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 6132 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
6133 or wildcard charsets.
6134 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6135 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6136 (w32_to_x_font): Match charset to real charset.
6137 (enum_font_cb2): Always list unicode versions.
6138
6139 * makefile.w32-in (temacs): Increase EMHEAP.
6140
73acf815 61412008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6142
6143 * w32term.c (w32_encode_char): New charset parameter.
6144 font_info.encoding becomes encoding_type.
1f45f627 6145 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
6146 (x_new_font): Return quickly if font already set.
6147 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
6148 Use new fs_query_fontset. Try new_fontset_from_font_name.
6149 Use fontset_name for return value.
aca7a3d2
MB
6150
6151 * w32term.h: Declare x_get_font_repertory.
6152
6153 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 6154 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
6155 of encode_coding.
6156 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6157 decode_coding.
6158
6159 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6160 of x_new_fontset.
6161 (w32_load_system_font): Initialize charset as unicode.
6162 font_info.encoding becomes encoding_type.
1f45f627
GM
6163 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6164 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
6165 (syms_of_w32fns): Set get_font_repertory_func.
6166
1f45f627 6167 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 6168 from term.c.
1f45f627 6169 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
6170 encode_coding_object in place of encode_coding.
6171
6172 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6173 encoding becomes encoding_type.
6174
6175 * term.c (terminal_encode_buffer): Make externally visible.
6176
6177 * makefile.w32-in: Add character.h dependancies.
6178 (character.o, chartab.o): New targets.
6179
73acf815 61802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6181
6182 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 6183 CODING_ID_EOL_TYPE.
aca7a3d2 6184
73acf815 61852008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6186
6187 * coding.c (produce_chars): Revert last change.
6188
73acf815 61892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6190
6191 * charset.h (charset_unicode): Extern it.
6192
6193 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 6194 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 6195 arg MULTIBYTE.
1f45f627 6196 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
6197 change of find_charsets_in_text.
6198 (Fsplit_char): Fix doc. Never return unknown.
6199
6200 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
6201
6202 * coding.c (Fdefine_coding_system_alias): Update
6203 Vcoding_system_list.
6204
6205 * fontset.c (load_font_get_repertory): Pay attention to the case
6206 that ENCODING of a font is specified by a char-table.
6207
6208 * xterm.c (x_get_font_repertory): Handle the case that the
6209 encoding of font is other than Unicode.
6210
73acf815 62112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6212
6213 * term.c (encode_terminal_code): Don't handle glyph-table. Check
6214 if a character is encodable by the terminal coding system. If
6215 not, produces proper number of `?'s. Update
6216 terminal_encode_buffer and terminal_encode_buf_size if necessary.
6217 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
6218
73acf815 62192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6220
6221 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
6222 variables.
1f45f627 6223 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
6224 characters at once. Store the result of encoding in
6225 terminal_encode_buffer.
4c4475a8
GM
6226 (write_glyphs, insert_glyphs): Adjust for the change of
6227 encode_terminal_code.
aca7a3d2
MB
6228 (term_init): Initialize terminal_encode_buffer and
6229 terminal_encode_buf_size.
6230
6231 * coding.c (consume_chars): If coding->src_object is nil, don't
6232 check annotation.
6233
73acf815 62342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6235
6236 * character.c (char_string): Use ASCII_CHAR_P instead of
6237 SINGLE_BYTE_CHAR_P.
6238
73acf815 62392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6240
6241 * xdisp.c (handle_auto_composed_prop): Check if the last
6242 characters of auto-composed region is newly composed with the
6243 following characters.
6244 (handle_composition_prop): Fix checking of point being inside
6245 composition.
6246
73acf815 62472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6248
6249 * fns.c (concat): Don't change multibyteness of the result by
6250 concatenating an 8-bit character.
6251
6252 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
6253 multibyteness of the result when newelt is an 8-bit character.
6254
73acf815 62552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6256
6257 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
6258 EMACS_INT.
6259
6260 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
6261
6262 * xfaces.c (face_numeric_value): Declare dim size_t.
6263 (Finternal_lisp_face_equal_p): Remove unused f.
6264
6265 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
6266 (MATRIX_ROW): Remove unused vars.
6267 (draw_glyphs, x_insert_glyphs, fast_find_position)
6268 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
6269 byte/char counts.
6270
6271 * regex.c (regex_compile): Remove unused var.
6272
6273 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6274
6275 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6276 (Faccessible_keymaps, where_is_internal): Remove unused vars.
6277
6278 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
6279
6280 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
6281
6282 * fileio.c (Fwrite_region): Remove unused var.
6283
6284 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
6285 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
6286
6287 * composite.c (Fremove_list_of_text_properties): Declare.
6288
1f45f627
GM
6289 * coding.c (inhibit_pre_post_conversion): Remove (unused).
6290 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
6291 (coding_inherit_eol_type): Remove unused attrs.
6292 (detect_coding): Cast arg of detect_eol.
6293
6294 * charset.c (syms_of_charset): Remove unused var p.
6295 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
6296 byte/char counts.
6297
6298 * casetab.c (set_case_table): Remove unused var.
6299
6300 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 6301 unused vars.
aca7a3d2 6302
73acf815 63032008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6304
6305 * xterm.c (x_bitmap_mask): Declare.
6306
73acf815 63072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6308
6309 * xterm.c (x_term_init): Fix type error.
6310
6311 * lisp.h: Add Funibyte_char_to_multibyte.
6312
6313 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
6314 (Fset_coding_system_priority): Doc fix.
6315
aca7a3d2
MB
6316 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
6317
6318 * indent.c (check_composition): Make start and end EMACS_INT.
6319
6320 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
6321
6322 * xdisp.c (handle_composition_prop, check_point_in_composition):
6323 Make buffer positions EMACS_INT.
6324
6325 * composite.c (find_composition, run_composition_function)
6326 (update_compositions, Ffind_composition_internal): Make buffer
6327 positions EMACS_INT.
6328
6329 * composite.h (find_composition, update_compositions): Make
6330 position args EMACS_INT.
6331
1f45f627 6332 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
6333
6334 * intervals.c (get_property_and_range):
6335 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
6336
6337 * unexalpha.c: Don't include varargs.h.
6338
73acf815 63392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6340
6341 * coding.h (ENCODE_UTF_8): New.
6342
6343 * Makefile.in (gtkutil.o): Depend on coding.h.
6344
6345 * coding.c (Fset_coding_system_priority): Doc fix.
6346
73acf815 63472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6348
6349 * fileio.c (Finsert_file_contents): Call setup_coding_system in
6350 the case of auto saving.
6351
73acf815 63522008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 6353
4c4475a8
GM
6354 * chartab.c (map_char_table, map_char_table_for_charset): Protect
6355 `range' from GC.
aca7a3d2 6356
73acf815 63572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6358
6359 * coding.c (decode_coding_sjis): Check bytes more rigidly.
6360
73acf815 63612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6362
1f45f627 6363 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
6364 (Fwrite_region): Set Vlast_coding_system_used to the return value
6365 of choose_write_coding_system.
6366
73acf815 63672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6368
6369 * charset.c (Fset_charset_priority): Pay attention to duplicated
6370 arguments.
6371
6372 * coding.c (QCcategory): New variable.
6373 (syms_of_coding): Defsym it. Set all elements of
6374 Vcoding_category_table and their symbol values.
6375 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
6376 coding-category-XXX, and coding-category-list.
6377 (Fdefine_coding_system_internal): Add category in the plist.
6378
73acf815 63792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6380
6381 * callproc.c (Fcall_process): Handle carryover correctly.
6382
1f45f627 6383 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
6384 (raw_text_coding_system): Check NILP (coding_system).
6385 (coding_inherit_eol_type): Check NILP (coding_system) and
6386 NILP (parent).
6387 (consume_chars): Fix for the case of raw-text.
6388
6389 * process.c (read_process_output): Handle carryover correctly.
6390
73acf815 63912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6392
6393 * regex.c (re_search_2): Fix last change.
6394
73acf815 63952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6396
6397 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
6398 target_multibyte. Even in a unibyte case, return a converted
6399 multibyte char.
6400 (GET_CHAR_AFTER): New macro.
6401 (PATFETCH): Translate via multibyte char.
6402 (HANDLE_UNIBYTE_RANGE): Delete this macro.
6403 (SETUP_MULTIBYTE_RANGE): New macro.
6404 (regex_compile): Setup compiled code so that its multibyteness
6405 matches that of a target. Fix the handling of "[X-YZ]" using
6406 SETUP_MULTIBYTE_RANGE.
6407 (analyse_first) <charset>: For filling fastmap for all multibyte
6408 characters, don't check by BASE_LEADING_CODE_P.
6409 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
6410 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 6411 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
6412 (TARGET_CHAR_AND_LENGTH): Delete this macro.
6413 (TRANSLATE_VIA_MULTIBYTE): New macro.
6414 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
6415 It is the same as RE_MULTIBYTE_P (bufp) now.
6416 <exactn>: Translate via multibyte.
6417 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
6418 translate it.
6419 <charset, charset_not>: Fetch a character by
6420 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
6421 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
6422 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
6423 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
6424 by GET_CHAR_AFTER.
c5ad7a3d 6425 (bcmp_translate): Likewise.
aca7a3d2
MB
6426
6427 * search.c (compile_pattern): Check the member target_multibyte,
6428 not the member multibyte of buf.
6429
6430 * lread.c (read1): While reading a string, set force_singlebyte
6431 and force_multibyte correctly.
6432
4c4475a8
GM
6433 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
6434 up of unibyte_to_multibyte_table.
aca7a3d2 6435
73acf815 64362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6437
6438 * coding.c (setup_coding_system): If coding has
6439 post-read-conversion or pre-write-conversion, set
6440 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
6441 respectively.
6442 (decode_coding_gap): Run post-read-conversion if any.
6443
6444 * fileio.c (Finsert_file_contents): Even if we read into a
6445 unibyte buffer, check if we must decode the result or not.
6446
73acf815 64472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6448
6449 * coding.c (make_conversion_work_buffer): Change the work buffer
6450 name to the same one as that of Emacs 21.
6451
73acf815 64522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6453
1f45f627 6454 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
6455 (code_conversion_restore): Don't extern it.
6456
6457 * coding.c (detected_mask): Delete unused variable.
6458 (decode_coding_iso_2022): Pay attention to the byte sequence of
6459 CTEXT extended segment, and retain those bytes as is.
6460 (decode_coding_ccl): Delete unused variable `valids'.
6461 (setup_coding_system): Delete unused variable `category'.
6462 (consume_chars): Delete unused variable `category'. Make it work
6463 for non-multibyte case.
1f45f627 6464 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
6465 (saved_coding): Delete unused variable.
6466 (code_conversion_restore): Don't check saved_coding->destination.
6467 (code_conversion_save): New function.
6468 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
6469 instead of record_unwind_protect.
1f45f627 6470 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 6471 (detect_coding_system): Delete unused variable `mask'.
1f45f627 6472 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
6473
6474 * fileio.c (kill_workbuf_unwind): New function.
6475 (Finsert_file_contents): On replacing, call
6476 make_conversion_work_buffer with correct args, and call
6477 record_unwind_protect with the first arg kill_workbuf_unwind.
6478
6479 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
6480
73acf815 64812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6482
1f45f627 6483 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
6484 (fontset_add): Fix for the case that TO is less than TO1.
6485 (Ffontset_info): Don't use fallback fontset on checking the
6486 default fontset.
6487 (dump_fontset): New function for debugging.
6488
6489 * coding.c (Fdefine_coding_system_internal): Fix for the case that
6490 coding_type is Qcharset.
6491
73acf815 64922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6493
6494 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
6495 (map_char_table): Don't inherit the value from the parent on
1f45f627 6496 initializing VAL. Adjust for the above change.
aca7a3d2 6497
73acf815 64982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6499
6500 * coding.c (Qsignature, Qendian): Delete these variables.
6501 (syms_of_coding): Don't initialize them.
6502 (CATEGORY_MASK_UTF_16_AUTO): New macro.
6503 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
6504 detect_info->found.
6505 (decode_coding_utf_16): Don't detect BOM here.
6506 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
6507 is NOT utf_16_without_bom.
6508 (setup_coding_system): For a coding system of type utf-16, check
6509 if the attribute :endian is Qbig or not (not nil or not), and set
6510 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
6511 (detect_coding): If coding type is utf-16 and BOM detection is
6512 required, detect it.
6513 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 6514 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 6515
73acf815 65162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6517
6518 * coding.c (coding_set_source): Fix for the case that the current
6519 buffer is different from coding->src_object.
6520 (decode_coding_object): Don't use the conversion work buffer if
6521 DST_OBJECT is a buffer.
6522
73acf815 65232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6524
6525 * lread.c (read_emacs_mule_char) [len==2]: Index
6526 emacs_mule_charset correctly.
6527
73acf815 65282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6529
6530 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
6531 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 6532 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
6533 treated specially.)
6534 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
6535 (detected_mask): Remove Big5 bits.
6536
73acf815 65372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6538
6539 The following changes are to make the font rescaling facility
6540 compatible with Emacs 21.
6541
1f45f627 6542 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
6543 Vface_resizing_fonts.
6544 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 6545 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
6546 (split_font_name): Set font->rescale_ratio.
6547 (better_font_p): Pay attention to font->rescale_ratio.
6548 (build_scalable_font_name): Likewise. Change RESX, and RESY
6549 fields.
1f45f627 6550 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 6551
73acf815 65522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6553
6554 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
6555 (Qutf_16_le): Remove these variables.
6556 (syms_of_coding): Don't DEFSYM them.
6557 (decode_coding_utf_16): Fix handling of BOM.
6558 (encode_coding_utf_16): Fix handling of BOM.
6559
73acf815 65602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6561
6562 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 6563 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 6564
73acf815 65652008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6566
6567 * coding.c (Fcheck_coding_systems_region): Fix type errors.
6568
73acf815 65692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6570
6571 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6572 and fix C types.
6573
73acf815 65742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6575
6576 * xdisp.c (SKIP_GLYPHS): New macro.
6577 (set_cursor_from_row): Pay attention to string display properties.
6578
6579 * category.c (copy_category_entry): Fix for the case that RANGE
6580 is an integer.
6581
6582 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
6583
1f45f627 6584 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 6585
73acf815 65862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6587
6588 * charset.c (Fcharset_id_internal): New function.
6589 (syms_of_charset): Defsubr it.
6590
6591 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
6592 with the last arg charset_list acquired from coding.
6593 (Fdefine_coding_system_internal): For ccl-based coding system, fix
6594 the attribute coding_attr_ccl_valids.
6595
6596 * coding.h (enum define_coding_ccl_arg_index): Set the first
6597 member coding_arg_ccl_decoder to coding_arg_max.
6598
1f45f627 6599 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
6600
6601 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
6602 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
6603 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
6604 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
6605 last arg Qnil.
aca7a3d2 6606
73acf815 66072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6608
6609 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
6610 call encode_char.
6611
1f45f627 6612 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 6613
73acf815 66142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6615
1f45f627 6616 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 6617
73acf815 66182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6619
6620 * dispextern.h (check_face_attributes, generate_ascii_font_name)
6621 (font_name_registry): Don't extern them.
1f45f627 6622 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
6623
6624 * fontset.h (Qfontset): Don't extern it.
6625 (new_fontset_from_font_name): Extern it.
6626
6627 * fontset.c: Give 8 extra slots to fontset objects.
6628 (Qfontset_info): New variable.
6629 (syms_of_fontset): Defsym it.
6630 (FONTSET_FALLBACK): New macro.
6631 (fontset_face): Try also the default fontset.
1f45f627
GM
6632 (make_fontset): Realize a fallback fontset from the default fontset.
6633 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
6634 using split_font_name_into_vector and build_font_name_from_vector.
6635 (Fset_fontset_font): Access the elements of font_spec by enum
6636 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
6637 name by using split_font_name_into_vector.
6638 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
6639 generate a proper font name from the fontset name. Update
6640 Vfontset_alias_alist.
6641 (n_auto_fontsets): New variable.
6642 (new_fontset_from_font_name): New function.
6643 (Ffont_info): Store the information about fonts generated from the
1f45f627 6644 default fontset in the first extra slot of the returned char-table.
aca7a3d2 6645
1f45f627
GM
6646 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
6647 (font_name_registry): Delete function.
aca7a3d2
MB
6648 (split_font_name_into_vector): New function.
6649 (build_font_name_from_vector): New function.
1f45f627 6650 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
6651 (choose_face_font): If we are choosing an ASCII font, and ATTRS
6652 specifies an explicit font name, return the name as is. Make a
6653 list of registy names.
6654
1f45f627 6655 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
6656 of x_new_fontset.
6657 (Fx_create_frame): Don't call x_new_fontset here. Just use
6658 x_list_fonts to check the existence of fonts.
6659
1f45f627 6660 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
6661
6662 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
6663 string. Use new_fontset_from_font_name to create a fontset from a
6664 font name.
6665
1c8658b9
GM
66662008-02-01 Kenichi Handa <handa@m17n.org>
6667
6668 * syntax.c (Vfind_word_boundary_function_table): New name for
6669 Vnext_word_boundary_function_table.
6670 (find-word-boundary-function-table): New name for
6671 next-word-boundary-function-table.
6672
73acf815 66732008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6674
6675 * Makefile.in: Fix some dependencies.
6676
6677 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
6678 set it to nil before returning.
6679
6680 * composite.c (update_compositions): Fix type error.
6681
6682 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
6683
73acf815 66842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6685
6686 * xterm.c (x_new_font): Optimize for the case that the font is
6687 already set for the frame.
6688
73acf815 66892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6690
6691 * chartab.c (char_table_ascii): Check if the char table contents
6692 is sub-char-table or not.
4c4475a8
GM
6693 (char_table_set, char_table_set_range): Fix argument to
6694 char_table_ascii.
aca7a3d2
MB
6695
6696 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
6697 (detect_coding_utf_8, detect_coding_utf_16)
6698 (detect_coding_emacs_mule, detect_coding_iso_2022)
6699 (detect_coding_sjis, detect_coding_big5)
6700 (detect_coding_ccl, detect_coding_charset): Change argument MASK
6701 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 6702 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
6703 (MAX_ANNOTATION_LENGTH): New macro.
6704 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
6705 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
6706 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 6707 (ADD_CHARSET_DATA): New macro.
1f45f627 6708 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
6709 (decode_coding_emacs_mule, decode_coding_iso_2022)
6710 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6711 Produce charset annotation data in coding->charbuf.
6712 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
6713 to charset annotation data in coding->charbuf.
6714 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
6715 coding->common_flags if the coding system is iso-2022 based and
6716 uses designation.
1f45f627 6717 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
6718 (produce_charset): New function.
6719 (produce_annotation): Handle charset annotation.
6720 (handle_composition_annotation, handle_charset_annotation): New
6721 functions.
6722 (consume_chars): Handle charset annotation. Utilize the above two
6723 functions.
6724 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
6725 buffer, get the deleted text as a string and set
6726 coding->src_object to that string.
6727 (detect_coding, detect_coding_system): Use the new struct
6728 coding_detection_info.
6729
6730 * coding.h (struct coding_detection_info): New structure.
1f45f627 6731 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
6732 (CODING_ANNOTATE_CHARSET_MASK): New macro.
6733
73acf815 67342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6735
6736 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
6737
73acf815 67382008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6739
1f45f627 6740 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
6741 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
6742 to new local and nullify apropos_accumulate before returning.
6743 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
6744
73acf815 67452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6746
6747 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
6748 correctly.
6749
73acf815 67502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6751
6752 * fns.c (Flanginfo): Call synchronize_system_time_locale.
6753
73acf815 67542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6755
6756 The following changes are to make character composition happen
6757 automatically on displaying.
6758
2a2e8de7 6759 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 6760
1f45f627
GM
6761 * composite.h (Qauto_composed, Vauto_composition_function)
6762 (Qauto_composition_function): Extern them.
aca7a3d2 6763
1f45f627
GM
6764 * composite.c (Vcomposition_function_table)
6765 (Qcomposition_function_table): Delete variables.
6766 (Qauto_composed, Vauto_composition_function)
6767 (Qauto_composition_function): New variables.
aca7a3d2
MB
6768 (run_composition_function): Don't call
6769 compose-chars-after-function.
6770 (update_compositions): Clear `auto-composed' text property.
6771 (compose_chars_in_text): Delete this function.
6772 (syms_of_composite): Staticpro Qauto_composed and
6773 Qauto_composition_function. Declare Vauto_composition_function as
6774 a Lisp variable.
6775
6776 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
6777
6778 * xdisp.c (it_props): Add an entry for Qauto_composed.
6779 (handle_auto_composed_prop): New function.
6780
6781 * xselect.c (selection_data_to_lisp_data): Don't call
6782 compose_chars_in_text.
6783
73acf815 67842008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6785
6786 * keyboard.c (read_char): Modify checking around use of
6787 Vkeyboard_translate_table.
6788
6789 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6790 and fix C types.
6791
73acf815 67922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6793
4c4475a8
GM
6794 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
6795 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6796 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 6797 the case that the last byte is '\r' correctly.
1f45f627
GM
6798 (decode_coding): Flush out the unprocessed data correctly.
6799 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 6800
73acf815 68012008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6802
6803 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
6804 XK_ISO... case.
6805 (xaw_scroll_callback): Revert last change.
6806
73acf815 68072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6808
1f45f627 6809 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 6810
73acf815 68112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6812
6813 * xfaces.c (Vface_resizing_fonts): New variable.
6814 (struct font_name): New member `resizing_ratio'.
6815 (font_resizing_ratio): New function.
6816 (split_font_name): Set font->resizing_ratio.
6817 (better_font_p): Pay attention to font->resizing_ratio.
6818 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
6819 RESX, and RESY fields.
6820 (try_alternative_families): Try scalable fonts if
6821 Vscalable_fonts_allowed is not Qt.
6822 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
6823
73acf815 68242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6825
6826 * xterm.c (xaw_scroll_callback): Cast correctly.
6827
73acf815 68282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6829
6830 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
6831 (lispy_kana_keys): Comment out.
6832 (make_lispy_event) [XK_kana_A]: Comment out.
6833
6834 * xterm.c (xaw_scroll_callback): Cast call_data.
6835 (XTread_socket): Deal with ASCII keysyms.
6836 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
6837
73acf815 68382008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6839
6840 * xterm.c (Vx_keysym_table): New.
6841 (syms_of_xterm): Initialize it.
6842 (XTread_socket): Use it.
6843 From head: Eliminate incorrect optimization that tried to avoid
6844 decoding the output of X*LookupString.
6845 (x_get_font_repertory): Delete charset declaration.
6846
73acf815 68472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6848
1f45f627
GM
6849 * coding.c (detect_coding_charset): If only ASCII bytes are found,
6850 return 0.
aca7a3d2
MB
6851 (Fdefine_coding_system_internal): Setup
6852 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
6853
73acf815 68542008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6855
6856 * coding.c (Fcheck_coding_system): Doc fix.
6857
6858 * editfns.c (Finsert_byte): Return a proper value.
6859
73acf815 68602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6861
6862 * coding.c (decode_coding): Fix args to translate_chars. Pay
6863 attention to Vstandard_translation_table_for_decode.
6864 (encode_coding): Fix args to translate_chars. Pay attention to
6865 Vstandard_translation_table_for_encode.
6866
6867 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
6868 SINGLE_BYTE_CHAR_P.
6869
6870 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
6871 not by SINGLE_BYTE_CHAR_P.
6872
6873 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
6874 SINGLE_BYTE_CHAR_P.
6875
6876 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
6877 SINGLE_BYTE_CHAR_P.
6878
6879 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
6880 by SINGLE_BYTE_CHAR_P.
6881
6882 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
6883 SINGLE_BYTE_CHAR_P.
6884
73acf815 68852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6886
6887 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
6888
73acf815 68892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6890
6891 * fns.c (Flanginfo): Fix typo.
6892
6893 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
6894
73acf815 68952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6896
4c4475a8
GM
6897 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
6898 (detect_coding_emacs_mule, detect_coding_iso_2022)
6899 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
6900 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 6901 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 6902 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 6903 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 6904
73acf815 69052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6906
1f45f627
GM
6907 * character.c (char_string): Rename from
6908 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
6909 (string_char): Rename from string_char.
aca7a3d2 6910
4c4475a8
GM
6911 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
6912 if C is greater than MAX_3_BYTE_CHAR.
6913 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
6914 string_char instead of string_char_with_unification.
aca7a3d2 6915
73acf815 69162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6917
6918 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
6919
73acf815 69202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6921
1f45f627 6922 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
6923
6924 * regex.c (re_search_2): Fix for the case of unibyte buffer.
6925
73acf815 69262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6927
6928 * charset.c (define_charset_internal): Rename `supprementary'.
6929
6930 * Makefile.in (lisp, shortlisp): Remove latin-N.
6931
73acf815 69322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6933
6934 * xfns.c (x_window, x_window): Use use_xim.
6935
6936 * xterm.c (use_xim): Initialize.
6937 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6938 (x_term_init): Maybe set use_xim.
6939
6940 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6941
73acf815 69422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6943
6944 * search.c (search_buffer): Fix case-fold-search of multibyte
6945 characters.
6946 (boyer_moore): Rename the last argument to char_high_bits.
6947
73acf815 69482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6949
6950 * xdisp.c (display_string): Fix for the case of zero width glyph.
6951
6952 * xfns.c (x_set_font): Change the error message of the case that
6953 x_new_fontset returns Qt.
6954
6955 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
6956 (Finternal_set_lisp_face_attribute): Use signal_error for the
6957 error of invalid fontset.
6958
6959 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
6960 fontset, return Qt.
6961
73acf815 69622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6963
aca7a3d2
MB
6964 * unexelf.c (unexec): Make .got handling not SGI-specific.
6965
6966 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
6967
6968 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
6969
6970 * keyboard.c (read_key_sequence): Fix type error.
6971
6972 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
6973 type error.
6974
6975 * fontset.c (fontset_add): Return Lisp_Object.
6976
73acf815 69772008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6978
6979 * charset.h (charset_ordered_list_tick): Declare extern.
6980
73acf815 69812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6982
73acf815 6983 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
6984 for handling syntax, category, and case conversion for unibyte
6985 characters by converting them to multibyte on the fly. With these
6986 changes, we don't have to setup syntax and case tables for unibyte
6987 characters in each language environment.
6988
6989 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
6990 multibyte if necessary.
6991
6992 * bytecode.c (Fbyte_code): Likewise.
6993
6994 * character.h (LEADING_CODE_LATIN_1_MIN)
6995 (LEADING_CODE_LATIN_1_MAX): New macros.
6996 (unibyte_to_multibyte_table): Extern it.
6997 (unibyte_char_to_multibyte): New macro.
6998 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
6999 (CHAR_LEADING_CODE): New macro.
7000 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7001
7002 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 7003 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
7004 (multibyte_char_to_unibyte): If C is an eight-bit character,
7005 convert it to the corresponding byte value.
7006
7007 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7008 not 1, singals an error. Update the elements of
7009 unibyte_to_multibyte_table.
7010 (init_charset_once): Initialize unibyte_to_multibyte_table.
7011 (syms_of_charset): Define the charset `iso-8859-1'.
7012
aca7a3d2
MB
7013 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7014 as is without converting it to unibyte. In a unibyte buffer,
7015 convert C to multibyte before checking the syntax.
7016
1f45f627 7017 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
7018
7019 * minibuf.c (Fminibuffer_complete_word): Use the macro
7020 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7021
7022 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7023
7024 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7025 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7026 that is zero, convert an eight-bit char to multibyte.
7027 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7028 non-emacs case.
7029 (PATFETCH): Convert an eight-bit char to multibyte.
7030 (HANDLE_UNIBYTE_RANGE): New macro.
7031 (regex_compile): Setup the compiled pattern for multibyte chars
7032 even if the given regex string is unibyte. Use PATFETCH_RAW
7033 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 7034 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 7035 only for ASCII chars.
1f45f627 7036 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
7037 is multibyte.
7038 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7039 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 7040 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
7041 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7042 multibyte always 1.
7043 (re_search_2): In emacs, set the locale variable multibyte to 1,
7044 otherwise to 0. New local variable target_multibyte. Check it
7045 to decide the multibyteness of STR1 and STR2. If
7046 target_multibyte is zero, convert unibyte chars to multibyte
7047 before translating and checking fastmap.
7048 (TARGET_CHAR_AND_LENGTH): New macro.
7049 (re_match_2_internal): In emacs, set the locale variable multibyte
7050 to 1, otherwise to 0. New local variable target_multibyte. Check
7051 it to decide the multibyteness of STR1 and STR2. Use
7052 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7053 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 7054 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
7055 target_multibyte, not with multibyte.
7056 <begline>: Declare the local variable C as `unsigned'.
7057 (bcmp_translate): Change the last arg name to target_multibyte.
7058
7059 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7060 the regexp pattern and the matching target. Set cp->buf.multibyte
7061 to the multibyteness of the regexp pattern. Set
1f45f627 7062 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
7063 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7064 FETCH_STRING_CHAR_ADVANCE.
7065 (Freplace_match): Convert unibyte chars to multibyte.
7066
4c4475a8
GM
7067 * syntax.c (char_quoted, back_comment, scan_words)
7068 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7069 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 7070 unibyte chars to multibyte.
1f45f627
GM
7071 (skip_chars): Delete the arg syntaxp, and move the code for
7072 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
7073 Fix the case that the multibyteness of STRING and the current
7074 buffer doesn't match.
7075 (skip_syntaxes): New function.
7076 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7077 SINGLE_BYTE_CHAR_P.
aca7a3d2 7078
73acf815 70792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7080
7081 * xfaces.c (QCfontset): New variable.
7082 (LFACE_FONTSET): New macro.
7083 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7084 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
7085 (Finternal_set_lisp_face_attribute)
7086 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
7087 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7088 check also LFACE_FONTSET_INDEX.
7089 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7090 attrs[LFACE_FONT_INDEX].
7091 (syms_of_xfaces): Intern and staticpro QCfontset.
7092
7093 * dispextern.h (enum lface_attribute_index): New member
7094 LFACE_FONTSET_INDEX.
7095
7096 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7097
73acf815 70982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7099
7100 * coding.c (coding_set_destination): Fix coding->destination for
7101 the case converting a region.
7102 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7103 (encode_coding_object): Fix coding->dst_pos and
7104 coding->dst_pos_byte for the case converting a region.
7105
7106 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7107
7108 * character.h (BYTE8_STRING): New macro.
7109
7110 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7111
73acf815 71122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7113
7114 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7115 characters by octal form.
7116
7117 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7118
1f45f627 7119 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
7120 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7121 _fetch_multibyte_char_len.
aca7a3d2
MB
7122 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7123
1f45f627 7124 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 7125
1f45f627 7126 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 7127 the case conversion change the byte length.
1f45f627 7128 (casify_region): Likewise.
aca7a3d2 7129
1f45f627 7130 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 7131
1f45f627 7132 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
7133 (syms_of_character): Setup Vprintable_chars.
7134
7135 * editfns.c (Fchar_equal): Fix for the unibyte case.
7136 (Finsert_byte): New function.
7137 (syms_of_editfns): Defsubr it.
7138
7139 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7140 of direct code 0x3ffff.
7141
7142 * search.c (Freplace_match): Fix for the unibyte case.
7143
73acf815 71442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7145
7146 * lread.c (safe_to_load_p): Fix the logic.
7147
7148 * syntax.c (scan_words): Don't treat characters belonging to
7149 different scripts as constituting a word.
7150
7151 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7152
1f45f627 7153 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
7154
7155 * emacs.c (main): In the case of --unibyte, instead of aborting on
7156 finding non-empty buffer, make it unibyte.
7157
73acf815 71582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7159
7160 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7161 to create a fontset.
7162
73acf815 71632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7164
7165 * character.c (Funibyte_char_to_multibyte): Doc fix.
7166
7167 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7168
73acf815 71692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7170
7171 * fontset.c (fontset_add): Make the type `int'.
7172 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7173
4c4475a8
GM
7174 * character.c (unibyte_char_to_multibyte)
7175 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 7176 charset_unibyte, not charset_primary.
aca7a3d2 7177
1f45f627 7178 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 7179
1f45f627
GM
7180 * charset.c (charset_unibyte): Rename from charset_primary.
7181 (Funibyte_charset): Rename from Fprimary_charset.
7182 (Fset_unibyte_charset): Rename from Fset_primary_charset.
7183 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
7184
7185 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7186 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7187 it->multibyte_p is zero.
7188
7189 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 7190 Delete extern.
aca7a3d2 7191
73acf815 71922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7193
7194 * coding.c (Fdefine_coding_system_internal): Fix category setting
7195 for a coding system of type iso-2022.
7196
73acf815 71972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7198
1f45f627 7199 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 7200
73acf815 72012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7202
7203 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
7204 (next-word-boundary-function-table): Declare it as a Lisp variable
7205 in syms_of_syntax.
aca7a3d2
MB
7206 (scan_words): Call functions in Vnext_word_boundary_function_table
7207 if any.
7208
7209 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
7210
7211 * fontset.c (fs_load_font): If fontp->charset is not negative,
7212 return fontp without setting its members.
7213
73acf815 72142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7215
aca7a3d2
MB
7216 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
7217
7218 * m/sparc.h (HAVE_ALLOCA): Delete.
7219
7220 * s/irix6-5.h: Don't include strings.h.
7221 (bcopy, bzero, bcmp): Don't undef.
7222
7223 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
7224
7225 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
7226 (TIOCSIGSEND): Don't test IRIX6.
7227 (bcopy, bzero, bcmp): Define conditionally.
7228
73acf815 72292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7230
7231 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 7232 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
7233 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
7234
7235 * callproc.c (Fcall_process): Don't call insert_1_both directly if
7236 we are inserting a process output into a multibyte buffer.
7237
7238 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
7239 multibyte_char_to_unibyte.
7240
7241 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
7242 by the primary charset, make it eight-bit char.
7243 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
7244
1f45f627
GM
7245 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
7246 (charset_8_bit__control, charset_8_bit_graphic)
7247 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
7248 (define_charset_internal): New function.
7249 (syms_of_charset): Call define_charset_internal for pre-defined
7250 charsets.
7251
7252 * charset.h (charset_8_bit): Extern it.
7253
1f45f627 7254 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
7255 of Fset_buffer_multibyte.
7256 (encode_coding_raw_text): Increment p0 in the loop.
7257
1f45f627 7258 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 7259
1f45f627 7260 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
7261 for the change of Fset_buffer_multibyte.
7262
7263 * fns.c (Fstring_to_multibyte): New function.
7264 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
7265
73acf815 72662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7267
7268 * xfns.c (x_put_x_image): Declare args.
7269
1f45f627 7270 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
7271 (try_font_list): Declare an arg.
7272
7273 * xdisp.c (message2_nolog, set_message): Declare an arg.
7274
7275 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
7276
7277 * syntax.c (scan_sexps_forward): Declare an arg.
7278
7279 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7280 Declare an arg.
7281
7282 * lisp.h (Fnew_fontset): Declare.
7283
7284 * keymap.c (push_key_description): Call CHARACTERP correctly.
7285
1f45f627 7286 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
7287 (face_for_char): Delete unused vars.
7288 (Fset_fontset_font): Doc fix. Delete unused vars.
7289
7290 * doc.c (Fsubstitute_command_keys): Delete unused vars.
7291
7292 * composite.c (update_compositions): Declare arg.
7293
7294 * cm.c (calccost, cmgoto): Declare args.
7295
7296 * charset.c: Remove `emacs' conditional. Doc fixes.
7297 (map_char_table_for_charset): Declare.
7298
1f45f627 7299 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 7300
1f45f627 7301 * ccl.c: Remove `emacs' conditional.
aca7a3d2 7302
73acf815 73032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7304
7305 The following changes are to allow specifying multiple font
7306 patterns for a character range (specified by script or charset).
7307
7308 * Makefile.in (abbrev.o): Depend on syntax.h.
7309 (xfaces.o): Depend on charset.h.
7310
7311 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
7312 SINGLE_BYTE_CHAR_P.
7313
7314 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
7315
7316 * character.h (Vchar_script_table): Extern it.
7317
1f45f627 7318 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
7319 (Vchar_script_table, Qchar_script_table): New variable.
7320 (syms_of_character): Declare Vchar_script_table as a lisp variable
7321 and initialize it.
7322
1f45f627 7323 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
7324 have property char-table-extra-slots, make no extra slot.
7325
1f45f627 7326 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
7327 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
7328 SINGLE_BYTE_CHAR_P.
1f45f627
GM
7329 (choose_face_font, lookup_non_ascii_face, font_name_registry):
7330 Add prototypes.
7331 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
7332 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7333
7334 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 7335 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
7336 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
7337
7338 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 7339 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
7340 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
7341 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
7342 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
7343 (fontset_ref_and_range, fontset_add, reorder_font_vector)
7344 (load_font_get_repertory): New functions.
1f45f627 7345 (fontset_set): Delete.
aca7a3d2 7346 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 7347 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
7348 (free_face_fontset): Use ASET istead of AREF (X) = Y.
7349 (face_for_char): Don't call lookup_face.
7350 (make_fontset_for_ascii_face): New arg FACE.
7351 (fs_load_font): New arg CHARSET_ID. Don't check
7352 Vfont_encoding_alist here.
7353 (find_font_encoding): New function.
7354 (list_fontsets): Use STRINGP, not ! NILP.
7355 (accumulate_script_ranges): New function.
7356 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
7357 re-written to handle new fontset structure.
7358 (Ffontset_font): Return a copy of element.
7359 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
7360 docstring of font-encoding-alist.
7361
7362 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
7363 (Fset_fotset_font): Fix arguments to 5.
7364
1f45f627 7365 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
7366
7367 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
7368 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 7369 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
7370 lookup_named_face.
7371
7372 * xfaces.c: Include charset.h.
1f45f627
GM
7373 (load_face_font): Delete argument C. Change caller.
7374 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7375 (font_name_registry): New function.
7376 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 7377 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
7378 Lookup only ascii faces.
7379 (lookup_non_ascii_face): New function.
1f45f627
GM
7380 (lookup_named_face): Delete argument C. Change caller.
7381 (lookup_derived_face): Delete argument C. Change caller.
7382 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 7383 a string, just call font_list with it.
1f45f627
GM
7384 (choose_face_font): Delete arguments FACE and C. New arg
7385 FONT_SPEC. Change caller.
4c4475a8
GM
7386 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
7387 Change caller.
aca7a3d2
MB
7388 (realize_non_ascii_face): New function.
7389 (realize_x_face): Call load_face_font here.
1f45f627 7390 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
7391 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
7392 get a face ID.
7393 (dump_realized_face): Don't print charset of FACE.
7394
7395 * xfns.c (x_set_font): Always call x_new_fontset and
7396 store_frame_parameter.
7397 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 7398 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
7399
7400 * xterm.h (x_get_font_repertory): Extern it.
7401
7402 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7403 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7404 it->multibyte_p is zero.
7405 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7406 (x_new_fontset): If FONTSETNAME doesn't match any existing
7407 fontsets, create a new one.
7408 (x_get_font_repertory): New function.
7409
73acf815 74102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7411
7412 * coding.c (Ffind_coding_systems_region_internal): Detect an
7413 ASCII only string correctly.
7414
7415 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
7416 version is 0.
7417
73acf815 74182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7419
7420 * lread.c: Include "coding.h".
1f45f627
GM
7421 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
7422 (load_each_byte, unread_char): New variables.
7423 (readchar_backlog): Delete.
aca7a3d2
MB
7424 (readchar): Return a character unless load_each_byte is nonzero.
7425 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
7426 cons. If unread_char is not -1, simply return it.
7427 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
7428 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
7429 (read_multibyte): Delete.
aca7a3d2
MB
7430 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
7431 (read_emacs_mule_char): New functions.
7432 (Fload): Even if the file doesn't have the extention ".elc", if
7433 safe_to_load_p returns a positive version number, assume that the
7434 file contains bytecompiled code. If the version is less than 22,
7435 load the file while decoding multibyte sequences by emacs-mule.
7436 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
7437 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
7438 (Fread_from_string): Pay attention to the case that STREAM is a cons.
7439 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
7440 (read1): Set load_each_byte to 1 temporarily while handling
7441 #@NUMBER. Don't call read_multibyte.
7442 (read_vector): Call Fread with a cons. If readcharfun is
7443 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 7444 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
7445 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
7446 and Qload_force_doc_strings.
7447
73acf815 74482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7449
7450 * xdisp.c (face_before_or_after_it_pos): Call
7451 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
7452
73acf815 74532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7454
7455 * character.h (TRAILING_CODE_P): New macro.
1f45f627 7456 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
7457 (string_char_with_unification): Fix prototype.
7458 (Vscript_alist): Extern it.
7459
7460 * character.c (Vscript_alist): New variable.
4c4475a8
GM
7461 (string_char_with_unification, str_as_unibyte)
7462 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
7463 (syms_of_character): Declare script-alist as a Lisp variable.
7464
7465 * charset.h (Vcharset_ordered_list): Extern it.
7466 (charset_ordered_list_tick): Extern it.
7467 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
7468 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
7469 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
7470 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros
1f45f627 7471 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
7472
7473 * charset.c (charset_ordered_list_tick): New variable.
7474 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
7475 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
7476 deunify intead of unify a charset.
7477 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
7478 (find_charsets_in_text): Add `const' to arguemnts and local variables.
7479 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
7480 detecting of invalid code.
7481 (Fset_charset_priority): Increment charset_ordered_list_tick.
7482 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
7483 and TO_CODE.
7484
7485 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
7486 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
7487 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
7488 (decode_coding_ccl, consume_chars)
7489 (Ffind_coding_systems_region_internal)
7490 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
7491
7492 * print.c (print_object): Use octal form for printing the
7493 contents of a bool vector.
7494
73acf815 74952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7496
7497 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
7498 <version == 20>: Refuse to load.
7499
73acf815 75002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7501
7502 * fns.c: Move coding.h.
7503 (Qcodeset, Qdays, Qmonths): New.
7504 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 7505 (Flocale_codeset): Delete.
aca7a3d2 7506 (Flanginfo): New function.
1f45f627 7507 (syms_of_fns): Change accordingly.
aca7a3d2
MB
7508
7509 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
7510
73acf815 75112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7512
7513 * casetab.c (init_casetab_once, init_casetab_once): Fix
7514 CHAR_TABLE_SET call.
7515
7516 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
7517
7518 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
7519
7520 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
7521 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
7522 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
7523
7524 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
7525
7526 * coding.c (ENCODE_DESIGNATION, decode_eol)
7527 (make_conversion_work_buffer, code_conversion_restore)
7528 (Fdefine_coding_system_internal): Convert Lisp types.
7529 (code_conversion_restore): Use EQ, not ==.
7530 (Fencode_coding_string): Fix code_convert_string call.
7531
7532 * coding.h (code_convert_region): Fix prototype.
7533
1f45f627 7534 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
7535
7536 * fontset.c (fontset_ref, fontset_set, fs_load_font)
7537 (Ffontset_info): Convert Lisp types.
7538
7539 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
7540
7541 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
7542
7543 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
7544
7545 * chartab.c: Include "...h", not <...h> in some cases.
7546
7547 * callproc.c (Fcall_process): Remove unused variables.
7548
73acf815 75492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7550
7551 * coding.c (Fset_coding_system_priority): Allow null arg list.
7552
73acf815 75532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7554
7555 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7556 (Fself_insert_and_exit): Use CHARACTERP.
7557
7558 * callproc.c (Fcall_process): Remove unused vars.
7559
7560 * xterm.c (XTread_socket): Add extra dead keysyms.
7561
7562 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
7563
7564 * dispextern.h: Remove prototypes for redraw_frame,
7565 redraw_garbaged_frames.
7566
7567 * cmds.c (Fself_insert_command): Use CHARACTERP.
7568
7569 * chartab.c (make_sub_char_table): Remove unused var.
7570 (Fset_char_table_default, Fmap_char_table): Doc fix.
7571
7572 * keymap.c (access_keymap): Remove generic char code.
7573 (push_key_description): Use CHARACTERP.
7574
73acf815 75752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7576
7577 * charset.c: Doc fixes.
7578 (Funify_charset): Extra checking.
7579
73acf815 75802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7581
7582 * lread.c: Remove some unused variables.
7583 (safe_to_load_p): If safe, return the magic number version byte.
7584 (Fload): Maybe use load-with-code-conversion.
7585
73acf815 75862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7587
7588 * category.c (Fmodify_category_entry): Don't modify the contents
7589 of category_set for characters out of the range. Avoid
7590 unnecessary modification.
7591
1f45f627 7592 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
7593 Vchar_unify_table. The default value of the table is now nil.
7594
7595 * character.c (syms_of_character): Setup Vchar_width_table for
7596 eight-bit-control and raw-byte chars.
7597
7598 * charset.h (enum define_charset_arg_index): Delete
7599 charset_arg_parents and add charset_arg_subset and
7600 charset_arg_superset.
7601 (enum charset_attr_index): Delete charset_parents and add
7602 charset_subset and charset_superset.
7603 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
7604 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 7605 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
7606 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
7607 (CHARSET_SUPERSET): New macros.
7608 (charset_work): Extern it.
7609 (ENCODE_CHAR): Use charset_work.
1f45f627 7610 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
7611 (map_charset_chars): Extern it.
7612
7613 * charset.c (load_charset_map): Set the default value of encoder
7614 and deunifier char-tables to nil.
1f45f627 7615 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
7616 map_char_table_for_charset instead of map_char_table.
7617 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 7618 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
7619 `define-charset' (:parents -> :subset or :superset).
7620 (charset_work): New variable.
4c4475a8
GM
7621 (encode_char, syms_of_charset): Adjust for the change of
7622 Fdefine_charset_internal.
aca7a3d2
MB
7623 (Ffind_charset_string): Setup the vector `charsets' correctly.
7624
1f45f627 7625 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 7626 the previous change.
1f45f627 7627 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
7628 (map_sub_char_table_for_charset): New function.
7629 (map_char_table_for_charset): New function.
7630
7631 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 7632 (describe_char_table): Delete.
aca7a3d2 7633
1f45f627 7634 * lisp.h (map_charset_chars): Delete.
aca7a3d2 7635
73acf815 76362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7637
7638 * fns.c (count_combining): Comment out (unused).
7639 (Flocale_codeset): New.
7640 (syms_of_fns): Defsubr it.
7641
7642 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 7643 (size_t): Remove.
aca7a3d2 7644
73acf815 76452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7646
6f69e89b 7647 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 7648
73acf815 76492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7650
7651 * character.c (syms_of_character): Set the default value of
7652 Vprintable_chars to Qnil.
7653
73acf815 76542008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7655
7656 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
7657
73acf815 76582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7659
7660 * charset.c (load_charset_map): Handle the case that from < to
7661 correctly.
7662
4c4475a8
GM
7663 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
7664 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
7665 Pay attention to raw-8-bit chars.
aca7a3d2 7666
73acf815 76672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7668
4c4475a8
GM
7669 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
7670 It is not bytecompiled now.
aca7a3d2
MB
7671
7672 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
7673 (charset_jisx0208): New variables.
7674 (Fdefine_charset_internal): Setup them if appropriate.
7675 (init_charset_once): Initialize them to -1.
7676
1f45f627
GM
7677 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
7678 (charset_jisx0208): Extern them.
aca7a3d2
MB
7679
7680 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro
7681 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
7682 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
7683 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
7684 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
7685 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
7686 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
7687 (encode_coding_iso_2022): Change the 1st arg to
7688 ENCODE_ISO_CHARACTER to a variable.
7689
73acf815 76902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7691
7692 * charset.h (enum define_charset_arg_index): New enums
7693 charset_arg_min_code and charset_arg_max_code.
7694 (struct charset): New member char_index_offset.
7695
4c4475a8
GM
7696 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
7697 Take charset->char_index_offset into account.
aca7a3d2
MB
7698 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
7699 args[charset_arg_max_code]. Setup charset.char_index_offset.
7700 (syms_of_charset): Fix args to Fdefine_charset_internal.
7701
73acf815 77022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7703
7704 * coding.c (decode_coding_utf_8): Reject overlong sequences.
7705
73acf815 77062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7707
7708 * coding.c: Doc fixes.
7709 (Fcoding_system_aliases): Fix return value.
7710 (Qmac): Remove (duplicated) definition.
7711
73acf815 77122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7713
7714 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
7715 functions.
7716
7717 * character.c (Fstring): Doc fix.
7718
7719 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
7720
7721 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
7722 ids.
7723 (font-encoding-alist): Doc fix.
7724
73acf815 77252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7726
7727 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 7728 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
7729
7730 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
7731 for K&R.
7732
7733 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
7734
7735 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 7736 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 7737
1f45f627 7738 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
7739
7740 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
7741
73acf815 77422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7743
7744 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
7745
1f45f627 7746 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 7747
2a2e8de7 77482008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
7749
7750 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
7751
1f45f627 7752 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 7753
73acf815 77542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7755
4c4475a8 7756 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 7757 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 7758
73acf815 77592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7760
1f45f627 7761 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
7762 Fdefine_coding_system_internal.
7763 (Fdefine_coding_system_internal): For a coding system of
7764 `charset' type, store a list of charset IDs in
7765 `charset_attr_charset_valids' element of coding attributes.
7766
73acf815 77672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7768
7769 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
7770 (emacs_mule_char): New arg src. Delete arg `composition'. Change
7771 caller. Handle 2-byte and 3-byte charsets correctly.
7772 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
7773 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
7774 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
7775 (DECODE_EMACS_MULE_21_COMPOSITION): Call
7776 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
7777 sequence.
7778 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 7779 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
7780 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
7781 and alt&rule composition.
7782 (decode_coding_iso_2022): Handle composition correctly.
7783 (init_coding_once): Setup emacs_mule_bytes for private charsets.
7784
7785 * charset.c (Fdefine_charset_internal): Fix bug for the case of
7786 re-defining a charset. If the charset has :emacs-mule-id, setup
7787 emacs_mule_bytes.
1f45f627 7788 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 7789
73acf815 77902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7791
4c4475a8
GM
7792 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
7793 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
7794 encoding, produce a character specified by
7795 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 7796
73acf815 77972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7798
7799 * xterm.c (XSetIMValues): Declare.
7800
7801 * process.c: Conditionally include sys/wait.h, pty.h.
7802
1f45f627 7803 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 7804
1f45f627 7805 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
7806
7807 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
7808
7809 * fontset.c (Fclear_face_cache): Declare.
1f45f627 7810 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
7811 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
7812 variables.
7813
7814 * character.h (string_escape_byte8): Declare.
7815
7816 * charset.c (load_charset_map, load_charset_map_from_file): Remove
7817 unused vars.
7818 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
7819 (Fmap_charset_chars): Doc fix.
7820
1f45f627 7821 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
7822 (Fset_coding_system_priority, Fset_coding_system_priority)
7823 (Fdefine_coding_system_internal): Doc fix.
7824
73acf815 78252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7826
7827 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
7828
73acf815 78292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7830
7831 * character.c (string_escape_byte8): Make multibyte string with
7832 correct size.
7833
7834 * charset.c (Fmake_char): Delete unnecessary code.
7835
73acf815 78362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7837
7838 * xfns.c (x_encode_text): Allocate coding.destination here, and
7839 call encode_coding_object with dst_object Qnil.
7840
7841 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
7842 multibyte form correctly.
7843
7844 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
7845 against Vfont_encoding_alist.
7846
7847 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
7848 handling of charset list.
7849 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
7850 (decode_coding_object): Move point to coding->dst_pos before
7851 calling post-read-conversion function.
7852 (encode_coding_object): Give correct arguments to
7853 pre-write-conversion. Ignore the return value of
7854 pre-write-conversion function. Pay attention to the case that
7855 pre-write-conversion changes the current buffer. If dst_object is
7856 Qt, even if coding->src_bytes is zero, allocate at least one byte
7857 to coding->destination.
7858
7859 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
7860
7861 * charset.c (Fmake_char): Make it more backward compatible.
7862 (Fmap_charset_chars): Fix docstring.
7863
73acf815 78642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7865
7866 * coding.c: Doc fixes.
7867 (Fdefine_coding_system_alias): Use names, not symbols, in
7868 coding-system-alist.
7869
73acf815 78702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7871
7872 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
7873 of calling free_realized_face.
7874
2a2e8de7 78752008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 7876
1f45f627
GM
7877 * charset.c (read_hex): Don't treat SPC as a comment starter.
7878 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
7879 (Fdecode_char): Fix typo.
7880
73acf815 78812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7882
7883 * charset.h (struct charset): New member `code_space_mask'.
7884
1f45f627 7885 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
7886 (encode_coding_charset, Fdefine_coding_system_internal):
7887 Delete the local variable charset.
aca7a3d2
MB
7888 (Fdefine_coding_system_internal): Setup
7889 attrs[coding_attr_charset_valids] correctly.
7890
7891 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
7892 member to check if CODE is valid or not.
7893 (Fdefine_charset_internal): Initialize `code_space_mask' member.
7894 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
7895 is within the range of charset->min_code and carset->max_code.
7896
73acf815 78972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7898
7899 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
7900
7901 * dispextern.h (generate_ascii_font): Fix return type.
7902
7903 * xfaces.c (generate_ascii_font): Fix arg declaration.
7904
7905 * coding.c (coding_inherit_eol_type)
7906 (Fset_terminal_coding_system_internal)
7907 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
7908
73acf815 79092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7910
7911 * coding.c (decode_coding_charset, encode_coding_charset): Handle
7912 multiple charsets correctly.
7913
73acf815 79142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7915
7916 * search.c (boyer_moore): Fix handling of mulitbyte character
7917 translation.
7918
7919 * xdisp.c (display_mode_element): When the variable `elt' is
7920 changed, update `this' and `lisp_string'.
7921
73acf815 79222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7923
7924 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
7925
7926 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 7927 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
7928
7929 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
7930 (load_charset_map): Rename from parse_charset_map. New args
7931 entries and n_entries. Change caller.
7932 (load_charset_map_from_file): Rename from load_charset_map.
7933 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
7934 the tail.
7935 (load_charset_map_from_vector): New function.
7936 (Fdefine_charset_internal): Setup charset.compact_codes_p.
7937 (encode_char): If the charset is compact, change a character index
7938 to a code point.
7939
7940 * coding.c (coding_alloc_by_making_gap): Check the case that the
7941 source and destination are the same correctly.
7942 (decode_coding_raw_text): Set coding->consumed_char and
7943 coding->consumed to 0.
7944 (produce_chars): If coding->chars_at_source is nonzero, update
7945 coding->consumed_char and coding->consumed before calling
7946 alloc_destination.
7947 (Fdefine_coding_system_alias): Register ALIAS in
7948 Vcoding_system_alist.
7949 (syms_of_coding): Define `no-convesion' coding system at the tail.
7950
7951 * fileio.c (Finsert_file_contents): Set coding_system instead of
7952 val. If the current buffer is multibyte, always call
7953 decode_coding_gap.
7954
7955 * xfaces.c (try_font_list): Give higher priority to fontset's
7956 family than face's family.
7957
73acf815 79582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7959
7960 * callproc.c (Fcall_process): Be sure to give the current buffer
7961 to decode_coding_c_string.
7962
7963 * xfaces.c (try_font_list): Give a family specified in a fontset
7964 higher priority than a family specified in a face.
7965
73acf815 79662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7967
7968 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
7969 Fix arguments to insert_from_buffer.
7970
7971 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
7972
73acf815 79732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7974
7975 * coding.c (produce_chars): Set the variable `multibytep' correctly.
7976 (decode_coding_gap): Set coding->dst_multibyte correctly.
7977
73acf815 79782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7979
7980 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 7981 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
7982 (encode_coding_utf_16): Substitute coding->default_char for
7983 non-Unicode characters.
7984 (decode_coding): Don't call record_insert here.
7985 (setup_coding_system): Initialize `surrogate' of
7986 coding->spec.utf_16 to 0.
7987 (EMIT_ONE_BYTE): Fix for multibyte case.
7988
7989 * insdel.c (insert_from_gap): Call record_insert.
7990
73acf815 79912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7992
7993 * casefiddle.c (casify_region): Fix multibyte case.
7994
7995 * character.c (c_string_width): Add return type `int'.
1f45f627 7996 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
7997
7998 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 7999 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
8000 (CHAR_STRING_ADVANCE): Make it do-while statement.
8001
1f45f627 8002 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
8003 DEPTH == 3. Add workaround code for a GCC optimization bug.
8004
8005 * charset.c (parse_charset_map): Remove an unused variable.
8006
8007 * coding.c: Delete unused variables.
8008
8009 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8010 earlier. If inserted is zero and the coding system doesn't
8011 require flushing, don't call decode_coding_gap.
8012
8013 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8014
73acf815 80152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8016
8017 The following changes are for using Unicode as an internal
8018 character model, and use UTF-8 format for buffer/string
8019 representation.
8020
1f45f627 8021 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
8022 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8023
8024 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 8025 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
8026 (*.o): For many files, change dependency on charset.h to
8027 character.h, and add dependency on character.h.
8028 (character.o, chartab.o): New targets.
8029
1f45f627
GM
8030 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8031 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8032 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
8033 of "charset.h".
8034
8035 * dired.c, filelock.c: Include "character.h".
8036
8037 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 8038 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8039 (syms_of_alloc): Remove defsubr for Smake_char_table.
8040
8041 * buffer.c: Include "character.h" instead of "charset.h", don't
8042 include "coding.h".
1f45f627 8043 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
8044
8045 * buffer.h: EXFUN Fbuffer_live_p.
8046
8047 * callproc.c: Include "character.h" instead of "charset.h".
8048 (Fcall_process): Big change for the new code-conversion APIs.
8049
8050 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 8051 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
8052 map_char_table spec.
8053 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8054 accessing the char table structure.
8055
8056 * chartab.c: New file that implements char table.
8057
8058 * category.c: Include "character.h".
8059 (copy_category_entry): New function.
8060 (copy_category_table): Call map_char_table and copy_category_entry.
8061 (Fmake_category_table): Initialize all top-vel slots.
8062 (char_category_set): New function.
1f45f627 8063 (modify_lower_category_set): Delete.
aca7a3d2
MB
8064 (Fmodify_category_entry): Call char_table_ref_and_range.
8065
8066 * category.h (CATEGORY_SET): Just call char_category_set.
8067
8068 * ccl.c: Include "character.h".
8069 (Qccl, Qcclp): New variables.
8070 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8071 it's less than 256.
1f45f627
GM
8072 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8073 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 8074 and DST type.
1f45f627
GM
8075 (ccl_driver): Change types of argument, adjust code accordingly.
8076 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
8077 ccl_driver.
8078 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8079
1f45f627
GM
8080 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8081 New members src_multibyte, dst_multibyte, consumed, and produced.
8082 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 8083 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 8084 (ccl_driver): Update prototype.
aca7a3d2
MB
8085 (Qccl, Qcclp, Fccl_program_p): Extern them.
8086 (CHECK_CCL_PROGRAM): New macro.
8087
8088 * character.c, character.h, chartab.c: New files.
8089
1f45f627
GM
8090 * charset.c: Mostly re-written. Move character and multibyte sequence
8091 handling codes to character.c.
aca7a3d2 8092
1f45f627
GM
8093 * charset.h: Mostly re-written. Move character and multibyte sequence
8094 handling codes to character.h.
aca7a3d2
MB
8095
8096 * coding.c, coding.h: Mostly re-written.
8097
8098 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8099 (CHAR_WIDTH): Move to character.h.
8100 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 8101
1f45f627
GM
8102 * composite.h (enum composition_method): Change order of enumeration
8103 symbols.
aca7a3d2
MB
8104
8105 * data.c: Include "character.h" instead of "charset.h".
8106 (Faref): Call CHAR_TABLE_REF for a char table.
8107 (Faset): Call CHAR_TABLE_SET for a char table.
8108
1f45f627
GM
8109 * dispextern.h (free_realized_face, check_face_attribytes)
8110 (generate_ascii_font): Extern them.
8111 (free_realized_multibyte_face): Delete extern.
aca7a3d2 8112
1f45f627 8113 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
8114 table structure.
8115
8116 * editfns.c: Include "character.h" instead of "charset.h".
8117 (Fchar_to_string): Always call CHAR_STRING.
8118
8119 * emacs.c (main): Call init_charset_once, init_charset,
8120 syms_of_chartab, and syms_of_character.
8121
8122 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 8123 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 8124 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 8125 (build_annotations_2): Delete.
aca7a3d2
MB
8126 (e_write): Big change for the new code-conversion API.
8127
8128 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 8129 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8130 (Fcopy_sequence): Call copy_char_table for a char table.
8131 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
8132 (string_char_to_byte, string_byte_to_char): Adjust for the new
8133 multibyte form.
1f45f627
GM
8134 (internal_equal): Adjust for the change of char table structure.
8135 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8136 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8137 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8138 (char_table_translate, optimize_sub_char_table)
8139 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 8140 chartab.c.
1f45f627
GM
8141 (char_table_ref_and_index): Delete.
8142 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 8143 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
8144 Vcoding_category_list. Adjust for the new code-conversion API.
8145 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
8146 chartab.c.
8147
8148 * fontset.c: Mostly re-written.
8149
1f45f627 8150 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 8151 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
8152 (fontset_font_pattern, fs_load_font): Update prototype.
8153 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
8154
8155 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 8156 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
8157
8158 * insdel.c: Include "character.h" instead of "charset.h".
8159 (copy_text): Don't refer to Vnonascii_translation_table.
8160 (insert_from_gap): New function.
8161
8162 * keyboard.c: Include "character.h" instead of "charset.h".
8163 (command_loop_1): Never call direct_output_forward_char before
8164 a non-ASCII character.
8165 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 8166 translate a character.
aca7a3d2
MB
8167
8168 * keymap.c: Include "character.h".
8169 (store_in_keymap): Handle the case that IDX is a cons.
8170 (Fdefine_key): Handle the case that KEY is a cons and the car part
8171 is also a cons (range).
1f45f627 8172 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
8173 (describe_vector): Call describe_char_table for a char table.
8174 (describe_char_table): New function.
8175
8176 * keymap.h (describe_char_table): Extern it.
8177
8178 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
8179 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
8180 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
8181 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
8182 Delete.
8183 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
8184 structure.
8185 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
8186 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
8187 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 8188 (chartab_size): Extern it.
1f45f627 8189 (struct Lisp_Char_Table): Re-design.
aca7a3d2 8190 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
8191 (HASH_KEY, HASH_VALUE): Move from fns.c.
8192 (CHARACTERBITS): Define as 22.
8193 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
8194 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
8195 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
8196 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
8197 (code_convert_string_norecord): Deleted extern.
8198 (init_character_once, syms_of_character, init_charset)
8199 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
8200
8201 * lread.c: Include "character.h".
8202 (read_multibyte): New arg NBYTES.
1f45f627
GM
8203 (read_escape): Change the meaning of returned *BYTEREP.
8204 (to_multibyte): Delete.
8205 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
8206
8207 * print.c: Include "character.h" instead of "charset.h".
8208 (print_string): Convert 8-bit raw bytes to octal form by
8209 string_escape_byte8.
1f45f627 8210 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
8211 raw bytes always in octal form. Handle sub char table correctly.
8212
8213 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
8214 (read_process_output, send_process): Adjust for the new
8215 code-conversion API.
aca7a3d2 8216
1f45f627 8217 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
8218
8219 * regex.c: Include "character.h" instead of "charset.h".
8220 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
8221 (regex_compile): Accept a range whose starting and ending
8222 character have different leading bytes.
1f45f627 8223 (analyse_first): Adjust for the above change.
aca7a3d2
MB
8224
8225 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8226 (search_buffer, boyer_moore): Adjust for the new multibyte form.
8227 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
8228
8229 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 8230 (syntax_parent_lookup): Delete.
aca7a3d2 8231 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 8232 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
8233 (init_syntax_once): Call char_table_set_range instead of directly
8234 accessing the structure of a char table.
8235
8236 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 8237 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
8238 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
8239 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
8240
8241 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
8242 (encode_terminal_code, write_glyphs): Adjust for the new
8243 code-conversion API.
aca7a3d2
MB
8244 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
8245
1f45f627 8246 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
8247
8248 * xdisp.c: Include "character.h".
1f45f627
GM
8249 (get_next_display_element): Adjust for the new multibyte form.
8250 (disp_char_vector): Adjust for the new char table structure.
8251 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 8252 coding system.
1f45f627 8253 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
8254
8255 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 8256 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
8257 FS_LOAD_FONT.
8258 (generate_ascii_font): New function.
1f45f627
GM
8259 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
8260 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 8261 (free_realized_face): Make it public.
1f45f627 8262 (free_realized_faces_for_fontset): Rename from
aca7a3d2 8263 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 8264 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
8265 fontset_font_pattern and FS_LOAD_FONT.
8266
8267 * xfns.c: Include "character.h".
1f45f627 8268 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
8269
8270 * xselect.c: Don't include "charset.h".
1f45f627 8271 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
8272
8273 * xterm.c: Include "character.h".
1f45f627 8274 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
8275 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
8276 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
8277 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
8278 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
8279 (XTread_socket): Adjust for the new code-conversion API.
8280 (x_new_font): Adjust for the change of FS_LOAD_FONT.
8281 (x_load_font): Adjust for the change of struct font.
aca7a3d2 8282
d6abfc14
SM
82832008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8284
8285 * xfaces.c (face_at_buffer_position): Remove unused vars.
8286
0acdaf8d
KH
82872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8288
4c4475a8
GM
8289 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
8290 Fix overflow checking.
0acdaf8d 8291
6c8a0ebf
GM
82922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8293
8294 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
8295 Cancel previous change.
8296
82972008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8298
8299 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
8300 ccl->eight_bit_control. Fix check for buffer overflow.
8301 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
8302 (ccl_driver): Initialize extra_bytes to 0.
8303
a32aad64
KH
83042008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8305
8306 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
8307 return it ORed with ctrl_modifier.
8308
8b329dba
MB
83092008-01-29 Miles Bader <miles@gnu.org>
8310
8311 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
8312
548667aa
JR
83132008-01-28 Jason Rumney <jasonr@gnu.org>
8314
8315 * w32.c (stat): Don't double check for networked drive.
8316
0975aa24
SM
83172008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8318
ef264c42
SM
8319 * window.c (run_window_configuration_change_hook): New function.
8320 Code extracted from set_window_buffer. Set the selected frame.
8321 (set_window_buffer): Use it.
8322 * window.h (run_window_configuration_change_hook): Declare.
8323 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
8324
0975aa24
SM
8325 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
8326
9c28b587
DN
83272008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
8328
8329 * Makefile.in: Remove references to unused macros.
8330
c617afce
EZ
83312008-01-26 Eli Zaretskii <eliz@gnu.org>
8332
8333 * w32.c (g_b_init_get_sid_sub_authority)
8334 (g_b_init_get_sid_sub_authority_count): New static variables.
8335 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
8336 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
8337 (init_user_info): Use them to retrieve uid and gid.
8338 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
8339 (fstat): Use pw_uid and pw_gid from the_passwd structure for
8340 st_uid and st_gid of the file.
c617afce 8341
302d7d54
JR
83422008-01-26 Jason Rumney <jasonr@gnu.org>
8343
8344 * w32.c (logon_network_drive): New function.
8345 (stat): Use it.
8346
3ac7a21e
CY
83472008-01-26 Chong Yidong <cyd@stupidchicken.com>
8348
8349 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
8350 invisible text covered with an ellipsis.
8351
bbb9fc1f
RS
83522008-01-25 Richard Stallman <rms@gnu.org>
8353
8354 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
8355 jump back to beginning. Move some other initializations after that.
8356 (Qwindow_text_change_functions, Vwindow_text_change_functions):
8357 New variables.
8358 (syms_of_xdisp): Init them.
8359
8360 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
8361
0975aa24
SM
8362 * buffer.c (reset_buffer_local_variables):
8363 Implement `permanent-local-hook'.
bbb9fc1f 8364 (Qpermanent_local_hook): New variable.
0975aa24 8365 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 8366
79235cbe
MA
83672008-01-25 Michael Albinus <michael.albinus@gmx.de>
8368
8369 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
8370
ccd8f7fe
TTN
83712008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
8372
8373 * fns.c (Fclrhash): Return TABLE.
8374
dfbe40f2 83752008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
8376
8377 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
8378 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
8379 is set even without positional changes.
8380 (x_scroll_bar_clear): Set bar->redraw_needed_p.
8381
8382 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
8383
dfbe40f2 83842008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 8385
d6169680
JR
8386 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
8387
602e142f
JR
8388 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
8389 the unicode range available in MULE by locale-coding-system.
c041e2d1 8390 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
8391 earlier.
8392
dfbe40f2 83932008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
8394
8395 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
8396 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 8397 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
8398 when used on child processes.
8399
8c7a4ac5
MA
84002008-01-21 Michael Albinus <michael.albinus@gmx.de>
8401
e0df1b73 8402 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 8403 Fdbus_method_return.
e0df1b73 8404 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 8405 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 8406 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 8407
8abe0f97
MR
84082008-01-20 Martin Rudalics <rudalics@gmx.at>
8409
8410 * undo.c (undo_inhibit_record_point): New variable.
8411 (syms_of_undo): Initialize it.
8412 (record_point): Don't record point when undo_inhibit_record_point
8413 is set.
8414
c3b232e4
SM
84152008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
8416
e69c4cae
SM
8417 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
8418
823e0ebb
SM
8419 * xdisp.c (Qauto_hscroll_mode): New var.
8420 (syms_of_xdisp): Initialize it.
8421 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
8422 window's buffer.
8423 (hscroll_windows): Don't check automatic_hscrolling_p here.
8424
c3b232e4
SM
8425 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
8426 vscroll if we're setting window-buffer to the value it already has.
8427
76ed5e01
DN
84282008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
8429
8430 * m/intel386.h: Remove references to XENIX.
8431
55e6d9b2
AS
84322008-01-17 Andreas Schwab <schwab@suse.de>
8433
8434 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
8435 instead of HAVE_X86_64_LIB64_DIR.
8436 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
8437
b16ed52d
GM
84382008-01-17 Glenn Morris <rgm@gnu.org>
8439
8440 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
8441 to HAVE_X86_64_LIB64_DIR.
8442
6bed5c4a
DN
84432008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
8444
8445 * s/irix3-3.h:
8446 * s/irix4-0.h:
8447 * s/386-ix.h:
8448 * s/domain.h:
8449 * s/hpux9-x11r4.h:
8450 * s/hpux9shxr4.h: Remove files for systems no longer supported.
8451
8452 * sysdep.c: Remove code containing references to symbols defined
8453 by unsupported systems.
8454
fdecf907
GM
84552008-01-16 Glenn Morris <rgm@gnu.org>
8456
8457 * coding.c (select-safe-coding-system-function): Doc fix.
8458
9292328f
GM
84592008-01-15 Glenn Morris <rgm@gnu.org>
8460
8461 * config.in: Revert 2008-01-13 change: this is a generated file.
8462
944df511
MO
84632008-01-13 Tom Tromey <tromey@redhat.com>
8464
8465 * lisp.h: Fix typo.
8466
8111ec05
DN
84672008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8468
f40f5dc3
DN
8469 * m/sequent-ptx.h:
8470 * m/sequent.h:
8471 * s/ptx.h:
8472 * s/ptx4-2.h:
8473 * s/ptx4.h: Remove files for systems no longer supported.
8474
ce20b664 8475 * callproc.c (Fcall_process): Fix previous change.
8111ec05 8476
e39a993c
DN
84772008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8478
052e457f 8479 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 8480
290afd83
JB
8481 * m/mips.h:
8482 * m/intel386.h:
e39a993c
DN
8483 * callproc.c:
8484 * config.in:
8485 * ecrt0.c:
8486 * emacs.c:
8487 * fileio.c:
8488 * frame.c:
8489 * getpagesize.h:
8490 * keyboard.c:
8491 * lread.c:
8492 * process.c:
8493 * puresize.h:
8494 * sysdep.c:
8495 * systty.h:
8496 * syswait.h:
8497 * unexec.c:
8498 * xdisp.c:
8499 * alloc.c: Remove code containing references to symbols defined by
8500 unsupported systems.
8501
81cd7687
KH
85022008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
8503
8504 * coding.c (detect_coding_mask): Fix previous change.
8505
218b3b76
KH
85062008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
8507
8508 * coding.c (detect_coding_iso2022): New arg
8509 latin_extra_code_state. Allow Latin extra codes only
8510 when *latin_extra_code_state is nonzero.
8511 (detect_coding_mask): If there is a NULL byte, detect the encoding
8512 as UTF-16 or binary. If Latin extra codes exist, detect the
8513 encoding as ISO-2022 only when there's no other proper encoding is
8514 found.
8515
59ce725a 85162008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 8517
59ce725a
MB
8518 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
8519 #ifdef MAC_OS.
048addec 8520
59ce725a 85212008-01-08 Richard Stallman <rms@gnu.org>
048addec 8522
59ce725a 8523 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 8524
8290574e
NR
85252008-01-06 Nick Roberts <nickrob@snap.net.nz>
8526
a0a3805c 8527 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
8528 menu bar in parentheses.
8529
f3041af1
DN
85302008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
8531
8532 * m/7300.h:
8533 * m/acorn.h:
8534 * m/alliant-2800.h:
8535 * m/alliant.h:
8536 * m/alliant1.h:
8537 * m/alliant4.h:
8538 * m/altos.h:
8539 * m/amdahl.h:
8540 * m/apollo.h:
8541 * m/att3b.h:
8542 * m/aviion-intel.h:
8543 * m/aviion.h:
8544 * m/celerity.h:
8545 * m/clipper.h:
8546 * m/cnvrgnt.h:
8547 * m/convex.h:
8548 * m/cydra5.h:
8549 * m/delta88k.h:
8550 * m/dpx2.h:
8551 * m/dual.h:
8552 * m/elxsi.h:
8553 * m/f301.h:
8554 * m/gould-np1.h:
8555 * m/gould.h:
8556 * m/i860.h:
8557 * m/ibmps2-aix.h:
8558 * m/ibmrt-aix.h:
8559 * m/ibmrt.h:
8560 * m/irist.h:
8561 * m/is386.h:
8562 * m/isi-ov.h:
8563 * m/mega68.h:
8564 * m/mg1.h:
8565 * m/news-r6.h:
8566 * m/news-risc.h:
8567 * m/news.h:
8568 * m/nh3000.h:
8569 * m/nh4000.h:
8570 * m/ns16000.h:
8571 * m/ns32000.h:
8572 * m/nu.h:
8573 * m/orion.h:
8574 * m/orion105.h:
8575 * m/paragon.h:
8576 * m/pfa50.h:
8577 * m/plexus.h:
8578 * m/pyramid.h:
8579 * m/pyrmips.h:
8580 * m/sh3el.h:
8581 * m/sps7.h:
8582 * m/sr2k.h:
8583 * m/stride.h:
8584 * m/sun1.h:
8585 * m/sun2.h:
8586 * m/sun3-68881.h:
8587 * m/sun3-fpa.h:
8588 * m/sun3-soft.h:
8589 * m/sun3.h:
8590 * m/sun386.h:
8591 * m/symmetry.h:
8592 * m/tad68k.h:
8593 * m/tahoe.h:
8594 * m/targon31.h:
8595 * m/tek4300.h:
8596 * m/tekxd88.h:
8597 * m/tower32.h:
8598 * m/tower32v3.h:
8599 * m/ustation.h:
8600 * m/wicat.h:
8601 * m/xps100.h:
8602 * s/cxux.h:
8603 * s/cxux7.h:
8604 * s/dgux.h:
8605 * s/dgux4.h:
8606 * s/dgux5-4-3.h:
8607 * s/dgux5-4r2.h:
8608 * s/esix.h:
8609 * s/esix5r4.h:
8610 * s/hiuxmpp.h:
8611 * s/hiuxwe2.h:
8612 * s/iris3-5.h:
8613 * s/iris3-6.h:
8614 * s/isc2-2.h:
8615 * s/isc3-0.h:
8616 * s/isc4-0.h:
8617 * s/isc4-1.h:
8618 * s/newsos5.h:
8619 * s/newsos6.h:
8620 * s/osf1.h:
8621 * s/osf5-0.h:
8622 * s/riscix1-1.h:
8623 * s/riscix12.h:
8624 * s/sco4.h:
8625 * s/sco5.h:
8626 * s/sunos4-0.h:
8627 * s/sunos4-1.h:
8628 * s/sunos413.h:
8629 * s/sunos4shr.h:
8630 * s/umax.h:
8631 * s/unipl5-2.h:
8632 * s/xenix.h:
8633 * cxux-crt0.s:
8634 * unexapollo.c:
8635 * unexconvex.c:
8636 * unexenix.c:
8637 * unexsni.c: Remove files for systems no longer supported.
8638
8639 * m/intel386.h: Remove references to unsupported systems.
8640
8641 * w32.c (get_emacs_configuration): Remove reference to i860.
8642
8643 * sysdep.c: Remove dead code.
8644
d35e1cd7
DN
86452008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
8646
8647 * s/rtu.h:
a0a3805c 8648 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 8649
abe136ee
MA
86502008-01-04 Michael Albinus <michael.albinus@gmx.de>
8651
8652 * dbusbind.c (Fdbus_method_return): New function.
8653 (xd_read_message): Add the serial number to the event.
8654 (Fdbus_register_method): Activate the function.
8655
87df3c32
SM
86562008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
8657
8658 * keyboard.c (read_key_sequence): Fix typo.
8659
5125905e
MA
86602008-01-03 Michael Albinus <michael.albinus@gmx.de>
8661
8662 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
8663 (xd_signature, xd_append_arg): Handle element type detection for
8664 empty arrays.
8665 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
8666 SDATA () calls; this must be solved more general.
8667 (Fdbus_register_signal): Use SBYTES instead of strlen.
8668
8bba1b5c
MH
86692008-01-03 Magnus Henoch <magnus@zemdatav>
8670
8671 * dbusbind.c (xd_append_arg): Use unsigned char instead of
8672 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 8673 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 8674
a0a3805c 86752007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
8676
8677 * dbusbind.c (xd_read_message): Use non-static input_event struct.
8678
a271e124
MH
86792007-12-31 Magnus Henoch <mange@freemail.hu>
8680
8681 * dbusbind.c (xd_signature): Signature of variant is just "v".
8682
17bc8f94
MA
86832007-12-30 Michael Albinus <michael.albinus@gmx.de>
8684
87df3c32
SM
8685 * dbusbind.c: Fix several errors and compiler warnings.
8686 Reported by Tom Tromey <tromey@redhat.com>
17bc8f94
MA
8687 (XD_ERROR, XD_DEBUG_MESSAGE)
8688 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
8689 (xd_append_arg): Part for basic D-Bus types rewitten.
8690 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
8691 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
8692 appropriate.
8693 (xd_read_message): Return Qnil. Don't signal an error; it is not
8694 useful during event reading.
8695 (Fdbus_register_signal): Signal an error if the check for
8696 FUNCTIONP fails.
8697 (Fdbus_register_method): New function. The implementation is not
8698 complete, the call of the function signals an error therefore.
8699 (Fdbus_unregister_object): New function, renamed from
8700 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 8701 the object is not well formed.
17bc8f94 8702
dd6f2802
RS
87032007-12-30 Richard Stallman <rms@gnu.org>
8704
8705 * textprop.c (get_char_property_and_overlay):
8706 Signal error if POSITION is out of range in a buffer.
8707
1da8a031
MR
87082007-12-29 Martin Rudalics <rudalics@gmx.at>
8709
8710 * w32fns.c (Fx_create_frame): Make copy of frame parameters
8711 because the original parameters are in pure storage now.
8712
5742be86
YM
87132007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8714
8715 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
8716
b014713c
EZ
87172007-12-22 Eli Zaretskii <eliz@gnu.org>
8718
b17f53ab
MB
8719 * callint.c (syms_of_callint) <command-history>: Add reference to
8720 history-length in the doc string.
048addec 8721
b17f53ab 87222007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 8723
b17f53ab
MB
8724 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
8725 before passing as wParam.
048addec 8726
9af5078b
MA
87272007-12-22 Michael Albinus <michael.albinus@gmx.de>
8728
8729 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
8730 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
8731 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
8732 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
8733 as number.
8734 (Fdbus_call_method): Fix docstring.
8735
87cf1a39
MA
87362007-12-21 Michael Albinus <michael.albinus@gmx.de>
8737
8738 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
8739 New macros.
87df3c32 8740 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
8741 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
8742 Simplify.
87cf1a39
MA
8743 (xd_signature): New function.
8744 (xd_append_arg): Compute also signatures. Major rewrite.
8745 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
8746 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
8747 Check for signatures of arguments.
87cf1a39 8748
54371585
MA
87492007-12-19 Michael Albinus <michael.albinus@gmx.de>
8750
8751 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
8752 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
8753 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
8754 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
8755 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 8756 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
8757 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
8758 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 8759 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
8760 (xd_append_arg): New function.
8761 (Fdbus_call_method, Fdbus_send_signal): Apply it.
8762
f5306ca3
MA
87632007-12-16 Michael Albinus <michael.albinus@gmx.de>
8764
8765 * dbusbind.c (top): Include <stdio.h>.
8766 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
8767 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
8768 (Fdbus_register_signal): Rename unique_name to uname.
8769 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
8770 non-existing unique name. Fix typos in matching rule. Return an
8771 object which is useful in Fdbus_unregister_signal.
8772 (Fdbus_unregister_signal): Reimplementation, in order to remove
8773 only the corresponding entry.
8774 (Vdbus_registered_functions_table): Change the order of entries.
8775 Apply these changes in xd_read_message and Fdbus_register_signal.
8776
77a28bbf
AS
87772007-12-16 Andreas Schwab <schwab@suse.de>
8778
8779 * fileio.c (Finsert_file_contents): Fix overflow check to not
8780 depend on undefined integer overflow.
8781
2e3566d8
JR
87822007-12-14 Jason Rumney <jasonr@gnu.org>
8783
8784 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
8785 for characters above 127.
8786
bf254037
JR
87872007-12-13 Jason Rumney <jasonr@gnu.org>
8788
8789 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
8790 before dereferencing array.
8791 (lookup_vk_code): Remove zero comparison.
8792
eb7c7bf5
MA
87932007-12-14 Michael Albinus <michael.albinus@gmx.de>
8794
8795 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
8796 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
8797 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
8798 (xd_read_message, Fdbus_register_signal): Split expressions into
8799 multiple lines before operators "&&" and "||", according to the
8800 GNU Coding Standards.
8801
34fb0fc9
EZ
88022007-12-14 Eli Zaretskii <eliz@gnu.org>
8803
8804 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
8805
c7d97628
JL
88062007-12-12 Juri Linkov <juri@jurta.org>
8807
8808 * buffer.c (Frename_buffer): In interactive spec replace
8809 `read-buffer' with `read-string' that uses `buffer-name-history'
8810 as history, and the current buffer's name as default.
8811
3709505e
SM
88122007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
8813
8814 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
8815 manipulating the backtrace manually.
8816 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
8817 (struct backtrace, backtrace_list): Remove.
8818 (command_loop_1): Remove dead var `no_direct'.
8819
8820 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
8821 preserve non-built-in buffer-local variables.
8822 (Fkill_all_local_variables): Don't re-create&re-set permanent
8823 buffer-local variables.
8824
e2bec886
JL
88252007-12-09 Juri Linkov <juri@jurta.org>
8826
8827 * buffer.c (Frename_buffer): Change interactive spec from "s" to
8828 Lisp code that uses `read-buffer' with current buffer as default.
8829
a31d47c7
MA
88302007-12-08 Michael Albinus <michael.albinus@gmx.de>
8831
8832 * dbusbind.c (xd_read_message): Generate an event for every
8833 registered handler. There might be several handlers registered
8834 for the same signal.
8835 (Fdbus_register_signal): Don't overwrite a registration for the
8836 same signal. Add a new registration if handlers are different.
8837 (Vdbus_registered_functions_table): Rework doc string.
8838
52da95fa
MA
88392007-12-07 Michael Albinus <michael.albinus@gmx.de>
8840
8841 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
8842 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
8843 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
8844 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
8845 Unify argument lists.
a0a3805c 8846 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
8847 arguments and hash table keys. Use unique name for service.
8848 (Fdbus_unregister_signal): Remove checks.
8849 (Vdbus_registered_functions_table): Fix doc string.
8850
e5e76c04 88512007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
8852
8853 * process.c (make_process): Initialize pty_flag to 0.
8854
e5e76c04 88552007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
8856
8857 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
8858 specified XBMs.
8859
e5e76c04 88602007-12-05 Richard Stallman <rms@gnu.org>
048addec 8861
e5e76c04 8862 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 8863
e5e76c04 88642007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8865
e5e76c04
MB
8866 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
8867 New variable.
8868 (mac_try_close_socket) [MAC_OSX]: New function.
8869 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
8870 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 8871
e5e76c04
MB
8872 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
8873 Use mac_try_close_socket.
048addec 8874
e5e76c04 88752007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8876
e5e76c04
MB
8877 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
8878 reloc_base.
8879 (copy_dysymtab): Compute relocation base here.
8880 (rebase_reloc_address) [__ppc64__]: New function.
8881 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
8882 changed.
048addec 8883
e5e76c04 88842007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 8885
e5e76c04 8886 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 8887
e5e76c04 88882007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8889
e5e76c04
MB
8890 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
8891 __objc_* sections.
8892 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 8893
96faeb40
MA
88942007-12-05 Michael Albinus <michael.albinus@gmx.de>
8895
8896 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
8897 Move check for Vdbus_registered_functions_table to
8898 xd_read_queued_messages.
8899 (xd_read_queued_messages): Protect xd_read_message calls by
8900 internal_condition_case_1.
8901
39abdd4a
MA
89022007-12-04 Michael Albinus <michael.albinus@gmx.de>
8903
87df3c32 8904 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 8905 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 8906 (Vdbus_intern_symbols): Remove.
39abdd4a 8907 (Vdbus_registered_functions_table): New hash table.
87df3c32 8908 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 8909 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 8910 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
8911 Vdbus_registered_functions_table.
8912
880820fe 89132007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
8914
8915 * xterm.c: Update URL to Window Manager Specification in comment.
8916
033b73e2
MA
89172007-12-02 Michael Albinus <michael.albinus@gmx.de>
8918
8919 * config.in (HAVE_DBUS): Add.
8920
a0a3805c 8921 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
8922 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
8923 (obj): Add $(DBUS_OBJ).
8924 (LIBES): Add $(DBUS_LIBS).
8925 (dbusbind.o): New target.
8926
8927 * dbusbind.c: New file.
8928
8929 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
8930
8931 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 8932 (Qdbus_event): New Lisp symbol.
033b73e2 8933 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 8934 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
8935 (keys_of_keyboard ): Define dbus-event.
8936
8937 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
8938
39d0bf74
RS
89392007-12-01 Richard Stallman <rms@gnu.org>
8940
8941 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
8942
f3157c65
JR
89432007-11-30 Jason Rumney <jasonr@gnu.org>
8944
8945 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
8946 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
8947 (w32_face_attributes): Don't use color indexes that are out of range.
8948 Only reverse the default colors.
f3157c65
JR
8949
8950 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
8951 WINDOWSNT.
8952
8953 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
8954
b510360c
JR
89552007-11-29 Jason Rumney <jasonr@gnu.org>
8956
8957 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
8958 (w32_face_attributes): Use Vtty_defined_color_alist to determine
8959 if the terminal colors are initialized.
8960 (unspecified_fg, unspecified_bg): Remove unused declarations.
8961
4b7ab1c4
AS
89622007-11-29 Andreas Schwab <schwab@suse.de>
8963
8964 * keyboard.c (apply_modifiers): Fix typo.
8965
4bb6c266
RS
89662007-11-29 Richard Stallman <rms@gnu.org>
8967
8968 * keymap.c (Fcurrent_local_map): Doc fix.
8969
aa44cd84
GM
89702007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
8971
8972 * s/gnu-kfreebsd.h: New file.
8973
21ec2c43
SM
89742007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
8975
cc648cef
SM
8976 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
8977 Don't cast redundantly.
8978
21ec2c43
SM
8979 * keyboard.c (KEY_TO_CHAR): New macro.
8980 (parse_modifiers, apply_modifiers): Accept integer arguments.
8981 (read_key_sequence): Use them to unify the "shift->unshift" mapping
8982 for chars and symbol keys.
8983 After doing such remapping, apply function-key-map again.
8984
73e72da4
DN
89852007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
8986
8987 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
8988 compiled anymore.
8989
254693ff
AS
89902007-11-26 Andreas Schwab <schwab@suse.de>
8991
8992 * process.c (list_processes_1): Fix indentation level of the
8993 command column.
8994
ff6e6ac8
AS
89952007-11-23 Andreas Schwab <schwab@suse.de>
8996
8997 * editfns.c (Fformat): Handle %c specially since it requires the
8998 argument to be of type int.
8999
f7cf8b20
SM
90002007-11-23 Markus Triska <markus.triska@gmx.at>
9001
9002 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 9003 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 9004
569c11e3
SM
90052007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9006
8787dd73
SM
9007 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9008 (find_symbol_value): Use do_symval_forwarding.
9009
569c11e3
SM
9010 * data.c (set_internal): Set the value in the `cons-cell' (for
9011 Buffer_Local_values) not only for frame-local variables.
9012
6af1696d
AS
90132007-11-22 Andreas Schwab <schwab@suse.de>
9014
9015 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9016 values to sprintf.
9017 * keymap.c (Fsingle_key_description): Likewise.
9018 * print.c (print_object): Likewise.
9019
880820fe 90202007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
9021
9022 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9023 file for image is nil.
9024
7c401d15
DN
90252007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9026
9027 * term.c: Include stdarg.h.
569c11e3 9028 (fatal): Implement using varargs.
a0a3805c 9029 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 9030
64e16c3c
SM
90312007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9032
9033 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9034 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9035 Update call to buffer_slot_type_mismatch.
9036 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9037 (buffer_slot_type_mismatch): Update.
9038 * buffer.c (buffer_local_types): Remove.
9039 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9040 (defvar_per_buffer): Set the type in the buffer_objfwd.
9041
d4aa48db 90422007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 9043
64e16c3c
SM
9044 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9045 CreateFileMapping returns NULL on failure.
5f42a7eb 9046
d4aa48db 90472007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 9048
d4aa48db
MB
9049 * search.c (Fset_match_data): Remove the `evaporate' feature.
9050 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 9051
bdae0540
JR
90522007-11-21 Jason Rumney <jasonr@gnu.org>
9053
9054 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9055
9056 * w32console.c (w32con_write_glyphs): Remove unused variables.
9057
202c09a8
DN
90582007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9059
b951420f
DN
9060 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9061
202c09a8
DN
9062 * s/darwin.h (MULTI_KBOARD): Remove.
9063
9064 * macfns.c (x_create_tip_frame, Fx_create_frame)
9065 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9066
bae72c12
SM
90672007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9068
e7c10f83
SM
9069 * buffer.c (Fbuffer_local_value): Remove redundant test.
9070 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9071 than in `current-buffer' to match the comment.
9072 Do the swap using swap_in_global_binding.
9073
136eb6ed
SM
9074 * data.c (store_symval_forwarding, set_internal):
9075 * eval.c (specbind): Remove dead code.
9076
bae72c12
SM
9077 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9078 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9079 Since we do not want to see internal Lisp_*fwd objects here.
9080
880820fe 90812007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 9082
3d66b985
JD
9083 * sysdep.c (init_system_name): Use getaddrinfo if available.
9084
95fbaefc
JD
9085 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9086 (x_scroll_bar_note_movement): start, end, with, height in struct
9087 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9088
6c1d8cb6
DN
90892007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9090
9091 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9092
30f95089
SM
90932007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9094
66b04bd4
SM
9095 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9096 This undoes Richard's change of 14-Oct-2002.
9097
6d3f2bb2
SM
9098 * alloc.c (allocate_other_vector):
9099 * lisp.h (allocate_other_vector): Remove.
9100
b05b4e27
SM
9101 * window.c (struct save_window_data): Move non-lisp data to the end
9102 and make it `int' rather than Lisp_Object.
9103 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9104 Done wrap/unwrap integer values.
9105 (Fset_window_configuration, compare_window_configurations):
9106 Update use of fields to their new types.
9107
056ce195
SM
9108 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9109 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9110 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9111 (SET_SCROLL_BAR_X_WINDOW): Remove.
9112 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9113 Access the new x_window field directly.
9114 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9115 Don't wrap/unwrap integers into Lisp_Objects.
9116 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9117 (x_scroll_bar_report_motion):
9118 Don't wrap/unwrap integers into Lisp_Objects.
9119 (x_term_init): Use SDATA.
9120 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9121 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9122 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9123 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9124 * xfns.c (x_set_background_color):
9125 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9126 Access the new x_window field directly.
9127
30f95089
SM
9128 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9129 (allocate_pseudovector): Make non-static.
6d3f2bb2 9130
30f95089
SM
9131 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9132 (allocate_pseudovector): Declare.
6f69e89b 9133 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 9134
9b6112e8
AS
91352007-11-15 Andreas Schwab <schwab@suse.de>
9136
30f95089
SM
9137 * editfns.c (Fformat): Correctly format EMACS_INT values.
9138 Also take precision into account when formatting an integer.
0f860bd7 9139
9b6112e8
AS
9140 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9141
262fcd41
SM
91422007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9143
58da34c7
SM
9144 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9145 (syms_of_keyboard): Defsubr it.
9146
262fcd41
SM
9147 * data.c (swap_in_global_binding): Fix longstanding bug where
9148 store_symval_forwarding was not called with the right second argument,
9149 thus causing objfwd-ing from being dropped.
9150
d29a9848
JB
91512007-11-14 Juanma Barranquero <lekktu@gmail.com>
9152
9153 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9154 (Fx_display_pixel_height, Fx_display_planes)
9155 (Fx_display_color_cells, Fx_server_max_request_size)
9156 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9157 (Fx_display_visual_class, Fx_display_save_under):
9158 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9159 (Fx_display_pixel_height, Fx_display_planes)
9160 (Fx_display_color_cells, Fx_server_max_request_size)
9161 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9162 (Fx_display_mm_height, Fx_display_mm_width)
9163 (Fx_display_backing_store, Fx_display_visual_class)
9164 (Fw32_select_font, Fx_display_save_under):
9165 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9166 (Fx_display_pixel_height, Fx_display_planes)
9167 (Fx_display_color_cells, Fx_server_max_request_size)
9168 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9169 (Fx_display_save_under): Fix typos in docstrings.
9170
74084731
JB
91712007-11-14 Juanma Barranquero <lekktu@gmail.com>
9172
9173 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9174 corresponding to deleted entries; they are an implementation detail.
9175 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9176 Remove variables.
9177 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
9178 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
9179 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
9180 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
9181 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 9182 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 9183 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
9184 Fix typos in docstrings.
9185 (Fx_server_version): Reflow docstring.
9186 (Fw32_shell_execute): Doc fixes.
74084731 9187
fb053a1f
JB
91882007-11-13 Juanma Barranquero <lekktu@gmail.com>
9189
9190 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
9191 if w32_parse_hot_key returned nil.
9192
a457417e 91932007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 9194
a457417e 9195 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 9196
4b219faa
JR
91972007-11-09 Jason Rumney <jasonr@gnu.org>
9198
9199 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
9200
9201 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
9202
9203 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
9204 Remove W32_SCROLL_BAR_CLICK_EVENT.
9205
9206 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
9207 Add MULTIMEDIA_KEY_EVENT.
9208
9209 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
9210 (lispy_multimedia_keys) [WINDOWSNT]: New array.
9211 (make_lispy_event) [WINDOWSNT]: Use it to translate
9212 MULTIMEDIA_KEY_EVENT.
9213
9214 * w32term.h (WM_APPCOMMAND): Define if not already.
9215 (GET_APPCOMMAND_LPARAM): Likewise.
9216
9217 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
9218 WM_APPCOMMAND.
9219
9220 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
9221 (syms_of_w32fns): Export and initialize it.
9222 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
9223
c12ecb0a 92242007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
9225
9226 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
9227 twice.
9228
9229 * xdisp.c (handle_face_prop): Fix last change.
9230
c12ecb0a 92312007-11-09 Richard Stallman <rms@gnu.org>
048addec 9232
c12ecb0a
MB
9233 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
9234 not just for after-strings and before-strings.
9235 Call face_for_overlay_string and pass the overlay to it.
9236 (handle_display_prop): Determine whether property came from an overlay.
9237 Pass OVERLAY arg to handle_single_display_spec.
9238 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
9239 (load_overlay_strings): Fill in it->string_overlays.
9240 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 9241
c12ecb0a
MB
9242 * xfaces.c (face_for_overlay_string): Function renamed from
9243 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 9244
c12ecb0a
MB
9245 * dispextern.h (struct it): New elt string_overlays.
9246 New elt from_overlay, also in stack.
9247 Rearrange a few elements.
9248 (face_for_overlay_string): Decl renamed from
9249 face_at_buffer_position_no_overlays, and add argument.
15fff01d 9250
c12ecb0a 92512007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 9252
c12ecb0a
MB
9253 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
9254 to get the base face for an overlay string.
0d8466cc 9255
c12ecb0a 9256 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 9257
c12ecb0a 9258 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 9259
c12ecb0a 9260 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 9261
c12ecb0a 92622007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 9263
c12ecb0a
MB
9264 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
9265 Fix conversion from Lisp object to ATSUFontID.
07025a55 9266
c12ecb0a 92672007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 9268
c12ecb0a 9269 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 9270
c12ecb0a 92712007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 9272
c12ecb0a
MB
9273 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
9274 Don't assume regions are aligned to page boundary.
9275 (print_load_command_name): Add LC_UUID if defined.
3a232704 9276
c12ecb0a 92772007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 9278
c12ecb0a 9279 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 9280
b8ddfbcc
JR
92812007-11-07 Jason Rumney <jasonr@gnu.org>
9282
9283 * s/windows95.h: Remove.
9284
880820fe 92852007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
9286
9287 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
9288 abort with a message on unhandled store_type values.
9289
880820fe 92902007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
9291
9292 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
9293 Remove HAVE_X11R5 and HAVE_X11R4.
9294
04a697fe
DN
92952007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9296
9297 * Makefile.in: Remove references to sunfns.c and sunfns.o.
9298
880820fe 92992007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
9300
9301 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 9302 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
9303 x_set_glyph_string_gc from x_draw_glyph_string.
9304
07e5c0b0
DN
93052007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9306
2a2e8de7 9307 * sunfns.c: Remove file.
07e5c0b0
DN
9308
9309 * m/sun386.h:
9310 * m/sun2.h:
9311 * m/sparc.h: Remove Sun windows code.
9312
1bc973c2
SM
93132007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
9314
9315 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
9316 (init_keyboard): Set current_kboard's window-system to nil.
9317 (tty_read_avail_input): Typo.
9318 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
9319
c22140f6
DN
93202007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
9321
9322 * s/usg5-4.h:
9323 * s/usg5-3.h:
9324 * s/ptx.h:
9325 * m/is386.h:
9326 * m/ibmps2-aix.h:
2a2e8de7 9327 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
9328
9329 * dispnew.c (syms_of_display): Don't mention version 10.
9330
660a8219
JB
93312007-10-28 Juanma Barranquero <lekktu@gmail.com>
9332
9333 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
9334 ($(BLD)/abbrev.$(O)): Remove.
9335
e047f448
SM
93362007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9337
9338 Rewrite abbrev.c in Elisp.
9339 * image.c (Qcount): Don't declare as extern.
9340 (syms_of_image): Initialize and staticpro `Qcount'.
9341 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
9342 * emacs.c (main): Don't call syms_of_abbrev.
9343 * Makefile.in (obj): Remove abbrev.o.
9344 (abbrev.o): Remove.
9345 * abbrev.c: Remove.
9346
67b73e3a
MR
93472007-10-26 Martin Rudalics <rudalics@gmx.at>
9348
9349 * window.c (window_min_size_2): Don't count header-line.
9350
e3d7bd83
DN
93512007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
9352
9353 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 9354 field to take advantage of the available space. Group all the
e3d7bd83
DN
9355 chars together to reduce wasted space due to padding.
9356
a3547743
JB
93572007-10-26 Juanma Barranquero <lekktu@gmail.com>
9358
e298936f
JB
9359 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
9360
d3d47262
JB
9361 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
9362 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
9363 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
9364 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
9365 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
9366 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
9367 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
9368 (last_marked, mark_object_loop_halt): Make static.
9369
a3547743
JB
9370 * frame.c (syms_of_frame) <delete-frame-functions>:
9371 Fix typo in docstring.
9372
14c71d8b
JB
93732007-10-25 Juanma Barranquero <lekktu@gmail.com>
9374
9375 * w32.c (init_environment): Fix tiny memory leak.
66199f74 9376 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 9377
70b8d0a4
SM
93782007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
9379
9380 Make `window-system' into a keyboard-local variable (rather than
9381 frame-local as done originally by multi-tty).
9382
9383 * keyboard.h (struct kboard): Add Vwindow_system.
9384 * keyboard.c (init_kboard): Set a default for Vwindow_system.
9385 (mark_kboards): Mark Vwindow_system.
9386
9387 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
9388 (init_display): Don't set the obsolete `window-system' frame-param.
9389
9390 * xterm.c (x_term_init):
9391 * w32term.c (w32_create_terminal):
9392 * term.c (init_tty): Set Vwindow_system.
9393 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
9394 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
9395
9396 * xfns.c (Fx_create_frame, x_create_tip_frame):
9397 * w32fns.c (Fx_create_frame, x_create_tip_frame):
9398 * macfns.c (Fx_create_frame):
9399 Don't set the obsolete `window-system' frame-param.
9400
9401 * frame.h (Qwindow_system): Remove.
9402 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
9403 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
9404
fdc90613 94052007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 9406
fdc90613
MB
9407 * frame.c (x_figure_window_size): For fullscreen case,
9408 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 9409
fdc90613 9410 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 9411
fdc90613 9412 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 9413
7357cb04
SM
94142007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9415
98228e72
SM
9416 * process.c (unwind_request_sigio): Only define if __ultrix__.
9417
1baf6db9
SM
9418 * callproc.c (child_setup): Remove spurious *.
9419
4d0ac3d7
SM
9420 * lisp.h (Fget_text_property): Declare.
9421 (have_menus_p): Declare it here rather than in sys-dep header files.
9422 * macterm.h (have_menus_p):
9423 * msdos.h (have_menus_p):
9424 * xterm.h (have_menus_p): Remove.
9425
7357cb04
SM
9426 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9427 (Fmake_variable_frame_local): Just check the variable's const-ness
9428 rather than checking nil or t.
9429
866e6dd6
JR
94302007-10-22 Jason Rumney <jasonr@gnu.org>
9431
b00afeae
JR
9432 * w32fns.c: Include math.h.
9433 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 9434
c8f7c76b
JR
9435 * s/ms-w32.h (HAVE_STDLIB_H): Define.
9436 (abort): Redefinition moved to nt/config.nt.
9437
866e6dd6
JR
9438 * m/windowsnt.h: Remove.
9439
e79beb56
JB
94402007-10-22 Juanma Barranquero <lekktu@gmail.com>
9441
9442 * emacs.c (Fdump_emacs): Fix typo in message.
9443 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
9444 <installation-directory>: Reflow docstring.
9445
fb30dfd2
JL
94462007-10-22 Juri Linkov <juri@jurta.org>
9447
9448 * minibuf.c: Allow minibuffer default to be a list of default values.
9449 With empty input use the first element of this list as returned default.
e79beb56 9450 (string_to_object)
0f7f11b7 9451 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
9452 (read_minibuf): If defalt is cons, set histstring to its car.
9453 (Fread_string): If default_value is cons, set val to its car.
9454 (Fread_buffer): If def is cons, use its car.
9455 (Fcompleting_read): If defalt is cons, set val to its car.
9456
1f163f28
MA
94572007-10-21 Michael Albinus <michael.albinus@gmx.de>
9458
9459 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
9460
db3534c3
JB
94612007-10-20 Juanma Barranquero <lekktu@gmail.com>
9462
9463 * doc.c (Fdocumentation): Check for advice in all cases.
9464
c6f18a07
CY
94652007-10-19 Chong Yidong <cyd@stupidchicken.com>
9466
9467 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
9468
2a1534d3
RS
94692007-10-19 Richard Stallman <rms@gnu.org>
9470
9471 * doc.c (Fdocumentation): Check for and handle an advised function.
9472
7b82c3b6
JB
94732007-10-19 Juanma Barranquero <lekktu@gmail.com>
9474
9475 * process.c (Fset_process_filter): Doc fix.
9476
3278f20e
SM
94772007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9478
9479 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
9480 which caused key-translation-map to applied repeatedly (thus breaking
9481 double-mode).
9482
99784d63
SM
94832007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9484
9485 * xselect.c (x_own_selection, x_handle_selection_clear)
9486 (x_clear_frame_selections):
9487 * w32menu.c (list_of_panes, list_of_items):
9488 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
9489 * textprop.c (validate_plist, interval_has_all_properties)
9490 (interval_has_some_properties, interval_has_some_properties_list)
9491 (add_properties, text_property_list):
9492 * process.c (Fget_buffer_process, list_processes_1, status_notify):
9493 * minibuf.c (Fassoc_string):
9494 * macselect.c (x_own_selection, x_clear_frame_selections)
9495 (Fx_disown_selection_internal):
9496 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
9497 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
9498
44bb704d
CY
94992007-10-17 Chong Yidong <cyd@stupidchicken.com>
9500
9501 * process.c: Link to libs for calling res_init() if available.
9502 (Fmake_network_process): Call res_init() before getaddrinfo or
9503 gethostbyname, if possible.
9504
d314756e
SM
95052007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9506
2504022a
SM
9507 * lread.c (read1): Set pvectype for char_tables.
9508
19fa82b9
SM
9509 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
9510 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
9511 Add type checks.
9512 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
9513
d314756e
SM
9514 * alloc.c (free_misc): Use XMISCTYPE.
9515 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
9516
94b9aaa2
GM
95172007-10-17 Glenn Morris <rgm@gnu.org>
9518
9519 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
9520 (syms_of_minibuf): Add Qcompletion_ignore_case.
9521 * dired.c (Qcompletion_ignore_case): Change to external.
9522 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
9523 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
9524 (Fread_file_name): Use it rather than intern'ing.
9525
9526 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
9527 (Fread_coding_system): Ignore case of user input.
9528
da6658e8
YM
95292007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9530
9531 * xdisp.c (handle_display_prop): Ignore display specs after
9532 replacing one when string text is being replaced.
9533 (handle_single_display_spec): Pretend as if characters with display
9534 property haven't been consumed only when buffer text is being replaced.
9535
11fb4bdb
SM
95362007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
9537
9beb8baa
SM
9538 * xfns.c (Fx_create_frame, Fx_display_list):
9539 * window.c (window_fixed_size_p, enlarge_window)
9540 (shrink_window_lowest_first):
9541 * macterm.c (init_font_name_table):
9542 * macfns.c (Fx_create_frame, Fx_display_list):
9543 * lread.c (close_load_descs):
9544 * keyboard.c (read_char_x_menu_prompt):
9545 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
9546 * coding.c (code_convert_region_unwind): Test the type of an object
9547 rather than just !NILP before extracting data from it.
9548
d3f41ff5
SM
9549 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
9550
67ee9f6e
SM
9551 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
9552 (XMISCANY): New macro.
9553 (XMISCTYPE): Use it.
9554 (struct Lisp_Misc_Any): New type.
9555 (union Lisp_Misc): Use it.
9556 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
9557 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
9558 (find_symbol_value, set_internal, default_value, Fset_default)
9559 (Fmake_variable_buffer_local, Fmake_local_variable)
9560 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
9561 (Flocal_variable_if_set_p, Fvariable_binding_locus):
9562 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
9563 * alloc.c (allocate_buffer): Set the size and tag.
9564 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
9565 Use XMISCANY.
9566 (die): Follow the GNU convention for error messages.
9567 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
9568 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
9569 tag any more.
9570 (set_buffer_internal_1):
9571 * frame.c (store_frame_param):
9572 * eval.c (specbind):
9573 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
9574
11fb4bdb
SM
9575 * doc.c (Fsnarf_documentation): Simplify.
9576
decb374a
JB
95772007-10-14 Juanma Barranquero <lekktu@gmail.com>
9578
9579 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
9580 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
9581
b5a40ee7
SM
95822007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
9583
9584 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
9585
35277b03
JB
95862007-10-14 Juanma Barranquero <lekktu@gmail.com>
9587
9588 * eval.c (do_autoload): Don't save autoloads.
9589
9590 * data.c (Ffset): Save autoload of the function being set.
9591
35fdaa62
GM
95922007-10-07 John Paul Wallington <jpw@pobox.com>
9593
9594 * xfns.c (x_create_tip_frame): Set the `display-type' frame
9595 parameter before setting up faces.
9596
1ea40aa2
EZ
95972007-10-13 Eli Zaretskii <eliz@gnu.org>
9598
35fdaa62 9599 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
9600 * keyboard.c (append_tool_bar_item): Reformat last change.
9601
1ea40aa2
EZ
9602 * lisp.h (eabs): Rename from `abs'. All callers changed.
9603
35277b03 96042007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
9605
9606 * buffer.c (add_overlay_mod_hooklist):
9607 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
9608 * fontset.c (make_fontset):
9609 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
9610 (append_tool_bar_item):
9611 * macmenu.c (grow_menu_items):
35fdaa62 9612 * w32menu.c (grow_menu_items):
71d00ce4 9613 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 9614
bc82f120
EZ
96152007-10-13 Eli Zaretskii <eliz@gnu.org>
9616
9617 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
9618 selected frame'' on MSDOS).
9619
d57d5a78
MR
96202007-10-12 Martin Rudalics <rudalics@gmx.at>
9621
9622 * frame.c (Qexplicit_name): New variable.
9623 (x_report_frame_params): Report it in parameter alist.
9624 (syms_of_frame): Intern and staticpro it.
9625
35277b03 96262007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
9627
9628 * macfns.c (x_create_tip_frame): Set terminal for frame.
9629
c7a4b95b
SM
96302007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
9631
26f9c7b7
SM
9632 * frame.c (Qenvironment): Remove.
9633 (syms_of_frame) <Qenvironment>: Don't initialize.
9634 (Fdelete_frame): Don't treat the `environment' param specially.
9635 * frame.h (Qenvironment): Don't declare.
9636 * callproc.c (set_initial_environment): Don't set unused frame param.
9637
c7a4b95b
SM
9638 * frame.c (Fframe_with_environment): Remove.
9639 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 9640
c7a4b95b
SM
9641 * lisp.h (Fframe_with_environment): Don't declare.
9642
c86f7377
JB
96432007-10-10 Juanma Barranquero <lekktu@gmail.com>
9644
9645 * indent.c (indent_tabs_mode, last_known_column)
9646 (last_known_column_modified): Make static.
9647 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
9648
d1b3a122
KY
96492007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
9650
9651 * puresize.h (BASE_PURESIZE): Increase to 1170000.
9652
d57d5a78
MR
96532007-10-09 Jason Rumney <jasonr@gnu.org>
9654
9655 * w32term.c (x_set_window_size): Disable code that attempts to tell
9656 Lisp code about a size change before it actually happens.
9657
81d3d428 96582007-10-09 Richard Stallman <rms@gnu.org>
91175673 9659
81d3d428
MB
9660 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
9661 return HANDLED_RETURN.
91175673 9662
1af74d06 96632007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 9664
1af74d06
MB
9665 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
9666 when there's an unread command event.
e0fead5d 9667
c7a4b95b 9668 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
9669 window autoselection act appropriately when leaving selected frame.
9670 (syms_of_frame): Initialize focus_follows_mouse.
9671 * frame.h (focus_follows_mouse): Extern it.
9672 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 9673 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
9674 * msdos.c (dos_rawgetc): Likewise.
9675 * w32term.c (w32_read_socket): Likewise.
9676 * xterm.c (handle_one_xevent): Likewise.
9677 * xdisp.c (syms_of_xdisp): In doc-string of
9678 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 9679
1af74d06 96802007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 9681
1af74d06
MB
9682 * macterm.c (mac_load_query_font): Fix missing return value.
9683 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
9684 Add BLOCK_INPUT.
c186cdb3 9685
1af74d06 96862007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 9687
1af74d06
MB
9688 * xdisp.c (get_window_cursor_type): Implement documented behavior
9689 for cursor-in-non-selected-windows = t.
c186cdb3 9690
1af74d06 96912007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 9692
1af74d06 9693 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 9694
1af74d06 96952007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 9696
1af74d06 9697 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 9698
1af74d06 9699 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 9700
1af74d06 97012007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9702
c7a4b95b 9703 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 9704
1af74d06 97052007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9706
1af74d06 9707 * buffer.c (Foverlays_at): Doc fix.
036e218d 9708
1af74d06 97092007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 9710
1af74d06 9711 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 9712
1af74d06 97132007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 9714
1af74d06 9715 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 9716
1af74d06 9717 * frame.h (enum): Remove trailing comma.
90647b07 9718
1af74d06 97192007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
90647b07 9720
1af74d06 9721 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 9722
1af74d06 97232007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 9724
1af74d06 9725 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 9726
1af74d06
MB
9727 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
9728 last-repeatable-command.
9729 (init_kboard): Initialize Vlast_repeatable_command.
9730 (command_loop_1): Set it to real_this_command unless that was
9731 bound to an input event.
9732 (mark_kboards): Mark it.
9fbc32aa 9733
1af74d06 97342007-10-08 Richard Stallman <rms@gnu.org>
036e218d 9735
1af74d06 9736 * eval.c (condition-case): Doc fix.
9fbc32aa 9737
1af74d06 97382007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 9739
1af74d06
MB
9740 * xfaces.c (tty_supports_face_attributes_p): Fix code
9741 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9742 was copied and not edited.
9fbc32aa 9743
beb9f745
SM
97442007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
9745
c86f7377 9746 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
9747 escape sequences.
9748 * keyboard.h (struct kboard): Add Vinput_decode_map.
9749 Remove Vlocal_key_translation_map.
9750 * keyboard.c (read_key_sequence): Add support for input-decode-map.
9751 (init_kboard): Init input-decode-map.
9752 Replace local-key-translation-map back with key-translation-map.
9753 (syms_of_keyboard): Declare input-decode-map.
9754 Remove local-key-translation-map. Update docstrings.
9755 (mark_kboards): Mark Vinput_decode_map.
9756 Don't mark Vlocal_key_translation_map.
9757 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
9758 Replace local-key-translation-map back with key-translation-map.
9759 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
9760 Bind in input-decode-map rather than function-key-map.
9761
beb9f745
SM
9762 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
9763 This was made redundant by the previous introduction of XSETPVECTYPE.
9764
65342ae3
RS
97652007-10-09 Richard Stallman <rms@gnu.org>
9766
beb9f745 9767 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
9768
97692007-09-29 Richard Stallman <rms@gnu.org>
9770
9771 * eval.c (internal_condition_case_2, internal_condition_case_1)
9772 (internal_condition_case): Reenable abort if x_catching_errors ()
9773 to see if that really happens and why.
9774
6cff77fd
AS
97752007-10-06 Andreas Schwab <schwab@suse.de>
9776
9777 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
9778
bbe6f2aa
JB
97792007-10-04 Juanma Barranquero <lekktu@gmail.com>
9780
9781 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
9782
a390930c
SM
97832007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
9784
9785 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
9786
d6aa1876
SM
97872007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
9788
d0fdb6da
SM
9789 * window.h (struct window):
9790 * window.c (struct save_window_data, struct saved_window):
9791 * termhooks.h (struct terminal):
9792 * process.h (struct Lisp_Process):
9793 * frame.h (struct frame):
9794 * buffer.h (struct buffer):
9795 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
9796 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
9797 The size field of (pseudo)vectors is now unsigned.
9798 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
9799
878f97ff
SM
9800 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
9801 Turn `count' into an integer.
d0fdb6da 9802
878f97ff
SM
9803 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
9804 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
9805 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
9806 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
9807 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
9808
d2029e5b
SM
9809 * alloc.c (allocate_pseudovector): New fun.
9810 (ALLOCATE_PSEUDOVECTOR): New macro.
9811 (allocate_window, allocate_terminal, allocate_frame)
9812 (allocate_process): Use it.
9813 (mark_vectorlike): New function.
9814 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
9815 (mark_terminals): Use it.
9816 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
9817 (Fmake_byte_code): Use XSETPVECTYPE.
9818
9819 * frame.c (Fframe_parameters): Minor simplification.
9820
9821 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
9822
9823 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
9824
9825 * buffer.c (Fget_buffer_create, init_buffer_once):
9826 * lread.c (defsubr):
9827 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
9828
9829 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
9830 defined differently in the m/*.h files.
9831 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
9832 (XSETPVECTYPE): New macro.
9833 (XSETPSEUDOVECTOR): Use it.
9834
d6aa1876
SM
9835 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
9836 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 9837
d6aa1876
SM
9838 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
9839 * lread.c (defvar_per_buffer):
9840 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
9841
9842 * window.c (candidate_window_p): Only consider as visible frames that
9843 are on the same terminal.
9844
9845 * m/ibms390x.h (MARKBIT): Remove unused macro.
9846
88852d45
JB
98472007-10-01 Juanma Barranquero <lekktu@gmail.com>
9848
9849 * lread.c (Fload): Fix typo in docstring.
9850
880820fe 98512007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
9852
9853 * floatfns.c (Fexpt): Manually check for overflows, so that a power
9854 of a non-zero value can't yield zero.
9855
ed0c79c6
SM
98562007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
9857
b870aa61
SM
9858 * term.c (term_clear_mouse_face, term_mouse_highlight)
9859 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
9860
4c37a414
SM
9861 * print.c (safe_debug_print): Use XHASH.
9862
b9466edb
SM
9863 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
9864 Lisp elements such as tags.
9865 (XHASH): New macro.
9866 (EQ): Use it.
9867 (SREF, SSET, STRING_COPYIN): Use SDATA.
9868 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
9869
9c545a55
SM
9870 * alloc.c (mark_terminal): Remove left-over declaration.
9871 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
9872 (allocate_vectorlike): Remove type argument. Adjust callers.
9873 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
9874 Only handle the one remaining MEM_TYPE_VECTORLIKE.
9875
dafc79fa
SM
9876 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
9877 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
9878 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
9879 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
9880 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
9881 Use them.
9882
ed0c79c6
SM
9883 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
9884 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
9885 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
9886
3c81afd4
DN
98872007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9888
9889 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
9890 loaded by default.
9891
6178ce5e
SM
98922007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
9893
4ce5ab77
SM
9894 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
9895 on this tty.
9896 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
9897
6178ce5e
SM
9898 * term.c (mouse_face_window): Rename from Qmouse_face_window.
9899 Update all users.
9900 (handle_one_term_event): Use Gpm_DrawPointer.
9901 (Fgpm_mouse_start): Rename from Fterm_open_connection.
9902 Signal errors instead of returning nil. Always return nil.
9903 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
9904 Make it a noop if gpm-mouse was not activated.
9905 (syms_of_term): Update names.
9906
bdf5f8ef
SM
99072007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
9908
75a8734b
SM
9909 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
9910 (init_sys_modes): Check that gpm_tty is the current tty.
9911
13559ee0
SM
9912 * alloc.c (allocate_terminal): Set the vector size to only count the
9913 lisp fields. Initialize those to nil.
9914 (mark_object): Don't treat terminals specially.
9915 (mark_terminal): Remove.
9916 (mark_terminals): Use mark_object instead.
9917
ff16b875
SM
9918 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
9919 the GC to the beginning.
9920
83155776
SM
9921 * indent.h:
9922 * indent.c: Use EMACS_INT for ints coming from Elisp data.
9923
bdf5f8ef
SM
9924 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
9925
ec8705b6
JR
99262007-09-25 Jason Rumney <jasonr@gnu.org>
9927
9928 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
9929
9930 * w32console.c (create_w32cons_output): Remove.
9931
9932 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
9933
9934 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
9935 (reset_sys_modes): Use reset_terminal_modes_hook.
9936
7351b242
SM
99372007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
9938
9939 * eval.c (do_autoload): Don't output any message.
9940
16706228
JL
99412007-09-24 Juri Linkov <juri@jurta.org>
9942
9943 * emacs.c (standard_args): Change priority of "--no-splash"
9944 from 40 to 3. Add "--no-desktop" with the same priority.
9945
3ae2e3a3
RS
99462007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
9947
9948 * alloc.c (gc_sweep): Check cons cell mark bits word by word
9949 and optimize the case where they are all 1.
9950
7a58fb43
GM
99512007-09-23 Johannes Weiner <hannes@saeurebad.de>
9952
3ae2e3a3
RS
9953 * lisp.h (abs): Define if not defined.
9954 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
9955 Don't define `abs', since it's defined in lisp.h.
7a58fb43 9956
78048085
EZ
99572007-09-22 Eli Zaretskii <eliz@gnu.org>
9958
c7a4b95b 9959 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
9960 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
9961 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
9962 (init_tty): Use DEV_TTY instead of "/dev/tty".
9963 [WINDOWSNT]: No need to protect from NAME arg being null.
9964
23d4cba5
DN
99652007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9966
9967 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
9968 up the tty state.
9969
71f44e7a
SM
99702007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9971
9972 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
9973 (gpm_tty): Change its type.
9974 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
9975 (gpm_tty): Change its type and initialize it.
9976 (Fterm_open_connection): Check the frame is indeed a tty.
9977 Use the new gpm_tty.
9978 (Fterm_close_connection): Use the new gpm_tty.
9979 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
9980 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
9981
def7fa34
JB
99822007-09-21 Juanma Barranquero <lekktu@gmail.com>
9983
9984 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
9985 underline_color, to draw strike-through.
9986
d2bb6598
SM
99872007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9988
273f164c
SM
9989 * lisp.h (allocate_terminal): Declare.
9990
ca2d5566
SM
9991 * window.c (candidate_window_p): Consider frames that are being placed
9992 by the user as somewhere between visible and iconified.
9993 (window_loop): Prefer windows on the current frame.
9994 (Fselect_window): Move the use of select-frame to the beginning so we
9995 can just delegate all the work (it'll call us back anyway).
9996
6168122d
SM
9997 * frame.c (Qdisplay_environment_variable):
9998 * frame.h (Qdisplay_environment_variable): Delete.
9999
c51842ec
SM
10000 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10001 of the first arg, since that value may be a union.
10002
d2bb6598
SM
10003 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10004 parameter rather than Qdisplay_environment_variable. If all else
10005 fails, look for DISPLAY in initial-environment.
10006
6f022c19
GM
100072007-09-21 Glenn Morris <rgm@gnu.org>
10008
10009 * Makefile.in (emacstool): Remove target.
f466320b 10010 (lisp, shortlisp): Remove termdev.elc.
6f022c19 10011
ea1bf8c7
GM
100122007-09-21 Markus Triska <markus.triska@gmx.at>
10013
d2bb6598 10014 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 10015
d30a25b3
SM
100162007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10017
db699fc6
SM
10018 * callproc.c (getenv_internal_1): New function.
10019 (getenv_internal): Use it.
10020 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10021
d2bb6598 10022 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
10023 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10024 (Fset_terminal_parameter): Work with dead terminals as well.
10025 (Fmodify_terminal_parameters): Remove.
10026
d30a25b3
SM
10027 * terminal.c (get_terminal): Handle terminals.
10028 Make sure the terminal returned is live.
10029 (create_terminal): Use allocate_terminal.
10030 (mark_terminals): Move to alloc.c.
10031 (delete_terminal): Use terminal->name as liveness status.
10032 NULL out fields after freeing their contents.
10033 Don't deallocate the object.
10034 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10035 rather than an int.
10036 (Fterminal_live_p): Accept non-integer arguments.
10037 (Fterminal_list): Return terminal objects rather than an ints.
10038
10039 * alloc.c (enum mem_type): New member for `terminal' objects.
10040 (allocate_terminal): New function.
d2bb6598
SM
10041 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10042 Handle terminals.
d30a25b3
SM
10043 (mark_terminal): New fun.
10044 (mark_terminals): Move from terminal.c.
10045
10046 * term.c (get_tty_terminal): Don't treat output_initial specially.
10047 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10048 (delete_tty): Use terminal->name as liveness status.
10049
10050 * termhooks.h (struct terminal): Make it into a pseudovector.
10051 Remove `deleted' replaced by checking `name's nullness.
10052
10053 * print.c (print_object): Handle terminals.
10054
10055 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10056 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10057
10058 * frame.c (make_terminal_frame):
10059 * keyboard.c (tty_read_avail_input):
10060 * w32term.c (x_delete_terminal):
10061 * xfns.c (Fx_create_frame, x_create_tip_frame):
10062 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10063
eba25e7c
GM
100642007-09-20 Glenn Morris <rgm@gnu.org>
10065
10066 * process.c (Fmake_network_process): Doc fix.
10067
2a29c3c1
JR
100682007-09-19 Jason Rumney <jasonr@gnu.org>
10069
10070 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10071
880820fe 100722007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
10073
10074 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10075 Fix a C warning regarding variable constness.
10076
10077 * xterm.c (handle_one_xevent): Fix a C warning.
10078
334a1195
JR
100792007-09-18 Jason Rumney <jasonr@gnu.org>
10080
10081 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10082
880820fe 100832007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
10084
10085 * gtkutil.c (gdpy_def): New variable.
10086 (xg_initialize): Initialize gdpy_def.
10087 (xg_display_close): If no other display exists, set gdpy_def to a
10088 new connection.
10089
880820fe 100902007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
10091
10092 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10093 when we have no file name for the icon.
10094 (xg_tool_bar_expose_callback): Remove.
10095 (xg_create_tool_bar): Don't connect expose signal to
10096 xg_tool_bar_expose_callback.
10097 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10098
4d580af2
AS
100992007-09-16 Andreas Schwab <schwab@suse.de>
10100
10101 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10102 values instead of zapping them.
10103
aca946f3
GM
101042007-09-14 Glenn Morris <rgm@gnu.org>
10105
10106 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10107 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10108 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10109 scope and rename to omfib_buffer for clarity.
10110 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10111
25c460e5
KH
101122007-09-14 Kenichi Handa <handa@m17n.org>
10113
10114 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10115
09b69f01
JR
101162007-09-13 Jason Rumney <jasonr@gnu.org>
10117
10118 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10119
10120 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10121
10122 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10123 (mac_term_init): Call here instead, passing rif.
10124
442218db
GM
101252007-09-13 Glenn Morris <rgm@gnu.org>
10126
10127 * s/hpux.h: No longer define `static' as nothing.
10128
880820fe 101292007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
10130
10131 * callint.c (Fcall_interactively): Remove unused var `fun'.
10132
1971a872
RF
101332007-09-12 Romain Francoise <romain@orebokech.com>
10134
10135 * window.c (prefer_window_split_horizontally, display_buffer):
10136 Revert 2007-09-08 change.
10137
2d33f506
GM
101382007-09-12 Glenn Morris <rgm@gnu.org>
10139
585474ae 10140 * alloca.c: Remove file.
ca7af97a
GM
10141 * Makefile.in (alloca): Do not undef.
10142 (allocaobj, alloca.o): Remove.
10143 (otherobj): Remove allocaobj.
10144 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10145 * regex.c (C_ALLOCA): Remove all references and code that was only
10146 used when this was defined.
10147 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10148 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
10149 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10150
2d33f506 10151 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
10152
10153 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10154 (menu_grab_callback): All uses changed.
10155
10156 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10157 (x_reply_selection_request): All uses changed.
2d33f506 10158
18a4a65e
SM
101592007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10160
10161 * lread.c (load_warn_old_style_backquotes): Change message to look
10162 better when it appears in the middle of byte-compiler messages.
10163
47cc8819
DN
101642007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10165
b7ea0894
DN
10166 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10167
47cc8819
DN
10168 * xterm.c (x_create_terminal): Add comment.
10169
10170 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10171
5632bd0f
RS
101722007-09-10 Richard Stallman <rms@gnu.org>
10173
10174 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10175
880820fe 101762007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 10177
4bca9161
MC
10178 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
10179 (DEFUN): Document `intspec', use it instead of `prompt'.
10180
04724b69
MC
10181 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
10182
8a6d230a
MC
10183 * data.c (Finteractive_form): If the interactive specification starts
10184 with a `(', use it as a Lisp form.
10185
09fbdf6c
MC
10186 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
10187 name and file modes.
10188
ccb5c14f
MC
10189 * callint.c (Fcall_interactively): Comment fixes.
10190
023accd6
SM
101912007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10192
10193 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
10194 and compiled functions.
10195
f26b9544
EZ
101962007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
10197
10198 * window.c (prefer_window_split_horizontally): New variable.
10199 (display_buffer): Consider splitting window horizontally depending
10200 on prefer_window_split_horizontally.
10201
4d395425
EZ
102022007-09-08 Eli Zaretskii <eliz@gnu.org>
10203
97ddc760 10204 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 10205
08c1d235
SM
102062007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10207
179cef48
SM
10208 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
10209
08c1d235
SM
10210 * frame.c (x_set_frame_parameters): Check number is positive before
10211 using XFASTINT.
10212
10213 * window.c (freeze_window_start): Don't presume selected_window holds
10214 a window object.
92f94a12 10215 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 10216
97ddc760 102172007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
10218
10219 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
10220
90ab5c62
SM
102212007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10222
10223 * window.c (Vsplit_window_preferred_function): New var.
10224 (Fdisplay_buffer): Use it.
10225 (syms_of_window): Export, and initialize it.
10226
1ab2cd43
TTN
102272007-09-06 Pixel <pixel@mandriva.com> (tiny change)
10228
10229 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
10230
0b0515bc
GM
102312007-09-06 Glenn Morris <rgm@gnu.org>
10232
57fd5c55 10233 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
10234 * xselect.c (x_reply_selection_request) <cnt>: Move static
10235 variable to file scope.
10236
98594580
SM
102372007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
10238
10239 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
10240 consistent values of selected_frame and selected_window.
10241
0f4c7aef
JR
102422007-09-04 Jason Rumney <jasonr@gnu.org>
10243
10244 * w32console.c (initialize_w32_display): Zero unused hooks.
10245
e4019195
DN
102462007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10247
10248 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
10249 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
10250
bce179b5
JR
102512007-09-04 Jason Rumney <jasonr@gnu.org>
10252
a0236551
JR
10253 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
10254 in w32console.c. Set up input. Remove XXX comments that have been
10255 confirmed as correct.
10256
a4926668
JR
10257 * s/ms-w32.h (MULTI_KBOARD): Define.
10258
953bf0dc
JR
10259 * w32console.c (one_and_only_w32cons): Remove.
10260 (initialize_w32_display): Take terminal argument.
10261
10262 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
10263 initialize_w32_display.
10264 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
10265
bce179b5
JR
10266 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
10267
10268 * keyboard.c (discard_mouse_events): Discard it.
10269 (make_lispy_event): Translate it to a lisp event.
10270 (lispy_wheel_names): Add wheel-left and right events.
10271 (syms_of_keyboard): Enlarge wheel_syms.
10272
10273 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
10274 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
10275
10276 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
10277
10278 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
10279 from WM_MOUSEHWHEEL.
10280 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
10281
10282 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
10283 terminal.
10284
10285 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
10286 keyboard for the terminal.
10287
92cd6a7c
DN
102882007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10289
10290 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
10291 (Vresume_tty_hook): Rename from Vresume_tty_functions.
10292 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
10293 and resume-tty-function to resume-tty-hook.
10294 (Fsuspend_tty, Fresume_tty): Use new names.
10295
880820fe 102962007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
10297
10298 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
10299 if it starts with "n:".
10300
880820fe 103012007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
10302
10303 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
10304
6b8e474c
SM
103052007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10306
92d9c1d4
SM
10307 * frame.h:
10308 * frame.c (Qterm_environment_variable): Remove.
10309 (syms_of_frame): Don't init and staticpro it.
10310
92d9c1d4
SM
10311 * callproc.c (getenv_internal): Remove special case for $TERM.
10312
6b8e474c
SM
10313 * callproc.c (Vinitial_environment): New variable.
10314 (set_initial_environment): Initialize it.
10315 (syms_of_callproc): Declare it.
10316 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
10317 TERM under which a process runs is never related to the TERM in which
10318 Emacs is running.
10319
0f1444e1
DN
103202007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10321
10322 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
10323 * s/darwin.h: ... do it here.
10324
b8866860
SM
103252007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10326
10327 * lisp.h (set_initial_environment): Rename from set_global_environment.
10328
10329 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
10330 removed by mistake on the multi-tty branch.
10331
10332 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
10333 (Fmodify_frame_parameters): Return a value.
10334
10335 * image.c (png_load): Comment-out var only used in commented-out code.
10336
10337 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
10338 before passing it to mark_object.
10339
10340 * xfaces.c (internal_resolve_face_name): Return a value.
10341 (internal_resolve_face_name, resolve_face_name_error): Comment out.
10342
10343 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
10344 (x_icon): Comment-out var only used in commented-out code.
10345
0a42be6d
RF
103462007-08-29 Romain Francoise <romain@orebokech.com>
10347
10348 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
10349 QUIT hasn't been provided.
10350
8d9cc0b7
MB
103512007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10352
10353 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 10354 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
10355 (set_initial_environment): Initialise Vprocess_environment.
10356
10357 * config.in: Disable multi-keyboard support on a mac.
10358
10359 * frame.c (Qterm_environment_variable)
10360 (Qdisplay_environment_variable): New variables.
10361 (syms_of_frame): Intern and staticpro them.
10362 (Fmake_terminal_frame): Disable output method test.
10363
10364 * frame.h: Declare them here.
10365
10366 * macfns.c (x_set_mouse_color): Get rif from the frame.
10367 (x_set_tool_bar_lines): Don't use updating_frame.
10368 (mac_window): Add 2 new parameters for consistency with other systems.
10369 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
10370 frame parameters following what is done in X11 and w32. Don't use
10371 FRAME_MAC_DISPLAY_INFO.
10372 (Fx_open_connection, start_hourglass): Remove window-system check.
10373 (x_create_tip_frame): Get the keyboard from the terminal.
10374
10375 * macmenu.c: Reorder includes.
10376 (Fx_popup_menu): Use terminal specific mouse_position_hook.
10377
10378 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
10379 terminal parameter.
10380 (x_clear_frame): Add a frame parameter.
10381 (note_mouse_movement): Get rif from the frame.
10382 (mac_term_init): Initialize the terminal.
10383 (mac_initialize): Make static and move terminal initialization ...
10384 (mac_create_terminal): ... to this new function.
10385
10386 * macterm.h (struct mac_display_info): Add terminal.
7196c970 10387 (mac_initialize): Delete declaration.
8d9cc0b7 10388
381864b2 10389 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
10390
10391 * sysdep.c: Comment out text after #endif.
10392
10393 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
10394 is defined. Better initialize ttys in windows. Use terminal
10395 specific mouse_position_hook.
10396
10397 * termhooks.h (union display_info): Add mac_display_info.
10398
b8866860
SM
10399 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
10400 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
10401 frame parameters following what is done in X11.
10402
10403 * w32term.c (w32_initialize): Make static.
10404
10405 * xselect.c (x_handle_selection_clear): Only access
10406 terminal->kboard when MULTI_KBOARD is defined.
10407
10408 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
10409 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
10410
104112007-08-29 Jason Rumney <jasonr@gnu.org>
10412
10413 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
10414 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
10415
10416 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
10417 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
10418
10419 * keyboard.c (restore_kboard_configuration): Only define when
10420 MULTI_KBOARD defined.
10421
35277b03 10422 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
10423 (OBJ1): Add terminal.$(O)
10424
b8866860
SM
10425 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
10426 Don't define function body.
8d9cc0b7
MB
10427 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
10428
10429 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
10430
10431 * w32.c (request_sigio, unrequest_sigio): Remove.
10432
10433 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
10434 (w32con_clear_frame, w32con_clear_end_of_line)
10435 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
10436 (w32con_delete_glyphs, w32con_set_terminal_window)
10437 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
10438 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
10439 Add terminal arg.
8d9cc0b7
MB
10440 (PICK_FRAME): Remove.
10441 (w32con_write_glyphs): Use frame specific terminal coding.
10442 (one_and_only_w32cons): New global variable.
10443 (initialize_w32_display): Use it for storing hooks.
10444 (create_w32cons_output): New function.
10445
10446 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
10447 arg a frame.
10448
b8866860
SM
10449 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
10450 Set window_system.
8d9cc0b7
MB
10451 (x_set_tool_bar_lines): Don't use updating_frame.
10452 (Fx_create_frame): Set terminal and ref count.
10453 (Fx_open_connection): Remove window-system check.
10454
10455 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
10456
10457 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
10458 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
10459 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
10460 Add frame arg.
10461 (x_delete_terminal, w32_create_terminal): New functions.
10462 (w32_term_init): Create a terminal.
10463 (w32_initialize): Move terminal specific initialization to
10464 w32_create_terminal.
10465
b8866860 10466 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
10467 (w32_clear_rect, w32_clear_area): Use background from frame.
10468 (w32_display_info): Add terminal.
10469 (w32_sys_ring_bell, x_delete_display): Declare here.
10470
10471 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
10472
10473 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
10474
104752007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
10476
10477 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
10478 Fix get_named_tty calls for the controlling tty.
10479
104802007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
10481
10482 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
10483
104842007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
10485
10486 * term.c (tty_insert_glyphs): Add missing first parameter.
10487
880820fe 104882007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 10489
b8866860
SM
10490 * buffer.c (Fbuffer_list, Fbury_buffer):
10491 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
10492
10493 * cm.c (current_tty): New variable, for cmputc().
10494 (cmputc): Use it.
10495 (cmcheckmagic): Add tty parameter, look up terminal streams there.
10496 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
10497 (cmgoto): Add tty parameter. Pass it on to calccost().
10498 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
10499
10500 * cm.h (emacs_tputs): New macro to set current_tty, and then call
10501 tputs().
10502 (current_tty): New variable, for cmputc().
10503 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
10504
10505 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
10506 (internal_condition_case, internal_condition_case_1)
10507 (internal_condition_case_2): Don't abort when x_catching_errors.
10508
10509 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
10510 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
10511 prevent crashes caused by bogus longjmps in read_char.
10512
10513 * keymap.h (Fset_keymap_parent): Add EXFUN.
10514
10515 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
10516 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10517 Remove redundant definition.
10518
b8866860
SM
10519 * macfns.c (x_set_mouse_color, x_make_gc):
10520 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 10521
b8866860
SM
10522 * w32term.c (x_free_frame_resources):
10523 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10524 (w32_initialize): Use the accessor macros for terminal characteristics.
10525
10526 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
10527 Use the accessor macros for terminal characteristics.
10528 * msdos.c (internal_terminal_init): Use the accessor macros for
10529 terminal characteristics.
b8866860
SM
10530 (ScreenVisualBell, internal_terminal_init):
10531 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10532
10533 * termopts.h (no_redraw_on_reenter): Declare.
10534
10535 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 10536 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 10537 (Fgarbage_collect): Call them.
03f06e5c 10538 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
10539
10540 * prefix-args.c: Include stdlib.h for exit.
10541
10542 * syssignal.h: Add comment.
10543
10544 * indent.c: Include stdio.h.
10545
10546 * window.h (Vinitial_window_system): Declare.
10547 (Vwindow_system): Delete declaration.
10548
10549 * fontset.c (Finternal_char_font): Use FRAME_RIF.
10550
10551 * image.c (lookup_image): Don't initialize `c' until the xasserts
10552 have been run.
10553
10554 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
10555 FRAME_FOREGROUND_PIXEL.
10556
10557 * print.c (print_preprocess): Don't lose print_depth levels while
10558 iterating.
10559
b8866860
SM
10560 * widget.c (update_from_various_frame_slots):
10561 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10562
10563 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
10564 frames.
10565 (window_internal_height): Remove bogus make_number call.
b8866860 10566 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
10567
10568 * fileio.c (Fread_file_name): Update comment.
10569
b8866860
SM
10570 * callint.c (Fcall_interactively):
10571 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
10572 Make sure it is correctly unwound.
10573
10574 * xsmfns.c (x_session_close): New function.
10575
03f06e5c 10576 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
10577 Delete declarations.
10578
10579 * xterm.h: Remove declaration for x_fully_uncatch_errors.
10580 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 10581 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 10582 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
10583
10584 * lread.c: Include setjmp.h. Update declaration of `read_char'.
10585 (read_filtered_event): Call `read_char' with a local
10586 `wrong_kboard_jmpbuf'.
10587
b8866860
SM
10588 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
10589 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
10590
10591 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
10592 systems.
10593
b8866860 10594 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 10595 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 10596 (Fset_quit_char): EXFUN.
03f06e5c 10597 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
10598 (init_sys_modes, reset_sys_modes): Update prototypes.
10599 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
10600
b8866860
SM
10601 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
10602 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 10603 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 10604 Delete declarations.
03f06e5c
JB
10605 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
10606 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
10607 New declarations.
10608
10609 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
10610 already does that during init_display(). Call syms_of_keymap
b8866860
SM
10611 before syms_of_keyboard. Call `syms_of_terminal'.
10612 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
10613 (shut_down_emacs): Call reset_all_sys_modes() instead of
10614 reset_sys_modes().
10615
10616 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
10617 (internal_resolve_face_name, resolve_face_name_error): New functions.
10618 (resolve_face_name): Protect against loops and errors thrown by Fget.
10619 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
10620 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
10621
10622 * scroll.c: Replace CURTTY() with local variables throughout the
10623 file (where applicable).
10624 (calculate_scrolling, calculate_direct_scrolling)
10625 (scrolling_1, scroll_cost): Use the accessor macros for terminal
10626 characteristics.
10627
10628 * keymap.c (Vfunction_key_map): Remove.
b8866860 10629 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
10630 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
10631 (Vkey_translation_map): Remove.
10632 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 10633 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
10634 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
10635 Update for terminal-local key-translation-map.
10636
10637 * Makefile.in (callproc.o): Update dependencies.
10638 (lisp, shortlisp): Add termdev.elc.
10639 (obj): Add terminal.o.
10640 (terminal.o): Add dependencies.
10641 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
10642 (data.o, fns.o): Add termhooks.h dependency.
10643 (SOME_MACHINE_LISP): Add dnd.elc.
10644 (minibuf.o): Fix typo.
10645 Update dependencies.
10646
10647 * data.c (do_symval_forwarding, store_symval_forwarding)
10648 (find_symbol_value): Use the selected frame's keyboard, not
10649 current_kboard.
10650
10651 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
10652 Vwindow_system.
10653
10654 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
10655 Fmenu_bar_open.
10656 (syms_of_xmenu): Update defsubr.
10657 (mouse_position_for_popup, Fx_popup_menu)
10658 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
10659 (set_frame_menubar, free_frame_menubar)
10660 (create_and_show_popup_menu, xmenu_show, )
10661 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
10662 an X frame.
10663
10664 * xselect.c (x_own_selection): Abort if not an X frame.
10665 (some_frame_on_display): Check if it is an X frame.
10666 (x_handle_selection_clear): Deal with MULTI_KBOARD.
10667
10668 * coding.c: Include frame.h and termhooks.h.
03f06e5c 10669 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
10670 (Fset_terminal_coding_system_internal)
10671 (Fset_keyboard_coding_system_internal)
10672 (Fkeyboard_coding_system)
03f06e5c
JB
10673 (Fterminal_coding_system): Add a terminal parameter.
10674 Get terminal_coding from the terminal.
8d9cc0b7
MB
10675 (init_coding_once): Don't call setup_coding_system here.
10676
10677 * dispextern.h (set_scroll_region, turn_off_insert)
10678 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
10679 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 10680 (delete_tty, updating_frame)
8d9cc0b7
MB
10681 (produce_special_glyphs, produce_glyphs, write_glyphs)
10682 (insert_glyphs): Remove.
10683 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 10684 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 10685 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
10686
10687 * frame.h (enum output_method): Add output_initial.
10688 (struct x_output): Delete.
b8866860
SM
10689 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10690 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
10691 (tty_display): Delete.
10692 (struct frame): Add buried_buffer_list, foreground_pixel,
03f06e5c 10693 background_pixel and terminal. Delete kboard
8d9cc0b7
MB
10694 (union output_data): Add tty.
10695 (FRAME_KBOARD): Get the kboard from the terminal.
10696 (FRAME_INITIAL_P): New macro.
10697 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
10698 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
10699 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
10700 New declarations.
8d9cc0b7
MB
10701
10702 * termchar.h (tty_output, tty_display_info): New structures.
10703 (tty_list): Declare.
10704 (FRAME_TTY, CURTTY): New macros.
10705 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
10706 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
10707 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
10708 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
10709
10710 * callproc.c: Include frame.h and termhooks.h, for terminal
10711 parameters.
10712 (add_env): New function.
10713 (child_setup): Use it.
b8866860 10714 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
10715 (getenv_internal): Fix get_terminal_param call.
10716 (Fgetenv_internal, egetenv): Update doc.
10717 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 10718 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
10719 strings.
10720 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
10721 (getenv_internal): Add terminal parameter.
10722 Handle Vlocal_environment_variables.
8d9cc0b7
MB
10723 (Fgetenv_internal): Add terminal parameter.
10724 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 10725 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
10726 (set_initial_environment): Rename from set_global_environment.
10727 Store Emacs environment in initial frame parameter.
10728
10729 * xdisp.c (redisplay_internal): Update references to
10730 `previous_terminal_frame'.
10731 (display_mode_line, Fformat_mode_line): Replace calls to
10732 `push_frame_kboard' with `push_kboard'.
10733 (get_glyph_string_clip_rects): Add extra parentheses and
10734 braces to prevent compiler warnings.
10735 (calc_pixel_width_or_height): Add xassert to check that the
10736 frame is alive. Don't call `lookup_image' on a termcap frame.
10737 (message2_nolog, message3_nolog, redisplay_internal)
10738 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
10739 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
10740 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
10741 (Fx_display_pixel_width, Fx_display_pixel_height)
10742 (Fx_display_planes, Fx_display_color_cells)
10743 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
10744 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
10745 (Fx_display_backing_store, Fx_display_visual_class)
10746 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 10747 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
10748
10749 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
10750 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
10751 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10752 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
10753 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
10754 terminal that is being deleted.
10755 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 10756 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
10757 (Fx_close_connection, Fx_synchronize): Unify argument names with
10758 the rest of the DEFUNs.
10759
10760 * dispnew.c (Fsend_string_to_terminal): Update call to
10761 `get_tty_terminal'.
10762 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 10763 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
10764 FRAME_TERMCAP_P and FRAME_TTY.
10765 (window_change_signal): Don't believe width/height values that are
10766 impossibly small.
10767 (Vinitial_window_system): Rename from Vwindow_system.
10768 (termscript, Wcm, rif): Delete.
10769
10770 * termhooks.h (struct terminal): New struct containing the
10771 previously global text display hooks and new members NAME,
10772 DELETED and PARAM_ALIST.
10773 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
10774 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
10775 (FRAME_RIF): New macros.
10776 (get_terminal_param, get_device): New declarations.
10777 (termscript): Delete declaration.
10778
10779 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
10780 (XTflash, x_free_frame_resources, x_scroll_bar_create)
10781 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
10782 FRAME_FOREGROUND_PIXEL.
10783 (x_fully_uncatch_errors): Disable definition.
10784 (x_scroll_bar_expose): Fix reference to foreground pixel.
10785 (XTread_socket): Disable loop on all X displays.
10786 (x_delete_terminal): Don't set terminal->deleted and let
10787 delete_terminal delete the frames on the terminal.
10788 (x_delete_display): Doc update to reflect changes in
10789 delete_terminal.
10790 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
10791 (deleting_tty): Remove old variable.
10792 (Fsuspend_tty): Call clear_tty_hooks.
10793 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
10794 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
10795 errors on X frames.
10796 (x_catch_errors_unwind): Abort if x_error_message is NULL.
10797 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 10798 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
10799 (XTset_terminal_modes, XTreset_terminal_modes)
10800 (XTread_socket, x_connection_closed, x_term_init)
10801 (x_term_init, x_delete_display): Add terminal parameter.
10802 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
10803 X connections.
10804
bf380f53
GM
10805 * frame.c: Include termchar.h.
10806 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
10807 (Qwindow_system, Qenvironment, Qterm_environment_variable)
10808 (Qdisplay_environment_variable): New vars.
10809 (Fframep): Deal with output_initial.
10810 (Fframe-live-p): Doc fix.
10811 (Fwindow-system): New function.
8d9cc0b7
MB
10812 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
10813 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 10814 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 10815 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
10816 (Fmake_terminal_frame): Handle NULL tty names correctly.
10817 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
10818 (Fdelete_frame): Remove unused variable `count'. Don't allow other
10819 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 10820 (Fframe_with_environment): New function.
b8866860 10821 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
10822 (get_future_frame_param): New function.
10823 (Fmake_terminal_frame): Use it.
2d33f506 10824 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
10825
10826 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
10827 * sysdep.c (reset_sys_modes): Update for renames.
10828
10829 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 10830 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
10831 (syms_of_keyboard): Defsubr them.
10832 (Fset_input_meta_mode, Fset_quit_char): New functions.
10833 (Fset_input_mode): Split to above functions.
10834
10835 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
10836 parameter. Use it in call to `read_char'.
b8866860
SM
10837 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
10838 Set wrong_kboard_jmpbuf correctly in recursive calls.
10839 Use current_kboard to access Vkeyboard_translate_table.
10840 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
10841 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
10842 Update longjmp invocations. Remember the original current_kboard,
10843 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
10844 changes it. Comment out unnecessary calls to
10845 `record_single_kboard_state' and `any_kboard_state'.
10846 Update recursive calls.
8d9cc0b7
MB
10847 (wrong_kboard_jmpbuf): Remove global variable.
10848 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
10849 Handle deleted interrupted_kboards correctly; that is a legal
10850 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 10851 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
10852 (any_kboard_state, single_kboard_state)
10853 (push_frame_kboard): Remove function.
10854 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
10855 been deleted. Remove unused variable. Help debugging by not
10856 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
10857 kboard of the selected frame when the stored kboard object has
10858 been deleted before pop_kboard.
10859 (temporarily_switch_to_single_kboard): Change first parameter to a
10860 frame pointer. Throw an error when caller wants to change kboards
10861 while in single_kboard mode. Don't push_kboard if we weren't in
10862 single kboard state. Don't pop_kboard if we popped into any
10863 kboard state.
10864 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 10865 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
10866 up single_kboard mode.
10867 (Frecursive_edit): Switch to single_kboard mode only in nested
10868 command loops.
b8866860
SM
10869 (cmd_error, command_loop, command_loop_1, timer_check):
10870 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
10871 `record_single_kboard_state'.
10872 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 10873 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
10874 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
10875 `fatal_error_signal'.
10876 (record_single_kboard_state): Don't push_kboard if we weren't in
10877 single kboard state. Don't pop_kboard if we popped into any
10878 kboard state.
10879 (push_frame_kboard): Rename to push_kboard.
10880 (kbd_buffer_get_event): Use FRAME_TERMINAL.
10881 (read_avail_input): Read input from all terminals.
10882 (mark_kboards): Also mark Vkeyboard_translate_table.
10883 (kbd_buffer_store_event_hold): Simplify condition.
10884 (read_key_sequence): Reinitialize fkey and keytran at each replay.
10885 (Vkeyboard_translate_table): Move to struct kboard.
10886 (init_kboard): Initialize Vkeyboard_translate_table.
10887 (syms_of_keyboard): Use DEFVAR_KBOARD to define
10888 Vkeyboard_translate_table. Update doc strings. Update docs of
10889 local-function-key-map and function-key-map.
10890
10891 * terminal.c: New file.
10892
10893 * term.c: Include errno.h.
10894 (Vring_bell_function, device_list, initial_device)
10895 (next_device_id, ring_bell, update_begin, update_end)
10896 (set_terminal_window, cursor_to, raw_cursor_to)
10897 (clear_to_end, clear_frame, clear_end_of_line)
10898 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
10899 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
10900 (syms_of_term): Move their initialization to terminal.c.
10901 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
10902 (Ftty_display_color_cells)
10903 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 10904 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
10905 (init_tty, maybe_fatal): New functions.
10906 (Ftty_type): Return nil if terminal is not on a tty instead of
10907 throwing an error. Doc update.
10908 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 10909 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
10910 (delete_tty): Use terminal->deleted.
10911 (tty_set_terminal_modes): Rename from set_terminal_modes.
10912 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
10913 (set_scroll_region): Rename to `tty_set_scroll_region'.
10914 (turn_on_insert): Rename to `tty_turn_on_insert'.
10915 (turn_off_insert): Rename to `tty_turn_off_insert'.
10916 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
10917 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
10918 (toggle_highligh): Rename to `tty_toggle_highlight'.
10919 (background_highlight): Rename to `tty_background_highlight'.
10920 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
10921 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
10922 (tty_set_scroll_region, tty_background_highlight)
10923 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
10924 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
10925 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
10926 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
10927 Add static modifier.
10928 (tty_reset_terminal_modes, tty_set_terminal_window)
10929 (tty_set_scroll_region, tty_background_highlight)
10930 (tty_highlight_if_desired, tty_cursor_to)
10931 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
10932 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
10933 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
10934 renames.
10935
880820fe 109362007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
10937
10938 * keyboard.c: Qrtl is new.
10939 (parse_tool_bar_item): Handle :rtl keyword.
10940 (syms_of_keyboard): Intern :rtl keyword.
10941
10942 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
10943
10944 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
10945 so no Lisp code is executed.
10946 (file_for_image, find_rtl_image): New functions.
10947 (xg_get_image_for_pixmap): Use file_for_image
10948 (update_frame_tool_bar): If direction is RTL, use RTL image if
10949 defined. Use Gtk stock images if defined.
10950
83cc8d35
YM
109512007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10952
10953 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
10954 for nonexistent or zero-width glyph in composition glyph.
10955
e60c4e15
SM
109562007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
10957
d7e2a28f
SM
10958 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
10959
e60c4e15
SM
10960 * xdisp.c (Finvisible_p): New function.
10961 (syms_of_xdisp): defsubr it.
10962
ee163e6d
JB
109632007-08-24 Juanma Barranquero <lekktu@gmail.com>
10964
10965 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
10966 Doc fixes.
10967
90fa408d
YM
109682007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10969
35277b03 10970 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 10971
cac4219c
MR
109722007-08-24 Martin Rudalics <rudalics@gmx.at>
10973
10974 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
10975 whether decoding has modified buffer contents.
10976
5fc9fdeb
JR
109772007-08-24 Jason Rumney <jasonr@gnu.org>
10978
10979 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
10980 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
10981 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
10982 (init_svg_functions) [HAVE_NTGUI]: New function.
10983 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
10984 (svg_load_image): Use them.
10985 (svg_load_image) [HAVE_NTGUI]: Implement background.
10986
93b23406
YM
109872007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10988
10989 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
10990 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
10991 (LIBX): Remove @RSVG_LIBS@.
10992 (LIBES): Add $(RSVG_LIBS).
10993
10994 * image.c (svg_load_image): Blend with specified background if exists.
10995 Use IMAGE_BACKGROUND. Add Mac OS Support.
10996
10997 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
10998 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
10999 Remove macros.
11000 [MAC_OSX] (socket_callback): Do nothing.
11001 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11002 ReceiveNextEvent.
11003 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11004 socket_callback.
11005 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11006
2467875c
GM
110072007-08-22 Glenn Morris <rgm@gnu.org>
11008
ff8da443 11009 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 11010
4ab27a43
GM
110112007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11012
11013 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 11014
666e0eda
GM
11015 * image.c: Add support for SVG images. Some additional comments
11016 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11017 (svg_image_p): New function to test for SVG image.
11018 (svg_load): New function to load SVG image.
11019 (svg_load_image): New function, helper for svg_load.
11020 (Qsvg): New Lisp_object.
11021 (svg_keyword_index): New enum.
11022 (svg_format): New static `image_keyword' struct.
11023 (svg_type): New static `image_type' struct.
11024 (librsvg/rsvg.h): Include it.
4ab27a43 11025
b636b4c1
SM
110262007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11027
11028 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11029
9ecb827b
SM
110302007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11031
1d064697
SM
11032 * lread.c (Qold_style_backquotes): New var.
11033 (syms_of_lread): Init and staticpro it.
11034 (load_warn_old_style_backquotes): New fun.
11035 (Fload): Use them to warn about old style backquotes.
11036 (end_of_file_error, Fload): Remove unused vars.
11037
5772ed4b
SM
11038 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11039
9ecb827b 11040 * lread.c (Vold_style_backquotes): New var.
5aa273b0 11041 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
11042 (read1): Set it when we find an old-style (back)quote.
11043
32e1c7b1
JR
110442007-08-22 Jason Rumney <jasonr@gnu.org>
11045
11046 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11047
b8fa755b
KY
110482007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11049
11050 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11051
1283140e
RS
110522007-08-19 Richard Stallman <rms@gnu.org>
11053
11054 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11055
2c4685ee
AS
110562007-08-19 Andreas Schwab <schwab@suse.de>
11057
11058 * alloc.c (pure): Round PURESIZE up.
11059
880820fe 110602007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
11061
11062 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11063 active frame.
11064
6e33efc4
RS
110652007-08-16 Richard Stallman <rms@gnu.org>
11066
11067 * eval.c (Fcommandp): Add parens to clarify.
11068
11069 * minibuf.c (Fall_completions): Use enum for type of table.
11070
11071 * emacs.c (USAGE2): Improve text.
11072
fcf8ff2e
GM
110732007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11074
5205ee62
GM
11075 * term.c (tty_default_color_capabilities): Declare static
11076 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 11077
880820fe 110782007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
11079
11080 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11081 to gtk_toolbar_insert.
11082
4a181359
SM
110832007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11084
1bc99c9c
SM
11085 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11086
4a181359
SM
11087 * insdel.c (reset_var_on_error): New fun.
11088 (signal_before_change, signal_after_change):
11089 Use it to reset (after|before)-change-functions to nil in case of error.
11090 Bind inhibit-modification-hooks to t.
11091 Don't bind (after|before)-change-functions to nil while they run.
11092
6c28435c
YM
110932007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11094
11095 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11096 filling pixmap with stippled background.
11097
ad3b3e02
YM
110982007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11099
11100 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11101 Don't use invisible frame as parent window for repositioning.
11102
a22dec27
SM
111032007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11104
11105 * print.c (new_backquote_output): Rename from old_backquote_output.
11106 (print): Inverse its logic (according to its name) so as to match the
11107 behavior of new_backquote_flag in lread.c.
11108
7b7d07bb
YM
111092007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11110
11111 * gmalloc.c (posix_memalign): New function.
11112
11113 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11114 ActivateControl/DeactivateControl here.
11115 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11116 frame-notice-user-settings is non-nil.
11117 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11118 for kEventParamFMFontStyle.
11119 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11120 mac_pass_command_to_system and mac_pass_control_to_system here.
11121 (XTread_socket): Call ActivateControl/DeactivateControl here.
11122 (XTread_socket) [TARGET_API_MAC_CARBON]:
11123 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
11124 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11125 for window repositioning.
7b7d07bb 11126
22e9fe24
GM
111272007-08-08 Glenn Morris <rgm@gnu.org>
11128
11129 * Replace `iff' in doc-strings and comments.
11130
ae494350
CY
111312007-08-07 Chong Yidong <cyd@stupidchicken.com>
11132
11133 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11134
6f2528d8
MR
111352007-08-07 Martin Rudalics <rudalics@gmx.at>
11136
11137 * fileio.c (Finsert_file_contents): Run format-decode and
11138 after_insert_file_functions on entire buffer when REPLACE is
11139 non-nil and inhibit modification_hooks and point_motion_hooks.
11140 For consistency, run after_insert_file_functions iff something
11141 got inserted. Move signal_after_change and update_compositions
11142 after code running after_insert_file_functions. Make sure that
6b8e474c 11143 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 11144
3ceeb306
YM
111452007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11146
11147 * emacs.c (main)
11148 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11149 Call malloc_enable_thread on interactive startup.
11150
11151 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
11152 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11153 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
11154 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11155 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11156 New functions.
11157
ca5e6fd5
CY
111582007-08-06 Chong Yidong <cyd@stupidchicken.com>
11159
32bfce5d
CY
11160 * xdisp.c (redisplay_window): When restoring original buffer
11161 position, make sure it is still valid.
11162
ca5e6fd5
CY
11163 * image.c (png_load): Ignore png-supplied background color.
11164
a5b11587
YM
111652007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11166
11167 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11168 Use kCFAbsoluteTimeIntervalSince1970.
11169
11170 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11171 New variable.
11172 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11173 event loop should be quit.
11174 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11175 Quit dialog event loop if quit_dialog_event_loop is set.
11176
11177 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
11178 (Selection): New typedef. Use instead of ScrapRef.
11179 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
11180 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
11181 (mac_clear_selection): Rename from clear_scrap.
11182 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 11183 scrap_has_target_type. All uses changed.
a5b11587
YM
11184 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11185 (mac_selection_has_target_p): New functions.
11186 (mac_put_selection_value): Rename from put_scrap_string.
11187 (mac_get_selection_value): Rename from get_scrap_string.
11188 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
11189 (put_scrap_private_timestamp, scrap_has_target_type)
11190 (get_scrap_private_timestamp): Remove functions.
11191 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
11192 (x_own_selection, x_get_local_selection):
11193 Use mac_valid_selection_value_p.
11194 (x_own_selection): Don't use put_scrap_private_timestamp.
11195 Record OWNERSHIP-INFO into Vselection_alist instead.
11196 (x_get_local_selection): Don't check type if request is local.
11197 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
11198 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
11199
880820fe 112002007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
11201
11202 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
11203 add comment explaining why.
11204
73ff9d42
RS
112052007-08-03 Richard Stallman <rms@gnu.org>
11206
11207 * fileio.c (Fvisited_file_modtime): Use make_time.
11208
54ed9a2d 112092007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
11210
11211 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
11212 build.
11213
65a9c8e2
SM
112142007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
11215
11216 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
11217
c5925799
KY
112182007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
11219
11220 * puresize.h (BASE_PURESIZE): Increase to 1130000.
11221
adef3de7
RS
112222007-07-30 Richard Stallman <rms@gnu.org>
11223
11224 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
11225
880820fe 112262007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
11227
11228 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
11229
a10421a1
NR
112302007-07-28 Nick Roberts <nickrob@snap.net.nz>
11231
11232 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
11233 remote default-directory.
11234
11235 * buffer.c (mode-line-format): Update doc string.
11236
0cb1ae20
YM
112372007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11238
11239 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
11240 scroll bar gap.
11241 (x_scroll_bar_create): Set bar->fringe_extended_p.
11242 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
11243 on frame edge. Check fringe background extension. Don't clear
11244 extended fringe background area.
11245
11246 * w32term.h (struct scroll_bar): New member fringe_extended_p.
11247 (w32_fill_area): Enclose multiple statements with do ... while (0).
11248
11249 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
11250 Extend fringe background to scroll bar gap.
11251 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
11252 Set bar->fringe_extended_p.
11253 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11254 Put leftmost/rightmost scroll bars on frame edge. Check fringe
11255 background extension. Don't clear extended fringe background area.
11256
11257 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11258 New member fringe_extended_p.
11259
cacc7b51
GM
112602007-07-25 Glenn Morris <rgm@gnu.org>
11261
11262 * Relicense all FSF files to GPLv3 or later.
11263
11264 * COPYING: Switch to GPLv3.
11265
89835619
SM
112662007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
11267
c4f46926
SM
11268 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
11269
11270 * data.c (Finteractive_form): Check for the presence of an
11271 `interactive-form' symbol property more thoroughly.
11272
11273 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
11274 present, analogous to the function-documentation property.
11275
ee04257d
JR
112762007-07-24 Jason Rumney <jasonr@gnu.org>
11277
11278 * w32fns.c (x_real_positions): Get real position from OS instead of
11279 calculating it.
11280
50624218
JR
112812007-07-23 Jason Rumney <jasonr@gnu.org>
11282
11283 * filelock.c (current_lock_owner): Allow for @ sign in username.
11284
3650f60e
NR
112852007-07-22 Nick Roberts <nickrob@snap.net.nz>
11286
11287 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
11288 remote default-directory.
11289
11290 * buffer.c (mode-line-format): Describe above case in doc string.
11291
1e899515 112922007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 11293
75be5258
EZ
11294 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
11295 Define if not defined.
11296
2b6e2f4d
JR
112972007-07-18 Jason Rumney <jasonr@gnu.org>
11298
11299 * w32proc.c (w32_executable_type): Handle 64 bit executables.
11300
23dacf80
JB
113012007-07-18 Richard Stallman <rms@gnu.org>
11302
11303 * data.c (Fsetq_default): Doc fix.
11304
11305 * eval.c (Fsetq): Doc fix.
11306
113072007-07-18 Juanma Barranquero <lekktu@gmail.com>
11308
11309 * coding.c (Ffind_operation_coding_system):
11310 * eval.c (For, Fand): Doc fixes.
880820fe 11311 Reported by Johan Bockgård.
23dacf80 11312
880820fe 113132007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 11314
23dacf80 11315 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 11316
23dacf80 11317 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
11318
11319 * xterm.c (x_ewmh_activate_frame): New function.
11320 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
11321
71ec17e6
MR
113222007-07-17 Martin Rudalics <rudalics@gmx.at>
11323
11324 * window.c (Fdisplay_buffer): If largest or LRU window is the
11325 only window, split it even if it is not eligible for splitting.
11326 This restores the original behavior broken by the 2007-07-15
11327 change.
11328
e9818042
GM
113292007-07-17 Glenn Morris <rgm@gnu.org>
11330
11331 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
11332 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11333 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
11334 constituents. Doc fix.
11335
e6fca843
SM
113362007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11337
11338 * process.c (Fstart_process, Fmake_network_process)
11339 (read_process_output): Fix up last changes.
11340
b5d2b4ab
EZ
113412007-07-16 Eli Zaretskii <eliz@gnu.org>
11342
11343 * makefile.w32-in (clean): Don't delete *~.
11344
413a79ad
AS
113452007-07-16 Andreas Schwab <schwab@suse.de>
11346
11347 * window.c (Fdisplay_buffer): Use NILP.
11348 (Fset_window_scroll_bars): Likewise.
11349
f1de8c77
MR
113502007-07-15 Martin Rudalics <rudalics@gmx.at>
11351
11352 * window.c (window_min_size_2): New function.
11353 (window_min_size_1, size_window, Fdisplay_buffer)
11354 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
11355 windows without mode- or header-lines when window-min-height is
11356 too small.
11357 (size_window): Reset nodelete_p after testing it, following an
11358 earlier note by Kim F. Storm.
11359 (display_buffer): Do not set split_height_threshold to twice the
11360 value of window_min_height to avoid changing the value of a
11361 customizable variable. Rather explicitly check whether the
11362 height of the window that shall be splitted is at least as large
11363 as split_height_threshold.
1af74d06
MB
11364 (Fwindow_full_width_p): New defun.
11365 (syms_of_window): Defsubr it.
d31053f9 11366
1af74d06 11367 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 11368
5e1ab613
JR
113692007-07-14 Jason Rumney <jasonr@gnu.org>
11370
11371 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
11372
f01cbfdd
RS
113732007-07-14 Richard Stallman <rms@gnu.org>
11374
11375 * eval.c (maybe_call_debugger): New function.
11376 (find_handler_clause): Use maybe_call_debugger.
11377 Call it when the handler says `debug'.
11378 Eliminate DEBUGGER_VALUE_PTR.
11379 (Fsignal): Eliminate debugger_value.
11380 (Qdebug): New variable.
11381 (syms_of_eval): Initialize it.
11382
1bab435a
JB
113832007-07-14 Juanma Barranquero <lekktu@gmail.com>
11384
11385 * eval.c (Fprogn):
11386 * keyboard.c (Ftrack_mouse):
11387 * print.c (Fwith_output_to_temp_buffer):
11388 * window.c (Fsave_window_excursion): Doc fix.
11389
be436d23
SM
113902007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
11391
11392 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
11393
60f0fb11
SM
113942007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
11395
11396 * process.h (struct Lisp_Process): Turn slots infd, outfd,
11397 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
11398 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
11399 read_output_delay, and read_output_skip from Lisp_Objects to ints.
11400 Remove unused encoding_carryover.
11401 * process.c: Adjust all functions accordingly.
11402
d8b18043
RS
114032007-07-12 Richard Stallman <rms@gnu.org>
11404
11405 * term.c: Include unistd.h only if HAVE_UNISTD_H.
11406
d5781bb6
JR
114072007-07-11 Jason Rumney <jasonr@gnu.org>
11408
11409 * makefile.w32-in (LIBS): Include OLE32.
11410
11411 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
11412 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
11413
5bb7dfee
SM
114142007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
11415
11416 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
11417 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
11418 from a Lisp_Object into a bare pointer.
11419 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11420 Adjust the code correspondingly.
11421
11422 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
11423
11424 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
11425 (term_show_mouse_face): Remove unused var `j'.
11426 (handle_one_term_event): Remove unused vars `i' and `j'.
11427 Don't cast return value of ttyname since it's not necessary.
11428
a1be1ce8
SM
114292007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
11430
5045e68e
SM
11431 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
11432 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
11433
8071c00f
SM
11434 * fns.c (map_char_table): Use an array of int for `indices' rather than
11435 an array of Lisp_Objects (which are only ever integers anyway).
11436 (Fmap_char_table): Update caller.
11437 * lisp.h: Update prototype.
11438 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
11439 * fontset.c (Ffontset_info):
11440 * casetab.c (set_case_table): Update callers.
11441
11442 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
11443
fab84e3c
SM
11444 * keymap.c (struct accessible_keymaps_data)
11445 (struct where_is_internal_data): New structures.
11446 (accessible_keymaps_1, where_is_internal_1): Use them to change
11447 interface to adhere to the one used by map_keymap.
11448 (Faccessible_keymaps, where_is_internal): Use map_keymap.
11449 (accessible_keymaps_char_table, where_is_internal_2): Remove.
11450
a1be1ce8
SM
11451 * keymap.h (map_keymap_function_t): More informative prototype.
11452
ef887810
RS
114532007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
11454
11455 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
11456 (looking_at_1): Don't change search_regs and last_thing_searched
11457 if `inhibit-changing-match-data' is non-nil.
11458 (string_match_1, search_buffer, set_search_regs): Likewise.
11459 (syms_of_search): Add Lisp level definition for
11460 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
11461 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
11462 start and end of the match, instead of using values in search_regs.
ef887810 11463
4d02fc25
SM
114642007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * minibuf.c (Fcompleting_read): New value `confirm-only'
11467 for `require-match'.
11468
fe45b81f
SM
114692007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
11470
11471 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
11472 part of the 2007-06-27 change to syms_of_fileio.
11473
a56dd283
YM
114742007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11475
11476 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
11477 Check WINDOWP before using XWINDOW. Consolidate return statements.
11478
0cf9f5b5
RS
114792007-06-27 Richard Stallman <rms@gnu.org>
11480
11481 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11482
a66f285a
JB
114832007-06-27 Juanma Barranquero <lekktu@gmail.com>
11484
11485 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
11486
8d0d84d2
YM
114872007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11488
11489 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
11490 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
11491 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
11492 (_free_internal, memalign): Use them.
11493 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
11494 Initialize to PTHREAD_MUTEX_INITIALIZER.
11495 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
11496 (morecore_nolock): Rename from morecore. All uses changed.
11497 Use only nolock versions of internal allocation functions.
11498 (_malloc_internal_nolock, _realloc_internal_nolock)
11499 (_free_internal_nolock): New functions created from
11500 _malloc_internal, _realloc_internal, and _free_internal.
11501 (_malloc_internal, _realloc_internal, _free_internal): Use them.
11502 Copy hook value to automatic variable before its use.
11503 (memalign): Copy hook value to automatic variable before its use.
11504
5a0bbd9a
KH
115052007-06-26 Kenichi Handa <handa@m17n.org>
11506
11507 * coding.c (Ffind_operation_coding_system): Docstring improved.
11508 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
11509
9a51747b
DK
115102007-06-25 David Kastrup <dak@gnu.org>
11511
11512 * keymap.c (Fcurrent_active_maps): Add `position' argument.
11513 (Fwhere_is_internal): Adjust call to `current-active-maps' to
11514 cater for additional parameter.
11515
11516 * keymap.h: Adjust number of parameters to `current-active-maps'.
11517
11518 * doc.c (Fsubstitute_command_keys): Adjust call of
11519 `current-active-maps'.
11520
e4305426
DK
115212007-06-25 David Kastrup <dak@gnu.org>
11522
11523 * callint.c (Fcall_interactively): Make the parsing of interactive
11524 specs somewhat more readable.
11525
511a18d9
YM
115262007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11527
11528 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
11529 to scroll bar gap also when bitmap fills fringe. Draw only foreground
11530 if extended background has already been filled.
11531
512eb161
YM
115322007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11533
11534 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
11535 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
11536
11537 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
11538 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
11539 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
11540 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
11541 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
11542 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
11543 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
11544 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
11545 Run timers during dialog popup.
11546 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
11547
2386b1f1
JR
115482007-06-21 Jason Rumney <jasonr@gnu.org>
11549
11550 * image.c (convert_mono_to_color_image): Swap fore and background.
11551
fab8b787
JR
115522007-06-20 Jason Rumney <jasonr@gnu.org>
11553
11554 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
11555 (w32_free_bdf_font): Unmap memory not handle.
11556
15bdd7a0 115572007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
11558
11559 * gmalloc.c (__morecore): Fix the declaration to comply with the
11560 definition.
11561
1bb8a291
JB
115622007-06-20 Juanma Barranquero <lekktu@gmail.com>
11563
11564 * w32term.c (w32_delete_display): Remove leftover declaration.
11565 (w32_define_cursor, w32_initialize): Make static.
11566
11567 * w32.c (_wsa_errlist): Fix typo in error message.
11568 (init_environment): Ignore any environment variable from the
11569 registry having a null value.
11570
92648dea
GM
115712007-06-20 Glenn Morris <rgm@gnu.org>
11572
11573 * Makefile.in (LIBGIF): Default to -lgif.
11574
ff25d115
JR
115752007-06-17 Jason Rumney <jasonr@gnu.org>
11576
11577 * w32menu.c (add_menu_item): Don't use multibyte string functions on
11578 unicode strings.
11579
a1a578a5
JB
115802007-06-16 Juanma Barranquero <lekktu@gmail.com>
11581
11582 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
11583 Fix typo in docstring.
11584
af41f8a8
EZ
115852007-06-16 Eli Zaretskii <eliz@gnu.org>
11586
11587 * w32menu.c (add_menu_item): Escape `&' characters in menu items
11588 and their keybindings.
11589
8b29cab9
CY
115902007-06-15 Chong Yidong <cyd@stupidchicken.com>
11591
11592 * composite.c (update_compositions): Fix last fix.
11593
c433c134
JR
115942007-06-14 Jason Rumney <jasonr@gnu.org>
11595
11596 * w32.c (get_process_times_fn): New function pointer.
11597 (globals_of_w32): Intialize it if present in kernel32.dll.
11598 (w32_get_internal_run_time): New function.
11599
11600 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
11601
553d3164
KH
116022007-06-14 Kenichi Handa <handa@etlken.m17n.org>
11603
11604 * composite.c (update_compositions): Check the validness of
11605 compositions.
11606
446ba96f
YM
116072007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11608
11609 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
11610 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
11611
11612 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
11613 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
11614
11615 * macgui.h (USE_MAC_TOOLBAR): New define.
11616
11617 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11618 Return immediately unless popup is activated.
11619
11620 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
11621 background to scroll bar gap.
11622 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
11623 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
11624 scroll bars on frame edge. Check fringe background extension.
11625 Don't clear extended fringe background area.
11626 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
11627 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
11628 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
11629 [USE_MAC_TOOLBAR]: New macros.
11630 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
11631 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
11632 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
11633 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
11634 [USE_MAC_TOOLBAR]: New functions.
11635 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
11636 manually if previous repositioning has failed.
11637 (mac_handle_keyboard_event): Use precomputed event kind.
11638 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
11639 as tool bar item click. Handle mouse movement over tool bar items.
11640
11641 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
11642 toolbar_win_gravity.
11643 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
11644 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
11645 Add externs.
11646
11647 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
11648 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
11649
9720173f
CY
116502007-06-14 Chong Yidong <cyd@stupidchicken.com>
11651
11652 * image.c (search_image_cache): Remove unused variable.
11653
1217dd00
CY
116542007-06-13 Chong Yidong <cyd@stupidchicken.com>
11655
11656 * xfns.c, xmenu.c: Link to xaw3d if available.
11657
c5b8e0ea
YM
116582007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11659
11660 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
11661 frame_foreground and frame_background.
11662
11663 * image.c (lookup_image): Save frame foreground and background colors.
11664 (search_image_cache): Check if saved and current frame colors match.
11665
c69b0314
SM
116662007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11667
11668 * regex.c (regex_compile): Remove the `regnum' counter.
11669 Use bufp->re_nsub instead. Add support for \(?N:RE\).
11670
c9612b8e
SM
116712007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * term.c: Include intervals.h to declare Fget_text_property.
11674
843d2458
JR
116752007-06-10 Jason Rumney <jasonr@gnu.org>
11676
11677 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
11678
1e0d2d60 116792007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
11680
11681 * callint.c (Fcall_interactively):
11682 * editfns.c (Fdelete_and_extract_region):
11683 * fileio.c (Fread_file_name):
11684 * fns.c (Fmapconcat):
11685 * keyboard.c (cmd_error_internal):
11686 * keymap.c (Fkey_description):
11687 * lread.c (openp):
11688 * minibuf.c (read_minibuf):
11689 * search.c (wordify):
11690 * sunfns.c (sel_read):
11691 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
11692 * xfns.c (x_default_scroll_bar_color_parameter):
11693 * xmenu.c (menu_help_callback):
11694 * xselect.c (Fx_get_atom_name):
11695 * xterm.c (x_term_init): Use empty_unibyte_string.
11696
15bdd7a0 116972007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
11698
11699 * alloc.c (init_strings): Initialize canonical empty strings.
11700 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
11701 canonical empty string when the requested size is 0.
11702
11703 * emacs.c (empty_unibyte_string): Rename from empty_string.
11704 (empty_multibyte_string): New canonical empty string.
11705 (syms_of_emacs): Don't initialize empty_string.
11706
11707 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
11708 string, if appropriate.
11709 (empty_unibyte_string, empty_multibyte_string): New externs.
11710 (empty_string): Remove extern.
11711
11712 * lread.c (syms_of_lread): Use empty_unibyte_string.
11713
42c4c67a
JR
117142007-06-07 Jason Rumney <jasonr@gnu.org>
11715
11716 * s/ms-w32.h: Don't define HAVE_TZNAME.
11717
11718 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
11719
aa8280d3
YM
117202007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11721
11722 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
11723
11724 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
11725 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
11726
11727 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11728 Don't call next handler.
11729 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
11730 Remove argument. Install handler to application.
11731 (set_frame_menubar): Don't change deep_p.
1e0d2d60 11732 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
11733 FRAME_OUTER_TO_INNER_DIFF_Y.
11734 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11735 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11736 [HAVE_DIALOGS]: New macros.
11737 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
11738 Use them.
11739 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
11740
11741 * macselect.c [MAC_OSX] (install_service_handler): Rename from
11742 init_service_handler. All callers changed. Return OSStatus value.
11743
11744 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
11745 All callers changed so as not to call SetPortWindowPort.
11746 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
11747 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
11748 mac_draw_string_common.
11749 (mac_draw_image_string_qd): Likewise.
11750 (mac_draw_string_common): Use them. Add INLINE.
11751 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
11752 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
11753 GetGlobalMouse.
11754 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
11755 and FRAME_OUTER_TO_INNER_DIFF_Y.
11756 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
11757 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
11758 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
11759 repositioning window to mac_handle_window_event.
11760 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
11761 saving window location to mac_handle_window_event
11762 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
11763 (install_menu_target_item_handler): Remove argument in extern.
11764 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
11765 Also accept command events.
11766 (do_keystroke): New function created from XTread_socket.
11767 (init_command_handler): Remove functions.
11768 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
11769 and save window location by kEventWindowShowing and kEventWindowHiding
11770 handlers here. Don't call next handler for window state change and
11771 focus events.
11772 (mac_handle_application_event, mac_handle_keyboard_event)
11773 [TARGET_API_MAC_CARBON]: New functions.
11774 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
11775 kEventWindowShowing and kEventWindowHiding events. Move installation
11776 of mouse, font, text input and menu target item handlers to
11777 install_application_handler.
11778 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
11779 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11780 New function.
11781 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11782 Register it.
c9612b8e
SM
11783 (XTread_socket) [TARGET_API_MAC_CARBON]:
11784 Consolidate SendEventToEventTarget calls.
11785 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
11786 Move application activation handler to mac_handle_application_event.
11787 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
11788 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
11789 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11790 init_command_handler. Call install_application_handler.
11791
11792 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
11793 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
11794
6926c954
GM
117952007-06-07 Glenn Morris <rgm@gnu.org>
11796
11797 * emacs.c (main): Use `emacs-copyright' in --version output.
11798
6fe04c89
CY
117992007-06-06 Chong Yidong <cyd@stupidchicken.com>
11800
c9612b8e 11801 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 11802
7eb0d727
YM
118032007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11804
11805 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
11806
11807 * macgui.h: Replace WindowPtr with WindowRef.
11808
11809 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11810 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11811 Replace ControlHandle with ControlRef.
11812 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
11813
11814 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11815 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11816 Replace ControlHandle with ControlRef.
11817 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
11818 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
11819
11820 * macterm.h (struct scroll_bar): Rename member control_handle_low
11821 and control_handle_high to control_ref_low and control_ref_high.
11822 All uses changed.
11823 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
11824 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
11825 respectively. All uses changed.
11826 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
11827 (install_window_handler, remove_window_handler): Replace WindowPtr
11828 with WindowRef in externs.
11829
65fddb74
JB
118302007-06-05 Juanma Barranquero <lekktu@gmail.com>
11831
11832 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
11833
db1213a9
NR
118342007-06-03 Nick Roberts <nickrob@snap.net.nz>
11835
11836 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
11837
65fddb74 11838 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
11839 Condition on HAVE_GPM too.
11840
11841 * term.c (term_mouse_highlight): Remove unused variables.
11842 (Fterm_open_connection): Set gpm_zerobased to 1.
11843 (term_mouse_movement, term_mouse_click, handle_one_term_event):
11844 Use zero based co-ordinates.
11845 (handle_one_term_event): Report a drag as mouse movement too.
11846
11847 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
11848
d94df25b
CY
118492007-06-03 Chong Yidong <cyd@stupidchicken.com>
11850
11851 * image.c (search_image_cache): New function. Require background
11852 color match if background color is unspecified in the image spec.
11853 (uncache_image, lookup_image): Use it.
11854
4797b6d9
JB
118552007-06-01 Juanma Barranquero <lekktu@gmail.com>
11856
11857 * window.c (Fshrink_window): Reflow docstring.
11858
1ffe7343
NR
118592007-06-02 Chong Yidong <cyd@stupidchicken.com>
11860
11861 * Version 22.1 released.
11862
118632007-06-01 Richard Stallman <rms@gnu.org>
11864
11865 * xfns.c (x_encode_text): Add GCPRO.
11866
118672007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11868
11869 * xfns.c (x_set_name_internal): Save encoded name before
11870 x_encode_text in case string data is relocated.
11871
118722007-05-31 Richard Stallman <rms@gnu.org>
11873
11874 * buffer.c (syms_of_buffer): Doc fix.
11875
118762007-05-30 Nick Roberts <nickrob@snap.net.nz>
11877
11878 * sysdep.c (init_sys_modes): Add rather than replace with
11879 O_NONBLOCK.
11880
11881 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
11882 term_mouse_moveto.
11883
11884 * termhooks.h (term_mouse_moveto): New extern.
11885
11886 * term.c (mouse_face_window): Rename...
11887 (Qmouse_face_window): ...to this.
11888 (term_show_mouse_face, term_clear_mouse_face)
11889 (term_mouse_highlight): Use Qmouse_face_window.
11890 (term_mouse_moveto): New function.
11891 (term_mouse_position): Make it work.
11892 (syms_of_term): Uncomment assignment to mouse_position_hook.
11893 Staticpro Qmouse_face_window.
11894
118952007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11896
11897 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
11898 around current_column call.
11899
119002007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
11901
11902 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
11903 * xdisp.c (next_element_from_buffer):
11904 * window.c (delete_window):
11905 * term.c (term_mouse_highlight):
11906 * msdos.c (getdefdir):
11907 * macterm.c (mac_create_bitmap_from_bitmap_data)
11908 (init_font_name_table):
11909 * fns.c (Fsxhash):
11910 * data.c (Fmake_local_variable):
11911 * ccl.c (ccl_driver): Likewise.
11912
119132007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11914
11915 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
11916 Call mac_wakeup_from_rne on window size change.
11917
119182007-05-25 Chong Yidong <cyd@stupidchicken.com>
11919
11920 * image.c (uncache_image): Fix typo.
11921
119222007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
11923
11924 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
11925
119262007-05-22 Richard Stallman <rms@gnu.org>
11927
11928 * xterm.c (x_connection_closed): Remove NO_RETURN.
11929
119302007-05-22 Martin Rudalics <rudalics@gmx.at>
11931
11932 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
11933
119342007-05-21 Chong Yidong <cyd@stupidchicken.com>
11935
11936 * image.c (uncache_image): New function.
11937 (Fimage_refresh): New function.
11938
880820fe 119392007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
11940
11941 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
11942
119432007-05-20 Nick Roberts <nickrob@snap.net.nz>
11944
11945 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
11946 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
11947
119482007-05-20 Nick Roberts <nickrob@snap.net.nz>
11949
11950 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
11951 conditional on [HAVE_GPM_H].
11952
119532007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11954
11955 * syntax.c (skip_chars): Update syntax-table only after we checked that
11956 the new location is valid.
11957
119582007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11959
11960 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
11961 mac_get_window_bounds.
11962
119632007-05-20 Nick Roberts <nickrob@snap.net.nz>
11964
11965 * Makefile.in (LIBGPM): Allow it to be set from configure.
11966 If set then link Emacs with it.
11967
11968 * config.in: Regenerate.
11969
11970 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
11971 New externs.
11972
11973 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
11974 Include gpm.h.
11975 (handle_one_term_event, term_gpm): New externs.
11976
11977 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
11978 and allow it to be interrupted by SIGIO.
11979
11980 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
11981 (wait_reading_process_output): Wait on gpm_fd too.
11982 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
11983 (add_gpm_wait_descriptor_called_flag): New variable.
11984 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
11985
11986 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
11987 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
11988 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
11989 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
11990 (make_lispy_event): Add case GPM_CLICK_EVENT.
11991 (read_avail_input): Handle mouse input.
11992
11993 * term.c (write_glyphs_with_face): New function.
11994 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
11995 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
11996 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
11997 (mouse_face_face_id, term_gpm, pos_x, pos_y)
11998 (last_mouse_x, last_mouse_y): New variables.
11999 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12000 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12001 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12002 (Fterm_close_connection): New functions.
12003 (term_init): Initialise mouse_face_window.
12004
120052007-05-19 Chong Yidong <cyd@stupidchicken.com>
12006
12007 * xdisp.c (redisplay_window): If first window line is a
12008 continuation line, recompute the new window start instead of
12009 recentering.
12010
120112007-05-18 Glenn Morris <rgm@gnu.org>
12012
12013 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12014 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12015
120162007-05-17 Glenn Morris <rgm@gnu.org>
12017
12018 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12019
120202007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12021
12022 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12023 dead key repeat and up events.
12024
120252007-05-14 Chong Yidong <cyd@stupidchicken.com>
12026
12027 * image.c (pbm_load): Check image size for monochrome pbm.
12028
120292007-05-13 Chong Yidong <cyd@stupidchicken.com>
12030
12031 * xterm.c (XTread_socket): Revert last change.
12032
120332007-05-12 Chong Yidong <cyd@stupidchicken.com>
12034
12035 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12036
12037 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12038
120392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12040
12041 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12042 mixup (YAILOM).
12043
120442007-05-07 Andreas Schwab <schwab@suse.de>
12045
12046 * keymap.c (Flookup_key): Fix typo in last change.
12047
120482007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12049
12050 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12051 mapping for unibyte strings.
12052
120532007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12054
12055 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12056 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12057
120582007-04-29 Richard Stallman <rms@gnu.org>
12059
12060 * insdel.c (replace_range): For undo, record insertion first.
12061
120622007-04-29 Andreas Schwab <schwab@suse.de>
12063
12064 * lisp.h (VECSIZE): Use OFFSETOF.
12065
120662007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12067
12068 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12069 disabled lines.
12070
120712007-04-28 Richard Stallman <rms@gnu.org>
12072
12073 * lread.c (read_escape): In a string, \s is always space.
12074
880820fe 120752007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12076
12077 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12078
12079 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12080 submenu for menu bar items.
12081
382c648d 12082See ChangeLog.10 for earlier changes.
6922b018
KH
12083
12084;; Local Variables:
880820fe 12085;; coding: utf-8
33462dfa 12086;; add-log-time-zone-rule: t
6922b018 12087;; End:
2a34a036 12088
59ce725a 12089 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
12090
12091 This file is part of GNU Emacs.
12092
5a1dde61 12093 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 12094 it under the terms of the GNU General Public License as published by
5a1dde61
GM
12095 the Free Software Foundation, either version 3 of the License, or
12096 (at your option) any later version.
7f6d64f8
GM
12097
12098 GNU Emacs is distributed in the hope that it will be useful,
12099 but WITHOUT ANY WARRANTY; without even the implied warranty of
12100 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12101 GNU General Public License for more details.
12102
12103 You should have received a copy of the GNU General Public License
5a1dde61 12104 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 12105
28f60c3d 12106;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40