Trent W. Buck <trentbuck at gmail.com> (tiny change)
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0615d903
AS
12008-06-03 Andreas Schwab <schwab@suse.de>
2
3 * font.c (font_prop_validate_spacing): Fix last change.
4
8a1816bb
KH
52008-06-03 Kenichi Handa <handa@m17n.org>
6
eea9c5c4
KH
7 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8 (font_parse_fcname): Fix handling of unknown key.
9
10 * xfont.c (xfont_list): Try an alias.
11
8a1816bb
KH
12 * charset.c (char_charset): Return NULL if the arg charset_list is
13 specified and C doesn't belong to any of them.
14
2f593f4c 152008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
16
17 * font.c (font_pixel_size): Don't take cdr of an integer.
18
c2cd06e6
JM
192008-06-02 Jim Meyering <meyering@redhat.com>
20
70fdbb46
JM
21 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
22 * alloc.c (xfree): Return right away for a NULL arg.
23 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
24 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
25 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
26 (create_apple_event_from_drag_ref, cfstring_create_normalized):
27 Likewise.
70fdbb46
JM
28 * doprnt.c (doprnt1): Likewise.
29 * frame.c (frame): Likewise.
30 * keyboard.c (wipe_kboard): Likewise.
31 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap):
32 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
33 * term.c (tty_default_color_capabilities, maybe_fatal)
34 (delete_tty): Likewise.
35 * w16select.c (string): Likewise.
36 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
37 * w32bdf.c (w32_free_bdf_font): Likewise.
38 * w32fns.c (w32_unload_font): Likewise.
39 * w32font.c (w32font_close): Likewise.
40 * window.c (size_window): Likewise.
41 * xselect.c (receive_incremental_selection): Likewise.
42 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
43 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
44 * w32.c (stat): Likewise.
45
2f593f4c 46 Remove useless if-before-free tests.
70fdbb46
JM
47 * editfns.c (Fset_time_zone_rule): Likewise.
48 * lread.c (nosuffix): Likewise.
49 * ralloc.c (get_bloc): Likewise.
50 * regex.c (reg_free): Likewise.
51 * xftfont.c (xftfont_open, xftfont_close): Likewise.
52 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
53 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 54
4fc1984a
KH
552008-06-02 Kenichi Handa <handa@m17n.org>
56
1d1e1245
KH
57 * font.c (font_find_for_lface): Handle float font size.
58 (font_open_for_lface): Likewise.
59
4fc1984a
KH
60 * xfaces.c (x_supports_face_attributes_p): Check face->font before
61 comparing the properties.
62
aee986fd
JR
632008-06-01 Jason Rumney <jasonr@gnu.org>
64
65 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
66 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
67 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
68 Don't add empty script list.
69 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
70
60a3d7ee
DN
712008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
72
aee986fd 73 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
74 ".." has been used elsewhere in the file for a long time.
75 (LIBXT_STATIC): Remove conditional based on unused variable.
76
f2cec7a9
MB
772008-06-01 Miles Bader <miles@gnu.org>
78
79 * xfaces.c (Vface_remapping_alist): New variable.
80 (syms_of_xfaces): Initialize it.
81 (enum named_merge_point_kind): New type.
82 (struct named_merge_point): Add `named_merge_point_kind' field.
83 (push_named_merge_point): Make cycle detection respect different
84 named-merge-point kinds.
85 (lface_from_face_name_no_resolve): Renamed from `lface_from_face_name'.
86 Remove face-name alias resolution.
87 (lface_from_face_name): New definition using
88 `lface_from_face_name_no_resolve'.
89 (get_lface_attributes_no_remap): Renamed from `get_lface_attributes'.
90 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
91 (get_lface_attributes): New definition that layers face-remapping on
92 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
93 (lookup_basic_face): New function.
94 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
95 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
96 `get_lface_attributes'.
97 (face_at_buffer_position): Use `lookup_basic_face' to lookup
98 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
99 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
100
101 * xdisp.c (init_iterator): Pass base_face_id through
102 `lookup_basic_face' when we actually use it as a face-id.
103 (handle_single_display_prop): Use `lookup_basic_face' to lookup
104 DEFAULT_FACE_ID.
105
106 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
107 lookup the initial face-id.
108
109 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
110
518c0b83
JB
1112008-06-01 Juanma Barranquero <lekktu@gmail.com>
112
113 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
114 (Fremove_text_properties): Fix typos in docstrings.
115
719b3d63
KH
1162008-05-31 Kenichi Handa <handa@m17n.org>
117
e4c93315
KH
118 * font.c (font_list_entities): Fix the car part of data to be
119 stored in the cache.
120
719b3d63
KH
121 * ftfont.c (ftfont_font_format): Don't use strcasestr.
122
d0827857
SM
1232008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
124
125 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
126 Add a `test' argument so another predicate than `equal' can be used.
127 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
128 (map_char_table): Remove unused vars `c' and `i'.
129 * lisp.h (Foptimize_char_table): Adjust declaration.
130 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
131
a266686a
KH
1322008-05-30 Kenichi Handa <handa@m17n.org>
133
d0827857 134 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
135 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
136 defined.
137
fd9440c5
SM
1382008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
139
140 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
141 (Fmake_variable_frame_local): Disallow mixing buffer-local and
142 frame-local settings for the same variable.
143
fd2ae9b2
KH
1442008-05-30 Kenichi Handa <handa@m17n.org>
145
146 * fontset.c (Ffont_info): Moved to font.c.
147 (syms_of_fontset): Delete defsubr of Sfont_info.
148
149 * font.c (font_style_to_value, font_score): Delete casting of the
150 args to xstcasecmp.
151 (register_font_driver): Increment num_font_drivers only when
152 registering the driver globally.
153 (Ffont_info): Moved from fontset.c. Handle a font object too.
154 (syms_of_font): Defsubr Sfont_info.
155
eaf11618
KH
1562008-05-29 Kenichi Handa <handa@m17n.org>
157
158 * coding.h (enum define_coding_utf8_arg_index): New enum.
159 (enum coding_attr_index): Change coding_attr_utf_16_bom to
160 coding_attr_utf_bom.
fd9440c5
SM
161 (enum utf_bom_type): Rename from utf_16_bom_type.
162 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
163 (struct coding_system): Add utf_8_bom in `spec' union.
164
165 * coding.c (CODING_UTF_8_BOM): New macro.
166 (enum coding_category): Delete coding_category_utf_8, add
167 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
168 coding_category_utf_8_sig.
169 (CATEGORY_MASK_UTF_8): Delete it.
170 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
171 (CATEGORY_MASK_UTF_8_SIG): New macros.
172 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
173 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
174 CATEGORY_MASK_UTF_8_SIG.
175 (CATEGORY_MASK_UTF_8): New macro.
176 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
177 (detect_coding_utf_8): Check BOM.
178 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 179 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
180 (encode_coding_utf_16): Likewise.
181 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
182 (detect_coding, detect_coding_system): Handle utf-8-auto.
183 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
184 (syms_of_coding): Fix setting up of Vcoding_category_table.
185
891bd142
SM
1862008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
187
188 * process.c (Faccept_process_output): If `millisec' is non-nil,
189 `seconds' default to 0.
190 (wait_reading_process_output): Also return non-nil if we read output
191 from a non-running process.
192
1519d52e
JR
1932008-05-29 Jason Rumney <jasonr@gnu.org>
194
fd9440c5
SM
195 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
196 `raster' specified.
197 (add_font_entity_to_list): Allow non-opentype truetype fonts back
198 in the uniscribe backend, but disallow any font that has no
199 unicode subrange support.
1519d52e 200
d5ab09cd
JB
2012008-05-29 Juanma Barranquero <lekktu@gmail.com>
202
203 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
204 Fix typos in docstrings.
205
a4eec626
KH
2062008-05-29 Kenichi Handa <handa@m17n.org>
207
208 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 209 (Fx_family_fonts): Set frame correctly.
a4eec626 210
a6e0b7e5
JR
2112008-05-28 Jason Rumney <jasonr@gnu.org>
212
d5ab09cd 213 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 214
6b3d752c
SM
2152008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
216
217 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
218 calling build_annotations.
219
c3f9fba8
JB
2202008-05-28 Juanma Barranquero <lekktu@gmail.com>
221
222 * coding.c (Fdecode_coding_region, Fencode_coding_region)
223 (Fencode_coding_string):
224 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
225 <latin-extra-code-table>: Fix typos in docstrings.
226 (syms_of_coding) <coding-system-alist>: Doc fix.
227 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
228
00c670e1
KH
2292008-05-28 Kenichi Handa <handa@m17n.org>
230
b75d7f28
KH
231 * fontset.c (Ffont_info): Don't call font_close_object.
232
233 * font.c (font_parse_family_registry): Use Ffont_put to validate
234 foundry and family.
235 (font_delete_unmatched): Don't check spacing.
236 (font_list_entities): Add spacing to the spec to list fonts.
237
238 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 239 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 240
00c670e1
KH
241 * coding.c (encode_coding_raw_text): Fix previous change.
242 (encode_coding_object): When the dst_object is a buffer and is
243 different from src_object, move gap to PT.
244
45feca91
CY
2452008-05-27 Chong Yidong <cyd@stupidchicken.com>
246
c3f9fba8 247 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 248
5dd5d9eb
SM
2492008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
250
01d45367
SM
251 * coding.c (encode_coding_raw_text): Set coding->produced_char for
252 all branches. Compute it differently.
253
5dd5d9eb
SM
254 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
255
9c623c85
JB
2562008-05-27 Juanma Barranquero <lekktu@gmail.com>
257
258 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
259 into "else if () ... else ...".
260
943f2093
JR
2612008-05-27 Jason Rumney <jasonr@gnu.org>
262
5dd5d9eb
SM
263 * w32font.c (w32font_open_internal): Determine if glyph indices
264 are likely to work here.
943f2093 265
7385fe74
CY
2662008-05-27 Chong Yidong <cyd@stupidchicken.com>
267
268 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
269 draw overlap glyphs with appropriate highlighting.
270
4f64a164
KH
2712008-05-27 Kenichi Handa <handa@m17n.org>
272
273 * xfont.c (xfont_open): Fix calculation of font->average_width.
274
1fb5aad7
SM
2752008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
276
277 * casefiddle.c (casify_object): Try to guess better whether the
278 argument is a byte or a char.
279
f8eb1603
AS
2802008-05-26 Andreas Schwab <schwab@suse.de>
281
1fb5aad7
SM
282 * xselect.c (x_reply_selection_request): Properly handle format == 32.
283 Always send multiples of format size.
5a9c35e5 284
f8eb1603
AS
285 * xterm.c (x_set_frame_alpha): Fix type mismatch.
286
ba93d684
JR
2872008-05-26 Jason Rumney <jasonr@gnu.org>
288
1fb5aad7
SM
289 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
290 (compute_metrics): Don't set failure if we just cleared the cache.
291 (w32_weight_table): Remove unused variable.
292 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
293 backwards compatibility.
ba93d684 294
505ecc49
KH
2952008-05-25 Kenichi Handa <handa@m17n.org>
296
1fb5aad7
SM
297 * w32term.c (x_draw_glyph_string):
298 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
299
300 * xfaces.c: Delete unused function prototypes.
301 (xstrlwr, font_frame): Delete them.
302 (clear_face_cache): Delete unused variable.
303
1fb5aad7
SM
304 * xftfont.c (xftfont_open): Delete unused variable.
305 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
306
307 * ftxfont.c (ftxfont_open): Delete unused variable.
308
309 * fontset.c (face_for_char): Optimize for the case of no charset
310 property.
311
312 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
313 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
314 (otf_open, font_otf_capability, generate_otf_features)
315 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 316 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
317 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
318 (syms_of_font): Codes for accessing above commented out.
319
f481eb31
EZ
3202008-05-24 Eli Zaretskii <eliz@gnu.org>
321
322 * w32proc.c: Include dispextern.h.
323
324 * w32.c: Include dispextern.h.
325
20746fe4
JB
3262008-05-23 Juanma Barranquero <lekktu@gmail.com>
327
328 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
329 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
330 Fix typos in docstrings.
331
e7150846
JR
3322008-05-23 Jason Rumney <jasonr@gnu.org>
333
20746fe4 334 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 335
dbf46ba6
KH
3362008-05-23 Kenichi Handa <handa@m17n.org>
337
6c652beb
KH
338 * charset.c (Qemacs, charset_emacs): New variables.
339 (char_charset): Fix for non-Unicode characters.
340 (syms_of_charset): Define charset_emacs.
341
baf4d3b3 342 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
343 s->underline_thickness and s->underline_position. Be sure to draw
344 underline within the current line area.
baf4d3b3
KH
345
346 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 347 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 348 underline within the current line area.
baf4d3b3 349
dbf46ba6
KH
350 * fontset.c: Delete unused variables and add casting for char *
351 throughout the file.
352 (fontset_font): Try the fallback fonts of the current fontset
353 before consulting the default fontset.
354
355 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
356
357 * xfont.c (xfont_list_pattern): Free names returned from
358 XListFonts.
359
3b780338
JR
3602008-05-22 Jason Rumney <jasonr@gnu.org>
361
20746fe4 362 * font.c: Don't include strings.h.
577eba22 363
20746fe4 364 * dispextern.h, xfaces.c (xstrcasecmp): Renamed from xstricmp.
05131107 365
20746fe4
JB
366 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
367 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
368 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
369 to call xstrcasecmp.
05131107 370
b1722a46 371 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 372
b1722a46 373 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 374
b1722a46 375 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 376
b1722a46 377 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 378
a30e1957
KH
3792008-05-22 Kenichi Handa <handa@m17n.org>
380
20746fe4 381 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 382
20746fe4 383 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
384 change of font_style_table.
385
a30e1957
KH
386 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
387 two args.
388
389 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
390 two args.
391
631248e5
SM
3922008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
393
394 * minibuf.c (keys_of_minibuf): Delete.
395 * lisp.h (keys_of_minibuf): Delete.
396 * emacs.c (main): Don't call keys_of_minibuf.
397
318548be
KH
3982008-05-22 Kenichi Handa <handa@m17n.org>
399
631248e5 400 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
401 ftfont_list_generic_family. Return a single family for each
402 generic family.
403 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
404 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
405 Call font_add_log.
318548be
KH
406 (ftfont_match): Call font_add_log.
407
408 * font.h (Ffont_xlfd_name): EXFUN adjusted.
409 (FONT_DEBUG): Define it.
410 (font_add_log): Extern it.
631248e5 411 (font_assert): Rename from xassert.
318548be
KH
412
413 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
414 (xfont_list_family): Call font_add_log.
415 (xfont_match): Likewise.
631248e5 416 (memq_no_quit): Delete.
318548be
KH
417
418 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
419 call of Ffont_xlfd_name.
420
421 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 422 (swidth_table): Move to font.c.
318548be
KH
423
424 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 425 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
426 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
427 New variables.
631248e5
SM
428 (struct table_entry): Move from xfaces.c and modified.
429 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 430 contents adjusted for the change of struct table_entry.
20746fe4 431 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 432 format change of font_style_table.
318548be
KH
433 (font_parse_family_registry): Don't overwrite existing foundry and
434 family of font_spec.
435 (font_score): Fix calculation of diff for sizes.
436 (font_sort_entites): Call font_add_log.
437 (font_delete_unmatched): Return a newly created list.
438 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
439 (font_matching_entity, font_open_entity, font_close_entity):
440 Call font_add_log.
318548be 441 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 442 (Finternal_set_font_style_table): Delete.
318548be
KH
443 (BUILD_STYLE_TABLE): New macro.
444 (build_style_table): New function.
445 (Vfont_log, font_log_env_checked): New variables.
446 (font_add_log): New function.
447 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
448 Declare Lisp variables "font-weight-table", "font-slant-table",
449 "font-width-table", and "font-log". Initialize font_style_table.
450
6aac1c03
DN
4512008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
452
bcc850aa 453 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 454
7950790f
GM
4552008-05-21 Seiji Zenitani <zenitani@mac.com>
456 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 457
7950790f 458 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 459 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 460 (x_set_alpha): New function.
a2979e8e 461
7950790f 462 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 463
7950790f
GM
464 * xfns.c (x-create-frame, Qalpha):
465 Initialize the frame parameter `alpha'.
b9fb2c45
GM
466 * xterm.c (OPAQUE, OPACITY): New.
467 (x_set_frame_alpha): New function.
468 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 469
7950790f
GM
470 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
471 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 472
5c2a72d9
JR
4732008-05-20 Jason Rumney <jasonr@gnu.org>
474
20746fe4
JB
475 * w32font.c (add_font_entity_to_list): Don't add non-opentype
476 truetype fonts to opentype list.
5c2a72d9 477
eb152aa9
JB
4782008-05-20 Juanma Barranquero <lekktu@gmail.com>
479
480 * fontset.c (Ffontset_info): Doc fix.
481 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
482 <ignore-relative-composition>: Fix typos in docstrings.
483
484 * font.c (syms-of-font) <font-encoding-alist>:
485 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
486 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
487 (Ffont_otf_alternates): Doc fixes.
488
ad00e1a3
KH
4892008-05-20 Kenichi Handa <handa@m17n.org>
490
491 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
492 font.h through out the file.
493 (FONT_DRIVERS): Renamed from FONTOBJ.
12855572 494 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
495 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
496
497 * emacs.c (main): Call syms_of_font unconditionally.
498
499 * font.h (find_font_encoding): Extern it.
500
501 * font.c (Vfont_encoding_alist, find_font_encoding): Moved from
502 fontset.c.
503 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
504 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
505 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
506 only when HAVE_WINDOW_SYSTEM is defined.
507 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
508 when HAVE_WINDOW_SYSTEM is defined.
509
510 * fontset.c (Vfont_encoding_alist, find_font_encoding): Moved to
511 font.c.
512 (syms_of_fontset): Declaration of font-encoding-alist moved to
513 font.c.
514
515 * xfaces.c: Include font.h unconditionally.
516 (merge_face_ref, merge_face_vectors)
517 (Finternal_set_lisp_face_attribute): Cancel the previous change.
518
40a69fac
SM
5192008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
520
521 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
522 indirect_variable.
523 * eval.c (lisp_indirect_variable): New fun.
524 (Fuser_variable_p): Use it.
525
8c2dccbf
SM
5262008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
527
ad97b375
SM
528 * lisp.h (indirect_variable):
529 * data.c (indirect_variable, let_shadows_buffer_binding_p):
530 Use Lisp_Symbol pointers rather than Lisp_Object.
531 Adjust callers.
532 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
533 To this end, change calling-convention.
534
8c2dccbf
SM
535 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
536 if some non-hidden buffers are selected by string&pred.
537
ad97b375
SM
5382008-05-19 Chong Yidong <cyd@stupidchicken.com>
539
540 * process.c (wait_reading_process_output): Always check status
541 when in batch mode.
542
25b81df4
KH
5432008-05-19 Kenichi Handa <handa@m17n.org>
544
545 * font.c (font_list_entities): Fix handling of cache.
546 (font_matching_entity): Likewise.
547
8c2dccbf 548 * ftfont.c (cs_iso8859_1): Delete.
25b81df4
KH
549 (ft_face_cache): New variable.
550 (struct ftfont_info): New member fc_charset_idx;
8c2dccbf 551 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
552 (fc_charset_table): New variable.
553 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
554 . FC_CHARSET_IDX) as :font-entity property in the font entity.
555 Callers changed.
dde8403f 556 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
557 (ftfont_spec_pattern): New argument fc_charset_idx.
558 Check registry more rigidly. Change callers.
a2979e8e 559 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
560 change of :font-entity property of the font.
561
a2979e8e 562 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
563 property of the font.
564
d4a1d553
JB
5652008-05-18 Juanma Barranquero <lekktu@gmail.com>
566
567 * coding.c (Fcoding_system_p): Rename argument to match docstring.
568 (Funencodable_char_position, Fcheck_coding_systems_region)
569 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
570 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
571 (Ffind_operation_coding_system, Fset_coding_system_priority)
572 (Fcoding_system_eol_type): Doc fixes.
573
07cfc4e7
GM
5742008-05-17 Glenn Morris <rgm@gnu.org>
575
576 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
577
1cab27d2
EZ
5782008-05-16 Eli Zaretskii <eliz@gnu.org>
579
580 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
581 and st_gid.
582
dde8403f 583 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
584 HAVE_WINDOW_SYSTEM is not defined.
585
586 * xfaces.c (merge_face_ref, merge_face_vectors)
587 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
588 HAVE_WINDOW_SYSTEM is defined.
589 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
590
86b89713
SM
5912008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
592
593 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
594
6750bd93
YM
5952008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
596
62867b11 597 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 598
79f105c9
KH
5992008-05-15 Kenichi Handa <handa@m17n.org>
600
601 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
602 preference.
603
6b33da9f
GM
6042008-05-15 Glenn Morris <rgm@gnu.org>
605
606 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
607
d0e4433b
CY
6082008-05-15 Chong Yidong <cyd@stupidchicken.com>
609
610 * fns.c (init_fns): Don't initialize weak_hash_tables here.
611 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
612
613 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
614
5f2d79e0
KH
6152008-05-15 Kenichi Handa <handa@m17n.org>
616
fd8a1cae
KH
617 * ftfont.c (ftfont_list): Downcase family name to check generic
618 families.
619
620 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
621 font-spec for QCfont value.
622
5f2d79e0
KH
623 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
624 buffer. Check the return value of it.
625
e5e29349
JR
6262008-05-14 Jason Rumney <jasonr@gnu.org>
627
628 * w32term.c (w32_get_glyph_overhangs): Remove.
629 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
630
1f09f444
KH
6312008-05-14 Kenichi Handa <handa@m17n.org>
632
633 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
634 (font_clear_cache): Check if the cached vector of entities is nil
635 or not.
1f09f444 636
ecae6af9 6372008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
638
639 * emacs.c (main_thread): Conditionalize on
640 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
641 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
642
643 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
644 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
645 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
646
c6b278e7
KH
6472008-05-14 Kenichi Handa <handa@m17n.org>
648
649 * coding.c (detect_coding_iso_2022): Ignore a coding category that
650 has no corresponding coding system.
651
6522008-05-14 Jason Rumney <jasonr@gnu.org>
653
654 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
655
656 * w32font.h (w32font_open_internal): Update declaration.
657
658 * w32font.c (w32font_open_internal): Change last argument from
659 w32font_info struct to font object. Fill in font object from
660 font_entity. Get Outline metrics if possible. Use them to
661 calculate underline position and thickness. Use xlfd name as name
662 property. Don't set codepage.
663 (w32font_open): Pass font_object to w32font_open_internal. Don't
664 update dpyinfo->smallest_font_height and
665 dpyinfo->smallest_char_width.
666 (w32font_draw): Use s->font.
667 (clear_cached_metrics): Don't clear non-existent blocks.
668
669 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
670 font was not found.
671 (x_draw_glyph_string): Use underline position and thickness from
672 font.
673
674 * w32uniscribe.c (uniscribe_open): Pass font_object to
675 w32font_open_internal.
676
6772008-05-14 Kenichi Handa <handa@m17n.org>
678
679 These changes are to delete all legacy font-handling codes, and
680 make Emacs use only font-backends.
681
682 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
683 (frame.o, image.o, print.o): Depend on $(FONTSRC).
684
685 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
686
687 * charset.h (Vcharset_non_preferred_head)
688 (Vcurrent_iso639_language): Extern them.
689
690 * charset.c (Vcharset_non_preferred_head): New variable.
691 (Vcurrent_iso639_language): New variable.
692 (syms_of_charset): Declare it as a Lisp variable.
693 (char_charset): Don't check non preferred charsets. As a last
694 resort, return charset_unicode.
695 (Fset_charset_priority): Update Vcharset_non_preferred_head.
696
697 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
698 conditionals. Don't check enable_font_backend. Delete all codes
699 used only when USE_FONT_BACKEND is not defined.
700
701 * dispextern.h (struct glyph_string): Change type of `font' to
702 `struct font *'.
703 (struct glyph_string): New member underline_position and
704 underline_thickness.
705 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
706 (struct face): Change type of `font' to `struct font *'. Remove
707 members `font_name', `font_info_id'.
708 (per_char_metric, encode_char): Delete externs.
709 (calc_pixel_width_or_height): Adjust the prototype.
710
711 * emacs.c (enable_font_backend): Delete extern.
712 (main): Don't set enable_font_backend. Don't check the command
713 line argument "-disable-font-backend".
714
715 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
716 (enum font_property_index): New members FONT_DPI_INDEX,
717 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
718 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
719 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
720 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
721 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
722 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
723 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
724 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
725 (struct font_spec, struct font_entity): New structs.
726 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
727 (struct font): Many members from old "struct font_info" moved to
728 here. Members font and entity deleted.
729 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
730 the new font-related objects.
731 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
732 (CHECK_FONT_GET_OBJECT): Likewise.
733 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
734 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
735 (struct font_driver): New members case_sensitive anc check. Type
736 of the member list and open changed.
737 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
738 (font_symbolic_width, font_find_object, font_get_spec)
739 (font_set_lface_from_name): Delete extern.
20746fe4 740 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
741
742 * font.c: Include <strings.h>.
743 (enable_font_backend): Delete it.
744 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
745 (CHECK_VALIDATE_FONT_SPEC): Delete it.
746 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
747 (null_string): Delete it.
748 (null_vector): Make it static.
749 (font_family_alist): Delete it.
750 (Qnormal): Extern it.
751 (QCextra, QClanguage): Delete it.
20746fe4 752 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
753 (font_make_spec, font_make_entity, font_make_object)
754 (font_intern_prop): Renamed from intern_downcase. Don't downcase
755 the string. Callers changed.
756 (font_pixel_size): Adjusted for the format change of font-related
757 objects.
758 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
759 (font_style_to_value, font_style_symbolic): New function.
760 (build_font_family_alist): Delete it.
761 (font_registry_charsets): Use Fassoc_string instead of
762 assq_no_quit.
763 (font_prop_validate_symbol): Don't return null_string.
764 (font_prop_validate_style): Adjusted for the change of
765 style-related values in a font vector.
20746fe4 766 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
767 QCantialias, add entries for QCavgwidth.
768 (get_font_prop_index): Delete the 2nd argument FROM.
769 (font_prop_validate): Arguments changed.
770 (font_put_extra): Adjusted for the change of font-related objects.
771 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
772 (font_parse_fcname, font_unparse_fcname)
773 (font_prepare_composition): Likewise.
774 (font_parse_family_registry): Renamed from font_merge_old_spec.
775 (otf_open): Delete the 1st arg entity.
776 (font_otf_capability): Adjusted for the above change.
777 (font_score): New arg alternate_families. Adjusted for the change
778 of font-related objects.
779 (font_sort_entites): New arg best_only.
780 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
781 Delete them.
782 (font_match_p): Check alternate families.
783 (font_find_object): Delete it.
784 (font_check_object): New function.
c3f9fba8 785 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
786 (font_delete_unmatched): New arg.
787 (font_list_entities): Call font_driver->list with a spec that
788 doesn't specify style-related properties.
789 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 790 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
791 (font_close_object, font_has_char, font_encode_char)
792 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
793 (font_spec_from_name, font_clear_prop, font_update_lface):
794 New functions.
795 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
796 (font_prepare_for_face, font_done_for_face, font_open_by_name)
797 (font_at): Adjusted for the change of font-related objects.
798 (font_range): New function.
799 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 800 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
801 (Fcopy_font_spec, Fmerge_font_spec): New function.
802 (Ffont_family_list): Renamed from list-families.
803 (Finternal_set_font_style_table): Arguments changed.
804 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
805 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
806 change of font-related objects.
c3f9fba8 807 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7
KH
808
809 * fontset.h (struct font_info): Delete it. Most memnbers go to
810 struct font.
811 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
812 (enum FONT_SPEC_INDEX): Delete it.
813 (font_info, list_fonts_func, load_font_func, query_font_func)
814 (set_frame_fontset_func, find_ccl_program_func)
815 (get_font_repertory_func, new_fontset_from_font_name): Delete
816 externs.
817 (fontset_from_font_name): Extern it.
818 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
819 (FONT_INFO_FROM_FACE): Deleted.
820 (face_for_font): Adjust prototype.
821
822 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
823 conditionals. Don't check enable_font_backend. Delete all codes
824 used only when USE_FONT_BACKEND is not defined.
825 (get_font_info_func, list_font_func, load_font_func)
826 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
827 (get_font_repertory_func): Delete them.
828 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
829 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
830 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
831 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
832 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
833 (fontset_compare_rfontdef): New function.
834 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
835 ront-defs by qsort. Adjusted for the change of font-group vector.
836 (load_font_get_repertory): Deleted.
837 (fontset_find_font): Use new macros to ref/set elements of
838 font-def and rfont-def.
839 (fontset_font): Fix the timing of remembering that no font for C.
840 (free_face_fontset): Do nothing if the face has no fontset.
841 (face_suitable_for_char_p): Use new macros to ref/set elements of
842 rfont-def.
843 (face_for_char): Likewise. Call face_for_char with font_object.
844 (fs_load_font): Delete. Delete #pragma surrounding it.
845 (fs_query_fontset): Use strcasecmp instead of strcmp.
846 (generate_ascii_font_name): Adjusted for the format change of
847 font-spec.
848 (Fset_fontset_font): Likewise. Use new macros to set elements of
849 font-def.
850 (Fnew_fontset): Use font_unparse_xlfd to generate
851 FONTSET_ASCII (fontset).
852 (new_fontset_from_font_name): Deleted.
853 (fontset_from_font): Renamed from new_fontset_from_font. Check if
854 a fontset is already created for the font. FIx updating of
855 Vfontset_alias_alist.
856 (fontset_ascii_font): Deleted.
857 (Ffont_info): Adjusted for the format change of font-spec.
858 (Finternal_char_font): Likewise.
859 (Ffontset_info): Likewise.
860 (syms_of_fontset): Don't check load_font_func.
861
862 * fns.c (internal_equal): Handle PREV_FONT.
863
864 * frame.h: Delete USE_FONT_BACKEND conditional.
865
866 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
867 conditionals. Don't check enable_font_backend. Delete all codes
868 used only when USE_FONT_BACKEND is not defined.
869 (x_set_font): Call x_new_font, not x_new_fontset2.
870 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
871 already set for the frame.
872
873 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
874 a font-entity by font_make_entity. Use font_intern_prop instead
875 of intern_downcase. Use FONT_SET_STYLE to set a style-related
876 font property. If a font is scalable, set avgwidth property to 0.
877 Set font-entity property by font_put_extra.
878 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
879 (ffont_driver): Adjusted for the change of struct font_driver.
880 (ftfont_spec_pattern): New function.
881 (ftfont_list): Return a list, not vector.
882 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
883 (ftfont_list_family): Don't downcase names.
884 (ftfont_free_entity): Deleted.
885 (ftfont_open): Return a font-ojbect. Adjusted for the change of
886 struct font. Get underline_thickness and underline_position from
887 font property. Don't update dpyinfo->smallest_font_height and
888 dpyinfo->smallest_char_width.
889 (ftfont_close): Don't free `struct font'.
890 (ftfont_has_char): Adjusted for the format change of font-entity.
891 (ftfont_encode_char, ftfont_text_extents): Likewise.
892
893 * ftxfont.c (ftxfont_list): Return a list, not vector.
894 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
895 struct font. Get underline_thickness and underline_position from
896 font property. Don't update dpyinfo->smallest_font_height and
897 dpyinfo->smallest_char_width.
898 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
899 (ftxfont_draw): Adjusted for the change of struct font.
900
901 * image.c (image_ascent): Don't include "charset.h". Include
902 "character.h" and "font.h".
903
904 * lisp.h (enum pvec_type): New member PREV_FONT.
905 (Fassoc_string): EXFUN it.
906
907 * print.c: Include font.h.
908 (print_object): Handle font-related objects.
909
910 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
911 conditionals. Don't check enable_font_backend. Delete all codes
912 used only when USE_FONT_BACKEND is not defined.
913 (handle_auto_composed_prop): Do nothing if it->f is not on a
914 window system. Check how many following characters can be
915 displayed by the same font.
916 (calc_pixel_width_or_height): Type of the 4th arg is changed to
917 'struct font *'.
918 (get_char_face_and_encoding): Assign the whole encoding task to
919 the `encode-char' method of a font driver.
920 (fill_composite_glyph_string): Adjusted for the change of `struct
921 face' and `struct glyph_string'.
922 (fill_glyph_string): Likewise.
923 (get_per_char_metric): Arguments changed.
924 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
925 and `struct glyph_string'.
926 (produce_stretch_glyph, calc_line_height_property)
927 (x_produce_glyphs): Likewise.
928
929 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
930 conditionals. Don't check enable_font_backend. Delete all codes
931 used only when USE_FONT_BACKEND is not defined. Use
932 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
933 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
934 (Qp): Extern them.
935 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
936 Deleted.
937 (struct font_name): Deleted.
938 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
939 (compare_fonts_by_sort_order): New function.
940 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
941 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
942 Deleted.
943 (Fx_family_fonts): Use font_list_entities, and sort fonts by
944 compare_fonts_by_sort_order.
945 (Fx_font_family_list): Call Ffont_family_list.
946 (face_numeric_value, face_numeric_weight, face_numeric_slant)
947 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
948 (face_symbolic_slant, face_symbolic_swidth)
949 (split_font_name_into_vector, build_font_name_from_vector)
950 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
951 (font_rescale_ratio, split_font_name, build_font_name)
952 (free_font_names, sort_fonts, x_face_list_fonts)
953 (face_font_available_p, sorted_font_list, cmp_font_names)
954 (font_list_1, concat_font_list, font_list, remove_duplicates):
955 Deleted.
956 (Fx_list_fonts): Use Ffont_list.
957 (LFACE_AVGWIDTH): Deleted.
958 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
959 by FONTP.
960 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
961 (set_lface_from_font_name): Delete it.
962 (set_lface_from_font): Renamed from
963 set_lface_from_font_and_fontset. Caller changed. Don't set
964 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
965 for face.
c3f9fba8
JB
966 (merge_face_vectors): Copy font-spec if necessary.
967 Clear properties of the font-spec if necessary.
c6b278e7
KH
968 (merge_face_ref): Clear properties of the font-spec if necessary.
969 (Finternal_set_lisp_face_attribute): Likewise.
970 (set_font_frame_param): Use font_load_for_lface to load a
971 font-object, and call Fmodify_frame_parameters with it.
972 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
973 font name by Ffont_xlfd_name.
974 (Finternal_lisp_face_attribute_values): Don't check QCweight,
975 QCslant, and QCwidth.
976 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
977 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
978 Compare fonts by EQ.
979 (lookup_non_ascii_face): Deleted.
980 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
981 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
982 Check atomic font properties by case insensitive.
c6b278e7
KH
983 (realize_non_ascii_face): Set face->overstrike correctly.
984 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
985 (dump_realized_face): Get font name from
986 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
987
988 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
989 conditionals. Don't check enable_font_backend. Delete all codes
990 used only when USE_FONT_BACKEND is not defined.
991 (xic_create_xfontset): Original code deleted and renamed from
992 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
993 (x_make_gc): Don't set GCFont in GCs.
994 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
995 opened by "fixed".
996 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
997 find_ccl_program_func, query_font_func, set_frame_fontset_func,
998 get_font_repertory_func.
999
1000 * xfont.c: Include <stdlib.h> and "ccl.h".
1001 (struct xfont_info): New structure.
1002 (xfont_query_font): Deleted.
1003 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1004 moved from xterm.c.
1005 (xfont_driver): Adjusted for the change of struct font_driver.
1006 (compare_font_names): New function.
1007 (xfont_list_pattern): Sort font names case insensitively. Make
1008 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1009 (xfont_list): Return a list, not vector.
1010 (xfont_match): If the font doesn't have QCname property, generate
1011 a name from the other font properties.
1012 (xfont_open): Return a font-ojbect. Adjusted for the change of
1013 struct font. Get underline_thickness and underline_position from
1014 font property. Don't update dpyinfo->smallest_font_height and
1015 dpyinfo->smallest_char_width.
1016 (xfont_close): Don't free struct font.
1017 (xfont_prepare_face): Adjusted for the change of struct font.
1018 (xfont_done_face): Deleted.
1019 (xfont_has_char): Adjusted for the change of struct font.
1020 (xfont_encode_char, xfont_draw): Likewise.
1021 (xfont_check): New function.
1022
1023 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1024 callback function.
1025 (xftfont_match): Adjusted for the fontmat change of font-entity.
1026 (xftfont_open): Adjusted for the format change of font-entity and
1027 font-object. Adjusted for the change of struct font. Return a
1028 font-object. Don't update dpyinfo->smallest_font_height and
1029 dpyinfo->smallest_char_width.
1030 (xftfont_close): Block input while calling XftFontClose.
1031 (xftfont_prepare_face): Don't block input while calling
1032 xftfont_get_colors. Adjusted for the change of struct font.
1033 (xftfont_shape): Return value of error case fixed.
1034
1035 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1036
1037 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
1038 conditionals.
1039 (FONT_WIDTH): Return (f)->max_width.
1040 (struct x_display_info): Delete member `font'.
1041 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
1042 (x_find_ccl_program, x_get_font_repertory): Delete externs.
1043 (struct x_output): Change type of `font' to `struct font *'.
1044
1045 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
1046 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 1047 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
1048 (x_per_char_metric, x_encode_char): Deleted.
1049 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
1050 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 1051 `struct face'.
c6b278e7
KH
1052 (x_draw_glyph_string_foreground)
1053 (x_draw_composite_glyph_string_foreground): Likewise.
1054 (x_draw_glyph_string): Likewise. Use font->underline_position and
1055 font->underline_thickness.
1056 (x_new_font): Renamed from x_new_fontset2.
1057 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
1058 (x_check_font): Call `check' method of a font driver.
1059 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
1060 (x_query_font, x_get_font_repertory): Deleted.
1061 (x_find_ccl_program): Renamed and moved to xfont.c.
1062 (x_redisplay_interface): Adjusted for the change of `struct
1063 redisplay_interface'.
1064
1065 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
1066 conditionals. Don't check enable_font_backend. Delete all codes
1067 used only when USE_FONT_BACKEND is not defined. Surround non-used
1068 code by "#ifdef OLD_FONT" and "endif".
1069 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
1070
1071 * w32font.h (struct w32font_info): New member.
1072 (FONT_COMPAT): New macro.
1073 (w32font_open_internal): Prototype adjusted.
1074
1075 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
1076 OLD_FONT" and "endif".
1077
1078 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
1079 conditionals. Don't check enable_font_backend. Delete all codes
1080 used only when USE_FONT_BACKEND is not defined.
1081 (w32font_open): Return a font-object. Make a font-object by
1082 font_make_object. Adjusted for the change of struct w32font_info.
1083 (w32font_close): Don't free struct font. Adjusted for the change
1084 of struct w32font_info.
1085 (w32font_encode_char, w32font_text_extents, w32font_draw):
1086 Adjusted for the change of struct w32font_info.
1087 (w32font_draw): Likewise.
1088 (w32font_list_internal): Return a list, not vector.
1089 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 1090 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
1091 (add_font_name_to_list): Don't downcase names.
1092 (w32_enumfont_pattern_entity): Make a font-entity by
1093 font_make_entity. Adjusted for the format change of font-entity.
1094 Use FONT_SET_STYLE to set a style-related font property. If a
1095 font is scalable, set avgwidth property to 0. Set font-entity
1096 property by font_put_extra.
c3f9fba8 1097 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
1098 (w32_weight_table, w32_decode_weight): New variables.
1099 (w32_encode_weight): New function.
1100 (fill_in_logfont): Adjusted for the format change of font-spec.
1101 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
1102 weight value.
1103 (w32font_driver): Adjusted for the change of struct font_driver.
1104
1105 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
1106 conditionals. Don't check enable_font_backend. Surround non-used
1107 code by "#ifdef OLD_FONT" and "endif".
1108 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
1109 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
1110
1111 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
1112 conditionals. Don't check enable_font_backend. Delete all codes
1113 used only when USE_FONT_BACKEND is not defined. Surround non-used
1114 code by "#ifdef OLD_FONT" and "endif".
1115
1116 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
1117 (uniscribe_open): Return value changed to font-object.
1118 Adjusted for the format change of font-object.
1119 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
1120 (add_opentype_font_name_to_list): Don't downcase names.
1121 (uniscribe_font_driver): Adjusted for the change of struct
1122 font_driver.
1123
f9d4c199
CY
11242008-05-13 Chong Yidong <cyd@stupidchicken.com>
1125
1126 * dispnew.c (update_frame_1): Check if tty output is still valid
1127 before flushing it.
1128
44f249c0
JD
11292008-05-13 Jan Djärv <jan.h.d@swipnet.se>
1130
1131 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
1132 to Gtk+ menus.
1133
01bb4018
SM
11342008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1135
3271a8f5
SM
1136 * dired.c (file_name_completion): Tweak the code so as to always do it
1137 in a single pass. Tighten the scope of some variables.
1138
01bb4018
SM
1139 * dired.c (Qdefault_directory): New var.
1140 (file_name_completion): Use it instead of Fexpand_file_name.
1141 (syms_of_dired): Initialize it.
1142
728bb8e0
SM
11432008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
1144
1145 * fileio.c (double_dollars): Remove dead code.
1146
ed4c17bb
EZ
11472008-05-10 Eli Zaretskii <eliz@gnu.org>
1148
6c5665e9
EZ
1149 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
1150 Mention w32-get-true-file-attributes in doc string.
1151
ed4c17bb
EZ
1152 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1153
71e1f69d
GM
11542008-05-09 Glenn Morris <rgm@gnu.org>
1155
1156 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
1157 2008-04-23.
1158
ee7a2e7a
EZ
11592008-05-09 Eli Zaretskii <eliz@gnu.org>
1160
8aaaec6b
EZ
1161 Support for reporting owner and group of each file on MS-Windows:
1162 * dired.c (stat_uname, stat_gname): New functions, with special
1163 implementation for w32.
1164 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
1165
ee7a2e7a
EZ
1166 * w32.c: Rename the_passwd_* to dflt_passwd_*.
1167 (dflt_group_name): New static variable.
728bb8e0 1168 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
1169 (init_user_info): Init dflt_group fields. Get user's group name
1170 from LookupAccountSid.
8aaaec6b
EZ
1171 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
1172 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
1173 New initialization states.
1174 (globals_of_w32): Initialize them to zero. Initialize the default
1175 group name to "None".
1176 (GetFileSecurity_Name): New global var, the name of the function
1177 to call for GetFileSecurity.
1178 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
1179 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
1180 (get_file_security, get_security_descriptor_owner)
1181 (get_security_descriptor_group, is_valid_sid)
1182 (get_file_security_desc, get_rid, get_name_and_id)
1183 (get_file_owner_and_group): New functions.
1184 (stat): Use get_file_security_desc and get_file_owner_and_group to
1185 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
1186 high 32 bits of file's size, now that st_size is 64-bit wide.
1187 Fix test when to get true file attributes.
8aaaec6b
EZ
1188 (init_user_info): Use get_rid instead of equivalent inline code.
1189 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 1190
b199c436
CY
11912008-05-09 Chong Yidong <cyd@stupidchicken.com>
1192
1193 * image.c (png_load): Use correct bit-depth for setting background
1194 color.
1195
86914123
EZ
11962008-05-08 Eli Zaretskii <eliz@gnu.org>
1197
1198 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
1199 epa-hook.elc.
1200
67b5d7de
JB
12012008-05-08 Juanma Barranquero <lekktu@gmail.com>
1202
1203 * font.c (Ffont_match_p): Don't use `iff' in docstring.
1204
1a111394
DN
12052008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1206
1207 * macfns.c (Fx_create_frame): Make a copy of frame parameters
1208 because the original parameters are in pure storage now.
1209 (mac_window): Remove unused params. Update callers.
1210
6d77fa95
SM
12112008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1212
7a3d90dc
SM
1213 * lread.c (substitute_object_recurse): Use lower-level primitives.
1214 Don't signal errors when traversing sub-char-tables.
1215 Don't loop over all the possible characters when traversing char-tables.
1216
6d77fa95
SM
1217 * print.c (print_preprocess): Add sub-char-tables to the print-table,
1218 just like we do in print.c.
1219
140eb764
SM
12202008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1221
1222 * minibuf.c (Ftry_completion): Remove code left over from when we used
1223 scmp instead of Fcompare_strings.
1224
e9184ccb
JB
12252008-05-04 Juanma Barranquero <lekktu@gmail.com>
1226
1227 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
1228
0e9378b3
YM
12292008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1230
1231 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
1232 Create bitmap context in native byte order.
1233
f67e15be
MB
1234 * macterm.c (XDrawLine)
1235 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
1236 context in native byte order.
064032d0 1237
f67e15be 12382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
1239
1240 * config.in: Regenerate.
1241
1242 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
1243 New definitions for Image I/O support.
1244 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1245 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
1246 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1247 (mac_data_provider_release_data, image_load_image_io)
1248 [USE_MAC_IMAGE_IO]: New functions.
1249 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
1250 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
1251 (init_image_func_pointer) [MAC_OSX]: Remove function.
1252 (image_load_quartz2d) [MAC_OSX]: Check availability of
1253 CGImageCreateWithPNGDataProvider at compile time.
1254 Use lowercase `false' for boolean constant.
1255 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
1256 Use image_load_image_io.
1257 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
1258 Don't check MyCGImageCreateWithPNGDataProvider.
1259 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
1260 Don't call init_image_func_pointer.
1261
1262 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
1263
1264 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
1265 Make variable non-static.
1266 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1267 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1268
1269 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
1270 (RED_FROM_ULONG): Mask off higher bits.
1271 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
1272
1273 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
1274 Include AvailabilityMacros.h.
1275 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
1276 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
1277
c6bff69e
SM
12782008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
1279
1280 * chartab.c (Fset_char_table_range): If range is t, really set all
1281 chars to that value.
1282
7412d429
EZ
12832008-05-03 Eli Zaretskii <eliz@gnu.org>
1284
1285 * dired.c (Ffile_attributes): Don't allow the device number become
1286 negative.
1287
f83bbfac
DU
12882008-05-02 Daiki Ueno <ueno@unixuser.org>
1289
5a81d3d7 1290 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 1291
2e3148e2
JL
12922008-05-02 Juri Linkov <juri@jurta.org>
1293
1294 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
1295 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
1296 DEFAULT argument as a list of default values in docstrings.
2e3148e2 1297
923fb88c
CY
12982008-05-01 Chong Yidong <cyd@stupidchicken.com>
1299
1300 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1301
047aaeb9
MR
13022008-05-01 Martin Rudalics <rudalics@gmx.at>
1303
1304 * dispnew.c (change_frame_size_1): Preserve small windows when
1305 shrinking frames by calling set_window_height|width with third
1306 arg 2.
1307
1308 * window.h (struct window): Replace field too_small_ok by field
1309 resize_proportionally.
1310
1311 * window.c (make_window): Initialize resize_proportionally.
1312 (enlarge_window): Temporarily set resize_proportionally to make
1313 sure that shrink_windows does scale the window proportionally.
1314 (shrink_windows): When window has resize_proportionally set try
1315 to shrink it proportionally by stealing from other windows.
1316 (struct saved_window, Fset_window_configuration)
1317 (compare_window_configurations): Handle resize_proportionally.
1318 (WINDOW_TOTAL_SIZE): New macro.
1319 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 1320 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
1321 window-min-height|width are handled by window_min_size_2 now.
1322 (size_window, Fsplit_window, enlarge_window)
1323 (adjust_window_trailing_edge, grow_mini_window): Don't call
1324 check_min_window_sizes.
c6bff69e
SM
1325 (window_min_size_2, window_min_size_1, window_min_size):
1326 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 1327 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
1328 (adjust_window_trailing_edge, grow_mini_window):
1329 Adjust arguments of window_min_size... functions.
047aaeb9
MR
1330 (shrink_windows): Argument min_size removed. New argument
1331 safe_p allows shrinking windows to their safe minimum sizes.
1332 Calculate minimum size and decide whether a window shall be
1333 deleted for each window individually.
1334 (size_window): When nodelete_p equals 2, tell shrink_windows to
1335 delete windows only if their new minimum size is no more safe.
1336 (shrink_window_lowest_first): Call window_min_size_1 to make
1337 sure to preserve modeline of bottom-most window when resizing
1338 the minibuffer.
1339 (Fset_window_configuration, Fcurrent_window_configuration)
1340 (compare_window_configurations): Do not handle
1341 window-min-height|width any more.
1342 (syms_of_window): Clarify window-min-height|width doc-strings.
1343
2a54a229
SM
13442008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
1345
1346 * dired.c (file_name_completion): Fix up the encoding/decoding issue
1347 some more. Copy some of the code from Ftry_completions.
1348 Remove special case code that dates back to initial revision when the
1349 slash was only added when necessary and that can't trigger nowadays.
1350
384bc634
KH
13512008-04-27 Kenichi Handa <handa@m17n.org>
1352
1353 * font.c (font_prop_validate): Signal `error' instead of `font'.
1354
2c2279c6
JR
13552008-04-29 Jason Rumney <jasonr@gnu.org>
1356
1357 * w32fns.c (Fw32_battery_status): New defun.
1358 (syms_of_w32fns): Defsubr it.
1359
fb4a622a
AS
13602008-04-28 Andreas Schwab <schwab@suse.de>
1361
1362 * dired.c (file_name_completion): Fix another mixing of encoded
1363 and decoded names.
1364
23f250f4
JB
13652008-04-28 Juanma Barranquero <lekktu@gmail.com>
1366
1367 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
1368
d8d30dff
JB
13692008-04-27 Juanma Barranquero <lekktu@gmail.com>
1370
1371 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1372
ea6104a8
AS
13732008-04-27 Andreas Schwab <schwab@suse.de>
1374
9c691c00
AS
1375 * dired.c (file_name_completion): Fix inappropriate mixing of
1376 encoded and decoded names.
1377
ec1bf773
AS
1378 * xterm.c (XTread_socket): Fix use of uninitialized variable.
1379
ea6104a8
AS
1380 * puresize.h (BASE_PURESIZE): Increase to 1200000.
1381
01388a3d
EZ
13822008-04-26 Eli Zaretskii <eliz@gnu.org>
1383
1384 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
1385 2008-03-31, it's not needed anymore with `struct stat' definition
1386 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
1387 for the same reasons.
1388
175aea10 13892008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
1390
1391 * m/sparc.h: Additional redefinitions for GNU/Linux.
1392
1289aeb8
YM
13932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1394
1395 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
1396 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1397 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
1398 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
1399 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1400 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
1401 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1402 Likewise.
1403
1404 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 1405 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
1406 (mac_ax_number_of_characters): Add externs.
1407 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1408 [USE_MAC_TSM]: Likewise.
1409 (mac_handle_text_input_event) [MAC_OSX]:
1410 Handle kEventTextInputOffsetToPos for no active input area case.
1411 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1412 (mac_handle_document_access_event)
1413 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
1414 (install_application_handler) [MAC_OSX]: Register handlers for
1415 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1416 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1417 Register mac_handle_document_access_event.
1418
1419 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
1420 Make functions non-static.
1421
dbd50d4b
SM
14222008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1423
1424 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
1425 (read_file_name_completion_ignore_case, insert_default_directory)
1426 (Qdefault_directory): Move to minibuffer.el.
1427 (Fread_file_name): Call the new `read-file-name' instead.
1428
9ea37b9d 14292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
1430
1431 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
1432 Make function non-static.
1433 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
1434 Remove function.
1435 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1436 Move to mactoolbox.c.
1437 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
1438
1439 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
1440 (mac_rect_make): New macro.
1441
1442 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
1443 instead of float.
1444 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1445 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
1446 (XSetBackground) [USE_CG_DRAWING]: Likewise.
1447 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
1448 CGRectMake.
1449 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1450 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
1451 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
1452 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1453 instead of WindowRef in argument type.
1454 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
1455 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
1456 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
1457 instead of DISPLAY. All uses changed.
1458 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
1459 (x_calc_absolute_position): Simplify so as not to use
1460 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
1461
1462 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1463 instead of WindowRef in argument type.
1464 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
1465 [TARGET_API_MAC_CARBON]: Remove externs.
1466 (create_apple_event, mac_event_parameters_to_lisp)
1467 [TARGET_API_MAC_CARBON]: Add externs.
1468
d8d30dff 1469 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
1470 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
1471 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
1472 is clicked.
1473 (x_activate_menubar): Remove extern for saved_menu_event_location.
1474 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1475 Move from mac.c.
1476
9ea37b9d 14772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
1478
1479 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
1480 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
1481
9ea37b9d 14822008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
1483
1484 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
1485 attributes only for local files.
1486
1487 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 1488 default to Qlocal.
bd735631 1489
88970542
JL
14902008-04-22 Juri Linkov <juri@jurta.org>
1491
1492 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
1493 read-buffer-to-switch instead of using the letter "B".
1494
92ec67e3
SM
14952008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1496
1497 * fileio.c (Qdefault_directory): New variable.
1498 (Fread_file_name): Use it to pass `dir' to the completion functions.
1499
a32b2382
CY
15002008-04-20 Chong Yidong <cyd@stupidchicken.com>
1501
2a2e8de7 1502 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 1503
6c8b4f07
SM
15042008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
1505
ece5f847
SM
1506 * keyboard.c (Vpre_help_message): Remove.
1507 (show_help_echo): Remove default C code.
1508
6c8b4f07
SM
1509 * dired.c (directory_files_internal, file_name_completion):
1510 Only call ENCODE_FILE if the string is indeed decoded.
1511
73d798d5
SM
15122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 * Makefile.in (TOOLKIT_DEFINES): Remove.
1515 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
1516
d8d30dff 15172008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
1518
1519 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
1520 (mactoolbox.o): New target.
1521
1522 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
1523 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
1524
1525 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
1526 Use mac_set_frame_window_background instead of XSetWindowBackground.
1527 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
1528 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
1529 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
1530 instead of SetWindowTitleWithCFString.
1531 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
1532 Move function to mactoolbox.c.
1533 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1534 Use mac_set_window_modified instead of SetWindowModified.
1535 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
1536 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
1537 (Fx_focus_frame): Use mac_front_non_floating_window instead of
1538 FrontNonFloatingWindow. Use mac_activate_window instead of
1539 ActivateWindow. Use mac_active_non_floating_window instead of
1540 ActiveNonFloatingWindow.
1541 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
1542 Use mac_show_hourglass and mac_hide_hourglass.
1543 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
1544 instead of GetGlobalMouse.
1545 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
1546 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
1547 Use mac_bring_window_to_front instead of BringToFront.
1548 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
1549 mactoolbox.c.
1550 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
1551 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
1552 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
1553 mactoolbox.c.
1554
1555 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
1556 (XtPointer): Move typedef from macmenu.c.
1557 (enum button_type): Move enum from macmenu.c.
1558 (widget_value): Move typedef from macmenu.c.
1559 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
1560 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1561 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1562 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1563 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1564 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1565 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1566 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
1567 (Selection): Move typedef from macselect.c.
1568 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
1569 macterm.c.
1570 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
1571 (mac_is_window_collapsed, mac_bring_window_to_front)
1572 (mac_send_window_behind, mac_hide_window, mac_show_window)
1573 (mac_collapse_window, mac_front_non_floating_window)
1574 (mac_active_non_floating_window, mac_activate_window)
1575 (mac_move_window_structure, mac_move_window, mac_size_window)
1576 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
1577
1578 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
1579 (enum mac_menu_kind): Move enum to mactoolbox.c.
1580 (min_menu_id): Move variable to mactoolbox.c.
1581 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
1582 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
1583 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1584 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1585 [TARGET_API_MAC_CARBON]: Likewise.
1586 (XtPointer): Move typedef to macgui.h.
1587 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
1588 (widget_value): Move typedef to macgui.h.
1589 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1590 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1591 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1592 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1593 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1594 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1595 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
1596 (popup_activated_flag): Make variable non-static.
1597 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
1598 (add_menu_item, fill_menu, dispose_menus):
1599 Move functions to mactoolbox.c.
1600 (restore_show_help_function, menu_target_item_handler)
1601 (install_menu_target_item_handler, mac_handle_dialog_event)
1602 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
1603 [TARGET_API_MAC_CARBON]: Likewise.
1604 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
1605 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1606 (find_and_call_menu_selection, name_is_separator): Make function
1607 non-static.
1608 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
1609 to mactoolbox.c.
1610 (set_frame_menubar): Don't call install_menu_quit_handler.
1611 (menu_item_selection): New variable.
1612 (mac_menu_show): Use create_and_show_popup_menu.
1613 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
1614 selection but set variable menu_item_selection. All uses changed.
1615 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
1616 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 1617
d02fe47d
MB
1618 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
1619 (Selection): Move typedef to macgui.h.
1620 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
1621 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
1622 Make variables non-static.
1623 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1624 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
1625 Make functions non-static.
1626 (Vmac_service_selection) [MAC_OSX]: Likewise.
1627 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
1628 (mac_valid_selection_target_p, mac_clear_selection)
1629 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1630 (mac_put_selection_value, mac_selection_has_target_p)
1631 (mac_get_selection_value, mac_get_selection_target_list)
1632 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
1633 Move functions to mactoolbox.c.
1634 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
1635 Likewise.
1636 (copy_scrap_flavor_data, mac_handle_service_event)
1637 (install_service_handler) [MAC_OSX]: Likewise.
1638 (syms_of_macselect) <Vmac_dnd_known_types>:
1639 Use mac_dnd_default_known_types.
463f55ee 1640
d02fe47d
MB
1641 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
1642 Move to mactoolbox.c.
1643 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
1644 (Fx_selection_owner_p): Add EXFUN.
1645 (install_window_handler, remove_window_handler, XSetWindowBackground):
1646 Remove externs.
1647 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
1648 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
1649 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
1650 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
1651 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
1652 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
1653 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
1654 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
1655 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
1656 (create_and_show_popup_menu, mac_get_selection_from_symbol)
1657 (mac_valid_selection_target_p, mac_clear_selection)
1658 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1659 (mac_put_selection_value, mac_selection_has_target_p)
1660 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
1661 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
1662 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
1663 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1664 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
1665 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1666 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
1667 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
1668 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 1669
d02fe47d 1670 * mactoolbox.c: New file.
af253914 1671
d8d30dff 16722008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 1673
d02fe47d 1674 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 1675
8ee085a4
SM
16762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1677
73d798d5
SM
1678 * character.c (Fmultibyte_char_to_unibyte):
1679 Return latin1 chars unchanged.
5556875b 1680
8ee085a4
SM
1681 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
1682 relocated if it points to `name'.
1683
5dff5999
KH
16842008-04-17 Kenichi Handa <handa@m17n.org>
1685
1686 * data.c (Faset): Allow setting a multibyte character in an
1687 ASCII-only unibyte string.
1688
1689 * lisp.h (STRING_SET_MULTIBYTE): New macro.
1690
a51f4969
SM
16912008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
1692
1693 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
1694 done in config.h.
1695
add553ac
JB
16962008-04-16 Juanma Barranquero <lekktu@gmail.com>
1697
1698 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
1699 (Fchar_direction): Add usage in the docstring.
1700
8ad7b280
CY
17012008-04-15 Chong Yidong <cyd@stupidchicken.com>
1702
1703 * keyboard.c (read_key_sequence): Remove always-true checks.
1704
e157d7ba
JR
17052008-04-14 Jason Rumney <jasonr@gnu.org>
1706
1707 * w32font.c (w32font_open_internal): Set max_bounds.descent in
1708 compatibility struct, for better underline positioning.
1709
9ec3aaef 17102008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
1711
1712 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
1713 string.
1714
36c08864
DN
17152008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1716
1717 * m/hp800.h (XUINT, XSET): Remove.
1718
f5acc071
JB
17192008-04-12 Juanma Barranquero <lekktu@gmail.com>
1720
1721 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
1722 previous change.
1723
5b5a2ea1
SM
17242008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1725
1726 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
1727 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
1728
492d9fd6
SM
17292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1730
1731 * keymap.h (map_keymap_canonical): Declare.
1732 * xmenu.c (single_keymap_panes): Use it.
1733
dd60787c
GM
17342008-04-11 Glenn Morris <rgm@gnu.org>
1735
1736 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
1737 set the target's value to that of the alias.
1738
c23b5410
SM
17392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1740
1741 * term.c (set_tty_color_mode): Left over typo.
1742
e89b536d
MA
17432008-04-10 Michael Albinus <michael.albinus@gmx.de>
1744
1745 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 1746 only after check for file name handler functions. Signal, when
e89b536d
MA
1747 native functionality is not supported.
1748 (syms_of_fileio): Declare it unconditionally.
1749
40a339c8
JR
17502008-04-10 Jason Rumney <jasonr@gnu.org>
1751
31403b24
JR
1752 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
1753 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
1754
40a339c8
JR
1755 * w32.c (logon_network_drive): Also logon to remote drives that
1756 are mapped to drive letters.
1757
96a7394f
GM
17582008-04-10 Glenn Morris <rgm@gnu.org>
1759
1760 * xdisp.c (truncate-partial-width-windows): Doc fix.
1761
34b67b0f
SM
17622008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
1763
1764 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
1765 Move functions to minibuffer.el.
1766 (syms_of_fileio): Don't declare them.
1767
c025fb0a
SM
17682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1769
ba5ff07b
SM
1770 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
1771 (syms_of_minibuf): Remove its initialization.
1772
c025fb0a
SM
1773 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
1774
7a6a86ad
JB
17752008-04-09 Juanma Barranquero <lekktu@gmail.com>
1776
1777 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
1778
cf907d69
JR
17792008-04-09 Jason Rumney <jasonr@gnu.org>
1780
3dc94c30
JR
1781 * makefile.w32-in (distclean): Delete makefile too.
1782 (maintainer-clean): New target.
1783
8d28646b
JR
1784 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
1785
cf907d69
JR
1786 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
1787 for new font backend and composite cases.
1788
ef5eb925
JD
17892008-04-09 Jan Djärv <jan.h.d@swipnet.se>
1790
1791 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
1792 Most of the code moved to run_timers.
1793 (do_pending_atimers): Call run_timers.
1794 (run_timers): New function.
1795
cf907d69
JR
1796 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
1797 run atimers.
ef5eb925
JD
1798
1799 * process.c (wait_reading_process_output): The same as above.
1800
9b2cd403
SM
18012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1802
32bae13c
SM
1803 * minibuf.c (last_exact_completion): Remove variable.
1804 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
1805 (complete_and_exit_1, complete_and_exit_2)
1806 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
1807 (Fdisplay_completion_list, display_completion_list_1)
1808 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
1809 (Fexit_minibuffer, Fminibuffer_message): Move functions to
1810 minibuffer.el.
32bae13c
SM
1811 (syms_of_minibuf): Remove corresponding initializations.
1812
5c4cc82a
SM
1813 * keyboard.c (Qdeactivate_mark): New var.
1814 (command_loop_1): Use it to call `deactivate-mark'.
1815 (syms_of_keyboard): Initialize it.
1816
9b2cd403
SM
1817 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
1818 to another frame.
1819 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
1820 Don't call set_tty_color_mode.
1821 (store_frame_param): Reset previous_frame rather than call
1822 set_tty_color_mode.
1823 * term.c (set_tty_color_mode): Rewrite.
1824 * dispextern.h (set_tty_color_mode): New type.
1825 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
1826
84cb7b45
SM
18272008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1828
1829 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
1830 for generic chars, which do not exist any more in emacs-unicode.
1831
3ed051d4
MA
18322008-04-08 Michael Albinus <michael.albinus@gmx.de>
1833
1834 * coding.c (detect_coding_emacs_mule)
1835 (Ffind_operation_coding_system): Fix typo.
1836
58c3ea42
JR
18372008-04-08 Jason Rumney <jasonr@gnu.org>
1838
3bf8d230
JR
1839 * w32uniscribe.c (SNAME): Extract only symbol name.
1840
56a70cca
JR
1841 * w32font.h (struct w32_metric_cache): New struct.
1842 (w32font_info): Use it.
1843 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
1844 (CACHE_BLOCKSIZE): New constants.
3ed051d4 1845
58c3ea42
JR
1846 * w32font.c (Qja, Qko, Qzh): New symbols.
1847 (syms_of_w32font): Initialise them.
1848 (font_matches_spec): Use them to filter by language.
1849 (recompute_cached_metrics): Remove function.
1850 (compute_metrics, clear_cached_metrics): New functions.
1851 (w32font_encode_char): Use them to manage metric cache.
1852 (w32font_text_extents): Cache metrics for all glyphs on demand.
1853 Delay converting glyph indices to WORD until needed.
1854 (w32font_open_internal): Initialize metric cache to empty.
1855 (registry_to_w32_charset): Charset should always be a symbol.
1856 (fill_in_logfont, list_all_matching_fonts): Family should
1857 always be a symbol.
1858
0ce24b2d
JR
18592008-04-06 Jason Rumney <jasonr@gnu.org>
1860
1861 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
1862 Give up if glyph indices not supported. Use uniscribe obtained
1863 ABC widths for individual metrics. Map glyph clusters back to
1864 characters using fClusterStart flag. Return number of glyphs
1865 produced, not chars processed.
b7655e0c 1866 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 1867
5bc6ddff 18682008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 1869
fbf57abb
JB
1870 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
1871 Use SetMenuItemHierarchicalMenu.
56613f06 1872
5bc6ddff 18732008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 1874
5bc6ddff
MB
1875 * image.c (pbm_load): Allow color values up to 65535.
1876 Throw an error if max_color_idx is outside the supported range.
1877 Report an error when image size is invalid.
1878 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 1879
5bc6ddff 18802008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 1881
5bc6ddff
MB
1882 * w32.c (readdir): If FindFirstFile/FindNextFile return in
1883 cFileName a file name that includes `?' characters, use the 8+3
1884 alias in cAlternateFileName instead.
5ed6ba5b 1885
5bc6ddff 18862008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 1887
5bc6ddff
MB
1888 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
1889 append "CCL: Quitted" when the CCL program is quitted.
1890 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 1891
5bc6ddff 1892 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 1893
c36e15db
CY
18942008-04-05 Chong Yidong <cyd@stupidchicken.com>
1895
9605d567
CY
1896 * search.c (compile_pattern_1): Treat non-nil and non-string of
1897 search-spaces-regexp as nil.
1898
c36e15db
CY
1899 * minibuf.c (Fassoc_string): Tweak docstring.
1900
40beb147
EZ
19012008-04-05 Eli Zaretskii <eliz@gnu.org>
1902
1903 * dired.c (Ffile_attributes): Support inode numbers wider than 32
1904 bits. Remove ugly WINDOWSNT-specific kludge introduced on
1905 2008-03-14 to force inode be positive.
1906
1907 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
1908 _S_* ones, since we now use our own sys/stat.h.
1909 (stat, fstat): Don't mangle the inode number.
aa08d1ff 1910 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 1911
4591d6cb
SM
19122008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
1913
d4417eb0
SM
1914 * frame.h (struct frame): Give one more bit to `visible' since we use
1915 values larger than 1 to indicate obscured frames on ttys.
1916
00f7c5ed
SM
1917 * keymap.c (Qkeymap_canonicalize): New var.
1918 (Fmap_keymap_internal): New fun.
1919 (describe_map): Use keymap-canonicalize.
1920
4591d6cb
SM
1921 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
1922 (Fundo_boundary): Set them.
1923 (syms_of_undo): Initialize them.
1924 (record_point): Use them instead of last_point_position*.
1925 (last_undo_buffer): Change type.
1926
3187540e
JR
19272008-04-04 Jason Rumney <jasonr@gnu.org>
1928
0ce24b2d
JR
1929 * w32font.c (w32font_text_extents): Use font's ascent and descent.
1930 (recompute_cached_metrics): Don't set ascent and descent per char.
1931
3187540e 1932 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 1933 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 1934 Rearrange loop for counting features.
3187540e 1935
f1a6b216
SM
19362008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1937
1938 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
1939 buffer with byte-size of source buffer.
1940
1d8dcf63
CY
19412008-04-03 Chong Yidong <cyd@stupidchicken.com>
1942
1943 * callint.c (Fcall_interactively): Handle temporary region even
1944 when shift-select-mode is off.
1945
6b8aa22a
JR
19462008-04-03 Jason Rumney <jasonr@gnu.org>
1947
1948 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
1949
2f3cbb32
KH
19502008-04-03 Kenichi Handa <handa@m17n.org>
1951
1952 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
1953 (CATEGORY_MASK_UTF_16): Likewise.
1954 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
1955 binary file.
1956 (detect_coding): Add null-byte detection for a binary file.
1957 (detect_coding_system): Likewise.
1958
43f4f91c
JR
19592008-04-03 Jason Rumney <jasonr@gnu.org>
1960
0c1b4ae2
JR
1961 * w32uniscribe.c: New file.
1962
1963 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
1964
1965 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
1966
1967 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
1968 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
1969 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
1970 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
1971 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
1972 (Qphonetic): New symbols.
1973 (syms_of_w32font): Initialize them.
1974 (font_supported_scripts): Use them.
1975 (w32font_list_family): List all charsets.
1976 (w32font_text_extents, recompute_cached_metrics): Fix metric
1977 calculations.
1978 (w32_enumfont_pattern_entity): Make full_type a DWORD.
1979 Give opentype fonts their own format.
1980 (font_matches_spec): New arguments backend and logfont.
1981 Handle :otf spec for uniscribe backend.
1982 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
1983 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 1984
0c1b4ae2
JR
1985 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
1986 font backend.
1987 (globals_of_w32fns): Initialize uniscribe font backend.
1988
fbf57abb 1989 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
1990 dependencies.
1991 (w32uniscribe.$(O)): New file to build.
1992 (FONT_OBJ): Include w32uniscribe.$(O).
1993 (LIBS): Add uniscribe libraries.
1994
43f4f91c
JR
1995 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
1996
75043a7d
CY
19972008-04-02 Chong Yidong <cyd@stupidchicken.com>
1998
1999 * callint.c (Vshift_select_mode): New var.
2000 (Finteractive): Document new ^ spec.
2001 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2002 is present.
2003
2004 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2005 (command_loop_1): Avoid running the direct display versions of
2006 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
2007 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2008 shift-translation takes place.
2009
2010 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2011 avoid clobbering by define-minor-mode.
2012
2013 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2014 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2015
2016 * syntax.c (Fforward_word): Add ^ interactive spec.
2017
2018 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2019 (Fscroll_right): Add ^ interactive spec.
2020
b2b7f29e
SM
20212008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2022
a432c0a6
SM
2023 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2024
994b75e0
SM
2025 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2026
b2b7f29e
SM
2027 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2028
e99c7806
JL
20292008-03-31 Juri Linkov <juri@jurta.org>
2030
2031 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2032
1c9c1270
JD
20332008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2034
2035 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 2036 (xg_resize_outer_widget): Remove.
1c9c1270
JD
2037 (x_wm_size_hint_off): Fix indentation.
2038 (xg_frame_set_char_size): Call flush_and_sync after
2039 gtk_window_resize.
2040 (x_wm_set_size_hint): Pass NULL as geometry window to
2041 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
2042 Add menu bar and tool bar height to base height.
2043 (xg_update_frame_menubar, free_frame_menubar)
2044 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
2045 (update_frame_tool_bar, free_frame_tool_bar):
2046 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 2047
90b3fc84
MA
20482008-03-30 Michael Albinus <michael.albinus@gmx.de>
2049
2050 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
2051 (Fdbus_call_method): New parameter TIMEOUT.
2052 (dbus-send-signal): Optimize UNGCPRO call.
2053
7ae6d1d1
JL
20542008-03-29 Juri Linkov <juri@jurta.org>
2055
2056 * window.c (Fdisplay_buffer): Move call to
2057 Vsplit_window_preferred_function out of conditions that check
2058 if window is eligible for vertical splitting.
2059 When Vsplit_window_preferred_function is non-nil, call it and use
2060 its non-nil return value as window. Otherwise, continue doing
2061 vertical splitting using Fsplit_window with arg horflag=nil.
2062 (syms_of_window) <Vsplit_window_preferred_function>: Change the
2063 default value from `split-window' to nil.
2064
f03f8f2c
JL
20652008-03-29 Juri Linkov <juri@jurta.org>
2066
2067 * callint.c (Fcall_interactively): Revert 2008-03-16 change
2068 for interactive code letters 'b' and 'B'.
2069
6d557778
EZ
20702008-03-29 Eli Zaretskii <eliz@gnu.org>
2071
2072 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
2073 multibyte string.
2074
58555d81
SM
20752008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2076
2077 * keyboard.c (pending_funcalls): New var.
2078 (timer_check): Run it.
2079 (syms_of_keyboard): Initialize it.
2080 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
2081 (Vdelete_terminal_functions): New vars.
2082 (syms_of_terminal): Initialize them.
2083 (Fdelete_terminal): Run delete-terminal-functions.
2084 * xdisp.c (safe_eval): Rewrite.
2085 (safe_call2): New fun.
2086 * frame.c (Qdelete_frame_functions): New var.
2087 (syms_of_frame): Initialize it.
2088 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
2089 * lisp.h (safe_call2, pending_funcalls): Declare.
2090
4c92f429
AS
20912008-03-28 Andreas Schwab <schwab@suse.de>
2092
2093 * indent.c (Fmove_to_column): Move declaration before statements.
2094
a1567c45
SM
20952008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2096
2806a183
SM
2097 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
2098 (struct frame): Use bit fields for boolean vars.
2099
eef60308
SM
2100 * process.c (server_accept_connection): Simplify naming.
2101 (emacs_get_tty_pgrp): Use SDATA.
2102
a1567c45
SM
2103 * coding.c (decode_coding_object): Fix last change.
2104
30076589
JR
21052008-03-27 Jason Rumney <jasonr@gnu.org>
2106
2107 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
2108
880820fe
KH
21092008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
2110
2111 * charset.c (Fdefine_charset_internal): Change the way of
2112 registering charsets in Vcharset_order_list.
2113 (syms_of_charset): Make the charset `eight-bit' supplementary.
2114
3cf8cdfb
CY
21152008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
2116
2117 * regex.c (EXTEND_BUFFER): Change order of pointer addition
2118 operations, to avoid having the difference between pointers
2119 overflow.
2120
ef6f5c0e
SM
21212008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2122
80e3db56
SM
2123 * indent.c (check_display_width): New fun.
2124 (scan_for_column): Use it.
2125
c397dc7a
SM
2126 * data.c (syms_of_data): Mark most-positive-fixnum and
2127 most-negative-fixnum as constants.
2128
bf6b4d58
SM
2129 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
2130
ef6f5c0e
SM
2131 * indent.c (scan_for_column): Extract from current_column_1.
2132 Merge with the same code from Fmove_to_column.
2133 (current_column_1, Fmove_to_column): Use it.
2134
72d5003d
SM
21352008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2136
12270607
SM
2137 * keymap.c (map_keymap_internal): New fun.
2138 (map_keymap): Use it.
2139 (Fmap_keymap_internal): New fun.
2140 (Fmap_keymap): Remove left-out test from before make_save_value.
2141
a10cca6c
SM
2142 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2143
d7b10f4c
SM
2144 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
2145 Use XCAR/XCDR.
2146
5431bd6a
SM
2147 * process.h (struct Lisp_Process): Remove filter_multibyte.
2148 * process.c (QCfilter_multibyte): Remove.
2149 (setup_process_coding_systems): Don't use filter_multibyte.
2150 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
2151 (read_process_output): Don't adjust multibyteness to filter_multibyte.
2152 (Fset_process_filter_multibyte): Change the coding-system to
2153 approximate the previous behavior.
2154 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
2155 coding-system.
2156
72d5003d
SM
2157 * coding.c (decode_coding_object): When not decoding into a buffer,
2158 obey the coding system's preference of (uni|multi)byte.
2159
438eba3c
SM
21602008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
2163 every char is changed and has a different byte-length.
2164 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
2165 Fix int -> EMACS_INT.
2166
9ec3aaef 21672008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 2168
438eba3c 2169 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
2170 strings. Check for NULL `interface' or `member'.
2171
b07103dc
EZ
21722008-03-22 Eli Zaretskii <eliz@gnu.org>
2173
2174 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2175 cFileName a file name that includes `?' characters, use the 8+3
2176 alias in cAlternateFileName instead.
2177
5371d722
SM
21782008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2179
2180 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
2181
6ba7f443
SM
21822008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2183
2184 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
2185 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
2186 work on current_buffer only instead (that was already the case
2187 for some of the code anyway).
2188 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
2189 (temp_set_point, temp_set_point_both): Use EMACS_INT.
2190 (SET_PT, SET_PT_BOTH): Adjust.
2191 * intervals.h (set_point, temp_set_point, set_point_both)
2192 (temp_set_point_both): Remove redundant declarations.
2193
bf1c0f27
SM
21942008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2195
2196 * fileio.c (Finsert_file_contents):
2197 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
2198 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
2199 when buffer != current_buffer anyway.
2200
acab783e
AS
22012008-03-20 Andreas Schwab <schwab@suse.de>
2202
2203 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
2204 as default.
2205
d148e14d
JR
22062008-03-19 Jason Rumney <jasonr@gnu.org>
2207
2208 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
2209 (syms_of_w32fns): Initialize them.
2210 (HOURGLASS_ID): New constant.
2211 (x_window_to_frame): Don't check hourglass_window.
2212 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
2213 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
2214 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
2215 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
2216 Only change the cursor if hourglass is not active.
2217 (Fx_create_frame): Initialize frame's current_cursor.
2218 (hourglass_atimer): Remove.
2219 (hourglass_started): New function.
2220 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
2221 (show_hourglass): Adapt to w32, changing argument to frame.
2222
2223 * w32term.h (struct w32_output): Remove hourglass_window.
2224 Add current_cursor.
2225
2226 * eval.c (call_debugger, Fsignal):
2227 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
2228 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
2229 (Fexecute_extended_command, cancel_hourglass_unwind):
2230 * minibuf.c (read_minibuf):
2231 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 2232
a5c54077
JB
22332008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2234
2235 * window.c (run_funs): New fun.
2236 (run_window_configuration_change_hook): Use it to run the buffer-local
2237 and the global part of the hook.
2238
2239 * xdisp.c (format_mode_line_unwind_data): Add window argument.
2240 (unwind_format_mode_line): Restore selected window.
2241 (x_consider_frame_title, Fformat_mode_line): Set selected window.
2242
f9f3238f
SM
22432008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2244
253c3c82
SM
2245 * editfns.c (Fchar_equal): Check they are valid characters.
2246
f9f3238f
SM
2247 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
2248
065a118d
AS
22492008-03-17 Andreas Schwab <schwab@suse.de>
2250
0b8be006
AS
2251 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
2252 against a charset.
2253
065a118d
AS
2254 * lisp.h (Fbuffer_list): Declare.
2255
880820fe 22562008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
2257
2258 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
2259 handlebox_widget is != 0.
2260
6206d6c2
JL
22612008-03-16 Juri Linkov <juri@jurta.org>
2262
2263 * callint.c (Fcall_interactively): For interactive code letters
2264 'b' and 'B' put the buffer list into the list of default "future"
2265 values of the minibuffer.
2266
f5020181
AS
22672008-03-16 Andreas Schwab <schwab@suse.de>
2268
a864f6d6
AS
2269 * keyboard.c (read_key_sequence): Fix downcasing of letters with
2270 modifiers.
2271
f5020181
AS
2272 * regex.c (re_match_2_internal): Correct matching of a charset
2273 against latin-1 characters.
2274
03f244e2
KH
22752008-03-16 Kenichi Handa <handa@m17n.org>
2276
2277 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
2278 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
2279 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
2280 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
2281 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
2282 CHAR_STRING_ADVANCE.
2283 (produce_chars): Fix for the case that the source and the
2284 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
2285 instead of CHAR_STRING_ADVANCE.
2286 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
2287 STRING_CHAR_ADVANCE.
2288
0e2501ed
AS
22892008-03-15 Andreas Schwab <schwab@suse.de>
2290
2291 * regex.c (re_match_2_internal): Correct matching of eight bit
2292 characters in unibyte strings.
2293
7723e095
MR
22942008-03-15 Martin Rudalics <rudalics@gmx.at>
2295
2296 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
2297 at end of range when it coincides with the end of the buffer.
2298
f507f365
EZ
22992008-03-14 Eli Zaretskii <eliz@gnu.org>
2300
294f1153
EZ
2301 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
2302
f507f365
EZ
2303 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2304
64f0809d
JR
23052008-03-14 Jason Rumney <jasonr@gnu.org>
2306
956ae531
JR
2307 * editfns.c (initial_tz): New variable.
2308 (syms_of_editfns): Initialize it.
2309 (Fset_time_zone_rule): Set it when first called.
2310 Use it when TZSTRING is nil.
2311
64f0809d
JR
2312 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
2313 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
2314 (monitor_from_point_fn, get_monitor_info_fn): New globals.
2315 (globals_of_w32fns): Initialize them.
2316 (compute_tip_xy): Use them to position tooltips.
2317
21a4ff8e
GM
23182008-03-14 Glenn Morris <rgm@gnu.org>
2319
2320 * emacs.c (main): Revert previous change.
2321 (standard_args): Revert -internal-script back to -scriptload,
2322 and remove the long-option form.
2323
a09a5b5b
GM
23242008-03-13 Glenn Morris <rgm@gnu.org>
2325
2326 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
2327 Remove option -enable-font-backend.
2328
1c55ebd1
SM
23292008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2330
2331 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
2332
880820fe 23332008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
2334
2335 * xterm.c (x_connection_closed): For GTK: If this is the last
2336 terminal just exit without closing the display.
2337
7145be81
JR
23382008-03-11 Jason Rumney <jasonr@gnu.org>
2339
2340 * w32font.c (w32font_full_name): Use floor to round.
2341
e6201af3 23422008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
2343
2344 * sound.c (alsa_configure): Declare vol at beginning of block.
2345
e6201af3 2346 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 2347
390b81fa 23482008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 2349
56388398
MB
2350 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
2351 size of resulting string.
af0ad939 2352
390b81fa 23532008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 2354
56388398 2355 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 2356
390b81fa 23572008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 2358
56388398
MB
2359 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
2360 Don't pretend as if characters with display property haven't been
2361 consumed for string-replacing-string case.
acd37560 2362
223ed6db
KS
23632008-03-08 Kim F. Storm <storm@cua.dk>
2364
2365 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
2366 (get_next_display_element, next_element_from_string)
2367 (next_element_from_ellipsis, next_element_from_buffer): Use it.
2368
28545f7c
AS
23692008-03-08 Andreas Schwab <schwab@suse.de>
2370
2371 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
2372
c960bff8
JR
23732008-03-06 Jason Rumney <jasonr@gnu.org>
2374
290afd83
JB
2375 * w32font.c (w32_registry): Take font_type argument. Use ANSI
2376 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
2377 font_type is truetype.
2378 (w32font_coverage_ok): New function.
2379 (add_font_entity_to_list): Use it to filter unsuitable fonts.
2380
87b8ce92
KH
23812008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
2382
2383 * lread.c (Fread_char): Resolve modifiers.
2384 (Fread_char_exclusive): Likewise.
2385
2386 * character.c (char_resolve_modifier_mask): New function.
2387 (char_string): Use char_resolve_modifier_mask.
2388 (Fchar_resolve_modifiers): New function.
2389 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
2390 function.
2391
cefd56f6
JR
23922008-03-04 Jason Rumney <jasonr@gnu.org>
2393
2394 * makefile.w32-in: Always include w32font.c in the build.
2395 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
2396
03bd3c1f
AS
23972008-03-04 Andreas Schwab <schwab@suse.de>
2398
2399 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
2400 (versionclean): Likewise.
2401
6f69e89b
JB
24022008-03-04 Juanma Barranquero <lekktu@gmail.com>
2403
2404 * .cvsignore: Add oo.
2405
f4a3cc44
AS
24062008-03-03 Andreas Schwab <schwab@suse.de>
2407
2408 * coding.c (decode_coding_object): Inhibit gap shrinking while
2409 decoding in place.
2410
73f838ad
DN
24112008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
2412
2413 * w32term.c: Remove unused include "gnu.h".
6f69e89b 2414 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
2415
2416 * gnu.h: Rename to ...
2417 * emacs-icon.h: ... this.
2418 * xterm.c: Use emacs-icon.h instead of gnu.h.
2419 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
2420
ce9c1f06
JB
24212008-03-03 Juanma Barranquero <lekktu@gmail.com>
2422
2423 * w32font.c: Include math.h.
2424
34fd2d28
JR
24252008-03-03 Jason Rumney <jasonr@gnu.org>
2426
54efdcd1
JR
2427 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
2428 Compute options separately.
2429 (w32font_open_internal): Set glyph_idx before caching metrics.
2430
ce9c1f06
JB
2431 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
2432 Define if system headers don't.
2433 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
2434 (w32font_encode_char): Don't declare here.
2435
2436 * w32font.c (Quniscribe, QCformat): New symbols.
2437 (syms_of_w32font): Define them.
2438 (w32font_has_char): Indicate uncertainty.
ce9c1f06 2439 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 2440 (recompute_cached_metrics): New function.
ce9c1f06
JB
2441 (w32font_open_internal): Use it. Set font to use glyph points
2442 initially. Set format based on type of font.
34fd2d28 2443 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
2444 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
2445 on it. Set format based on information available here.
34fd2d28
JR
2446 (add_font_entity_to_list): Identify backend based on opentype_only.
2447
14daee73
AS
24482008-03-02 Andreas Schwab <schwab@suse.de>
2449
f907fb2e
AS
2450 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
2451
ce9c1f06
JB
2452 * coding.c (decode_coding_big5, produce_chars):
2453 Fix typos in last change.
14daee73 2454
c9cc6462
DN
24552008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
2456
2457 * gnu.h: New icon.
2458
119852e7
KH
24592008-03-02 Kenichi Handa <handa@m17n.org>
2460
2461 * coding.c (decode_coding_utf_8): When eol-type of CODING is
2462 `dos', don't decode '\r' if that is the last in the source.
2463 (decode_coding_utf_16, decode_coding_emacs_mule)
2464 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2465 (decode_coding_raw_text, decode_coding_charset): Likewise.
2466 (produce_chars): Don't decode EOL here. Use EMACS_INT.
2467
a823468b
JR
24682008-03-01 Jason Rumney <jasonr@gnu.org>
2469
2470 * w32font.c (w32font_full_name): Report point size for scalable fonts.
2471
4ddc7e30
KS
24722008-03-01 Kim F. Storm <storm@cua.dk>
2473
2474 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
2475
67997c79
JR
24762008-03-01 Jason Rumney <jasonr@gnu.org>
2477
2478 * w32font.c (w32font_full_name): New function.
2479 (w32font_open_internal): Use it.
2480
3f4e9c35
KS
24812008-03-01 Kim F. Storm <storm@cua.dk>
2482
2483 * dispnew.c (line_draw_cost): Fix invalid glyph check.
2484
f3b9e479
JR
24852008-03-01 Jason Rumney <jasonr@gnu.org>
2486
2487 * font.c (font_unparse_fcname): Increase len when style is a symbol.
2488
880820fe 24892008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
2490
2491 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
2492 xg_frame_resized when the event is for the edit widget.
2493
2494 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
2495
2496 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
2497 set_char_size.
2498 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
2499 operations on widgets here. Just set frame size if needed.
2500 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
2501 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
2502 (x_wm_set_size_hint): Set size hints on the edit widget only, not
2503 the whole frame.
2504 (xg_create_tool_bar): Move attachement of the tool bar to
2505 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
2506 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
2507
6c8acaa1
JR
25082008-03-01 Jason Rumney <jasonr@gnu.org>
2509
2510 * w32fns.c (w32_msg_pump): Disable debug code.
2511
51fb064b 25122008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 2513
51fb064b 2514 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 2515
60221a33
CY
25162008-02-29 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * xdisp.c (next_overlay_string): Don't set
2519 overlay_strings_at_end_processed_p if we're currently reading from
2520 a display string.
2521
10cbc34f
SM
25222008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
2523
2524 * xdisp.c (get_overlay_strings_1): Fix typo.
2525
73c0054e
CY
25262008-02-29 Chong Yidong <cyd@stupidchicken.com>
2527
2528 * xdisp.c (get_overlay_strings_1): Add missing argument type.
2529
ec1c4354
KH
25302008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
2531
55082642
KH
2532 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
2533
ec1c4354
KH
2534 * xdisp.c (display_mode_element): Cancel the previous change.
2535 (decode_mode_spec): Likewise.
ee548a94
KH
2536 (handle_auto_composed_prop): Don't make composition if it->string
2537 is a string.
ec1c4354 2538
b6d898a2
KS
25392008-02-27 Kim F. Storm <storm@cua.dk>
2540
2541 * lisp.h (GLYPH): Change type from int to struct with separate char
2542 and face_id members.
2543 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
2544 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
2545 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
2546 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
2547 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
2548 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
2549 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
2550 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
2551 handle new Lisp glyph code encoding, either an integer or a cons.
2552
2553 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
2554 (GLYPH_ALIAS): Delete.
2555 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
2556 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
2557 (GLYPH_FROM_CHAR): Replace macro by ...
2558 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
2559
2560 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
2561 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
2562 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
2563 (GLYPH_INVALID_P): New macro.
2564 (spec_glyph_lookup_face): Update prototype.
2565
2566 * dispnew.c (line_draw_cost): Adapt to new glyph type.
2567 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
2568 new glyph code encoding.
2569 (spec_glyph_lookup_face): No return value; update passed glyph instead.
2570 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
2571
2572 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2573 Adapt to new glyph type and new glyph code encoding.
2574
2575 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
2576
2577 * indent.c (current_column, current_column_1, Fmove_to_column)
2578 (compute_motion): Adapt to new glyph code encoding.
2579
2580 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
2581
af2080a2
CY
25822008-02-27 Chong Yidong <cyd@stupidchicken.com>
2583
2584 * process.c (wait_reading_process_output): Check for window
2585 changes caused by timers.
880820fe 2586 Suggested by Johan Bockgård.
af2080a2 2587
253ed25e
GM
25882008-02-27 Glenn Morris <rgm@gnu.org>
2589
2590 * emacs.c (USAGE1): Add `--disable-font-backend'.
2591
18a9f8d9
SM
25922008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
2593
2594 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
2595 is made to the buffer.
2596
0f8b27ea
SM
25972008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2598
2599 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
2600 (face_at_string_position):
2601 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2602 (face_at_string_position):
2603 * xdisp.c (display_string, next_overlay_change):
2604 * buffer.h (overlays_at):
2605 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
2606 Update callers.
2607
4e7c53ca
CY
26082008-02-26 Chong Yidong <cyd@stupidchicken.com>
2609
2610 * editfns.c (Fformat): Doc fix.
2611
51c01100
JB
26122008-02-26 Juanma Barranquero <lekktu@gmail.com>
2613
2614 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
2615 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
2616 (Ffont_otf_alternates, Fquery_font): Doc fixes.
2617
13cda5f9
SM
26182008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2619
2620 * buffer.c (Fbuffer_swap_text): New function.
2621 (syms_of_buffer): Defsubr it.
2622
8018d430
CY
26232008-02-25 Chong Yidong <cyd@stupidchicken.com>
2624
2625 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
2626
9bde1a21
JR
26272008-02-25 Jason Rumney <jasonr@gnu.org>
2628
2629 * w32font.c (w32font_draw): Draw one character at a time when padding.
2630
eeca6f6f
SM
26312008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2632
2633 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
2634 Handle a nil arg. Use run_window_configuration_change_hook.
2635 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
2636 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
2637 Use run_window_configuration_change_hook.
2638
ec1c4354
KH
26392008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2640
2641 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
2642 1-pixel width.
2643
ae185452
KH
26442008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2645
2646 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
2647 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
2648 if the glyph in the font is zero pixel with.
2649
2650 * dispextern.h (struct glyph_string): New member padding_p.
2651
2652 * w32font.c (w32font_draw): Pay attention to s->padding_p.
2653
2654 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
2655
2656 * xfont.c (xfont_draw): Pay attention to s->padding_p.
2657
2658 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
2659
eeca6f6f 2660 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 2661
ffe832ea 26622008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 2663
ffe832ea 2664 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 2665
06045130
SM
26662008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
2667
2668 Allow fine-grained image-cache flushing.
2669 * dispextern.h (struct image): Add `dependencies' field.
2670 (clear_image_caches): Change arg to Lisp_Object.
2671 * image.c (make_image): Initialize `dependencies' field.
2672 (clear_image_cache): Change arg to allow fine-grained flushing.
2673 Perform the flush even if image-cache-eviction-delay is nil.
2674 (clear_image_caches): Change arg to Lisp_Object.
2675 (Fclear_image_cache): Expand meaning of the argument.
2676 (mark_image): Mark `dependencies' field.
2677 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
2678 (lface_hash): Use XHASH rather than XFASTINT.
2679 (face_at_buffer_position): Fix int -> EMACS_INT position.
2680 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
2681 (select_frame_for_redisplay): Remove code duplication.
2682 (redisplay_internal): Adapt arg to call to clear_image_caches.
2683
9d2818d6
DN
26842008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2685
2686 * s/vms4-0.h:
2687 * s/vms4-2.h:
2688 * s/vms4-4.h:
2689 * s/vms5-5.h: Remove, unused.
2690
2691 * s/irix5-2.h:
2692 * s/irix6-0.h:
2693 * s/riscos5.h:
2694 * s/mach-bsd4-3.h:
2a2e8de7 2695 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
2696
2697 * Makefile.in:
2698 * filelock.c:
2699 * unexmips.c:
2700 * m/hp9000s300.h:
2701 * m/iris4d.h:
2702 * s/aix3-1.h:
2703 * s/hpux.h:
2704 * s/msdos.h:
2705 * s/usg5-0.h:
2706 * s/usg5-2-2.h:
2707 * s/usg5-2.h:
2708 * s/usg5-3.h: Remove references to obsolete variables.
2709
2710 * s/irix5-0.h: Remove, move all the contents ...
2711 * s/irix6-5.h: ... here. Simplify.
2712 * config.in: Regenerate.
2713
2a36efcf
JR
27142008-02-24 Jason Rumney <jasonr@gnu.org>
2715
c5ad7a3d 2716 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
2717 manually when cleartype is in use.
2718 (x_draw_glyph_string_foreground): Draw text transparently when
2719 cleartype is in use.
2720
2a36efcf
JR
2721 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
2722 a font into it unless we have to.
2723
b03f96dc 27242008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 2725
b03f96dc
MB
2726 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
2727 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 2728
b03f96dc 27292008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 2730
b03f96dc 2731 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 2732
b03f96dc 27332008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 2734
b03f96dc 2735 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 2736
b03f96dc 27372008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 2738
b03f96dc 2739 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 2740
d5958163
CY
27412008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
2742
2743 * xterm.c (x_set_offset): Don't change the gravity if
2744 CHANGE_GRAVITY is -1.
2745
9997701e
CY
27462008-02-23 Chong Yidong <cyd@stupidchicken.com>
2747
2748 * fileio.c (auto_save_error_occurred): New var.
2749 (auto_save_error): Set it.
2750 (Fdo_auto_save): Don't overwrite the error message if an auto-save
2751 error occurred.
2752
9d95a291
EZ
27532008-02-23 Eli Zaretskii <eliz@gnu.org>
2754
2755 * w32.c (globals_of_w32): Add initializations for
2756 g_b_init_get_sid_sub_authority and
2757 g_b_init_get_sid_sub_authority_count.
2758
43d1af23
SM
27592008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
2760
43a1d19b
SM
2761 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
2762 (font_parse_xlfd): Use them for sanity check.
608c3307 2763 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 2764
354884c4
SM
2765 Consolidate the image_cache to the terminal struct.
2766 * termhooks.h (P_): Remove redundant def.
2767 (struct terminal): New field `image_cache'.
2768 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
2769 of FRAME_X_IMAGE_CACHE.
2770 * xterm.h (struct x_display_info): Remove image_cache field.
2771 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2772 * w32term.h (struct w32_display_info): Remove image_cache field.
2773 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2774 * macterm.h (struct mac_display_info): Remove image_cache field.
2775 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2776 * xterm.c (x_term_init):
2777 * w32term.c (w32_term_init):
2778 * macterm.c (mac_term_init): Set the image_cache in the terminal.
2779 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
2780 Remove declarations.
2781 (clear_image_caches, mark_image_cache): New declarations.
2782 * xfaces.c (clear_face_cache):
2783 * xdisp.c (redisplay_internal): Use clear_image_caches.
2784 * image.c (clear_image_cache): Don't check that a frame is on
2785 a window-system before checking if it shares the same cache.
2786 (clear_image_caches): New function.
2787 (Fclear_image_cache): Use it.
2788 (mark_image): Move from allo.c.
2789 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
2790 * alloc.c (mark_image, mark_image_cache): Move to image.c.
2791 (mark_object): Don't call mark_image_cache for frames.
2792 (mark_terminals): Call mark_image_cache.
2793
c2e42690
SM
2794 * lisp.h (Fdelete_terminal): Declare.
2795
43d1af23
SM
2796 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
2797 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
2798 wrong_type_argument.
2799
cc8d1311
KH
28002008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
2801
2802 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 2803 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 2804
6bd92640
SM
28052008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
2806
2807 * xterm.c (x_connection_closed): Consolidate identical tests.
2808 (x_delete_terminal): Don't crash if called via x_connection_closed.
2809
a73b5627
KH
28102008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
2811
2812 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 2813 (display_mode_element): Adjust for the above change.
a73b5627 2814
1b511542
SM
28152008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2816
2817 * callint.c (Fcall_interactively): Use AREF.
2818
81aefea4
SM
28192008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2820
2821 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
2822
880820fe 28232008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
2824
2825 * xfns.c (Fx_show_tip): Set string to " " if empty.
2826
a2b84f35
DN
28272008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
2828
2829 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
2830 with Qt.
2831
43c0454d
KH
28322008-02-17 Kenichi Handa <handa@m17n.org>
2833
2834 * ftfont.c (ftfont_shape): Return Lispy number.
2835
2836 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
2837 for GCs.
2838 (Finternal_set_font_selection_order): Call font_update_sort_order
2839 only when enable_font_backend is set.
2840 (realize_x_face): Set face->font_info to that of default face only
2841 when enable_font_backend is set.
2842
2843 * xdisp.c (handle_composition_prop): Set it->c to the fist
2844 characte of the composed region.
2845 (fill_composite_glyph_string): Set base_face->font_info to
2846 s->font_info. Get a face for ascii from base_face->ascii_face.
2847 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
2848 with a face already decided.
2849 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
2850 non-negative.
978bef9a
JB
2851 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
2852 call font_prepare_composition unconditionally.
43c0454d 2853
978bef9a 2854 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
2855
2856 * xterm.h (struct x_display_info): New member font.
2857
2858 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
2859 (x_set_mouse_face_gc, x_new_font): Likewise.
2860 (x_term_init): Setup display_info->font.
2861 (x_delete_terminal): Free display_info->font.
2862
2863 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
2864
2865 * ftxfont.c (ftxfont_default_fid): Delete it.
2866 (ftxfont_open): Set xfont->fid to 0.
978bef9a 2867 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
2868 font-driver.
2869
2870 * xftfont.c (xftfont_default_fid): Delete it.
2871 (xftfont_open): Set xfont->fid to 0.
2872
2873 * fontset.c (FONTSET_OBJLIST): New macro.
2874 (fontset_find_font): Update font-object list of the fontset.
2875 (free_realized_fontset): New function.
2876 (free_face_fontset): Call free_realized_fontset.
2877 (Ffont_info): Call font_close_object only when enable_font_backend
2878 is set.
2879
2880 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
2881 [HAVE_NTGUI]: Include w32term.h.
2882 [MAC_OS]: Include macterm.ch.
2883 (font_otf_ValueRecord): Use make_number.
2884 (font_finish_cache): Fix handling of reference count.
2885 (font_clear_cache): Update num_fonts.
2886 (font_open_entity): Update smallest_char_width and
2887 smallest_font_height of the frame.
2888 (font_close_object): Update num_fonts.
2889 (Fclear_font_cache): Fix finding the target cache data.
2890
be617367
GM
28912008-02-16 Glenn Morris <rgm@gnu.org>
2892
2893 * fontset.c (Finternal_char_font): Fix compilation warning.
2894
2930d117
EZ
28952008-02-16 Eli Zaretskii <eliz@gnu.org>
2896
634d3003
EZ
2897 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
2898 instead of char arrays. Enlarge the size of array passed to
2899 get_token_information.
2900
2930d117
EZ
2901 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
2902 warnings.
2903
79214046
DN
29042008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
2905
2906 * .gdbinit: Don't set `args', it breaks gdb --args.
2907
7f5d2c72
SM
29082008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
2909
2910 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
2911 within a narrowed buffer.
2912
6edacc43
KH
29132008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
2914
b270d6af
JB
2915 * coding.c (decode_coding_object, encode_coding_object):
2916 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 2917
174105f7
SM
29182008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2919
b270d6af
JB
2920 * coding.c (coding_set_destination): Use BEG_BYTE rather than
2921 hardcoding 1.
13818c30
SM
2922 (detect_coding_system):
2923 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
2924 (string_char_to_byte, string_byte_to_char, insert_from_gap):
2925 * insdel.c (insert_from_gap):
2926 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
2927 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
2928 (string_to_multibyte):
2929 * character.c (chars_in_text, multibyte_chars_in_text):
2930 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
2931
f1c99628
SM
2932 * character.h (FETCH_STRING_CHAR_ADVANCE)
2933 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
2934 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
2935 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
2936
7927d8e3
SM
2937 * casefiddle.c (casify_region): Only call after-change and composition
2938 functions on the part of the region that was changed.
2939
adf6a429 2940 * keyboard.c (read_avail_input):
174105f7
SM
2941 * frame.c (Fdelete_frame): Call Fdelete_terminal.
2942
3ee24aec
SM
29432008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2944
2945 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
2946 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
2947
4ed4b975
JB
29482008-02-11 Juanma Barranquero <lekktu@gmail.com>
2949
2950 * w32menu.c (push_submenu_start, push_submenu_end)
2951 (push_left_right_boundary, push_menu_pane, push_menu_item):
2952 * keyboard.c (read_key_sequence): Don't pass args with side effects
2953 to AREF, it fails when compiling with -DENABLE_CHECKING.
2954
79e3bfb8
KH
29552008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
2956
4ed4b975
JB
2957 * Makefile.in (${lispsource}international/charprop.el):
2958 Delete this target.
6e76043f 2959
79e3bfb8
KH
2960 * search.c (boyer_moore): Fix incorrect synching of the trunk and
2961 emacs-unicode-2.
2962
5b8de9c5
SM
29632008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2964
2965 * terminal.c (Fdelete_terminal): Clean up the `force' path.
2966
eac1939a
SM
29672008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
2968
c53956fe
SM
2969 * frame.c (Qnoelisp): New symbol.
2970 (syms_of_frame): Initialize it.
2971 (Fdelete_frame): Use it to distinguish a mere `force' passed from
2972 someharmles Elisp code, from a strong `force' from x_connection_closed.
2973 * frame.h (Qnoelisp): Declare.
2974 * xterm.c (x_connection_closed): Pass `noelisp'.
2975
eac1939a
SM
2976 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
2977 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
2978 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
2979 rather than `int' for the type of `type'.
2980
13f6772b
DN
29812008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
2982
2983 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
2984
2985 * Makefile.in (GNUC): Remove support for gcc-1.x.
2986
e8455367
RS
29872008-02-10 Richard Stallman <rms@gnu.org>
2988
2989 * lisp.h (ASET): Use AREF, not ASLOT.
2990
4b75ffab
SM
29912008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
2992
2993 * lisp.h (ASET): Check bounds.
2994
d224e8c2
GM
29952008-02-10 Glenn Morris <rgm@gnu.org>
2996
2997 * buffer.c (mode-name): Doc fix.
2998
4624371d
DN
29992008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3000
290afd83
JB
3001 * Makefile.in:
3002 * emacs.c:
3003 * gmalloc.c:
3004 * keyboard.c:
3005 * lisp.h:
3006 * m/ibm370aix.h:
3007 * process.c:
3008 * regex.c:
3009 * s/hpux.h:
3010 * sysdep.c:
3011 * sysselect.h:
3012 * systty.h:
3013 * unexec.c:
3014 * w32term.c:
3015 * xsmfns.c:
3016 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
3017
3018 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3019
3020 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3021 nothing else needs it anymore.
3022
274ec34b
EZ
30232008-02-09 Eli Zaretskii <eliz@gnu.org>
3024
3025 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3026 instead of unibyte_char_to_multibyte.
3027
deeaffe1
DN
30282008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3029
3030 * s/gnu-linux.h: Remove commented out code.
3031
4ed4b975 3032 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
3033
3034 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 3035 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 3036 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
3037 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
3038 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
3039
68b587a6
SM
30402008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3041
9141ca5e
SM
3042 * keymap.c (Fkey_description): Move side effect outside of macro call.
3043
dfae5f9a 3044 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
3045 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
3046
ff7a2223
SM
3047 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
3048 (syms_of_fontset): Use ASET.
3049
68b587a6
SM
3050 * fns.c (concat): Move side effect outside of macro call.
3051 (hash_clear): Use ASET.
3052
a31787b1
RS
30532008-02-08 Richard Stallman <rms@gnu.org>
3054
3055 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
3056 If FORCE, and frame has a surrogate minibuffer for another frame,
3057 delete the other frame first.
3058
987be29b 30592008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
3060
3061 * xterm.c (x_detect_focus_change): Handle embed client message.
3062 (handle_one_xevent): Ditto.
3063 (handle_one_xevent): If embedded and we get a button press/release,
3064 request focus.
3065 (xembed_set_info, xembed_send_message): New functions.
3066 (x_make_frame_visible): Call xembed_set_info if embedded.
3067 (x_make_frame_invisible): Call xembed_set_info if embedded.
3068 (x_term_init): Initialize Xatom_XEMBED.
3069 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
3070 (x_iconify_frame): Ditto.
3071
3072 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
3073 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
3074 (enum xembed_modifier, enum xembed_accelerator): New.
3075 (xembed_set_info, xembed_send_message): Declare.
3076 (FRAME_X_EMBEDDED_P): New.
3077
3078 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
3079 gtk_plug_new.
3080
3081 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
3082 window ID of a frame.
3083 (x_window): Reparent frame if embedded.
3084 (Fx_create_frame): Don't set border width if embedded.
3085
3086 * emacs.c (USAGE3): Add --parent-id
3087 (standard_args): Ditto.
3088
880820fe 30892008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
3090
3091 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
3092
92413ef3
JD
30932008-02-07 Jim Meyering <meyering@redhat.com>
3094
6f69e89b 3095 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
3096 The latter provokes a warning from gcc about the empty else, when
3097 followed by ";". Also, without that trailing semicolon, it would
3098 silently swallow up any following statement.
c3f9fba8 3099 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
3100 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
3101 * buffer.h (DECODE_POSITION): Likewise.
3102 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
3103 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
3104 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
3105 (FETCH_CHAR_ADVANCE): Likewise.
3106 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 3107
03fa5713
GM
31082008-02-07 Jim Meyering <meyering@redhat.com>
3109
3110 * lread.c [lint]: Don't include <sys/inode.h>.
3111
3ae565b3
SM
31122008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
3113
3114 * xselect.c (x_handle_dnd_message):
3115 * xmenu.c (digest_single_submenu, xmenu_show):
3116 * xdisp.c (with_echo_area_buffer_unwind_data)
3117 (format_mode_line_unwind_data, unwind_format_mode_line)
3118 (display_menu_bar):
3119 * eval.c (Ffetch_bytecode):
3120 * doc.c (store_function_docstring):
3121 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
3122 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
3123 * buffer.c (add_overlay_mod_hooklist): Use ASET.
3124
146b6e55
KH
31252008-02-07 Kenichi Handa <handa@m17n.org>
3126
3127 * ftxfont.c (ftxfont_open): Don't set
3128 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
3129
3130 * ftfont.c (ftfont_open): Fix previous change.
3131
46a923ac
JR
31322008-02-06 Jason Rumney <jasonr@gnu.org>
3133
3134 * w32font.c (w32font_text_extents): Fill in lbearing metric.
3135 Use cached metrics for ASCII characters.
3ae565b3
SM
3136 (w32font_open_internal): Don't set font's owning_frame.
3137 Cache metrics for ASCII characters.
46a923ac
JR
3138
3139 * w32font.h (struct w32font_info): Add ascii_metrics.
3140 Remove owning_frame.
3141
da7d7c21
KH
31422008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
3143
3144 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
3145 to negative value.
3146
3147 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
3148
3ae565b3 3149 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
3150
3151 * charset.c (syms_of_charset): Set QCtest and Qeq.
3152
c62c8ddb
SM
31532008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
3154
ca319910
SM
3155 * process.c (Fstart_process):
3156 * callproc.c (Fcall_process): Handle the case where
3157 Funhandled_file_name_directory returns nil.
3158
76860cbb
SM
3159 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
3160 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
3161 * font.c (check_gstring): Use them and AREF to access the vector before
3162 we know it's really a gstring.
3163 (Ffont_shape_text): Fix typo.
3164 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 3165
15139d67
SM
3166 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
3167 Declare.
3168
c62c8ddb
SM
3169 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
3170
04b65d2b
JR
31712008-02-05 Jason Rumney <jasonr@gnu.org>
3172
3173 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
3174 Set smallest_font_height and smallest_char_width in display info.
3175
fccaebfd
KH
31762008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
3177
3178 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
3179
e7d7fd8c
MB
31802008-02-05 Miles Bader <miles@gnu.org>
3181
3182 * xfaces.c (get_lface_attributes, merge_named_face)
3183 (lookup_named_face, lookup_derived_face, realize_named_face):
3184 Revert 2008-02-01 change by cyd@stupidchicken.com.
3185
3d4448a8
KH
31862008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
3187
3188 * fontset.c (Ffontset_info): Handle the case of inhibitting the
3189 fallback fonts.
15139d67 3190 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 3191
5ace1ec1
JR
31922008-02-04 Jason Rumney <jasonr@gnu.org>
3193
3194 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
3195 set full_name.
e3a77b22 3196 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 3197
ffe42183
JR
31982008-02-03 Jason Rumney <jasonr@gnu.org>
3199
3200 * makefile.w32-in (OBJ1): Include font.o here.
3201 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
3202
526dc3b3
JR
32032008-02-02 Jason Rumney <jasonr@gnu.org>
3204
a0fece35 3205 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 3206
af805c82
JR
32072008-02-01 Jason Rumney <jasonr@gnu.org>
3208
3209 * s/cygwin.h: Define VIRT_ADDR_VARIES.
3210
3211 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
3212
7f6519c5
AS
32132008-02-01 Andreas Schwab <schwab@suse.de>
3214
1f45f627 3215 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 3216 ../lisp/language/myanmar.el.
7f6519c5 3217
26f8aa27
CY
32182008-02-01 Chong Yidong <cyd@stupidchicken.com>
3219
1f45f627 3220 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
3221 (merge_named_face, lookup_named_face, lookup_derived_face)
3222 (realize_named_face): Call lface_from_face_name directly, and use
3223 the fact that merge_face_vectors does not alter its FROM argument.
3224
73acf815 32252008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3226
3227 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 3228 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 3229
73acf815 32302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3231
3232 * fontset.c (reorder_font_vector): Exclude nil elements from the
3233 font group. Don't try multiple fonts.
15139d67 3234 (fontset_font): Adjust for the above change.
aca7a3d2
MB
3235 (Finternal_char_font): Return nil if the found font doesn't
3236 contain the character ch.
3237
4c4475a8 3238 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 3239
73acf815 32402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3241
3242 * font.h (FONTP): Make it return 1 also for a font-object.
3243
3244 * .gdbinit (xfontset): New function.
3245
3246 * font.c (font_find_for_lface): Check if the character C is
3247 supported or not only for the first font.
3248
3249 * fontset.c (reorder_font_vector): Fix typo.
3250 (fontset_find_font): Don't add a font-spec specifying a script.
3251 Use 0 (not Qt) for the indication of empty font-group. Change the
3252 format of RFONT-DEF. Return Qt if no font in the font-group
3253 support the character.
15139d67 3254 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 3255 found the character, remember that.
15139d67 3256 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
3257 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
3258 no font for the target.
15139d67 3259 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 3260
73acf815 32612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3262
3263 * font.c (font_load_for_face): Handle the case that the font in
3264 face->lface is a string.
3265
73acf815 32662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3267
1f45f627 3268 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 3269
73acf815 32702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3271
3272 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
3273 Fix previous change. If the frame is not on a window system,
3274 signal an error.
3275
73acf815 32762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3277
4c4475a8
GM
3278 * coding.c (decode_coding_object, encode_coding_object): Adjust
3279 marker positions after conversion.
aca7a3d2
MB
3280
3281 * lisp.h (struct Lisp_Marker): New member need_adjustment.
3282
73acf815 32832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3284
3285 * font.c (font_find_for_lface): Fix the handling of the return
3286 value of font_has_char.
3287 (Ffont_shape_text): Fix previous change.
3288
3289 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
3290 (fontset_ref_and_range): Delete it.
3291 (fontset_find_font): Call char_table_ref_and_range instead of
3292 FONTSET_REF_AND_RANGE.
3293 (make_fontset): Don't setup font groups of Latin here.
3294 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
3295 (new_fontset_from_font): Make the specified font the default for
3296 all Latin characters.
3297
73acf815 32982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3299
3300 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
3301 is on a window system before accessing the fontset of the frame.
3302
73acf815 33032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3304
1f45f627 3305 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
3306
3307 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
3308 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
3309
3310 * font.c (Ffont_shape_text): If the font driver doesn't have a
3311 shaper function, make zero-width glyphs to have at least one-pixel
3312 width. Fix setting of `to' field of glyphs.
3313
73acf815 33142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3315
3316 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
3317 glyphs.
3318
1f45f627 3319 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 3320
73acf815 33212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3322
3323 * composite.c (syms_of_composite): Fix docstring of
3324 auto-composition-function.
3325
3326 * font.h (LGLYPH_SIZE): New macro.
3327
3328 * font.c (Ffont_fill_gstring): Stop filling when a character not
3329 supported by the font is found.
3330 (Ffont_shape_text): When a shape callback function returns nil,
3331 try at most two more times with larger gstring.
15139d67 3332 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
3333
3334 * xdisp.c (handle_auto_composed_prop): Change the argument to
3335 auto-composition-function.
3336
3337 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
3338 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
3339 Lispy glyph and store it in the lgstring.
3340
3341 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
3342
3343 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
3344
73acf815 33452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3346
3347 * font.c (Ffont_shape_text): Avoid unnecessary composition.
3348
3349 * fontset.c (Vfont_encoding_charset_alist): New variable.
3350 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
3351 (reorder_font_vector, fontset_find_font): Optimize for the case of
3352 no need of reordering.
aca7a3d2
MB
3353 (face_for_char): Map the charset property by
3354 Vfont_encoding_charset_alist.
3355
73acf815 33562008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3357
3358 * w32font.c (logfonts_match): Don't check adstyle here.
3359 (font_matches_spec): Check here against physical font instead.
3360 (add_font_entity_to_list): Avoid some substitutions.
3361
3362 * font.c (font_parse_fcname): Default weight and slant to normal.
3363 (font_score): Prefer normal fonts if weight or slant unspecified.
3364 (font_score) [WINDOWSNT]: Scale weight difference down to closer
3365 match freetype scores.
3366
73acf815 33672008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3368
3369 * w32font.c (w32font_text_extents): Don't use the frame stored in the
3370 font, as it may have been deleted.
3371 (w32_enumfont_pattern_entity): Map generic family to adstyle using
3372 most common hyphenless variation.
3373 (logfonts_match): Check generic family.
3374 (font_matches_spec): Don't check generic family here.
3375 (fill_in_logfont): Set generic family based on adstyle.
3376
3377 * w32font.h (w32font_get_cache): Update declaration.
3378
73acf815 33792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3380
3381 * ftfont.c (ftfont_get_cache): Adjust the argument type.
3382
15139d67 3383 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 3384 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
3385 with the old drivers.
3386
3387 * w32font.c (w32font_get_cache): Adjust the argument type.
3388
3389 * xfont.c (xfont_get_cache): Adjust the argument type.
3390
3391 * font.h (struct font_driver): Change argument type of get_cache.
3392
3393 * xftfont.c (xftfont_start_for_frame): Delete prototype.
3394
3395 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 3396 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 3397 (font_clear_cache): New function.
4c4475a8 3398 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 3399 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
3400
3401 * fontset.c (fontset_find_font): Fix previous change.
3402
73acf815 34032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3404
3405 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
3406 dpyinfo->font_table.
3407 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 3408 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
3409
3410 * font.c (font_at): Handle the case that the arg C is negative.
3411 Handle the unibyte case.
3412 (Ffont_at): Call font_at with the arg C -1.
3413
3414 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
3415 the position here, and call font_at with the arg C -1.
3416 Don't check the range of the existing composition at the point.
aca7a3d2 3417
73acf815 34182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3419
15139d67 3420 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 3421 Change caller.
4c4475a8
GM
3422 (load_font_get_repertory, fontset_find_font): Assume that
3423 font_spec is always a font-spec object.
aca7a3d2
MB
3424 (Fset_fontset_font): Always store a font-spec object in a fontset.
3425
3426 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
3427 instead of get_property_and_range.
3428
73acf815 34292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3430
3431 * xftfont.c (struct xftfont_info): Delete the member ft_face.
3432 (xftfont_open): Don't keep locking face.
3433 (xftfont_close): Don't unlock face.
4c4475a8 3434 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
3435
3436 * fontset.c (fontset_find_font): Don't prefer a font of
3437 supplementary charset.
3438
73acf815 34392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3440
1f45f627
GM
3441 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
3442 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
3443 (OTF_TAG_STR): Terminate by '\0'.
3444 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
3445 listing to the script specified in that property. Fix arg to
3446 OTF_check_features.
3447
73acf815 34482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3449
3450 * w32font.h: New file.
3451
3452 * w32font.c: Include it.
3453 (struct w32font_info): Add owning_frame field. Move to w32font.h.
3454 (w32font_open): Set owning_frame.
3455 (w32font_text_extents): Use owning_frame.
3456 (struct font_callback_data): Add opentype_only field.
3457 (add_font_entity_to_list): Use it to filter fonts.
3458 Don't check against full name.
3459 (w32font_list_internal): New function.
3460 (w32font_list): Use it.
3461 (w32font_match_internal): New function.
3462 (w32font_match): Use it.
3463 (w32font_open_internal): New function.
3464 (w32font_open): Use it.
3465 (w32font_get_cache, w32font_close, w32font_has_char)
3466 (w32font_encode_char, w32font_text_extents, w32font_draw):
3467 Make non-static.
3468
3469 * makefile.w32-in (w32font.o): Depend on w32font.h.
3470
73acf815 34712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3472
3473 * charset.c (Fdefine_charset_internal): Record a supplementary
3474 charset at the tail of Vcharset_order_list.
3475
3476 * font.c (Ffont_shape_text): Fix the return value.
3477
3478 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
3479
3480 * xdisp.c (handle_auto_composed_prop): Fix previous change.
3481
73acf815 34822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3483
3484 * ftfont.c (struct OpenTypeSpec): New struct.
3485 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
3486 (ftfont_get_open_type_spec): New function.
3487 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
3488
15139d67 3489 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 3490
73acf815 34912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3492
3493 * w32font.c (add_font_entity_to_list): Compare only the beginning
3494 of full name.
3495
73acf815 34962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3497
15139d67
SM
3498 * xdisp.c (handle_auto_composed_prop): Simplify the code.
3499 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 3500
73acf815 35012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3502
3503 * font.c (font_gstring_produce): Delete it.
3504
15139d67
SM
3505 * composite.h (COMPOSITION_METHOD):
3506 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 3507
73acf815 35082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3509
15139d67 3510 * xfont.c (Qx): Delete.
aca7a3d2
MB
3511 (syms_of_xfont): Don't initialize Qx.
3512
15139d67
SM
3513 * composite.h (enum composition_method):
3514 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 3515
73acf815 35162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3517
3518 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
3519 (choose_face_font): Accept new form of font-spec.
3520
3521 * frame.h (font_driver_list): Declare it unconditionally.
3522 (struct frame): Define members font_driver_list and font_data_list
3523 unconditionally.
3524
3525 * fontset.c: Include "font.h" unconditionally.
15139d67 3526 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
3527 (Fset_fontset_font): Accept a font-spec object.
3528
3529 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
3530 PIXEL_SIZE part a wild card.
3531
3532 * dispextern.h (struct glyph_string): Define members clip and
3533 num_clips unconditionally.
3534 (struct face): Define members font_info and extra unconditionally.
3535
3536 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
3537 ftfont_info only when HAVE_LIBOTF is defined.
3538
73acf815 35392008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3540
3541 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
3542 and end.
3543
73acf815 35442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3545
3546 * w32font.c (w32font_driver): Add new fields.
3547
73acf815 35482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3549
aca7a3d2
MB
3550 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
3551 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
3552 (LIBES): Add @M17N_FLT_CFLAGS@.
3553
3554 * composite.c (compose_text): Don't treat the new style
3555 composition specially.
3556
3557 * emacs.c (main): Call syms_of_font unconditionally.
3558
3559 * font.h (FONT_ENTITY_NOT_LOADABLE)
3560 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 3561 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 3562 (struct font_driver): New member shape.
1f45f627 3563 (font_registry_charsets): Extern it.
4c4475a8 3564 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
3565 (font_otf_capability, font_drive_otf): Delete their externs.
3566
3567 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
3568 (font_charset_alist, font_registry_charsets): Move from xfont.c
3569 and rename.
aca7a3d2
MB
3570 (font_prop_validate_otf): New function.
3571 (font_property_table): Register it for QCotf.
3572 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 3573 (font_drive_otf): Delete.
1f45f627 3574 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
3575 lispy gstring.
3576 (font_find_for_lface): New arg C.
15139d67 3577 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
3578 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
3579 lispy gstring.
aca7a3d2
MB
3580 (Ffont_shape_text): New function.
3581 (Fopen_font): If the font size is not given, use 12-pixel.
3582 (Ffont_at): New arg STRING.
15139d67
SM
3583 (syms_of_font): Initalize font_charset_alist.
3584 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
3585 conditionally.
3586
3587 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
3588 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
3589 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
3590 Adjust for the change of RFONT-DEF.
15139d67 3591 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
3592
3593 * ftfont.h: New file.
3594
3595 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
3596 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
3597 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3598 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
3599 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 3600 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
3601 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
3602 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
3603 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
3604 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s
3605 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
3606 (otf_gstring, gstring, m17n_flt_initialized): New variables.
3607
15139d67
SM
3608 * w32term.c (x_draw_composite_glyph_string_foreground):
3609 Adjust for the change of lispy gstring.
aca7a3d2 3610
15139d67 3611 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 3612 lispy gstring. Call a function for auto-composition with the
15139d67
SM
3613 third arg it->window.
3614 (fill_composite_glyph_string): Adjust for the change of lispy string.
3615 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 3616
15139d67 3617 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3618 font_find_for_lface.
3619
1f45f627
GM
3620 * xfont.c (x_font_charset_alist): Move to font.c and rename.
3621 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
3622 (syms_of_xfont): Don't handle x_font_charset_alist.
3623
3624 * xftfont.c: Include "ftfont.h".
15139d67 3625 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
3626 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3627 (xftfont_close) [HAVE_LIBOTF]: Close otf.
3628 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
3629 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
3630 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 3631
15139d67 3632 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
3633 the change of lispy gstring.
3634
73acf815 36352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3636
3637 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
3638
73acf815 36392008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3640
3641 * w32font.c (w32font_draw): Fill background manually.
3642
73acf815 36432008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3644
3645 * font.c (Qfontp): Remove unused symbol.
3646 (QCantialias): New symbol.
3647 (syms_of_font): Define it.
3648 (font_property_table): Set a validator for QCantialias.
3649
15139d67
SM
3650 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
3651 Define if not already.
aca7a3d2
MB
3652 (QCfamily): Share with xfaces.c.
3653 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 3654 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
3655 (w32_antialias_type, lispy_antialias_type): New functions.
3656 (w32_enumfont_pattern_entity): New arg requested_font.
3657 Set antialias parameter if non-default was requested.
3658 (fill_in_logfont): Fill in lfQuality if :antialias specified.
3659
73acf815 36602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3661
3662 * lread.c (read1): Undo the previous change.
3663
73acf815 36642008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
3665
3666 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 3667 USE_FONT_BACKEND is defined.
aca7a3d2 3668
73acf815 36692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3670
3671 * font.h (struct font_bitmap): New member bits_per_pixel.
3672 (struct font_driver): New members start_for_frame and end_for_frame.
3673 (struct font_data_list): New struct.
3674 (font_put_frame_data, font_get_frame_data): Extern them.
3675
3676 * frame.h (struct frame): New member font_data_list.
3677
3678 * font.c (font_update_drivers): Call driver->start_for_frame and
3679 driver->end_for_frame at proper timings.
3680 (font_put_frame_data, font_get_frame_data): New functions.
3681 (Ffont_spec): Add usage in the docstring.
3682
3683 * frame.c (make_frame): Initialize f->font_data_list to NULL.
3684 (Fdelete_frame): Call font_update_drivers.
3685
3686 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 3687 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
3688 (xftfont_get_xft_draw): New function.
3689 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
3690 (xftfont_end_for_frame): New function.
3691 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
3692
15139d67 3693 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 3694 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
3695 (struct ftxfont_frame_data): New struct.
3696 (ftxfont_draw_bitmap): New arg gc_fore and flush.
3697 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 3698 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
3699 (ftxfont_end_for_frame): New function.
3700 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
3701
3702 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
3703
73acf815 37042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3705
3706 * xselect.c (Vselection_coding_system)
3707 (Vnext_selection_coding_system): Delete them.
3708 (syms_of_xselect): Don't declare selection-coding-system and
3709 next-selection-coding-system. They are declared in select.el.
3710
73acf815 37112008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3712
3713 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
3714
3715 * w32fns.c: Include imm.h.
3716 (get_composition_string_fn, get_ime_context_fn): New optional
3717 system functions.
3718 (globals_of_w32fns): Load them from imm32.dll.
3719 (ignore_ime_char): New flag.
3720 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
3721 WM_IME_ENDCOMPOSITION messages.
3722
3723 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
3724 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
3725
73acf815 37262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3727
3728 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
3729 (READCHAR_REPORT_MULTIBYTE): New macro.
3730 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
3731 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
3732 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
3733 source.
3734
73acf815 37352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3736
3737 * xfaces.c (face_for_overlay_string): Call lookup_face with
3738 correct arguments (fix of synching with the trunk).
3739
73acf815 37402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3741
4c4475a8
GM
3742 * font.c (font_prop_validate_symbol, font_prop_validate_style)
3743 (font_prop_validate_non_neg, font_prop_validate_spacing):
3744 Delete argument prop_index.
15139d67
SM
3745 (font_property_table): Change arguments to validater. Change Callers.
3746 (font_lispy_object): Delete.
aca7a3d2
MB
3747 (font_at): Use font_find_object instead fo font_lispy_object.
3748
73acf815 37492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3750
3751 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
3752 and file names.
3753
73acf815 37542008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3755
3756 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
3757 (font_matches_spec): Remove debug output.
3758 (add_font_entity_to_list): Avoid using substituted fonts.
3759
73acf815 37602008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3761
3762 * doc.c (Fsnarf_documentation):
3763 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
3764
73acf815 37652008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 3766
290afd83 3767 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
3768 HAVE_WINDOW_SYSTEM is defined.
3769
73acf815 37702008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
3771
3772 Fix up multi-tty merge.
3773
3774 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
3775 and indentation.
3776
3777 * xfaces.c (free_realized_face, clear_face_gcs):
3778 Include font_done_for_face in the input_blocked section, just in case.
3779
3780 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
3781 (get_char_face_and_encoding): Undo last change and remove the *other*
3782 duplicate definition (i.e. keep the one that's better scoped and that
3783 includes code for the font-backend).
3784
3785 * terminal.c (create_terminal): Default keyboard_coding to
3786 `no-conversion' and terminal_coding to `undecided'.
3787
3788 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
3789
3790 * fontset.c (free_realized_fontsets): Check that the table entry does
3791 contain a fontset before trying to compare it to `base'.
3792
3793 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
3794 syms_of_charset, and syms_of_coding earlier because init_window_once
3795 now needs Vcoding_system_hash_table to be setup.
3796
3797 * coding.h (default_buffer_file_coding): Remove.
3798
3799 * coding.c (default_buffer_file_coding): Remove.
3800 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
3801 than ->symbol, and use the terminal-local coding system.
3802 (syms_of_coding): Don't setup the coding-systems that are not
3803 terminal-local.
3804 (Fdefine_coding_system_internal): Use XCAR/XCDR.
3805
3806 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
3807 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
3808
3809 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
3810 in chartab.c and were re-added here by mistake.
3811 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
3812
3813 * doc.c (Fsnarf_documentation):
3814 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
3815 src to etc.
3816
3817 * ChangeLog.10: Add mistakenly removed entry.
3818
73acf815 38192008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
3820
3821 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
3822
73acf815 38232008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3824
3825 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
3826 Add extra args to FACE_FOR_CHAR.
3827
73acf815 38282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3829
3830 * keymap.c (where_is_internal_1): If key is a cons, store the copy
3831 in sequence.
3832
4c4475a8
GM
3833 * chartab.c (map_sub_char_table, map_char_table): If the range
3834 contains just one character, call the function with that character
3835 even if the depth is not 3.
aca7a3d2 3836
73acf815 38372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3838
3839 * w32font.c (w32font_text_extents): Calculate metrics for the
3840 whole string.
3841
73acf815 38422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3843
3844 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
3845
73acf815 38462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3847
3848 * w32term.c (x_set_glyph_string_clipping): Use
3849 get_glyph_string_clip_rects.
4c4475a8
GM
3850 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3851 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3852
3853 * w32font.c (w32font_draw): Do clipping here.
3854
73acf815 38552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3856
1f45f627 3857 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
3858 glyph_string.
3859
3860 * xterm.c (x_set_glyph_string_clipping): Use
3861 get_glyph_string_clip_rects.
4c4475a8
GM
3862 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3863 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3864
3865 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
3866 the resulting clip(s}.
1f45f627 3867 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
3868 row->clip temporarily.
3869 (expose_window): Redraw rows overlapping the exposed area.
3870
3871 * dispextern.h (struct glyph_row): New member clip.
3872 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
3873 clip_height, new member clip, and num_clips.
3874
73acf815 38752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3876
3877 * data.c (Fchar_or_string_p): Fix docstring.
3878
73acf815 38792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3880
3881 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
3882 create a temporal XftDraw object.
3883
73acf815 38842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3885
3886 * font.c (Ffontp): Fix docstring.
3887
3888 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
3889 strong evidence of ISO-2022.
3890
73acf815 38912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3892
3893 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
3894 SYNTAX_ENTRY_FOLLOW_PARENT.
3895
73acf815 38962008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
3897
3898 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
3899 its type.
3900 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
3901 Update to the new type of weak_hash_tables and next_weak.
3902
3903 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
3904 a plain C pointer to Lisp_Hash_Table.
3905
3906 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
3907 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
3908 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
3909 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
3910 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
3911 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
3912 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
3913 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
3914 (GC_EQ): Remove since they've been identical to their non-GC_
3915 alter-egos ever since the markbit was eradicated.
3916
290afd83
JB
3917 * alloc.c:
3918 * buffer.c:
3919 * buffer.h:
3920 * data.c:
3921 * fileio.c:
3922 * filelock.c:
3923 * fns.c:
3924 * frame.h:
3925 * lisp.h:
3926 * macterm.c:
3927 * print.c:
3928 * process.c:
3929 * w32fns.c:
3930 * w32menu.c:
3931 * w32term.c:
3932 * xfns.c:
3933 * xmenu.c:
3934 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 3935
73acf815 39362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3937
3938 * chartab.c (map_sub_char_table): Make it work for the top-level
3939 char-table. Fix handling of parent char-table.
c5ad7a3d 3940 (map_char_table): Adjust for the above change.
aca7a3d2 3941
73acf815 39422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3943
3944 * w32font.c (Qgdi): Rename from Qw32.
3945
73acf815 39462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3947
3948 * w32bdf.c (get_quoted_string): Make function static.
3949
73acf815 39502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3951
3952 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
3953 bigger ascent and descent than those of the font, use them as
3954 font's ascent and descent.
3955
73acf815 39562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3957
3958 * Makefile.in (${lispsource}international/charprop.el): Move this
3959 target within "#ifdef HAVE_UNIDATA" and "#endif".
3960
73acf815 39612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3962
3963 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
3964 (shortlisp): Add ../lisp/language/tai-viet.el.
3965
1f45f627 39662008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
3967
3968 * Makefile.in (${lispsource}international/charprop.el): Depend on
3969 temacs${EXEEXT}.
3970
73acf815 39712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3972
3973 * w32font.c (w32font_close): Delete the GDI font object.
3974
6f69e89b 3975 * w32menu.c: Include character.h.
aca7a3d2
MB
3976
3977 * w32proc.c: Likewise.
3978
3979 * w32select.c: Likewise.
3980
6f69e89b 3981 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 3982
73acf815 39832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3984
3985 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
3986
3987 * w32menu.c (syms_of_w32menu): Likewise.
3988
3989 * w32proc.c (syms_of_ntproc): Likewise.
3990
3991 * w32select.c (syms_of_w32select): Likewise.
3992
3993 * w32term.c (syms_of_w32term): Likewise.
3994
73acf815 39952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3996
3997 * w32font.c (w32font_draw): Delete brush after using it.
3998
73acf815 39992008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4000
4001 * w32font.c (w32font_open): Don't set font_idx.
4002 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4003 to font settings.
4004 (w32font_draw): Fill background explicitly.
4005
73acf815 40062008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4007
4008 * w32term.c (w32_initialize): Don't call w32font_initialize.
4009
4010 * w32font.c (w32font_info): Remove subranges.
4011 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4012 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4013 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4014 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4015 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4016 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4017 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4018 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4019 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4020 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4021 New symbols.
4022 (font_callback_data): New struct.
4023 (w32font_list, w32font_match): Use it.
4024 (w32font_open): Don't populate subranges.
4025 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4026 (w32font_encode_char): Always return unicode code-point as-is.
4027 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
4028 GetGlyphOutline. Never look up by glyph index. Avoid looping
4029 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2
MB
4030 glyph index version.
4031 (set_fonts_frame): Remove
4032 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
4033 set frame parameter. Use backward compatible fake foundries.
4034 Save generic family in extra slot under QCfamily. Make width slot
4035 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
4036 binary subranges.
4037 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 4038 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
4039 unwanted fonts.
4040 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
4041 (w32_registry): Default to iso10646_1.
4042 (fill_in_logfont): Use dpi from extra slot. Don't bother with
4043 string font registries. Don't fill in font name if it is a generic
4044 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
4045 extra info to fill pitch, family and charset fields.
4046 (list_all_matching_fonts): Use font_callback_data struct.
4047 (unicode_range_for_char): Remove.
4048 (font_supported_scripts): New function.
4049 (w32font_initialize): Remove.
4050 (syms_of_w32font): Update which symbols are defined.
4051
73acf815 40522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4053
4054 * font.c (font_pixel_size): Reverse assq_no_quit args.
4055
4056 * w32term.h (FONT_WIDTH): Report max width, not average.
4057 (FONT_MAX_WIDTH): Remove.
4058 (FONT_AVG_WIDTH): New macro.
4059
4060 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
4061 redefinition of FONT_WIDTH.
4062
4063 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
4064 (w32_cache_char_metrics): Use FONT_WIDTH.
4065
4066 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
4067
73acf815 40682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4069
4070 * w32font.c (w32font_open): Make lfHeight negative.
4071
4072 * w32fns.c (x_default_font_parameter): Use new style font name.
4073 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
4074
73acf815 40752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4076
4077 * w32font.c (QCsubranges): New symbol.
4078 (w32font_open, w32font_has_char): Get subranges from subproperty
4079 of extra.
4080 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
4081 (syms_of_w32font): Define :subranges symbol.
4082
4083 * font.c (font_put_extra): Expose externally.
4084
1f45f627 4085 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
4086
4087 * font.c (Ffont_get): Use font driver to determine otf capability.
4088 (adjust_anchor): Check if driver defines anchor_point before using.
4089
4090 * w32font.c (w32font_open): Handle size, height and pixel_size better.
4091 (w32font_draw): Use options.
4092 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
4093 Fix detection of truetype fonts.
4094 (registry_to_w32_charset): Handle charsets other than iso8859-1
4095 expressed as lisp symbols.
4096 (w32_registry): Express charset as lisp symbol.
4097 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 4098 Don't set width here. Set quality to default.
aca7a3d2
MB
4099
4100 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
4101 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
4102
4103 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4104 Remove redundant loop and allocation.
4105
4106 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 4107 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
4108 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
4109
4110 * xdisp.c (fill_composite_glyph_string): Make the first arg to
4111 STORE_XCHARB a valid l-value.
4112
4113 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
4114 calculations for non-Truetype fonts.
4115 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
4116 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4117 Remove redundant code.
aca7a3d2
MB
4118 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
4119
4120 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
4121 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
4122
4123 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
4124 (x_to_w32_charset, w32_to_x_charset): Expose externally.
4125
4126 * w32font.c: New file for w32 font backend.
4127
73acf815 41282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4129
4130 * term.c: Don't include "buffer.h" twice.
4131
73acf815 41322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4133
4134 * character.c (Funibyte_string): New function.
4135 (syms_of_character): Defsubr it.
4136
73acf815 41372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4138
4139 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
4140 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
4141 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
4142 (x_draw_glyph_string, x_draw_glyph_string_foreground)
4143 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
4144 (x_free_frame_resources): Sync with xterm.c.
4145
73acf815 41462008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4147
4148 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
4149 char-table size.
4150
73acf815 41512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4152
c3f9fba8 4153 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 4154
73acf815 41552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4156
4157 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
4158 font_otf_gpos, add font_drive_otf.
4159
4160 * fontset.c (fontset_find_font): Pay attention to font size
4161 specified for a font.
4162 (reorder_font_vector): Check contents of font_def.
4163
4164 * font.c (struct otf_list): Delete it.
6f69e89b 4165 (otf_list): Make it a lisp variable.
aca7a3d2 4166 (otf_open): Use lispy otf_list.
1f45f627 4167 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 4168 (check_otf_features): New function.
c3f9fba8
JB
4169 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4170 New functions.
aca7a3d2
MB
4171 (font_drive_otf): New function merging font_otf_gsub and
4172 font_otf_gpos.
4173 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 4174 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
4175 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
4176 Ffont_otf_gpos.
4177 (syms_of_font): Staticpro otf_list. Delete defsubr of
4178 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
4179
1f45f627 4180 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4181 font_open_for_lface.
4182
4183 * font.h (font_open_for_lface): Adjust prototype.
4184 (struct font_driver): Delete members otf_gsub and otf_gpos, add
4185 member otf_drive.
4186 (font_otf_gsub, font_otf_gpos): Delete externs.
4187 (font_drive_otf): Extern it.
4188
73acf815 41892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4190
4191 * font.c (font_at): If the window W is not on a window system,
4192 return Qnil.
4193
4c4475a8
GM
4194 * coding.c (produce_chars, encode_coding): Don't call
4195 insert_from_gap if no characters to produce.
aca7a3d2 4196
73acf815 41972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4198
4199 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
4200 Fclear_face_cache.
4201
4202 * xfaces.c (face_for_font): Check also face->font==font->font.font.
4203
73acf815 42042008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4205
4206 * emacs.c (main): Change default value of `enable_font_backend' to 1.
4207 Parse "--disable-font-backend" option.
4208 (standard_args): Add "--disable-font-backend" option.
4209
73acf815 42102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4211
4212 * fontset.c (fontset_find_font): New function.
4213 (fontset_font): Use fontset_find_font.
4214 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
4215 Register the specified font for all Latin characters.
4216 (new_fontset_from_font): Register the specified font for all Latin
4217 characters.
4218 (dump_fontset): For a realized fontset, include the base fontset
4219 name in the returned vector.
4220
73acf815 42212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4222
4223 * character.h (CHAR_STRING): Cast C to unsigned on calling
4224 char_string.
4225
4226 * character.c (char_string): Type of arg C changed to unsigned.
4227 Signal an error if C is an invalid character code.
4228
4c4475a8
GM
4229 * editfns.c (general_insert_function, Fchar_to_string):
4230 Use CHARACTERP, not INTEGERP.
aca7a3d2 4231
73acf815 42322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4233
4234 * character.h (MIN_MULTIBYTE_LEADING_CODE)
4235 (MAX_MULTIBYTE_LEADING_CODE): New macros.
4236
4237 * regex.c (analyse_first): Fix for multibyte characters in "case
4238 charset:" and "case categoryspec:".
4239
73acf815 42402008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4241
4242 * Makefile.in (LIBES): Move standard libraries to the end.
4243
73acf815 42442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4245
4246 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
4247 nonzero, don't shrink the buffer nextb.
4248
4249 * buffer.h (struct buffer_text): New member inhibit_shrinking.
4250
4251 * coding.c (coding_alloc_by_making_gap): New arg offset.
4252 (alloc_destination): Call coding_alloc_by_making_gap with the arg
4253 offset.
4254 (decode_coding_iso_2022): Update coding->safe_charsets.
4255 (decode_coding_gap): Temporarily set
4256 current_buffer->text->inhibit_shrinking to 1.
4257
73acf815 42582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4259
4260 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
4261 indexing into elements of s->cmp and s->char2b.
4262
73acf815 42632008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
4264
4265 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
4266
73acf815 42672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4268
4269 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
4270 target_multibyte instead of multibyte.
4271 (re_match_2_internal): Call bcmp_translate with target_multibyte.
4272 (bcmp_translate): Change the argument name from multibyte to
4273 target_multibyte.
4274
73acf815 42752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4276
4277 These changes are to compile a regexp into a pattern that can be
4278 used both for multibyte and unibyte targets.
4279
4280 * Makefile.in (search.o): Depend on charset.h.
4281
4282 * character.c (multibyte_char_to_unibyte_safe): New function.
4283
4284 * search.c: Include "charset.h".
4285 (compile_pattern_1): Delete argument multibyte. Don't set
4286 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
4287 (compile_pattern): Don't compare cp->buf.target_multibyte.
4288 Compare cp->buf.charset_unibyte.
4289 (compile_pattern): Set cp->buf.target_multibyte.
4290
4291 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
4292
4293 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
4294
4295 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 4296 multibyte. Change callers.
aca7a3d2 4297 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
4298 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
4299 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
4300 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
4301 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
4302 (regex_compile): Make the compiled pattern usable both for
4303 multibyte and unibyte targets.
4304 (analyse_first): Make the fastmap usable both for multibyte and
4305 unibyte targets.
1f45f627 4306 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
4307 (re_match_2_internal): Pay attention to the case that the
4308 multibyteness of bufp and target may be different.
4309
73acf815 43102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4311
4312 * xdisp.c (x_produce_glyphs): When a font is not found, make the
4313 empty box occupy at least one column width.
4314
73acf815 43152008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4316
4317 * Makefile.in: Remove redundant HAVE_XFT clause.
4318
73acf815 43192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4320
4321 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
4322
73acf815 43232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4324
4325 * fontset.c (Finternal_char_font): Fix for the case of POSITION
4326 being nil.
4327
73acf815 43282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4329
4330 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
4331
73acf815 43322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4333
4334 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
4335
73acf815 43362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4337
4338 * search.c (simple_search): Fix previous change.
4339
73acf815 43402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4341
4342 * xftfont.c (ftfont_font_format): Extern declaration.
4343
4344 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
4345
4346 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
4347 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
4348
4349 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
4350 (ftfont_font_format): Fix previous change.
4351
4352 * font.h (Ffont_xlfd_name): EXFUN it.
4353
4354 * font.c (font_parse_xlfd): Fix the array size of `f'.
4355 (register_font_driver): Use EQ to compare driver->type.
4356
4357 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
4358 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
4359 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
4360
73acf815 43612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4362
4c4475a8
GM
4363 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
4364 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 4365
73acf815 43662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4367
4368 * xfont.c (xfont_open): Set font->format.
4369
4370 * xftfont.c (xftfont_open): Set font->format.
4371
4372 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
4373 (ftfont_list): Include FC_FONTFORMAT in FcObject.
4374 (ftfont_open): Set font->format.
4375 (ftfont_font_format): New function.
4376
4377 * font.h (struct font): New memeber format.
4378
4379 * font.c (Qopentype): New variable.
4380 (syms_of_font): Defsym it.
4381 (Fquery_font): Change the format of the last element of the return
4382 value.
4383
73acf815 43842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4385
4386 * xfns.c (xic_create_xfontset): Try the default fontset name as a
4387 last resort.
4388
73acf815 43892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4390
4391 * coding.c (detect_coding_charset): Fix detection of multi-byte
4392 charset.
4393
73acf815 43942008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
4395
4396 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
4397
73acf815 43982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4399
4400 * xdisp.c (get_next_display_element): Set it->face_id for the
4401 first component of a composition.
1f45f627 4402 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 4403
73acf815 44042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4405
4406 (get_next_display_element): Set it->face_id for the
4407 first component of a composition.
1f45f627 4408 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 4409
73acf815 44102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4411
4412 * fontset.c (Qlatin): New variable.
4413 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 4414 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 4415
73acf815 44162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4417
4418 * font.c (font_unparse_fcname): Pay attention to the case that
4419 some of font property is a null string.
4420
73acf815 44212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4422
4423 * term.c: Include "composite.h".
4424 (encode_terminal_code): Output all components of composition.
4425 Check the size of encode_terminal_src.
424c157f 4426 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
4427 (append_composite_glyph, produce_composite_glyph): New functions.
4428
4429 * xdisp.c (x_produce_glyphs): In handling composition, if a font
4430 is not found, get font_info from the current ascii face.
4431
73acf815 44322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4433
4434 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
4435 buffer-file-name to Qnil before calling insert_from_buffer.
4436
4437 * font.c (font_unparse_fcname): Pay attention to the case that
4438 foundry is a null string.
4439
73acf815 44402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4441
4442 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
4443
4444 * font.c (Qunicode_sip): New variable.
4445 (syms_of_font): Declare it as a Lisp symbol.
4446
4447 * font.h (Qunicode_sip): Extern it.
4448
73acf815 44492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4450
1f45f627 4451 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
4452
4453 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 4454 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
4455 the first elememnt of allocated memory.
4456
1f45f627 4457 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
4458
4459 * xdisp.c (handle_composition_prop): Set it->c to the first
4460 non-TAB component.
1f45f627
GM
4461 (fill_composite_glyph_string): Change argument.
4462 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
4463 (x_produce_glyphs): Fix handling of left/right padding.
4464
73acf815 44652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4466
4467 * coding.c (detect_coding_system): Fix for handling off
4468 inhibit_iso_escape_detection. Fix for the case that no coding
4469 system is defined for a specific coding category.
4470
73acf815 44712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4472
1f45f627 4473 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
4474
4475 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
4476 opening a font.
4477
4478 * fileio.c (Finsert_file_contents): On recovering a file, assume
4479 Unix-like eol.
4480 (choose_write_coding_system): On auto-saving a file, force
4481 Unix-like eol.
4482
4483 * coding.c (setup_coding_system): Fix setting of
4484 coding->common_flags based on eol_type.
4485 (coding_inherit_eol_type): If PARENT is not nil, be sure to
4486 inherit from it.
4487
73acf815 44882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4489
1f45f627 4490 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 4491
73acf815 44922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4493
1f45f627 4494 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
4495 (ftfont_list): Don't check :name property.
4496 (ftfont_match): New function.
4497 (ftfont_pattern_entity): If the pattern doesn't contain
4498 FC_SPACING, don't assuce FC_MONO.
4499
4500 * font.h (struct font_driver): New member `match'.
1f45f627 4501 (font_update_drivers): Adjust prototype.
aca7a3d2 4502
4c4475a8
GM
4503 * font.c (font_parse_fcname, font_parse_name): Don't change :name
4504 property of FONT.
aca7a3d2
MB
4505 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
4506 them unconditionally.
4507 (font_matching_entity): New function.
4508 (font_open_by_name): Try font_matching_entity if exact match is
4509 not found.
4510 (font_update_drivers): Delete the arg FONT. Return a list of
4511 actually used backends. Don't free faces, font caches here.
4512 Don't store data in frame parameters. Don't call x_set_font.
4513 (Ffont_spec): Store :name property as is.
4514 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
4515 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
4516 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
4517 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
4518 Call font->driver->otf_gsub instead of font_otf_gsub.
4519
4520 * frame.c (x_set_font_backend): Do more works that were done in
4521 font_update_drivers before.
4522
4523 * xfont.c (xfont_match): New function.
4524 (xfont_driver): Set xfont_driver.match to xfont_match.
4525 (xfont_draw): Set font in GC if necessary.
4526
4527 * ftxfont.c (ftxfont_match): New function.
4528 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
4529
4530 * xftfont.c (xftfont_match): New function.
4531 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
4532
73acf815 45332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4534
4535 * font.h (struct font): New member scalable.
4536 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 4537 (font_otf_gsub): Adjust prototype.
aca7a3d2 4538
1f45f627
GM
4539 * font.c (font_otf_capability): Fix handling of the default langsys.
4540 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
4541 Check the contents of SPEC.
4542 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
4543 (check_gstring): New function.
4544 (REPLACEMENT_CHARACTER): New macro.
4545 (font_otf_gsub): New arg alternate_subst. Be sure to set all
4546 glyph codes of GSTRING.
4547 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
4548 (font_prepare_composition): Set cmp->glyph_len.
4549 (font_open_entity): Set font->scalable.
4550 (Ffont_get): Handle :otf property.
4551 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
4552 functions.
4553 (Fquery_font): Use font->font.full_name.
4554 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
4555 Sfont_otf_alternates.
4556
4557 * ftfont.c (ftfont_open): Set font->font.full_name and
4558 font->font.name properly. Fix calculation of font->font.height
4559 and font->min_width.
4560
4561 * ftxfont.c (ftxfont_create_gcs): New function.
4562 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
4563 (ftxfont_draw_backgrond): Fix filling region.
4564 (ftxfont_default_fid): New function.
4565 (ftxfont_open): Set xfotn->fid to the return value of
4566 ftxfont_default_fid.
4567 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
4568 (ftxfont_done_face): Free only GCs that are created by
4569 ftxfont_create_gcs.
4570 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
4571
4572 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
4573 Clip to src->width, etc (not src->clip_XXX).
4574
4575 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
4576 FontBackend frame parameter.
4577
73acf815 45782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4579
4580 * font.h (struct font_driver_list): New member `on'.
4581 (Fclear_font_cache): EXFUN it.
4582 (font_update_drivers): Extern it.
4583
4584 * font.c (font_unparse_fcname): Fix typo (swidth->width).
4585 (font_list_entities): Check driver_list->on.
4586 (register_font_driver): Initalize `on' member to 0.
4587 (font_update_drivers): New function.
4588 (Fclear_font_cache): Check driver_list->on.
4589
4590 * frame.h (Qfont_backend): Extern it.
4591 (x_set_font_backend): Extern it.
4592
4593 * frame.c (Qfont_backend): New variable.
4594 (frame_parms): New element for font-backend.
4595 (x_set_font_backend): New function.
4596
4597 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
4598 FontBackend frame parameter.
4599 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
4600 x_set_font_backend.
4601
4602 * xfont.c (xfont_list): Don't try listing by :name property if the
4603 name is not for XLFD.
4604
73acf815 46052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4606
4607 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
4608 (LGLYPH_SET_TO): New macros.
4609 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
4610 element of G is vector or not.
4611 (font_at): Extern it.
4612
4613 * font.c: Include window.h.
4614 (font_lispy_object): New function.
4615 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
4616 end of valid glyph.
4617 (font_close_object): Fix getting (struct font *).
4618 (font_at): New function.
4619 (Ffont_get): If FONT is a font-object, get entity from it.
4620 (Ffont_make_gstring): Initialize elements of glyphs with nil.
4621 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
4622 range check.
4623 (Ffont_at): New function.
4624 (syms_of_font): Defsubr Sfont_at.
4625
4626 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 4627 before the entry for Qcomposition.
1f45f627 4628 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
4629 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
4630 the font in gstring.
4631 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
4632 LGLYPH_FORM (g) to detect the end of valid glyph.
4633 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
4634 we are composing with gstring.
4635
4636 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
4637 Check if adjustment is vector or not.
4638
4639 * Makefile.in (font.o): Make it depends on window.h.
4640
73acf815 46412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4642
4643 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
4644 adjustment is vector or not.
4645
73acf815 46462008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4647
4648 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
4649
73acf815 46502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4651
4652 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
4653 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
4654 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
4655
1f45f627 4656 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 4657 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
4658 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
4659 LGLYPH format.
aca7a3d2 4660
1f45f627 4661 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4662 the change of LGLYPH format.
4663
73acf815 46642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4665
4666 * ftfont.c (ftfont_list): Fix typo.
1f45f627 4667 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 4668
880820fe 46692008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4670
4671 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
4672
4673 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
4674 xftface_info is non-NULL.
4675
880820fe 46762008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 4677
1f45f627 4678 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 4679
73acf815 46802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4681
4682 * ftfont.c (ftfont_list): Pay attention to the case that
4683 FC_CAPABILITY is not defined.
4684
73acf815 46852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4686
4687 * xftfont.c (xftfont_open): Set charset related members to -1.
4688
1f45f627
GM
4689 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
4690 QCname.
aca7a3d2
MB
4691 (ftfont_open): Set charset related members to -1.
4692
4693 * fontset.c (Votf_script_alist): New variable.
4694 (syms_of_fontset): Initialize it.
4695 (fontset_font): Delete unused variable.
4696
4697 * fontset.h (Votf_script_alist): Extern it.
4698
1f45f627 4699 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
4700
4701 * font.h (font_close_object, font_merge_old_spec): Extern them.
4702
73acf815 47032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4704
4705 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
4706 (syms_of_font): Initialize them.
4707 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
4708 (font_prop_validate_type): Delete.
4709 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
4710 Change caller.
4711 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
4712 (font_prop_validate_extra): Delete.
aca7a3d2
MB
4713 (font_prop_validate_spacing): New function.
4714 (font_property_table): Add elements for all known properties.
1f45f627
GM
4715 (get_font_prop_index): Rename from check_font_prop_name. New
4716 argument FROM. Change caller.
aca7a3d2 4717 (font_prop_validate): Validate all known properties.
1f45f627 4718 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
4719 (font_expand_wildcards): Make it static. Fix the way of shrinking
4720 the possible range.
1f45f627 4721 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 4722 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 4723 Change caller.
aca7a3d2 4724 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
4725 (font_parse_fcname): Delete argument merge. Fix parsing of point
4726 size. Don't validate properties values here. Change caller.
4727 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
4728 (font_open_by_name): Delete unused variable.
4729 (Ffont_spec): Likewise. Validate property values.
4730 (Ffont_match_p): New function.
4731
4732 * font.h (QCscalable): Extern it.
1f45f627 4733 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 4734
1f45f627 4735 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 4736
1f45f627 4737 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
4738 (xfont_list_pattern): New function.
4739 (xfont_list): Use xfont_list_pattern.
4740
73acf815 47412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4742
4743 * font.h (Flist_fonts): EXFUN it.
4744
73acf815 47452008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4746
4747 * w32term.c (w32_initialize): Add back smoothing_type and
4748 smoothing_enabled definitions.
4749
73acf815 47502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4751
4752 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
4753 s->face->font on determining underline position.
4754
73acf815 47552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4756
4757 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
4758 (font_has_char): Accept font-object too.
4759 (font_find_for_lface): Try at first with a size specified in face.
4760
73acf815 47612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4762
4763 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
4764 font_open_by_name.
4765
73acf815 47662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4767
4768 * font.h (QCspacing, QCdpi): Extern them.
4769 (enum font_spacing): New enum.
4770 (FONT_PIXEL_SIZE_QUANTUM): New macro.
4771
4772 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
4773 (QCspacing, QCdpi): New variables.
4774 (syms_of_font): Initialize them.
4775 (font_pixel_size): New function.
4776 (font_put_extra): New function.
4777 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
4778 in FONT_EXTRA.
e9184ccb
JB
4779 (font_parse_fcname): Handle enumenrated values (e.g. bold).
4780 Fix handling font size. Add QCname property that contains only
aca7a3d2 4781 unknown properties.
1f45f627 4782 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 4783 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
4784 (font_sort_entites, font_list_entities, font_find_for_lface)
4785 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 4786 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
4787
4788 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
4789 include weight in listing pattern, instead check weight of each
4790 listed font. Don't include scalable in pattern. Pay attention to
4791 FONT_PIXEL_SIZE_QUANTUM.
4792
73acf815 47932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4794
aca7a3d2 4795 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 4796 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
4797 (font_list_entities): Handle float size correctly.
4798 (font_open_by_name): Prefer `normal' property values if the name
4799 doesn't specify them.
4800
4801 * fontset.c (Finternal_char_font): Use font_get_name, not
4802 Ffont_xlfd_name.
4803
4804 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
4805 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
4806 pattern. Don't force scalable.
4807
4808 * xftfont.c (xftfont_open): For generating a name, start from
4809 96-byte buffer.
4810
880820fe 48112008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4812
4813 * frame.h (x_new_fontset2): Fix prototype.
4814
73acf815 48152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4816
1f45f627 4817 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
4818 (font_match_p, font_get_spec, font_parse_fcname)
4819 (font_unparse_fcname): Extern them.
1f45f627 4820 (font_get_name): Adjust prototype.
aca7a3d2
MB
4821
4822 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
4823 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
4824 (font_expand_wildcards): Fix handling ENCODING field. Avoid
4825 unnecessary checks for weight, slant, and swidth.
4826 (font_parse_fcname): New function.
4827 (font_unparse_fcname): New function.
4828 (font_parse_name): New function.
4829 (font_match_p): New function.
1f45f627 4830 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
4831 (font_get_spec): New function.
4832 (Qunspecified, Qignore_defface): Don't extern them.
4833 (font_find_for_lface): Assume that LFACE is fully specified.
4834 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
4835 object, use it for FACE.
4836 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
4837 driver->parse_name.
4838 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
4839
1f45f627
GM
4840 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
4841 prototype.
aca7a3d2 4842
1f45f627
GM
4843 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
4844 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
4845 make_fontset.
4846
1f45f627 4847 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 4848
1f45f627 4849 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
4850 of x_new_fontset2.
4851
4852 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
4853 (Qsans__serif): New variables.
4854 (ftfont_generic_family_list): New variable.
4855 (syms_of_ftfont): Initialize the above variables.
1f45f627 4856 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
4857 (ftfont_list_generic_family): New function.
4858 (ftfont_parse_name): Delete this function.
1f45f627 4859 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
4860 (ftfont_list_family): Fix args to FcObjectSetBuild.
4861
4862 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
4863 object in attrs[LFACE_FONT_INDEX].
4864 (set_lface_from_font_name): Cancel all changes for font-backend.
4865 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
4866 function.
4867 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
4868 font object in QCfont attribute.
4869 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
4870 (realize_default_face) [USE_FONT_BACKEND]: Call
4871 set_lface_from_font_and_fontset.
4872
4873 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
4874 "fixed", and signal error here if no suitable font was found.
4875
4876 * xfont.c (xfont_parse_name): Delete this function.
4877
4878 * xftfont.c (xftfont_open): Change coding style of error
4879 handling. Generate fontconfig's fontname pattern.
4880
4881 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
4882 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
4883
4884 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
4885 Both args FONTSET and FONT_OBJECT must be existing ones.
4886
73acf815 48872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4888
4889 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
4890
73acf815 48912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4892
4893 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
4894
4895 * font.h (struct font): Fix typo.
4896
4897 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
4898 XLFD_XXX_INDEX.
4899 (enum xlfd_field_mask): New enum.
1f45f627 4900 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
4901 are followed by non-digits, return a symbol.
4902 (font_expand_wildcards): New function.
4903 (font_parse_xlfd): Fix wildcard handling.
4904 (Ffont_spec): If :name is specified, reflect the info in the other
4905 properties.
4906
4907 * ftfont.c (ftfont_pattern_entity): Fix typo.
4908 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
4909 locale.
4910
73acf815 49112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4912
4913 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
4914
1f45f627 4915 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
4916 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
4917 registry doesn't specify encoding part.
4918 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
4919 (font_open_by_name): At first try parsing the name.
4920 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
4921 as Lisp symbols.
4922
4923 * fontset.c (reorder_font_vector): Pay attention to the case that
4924 the 3rd element of font_def is nil.
4925 (fontset_font): For the default fontset, append one more fontset
4926 elements for a script-based font specification. Don't add script
4927 attribute on finding a font.
4928 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
4929 font name.
4930 (fontset_ascii_font): If a font can't be opened, return nil.
4931
1f45f627 4932 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
4933 (ftfont_pattern_entity): New function.
4934 (ftfont_get_cache): Assume that freetype_font_cache is already
4935 initialized.
4936 (ftfont_list): Handle the case that a file is specified in font
4937 name. Use ftfont_pattern_entity to generate entities.
4938 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
4939 (syms_of_ftfont): Initialize freetype_font_cache.
4940
4941 * xftfont.c (xftfont_open): Make the font name fontconfig's
4942 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
4943 (xftfont_close): Free font->font.name if not NULL.
4944
4945 * xfont.c (xfont_list): If script is specified for a font, return
4946 null_vector.
4947 (xfont_list_family): Declare argument type.
4948
4949 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
4950 name, set LFACE_FONT (lface) to nil.
4951
4952 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
4953 return Qnil.
4954
73acf815 49552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4956
1f45f627 4957 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
4958 (standard_args): Add "-enable-font-backend".
4959
73acf815 49602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4961
4962 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
4963 (struct xftdraw_list, xftdraw_list): Delete them.
4964 (register_xftdraw, check_xftdraw): Delete them.
4965 (xftfont_prepare_face): Don't call register_xftdraw.
4966 (xftfont_done_face): Don't call check_xftdraw.
4967 (xftfont_draw): Get backroudn color only when with_background is
4968 nonzero.
4969
4970 * xfont.c (xfont_encode_char): Fix calculation of char2b.
4971
73acf815 49722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4973
4974 These changes are for the new font handling codes.
4975
4976 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
4977 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
4978 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
4979 (FONTSRC, FONTOBJ): New variables.
4980 (obj): Add $(FONTOBJ).
4981 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
4982 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
4983 @LIBOTF_LIBS@.
4984 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 4985 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 4986
1f45f627 4987 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
4988
4989 * character.h (Vscript_representative_chars): Extern it.
4990
4991 * character.c (Vscript_representative_chars): New variable.
4992 (syms_of_character): Declare it as a Lisp variable.
4993
4994 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
4995 enable_font_backend is nonzero, accept the composition method
4996 COMPOSITION_WITH_GLYPH_STRING.
4997
4998 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
4999 enumeration COMPOSITION_WITH_GLYPH_STRING.
5000
aca7a3d2
MB
5001 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5002 members clip_x, clip_y, clip_width, and clip_height.
5003 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5004
5005 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5006 --enable-font-backend. Call syms_of_font.
5007
5008 * fns.c (assoc_no_quit): New function.
5009
5010 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5011 (face_for_font, new_fontset_from_font)
5012 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5013
5014 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5015 (fontset_font, fontset_ascii, face_for_char)
5016 (make_fontset_for_ascii_face, Ffont_info)
5017 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5018 is nonzero, use font-backend mechanism.
5019 (find_font_encoding): Make it non-static.
5020 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5021 New functions.
5022
5023 * frame.h (struct frame): New members resx and resy.
5024 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5025 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5026
5027 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 5028 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
5029
5030 * lisp.h (assoc_no_quit): Extern it.
5031
5032 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5033 Through out the file, use FONT_INFO_FROM_FACE instead of
5034 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5035 rif->per_char_metric.
5036 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5037 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5038 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5039 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5040 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5041 nonzero, use font-backend mechanism.
5042 (get_per_char_metric): New function.
5043
5044 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
5045 (set_lface_from_font_name)
5046 (set_font_frame_param, free_realized_face)
5047 (prepare_face_for_display, clear_face_gcs)
5048 (Finternal_set_font_selection_order, realize_x_face)
5049 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
5050 font-backend mechanism.
1f45f627 5051 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
5052 (load_face_font) [USE_FONT_BACKEND]: Abort.
5053 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 5054 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
5055
5056 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
5057 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
5058 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
5059 nonzero, register all available font drivers. Call
5060 x_default_font_parameter for deciding a font.
5061 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
5062
5063 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
5064 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
5065 (x_set_glyph_string_clipping_exactly)
5066 (x_compute_glyph_string_overhangs)
5067 (x_draw_glyph_string_foreground)
5068 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
5069 (x_free_frame_resources) [USE_FONT_BACKEND]: If
5070 enable_font_backend is nonzero, use font-backend mechanism.
5071 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
5072
73acf815 50732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5074
fcb314b2 5075 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
5076 system_eol_type.
5077 (syms_of_coding): Initialize system_eol_type.
5078
fcb314b2
GM
5079 * process.c (Fset_process_coding_system): Inherit system's eol
5080 format if necessary.
aca7a3d2 5081
73acf815 50822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5083
5084 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
5085
73acf815 50862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5087
5088 * coding.c (decode_eol): Pay attention to buffer relocation in
5089 del_range_2.
5090 (decode_coding): Call decode_eol before restoring undo_list.
5091
73acf815 50922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5093
5094 * charset.c (Fdefine_charset_internal): Fix setting of
5095 emacs_mule_bytes.
5096
73acf815 50972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5098
5099 * keyboard.c (read_char): Check if C is a character or not before
5100 looking up Vkeyboard_translate_table.
5101
73acf815 51022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5103
5104 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
5105 condition to terminate the loop.
5106
73acf815 51072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5108
5109 * coding.c (produce_composition): Compare charbuf[i] instead of
5110 args[i] against 0.
5111 (Fterminal_coding_system): Use EQ to compare Lisp objects.
5112
73acf815 51132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5114
5115 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
5116 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
5117 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
5118 detect_coding.
5119 (emacs_mule_char): Handle old style (Emacs 20) component character
5120 of a composition.
4c4475a8
GM
5121 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
5122 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
5123 composition rule.
aca7a3d2
MB
5124 (decode_coding_emacs_mule): Handle invalid bytes correctly.
5125
73acf815 51262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5127
5128 * coding.c (encode_coding_ccl): Allocate destination dynamically
5129 when necessary.
5130
73acf815 51312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5132
5133 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
5134 the loop. When quitted, show a proper error message.
5135
73acf815 51362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5137
aca7a3d2
MB
5138 * xterm.c (x_set_glyph_string_clipping_exactly): Set
5139 src->clip_head and src->clip_tail temporarily instead of src->hl.
5140
5141 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
5142 character sequence.
5143 (Fccl_execute_on_string): Use ASET, not XSET.
5144
73acf815 51452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5146
1f45f627 5147 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 5148
73acf815 51492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5150
5151 * coding.c (decode_coding): Fix the condition of terminating the
5152 decoding loop.
5153
73acf815 51542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5155
5156 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 5157 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 5158
73acf815 51592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5160
5161 * charset.c (map_charset_chars): Fix for ascii-compatible charset
5162 made by a mapping table.
5163
73acf815 51642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5165
5166 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
5167 not.
5168 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
5169 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
5170
5171 * xterm.c (x_draw_composite_glyph_string_foreground): Check
5172 s->face is NULL or not.
5173
73acf815 51742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5175
5176 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
5177 (x_draw_glyph_string): Fix drawing of right_overhang and
5178 left_overhang around/on cursor.
5179
1f45f627 5180 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 5181
73acf815 51822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5183
5184 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
5185
73acf815 51862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5187
4c4475a8
GM
5188 * coding.c (Fdefine_coding_system_internal)
5189 (Fdefine_coding_system_alias): Avoid a duplicated element in
5190 Vcoding_system_alist.
aca7a3d2 5191
73acf815 51922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5193
5194 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5195
fcb314b2 5196 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
5197 (syms_of_coding): Intern and staticpro it.
5198 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 5199 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
5200
5201 * coding.h (CODING_SYSTEM_P): If ID is not available, call
5202 Fcoding_system_p.
5203 (CHECK_CODING_SYSTEM): If ID is not available, call
5204 Fcheck_coding_system.
4c4475a8
GM
5205 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
5206 Try also Fcheck_coding_system.
aca7a3d2 5207
73acf815 52082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5209
aca7a3d2
MB
5210 * coding.c (code_conversion_restore): GCPRO arg.
5211
73acf815 52122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5213
5214 * character.c (lisp_string_width): Check multibyteness of STRING.
5215
73acf815 52162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5217
5218 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
5219 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
5220 (decode_mac_font_name): Use decode_coding_c_string instead of
5221 decode_coding.
5222 (x_load_font): Initialize fontp->fontset to -1. Set
5223 fontp->encoding_type.
5224
73acf815 52252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5226
5227 * search.c (search_buffer): Give up BM search on case-fold-search
5228 if one of a target character has a case-equivalence of different
5229 byte length even if that target charcter is an ASCII.
1f45f627
GM
5230 (simple_search): Fix calculation of byte length of matched text.
5231 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 5232
73acf815 52332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5234
5235 * coding.c (decode_coding): Fix handling of invalid bytes.
5236
73acf815 52372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5238
5239 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5240 Unicode characters.
5241
73acf815 52422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5243
5244 * coding.c (encode_coding_object): If a pre-write-conversion
5245 function makes a new buffer, kill it.
5246
73acf815 52472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5248
5249 * coding.c (QCascii_compatible_p): New variable.
5250 (syms_of_coding): Initialize it.
4c4475a8
GM
5251 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
5252 calling string_char.
aca7a3d2
MB
5253 (record_conversion_result): Add `default:' case.
5254 (coding_charset_list): Delete unused variable `coding_type'.
5255 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
5256 property in the plist of the coding system.
5257 (Fcoding_system_put): Check QCascii_compatible_p.
5258
73acf815 52592008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5260
5261 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
5262 removed calculation of frame `f', as it's now used.
5263
73acf815 52642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5265
1f45f627 5266 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
5267 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
5268 (UNIDATA): New variable.
5269 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
5270 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
5271 $(RUN_TEMACS) unconditionally.
5272
73acf815 52732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5274
1f45f627 5275 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
5276 (admindir): New variable.
5277 ($(lispsource)international/charprop.el): New target.
5278
73acf815 52792008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5280
1f45f627 5281 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
5282 (syms_of_character): Remove its initialization.
5283
73acf815 52842008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
5285
5286 * w32select.c (validate_coding_system)
5287 (setup_windows_coding_system): New functions.
5288 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
5289 setup_windows_coding_system.
5290 (setup_config, Fw32_get_clipboard_data): Use
5291 validate_coding_system.
5292 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 5293 where signals are allowed.
aca7a3d2
MB
5294
5295 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
5296 (Fcheck_coding_system): Add declarations.
5297
73acf815 52982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5299
1f45f627 5300 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 5301
73acf815 53022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5303
5304 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
5305 string as the second argument for x_new_fontset.
5306
73acf815 53072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5308
5309 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
5310 (encode_coding_object): Use safe_call instead of call2.
5311
73acf815 53122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5313
1f45f627 5314 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
5315
5316 * Makefile.in (lisp): Include charprop.el.
5317
73acf815 53182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5319
5320 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
5321 Not sure if it's unnecessary.
5322
73acf815 53232008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5324
5325 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
5326 some possibly unnecessary fontset checking code that crashed
1f45f627 5327 when creating a new frame.
aca7a3d2 5328
73acf815 53292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5330
5331 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
5332 lookup_face.
5333
5334 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
5335
1f45f627 5336 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 5337
73acf815 53382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5339
73acf815 5340 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
5341 (coding_charset_list): New function.
5342
5343 * coding.h (coding_charset_list): Extern it.
5344
73acf815 53452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5346
5347 * fontset.c (Fset_fontset_font): Call find_font_encoding with
5348 concatenation of family and registry.
5349
73acf815 53502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5351
5352 * character.h (BYTE8_STRING): Fix typo.
5353
5354 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
5355 string to multibyte (sync to HEAD).
5356
5357 * casefiddle.c (casify_region): Handle changes in byte-length
5358 using replace_range_2 (sync to HEAD).
5359
73acf815 53602008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5361
5362 * chartab.c (map_char_table): GCPRO table and arg.
5363
73acf815 53642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5365
5366 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
5367 already at limit.
5368
73acf815 53692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5370
5371 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
5372 instead of fast_c_string_match_ignore_case.
1f45f627 5373 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 5374 fast_string_match_ignore_case instead of
1f45f627 5375 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 5376
73acf815 53772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5378
5379 * xdisp.c (get_next_display_element): In unibyte case, decide to
5380 display in octal form by checking a chacter by
5381 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
5382
1f45f627 5383 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
5384
5385 * character.c (unibyte_has_multibyte_table): New variable.
5386
5387 * character.h (unibyte_has_multibyte_table): Extern it.
5388 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
5389
73acf815 53902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5391
5392 * coding.c (encode_coding_iso_2022): Fix handling of charset
5393 annotation.
5394
73acf815 53952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5396
5397 * coding.c (setup_coding_system): If coding_system is nil, use
5398 Qundecided.
5399 (Fterminal_coding_system): Return nil if terminal coding system is
5400 `undecided'.
5401 (syms_of_coding): Define coding-system `undecided' here. Setup
5402 terminal_coding as `undecided'.
5403
73acf815 54042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5405
5406 * xdisp.c (message_dolog, set_message_1): Call
5407 unibyte_char_to_multibyte with arg type int.
5408
aca7a3d2
MB
5409 * lread.c (read1): Fix reading of a char-table.
5410
5411 * print.c (print_object): Include sub char-table in cicularities
5412 detection.
5413
73acf815 54142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5415
5416 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 5417 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 5418
73acf815 54192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5420
5421 * fileio.c (report_file_error): Make a unibyte string from
5422 strerror (errorno).
5423 (Fsubstitute_in_file_name): Fix the arg to
5424 unibyte_char_to_multibyte. It is evaluated twice.
5425
73acf815 54262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5427
5428 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
5429
73acf815 54302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5431
5432 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
5433 BOM is not found.
4c4475a8
GM
5434 (detect_coding, detect_coding_system): Optimization for ISO-2022
5435 when no 8-bit data is found.
aca7a3d2 5436
73acf815 54372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5438
5439 * w32fns.c (x_to_w32_font): Update to use new coding struct.
5440
73acf815 54412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5442
4c4475a8
GM
5443 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
5444 CHARS.
aca7a3d2 5445
73acf815 54462008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5447
5448 * macterm.c (mac_encode_char): Add charset argument and update
5449 to use encoding_type.
2a2e8de7 5450 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
5451 switch to pure fontset.
5452 (decode_mac_font_name): Temporarily remove decoding.
5453 (x_font_name_to_mac_font_name): Temporarily remove encoding.
5454 (x_load_font): Temporarily remove encoding.
aca7a3d2 5455
73acf815 54562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5457
5458 * xfaces.c (Fface_font): If frame is not on a window system,
5459 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
5460 refer to face->font.
5461 (split_font_name_into_vector, build_font_name_from_vector)
5462 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
5463 whne HAVE_WINDOW_SYSTEM is defined.
5464
73acf815 54652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5466
5467 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
5468 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 5469 cmp->glyph_len is zero.
aca7a3d2 5470
1f45f627 5471 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
5472 (Ffontset_info): Make it backward compatible. New arg ALL.
5473
73acf815 54742008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
5475
5476 * process.c (read_process_output): Grow decoding_buf when needed;
5477 this could cause a crash in allocate_string and compact_small_strings.
5478
73acf815 54792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5480
1f45f627 5481 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 5482
73acf815 54832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5484
5485 * coding.c (setup_coding_system): Set coding->common_flags
5486 correctly for raw-text.
5487 (consume_chars): On encoding unibyte text by raw-text, don't check
5488 multibyte form.
1f45f627 5489 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
5490
5491 * fileio.c (e_write): Short cut for the case of no encoding.
5492
73acf815 54932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5494
4c4475a8
GM
5495 * coding.c (detect_coding, detect_coding_system): Delete unused
5496 variables.
aca7a3d2 5497
73acf815 54982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5499
5500 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
5501 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
5502
73acf815 55032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5504
5505 * coding.c (Ffind_coding_systems_region_internal): Include
5506 raw-text and no-conversion in the result.
5507
73acf815 55082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5509
1f45f627 5510 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
5511 (load_font_get_repertory): Delete unnecessary check of ENCODING of
5512 FONT_DEF.
5513 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 5514 (set_fontset_font): Change argument.
aca7a3d2
MB
5515 (Fset_fontset_font): Fix for the case that TARGET is a script
5516 name and charset name.
5517 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
5518
73acf815 55192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5520
1f45f627
GM
5521 * fontset.c (fontset_font): Rename from fontset_face. Change return
5522 value.
4c4475a8
GM
5523 (face_suitable_for_char_p, face_for_char): Adjust for the change
5524 of fontset_font.
aca7a3d2
MB
5525 (make_fontset_for_ascii_face): Fix setting of the fontset element
5526 for ASCII.
5527 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
5528 to get a font name.
1f45f627 5529 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 5530
fcb314b2 5531 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
5532
5533 * character.h (LEADING_CODE_LATIN_1_MIN)
5534 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
5535
73acf815 55362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5537
fcb314b2 5538 * editfns.c (check_translation): New function.
aca7a3d2
MB
5539 (Ftranslate_region_internal): Handle M:N mapping.
5540
73acf815 55412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5542
5543 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
5544
73acf815 55452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5546
5547 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
5548 goto invalid_code.
5549 (decode_coding_iso_2022): Fix handling of invalid designation.
5550
5551 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
5552 after calling code_conversion_save.
5553
73acf815 55542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5555
5556 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
5557
5558 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
5559
5560 * fontset.c: Include "intervals.h".
5561 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
5562 (free_face_fontset, new_fontset_from_font_name): Fix
5563 Lisp_Object/int mixup.
aca7a3d2
MB
5564
5565 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
5566
5567 * coding.c: Add many prototypes for static functions.
5568 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 5569 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
5570 (Funencodable_char_position, Fcheck_coding_systems_region): Call
5571 get_translation_table with max_lookup NULL.
aca7a3d2 5572
73acf815 55732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5574
5575 * coding.c (get_translation_table): Declare it as Lisp_Object.
5576 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
5577 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
5578 instead of CHAR_TABLE_REF.
aca7a3d2 5579
73acf815 55802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5581
1f45f627 5582 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
5583 annotation data format.
5584 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 5585 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 5586 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 5587 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
5588 (decode_coding_ccl, decode_coding_charset): Pay attention to
5589 coding->charbuf_used.
aca7a3d2
MB
5590 (get_translation): New function.
5591 (produce_chars): New arguments translation_table and last_block.
5592 Translate characters here. Return number of carryover chars.
1f45f627
GM
5593 Change caller.
5594 (produce_composition): New argument pos. Change caller.
5595 Adjust for the change of annotation data format.
aca7a3d2
MB
5596 (produce_charset, produce_annotation): Likewise.
5597 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
5598 (consume_chars): New arg translation_table. Change caller.
5599 (translate_chars): Delete.
5600 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 5601
73acf815 56022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5603
5604 * search.c (simple_search): Fix setting this_pos_byte in backward
5605 search.
5606
5607 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
5608 byte sequence.
5609 (detect_coding_ccl): Fix setting of the variable valids.
5610
73acf815 56112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5612
5613 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
5614
5615 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
5616
1f45f627 5617 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
5618 Ftranslate_region. Accept a char-table in TABLE.
5619 (syms_of_editfns): Defsubr Stranslate_region_internal.
5620
5621 * xfaces.c (set_lface_from_font_name): If a font is specified for
5622 a frame, generate a fontset from the font.
5623 (build_scalable_font_name): If the scalable font is requested for
5624 a specific size, don't change that size.
5625 (try_font_list): Try a scalable font also in the case that a
1f45f627 5626 pattern string is specified.
aca7a3d2 5627
73acf815 56282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5629
5630 * xfaces.c (Fface_font): New optional arg CHARACTER.
5631
73acf815 56322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5633
5634 * charset.h (CHARSET_OFFSET): New macro.
5635
73acf815 56362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5637
5638 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
5639
5640 * fontset.c (fontset_face): Handle the case that repertory is a
5641 char-table.
5642 (find_font_encoding): Return nil for unknown encoding.
5643 (Fset_fontset_font): Ignore a font of unknown encoding.
5644
73acf815 56452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5646
1f45f627 5647 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
5648
5649 * fontset.c (fontset_face): Handle fallback fonts correctly.
5650 (Ffontset_info): Return infomation about fallback fonts.
5651
73acf815 56522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5653
5654 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 5655 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
5656 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
5657 the case that it is nil.
5658 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 5659 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
5660
5661 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
5662 subset or superset.
5663
73acf815 56642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5665
5666 * emacs.c (main): Call init_charset after syms_of_XXX.
5667
1f45f627 5668 * charset.c (Vcharset_map_directory): Delete.
aca7a3d2
MB
5669 (Vcharset_map_path): New variable
5670 (load_charset_map_from_file): Use Vcharset_map_path instead.
5671 (init_charset): Initialize Vcharset_map_path.
5672 (syms_of_charset): Delete declaration of "charset-map-directory",
5673 add declaration of "charset-map-path".
5674
73acf815 56752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5676
4c4475a8
GM
5677 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
5678 ASCII only string.
aca7a3d2
MB
5679
5680 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
5681
5682 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 5683 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 5684
73acf815 56852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5686
5687 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
5688
5689 * coding.c (QCmnemonic, QCdefalut_char)
5690 (QCdecode_translation_table, QCencode_translation_table)
5691 (QCpost_read_conversion, QCpre_write_conversion): New variables.
5692 (get_translation_table): Return a list of translation tables if
5693 necessary.
5694 (decode_coding): Call get_translation_table with ENCODEP 0.
5695 (char_encodable_p): If translation_table is non-nil, always call
5696 translate_char.
5697 (Fdefine_coding_system_internal): Accept list of translation
5698 tables as :encode-translation-table and :decode-translation-table.
5699 (Fcoding_system_put): New function.
5700 (syms_of_coding): Declare new symbols. Defsubr
5701 Scoding_system_put.
4c4475a8
GM
5702 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
5703 typically JISX0212.
aca7a3d2
MB
5704
5705 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
5706 when the charset is superset type.
5707
5708 * character.c (translate_char): Accept list of translation tables.
5709
73acf815 57102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5711
1f45f627 5712 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
5713 (CODING_ATTR_TRANS_TBL): New macro.
5714
5715 * coding.c (get_translation_table): New function.
5716 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
5717 (decode_coding, encode_coding): Utilize get_translation_table.
5718 (char_encodable_p, Funencodable_char_position): Translate char if
5719 necessary.
5720 (Ffind_coding_systems_region_internal)
5721 (Fcheck_coding_systems_region): Setup translation table for encode
5722 in a coding system attribute vector in advance.
aca7a3d2
MB
5723 (Fdefine_coding_system_internal): Allow a symbol as translation
5724 table. For shift-jis type coding system, allow 4th charset.
5725
73acf815 57262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5727
5728 * coding.c (decode_coding_sjis): Check the first byte rigidly.
5729
5730 * xdisp.c (get_next_display_element): Pass -1 as POS to
5731 FACE_FOR_CHAR if displaying a C-string.
5732
73acf815 57332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5734
5735 * composite.c (get_composition_id): Handle xoff and yoff in a
5736 composition rule.
5737
5738 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
5739 (struct composition): New member lbearing and rbearing.
5740
5741 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
5742 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 5743 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
5744
5745 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
5746 composition glyph.
5747
73acf815 57482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5749
5750 * print.c: Include charset.h.
5751 (Vprint_charset_text_property): New variable.
5752 (Qdefault): Extern it.
5753 (PRINT_STRING_NON_CHARSET_FOUND)
5754 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
5755 (print_check_string_result): New variable.
5756 (print_check_string_charset_prop): New function.
5757 (print_prune_charset_plist): New variable.
5758 (print_prune_string_charset): New function.
5759 (print_object): Call print_prune_string_charset if
5760 Vprint_charset_text_property is not t.
5761 (print_interval): Print nothing if itnerval->plist is nil.
5762 (syms_of_print): Declare Vprint_charset_text_property as a lisp
5763 variable. Init and staticpro print_prune_charset_plist.
5764
73acf815 57652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5766
5767 * fontset.c (new_fontset_from_font_name): Use the specified font
5768 for all characters in the new fontset.
5769
5770 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5771 OBJECT args.
5772
5773 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
5774 OBJECT args for composition too.
5775
5776 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5777 OBJECT args.
5778
73acf815 57792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5780
5781 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
5782
1f45f627 5783 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 5784 FONT_DEF format.
1f45f627 5785 (fontset_face): New arg id. Change caller.
aca7a3d2 5786 (face_for_char): New args pos and object.
1f45f627 5787 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF
aca7a3d2
MB
5788 format.n
5789 (fs_query_fontset): Check NAME by Fassoc too.
5790 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 5791 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 5792
1f45f627 5793 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 5794
4c4475a8
GM
5795 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
5796 (append_space, extend_face_to_end_of_line)
5797 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5798 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
5799
5800 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
5801 POS and OBJECT args.
5802
5803 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
5804 POS and OBJECT args.
5805
73acf815 58062008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5807
5808 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
5809 of GlobalAlloc'ed memory.
5810
73acf815 58112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5812
5813 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
5814
5815 * charset.h (charset_table_used): Delete extern.
5816
5817 * charset.c (charset_table_used): Make it static.
5818 (map_charset_chars): Fix args to c_function with.
5819
5820 * chartab.c (map_sub_char_table_for_charset): Fix args to
5821 c_function with.
5822
5823 * coding.h (enum coding_result_code): Delete
5824 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
5825
5826 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 5827 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
5828 (Vlast_code_conversion_error): New variables.
5829 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
5830 (ONE_MORE_BYTE): Record error if any instead of signaling an
5831 error. If non-ASCII multibyte char is found, return the negative
5832 value of the code. All callers changed to check it.
5833 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
5834 (record_conversion_result): New function. Change all codes setting
5835 coding->result to call this function.
4c4475a8
GM
5836 (detect_coding_utf_8, decode_coding_utf_8)
5837 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
5838 Don't use the local variable incomplete.
aca7a3d2 5839 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
5840 (decode_coding): Fix of flushing out unprocessed data.
5841 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 5842 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
5843
5844 * fontset.c (set_fontset_font): Fix args.
5845
5846 * lisp.h (CHARACTERBITS): Define as 22.
5847
5848 * process.c (send_process): Be sure to set coding->src_multibyte.
5849
5850 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
5851
73acf815 58522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5853
5854 * xdisp.c (handle_auto_composed_prop): Give limit to
5855 Fnext_single_char_property_change.
5856
73acf815 58572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5858
424c157f 5859 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 5860 table weak.
aca7a3d2
MB
5861
5862 * fontset.c (Fset_fontset_font): Fix docstring.
5863
5864 * lisp.h (detect_coding_system): Adjust prototype.
5865
5866 * fileio.c (kill_workbuf_unwind): Delete this function.
5867 (Finsert_file_contents): Adjust the call of detect_coding_system.
5868 Get conversion_buffer by code_conversion_save. Use the macor
5869 CODING_MAY_REQUIRE_DECODING. After decoding, update
5870 coding_system.
5871
5872 * coding.h (make_conversion_work_buffer): Delete extern.
5873 (code_conversion_save): Extern it.
5874
5875 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 5876 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
5877 (decode_coding_utf_8): Don't do eol converion.
5878 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 5879 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
5880 (decode_coding_emacs_mule, decode_coding_iso_2022)
5881 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
5882 Don't do eol converion.
aca7a3d2
MB
5883 (adjust_coding_eol_type): Return a new coding system.
5884 (detect_coding): Don't detect eol. Fix for utf-16 detection.
5885 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
5886 each change.
5887 (decode_coding): Pay attention to undo_list. Do eol convesion for
5888 all types of coding-systems (if necessary).
5889 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 5890 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
5891 Vcode_conversion_reused_work_buf.
5892 (Vcode_conversion_workbuf_name): New variable.
5893 (reused_workbuf_in_use): New variable.
5894 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 5895 (code_conversion_restore): Change argument to cons.
1f45f627
GM
5896 (code_conversion_save): Delete the argument BUFFER. Change callers.
5897 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
5898 Fix for utf-16 detection.
5899 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 5900 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
5901 reused_workbuf_in_use.
5902
73acf815 59032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5904
5905 * keymap.c (store_in_keymap): Pay attention to the case that idx
5906 is a cons specifying a character range.
5907
73acf815 59082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5909
5910 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
5911 HANDLED_RECOMPUTE_PROPS.
5912
5913 * coding.c (Fdefine_coding_system_internal): Fix checking of
5914 ascii compatibility.
5915
73acf815 59162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5917
1f45f627 5918 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
5919 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
5920
5921 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
5922 Resync charset_list to Vemacs_mule_charset_list.
5923
5924 * keymap.c (store_in_keymap): Pay attention to the case that idx
5925 is a cons specifying a character range.
5926
73acf815 59272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5928
5929 * composite.c (update_compositions): Bind inhibit-read-only, etc
5930 to t before calling remove-list-of-text-properties.
5931
5932 * print.c (print_object): Always print ASCII chars as is.
5933
73acf815 59342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5935
1f45f627 5936 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 5937
4c4475a8
GM
5938 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
5939 is a char table.
aca7a3d2 5940
73acf815 59412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5942
1f45f627 5943 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 5944
73acf815 59452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5946
5947 * xfaces.c (set_lface_from_font_name): Fix for the case that
5948 FONTNAME is not fontset name.
5949
73acf815 59502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5951
5952 * fns.c (base64_encode_1): Fix previous change.
5953
73acf815 59542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5955
5956 * fontset.c (set_fontset_font): New function.
5957 (Fset_fontset_font): If a font is specified for a charset, use
5958 map_charset_chars to store the font spec in a fontset.
5959
73acf815 59602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5961
5962 * fontset.c (fontset_face): Create a fallback fontset on demand
5963 (make_fontset): Don't create a fallback fontset here.
5964 (free_face_fontset): Free a fallback fontset (if any) too.
5965 (n_auto_fontsets): Delete this variable.
5966 (auto_fontset_alist): New variable.
5967 (new_fontset_from_font_name): Check auto_fontset_alist.
5968 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
5969 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
5970 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
5971 Defsubr Sfontset_list_all.
5972
73acf815 59732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5974
5975 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5976
73acf815 59772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5978
5979 * fontset.c (Fnew_fontset): Check NAME more rigidly.
5980
73acf815 59812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5982
5983 * editfns.c (Fgoto_char): Fix docstring.
5984
73acf815 59852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5986
5987 * insdel.c (insert_from_gap): Adjust intervals correctly.
5988
73acf815 59892008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5990
5991 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
5992 (pfnGetFontUnicodeRanges): New dynamically loaded function.
5993 (w32_initialize): Try to load it.
5994 (x_get_font_repertory): Use it if available.
5995 (w32_encode_char): Add shortcut for unicode output.
5996
5997 * w32fns.c (w32_load_system_font): Default charset to -1.
5998 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 5999 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
6000 or wildcard charsets.
6001 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6002 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6003 (w32_to_x_font): Match charset to real charset.
6004 (enum_font_cb2): Always list unicode versions.
6005
6006 * makefile.w32-in (temacs): Increase EMHEAP.
6007
73acf815 60082008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6009
6010 * w32term.c (w32_encode_char): New charset parameter.
6011 font_info.encoding becomes encoding_type.
1f45f627 6012 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
6013 (x_new_font): Return quickly if font already set.
6014 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
6015 Use new fs_query_fontset. Try new_fontset_from_font_name.
6016 Use fontset_name for return value.
aca7a3d2
MB
6017
6018 * w32term.h: Declare x_get_font_repertory.
6019
6020 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 6021 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
6022 of encode_coding.
6023 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6024 decode_coding.
6025
6026 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6027 of x_new_fontset.
6028 (w32_load_system_font): Initialize charset as unicode.
6029 font_info.encoding becomes encoding_type.
1f45f627
GM
6030 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6031 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
6032 (syms_of_w32fns): Set get_font_repertory_func.
6033
1f45f627 6034 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 6035 from term.c.
1f45f627 6036 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
6037 encode_coding_object in place of encode_coding.
6038
6039 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6040 encoding becomes encoding_type.
6041
6042 * term.c (terminal_encode_buffer): Make externally visible.
6043
6044 * makefile.w32-in: Add character.h dependancies.
6045 (character.o, chartab.o): New targets.
6046
73acf815 60472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6048
6049 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 6050 CODING_ID_EOL_TYPE.
aca7a3d2 6051
73acf815 60522008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6053
6054 * coding.c (produce_chars): Revert last change.
6055
73acf815 60562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6057
6058 * charset.h (charset_unicode): Extern it.
6059
6060 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 6061 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 6062 arg MULTIBYTE.
1f45f627 6063 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
6064 change of find_charsets_in_text.
6065 (Fsplit_char): Fix doc. Never return unknown.
6066
6067 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
6068
6069 * coding.c (Fdefine_coding_system_alias): Update
6070 Vcoding_system_list.
6071
6072 * fontset.c (load_font_get_repertory): Pay attention to the case
6073 that ENCODING of a font is specified by a char-table.
6074
6075 * xterm.c (x_get_font_repertory): Handle the case that the
6076 encoding of font is other than Unicode.
6077
73acf815 60782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6079
6080 * term.c (encode_terminal_code): Don't handle glyph-table. Check
6081 if a character is encodable by the terminal coding system. If
6082 not, produces proper number of `?'s. Update
6083 terminal_encode_buffer and terminal_encode_buf_size if necessary.
6084 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
6085
73acf815 60862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6087
6088 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
6089 variables.
1f45f627 6090 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
6091 characters at once. Store the result of encoding in
6092 terminal_encode_buffer.
4c4475a8
GM
6093 (write_glyphs, insert_glyphs): Adjust for the change of
6094 encode_terminal_code.
aca7a3d2
MB
6095 (term_init): Initialize terminal_encode_buffer and
6096 terminal_encode_buf_size.
6097
6098 * coding.c (consume_chars): If coding->src_object is nil, don't
6099 check annotation.
6100
73acf815 61012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6102
6103 * character.c (char_string): Use ASCII_CHAR_P instead of
6104 SINGLE_BYTE_CHAR_P.
6105
73acf815 61062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6107
6108 * xdisp.c (handle_auto_composed_prop): Check if the last
6109 characters of auto-composed region is newly composed with the
6110 following characters.
6111 (handle_composition_prop): Fix checking of point being inside
6112 composition.
6113
73acf815 61142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6115
6116 * fns.c (concat): Don't change multibyteness of the result by
6117 concatenating an 8-bit character.
6118
6119 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
6120 multibyteness of the result when newelt is an 8-bit character.
6121
73acf815 61222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6123
6124 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
6125 EMACS_INT.
6126
6127 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
6128
6129 * xfaces.c (face_numeric_value): Declare dim size_t.
6130 (Finternal_lisp_face_equal_p): Remove unused f.
6131
6132 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
6133 (MATRIX_ROW): Remove unused vars.
6134 (draw_glyphs, x_insert_glyphs, fast_find_position)
6135 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
6136 byte/char counts.
6137
6138 * regex.c (regex_compile): Remove unused var.
6139
6140 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6141
6142 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6143 (Faccessible_keymaps, where_is_internal): Remove unused vars.
6144
6145 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
6146
6147 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
6148
6149 * fileio.c (Fwrite_region): Remove unused var.
6150
6151 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
6152 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
6153
6154 * composite.c (Fremove_list_of_text_properties): Declare.
6155
1f45f627
GM
6156 * coding.c (inhibit_pre_post_conversion): Remove (unused).
6157 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
6158 (coding_inherit_eol_type): Remove unused attrs.
6159 (detect_coding): Cast arg of detect_eol.
6160
6161 * charset.c (syms_of_charset): Remove unused var p.
6162 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
6163 byte/char counts.
6164
6165 * casetab.c (set_case_table): Remove unused var.
6166
6167 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 6168 unused vars.
aca7a3d2 6169
73acf815 61702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6171
6172 * xterm.c (x_bitmap_mask): Declare.
6173
73acf815 61742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6175
6176 * xterm.c (x_term_init): Fix type error.
6177
6178 * lisp.h: Add Funibyte_char_to_multibyte.
6179
6180 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
6181 (Fset_coding_system_priority): Doc fix.
6182
aca7a3d2
MB
6183 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
6184
6185 * indent.c (check_composition): Make start and end EMACS_INT.
6186
6187 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
6188
6189 * xdisp.c (handle_composition_prop, check_point_in_composition):
6190 Make buffer positions EMACS_INT.
6191
6192 * composite.c (find_composition, run_composition_function)
6193 (update_compositions, Ffind_composition_internal): Make buffer
6194 positions EMACS_INT.
6195
6196 * composite.h (find_composition, update_compositions): Make
6197 position args EMACS_INT.
6198
1f45f627 6199 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
6200
6201 * intervals.c (get_property_and_range):
6202 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
6203
6204 * unexalpha.c: Don't include varargs.h.
6205
73acf815 62062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6207
6208 * coding.h (ENCODE_UTF_8): New.
6209
6210 * Makefile.in (gtkutil.o): Depend on coding.h.
6211
6212 * coding.c (Fset_coding_system_priority): Doc fix.
6213
73acf815 62142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6215
6216 * fileio.c (Finsert_file_contents): Call setup_coding_system in
6217 the case of auto saving.
6218
73acf815 62192008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 6220
4c4475a8
GM
6221 * chartab.c (map_char_table, map_char_table_for_charset): Protect
6222 `range' from GC.
aca7a3d2 6223
73acf815 62242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6225
6226 * coding.c (decode_coding_sjis): Check bytes more rigidly.
6227
73acf815 62282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6229
1f45f627 6230 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
6231 (Fwrite_region): Set Vlast_coding_system_used to the return value
6232 of choose_write_coding_system.
6233
73acf815 62342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6235
6236 * charset.c (Fset_charset_priority): Pay attention to duplicated
6237 arguments.
6238
6239 * coding.c (QCcategory): New variable.
6240 (syms_of_coding): Defsym it. Set all elements of
6241 Vcoding_category_table and their symbol values.
6242 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
6243 coding-category-XXX, and coding-category-list.
6244 (Fdefine_coding_system_internal): Add category in the plist.
6245
73acf815 62462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6247
6248 * callproc.c (Fcall_process): Handle carryover correctly.
6249
1f45f627 6250 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
6251 (raw_text_coding_system): Check NILP (coding_system).
6252 (coding_inherit_eol_type): Check NILP (coding_system) and
6253 NILP (parent).
6254 (consume_chars): Fix for the case of raw-text.
6255
6256 * process.c (read_process_output): Handle carryover correctly.
6257
73acf815 62582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6259
6260 * regex.c (re_search_2): Fix last change.
6261
73acf815 62622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6263
6264 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
6265 target_multibyte. Even in a unibyte case, return a converted
6266 multibyte char.
6267 (GET_CHAR_AFTER): New macro.
6268 (PATFETCH): Translate via multibyte char.
6269 (HANDLE_UNIBYTE_RANGE): Delete this macro.
6270 (SETUP_MULTIBYTE_RANGE): New macro.
6271 (regex_compile): Setup compiled code so that its multibyteness
6272 matches that of a target. Fix the handling of "[X-YZ]" using
6273 SETUP_MULTIBYTE_RANGE.
6274 (analyse_first) <charset>: For filling fastmap for all multibyte
6275 characters, don't check by BASE_LEADING_CODE_P.
6276 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
6277 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 6278 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
6279 (TARGET_CHAR_AND_LENGTH): Delete this macro.
6280 (TRANSLATE_VIA_MULTIBYTE): New macro.
6281 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
6282 It is the same as RE_MULTIBYTE_P (bufp) now.
6283 <exactn>: Translate via multibyte.
6284 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
6285 translate it.
6286 <charset, charset_not>: Fetch a character by
6287 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
6288 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
6289 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
6290 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
6291 by GET_CHAR_AFTER.
c5ad7a3d 6292 (bcmp_translate): Likewise.
aca7a3d2
MB
6293
6294 * search.c (compile_pattern): Check the member target_multibyte,
6295 not the member multibyte of buf.
6296
6297 * lread.c (read1): While reading a string, set force_singlebyte
6298 and force_multibyte correctly.
6299
4c4475a8
GM
6300 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
6301 up of unibyte_to_multibyte_table.
aca7a3d2 6302
73acf815 63032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6304
6305 * coding.c (setup_coding_system): If coding has
6306 post-read-conversion or pre-write-conversion, set
6307 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
6308 respectively.
6309 (decode_coding_gap): Run post-read-conversion if any.
6310
6311 * fileio.c (Finsert_file_contents): Even if we read into a
6312 unibyte buffer, check if we must decode the result or not.
6313
73acf815 63142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6315
6316 * coding.c (make_conversion_work_buffer): Change the work buffer
6317 name to the same one as that of Emacs 21.
6318
73acf815 63192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6320
1f45f627 6321 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
6322 (code_conversion_restore): Don't extern it.
6323
6324 * coding.c (detected_mask): Delete unused variable.
6325 (decode_coding_iso_2022): Pay attention to the byte sequence of
6326 CTEXT extended segment, and retain those bytes as is.
6327 (decode_coding_ccl): Delete unused variable `valids'.
6328 (setup_coding_system): Delete unused variable `category'.
6329 (consume_chars): Delete unused variable `category'. Make it work
6330 for non-multibyte case.
1f45f627 6331 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
6332 (saved_coding): Delete unused variable.
6333 (code_conversion_restore): Don't check saved_coding->destination.
6334 (code_conversion_save): New function.
6335 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
6336 instead of record_unwind_protect.
1f45f627 6337 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 6338 (detect_coding_system): Delete unused variable `mask'.
1f45f627 6339 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
6340
6341 * fileio.c (kill_workbuf_unwind): New function.
6342 (Finsert_file_contents): On replacing, call
6343 make_conversion_work_buffer with correct args, and call
6344 record_unwind_protect with the first arg kill_workbuf_unwind.
6345
6346 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
6347
73acf815 63482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6349
1f45f627 6350 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
6351 (fontset_add): Fix for the case that TO is less than TO1.
6352 (Ffontset_info): Don't use fallback fontset on checking the
6353 default fontset.
6354 (dump_fontset): New function for debugging.
6355
6356 * coding.c (Fdefine_coding_system_internal): Fix for the case that
6357 coding_type is Qcharset.
6358
73acf815 63592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6360
6361 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
6362 (map_char_table): Don't inherit the value from the parent on
1f45f627 6363 initializing VAL. Adjust for the above change.
aca7a3d2 6364
73acf815 63652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6366
6367 * coding.c (Qsignature, Qendian): Delete these variables.
6368 (syms_of_coding): Don't initialize them.
6369 (CATEGORY_MASK_UTF_16_AUTO): New macro.
6370 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
6371 detect_info->found.
6372 (decode_coding_utf_16): Don't detect BOM here.
6373 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
6374 is NOT utf_16_without_bom.
6375 (setup_coding_system): For a coding system of type utf-16, check
6376 if the attribute :endian is Qbig or not (not nil or not), and set
6377 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
6378 (detect_coding): If coding type is utf-16 and BOM detection is
6379 required, detect it.
6380 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 6381 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 6382
73acf815 63832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6384
6385 * coding.c (coding_set_source): Fix for the case that the current
6386 buffer is different from coding->src_object.
6387 (decode_coding_object): Don't use the conversion work buffer if
6388 DST_OBJECT is a buffer.
6389
73acf815 63902008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6391
6392 * lread.c (read_emacs_mule_char) [len==2]: Index
6393 emacs_mule_charset correctly.
6394
73acf815 63952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6396
6397 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
6398 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 6399 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
6400 treated specially.)
6401 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
6402 (detected_mask): Remove Big5 bits.
6403
73acf815 64042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6405
6406 The following changes are to make the font rescaling facility
6407 compatible with Emacs 21.
6408
1f45f627 6409 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
6410 Vface_resizing_fonts.
6411 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 6412 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
6413 (split_font_name): Set font->rescale_ratio.
6414 (better_font_p): Pay attention to font->rescale_ratio.
6415 (build_scalable_font_name): Likewise. Change RESX, and RESY
6416 fields.
1f45f627 6417 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 6418
73acf815 64192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6420
6421 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
6422 (Qutf_16_le): Remove these variables.
6423 (syms_of_coding): Don't DEFSYM them.
6424 (decode_coding_utf_16): Fix handling of BOM.
6425 (encode_coding_utf_16): Fix handling of BOM.
6426
73acf815 64272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6428
6429 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 6430 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 6431
73acf815 64322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6433
6434 * coding.c (Fcheck_coding_systems_region): Fix type errors.
6435
73acf815 64362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6437
6438 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6439 and fix C types.
6440
73acf815 64412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6442
6443 * xdisp.c (SKIP_GLYPHS): New macro.
6444 (set_cursor_from_row): Pay attention to string display properties.
6445
6446 * category.c (copy_category_entry): Fix for the case that RANGE
6447 is an integer.
6448
6449 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
6450
1f45f627 6451 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 6452
73acf815 64532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6454
6455 * charset.c (Fcharset_id_internal): New function.
6456 (syms_of_charset): Defsubr it.
6457
6458 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
6459 with the last arg charset_list acquired from coding.
6460 (Fdefine_coding_system_internal): For ccl-based coding system, fix
6461 the attribute coding_attr_ccl_valids.
6462
6463 * coding.h (enum define_coding_ccl_arg_index): Set the first
6464 member coding_arg_ccl_decoder to coding_arg_max.
6465
1f45f627 6466 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
6467
6468 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
6469 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
6470 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
6471 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
6472 last arg Qnil.
aca7a3d2 6473
73acf815 64742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6475
6476 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
6477 call encode_char.
6478
1f45f627 6479 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 6480
73acf815 64812008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6482
1f45f627 6483 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 6484
73acf815 64852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6486
6487 * dispextern.h (check_face_attributes, generate_ascii_font_name)
6488 (font_name_registry): Don't extern them.
1f45f627 6489 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
6490
6491 * fontset.h (Qfontset): Don't extern it.
6492 (new_fontset_from_font_name): Extern it.
6493
6494 * fontset.c: Give 8 extra slots to fontset objects.
6495 (Qfontset_info): New variable.
6496 (syms_of_fontset): Defsym it.
6497 (FONTSET_FALLBACK): New macro.
6498 (fontset_face): Try also the default fontset.
1f45f627
GM
6499 (make_fontset): Realize a fallback fontset from the default fontset.
6500 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
6501 using split_font_name_into_vector and build_font_name_from_vector.
6502 (Fset_fontset_font): Access the elements of font_spec by enum
6503 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
6504 name by using split_font_name_into_vector.
6505 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
6506 generate a proper font name from the fontset name. Update
6507 Vfontset_alias_alist.
6508 (n_auto_fontsets): New variable.
6509 (new_fontset_from_font_name): New function.
6510 (Ffont_info): Store the information about fonts generated from the
1f45f627 6511 default fontset in the first extra slot of the returned char-table.
aca7a3d2 6512
1f45f627
GM
6513 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
6514 (font_name_registry): Delete function.
aca7a3d2
MB
6515 (split_font_name_into_vector): New function.
6516 (build_font_name_from_vector): New function.
1f45f627 6517 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
6518 (choose_face_font): If we are choosing an ASCII font, and ATTRS
6519 specifies an explicit font name, return the name as is. Make a
6520 list of registy names.
6521
1f45f627 6522 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
6523 of x_new_fontset.
6524 (Fx_create_frame): Don't call x_new_fontset here. Just use
6525 x_list_fonts to check the existence of fonts.
6526
1f45f627 6527 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
6528
6529 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
6530 string. Use new_fontset_from_font_name to create a fontset from a
6531 font name.
6532
1c8658b9
GM
65332008-02-01 Kenichi Handa <handa@m17n.org>
6534
6535 * syntax.c (Vfind_word_boundary_function_table): New name for
6536 Vnext_word_boundary_function_table.
6537 (find-word-boundary-function-table): New name for
6538 next-word-boundary-function-table.
6539
73acf815 65402008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6541
6542 * Makefile.in: Fix some dependencies.
6543
6544 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
6545 set it to nil before returning.
6546
6547 * composite.c (update_compositions): Fix type error.
6548
6549 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
6550
73acf815 65512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6552
6553 * xterm.c (x_new_font): Optimize for the case that the font is
6554 already set for the frame.
6555
73acf815 65562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6557
6558 * chartab.c (char_table_ascii): Check if the char table contents
6559 is sub-char-table or not.
4c4475a8
GM
6560 (char_table_set, char_table_set_range): Fix argument to
6561 char_table_ascii.
aca7a3d2
MB
6562
6563 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
6564 (detect_coding_utf_8, detect_coding_utf_16)
6565 (detect_coding_emacs_mule, detect_coding_iso_2022)
6566 (detect_coding_sjis, detect_coding_big5)
6567 (detect_coding_ccl, detect_coding_charset): Change argument MASK
6568 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 6569 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
6570 (MAX_ANNOTATION_LENGTH): New macro.
6571 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
6572 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
6573 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 6574 (ADD_CHARSET_DATA): New macro.
1f45f627 6575 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
6576 (decode_coding_emacs_mule, decode_coding_iso_2022)
6577 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6578 Produce charset annotation data in coding->charbuf.
6579 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
6580 to charset annotation data in coding->charbuf.
6581 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
6582 coding->common_flags if the coding system is iso-2022 based and
6583 uses designation.
1f45f627 6584 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
6585 (produce_charset): New function.
6586 (produce_annotation): Handle charset annotation.
6587 (handle_composition_annotation, handle_charset_annotation): New
6588 functions.
6589 (consume_chars): Handle charset annotation. Utilize the above two
6590 functions.
6591 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
6592 buffer, get the deleted text as a string and set
6593 coding->src_object to that string.
6594 (detect_coding, detect_coding_system): Use the new struct
6595 coding_detection_info.
6596
6597 * coding.h (struct coding_detection_info): New structure.
1f45f627 6598 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
6599 (CODING_ANNOTATE_CHARSET_MASK): New macro.
6600
73acf815 66012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6602
6603 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
6604
73acf815 66052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6606
1f45f627 6607 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
6608 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
6609 to new local and nullify apropos_accumulate before returning.
6610 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
6611
73acf815 66122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6613
6614 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
6615 correctly.
6616
73acf815 66172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6618
6619 * fns.c (Flanginfo): Call synchronize_system_time_locale.
6620
73acf815 66212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6622
6623 The following changes are to make character composition happen
6624 automatically on displaying.
6625
2a2e8de7 6626 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 6627
1f45f627
GM
6628 * composite.h (Qauto_composed, Vauto_composition_function)
6629 (Qauto_composition_function): Extern them.
aca7a3d2 6630
1f45f627
GM
6631 * composite.c (Vcomposition_function_table)
6632 (Qcomposition_function_table): Delete variables.
6633 (Qauto_composed, Vauto_composition_function)
6634 (Qauto_composition_function): New variables.
aca7a3d2
MB
6635 (run_composition_function): Don't call
6636 compose-chars-after-function.
6637 (update_compositions): Clear `auto-composed' text property.
6638 (compose_chars_in_text): Delete this function.
6639 (syms_of_composite): Staticpro Qauto_composed and
6640 Qauto_composition_function. Declare Vauto_composition_function as
6641 a Lisp variable.
6642
6643 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
6644
6645 * xdisp.c (it_props): Add an entry for Qauto_composed.
6646 (handle_auto_composed_prop): New function.
6647
6648 * xselect.c (selection_data_to_lisp_data): Don't call
6649 compose_chars_in_text.
6650
73acf815 66512008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6652
6653 * keyboard.c (read_char): Modify checking around use of
6654 Vkeyboard_translate_table.
6655
6656 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6657 and fix C types.
6658
73acf815 66592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6660
4c4475a8
GM
6661 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
6662 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6663 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 6664 the case that the last byte is '\r' correctly.
1f45f627
GM
6665 (decode_coding): Flush out the unprocessed data correctly.
6666 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 6667
73acf815 66682008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6669
6670 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
6671 XK_ISO... case.
6672 (xaw_scroll_callback): Revert last change.
6673
73acf815 66742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6675
1f45f627 6676 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 6677
73acf815 66782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6679
6680 * xfaces.c (Vface_resizing_fonts): New variable.
6681 (struct font_name): New member `resizing_ratio'.
6682 (font_resizing_ratio): New function.
6683 (split_font_name): Set font->resizing_ratio.
6684 (better_font_p): Pay attention to font->resizing_ratio.
6685 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
6686 RESX, and RESY fields.
6687 (try_alternative_families): Try scalable fonts if
6688 Vscalable_fonts_allowed is not Qt.
6689 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
6690
73acf815 66912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6692
6693 * xterm.c (xaw_scroll_callback): Cast correctly.
6694
73acf815 66952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6696
6697 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
6698 (lispy_kana_keys): Comment out.
6699 (make_lispy_event) [XK_kana_A]: Comment out.
6700
6701 * xterm.c (xaw_scroll_callback): Cast call_data.
6702 (XTread_socket): Deal with ASCII keysyms.
6703 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
6704
73acf815 67052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6706
6707 * xterm.c (Vx_keysym_table): New.
6708 (syms_of_xterm): Initialize it.
6709 (XTread_socket): Use it.
6710 From head: Eliminate incorrect optimization that tried to avoid
6711 decoding the output of X*LookupString.
6712 (x_get_font_repertory): Delete charset declaration.
6713
73acf815 67142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6715
1f45f627
GM
6716 * coding.c (detect_coding_charset): If only ASCII bytes are found,
6717 return 0.
aca7a3d2
MB
6718 (Fdefine_coding_system_internal): Setup
6719 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
6720
73acf815 67212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6722
6723 * coding.c (Fcheck_coding_system): Doc fix.
6724
6725 * editfns.c (Finsert_byte): Return a proper value.
6726
73acf815 67272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6728
6729 * coding.c (decode_coding): Fix args to translate_chars. Pay
6730 attention to Vstandard_translation_table_for_decode.
6731 (encode_coding): Fix args to translate_chars. Pay attention to
6732 Vstandard_translation_table_for_encode.
6733
6734 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
6735 SINGLE_BYTE_CHAR_P.
6736
6737 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
6738 not by SINGLE_BYTE_CHAR_P.
6739
6740 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
6741 SINGLE_BYTE_CHAR_P.
6742
6743 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
6744 SINGLE_BYTE_CHAR_P.
6745
6746 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
6747 by SINGLE_BYTE_CHAR_P.
6748
6749 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
6750 SINGLE_BYTE_CHAR_P.
6751
73acf815 67522008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6753
6754 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
6755
73acf815 67562008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6757
6758 * fns.c (Flanginfo): Fix typo.
6759
6760 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
6761
73acf815 67622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6763
4c4475a8
GM
6764 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
6765 (detect_coding_emacs_mule, detect_coding_iso_2022)
6766 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
6767 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 6768 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 6769 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 6770 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 6771
73acf815 67722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6773
1f45f627
GM
6774 * character.c (char_string): Rename from
6775 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
6776 (string_char): Rename from string_char.
aca7a3d2 6777
4c4475a8
GM
6778 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
6779 if C is greater than MAX_3_BYTE_CHAR.
6780 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
6781 string_char instead of string_char_with_unification.
aca7a3d2 6782
73acf815 67832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6784
6785 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
6786
73acf815 67872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6788
1f45f627 6789 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
6790
6791 * regex.c (re_search_2): Fix for the case of unibyte buffer.
6792
73acf815 67932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6794
6795 * charset.c (define_charset_internal): Rename `supprementary'.
6796
6797 * Makefile.in (lisp, shortlisp): Remove latin-N.
6798
73acf815 67992008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6800
6801 * xfns.c (x_window, x_window): Use use_xim.
6802
6803 * xterm.c (use_xim): Initialize.
6804 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6805 (x_term_init): Maybe set use_xim.
6806
6807 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6808
73acf815 68092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6810
6811 * search.c (search_buffer): Fix case-fold-search of multibyte
6812 characters.
6813 (boyer_moore): Rename the last argument to char_high_bits.
6814
73acf815 68152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6816
6817 * xdisp.c (display_string): Fix for the case of zero width glyph.
6818
6819 * xfns.c (x_set_font): Change the error message of the case that
6820 x_new_fontset returns Qt.
6821
6822 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
6823 (Finternal_set_lisp_face_attribute): Use signal_error for the
6824 error of invalid fontset.
6825
6826 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
6827 fontset, return Qt.
6828
73acf815 68292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6830
aca7a3d2
MB
6831 * unexelf.c (unexec): Make .got handling not SGI-specific.
6832
6833 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
6834
6835 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
6836
6837 * keyboard.c (read_key_sequence): Fix type error.
6838
6839 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
6840 type error.
6841
6842 * fontset.c (fontset_add): Return Lisp_Object.
6843
73acf815 68442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6845
6846 * charset.h (charset_ordered_list_tick): Declare extern.
6847
73acf815 68482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6849
73acf815 6850 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
6851 for handling syntax, category, and case conversion for unibyte
6852 characters by converting them to multibyte on the fly. With these
6853 changes, we don't have to setup syntax and case tables for unibyte
6854 characters in each language environment.
6855
6856 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
6857 multibyte if necessary.
6858
6859 * bytecode.c (Fbyte_code): Likewise.
6860
6861 * character.h (LEADING_CODE_LATIN_1_MIN)
6862 (LEADING_CODE_LATIN_1_MAX): New macros.
6863 (unibyte_to_multibyte_table): Extern it.
6864 (unibyte_char_to_multibyte): New macro.
6865 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
6866 (CHAR_LEADING_CODE): New macro.
6867 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
6868
6869 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 6870 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
6871 (multibyte_char_to_unibyte): If C is an eight-bit character,
6872 convert it to the corresponding byte value.
6873
6874 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
6875 not 1, singals an error. Update the elements of
6876 unibyte_to_multibyte_table.
6877 (init_charset_once): Initialize unibyte_to_multibyte_table.
6878 (syms_of_charset): Define the charset `iso-8859-1'.
6879
aca7a3d2
MB
6880 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
6881 as is without converting it to unibyte. In a unibyte buffer,
6882 convert C to multibyte before checking the syntax.
6883
1f45f627 6884 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
6885
6886 * minibuf.c (Fminibuffer_complete_word): Use the macro
6887 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
6888
6889 * regex.h (struct re_pattern_buffer): New member target_multibyte.
6890
6891 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
6892 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
6893 that is zero, convert an eight-bit char to multibyte.
6894 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
6895 non-emacs case.
6896 (PATFETCH): Convert an eight-bit char to multibyte.
6897 (HANDLE_UNIBYTE_RANGE): New macro.
6898 (regex_compile): Setup the compiled pattern for multibyte chars
6899 even if the given regex string is unibyte. Use PATFETCH_RAW
6900 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 6901 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 6902 only for ASCII chars.
1f45f627 6903 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
6904 is multibyte.
6905 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
6906 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 6907 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
6908 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
6909 multibyte always 1.
6910 (re_search_2): In emacs, set the locale variable multibyte to 1,
6911 otherwise to 0. New local variable target_multibyte. Check it
6912 to decide the multibyteness of STR1 and STR2. If
6913 target_multibyte is zero, convert unibyte chars to multibyte
6914 before translating and checking fastmap.
6915 (TARGET_CHAR_AND_LENGTH): New macro.
6916 (re_match_2_internal): In emacs, set the locale variable multibyte
6917 to 1, otherwise to 0. New local variable target_multibyte. Check
6918 it to decide the multibyteness of STR1 and STR2. Use
6919 TARGET_CHAR_AND_LENGTH to fetch a character from D.
6920 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 6921 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
6922 target_multibyte, not with multibyte.
6923 <begline>: Declare the local variable C as `unsigned'.
6924 (bcmp_translate): Change the last arg name to target_multibyte.
6925
6926 * search.c (compile_pattern_1): Don't adjust the multibyteness of
6927 the regexp pattern and the matching target. Set cp->buf.multibyte
6928 to the multibyteness of the regexp pattern. Set
1f45f627 6929 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
6930 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
6931 FETCH_STRING_CHAR_ADVANCE.
6932 (Freplace_match): Convert unibyte chars to multibyte.
6933
4c4475a8
GM
6934 * syntax.c (char_quoted, back_comment, scan_words)
6935 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
6936 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 6937 unibyte chars to multibyte.
1f45f627
GM
6938 (skip_chars): Delete the arg syntaxp, and move the code for
6939 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
6940 Fix the case that the multibyteness of STRING and the current
6941 buffer doesn't match.
6942 (skip_syntaxes): New function.
6943 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
6944 SINGLE_BYTE_CHAR_P.
aca7a3d2 6945
73acf815 69462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6947
6948 * xfaces.c (QCfontset): New variable.
6949 (LFACE_FONTSET): New macro.
6950 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
6951 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
6952 (Finternal_set_lisp_face_attribute)
6953 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
6954 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
6955 check also LFACE_FONTSET_INDEX.
6956 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
6957 attrs[LFACE_FONT_INDEX].
6958 (syms_of_xfaces): Intern and staticpro QCfontset.
6959
6960 * dispextern.h (enum lface_attribute_index): New member
6961 LFACE_FONTSET_INDEX.
6962
6963 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
6964
73acf815 69652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6966
6967 * coding.c (coding_set_destination): Fix coding->destination for
6968 the case converting a region.
6969 (encode_coding_utf_8): Encode eight-bit chars as single byte.
6970 (encode_coding_object): Fix coding->dst_pos and
6971 coding->dst_pos_byte for the case converting a region.
6972
6973 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
6974
6975 * character.h (BYTE8_STRING): New macro.
6976
6977 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
6978
73acf815 69792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6980
6981 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
6982 characters by octal form.
6983
6984 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
6985
1f45f627 6986 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
6987 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
6988 _fetch_multibyte_char_len.
aca7a3d2
MB
6989 (FETCH_CHAR_AS_MULTIBYTE): New macro.
6990
1f45f627 6991 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 6992
1f45f627 6993 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 6994 the case conversion change the byte length.
1f45f627 6995 (casify_region): Likewise.
aca7a3d2 6996
1f45f627 6997 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 6998
1f45f627 6999 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
7000 (syms_of_character): Setup Vprintable_chars.
7001
7002 * editfns.c (Fchar_equal): Fix for the unibyte case.
7003 (Finsert_byte): New function.
7004 (syms_of_editfns): Defsubr it.
7005
7006 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7007 of direct code 0x3ffff.
7008
7009 * search.c (Freplace_match): Fix for the unibyte case.
7010
73acf815 70112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7012
7013 * lread.c (safe_to_load_p): Fix the logic.
7014
7015 * syntax.c (scan_words): Don't treat characters belonging to
7016 different scripts as constituting a word.
7017
7018 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7019
1f45f627 7020 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
7021
7022 * emacs.c (main): In the case of --unibyte, instead of aborting on
7023 finding non-empty buffer, make it unibyte.
7024
73acf815 70252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7026
7027 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7028 to create a fontset.
7029
73acf815 70302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7031
7032 * character.c (Funibyte_char_to_multibyte): Doc fix.
7033
7034 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7035
73acf815 70362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7037
7038 * fontset.c (fontset_add): Make the type `int'.
7039 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7040
4c4475a8
GM
7041 * character.c (unibyte_char_to_multibyte)
7042 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 7043 charset_unibyte, not charset_primary.
aca7a3d2 7044
1f45f627 7045 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 7046
1f45f627
GM
7047 * charset.c (charset_unibyte): Rename from charset_primary.
7048 (Funibyte_charset): Rename from Fprimary_charset.
7049 (Fset_unibyte_charset): Rename from Fset_primary_charset.
7050 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
7051
7052 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7053 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7054 it->multibyte_p is zero.
7055
7056 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 7057 Delete extern.
aca7a3d2 7058
73acf815 70592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7060
7061 * coding.c (Fdefine_coding_system_internal): Fix category setting
7062 for a coding system of type iso-2022.
7063
73acf815 70642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7065
1f45f627 7066 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 7067
73acf815 70682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7069
7070 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
7071 (next-word-boundary-function-table): Declare it as a Lisp variable
7072 in syms_of_syntax.
aca7a3d2
MB
7073 (scan_words): Call functions in Vnext_word_boundary_function_table
7074 if any.
7075
7076 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
7077
7078 * fontset.c (fs_load_font): If fontp->charset is not negative,
7079 return fontp without setting its members.
7080
73acf815 70812008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7082
aca7a3d2
MB
7083 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
7084
7085 * m/sparc.h (HAVE_ALLOCA): Delete.
7086
7087 * s/irix6-5.h: Don't include strings.h.
7088 (bcopy, bzero, bcmp): Don't undef.
7089
7090 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
7091
7092 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
7093 (TIOCSIGSEND): Don't test IRIX6.
7094 (bcopy, bzero, bcmp): Define conditionally.
7095
73acf815 70962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7097
7098 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 7099 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
7100 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
7101
7102 * callproc.c (Fcall_process): Don't call insert_1_both directly if
7103 we are inserting a process output into a multibyte buffer.
7104
7105 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
7106 multibyte_char_to_unibyte.
7107
7108 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
7109 by the primary charset, make it eight-bit char.
7110 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
7111
1f45f627
GM
7112 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
7113 (charset_8_bit__control, charset_8_bit_graphic)
7114 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
7115 (define_charset_internal): New function.
7116 (syms_of_charset): Call define_charset_internal for pre-defined
7117 charsets.
7118
7119 * charset.h (charset_8_bit): Extern it.
7120
1f45f627 7121 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
7122 of Fset_buffer_multibyte.
7123 (encode_coding_raw_text): Increment p0 in the loop.
7124
1f45f627 7125 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 7126
1f45f627 7127 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
7128 for the change of Fset_buffer_multibyte.
7129
7130 * fns.c (Fstring_to_multibyte): New function.
7131 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
7132
73acf815 71332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7134
7135 * xfns.c (x_put_x_image): Declare args.
7136
1f45f627 7137 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
7138 (try_font_list): Declare an arg.
7139
7140 * xdisp.c (message2_nolog, set_message): Declare an arg.
7141
7142 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
7143
7144 * syntax.c (scan_sexps_forward): Declare an arg.
7145
7146 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7147 Declare an arg.
7148
7149 * lisp.h (Fnew_fontset): Declare.
7150
7151 * keymap.c (push_key_description): Call CHARACTERP correctly.
7152
1f45f627 7153 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
7154 (face_for_char): Delete unused vars.
7155 (Fset_fontset_font): Doc fix. Delete unused vars.
7156
7157 * doc.c (Fsubstitute_command_keys): Delete unused vars.
7158
7159 * composite.c (update_compositions): Declare arg.
7160
7161 * cm.c (calccost, cmgoto): Declare args.
7162
7163 * charset.c: Remove `emacs' conditional. Doc fixes.
7164 (map_char_table_for_charset): Declare.
7165
1f45f627 7166 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 7167
1f45f627 7168 * ccl.c: Remove `emacs' conditional.
aca7a3d2 7169
73acf815 71702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7171
7172 The following changes are to allow specifying multiple font
7173 patterns for a character range (specified by script or charset).
7174
7175 * Makefile.in (abbrev.o): Depend on syntax.h.
7176 (xfaces.o): Depend on charset.h.
7177
7178 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
7179 SINGLE_BYTE_CHAR_P.
7180
7181 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
7182
7183 * character.h (Vchar_script_table): Extern it.
7184
1f45f627 7185 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
7186 (Vchar_script_table, Qchar_script_table): New variable.
7187 (syms_of_character): Declare Vchar_script_table as a lisp variable
7188 and initialize it.
7189
1f45f627 7190 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
7191 have property char-table-extra-slots, make no extra slot.
7192
1f45f627 7193 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
7194 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
7195 SINGLE_BYTE_CHAR_P.
1f45f627
GM
7196 (choose_face_font, lookup_non_ascii_face, font_name_registry):
7197 Add prototypes.
7198 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
7199 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7200
7201 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 7202 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
7203 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
7204
7205 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 7206 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
7207 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
7208 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
7209 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
7210 (fontset_ref_and_range, fontset_add, reorder_font_vector)
7211 (load_font_get_repertory): New functions.
1f45f627 7212 (fontset_set): Delete.
aca7a3d2 7213 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 7214 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
7215 (free_face_fontset): Use ASET istead of AREF (X) = Y.
7216 (face_for_char): Don't call lookup_face.
7217 (make_fontset_for_ascii_face): New arg FACE.
7218 (fs_load_font): New arg CHARSET_ID. Don't check
7219 Vfont_encoding_alist here.
7220 (find_font_encoding): New function.
7221 (list_fontsets): Use STRINGP, not ! NILP.
7222 (accumulate_script_ranges): New function.
7223 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
7224 re-written to handle new fontset structure.
7225 (Ffontset_font): Return a copy of element.
7226 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
7227 docstring of font-encoding-alist.
7228
7229 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
7230 (Fset_fotset_font): Fix arguments to 5.
7231
1f45f627 7232 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
7233
7234 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
7235 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 7236 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
7237 lookup_named_face.
7238
7239 * xfaces.c: Include charset.h.
1f45f627
GM
7240 (load_face_font): Delete argument C. Change caller.
7241 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7242 (font_name_registry): New function.
7243 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 7244 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
7245 Lookup only ascii faces.
7246 (lookup_non_ascii_face): New function.
1f45f627
GM
7247 (lookup_named_face): Delete argument C. Change caller.
7248 (lookup_derived_face): Delete argument C. Change caller.
7249 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 7250 a string, just call font_list with it.
1f45f627
GM
7251 (choose_face_font): Delete arguments FACE and C. New arg
7252 FONT_SPEC. Change caller.
4c4475a8
GM
7253 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
7254 Change caller.
aca7a3d2
MB
7255 (realize_non_ascii_face): New function.
7256 (realize_x_face): Call load_face_font here.
1f45f627 7257 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
7258 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
7259 get a face ID.
7260 (dump_realized_face): Don't print charset of FACE.
7261
7262 * xfns.c (x_set_font): Always call x_new_fontset and
7263 store_frame_parameter.
7264 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 7265 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
7266
7267 * xterm.h (x_get_font_repertory): Extern it.
7268
7269 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7270 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7271 it->multibyte_p is zero.
7272 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7273 (x_new_fontset): If FONTSETNAME doesn't match any existing
7274 fontsets, create a new one.
7275 (x_get_font_repertory): New function.
7276
73acf815 72772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7278
7279 * coding.c (Ffind_coding_systems_region_internal): Detect an
7280 ASCII only string correctly.
7281
7282 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
7283 version is 0.
7284
73acf815 72852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7286
7287 * lread.c: Include "coding.h".
1f45f627
GM
7288 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
7289 (load_each_byte, unread_char): New variables.
7290 (readchar_backlog): Delete.
aca7a3d2
MB
7291 (readchar): Return a character unless load_each_byte is nonzero.
7292 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
7293 cons. If unread_char is not -1, simply return it.
7294 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
7295 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
7296 (read_multibyte): Delete.
aca7a3d2
MB
7297 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
7298 (read_emacs_mule_char): New functions.
7299 (Fload): Even if the file doesn't have the extention ".elc", if
7300 safe_to_load_p returns a positive version number, assume that the
7301 file contains bytecompiled code. If the version is less than 22,
7302 load the file while decoding multibyte sequences by emacs-mule.
7303 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
7304 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
7305 (Fread_from_string): Pay attention to the case that STREAM is a cons.
7306 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
7307 (read1): Set load_each_byte to 1 temporarily while handling
7308 #@NUMBER. Don't call read_multibyte.
7309 (read_vector): Call Fread with a cons. If readcharfun is
7310 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 7311 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
7312 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
7313 and Qload_force_doc_strings.
7314
73acf815 73152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7316
7317 * xdisp.c (face_before_or_after_it_pos): Call
7318 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
7319
73acf815 73202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7321
7322 * character.h (TRAILING_CODE_P): New macro.
1f45f627 7323 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
7324 (string_char_with_unification): Fix prototype.
7325 (Vscript_alist): Extern it.
7326
7327 * character.c (Vscript_alist): New variable.
4c4475a8
GM
7328 (string_char_with_unification, str_as_unibyte)
7329 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
7330 (syms_of_character): Declare script-alist as a Lisp variable.
7331
7332 * charset.h (Vcharset_ordered_list): Extern it.
7333 (charset_ordered_list_tick): Extern it.
7334 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
7335 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
7336 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
7337 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros
1f45f627 7338 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
7339
7340 * charset.c (charset_ordered_list_tick): New variable.
7341 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
7342 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
7343 deunify intead of unify a charset.
7344 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
7345 (find_charsets_in_text): Add `const' to arguemnts and local variables.
7346 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
7347 detecting of invalid code.
7348 (Fset_charset_priority): Increment charset_ordered_list_tick.
7349 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
7350 and TO_CODE.
7351
7352 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
7353 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
7354 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
7355 (decode_coding_ccl, consume_chars)
7356 (Ffind_coding_systems_region_internal)
7357 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
7358
7359 * print.c (print_object): Use octal form for printing the
7360 contents of a bool vector.
7361
73acf815 73622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7363
7364 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
7365 <version == 20>: Refuse to load.
7366
73acf815 73672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7368
7369 * fns.c: Move coding.h.
7370 (Qcodeset, Qdays, Qmonths): New.
7371 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 7372 (Flocale_codeset): Delete.
aca7a3d2 7373 (Flanginfo): New function.
1f45f627 7374 (syms_of_fns): Change accordingly.
aca7a3d2
MB
7375
7376 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
7377
73acf815 73782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7379
7380 * casetab.c (init_casetab_once, init_casetab_once): Fix
7381 CHAR_TABLE_SET call.
7382
7383 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
7384
7385 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
7386
7387 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
7388 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
7389 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
7390
7391 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
7392
7393 * coding.c (ENCODE_DESIGNATION, decode_eol)
7394 (make_conversion_work_buffer, code_conversion_restore)
7395 (Fdefine_coding_system_internal): Convert Lisp types.
7396 (code_conversion_restore): Use EQ, not ==.
7397 (Fencode_coding_string): Fix code_convert_string call.
7398
7399 * coding.h (code_convert_region): Fix prototype.
7400
1f45f627 7401 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
7402
7403 * fontset.c (fontset_ref, fontset_set, fs_load_font)
7404 (Ffontset_info): Convert Lisp types.
7405
7406 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
7407
7408 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
7409
7410 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
7411
7412 * chartab.c: Include "...h", not <...h> in some cases.
7413
7414 * callproc.c (Fcall_process): Remove unused variables.
7415
73acf815 74162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7417
7418 * coding.c (Fset_coding_system_priority): Allow null arg list.
7419
73acf815 74202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7421
7422 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7423 (Fself_insert_and_exit): Use CHARACTERP.
7424
7425 * callproc.c (Fcall_process): Remove unused vars.
7426
7427 * xterm.c (XTread_socket): Add extra dead keysyms.
7428
7429 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
7430
7431 * dispextern.h: Remove prototypes for redraw_frame,
7432 redraw_garbaged_frames.
7433
7434 * cmds.c (Fself_insert_command): Use CHARACTERP.
7435
7436 * chartab.c (make_sub_char_table): Remove unused var.
7437 (Fset_char_table_default, Fmap_char_table): Doc fix.
7438
7439 * keymap.c (access_keymap): Remove generic char code.
7440 (push_key_description): Use CHARACTERP.
7441
73acf815 74422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7443
7444 * charset.c: Doc fixes.
7445 (Funify_charset): Extra checking.
7446
73acf815 74472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7448
7449 * lread.c: Remove some unused variables.
7450 (safe_to_load_p): If safe, return the magic number version byte.
7451 (Fload): Maybe use load-with-code-conversion.
7452
73acf815 74532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7454
7455 * category.c (Fmodify_category_entry): Don't modify the contents
7456 of category_set for characters out of the range. Avoid
7457 unnecessary modification.
7458
1f45f627 7459 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
7460 Vchar_unify_table. The default value of the table is now nil.
7461
7462 * character.c (syms_of_character): Setup Vchar_width_table for
7463 eight-bit-control and raw-byte chars.
7464
7465 * charset.h (enum define_charset_arg_index): Delete
7466 charset_arg_parents and add charset_arg_subset and
7467 charset_arg_superset.
7468 (enum charset_attr_index): Delete charset_parents and add
7469 charset_subset and charset_superset.
7470 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
7471 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 7472 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
7473 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
7474 (CHARSET_SUPERSET): New macros.
7475 (charset_work): Extern it.
7476 (ENCODE_CHAR): Use charset_work.
1f45f627 7477 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
7478 (map_charset_chars): Extern it.
7479
7480 * charset.c (load_charset_map): Set the default value of encoder
7481 and deunifier char-tables to nil.
1f45f627 7482 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
7483 map_char_table_for_charset instead of map_char_table.
7484 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 7485 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
7486 `define-charset' (:parents -> :subset or :superset).
7487 (charset_work): New variable.
4c4475a8
GM
7488 (encode_char, syms_of_charset): Adjust for the change of
7489 Fdefine_charset_internal.
aca7a3d2
MB
7490 (Ffind_charset_string): Setup the vector `charsets' correctly.
7491
1f45f627 7492 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 7493 the previous change.
1f45f627 7494 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
7495 (map_sub_char_table_for_charset): New function.
7496 (map_char_table_for_charset): New function.
7497
7498 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 7499 (describe_char_table): Delete.
aca7a3d2 7500
1f45f627 7501 * lisp.h (map_charset_chars): Delete.
aca7a3d2 7502
73acf815 75032008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7504
7505 * fns.c (count_combining): Comment out (unused).
7506 (Flocale_codeset): New.
7507 (syms_of_fns): Defsubr it.
7508
7509 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 7510 (size_t): Remove.
aca7a3d2 7511
73acf815 75122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7513
6f69e89b 7514 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 7515
73acf815 75162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7517
7518 * character.c (syms_of_character): Set the default value of
7519 Vprintable_chars to Qnil.
7520
73acf815 75212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7522
7523 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
7524
73acf815 75252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7526
7527 * charset.c (load_charset_map): Handle the case that from < to
7528 correctly.
7529
4c4475a8
GM
7530 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
7531 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
7532 Pay attention to raw-8-bit chars.
aca7a3d2 7533
73acf815 75342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7535
4c4475a8
GM
7536 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
7537 It is not bytecompiled now.
aca7a3d2
MB
7538
7539 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
7540 (charset_jisx0208): New variables.
7541 (Fdefine_charset_internal): Setup them if appropriate.
7542 (init_charset_once): Initialize them to -1.
7543
1f45f627
GM
7544 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
7545 (charset_jisx0208): Extern them.
aca7a3d2
MB
7546
7547 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro
7548 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
7549 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
7550 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
7551 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
7552 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
7553 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
7554 (encode_coding_iso_2022): Change the 1st arg to
7555 ENCODE_ISO_CHARACTER to a variable.
7556
73acf815 75572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7558
7559 * charset.h (enum define_charset_arg_index): New enums
7560 charset_arg_min_code and charset_arg_max_code.
7561 (struct charset): New member char_index_offset.
7562
4c4475a8
GM
7563 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
7564 Take charset->char_index_offset into account.
aca7a3d2
MB
7565 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
7566 args[charset_arg_max_code]. Setup charset.char_index_offset.
7567 (syms_of_charset): Fix args to Fdefine_charset_internal.
7568
73acf815 75692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7570
7571 * coding.c (decode_coding_utf_8): Reject overlong sequences.
7572
73acf815 75732008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7574
7575 * coding.c: Doc fixes.
7576 (Fcoding_system_aliases): Fix return value.
7577 (Qmac): Remove (duplicated) definition.
7578
73acf815 75792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7580
7581 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
7582 functions.
7583
7584 * character.c (Fstring): Doc fix.
7585
7586 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
7587
7588 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
7589 ids.
7590 (font-encoding-alist): Doc fix.
7591
73acf815 75922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7593
7594 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 7595 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
7596
7597 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
7598 for K&R.
7599
7600 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
7601
7602 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 7603 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 7604
1f45f627 7605 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
7606
7607 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
7608
73acf815 76092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7610
7611 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
7612
1f45f627 7613 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 7614
2a2e8de7 76152008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
7616
7617 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
7618
1f45f627 7619 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 7620
73acf815 76212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7622
4c4475a8 7623 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 7624 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 7625
73acf815 76262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7627
1f45f627 7628 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
7629 Fdefine_coding_system_internal.
7630 (Fdefine_coding_system_internal): For a coding system of
7631 `charset' type, store a list of charset IDs in
7632 `charset_attr_charset_valids' element of coding attributes.
7633
73acf815 76342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7635
7636 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
7637 (emacs_mule_char): New arg src. Delete arg `composition'. Change
7638 caller. Handle 2-byte and 3-byte charsets correctly.
7639 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
7640 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
7641 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
7642 (DECODE_EMACS_MULE_21_COMPOSITION): Call
7643 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
7644 sequence.
7645 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 7646 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
7647 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
7648 and alt&rule composition.
7649 (decode_coding_iso_2022): Handle composition correctly.
7650 (init_coding_once): Setup emacs_mule_bytes for private charsets.
7651
7652 * charset.c (Fdefine_charset_internal): Fix bug for the case of
7653 re-defining a charset. If the charset has :emacs-mule-id, setup
7654 emacs_mule_bytes.
1f45f627 7655 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 7656
73acf815 76572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7658
4c4475a8
GM
7659 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
7660 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
7661 encoding, produce a character specified by
7662 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 7663
73acf815 76642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7665
7666 * xterm.c (XSetIMValues): Declare.
7667
7668 * process.c: Conditionally include sys/wait.h, pty.h.
7669
1f45f627 7670 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 7671
1f45f627 7672 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
7673
7674 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
7675
7676 * fontset.c (Fclear_face_cache): Declare.
1f45f627 7677 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
7678 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
7679 variables.
7680
7681 * character.h (string_escape_byte8): Declare.
7682
7683 * charset.c (load_charset_map, load_charset_map_from_file): Remove
7684 unused vars.
7685 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
7686 (Fmap_charset_chars): Doc fix.
7687
1f45f627 7688 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
7689 (Fset_coding_system_priority, Fset_coding_system_priority)
7690 (Fdefine_coding_system_internal): Doc fix.
7691
73acf815 76922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7693
7694 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
7695
73acf815 76962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7697
7698 * character.c (string_escape_byte8): Make multibyte string with
7699 correct size.
7700
7701 * charset.c (Fmake_char): Delete unnecessary code.
7702
73acf815 77032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7704
7705 * xfns.c (x_encode_text): Allocate coding.destination here, and
7706 call encode_coding_object with dst_object Qnil.
7707
7708 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
7709 multibyte form correctly.
7710
7711 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
7712 against Vfont_encoding_alist.
7713
7714 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
7715 handling of charset list.
7716 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
7717 (decode_coding_object): Move point to coding->dst_pos before
7718 calling post-read-conversion function.
7719 (encode_coding_object): Give correct arguments to
7720 pre-write-conversion. Ignore the return value of
7721 pre-write-conversion function. Pay attention to the case that
7722 pre-write-conversion changes the current buffer. If dst_object is
7723 Qt, even if coding->src_bytes is zero, allocate at least one byte
7724 to coding->destination.
7725
7726 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
7727
7728 * charset.c (Fmake_char): Make it more backward compatible.
7729 (Fmap_charset_chars): Fix docstring.
7730
73acf815 77312008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7732
7733 * coding.c: Doc fixes.
7734 (Fdefine_coding_system_alias): Use names, not symbols, in
7735 coding-system-alist.
7736
73acf815 77372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7738
7739 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
7740 of calling free_realized_face.
7741
2a2e8de7 77422008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 7743
1f45f627
GM
7744 * charset.c (read_hex): Don't treat SPC as a comment starter.
7745 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
7746 (Fdecode_char): Fix typo.
7747
73acf815 77482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7749
7750 * charset.h (struct charset): New member `code_space_mask'.
7751
1f45f627 7752 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
7753 (encode_coding_charset, Fdefine_coding_system_internal):
7754 Delete the local variable charset.
aca7a3d2
MB
7755 (Fdefine_coding_system_internal): Setup
7756 attrs[coding_attr_charset_valids] correctly.
7757
7758 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
7759 member to check if CODE is valid or not.
7760 (Fdefine_charset_internal): Initialize `code_space_mask' member.
7761 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
7762 is within the range of charset->min_code and carset->max_code.
7763
73acf815 77642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7765
7766 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
7767
7768 * dispextern.h (generate_ascii_font): Fix return type.
7769
7770 * xfaces.c (generate_ascii_font): Fix arg declaration.
7771
7772 * coding.c (coding_inherit_eol_type)
7773 (Fset_terminal_coding_system_internal)
7774 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
7775
73acf815 77762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7777
7778 * coding.c (decode_coding_charset, encode_coding_charset): Handle
7779 multiple charsets correctly.
7780
73acf815 77812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7782
7783 * search.c (boyer_moore): Fix handling of mulitbyte character
7784 translation.
7785
7786 * xdisp.c (display_mode_element): When the variable `elt' is
7787 changed, update `this' and `lisp_string'.
7788
73acf815 77892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7790
7791 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
7792
7793 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 7794 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
7795
7796 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
7797 (load_charset_map): Rename from parse_charset_map. New args
7798 entries and n_entries. Change caller.
7799 (load_charset_map_from_file): Rename from load_charset_map.
7800 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
7801 the tail.
7802 (load_charset_map_from_vector): New function.
7803 (Fdefine_charset_internal): Setup charset.compact_codes_p.
7804 (encode_char): If the charset is compact, change a character index
7805 to a code point.
7806
7807 * coding.c (coding_alloc_by_making_gap): Check the case that the
7808 source and destination are the same correctly.
7809 (decode_coding_raw_text): Set coding->consumed_char and
7810 coding->consumed to 0.
7811 (produce_chars): If coding->chars_at_source is nonzero, update
7812 coding->consumed_char and coding->consumed before calling
7813 alloc_destination.
7814 (Fdefine_coding_system_alias): Register ALIAS in
7815 Vcoding_system_alist.
7816 (syms_of_coding): Define `no-convesion' coding system at the tail.
7817
7818 * fileio.c (Finsert_file_contents): Set coding_system instead of
7819 val. If the current buffer is multibyte, always call
7820 decode_coding_gap.
7821
7822 * xfaces.c (try_font_list): Give higher priority to fontset's
7823 family than face's family.
7824
73acf815 78252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7826
7827 * callproc.c (Fcall_process): Be sure to give the current buffer
7828 to decode_coding_c_string.
7829
7830 * xfaces.c (try_font_list): Give a family specified in a fontset
7831 higher priority than a family specified in a face.
7832
73acf815 78332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7834
7835 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
7836 Fix arguments to insert_from_buffer.
7837
7838 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
7839
73acf815 78402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7841
7842 * coding.c (produce_chars): Set the variable `multibytep' correctly.
7843 (decode_coding_gap): Set coding->dst_multibyte correctly.
7844
73acf815 78452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7846
7847 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 7848 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
7849 (encode_coding_utf_16): Substitute coding->default_char for
7850 non-Unicode characters.
7851 (decode_coding): Don't call record_insert here.
7852 (setup_coding_system): Initialize `surrogate' of
7853 coding->spec.utf_16 to 0.
7854 (EMIT_ONE_BYTE): Fix for multibyte case.
7855
7856 * insdel.c (insert_from_gap): Call record_insert.
7857
73acf815 78582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7859
7860 * casefiddle.c (casify_region): Fix multibyte case.
7861
7862 * character.c (c_string_width): Add return type `int'.
1f45f627 7863 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
7864
7865 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 7866 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
7867 (CHAR_STRING_ADVANCE): Make it do-while statement.
7868
1f45f627 7869 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
7870 DEPTH == 3. Add workaround code for a GCC optimization bug.
7871
7872 * charset.c (parse_charset_map): Remove an unused variable.
7873
7874 * coding.c: Delete unused variables.
7875
7876 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
7877 earlier. If inserted is zero and the coding system doesn't
7878 require flushing, don't call decode_coding_gap.
7879
7880 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
7881
73acf815 78822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7883
7884 The following changes are for using Unicode as an internal
7885 character model, and use UTF-8 format for buffer/string
7886 representation.
7887
1f45f627 7888 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
7889 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
7890
7891 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 7892 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
7893 (*.o): For many files, change dependency on charset.h to
7894 character.h, and add dependency on character.h.
7895 (character.o, chartab.o): New targets.
7896
1f45f627
GM
7897 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
7898 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
7899 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
7900 of "charset.h".
7901
7902 * dired.c, filelock.c: Include "character.h".
7903
7904 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 7905 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
7906 (syms_of_alloc): Remove defsubr for Smake_char_table.
7907
7908 * buffer.c: Include "character.h" instead of "charset.h", don't
7909 include "coding.h".
1f45f627 7910 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
7911
7912 * buffer.h: EXFUN Fbuffer_live_p.
7913
7914 * callproc.c: Include "character.h" instead of "charset.h".
7915 (Fcall_process): Big change for the new code-conversion APIs.
7916
7917 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 7918 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
7919 map_char_table spec.
7920 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
7921 accessing the char table structure.
7922
7923 * chartab.c: New file that implements char table.
7924
7925 * category.c: Include "character.h".
7926 (copy_category_entry): New function.
7927 (copy_category_table): Call map_char_table and copy_category_entry.
7928 (Fmake_category_table): Initialize all top-vel slots.
7929 (char_category_set): New function.
1f45f627 7930 (modify_lower_category_set): Delete.
aca7a3d2
MB
7931 (Fmodify_category_entry): Call char_table_ref_and_range.
7932
7933 * category.h (CATEGORY_SET): Just call char_category_set.
7934
7935 * ccl.c: Include "character.h".
7936 (Qccl, Qcclp): New variables.
7937 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
7938 it's less than 256.
1f45f627
GM
7939 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
7940 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 7941 and DST type.
1f45f627
GM
7942 (ccl_driver): Change types of argument, adjust code accordingly.
7943 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
7944 ccl_driver.
7945 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
7946
1f45f627
GM
7947 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
7948 New members src_multibyte, dst_multibyte, consumed, and produced.
7949 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 7950 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 7951 (ccl_driver): Update prototype.
aca7a3d2
MB
7952 (Qccl, Qcclp, Fccl_program_p): Extern them.
7953 (CHECK_CCL_PROGRAM): New macro.
7954
7955 * character.c, character.h, chartab.c: New files.
7956
1f45f627
GM
7957 * charset.c: Mostly re-written. Move character and multibyte sequence
7958 handling codes to character.c.
aca7a3d2 7959
1f45f627
GM
7960 * charset.h: Mostly re-written. Move character and multibyte sequence
7961 handling codes to character.h.
aca7a3d2
MB
7962
7963 * coding.c, coding.h: Mostly re-written.
7964
7965 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
7966 (CHAR_WIDTH): Move to character.h.
7967 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 7968
1f45f627
GM
7969 * composite.h (enum composition_method): Change order of enumeration
7970 symbols.
aca7a3d2
MB
7971
7972 * data.c: Include "character.h" instead of "charset.h".
7973 (Faref): Call CHAR_TABLE_REF for a char table.
7974 (Faset): Call CHAR_TABLE_SET for a char table.
7975
1f45f627
GM
7976 * dispextern.h (free_realized_face, check_face_attribytes)
7977 (generate_ascii_font): Extern them.
7978 (free_realized_multibyte_face): Delete extern.
aca7a3d2 7979
1f45f627 7980 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
7981 table structure.
7982
7983 * editfns.c: Include "character.h" instead of "charset.h".
7984 (Fchar_to_string): Always call CHAR_STRING.
7985
7986 * emacs.c (main): Call init_charset_once, init_charset,
7987 syms_of_chartab, and syms_of_character.
7988
7989 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 7990 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 7991 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 7992 (build_annotations_2): Delete.
aca7a3d2
MB
7993 (e_write): Big change for the new code-conversion API.
7994
7995 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 7996 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
7997 (Fcopy_sequence): Call copy_char_table for a char table.
7998 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
7999 (string_char_to_byte, string_byte_to_char): Adjust for the new
8000 multibyte form.
1f45f627
GM
8001 (internal_equal): Adjust for the change of char table structure.
8002 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8003 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8004 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8005 (char_table_translate, optimize_sub_char_table)
8006 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 8007 chartab.c.
1f45f627
GM
8008 (char_table_ref_and_index): Delete.
8009 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 8010 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
8011 Vcoding_category_list. Adjust for the new code-conversion API.
8012 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
8013 chartab.c.
8014
8015 * fontset.c: Mostly re-written.
8016
1f45f627 8017 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 8018 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
8019 (fontset_font_pattern, fs_load_font): Update prototype.
8020 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
8021
8022 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 8023 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
8024
8025 * insdel.c: Include "character.h" instead of "charset.h".
8026 (copy_text): Don't refer to Vnonascii_translation_table.
8027 (insert_from_gap): New function.
8028
8029 * keyboard.c: Include "character.h" instead of "charset.h".
8030 (command_loop_1): Never call direct_output_forward_char before
8031 a non-ASCII character.
8032 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 8033 translate a character.
aca7a3d2
MB
8034
8035 * keymap.c: Include "character.h".
8036 (store_in_keymap): Handle the case that IDX is a cons.
8037 (Fdefine_key): Handle the case that KEY is a cons and the car part
8038 is also a cons (range).
1f45f627 8039 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
8040 (describe_vector): Call describe_char_table for a char table.
8041 (describe_char_table): New function.
8042
8043 * keymap.h (describe_char_table): Extern it.
8044
8045 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
8046 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
8047 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
8048 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
8049 Delete.
8050 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
8051 structure.
8052 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
8053 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
8054 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 8055 (chartab_size): Extern it.
1f45f627 8056 (struct Lisp_Char_Table): Re-design.
aca7a3d2 8057 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
8058 (HASH_KEY, HASH_VALUE): Move from fns.c.
8059 (CHARACTERBITS): Define as 22.
8060 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
8061 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
8062 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
8063 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
8064 (code_convert_string_norecord): Deleted extern.
8065 (init_character_once, syms_of_character, init_charset)
8066 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
8067
8068 * lread.c: Include "character.h".
8069 (read_multibyte): New arg NBYTES.
1f45f627
GM
8070 (read_escape): Change the meaning of returned *BYTEREP.
8071 (to_multibyte): Delete.
8072 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
8073
8074 * print.c: Include "character.h" instead of "charset.h".
8075 (print_string): Convert 8-bit raw bytes to octal form by
8076 string_escape_byte8.
1f45f627 8077 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
8078 raw bytes always in octal form. Handle sub char table correctly.
8079
8080 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
8081 (read_process_output, send_process): Adjust for the new
8082 code-conversion API.
aca7a3d2 8083
1f45f627 8084 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
8085
8086 * regex.c: Include "character.h" instead of "charset.h".
8087 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
8088 (regex_compile): Accept a range whose starting and ending
8089 character have different leading bytes.
1f45f627 8090 (analyse_first): Adjust for the above change.
aca7a3d2
MB
8091
8092 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8093 (search_buffer, boyer_moore): Adjust for the new multibyte form.
8094 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
8095
8096 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 8097 (syntax_parent_lookup): Delete.
aca7a3d2 8098 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 8099 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
8100 (init_syntax_once): Call char_table_set_range instead of directly
8101 accessing the structure of a char table.
8102
8103 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 8104 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
8105 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
8106 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
8107
8108 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
8109 (encode_terminal_code, write_glyphs): Adjust for the new
8110 code-conversion API.
aca7a3d2
MB
8111 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
8112
1f45f627 8113 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
8114
8115 * xdisp.c: Include "character.h".
1f45f627
GM
8116 (get_next_display_element): Adjust for the new multibyte form.
8117 (disp_char_vector): Adjust for the new char table structure.
8118 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 8119 coding system.
1f45f627 8120 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
8121
8122 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 8123 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
8124 FS_LOAD_FONT.
8125 (generate_ascii_font): New function.
1f45f627
GM
8126 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
8127 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 8128 (free_realized_face): Make it public.
1f45f627 8129 (free_realized_faces_for_fontset): Rename from
aca7a3d2 8130 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 8131 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
8132 fontset_font_pattern and FS_LOAD_FONT.
8133
8134 * xfns.c: Include "character.h".
1f45f627 8135 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
8136
8137 * xselect.c: Don't include "charset.h".
1f45f627 8138 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
8139
8140 * xterm.c: Include "character.h".
1f45f627 8141 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
8142 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
8143 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
8144 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
8145 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
8146 (XTread_socket): Adjust for the new code-conversion API.
8147 (x_new_font): Adjust for the change of FS_LOAD_FONT.
8148 (x_load_font): Adjust for the change of struct font.
aca7a3d2 8149
d6abfc14
SM
81502008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8151
8152 * xfaces.c (face_at_buffer_position): Remove unused vars.
8153
0acdaf8d
KH
81542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8155
4c4475a8
GM
8156 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
8157 Fix overflow checking.
0acdaf8d 8158
6c8a0ebf
GM
81592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8160
8161 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
8162 Cancel previous change.
8163
81642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8165
8166 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
8167 ccl->eight_bit_control. Fix check for buffer overflow.
8168 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
8169 (ccl_driver): Initialize extra_bytes to 0.
8170
a32aad64
KH
81712008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8172
8173 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
8174 return it ORed with ctrl_modifier.
8175
8b329dba
MB
81762008-01-29 Miles Bader <miles@gnu.org>
8177
8178 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
8179
548667aa
JR
81802008-01-28 Jason Rumney <jasonr@gnu.org>
8181
8182 * w32.c (stat): Don't double check for networked drive.
8183
0975aa24
SM
81842008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8185
ef264c42
SM
8186 * window.c (run_window_configuration_change_hook): New function.
8187 Code extracted from set_window_buffer. Set the selected frame.
8188 (set_window_buffer): Use it.
8189 * window.h (run_window_configuration_change_hook): Declare.
8190 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
8191
0975aa24
SM
8192 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
8193
9c28b587
DN
81942008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
8195
8196 * Makefile.in: Remove references to unused macros.
8197
c617afce
EZ
81982008-01-26 Eli Zaretskii <eliz@gnu.org>
8199
8200 * w32.c (g_b_init_get_sid_sub_authority)
8201 (g_b_init_get_sid_sub_authority_count): New static variables.
8202 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
8203 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
8204 (init_user_info): Use them to retrieve uid and gid.
8205 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
8206 (fstat): Use pw_uid and pw_gid from the_passwd structure for
8207 st_uid and st_gid of the file.
c617afce 8208
302d7d54
JR
82092008-01-26 Jason Rumney <jasonr@gnu.org>
8210
8211 * w32.c (logon_network_drive): New function.
8212 (stat): Use it.
8213
3ac7a21e
CY
82142008-01-26 Chong Yidong <cyd@stupidchicken.com>
8215
8216 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
8217 invisible text covered with an ellipsis.
8218
bbb9fc1f
RS
82192008-01-25 Richard Stallman <rms@gnu.org>
8220
8221 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
8222 jump back to beginning. Move some other initializations after that.
8223 (Qwindow_text_change_functions, Vwindow_text_change_functions):
8224 New variables.
8225 (syms_of_xdisp): Init them.
8226
8227 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
8228
0975aa24
SM
8229 * buffer.c (reset_buffer_local_variables):
8230 Implement `permanent-local-hook'.
bbb9fc1f 8231 (Qpermanent_local_hook): New variable.
0975aa24 8232 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 8233
79235cbe
MA
82342008-01-25 Michael Albinus <michael.albinus@gmx.de>
8235
8236 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
8237
ccd8f7fe
TTN
82382008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
8239
8240 * fns.c (Fclrhash): Return TABLE.
8241
dfbe40f2 82422008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
8243
8244 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
8245 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
8246 is set even without positional changes.
8247 (x_scroll_bar_clear): Set bar->redraw_needed_p.
8248
8249 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
8250
dfbe40f2 82512008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 8252
d6169680
JR
8253 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
8254
602e142f
JR
8255 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
8256 the unicode range available in MULE by locale-coding-system.
c041e2d1 8257 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
8258 earlier.
8259
dfbe40f2 82602008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
8261
8262 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
8263 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 8264 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
8265 when used on child processes.
8266
8c7a4ac5
MA
82672008-01-21 Michael Albinus <michael.albinus@gmx.de>
8268
e0df1b73 8269 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 8270 Fdbus_method_return.
e0df1b73 8271 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 8272 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 8273 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 8274
8abe0f97
MR
82752008-01-20 Martin Rudalics <rudalics@gmx.at>
8276
8277 * undo.c (undo_inhibit_record_point): New variable.
8278 (syms_of_undo): Initialize it.
8279 (record_point): Don't record point when undo_inhibit_record_point
8280 is set.
8281
c3b232e4
SM
82822008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
8283
e69c4cae
SM
8284 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
8285
823e0ebb
SM
8286 * xdisp.c (Qauto_hscroll_mode): New var.
8287 (syms_of_xdisp): Initialize it.
8288 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
8289 window's buffer.
8290 (hscroll_windows): Don't check automatic_hscrolling_p here.
8291
c3b232e4
SM
8292 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
8293 vscroll if we're setting window-buffer to the value it already has.
8294
76ed5e01
DN
82952008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
8296
8297 * m/intel386.h: Remove references to XENIX.
8298
55e6d9b2
AS
82992008-01-17 Andreas Schwab <schwab@suse.de>
8300
8301 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
8302 instead of HAVE_X86_64_LIB64_DIR.
8303 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
8304
b16ed52d
GM
83052008-01-17 Glenn Morris <rgm@gnu.org>
8306
8307 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
8308 to HAVE_X86_64_LIB64_DIR.
8309
6bed5c4a
DN
83102008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
8311
8312 * s/irix3-3.h:
8313 * s/irix4-0.h:
8314 * s/386-ix.h:
8315 * s/domain.h:
8316 * s/hpux9-x11r4.h:
8317 * s/hpux9shxr4.h: Remove files for systems no longer supported.
8318
8319 * sysdep.c: Remove code containing references to symbols defined
8320 by unsupported systems.
8321
fdecf907
GM
83222008-01-16 Glenn Morris <rgm@gnu.org>
8323
8324 * coding.c (select-safe-coding-system-function): Doc fix.
8325
9292328f
GM
83262008-01-15 Glenn Morris <rgm@gnu.org>
8327
8328 * config.in: Revert 2008-01-13 change: this is a generated file.
8329
944df511
MO
83302008-01-13 Tom Tromey <tromey@redhat.com>
8331
8332 * lisp.h: Fix typo.
8333
8111ec05
DN
83342008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8335
f40f5dc3
DN
8336 * m/sequent-ptx.h:
8337 * m/sequent.h:
8338 * s/ptx.h:
8339 * s/ptx4-2.h:
8340 * s/ptx4.h: Remove files for systems no longer supported.
8341
ce20b664 8342 * callproc.c (Fcall_process): Fix previous change.
8111ec05 8343
e39a993c
DN
83442008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8345
052e457f 8346 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 8347
290afd83
JB
8348 * m/mips.h:
8349 * m/intel386.h:
e39a993c
DN
8350 * callproc.c:
8351 * config.in:
8352 * ecrt0.c:
8353 * emacs.c:
8354 * fileio.c:
8355 * frame.c:
8356 * getpagesize.h:
8357 * keyboard.c:
8358 * lread.c:
8359 * process.c:
8360 * puresize.h:
8361 * sysdep.c:
8362 * systty.h:
8363 * syswait.h:
8364 * unexec.c:
8365 * xdisp.c:
8366 * alloc.c: Remove code containing references to symbols defined by
8367 unsupported systems.
8368
81cd7687
KH
83692008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
8370
8371 * coding.c (detect_coding_mask): Fix previous change.
8372
218b3b76
KH
83732008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
8374
8375 * coding.c (detect_coding_iso2022): New arg
8376 latin_extra_code_state. Allow Latin extra codes only
8377 when *latin_extra_code_state is nonzero.
8378 (detect_coding_mask): If there is a NULL byte, detect the encoding
8379 as UTF-16 or binary. If Latin extra codes exist, detect the
8380 encoding as ISO-2022 only when there's no other proper encoding is
8381 found.
8382
59ce725a 83832008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 8384
59ce725a
MB
8385 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
8386 #ifdef MAC_OS.
048addec 8387
59ce725a 83882008-01-08 Richard Stallman <rms@gnu.org>
048addec 8389
59ce725a 8390 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 8391
8290574e
NR
83922008-01-06 Nick Roberts <nickrob@snap.net.nz>
8393
a0a3805c 8394 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
8395 menu bar in parentheses.
8396
f3041af1
DN
83972008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
8398
8399 * m/7300.h:
8400 * m/acorn.h:
8401 * m/alliant-2800.h:
8402 * m/alliant.h:
8403 * m/alliant1.h:
8404 * m/alliant4.h:
8405 * m/altos.h:
8406 * m/amdahl.h:
8407 * m/apollo.h:
8408 * m/att3b.h:
8409 * m/aviion-intel.h:
8410 * m/aviion.h:
8411 * m/celerity.h:
8412 * m/clipper.h:
8413 * m/cnvrgnt.h:
8414 * m/convex.h:
8415 * m/cydra5.h:
8416 * m/delta88k.h:
8417 * m/dpx2.h:
8418 * m/dual.h:
8419 * m/elxsi.h:
8420 * m/f301.h:
8421 * m/gould-np1.h:
8422 * m/gould.h:
8423 * m/i860.h:
8424 * m/ibmps2-aix.h:
8425 * m/ibmrt-aix.h:
8426 * m/ibmrt.h:
8427 * m/irist.h:
8428 * m/is386.h:
8429 * m/isi-ov.h:
8430 * m/mega68.h:
8431 * m/mg1.h:
8432 * m/news-r6.h:
8433 * m/news-risc.h:
8434 * m/news.h:
8435 * m/nh3000.h:
8436 * m/nh4000.h:
8437 * m/ns16000.h:
8438 * m/ns32000.h:
8439 * m/nu.h:
8440 * m/orion.h:
8441 * m/orion105.h:
8442 * m/paragon.h:
8443 * m/pfa50.h:
8444 * m/plexus.h:
8445 * m/pyramid.h:
8446 * m/pyrmips.h:
8447 * m/sh3el.h:
8448 * m/sps7.h:
8449 * m/sr2k.h:
8450 * m/stride.h:
8451 * m/sun1.h:
8452 * m/sun2.h:
8453 * m/sun3-68881.h:
8454 * m/sun3-fpa.h:
8455 * m/sun3-soft.h:
8456 * m/sun3.h:
8457 * m/sun386.h:
8458 * m/symmetry.h:
8459 * m/tad68k.h:
8460 * m/tahoe.h:
8461 * m/targon31.h:
8462 * m/tek4300.h:
8463 * m/tekxd88.h:
8464 * m/tower32.h:
8465 * m/tower32v3.h:
8466 * m/ustation.h:
8467 * m/wicat.h:
8468 * m/xps100.h:
8469 * s/cxux.h:
8470 * s/cxux7.h:
8471 * s/dgux.h:
8472 * s/dgux4.h:
8473 * s/dgux5-4-3.h:
8474 * s/dgux5-4r2.h:
8475 * s/esix.h:
8476 * s/esix5r4.h:
8477 * s/hiuxmpp.h:
8478 * s/hiuxwe2.h:
8479 * s/iris3-5.h:
8480 * s/iris3-6.h:
8481 * s/isc2-2.h:
8482 * s/isc3-0.h:
8483 * s/isc4-0.h:
8484 * s/isc4-1.h:
8485 * s/newsos5.h:
8486 * s/newsos6.h:
8487 * s/osf1.h:
8488 * s/osf5-0.h:
8489 * s/riscix1-1.h:
8490 * s/riscix12.h:
8491 * s/sco4.h:
8492 * s/sco5.h:
8493 * s/sunos4-0.h:
8494 * s/sunos4-1.h:
8495 * s/sunos413.h:
8496 * s/sunos4shr.h:
8497 * s/umax.h:
8498 * s/unipl5-2.h:
8499 * s/xenix.h:
8500 * cxux-crt0.s:
8501 * unexapollo.c:
8502 * unexconvex.c:
8503 * unexenix.c:
8504 * unexsni.c: Remove files for systems no longer supported.
8505
8506 * m/intel386.h: Remove references to unsupported systems.
8507
8508 * w32.c (get_emacs_configuration): Remove reference to i860.
8509
8510 * sysdep.c: Remove dead code.
8511
d35e1cd7
DN
85122008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
8513
8514 * s/rtu.h:
a0a3805c 8515 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 8516
abe136ee
MA
85172008-01-04 Michael Albinus <michael.albinus@gmx.de>
8518
8519 * dbusbind.c (Fdbus_method_return): New function.
8520 (xd_read_message): Add the serial number to the event.
8521 (Fdbus_register_method): Activate the function.
8522
87df3c32
SM
85232008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
8524
8525 * keyboard.c (read_key_sequence): Fix typo.
8526
5125905e
MA
85272008-01-03 Michael Albinus <michael.albinus@gmx.de>
8528
8529 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
8530 (xd_signature, xd_append_arg): Handle element type detection for
8531 empty arrays.
8532 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
8533 SDATA () calls; this must be solved more general.
8534 (Fdbus_register_signal): Use SBYTES instead of strlen.
8535
8bba1b5c
MH
85362008-01-03 Magnus Henoch <magnus@zemdatav>
8537
8538 * dbusbind.c (xd_append_arg): Use unsigned char instead of
8539 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 8540 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 8541
a0a3805c 85422007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
8543
8544 * dbusbind.c (xd_read_message): Use non-static input_event struct.
8545
a271e124
MH
85462007-12-31 Magnus Henoch <mange@freemail.hu>
8547
8548 * dbusbind.c (xd_signature): Signature of variant is just "v".
8549
17bc8f94
MA
85502007-12-30 Michael Albinus <michael.albinus@gmx.de>
8551
87df3c32
SM
8552 * dbusbind.c: Fix several errors and compiler warnings.
8553 Reported by Tom Tromey <tromey@redhat.com>
17bc8f94
MA
8554 (XD_ERROR, XD_DEBUG_MESSAGE)
8555 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
8556 (xd_append_arg): Part for basic D-Bus types rewitten.
8557 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
8558 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
8559 appropriate.
8560 (xd_read_message): Return Qnil. Don't signal an error; it is not
8561 useful during event reading.
8562 (Fdbus_register_signal): Signal an error if the check for
8563 FUNCTIONP fails.
8564 (Fdbus_register_method): New function. The implementation is not
8565 complete, the call of the function signals an error therefore.
8566 (Fdbus_unregister_object): New function, renamed from
8567 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 8568 the object is not well formed.
17bc8f94 8569
dd6f2802
RS
85702007-12-30 Richard Stallman <rms@gnu.org>
8571
8572 * textprop.c (get_char_property_and_overlay):
8573 Signal error if POSITION is out of range in a buffer.
8574
1da8a031
MR
85752007-12-29 Martin Rudalics <rudalics@gmx.at>
8576
8577 * w32fns.c (Fx_create_frame): Make copy of frame parameters
8578 because the original parameters are in pure storage now.
8579
5742be86
YM
85802007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8581
8582 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
8583
b014713c
EZ
85842007-12-22 Eli Zaretskii <eliz@gnu.org>
8585
b17f53ab
MB
8586 * callint.c (syms_of_callint) <command-history>: Add reference to
8587 history-length in the doc string.
048addec 8588
b17f53ab 85892007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 8590
b17f53ab
MB
8591 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
8592 before passing as wParam.
048addec 8593
9af5078b
MA
85942007-12-22 Michael Albinus <michael.albinus@gmx.de>
8595
8596 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
8597 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
8598 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
8599 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
8600 as number.
8601 (Fdbus_call_method): Fix docstring.
8602
87cf1a39
MA
86032007-12-21 Michael Albinus <michael.albinus@gmx.de>
8604
8605 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
8606 New macros.
87df3c32 8607 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
8608 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
8609 Simplify.
87cf1a39
MA
8610 (xd_signature): New function.
8611 (xd_append_arg): Compute also signatures. Major rewrite.
8612 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
8613 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
8614 Check for signatures of arguments.
87cf1a39 8615
54371585
MA
86162007-12-19 Michael Albinus <michael.albinus@gmx.de>
8617
8618 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
8619 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
8620 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
8621 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
8622 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 8623 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
8624 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
8625 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 8626 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
8627 (xd_append_arg): New function.
8628 (Fdbus_call_method, Fdbus_send_signal): Apply it.
8629
f5306ca3
MA
86302007-12-16 Michael Albinus <michael.albinus@gmx.de>
8631
8632 * dbusbind.c (top): Include <stdio.h>.
8633 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
8634 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
8635 (Fdbus_register_signal): Rename unique_name to uname.
8636 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
8637 non-existing unique name. Fix typos in matching rule. Return an
8638 object which is useful in Fdbus_unregister_signal.
8639 (Fdbus_unregister_signal): Reimplementation, in order to remove
8640 only the corresponding entry.
8641 (Vdbus_registered_functions_table): Change the order of entries.
8642 Apply these changes in xd_read_message and Fdbus_register_signal.
8643
77a28bbf
AS
86442007-12-16 Andreas Schwab <schwab@suse.de>
8645
8646 * fileio.c (Finsert_file_contents): Fix overflow check to not
8647 depend on undefined integer overflow.
8648
2e3566d8
JR
86492007-12-14 Jason Rumney <jasonr@gnu.org>
8650
8651 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
8652 for characters above 127.
8653
bf254037
JR
86542007-12-13 Jason Rumney <jasonr@gnu.org>
8655
8656 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
8657 before dereferencing array.
8658 (lookup_vk_code): Remove zero comparison.
8659
eb7c7bf5
MA
86602007-12-14 Michael Albinus <michael.albinus@gmx.de>
8661
8662 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
8663 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
8664 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
8665 (xd_read_message, Fdbus_register_signal): Split expressions into
8666 multiple lines before operators "&&" and "||", according to the
8667 GNU Coding Standards.
8668
34fb0fc9
EZ
86692007-12-14 Eli Zaretskii <eliz@gnu.org>
8670
8671 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
8672
c7d97628
JL
86732007-12-12 Juri Linkov <juri@jurta.org>
8674
8675 * buffer.c (Frename_buffer): In interactive spec replace
8676 `read-buffer' with `read-string' that uses `buffer-name-history'
8677 as history, and the current buffer's name as default.
8678
3709505e
SM
86792007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
8680
8681 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
8682 manipulating the backtrace manually.
8683 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
8684 (struct backtrace, backtrace_list): Remove.
8685 (command_loop_1): Remove dead var `no_direct'.
8686
8687 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
8688 preserve non-built-in buffer-local variables.
8689 (Fkill_all_local_variables): Don't re-create&re-set permanent
8690 buffer-local variables.
8691
e2bec886
JL
86922007-12-09 Juri Linkov <juri@jurta.org>
8693
8694 * buffer.c (Frename_buffer): Change interactive spec from "s" to
8695 Lisp code that uses `read-buffer' with current buffer as default.
8696
a31d47c7
MA
86972007-12-08 Michael Albinus <michael.albinus@gmx.de>
8698
8699 * dbusbind.c (xd_read_message): Generate an event for every
8700 registered handler. There might be several handlers registered
8701 for the same signal.
8702 (Fdbus_register_signal): Don't overwrite a registration for the
8703 same signal. Add a new registration if handlers are different.
8704 (Vdbus_registered_functions_table): Rework doc string.
8705
52da95fa
MA
87062007-12-07 Michael Albinus <michael.albinus@gmx.de>
8707
8708 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
8709 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
8710 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
8711 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
8712 Unify argument lists.
a0a3805c 8713 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
8714 arguments and hash table keys. Use unique name for service.
8715 (Fdbus_unregister_signal): Remove checks.
8716 (Vdbus_registered_functions_table): Fix doc string.
8717
e5e76c04 87182007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
8719
8720 * process.c (make_process): Initialize pty_flag to 0.
8721
e5e76c04 87222007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
8723
8724 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
8725 specified XBMs.
8726
e5e76c04 87272007-12-05 Richard Stallman <rms@gnu.org>
048addec 8728
e5e76c04 8729 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 8730
e5e76c04 87312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8732
e5e76c04
MB
8733 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
8734 New variable.
8735 (mac_try_close_socket) [MAC_OSX]: New function.
8736 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
8737 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 8738
e5e76c04
MB
8739 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
8740 Use mac_try_close_socket.
048addec 8741
e5e76c04 87422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8743
e5e76c04
MB
8744 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
8745 reloc_base.
8746 (copy_dysymtab): Compute relocation base here.
8747 (rebase_reloc_address) [__ppc64__]: New function.
8748 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
8749 changed.
048addec 8750
e5e76c04 87512007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 8752
e5e76c04 8753 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 8754
e5e76c04 87552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8756
e5e76c04
MB
8757 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
8758 __objc_* sections.
8759 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 8760
96faeb40
MA
87612007-12-05 Michael Albinus <michael.albinus@gmx.de>
8762
8763 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
8764 Move check for Vdbus_registered_functions_table to
8765 xd_read_queued_messages.
8766 (xd_read_queued_messages): Protect xd_read_message calls by
8767 internal_condition_case_1.
8768
39abdd4a
MA
87692007-12-04 Michael Albinus <michael.albinus@gmx.de>
8770
87df3c32 8771 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 8772 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 8773 (Vdbus_intern_symbols): Remove.
39abdd4a 8774 (Vdbus_registered_functions_table): New hash table.
87df3c32 8775 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 8776 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 8777 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
8778 Vdbus_registered_functions_table.
8779
880820fe 87802007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
8781
8782 * xterm.c: Update URL to Window Manager Specification in comment.
8783
033b73e2
MA
87842007-12-02 Michael Albinus <michael.albinus@gmx.de>
8785
8786 * config.in (HAVE_DBUS): Add.
8787
a0a3805c 8788 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
8789 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
8790 (obj): Add $(DBUS_OBJ).
8791 (LIBES): Add $(DBUS_LIBS).
8792 (dbusbind.o): New target.
8793
8794 * dbusbind.c: New file.
8795
8796 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
8797
8798 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 8799 (Qdbus_event): New Lisp symbol.
033b73e2 8800 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 8801 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
8802 (keys_of_keyboard ): Define dbus-event.
8803
8804 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
8805
39d0bf74
RS
88062007-12-01 Richard Stallman <rms@gnu.org>
8807
8808 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
8809
f3157c65
JR
88102007-11-30 Jason Rumney <jasonr@gnu.org>
8811
8812 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
8813 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
8814 (w32_face_attributes): Don't use color indexes that are out of range.
8815 Only reverse the default colors.
f3157c65
JR
8816
8817 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
8818 WINDOWSNT.
8819
8820 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
8821
b510360c
JR
88222007-11-29 Jason Rumney <jasonr@gnu.org>
8823
8824 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
8825 (w32_face_attributes): Use Vtty_defined_color_alist to determine
8826 if the terminal colors are initialized.
8827 (unspecified_fg, unspecified_bg): Remove unused declarations.
8828
4b7ab1c4
AS
88292007-11-29 Andreas Schwab <schwab@suse.de>
8830
8831 * keyboard.c (apply_modifiers): Fix typo.
8832
4bb6c266
RS
88332007-11-29 Richard Stallman <rms@gnu.org>
8834
8835 * keymap.c (Fcurrent_local_map): Doc fix.
8836
aa44cd84
GM
88372007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
8838
8839 * s/gnu-kfreebsd.h: New file.
8840
21ec2c43
SM
88412007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
8842
cc648cef
SM
8843 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
8844 Don't cast redundantly.
8845
21ec2c43
SM
8846 * keyboard.c (KEY_TO_CHAR): New macro.
8847 (parse_modifiers, apply_modifiers): Accept integer arguments.
8848 (read_key_sequence): Use them to unify the "shift->unshift" mapping
8849 for chars and symbol keys.
8850 After doing such remapping, apply function-key-map again.
8851
73e72da4
DN
88522007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
8853
8854 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
8855 compiled anymore.
8856
254693ff
AS
88572007-11-26 Andreas Schwab <schwab@suse.de>
8858
8859 * process.c (list_processes_1): Fix indentation level of the
8860 command column.
8861
ff6e6ac8
AS
88622007-11-23 Andreas Schwab <schwab@suse.de>
8863
8864 * editfns.c (Fformat): Handle %c specially since it requires the
8865 argument to be of type int.
8866
f7cf8b20
SM
88672007-11-23 Markus Triska <markus.triska@gmx.at>
8868
8869 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 8870 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 8871
569c11e3
SM
88722007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
8873
8787dd73
SM
8874 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
8875 (find_symbol_value): Use do_symval_forwarding.
8876
569c11e3
SM
8877 * data.c (set_internal): Set the value in the `cons-cell' (for
8878 Buffer_Local_values) not only for frame-local variables.
8879
6af1696d
AS
88802007-11-22 Andreas Schwab <schwab@suse.de>
8881
8882 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
8883 values to sprintf.
8884 * keymap.c (Fsingle_key_description): Likewise.
8885 * print.c (print_object): Likewise.
8886
880820fe 88872007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
8888
8889 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
8890 file for image is nil.
8891
7c401d15
DN
88922007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
8893
8894 * term.c: Include stdarg.h.
569c11e3 8895 (fatal): Implement using varargs.
a0a3805c 8896 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 8897
64e16c3c
SM
88982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8899
8900 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
8901 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
8902 Update call to buffer_slot_type_mismatch.
8903 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
8904 (buffer_slot_type_mismatch): Update.
8905 * buffer.c (buffer_local_types): Remove.
8906 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
8907 (defvar_per_buffer): Set the type in the buffer_objfwd.
8908
d4aa48db 89092007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 8910
64e16c3c
SM
8911 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
8912 CreateFileMapping returns NULL on failure.
5f42a7eb 8913
d4aa48db 89142007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 8915
d4aa48db
MB
8916 * search.c (Fset_match_data): Remove the `evaporate' feature.
8917 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 8918
bdae0540
JR
89192007-11-21 Jason Rumney <jasonr@gnu.org>
8920
8921 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
8922
8923 * w32console.c (w32con_write_glyphs): Remove unused variables.
8924
202c09a8
DN
89252007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
8926
b951420f
DN
8927 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
8928
202c09a8
DN
8929 * s/darwin.h (MULTI_KBOARD): Remove.
8930
8931 * macfns.c (x_create_tip_frame, Fx_create_frame)
8932 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
8933
bae72c12
SM
89342007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8935
e7c10f83
SM
8936 * buffer.c (Fbuffer_local_value): Remove redundant test.
8937 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
8938 than in `current-buffer' to match the comment.
8939 Do the swap using swap_in_global_binding.
8940
136eb6ed
SM
8941 * data.c (store_symval_forwarding, set_internal):
8942 * eval.c (specbind): Remove dead code.
8943
bae72c12
SM
8944 * coding.c (detect_coding, Fupdate_coding_systems_internal):
8945 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
8946 Since we do not want to see internal Lisp_*fwd objects here.
8947
880820fe 89482007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 8949
3d66b985
JD
8950 * sysdep.c (init_system_name): Use getaddrinfo if available.
8951
95fbaefc
JD
8952 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
8953 (x_scroll_bar_note_movement): start, end, with, height in struct
8954 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
8955
6c1d8cb6
DN
89562007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
8957
8958 * puresize.h (BASE_PURESIZE): Increase to 1190000.
8959
30f95089
SM
89602007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8961
66b04bd4
SM
8962 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
8963 This undoes Richard's change of 14-Oct-2002.
8964
6d3f2bb2
SM
8965 * alloc.c (allocate_other_vector):
8966 * lisp.h (allocate_other_vector): Remove.
8967
b05b4e27
SM
8968 * window.c (struct save_window_data): Move non-lisp data to the end
8969 and make it `int' rather than Lisp_Object.
8970 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
8971 Done wrap/unwrap integer values.
8972 (Fset_window_configuration, compare_window_configurations):
8973 Update use of fields to their new types.
8974
056ce195
SM
8975 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
8976 Turn integer fields into `int'. Merge x_window_low and x_window_high.
8977 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
8978 (SET_SCROLL_BAR_X_WINDOW): Remove.
8979 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
8980 Access the new x_window field directly.
8981 * xterm.c (x_scroll_bar_create): Use a pseudovector.
8982 Don't wrap/unwrap integers into Lisp_Objects.
8983 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
8984 (x_scroll_bar_report_motion):
8985 Don't wrap/unwrap integers into Lisp_Objects.
8986 (x_term_init): Use SDATA.
8987 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
8988 (x_scroll_bar_set_handle, x_scroll_bar_remove)
8989 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
8990 (x_scroll_bar_report_motion, x_scroll_bar_clear):
8991 * xfns.c (x_set_background_color):
8992 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
8993 Access the new x_window field directly.
8994
30f95089
SM
8995 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
8996 (allocate_pseudovector): Make non-static.
6d3f2bb2 8997
30f95089
SM
8998 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
8999 (allocate_pseudovector): Declare.
6f69e89b 9000 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 9001
9b6112e8
AS
90022007-11-15 Andreas Schwab <schwab@suse.de>
9003
30f95089
SM
9004 * editfns.c (Fformat): Correctly format EMACS_INT values.
9005 Also take precision into account when formatting an integer.
0f860bd7 9006
9b6112e8
AS
9007 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9008
262fcd41
SM
90092007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9010
58da34c7
SM
9011 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9012 (syms_of_keyboard): Defsubr it.
9013
262fcd41
SM
9014 * data.c (swap_in_global_binding): Fix longstanding bug where
9015 store_symval_forwarding was not called with the right second argument,
9016 thus causing objfwd-ing from being dropped.
9017
d29a9848
JB
90182007-11-14 Juanma Barranquero <lekktu@gmail.com>
9019
9020 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9021 (Fx_display_pixel_height, Fx_display_planes)
9022 (Fx_display_color_cells, Fx_server_max_request_size)
9023 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9024 (Fx_display_visual_class, Fx_display_save_under):
9025 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9026 (Fx_display_pixel_height, Fx_display_planes)
9027 (Fx_display_color_cells, Fx_server_max_request_size)
9028 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9029 (Fx_display_mm_height, Fx_display_mm_width)
9030 (Fx_display_backing_store, Fx_display_visual_class)
9031 (Fw32_select_font, Fx_display_save_under):
9032 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9033 (Fx_display_pixel_height, Fx_display_planes)
9034 (Fx_display_color_cells, Fx_server_max_request_size)
9035 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9036 (Fx_display_save_under): Fix typos in docstrings.
9037
74084731
JB
90382007-11-14 Juanma Barranquero <lekktu@gmail.com>
9039
9040 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9041 corresponding to deleted entries; they are an implementation detail.
9042 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9043 Remove variables.
9044 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
9045 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
9046 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
9047 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
9048 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 9049 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 9050 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
9051 Fix typos in docstrings.
9052 (Fx_server_version): Reflow docstring.
9053 (Fw32_shell_execute): Doc fixes.
74084731 9054
fb053a1f
JB
90552007-11-13 Juanma Barranquero <lekktu@gmail.com>
9056
9057 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
9058 if w32_parse_hot_key returned nil.
9059
a457417e 90602007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 9061
a457417e 9062 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 9063
4b219faa
JR
90642007-11-09 Jason Rumney <jasonr@gnu.org>
9065
9066 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
9067
9068 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
9069
9070 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
9071 Remove W32_SCROLL_BAR_CLICK_EVENT.
9072
9073 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
9074 Add MULTIMEDIA_KEY_EVENT.
9075
9076 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
9077 (lispy_multimedia_keys) [WINDOWSNT]: New array.
9078 (make_lispy_event) [WINDOWSNT]: Use it to translate
9079 MULTIMEDIA_KEY_EVENT.
9080
9081 * w32term.h (WM_APPCOMMAND): Define if not already.
9082 (GET_APPCOMMAND_LPARAM): Likewise.
9083
9084 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
9085 WM_APPCOMMAND.
9086
9087 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
9088 (syms_of_w32fns): Export and initialize it.
9089 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
9090
c12ecb0a 90912007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
9092
9093 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
9094 twice.
9095
9096 * xdisp.c (handle_face_prop): Fix last change.
9097
c12ecb0a 90982007-11-09 Richard Stallman <rms@gnu.org>
048addec 9099
c12ecb0a
MB
9100 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
9101 not just for after-strings and before-strings.
9102 Call face_for_overlay_string and pass the overlay to it.
9103 (handle_display_prop): Determine whether property came from an overlay.
9104 Pass OVERLAY arg to handle_single_display_spec.
9105 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
9106 (load_overlay_strings): Fill in it->string_overlays.
9107 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 9108
c12ecb0a
MB
9109 * xfaces.c (face_for_overlay_string): Function renamed from
9110 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 9111
c12ecb0a
MB
9112 * dispextern.h (struct it): New elt string_overlays.
9113 New elt from_overlay, also in stack.
9114 Rearrange a few elements.
9115 (face_for_overlay_string): Decl renamed from
9116 face_at_buffer_position_no_overlays, and add argument.
15fff01d 9117
c12ecb0a 91182007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 9119
c12ecb0a
MB
9120 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
9121 to get the base face for an overlay string.
0d8466cc 9122
c12ecb0a 9123 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 9124
c12ecb0a 9125 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 9126
c12ecb0a 9127 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 9128
c12ecb0a 91292007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 9130
c12ecb0a
MB
9131 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
9132 Fix conversion from Lisp object to ATSUFontID.
07025a55 9133
c12ecb0a 91342007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 9135
c12ecb0a 9136 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 9137
c12ecb0a 91382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 9139
c12ecb0a
MB
9140 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
9141 Don't assume regions are aligned to page boundary.
9142 (print_load_command_name): Add LC_UUID if defined.
3a232704 9143
c12ecb0a 91442007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 9145
c12ecb0a 9146 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 9147
b8ddfbcc
JR
91482007-11-07 Jason Rumney <jasonr@gnu.org>
9149
9150 * s/windows95.h: Remove.
9151
880820fe 91522007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
9153
9154 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
9155 abort with a message on unhandled store_type values.
9156
880820fe 91572007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
9158
9159 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
9160 Remove HAVE_X11R5 and HAVE_X11R4.
9161
04a697fe
DN
91622007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9163
9164 * Makefile.in: Remove references to sunfns.c and sunfns.o.
9165
880820fe 91662007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
9167
9168 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 9169 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
9170 x_set_glyph_string_gc from x_draw_glyph_string.
9171
07e5c0b0
DN
91722007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9173
2a2e8de7 9174 * sunfns.c: Remove file.
07e5c0b0
DN
9175
9176 * m/sun386.h:
9177 * m/sun2.h:
9178 * m/sparc.h: Remove Sun windows code.
9179
1bc973c2
SM
91802007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
9181
9182 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
9183 (init_keyboard): Set current_kboard's window-system to nil.
9184 (tty_read_avail_input): Typo.
9185 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
9186
c22140f6
DN
91872007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
9188
9189 * s/usg5-4.h:
9190 * s/usg5-3.h:
9191 * s/ptx.h:
9192 * m/is386.h:
9193 * m/ibmps2-aix.h:
2a2e8de7 9194 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
9195
9196 * dispnew.c (syms_of_display): Don't mention version 10.
9197
660a8219
JB
91982007-10-28 Juanma Barranquero <lekktu@gmail.com>
9199
9200 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
9201 ($(BLD)/abbrev.$(O)): Remove.
9202
e047f448
SM
92032007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9204
9205 Rewrite abbrev.c in Elisp.
9206 * image.c (Qcount): Don't declare as extern.
9207 (syms_of_image): Initialize and staticpro `Qcount'.
9208 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
9209 * emacs.c (main): Don't call syms_of_abbrev.
9210 * Makefile.in (obj): Remove abbrev.o.
9211 (abbrev.o): Remove.
9212 * abbrev.c: Remove.
9213
67b73e3a
MR
92142007-10-26 Martin Rudalics <rudalics@gmx.at>
9215
9216 * window.c (window_min_size_2): Don't count header-line.
9217
e3d7bd83
DN
92182007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
9219
9220 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 9221 field to take advantage of the available space. Group all the
e3d7bd83
DN
9222 chars together to reduce wasted space due to padding.
9223
a3547743
JB
92242007-10-26 Juanma Barranquero <lekktu@gmail.com>
9225
e298936f
JB
9226 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
9227
d3d47262
JB
9228 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
9229 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
9230 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
9231 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
9232 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
9233 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
9234 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
9235 (last_marked, mark_object_loop_halt): Make static.
9236
a3547743
JB
9237 * frame.c (syms_of_frame) <delete-frame-functions>:
9238 Fix typo in docstring.
9239
14c71d8b
JB
92402007-10-25 Juanma Barranquero <lekktu@gmail.com>
9241
9242 * w32.c (init_environment): Fix tiny memory leak.
66199f74 9243 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 9244
70b8d0a4
SM
92452007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
9246
9247 Make `window-system' into a keyboard-local variable (rather than
9248 frame-local as done originally by multi-tty).
9249
9250 * keyboard.h (struct kboard): Add Vwindow_system.
9251 * keyboard.c (init_kboard): Set a default for Vwindow_system.
9252 (mark_kboards): Mark Vwindow_system.
9253
9254 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
9255 (init_display): Don't set the obsolete `window-system' frame-param.
9256
9257 * xterm.c (x_term_init):
9258 * w32term.c (w32_create_terminal):
9259 * term.c (init_tty): Set Vwindow_system.
9260 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
9261 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
9262
9263 * xfns.c (Fx_create_frame, x_create_tip_frame):
9264 * w32fns.c (Fx_create_frame, x_create_tip_frame):
9265 * macfns.c (Fx_create_frame):
9266 Don't set the obsolete `window-system' frame-param.
9267
9268 * frame.h (Qwindow_system): Remove.
9269 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
9270 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
9271
fdc90613 92722007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 9273
fdc90613
MB
9274 * frame.c (x_figure_window_size): For fullscreen case,
9275 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 9276
fdc90613 9277 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 9278
fdc90613 9279 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 9280
7357cb04
SM
92812007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9282
98228e72
SM
9283 * process.c (unwind_request_sigio): Only define if __ultrix__.
9284
1baf6db9
SM
9285 * callproc.c (child_setup): Remove spurious *.
9286
4d0ac3d7
SM
9287 * lisp.h (Fget_text_property): Declare.
9288 (have_menus_p): Declare it here rather than in sys-dep header files.
9289 * macterm.h (have_menus_p):
9290 * msdos.h (have_menus_p):
9291 * xterm.h (have_menus_p): Remove.
9292
7357cb04
SM
9293 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9294 (Fmake_variable_frame_local): Just check the variable's const-ness
9295 rather than checking nil or t.
9296
866e6dd6
JR
92972007-10-22 Jason Rumney <jasonr@gnu.org>
9298
b00afeae
JR
9299 * w32fns.c: Include math.h.
9300 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 9301
c8f7c76b
JR
9302 * s/ms-w32.h (HAVE_STDLIB_H): Define.
9303 (abort): Redefinition moved to nt/config.nt.
9304
866e6dd6
JR
9305 * m/windowsnt.h: Remove.
9306
e79beb56
JB
93072007-10-22 Juanma Barranquero <lekktu@gmail.com>
9308
9309 * emacs.c (Fdump_emacs): Fix typo in message.
9310 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
9311 <installation-directory>: Reflow docstring.
9312
fb30dfd2
JL
93132007-10-22 Juri Linkov <juri@jurta.org>
9314
9315 * minibuf.c: Allow minibuffer default to be a list of default values.
9316 With empty input use the first element of this list as returned default.
e79beb56 9317 (string_to_object)
0f7f11b7 9318 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
9319 (read_minibuf): If defalt is cons, set histstring to its car.
9320 (Fread_string): If default_value is cons, set val to its car.
9321 (Fread_buffer): If def is cons, use its car.
9322 (Fcompleting_read): If defalt is cons, set val to its car.
9323
1f163f28
MA
93242007-10-21 Michael Albinus <michael.albinus@gmx.de>
9325
9326 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
9327
db3534c3
JB
93282007-10-20 Juanma Barranquero <lekktu@gmail.com>
9329
9330 * doc.c (Fdocumentation): Check for advice in all cases.
9331
c6f18a07
CY
93322007-10-19 Chong Yidong <cyd@stupidchicken.com>
9333
9334 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
9335
2a1534d3
RS
93362007-10-19 Richard Stallman <rms@gnu.org>
9337
9338 * doc.c (Fdocumentation): Check for and handle an advised function.
9339
7b82c3b6
JB
93402007-10-19 Juanma Barranquero <lekktu@gmail.com>
9341
9342 * process.c (Fset_process_filter): Doc fix.
9343
3278f20e
SM
93442007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9345
9346 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
9347 which caused key-translation-map to applied repeatedly (thus breaking
9348 double-mode).
9349
99784d63
SM
93502007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9351
9352 * xselect.c (x_own_selection, x_handle_selection_clear)
9353 (x_clear_frame_selections):
9354 * w32menu.c (list_of_panes, list_of_items):
9355 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
9356 * textprop.c (validate_plist, interval_has_all_properties)
9357 (interval_has_some_properties, interval_has_some_properties_list)
9358 (add_properties, text_property_list):
9359 * process.c (Fget_buffer_process, list_processes_1, status_notify):
9360 * minibuf.c (Fassoc_string):
9361 * macselect.c (x_own_selection, x_clear_frame_selections)
9362 (Fx_disown_selection_internal):
9363 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
9364 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
9365
44bb704d
CY
93662007-10-17 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * process.c: Link to libs for calling res_init() if available.
9369 (Fmake_network_process): Call res_init() before getaddrinfo or
9370 gethostbyname, if possible.
9371
d314756e
SM
93722007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9373
2504022a
SM
9374 * lread.c (read1): Set pvectype for char_tables.
9375
19fa82b9
SM
9376 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
9377 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
9378 Add type checks.
9379 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
9380
d314756e
SM
9381 * alloc.c (free_misc): Use XMISCTYPE.
9382 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
9383
94b9aaa2
GM
93842007-10-17 Glenn Morris <rgm@gnu.org>
9385
9386 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
9387 (syms_of_minibuf): Add Qcompletion_ignore_case.
9388 * dired.c (Qcompletion_ignore_case): Change to external.
9389 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
9390 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
9391 (Fread_file_name): Use it rather than intern'ing.
9392
9393 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
9394 (Fread_coding_system): Ignore case of user input.
9395
da6658e8
YM
93962007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9397
9398 * xdisp.c (handle_display_prop): Ignore display specs after
9399 replacing one when string text is being replaced.
9400 (handle_single_display_spec): Pretend as if characters with display
9401 property haven't been consumed only when buffer text is being replaced.
9402
11fb4bdb
SM
94032007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
9404
9beb8baa
SM
9405 * xfns.c (Fx_create_frame, Fx_display_list):
9406 * window.c (window_fixed_size_p, enlarge_window)
9407 (shrink_window_lowest_first):
9408 * macterm.c (init_font_name_table):
9409 * macfns.c (Fx_create_frame, Fx_display_list):
9410 * lread.c (close_load_descs):
9411 * keyboard.c (read_char_x_menu_prompt):
9412 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
9413 * coding.c (code_convert_region_unwind): Test the type of an object
9414 rather than just !NILP before extracting data from it.
9415
d3f41ff5
SM
9416 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
9417
67ee9f6e
SM
9418 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
9419 (XMISCANY): New macro.
9420 (XMISCTYPE): Use it.
9421 (struct Lisp_Misc_Any): New type.
9422 (union Lisp_Misc): Use it.
9423 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
9424 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
9425 (find_symbol_value, set_internal, default_value, Fset_default)
9426 (Fmake_variable_buffer_local, Fmake_local_variable)
9427 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
9428 (Flocal_variable_if_set_p, Fvariable_binding_locus):
9429 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
9430 * alloc.c (allocate_buffer): Set the size and tag.
9431 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
9432 Use XMISCANY.
9433 (die): Follow the GNU convention for error messages.
9434 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
9435 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
9436 tag any more.
9437 (set_buffer_internal_1):
9438 * frame.c (store_frame_param):
9439 * eval.c (specbind):
9440 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
9441
11fb4bdb
SM
9442 * doc.c (Fsnarf_documentation): Simplify.
9443
decb374a
JB
94442007-10-14 Juanma Barranquero <lekktu@gmail.com>
9445
9446 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
9447 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
9448
b5a40ee7
SM
94492007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
9450
9451 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
9452
35277b03
JB
94532007-10-14 Juanma Barranquero <lekktu@gmail.com>
9454
9455 * eval.c (do_autoload): Don't save autoloads.
9456
9457 * data.c (Ffset): Save autoload of the function being set.
9458
35fdaa62
GM
94592007-10-07 John Paul Wallington <jpw@pobox.com>
9460
9461 * xfns.c (x_create_tip_frame): Set the `display-type' frame
9462 parameter before setting up faces.
9463
1ea40aa2
EZ
94642007-10-13 Eli Zaretskii <eliz@gnu.org>
9465
35fdaa62 9466 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
9467 * keyboard.c (append_tool_bar_item): Reformat last change.
9468
1ea40aa2
EZ
9469 * lisp.h (eabs): Rename from `abs'. All callers changed.
9470
35277b03 94712007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
9472
9473 * buffer.c (add_overlay_mod_hooklist):
9474 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
9475 * fontset.c (make_fontset):
9476 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
9477 (append_tool_bar_item):
9478 * macmenu.c (grow_menu_items):
35fdaa62 9479 * w32menu.c (grow_menu_items):
71d00ce4 9480 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 9481
bc82f120
EZ
94822007-10-13 Eli Zaretskii <eliz@gnu.org>
9483
9484 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
9485 selected frame'' on MSDOS).
9486
d57d5a78
MR
94872007-10-12 Martin Rudalics <rudalics@gmx.at>
9488
9489 * frame.c (Qexplicit_name): New variable.
9490 (x_report_frame_params): Report it in parameter alist.
9491 (syms_of_frame): Intern and staticpro it.
9492
35277b03 94932007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
9494
9495 * macfns.c (x_create_tip_frame): Set terminal for frame.
9496
c7a4b95b
SM
94972007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
9498
26f9c7b7
SM
9499 * frame.c (Qenvironment): Remove.
9500 (syms_of_frame) <Qenvironment>: Don't initialize.
9501 (Fdelete_frame): Don't treat the `environment' param specially.
9502 * frame.h (Qenvironment): Don't declare.
9503 * callproc.c (set_initial_environment): Don't set unused frame param.
9504
c7a4b95b
SM
9505 * frame.c (Fframe_with_environment): Remove.
9506 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 9507
c7a4b95b
SM
9508 * lisp.h (Fframe_with_environment): Don't declare.
9509
c86f7377
JB
95102007-10-10 Juanma Barranquero <lekktu@gmail.com>
9511
9512 * indent.c (indent_tabs_mode, last_known_column)
9513 (last_known_column_modified): Make static.
9514 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
9515
d1b3a122
KY
95162007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
9517
9518 * puresize.h (BASE_PURESIZE): Increase to 1170000.
9519
d57d5a78
MR
95202007-10-09 Jason Rumney <jasonr@gnu.org>
9521
9522 * w32term.c (x_set_window_size): Disable code that attempts to tell
9523 Lisp code about a size change before it actually happens.
9524
81d3d428 95252007-10-09 Richard Stallman <rms@gnu.org>
91175673 9526
81d3d428
MB
9527 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
9528 return HANDLED_RETURN.
91175673 9529
1af74d06 95302007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 9531
1af74d06
MB
9532 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
9533 when there's an unread command event.
e0fead5d 9534
c7a4b95b 9535 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
9536 window autoselection act appropriately when leaving selected frame.
9537 (syms_of_frame): Initialize focus_follows_mouse.
9538 * frame.h (focus_follows_mouse): Extern it.
9539 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 9540 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
9541 * msdos.c (dos_rawgetc): Likewise.
9542 * w32term.c (w32_read_socket): Likewise.
9543 * xterm.c (handle_one_xevent): Likewise.
9544 * xdisp.c (syms_of_xdisp): In doc-string of
9545 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 9546
1af74d06 95472007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 9548
1af74d06
MB
9549 * macterm.c (mac_load_query_font): Fix missing return value.
9550 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
9551 Add BLOCK_INPUT.
c186cdb3 9552
1af74d06 95532007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 9554
1af74d06
MB
9555 * xdisp.c (get_window_cursor_type): Implement documented behavior
9556 for cursor-in-non-selected-windows = t.
c186cdb3 9557
1af74d06 95582007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 9559
1af74d06 9560 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 9561
1af74d06 95622007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 9563
1af74d06 9564 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 9565
1af74d06 9566 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 9567
1af74d06 95682007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9569
c7a4b95b 9570 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 9571
1af74d06 95722007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9573
1af74d06 9574 * buffer.c (Foverlays_at): Doc fix.
036e218d 9575
1af74d06 95762007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 9577
1af74d06 9578 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 9579
1af74d06 95802007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 9581
1af74d06 9582 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 9583
1af74d06 9584 * frame.h (enum): Remove trailing comma.
90647b07 9585
1af74d06 95862007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
90647b07 9587
1af74d06 9588 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 9589
1af74d06 95902007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 9591
1af74d06 9592 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 9593
1af74d06
MB
9594 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
9595 last-repeatable-command.
9596 (init_kboard): Initialize Vlast_repeatable_command.
9597 (command_loop_1): Set it to real_this_command unless that was
9598 bound to an input event.
9599 (mark_kboards): Mark it.
9fbc32aa 9600
1af74d06 96012007-10-08 Richard Stallman <rms@gnu.org>
036e218d 9602
1af74d06 9603 * eval.c (condition-case): Doc fix.
9fbc32aa 9604
1af74d06 96052007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 9606
1af74d06
MB
9607 * xfaces.c (tty_supports_face_attributes_p): Fix code
9608 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9609 was copied and not edited.
9fbc32aa 9610
beb9f745
SM
96112007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
9612
c86f7377 9613 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
9614 escape sequences.
9615 * keyboard.h (struct kboard): Add Vinput_decode_map.
9616 Remove Vlocal_key_translation_map.
9617 * keyboard.c (read_key_sequence): Add support for input-decode-map.
9618 (init_kboard): Init input-decode-map.
9619 Replace local-key-translation-map back with key-translation-map.
9620 (syms_of_keyboard): Declare input-decode-map.
9621 Remove local-key-translation-map. Update docstrings.
9622 (mark_kboards): Mark Vinput_decode_map.
9623 Don't mark Vlocal_key_translation_map.
9624 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
9625 Replace local-key-translation-map back with key-translation-map.
9626 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
9627 Bind in input-decode-map rather than function-key-map.
9628
beb9f745
SM
9629 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
9630 This was made redundant by the previous introduction of XSETPVECTYPE.
9631
65342ae3
RS
96322007-10-09 Richard Stallman <rms@gnu.org>
9633
beb9f745 9634 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
9635
96362007-09-29 Richard Stallman <rms@gnu.org>
9637
9638 * eval.c (internal_condition_case_2, internal_condition_case_1)
9639 (internal_condition_case): Reenable abort if x_catching_errors ()
9640 to see if that really happens and why.
9641
6cff77fd
AS
96422007-10-06 Andreas Schwab <schwab@suse.de>
9643
9644 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
9645
bbe6f2aa
JB
96462007-10-04 Juanma Barranquero <lekktu@gmail.com>
9647
9648 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
9649
a390930c
SM
96502007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
9651
9652 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
9653
d6aa1876
SM
96542007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
9655
d0fdb6da
SM
9656 * window.h (struct window):
9657 * window.c (struct save_window_data, struct saved_window):
9658 * termhooks.h (struct terminal):
9659 * process.h (struct Lisp_Process):
9660 * frame.h (struct frame):
9661 * buffer.h (struct buffer):
9662 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
9663 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
9664 The size field of (pseudo)vectors is now unsigned.
9665 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
9666
878f97ff
SM
9667 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
9668 Turn `count' into an integer.
d0fdb6da 9669
878f97ff
SM
9670 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
9671 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
9672 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
9673 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
9674 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
9675
d2029e5b
SM
9676 * alloc.c (allocate_pseudovector): New fun.
9677 (ALLOCATE_PSEUDOVECTOR): New macro.
9678 (allocate_window, allocate_terminal, allocate_frame)
9679 (allocate_process): Use it.
9680 (mark_vectorlike): New function.
9681 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
9682 (mark_terminals): Use it.
9683 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
9684 (Fmake_byte_code): Use XSETPVECTYPE.
9685
9686 * frame.c (Fframe_parameters): Minor simplification.
9687
9688 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
9689
9690 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
9691
9692 * buffer.c (Fget_buffer_create, init_buffer_once):
9693 * lread.c (defsubr):
9694 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
9695
9696 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
9697 defined differently in the m/*.h files.
9698 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
9699 (XSETPVECTYPE): New macro.
9700 (XSETPSEUDOVECTOR): Use it.
9701
d6aa1876
SM
9702 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
9703 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 9704
d6aa1876
SM
9705 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
9706 * lread.c (defvar_per_buffer):
9707 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
9708
9709 * window.c (candidate_window_p): Only consider as visible frames that
9710 are on the same terminal.
9711
9712 * m/ibms390x.h (MARKBIT): Remove unused macro.
9713
88852d45
JB
97142007-10-01 Juanma Barranquero <lekktu@gmail.com>
9715
9716 * lread.c (Fload): Fix typo in docstring.
9717
880820fe 97182007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
9719
9720 * floatfns.c (Fexpt): Manually check for overflows, so that a power
9721 of a non-zero value can't yield zero.
9722
ed0c79c6
SM
97232007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
9724
b870aa61
SM
9725 * term.c (term_clear_mouse_face, term_mouse_highlight)
9726 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
9727
4c37a414
SM
9728 * print.c (safe_debug_print): Use XHASH.
9729
b9466edb
SM
9730 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
9731 Lisp elements such as tags.
9732 (XHASH): New macro.
9733 (EQ): Use it.
9734 (SREF, SSET, STRING_COPYIN): Use SDATA.
9735 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
9736
9c545a55
SM
9737 * alloc.c (mark_terminal): Remove left-over declaration.
9738 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
9739 (allocate_vectorlike): Remove type argument. Adjust callers.
9740 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
9741 Only handle the one remaining MEM_TYPE_VECTORLIKE.
9742
dafc79fa
SM
9743 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
9744 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
9745 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
9746 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
9747 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
9748 Use them.
9749
ed0c79c6
SM
9750 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
9751 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
9752 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
9753
3c81afd4
DN
97542007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9755
9756 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
9757 loaded by default.
9758
6178ce5e
SM
97592007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
9760
4ce5ab77
SM
9761 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
9762 on this tty.
9763 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
9764
6178ce5e
SM
9765 * term.c (mouse_face_window): Rename from Qmouse_face_window.
9766 Update all users.
9767 (handle_one_term_event): Use Gpm_DrawPointer.
9768 (Fgpm_mouse_start): Rename from Fterm_open_connection.
9769 Signal errors instead of returning nil. Always return nil.
9770 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
9771 Make it a noop if gpm-mouse was not activated.
9772 (syms_of_term): Update names.
9773
bdf5f8ef
SM
97742007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
9775
75a8734b
SM
9776 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
9777 (init_sys_modes): Check that gpm_tty is the current tty.
9778
13559ee0
SM
9779 * alloc.c (allocate_terminal): Set the vector size to only count the
9780 lisp fields. Initialize those to nil.
9781 (mark_object): Don't treat terminals specially.
9782 (mark_terminal): Remove.
9783 (mark_terminals): Use mark_object instead.
9784
ff16b875
SM
9785 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
9786 the GC to the beginning.
9787
83155776
SM
9788 * indent.h:
9789 * indent.c: Use EMACS_INT for ints coming from Elisp data.
9790
bdf5f8ef
SM
9791 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
9792
ec8705b6
JR
97932007-09-25 Jason Rumney <jasonr@gnu.org>
9794
9795 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
9796
9797 * w32console.c (create_w32cons_output): Remove.
9798
9799 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
9800
9801 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
9802 (reset_sys_modes): Use reset_terminal_modes_hook.
9803
7351b242
SM
98042007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * eval.c (do_autoload): Don't output any message.
9807
16706228
JL
98082007-09-24 Juri Linkov <juri@jurta.org>
9809
9810 * emacs.c (standard_args): Change priority of "--no-splash"
9811 from 40 to 3. Add "--no-desktop" with the same priority.
9812
3ae2e3a3
RS
98132007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
9814
9815 * alloc.c (gc_sweep): Check cons cell mark bits word by word
9816 and optimize the case where they are all 1.
9817
7a58fb43
GM
98182007-09-23 Johannes Weiner <hannes@saeurebad.de>
9819
3ae2e3a3
RS
9820 * lisp.h (abs): Define if not defined.
9821 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
9822 Don't define `abs', since it's defined in lisp.h.
7a58fb43 9823
78048085
EZ
98242007-09-22 Eli Zaretskii <eliz@gnu.org>
9825
c7a4b95b 9826 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
9827 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
9828 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
9829 (init_tty): Use DEV_TTY instead of "/dev/tty".
9830 [WINDOWSNT]: No need to protect from NAME arg being null.
9831
23d4cba5
DN
98322007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9833
9834 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
9835 up the tty state.
9836
71f44e7a
SM
98372007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9838
9839 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
9840 (gpm_tty): Change its type.
9841 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
9842 (gpm_tty): Change its type and initialize it.
9843 (Fterm_open_connection): Check the frame is indeed a tty.
9844 Use the new gpm_tty.
9845 (Fterm_close_connection): Use the new gpm_tty.
9846 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
9847 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
9848
def7fa34
JB
98492007-09-21 Juanma Barranquero <lekktu@gmail.com>
9850
9851 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
9852 underline_color, to draw strike-through.
9853
d2bb6598
SM
98542007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9855
273f164c
SM
9856 * lisp.h (allocate_terminal): Declare.
9857
ca2d5566
SM
9858 * window.c (candidate_window_p): Consider frames that are being placed
9859 by the user as somewhere between visible and iconified.
9860 (window_loop): Prefer windows on the current frame.
9861 (Fselect_window): Move the use of select-frame to the beginning so we
9862 can just delegate all the work (it'll call us back anyway).
9863
6168122d
SM
9864 * frame.c (Qdisplay_environment_variable):
9865 * frame.h (Qdisplay_environment_variable): Delete.
9866
c51842ec
SM
9867 * .gdbinit (xbacktrace): Print the arg's address rather than the value
9868 of the first arg, since that value may be a union.
9869
d2bb6598
SM
9870 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
9871 parameter rather than Qdisplay_environment_variable. If all else
9872 fails, look for DISPLAY in initial-environment.
9873
6f022c19
GM
98742007-09-21 Glenn Morris <rgm@gnu.org>
9875
9876 * Makefile.in (emacstool): Remove target.
f466320b 9877 (lisp, shortlisp): Remove termdev.elc.
6f022c19 9878
ea1bf8c7
GM
98792007-09-21 Markus Triska <markus.triska@gmx.at>
9880
d2bb6598 9881 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 9882
d30a25b3
SM
98832007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
9884
db699fc6
SM
9885 * callproc.c (getenv_internal_1): New function.
9886 (getenv_internal): Use it.
9887 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
9888
d2bb6598 9889 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
9890 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
9891 (Fset_terminal_parameter): Work with dead terminals as well.
9892 (Fmodify_terminal_parameters): Remove.
9893
d30a25b3
SM
9894 * terminal.c (get_terminal): Handle terminals.
9895 Make sure the terminal returned is live.
9896 (create_terminal): Use allocate_terminal.
9897 (mark_terminals): Move to alloc.c.
9898 (delete_terminal): Use terminal->name as liveness status.
9899 NULL out fields after freeing their contents.
9900 Don't deallocate the object.
9901 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
9902 rather than an int.
9903 (Fterminal_live_p): Accept non-integer arguments.
9904 (Fterminal_list): Return terminal objects rather than an ints.
9905
9906 * alloc.c (enum mem_type): New member for `terminal' objects.
9907 (allocate_terminal): New function.
d2bb6598
SM
9908 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
9909 Handle terminals.
d30a25b3
SM
9910 (mark_terminal): New fun.
9911 (mark_terminals): Move from terminal.c.
9912
9913 * term.c (get_tty_terminal): Don't treat output_initial specially.
9914 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
9915 (delete_tty): Use terminal->name as liveness status.
9916
9917 * termhooks.h (struct terminal): Make it into a pseudovector.
9918 Remove `deleted' replaced by checking `name's nullness.
9919
9920 * print.c (print_object): Handle terminals.
9921
9922 * lisp.h (enum pvec_type): New `terminal' pseudovector.
9923 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
9924
9925 * frame.c (make_terminal_frame):
9926 * keyboard.c (tty_read_avail_input):
9927 * w32term.c (x_delete_terminal):
9928 * xfns.c (Fx_create_frame, x_create_tip_frame):
9929 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
9930
eba25e7c
GM
99312007-09-20 Glenn Morris <rgm@gnu.org>
9932
9933 * process.c (Fmake_network_process): Doc fix.
9934
2a29c3c1
JR
99352007-09-19 Jason Rumney <jasonr@gnu.org>
9936
9937 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
9938
880820fe 99392007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
9940
9941 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
9942 Fix a C warning regarding variable constness.
9943
9944 * xterm.c (handle_one_xevent): Fix a C warning.
9945
334a1195
JR
99462007-09-18 Jason Rumney <jasonr@gnu.org>
9947
9948 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
9949
880820fe 99502007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
9951
9952 * gtkutil.c (gdpy_def): New variable.
9953 (xg_initialize): Initialize gdpy_def.
9954 (xg_display_close): If no other display exists, set gdpy_def to a
9955 new connection.
9956
880820fe 99572007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
9958
9959 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
9960 when we have no file name for the icon.
9961 (xg_tool_bar_expose_callback): Remove.
9962 (xg_create_tool_bar): Don't connect expose signal to
9963 xg_tool_bar_expose_callback.
9964 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
9965
4d580af2
AS
99662007-09-16 Andreas Schwab <schwab@suse.de>
9967
9968 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
9969 values instead of zapping them.
9970
aca946f3
GM
99712007-09-14 Glenn Morris <rgm@gnu.org>
9972
9973 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
9974 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
9975 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
9976 scope and rename to omfib_buffer for clarity.
9977 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
9978
25c460e5
KH
99792007-09-14 Kenichi Handa <handa@m17n.org>
9980
9981 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
9982
09b69f01
JR
99832007-09-13 Jason Rumney <jasonr@gnu.org>
9984
9985 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
9986
9987 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
9988
9989 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
9990 (mac_term_init): Call here instead, passing rif.
9991
442218db
GM
99922007-09-13 Glenn Morris <rgm@gnu.org>
9993
9994 * s/hpux.h: No longer define `static' as nothing.
9995
880820fe 99962007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
9997
9998 * callint.c (Fcall_interactively): Remove unused var `fun'.
9999
1971a872
RF
100002007-09-12 Romain Francoise <romain@orebokech.com>
10001
10002 * window.c (prefer_window_split_horizontally, display_buffer):
10003 Revert 2007-09-08 change.
10004
2d33f506
GM
100052007-09-12 Glenn Morris <rgm@gnu.org>
10006
585474ae 10007 * alloca.c: Remove file.
ca7af97a
GM
10008 * Makefile.in (alloca): Do not undef.
10009 (allocaobj, alloca.o): Remove.
10010 (otherobj): Remove allocaobj.
10011 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10012 * regex.c (C_ALLOCA): Remove all references and code that was only
10013 used when this was defined.
10014 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10015 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
10016 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10017
2d33f506 10018 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
10019
10020 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10021 (menu_grab_callback): All uses changed.
10022
10023 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10024 (x_reply_selection_request): All uses changed.
2d33f506 10025
18a4a65e
SM
100262007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10027
10028 * lread.c (load_warn_old_style_backquotes): Change message to look
10029 better when it appears in the middle of byte-compiler messages.
10030
47cc8819
DN
100312007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10032
b7ea0894
DN
10033 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10034
47cc8819
DN
10035 * xterm.c (x_create_terminal): Add comment.
10036
10037 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10038
5632bd0f
RS
100392007-09-10 Richard Stallman <rms@gnu.org>
10040
10041 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10042
880820fe 100432007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 10044
4bca9161
MC
10045 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
10046 (DEFUN): Document `intspec', use it instead of `prompt'.
10047
04724b69
MC
10048 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
10049
8a6d230a
MC
10050 * data.c (Finteractive_form): If the interactive specification starts
10051 with a `(', use it as a Lisp form.
10052
09fbdf6c
MC
10053 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
10054 name and file modes.
10055
ccb5c14f
MC
10056 * callint.c (Fcall_interactively): Comment fixes.
10057
023accd6
SM
100582007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10059
10060 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
10061 and compiled functions.
10062
f26b9544
EZ
100632007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
10064
10065 * window.c (prefer_window_split_horizontally): New variable.
10066 (display_buffer): Consider splitting window horizontally depending
10067 on prefer_window_split_horizontally.
10068
4d395425
EZ
100692007-09-08 Eli Zaretskii <eliz@gnu.org>
10070
97ddc760 10071 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 10072
08c1d235
SM
100732007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10074
179cef48
SM
10075 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
10076
08c1d235
SM
10077 * frame.c (x_set_frame_parameters): Check number is positive before
10078 using XFASTINT.
10079
10080 * window.c (freeze_window_start): Don't presume selected_window holds
10081 a window object.
92f94a12 10082 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 10083
97ddc760 100842007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
10085
10086 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
10087
90ab5c62
SM
100882007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10089
10090 * window.c (Vsplit_window_preferred_function): New var.
10091 (Fdisplay_buffer): Use it.
10092 (syms_of_window): Export, and initialize it.
10093
1ab2cd43
TTN
100942007-09-06 Pixel <pixel@mandriva.com> (tiny change)
10095
10096 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
10097
0b0515bc
GM
100982007-09-06 Glenn Morris <rgm@gnu.org>
10099
57fd5c55 10100 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
10101 * xselect.c (x_reply_selection_request) <cnt>: Move static
10102 variable to file scope.
10103
98594580
SM
101042007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
10105
10106 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
10107 consistent values of selected_frame and selected_window.
10108
0f4c7aef
JR
101092007-09-04 Jason Rumney <jasonr@gnu.org>
10110
10111 * w32console.c (initialize_w32_display): Zero unused hooks.
10112
e4019195
DN
101132007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10114
10115 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
10116 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
10117
bce179b5
JR
101182007-09-04 Jason Rumney <jasonr@gnu.org>
10119
a0236551
JR
10120 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
10121 in w32console.c. Set up input. Remove XXX comments that have been
10122 confirmed as correct.
10123
a4926668
JR
10124 * s/ms-w32.h (MULTI_KBOARD): Define.
10125
953bf0dc
JR
10126 * w32console.c (one_and_only_w32cons): Remove.
10127 (initialize_w32_display): Take terminal argument.
10128
10129 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
10130 initialize_w32_display.
10131 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
10132
bce179b5
JR
10133 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
10134
10135 * keyboard.c (discard_mouse_events): Discard it.
10136 (make_lispy_event): Translate it to a lisp event.
10137 (lispy_wheel_names): Add wheel-left and right events.
10138 (syms_of_keyboard): Enlarge wheel_syms.
10139
10140 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
10141 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
10142
10143 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
10144
10145 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
10146 from WM_MOUSEHWHEEL.
10147 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
10148
10149 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
10150 terminal.
10151
10152 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
10153 keyboard for the terminal.
10154
92cd6a7c
DN
101552007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10156
10157 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
10158 (Vresume_tty_hook): Rename from Vresume_tty_functions.
10159 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
10160 and resume-tty-function to resume-tty-hook.
10161 (Fsuspend_tty, Fresume_tty): Use new names.
10162
880820fe 101632007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
10164
10165 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
10166 if it starts with "n:".
10167
880820fe 101682007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
10169
10170 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
10171
6b8e474c
SM
101722007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10173
92d9c1d4
SM
10174 * frame.h:
10175 * frame.c (Qterm_environment_variable): Remove.
10176 (syms_of_frame): Don't init and staticpro it.
10177
92d9c1d4
SM
10178 * callproc.c (getenv_internal): Remove special case for $TERM.
10179
6b8e474c
SM
10180 * callproc.c (Vinitial_environment): New variable.
10181 (set_initial_environment): Initialize it.
10182 (syms_of_callproc): Declare it.
10183 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
10184 TERM under which a process runs is never related to the TERM in which
10185 Emacs is running.
10186
0f1444e1
DN
101872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10188
10189 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
10190 * s/darwin.h: ... do it here.
10191
b8866860
SM
101922007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10193
10194 * lisp.h (set_initial_environment): Rename from set_global_environment.
10195
10196 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
10197 removed by mistake on the multi-tty branch.
10198
10199 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
10200 (Fmodify_frame_parameters): Return a value.
10201
10202 * image.c (png_load): Comment-out var only used in commented-out code.
10203
10204 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
10205 before passing it to mark_object.
10206
10207 * xfaces.c (internal_resolve_face_name): Return a value.
10208 (internal_resolve_face_name, resolve_face_name_error): Comment out.
10209
10210 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
10211 (x_icon): Comment-out var only used in commented-out code.
10212
0a42be6d
RF
102132007-08-29 Romain Francoise <romain@orebokech.com>
10214
10215 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
10216 QUIT hasn't been provided.
10217
8d9cc0b7
MB
102182007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10219
10220 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 10221 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
10222 (set_initial_environment): Initialise Vprocess_environment.
10223
10224 * config.in: Disable multi-keyboard support on a mac.
10225
10226 * frame.c (Qterm_environment_variable)
10227 (Qdisplay_environment_variable): New variables.
10228 (syms_of_frame): Intern and staticpro them.
10229 (Fmake_terminal_frame): Disable output method test.
10230
10231 * frame.h: Declare them here.
10232
10233 * macfns.c (x_set_mouse_color): Get rif from the frame.
10234 (x_set_tool_bar_lines): Don't use updating_frame.
10235 (mac_window): Add 2 new parameters for consistency with other systems.
10236 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
10237 frame parameters following what is done in X11 and w32. Don't use
10238 FRAME_MAC_DISPLAY_INFO.
10239 (Fx_open_connection, start_hourglass): Remove window-system check.
10240 (x_create_tip_frame): Get the keyboard from the terminal.
10241
10242 * macmenu.c: Reorder includes.
10243 (Fx_popup_menu): Use terminal specific mouse_position_hook.
10244
10245 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
10246 terminal parameter.
10247 (x_clear_frame): Add a frame parameter.
10248 (note_mouse_movement): Get rif from the frame.
10249 (mac_term_init): Initialize the terminal.
10250 (mac_initialize): Make static and move terminal initialization ...
10251 (mac_create_terminal): ... to this new function.
10252
10253 * macterm.h (struct mac_display_info): Add terminal.
7196c970 10254 (mac_initialize): Delete declaration.
8d9cc0b7 10255
381864b2 10256 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
10257
10258 * sysdep.c: Comment out text after #endif.
10259
10260 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
10261 is defined. Better initialize ttys in windows. Use terminal
10262 specific mouse_position_hook.
10263
10264 * termhooks.h (union display_info): Add mac_display_info.
10265
b8866860
SM
10266 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
10267 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
10268 frame parameters following what is done in X11.
10269
10270 * w32term.c (w32_initialize): Make static.
10271
10272 * xselect.c (x_handle_selection_clear): Only access
10273 terminal->kboard when MULTI_KBOARD is defined.
10274
10275 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
10276 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
10277
102782007-08-29 Jason Rumney <jasonr@gnu.org>
10279
10280 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
10281 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
10282
10283 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
10284 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
10285
10286 * keyboard.c (restore_kboard_configuration): Only define when
10287 MULTI_KBOARD defined.
10288
35277b03 10289 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
10290 (OBJ1): Add terminal.$(O)
10291
b8866860
SM
10292 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
10293 Don't define function body.
8d9cc0b7
MB
10294 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
10295
10296 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
10297
10298 * w32.c (request_sigio, unrequest_sigio): Remove.
10299
10300 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
10301 (w32con_clear_frame, w32con_clear_end_of_line)
10302 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
10303 (w32con_delete_glyphs, w32con_set_terminal_window)
10304 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
10305 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
10306 Add terminal arg.
8d9cc0b7
MB
10307 (PICK_FRAME): Remove.
10308 (w32con_write_glyphs): Use frame specific terminal coding.
10309 (one_and_only_w32cons): New global variable.
10310 (initialize_w32_display): Use it for storing hooks.
10311 (create_w32cons_output): New function.
10312
10313 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
10314 arg a frame.
10315
b8866860
SM
10316 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
10317 Set window_system.
8d9cc0b7
MB
10318 (x_set_tool_bar_lines): Don't use updating_frame.
10319 (Fx_create_frame): Set terminal and ref count.
10320 (Fx_open_connection): Remove window-system check.
10321
10322 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
10323
10324 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
10325 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
10326 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
10327 Add frame arg.
10328 (x_delete_terminal, w32_create_terminal): New functions.
10329 (w32_term_init): Create a terminal.
10330 (w32_initialize): Move terminal specific initialization to
10331 w32_create_terminal.
10332
b8866860 10333 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
10334 (w32_clear_rect, w32_clear_area): Use background from frame.
10335 (w32_display_info): Add terminal.
10336 (w32_sys_ring_bell, x_delete_display): Declare here.
10337
10338 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
10339
10340 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
10341
103422007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
10343
10344 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
10345 Fix get_named_tty calls for the controlling tty.
10346
103472007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
10348
10349 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
10350
103512007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
10352
10353 * term.c (tty_insert_glyphs): Add missing first parameter.
10354
880820fe 103552007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 10356
b8866860
SM
10357 * buffer.c (Fbuffer_list, Fbury_buffer):
10358 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
10359
10360 * cm.c (current_tty): New variable, for cmputc().
10361 (cmputc): Use it.
10362 (cmcheckmagic): Add tty parameter, look up terminal streams there.
10363 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
10364 (cmgoto): Add tty parameter. Pass it on to calccost().
10365 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
10366
10367 * cm.h (emacs_tputs): New macro to set current_tty, and then call
10368 tputs().
10369 (current_tty): New variable, for cmputc().
10370 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
10371
10372 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
10373 (internal_condition_case, internal_condition_case_1)
10374 (internal_condition_case_2): Don't abort when x_catching_errors.
10375
10376 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
10377 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
10378 prevent crashes caused by bogus longjmps in read_char.
10379
10380 * keymap.h (Fset_keymap_parent): Add EXFUN.
10381
10382 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
10383 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10384 Remove redundant definition.
10385
b8866860
SM
10386 * macfns.c (x_set_mouse_color, x_make_gc):
10387 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 10388
b8866860
SM
10389 * w32term.c (x_free_frame_resources):
10390 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10391 (w32_initialize): Use the accessor macros for terminal characteristics.
10392
10393 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
10394 Use the accessor macros for terminal characteristics.
10395 * msdos.c (internal_terminal_init): Use the accessor macros for
10396 terminal characteristics.
b8866860
SM
10397 (ScreenVisualBell, internal_terminal_init):
10398 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10399
10400 * termopts.h (no_redraw_on_reenter): Declare.
10401
10402 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 10403 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 10404 (Fgarbage_collect): Call them.
03f06e5c 10405 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
10406
10407 * prefix-args.c: Include stdlib.h for exit.
10408
10409 * syssignal.h: Add comment.
10410
10411 * indent.c: Include stdio.h.
10412
10413 * window.h (Vinitial_window_system): Declare.
10414 (Vwindow_system): Delete declaration.
10415
10416 * fontset.c (Finternal_char_font): Use FRAME_RIF.
10417
10418 * image.c (lookup_image): Don't initialize `c' until the xasserts
10419 have been run.
10420
10421 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
10422 FRAME_FOREGROUND_PIXEL.
10423
10424 * print.c (print_preprocess): Don't lose print_depth levels while
10425 iterating.
10426
b8866860
SM
10427 * widget.c (update_from_various_frame_slots):
10428 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10429
10430 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
10431 frames.
10432 (window_internal_height): Remove bogus make_number call.
b8866860 10433 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
10434
10435 * fileio.c (Fread_file_name): Update comment.
10436
b8866860
SM
10437 * callint.c (Fcall_interactively):
10438 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
10439 Make sure it is correctly unwound.
10440
10441 * xsmfns.c (x_session_close): New function.
10442
03f06e5c 10443 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
10444 Delete declarations.
10445
10446 * xterm.h: Remove declaration for x_fully_uncatch_errors.
10447 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 10448 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 10449 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
10450
10451 * lread.c: Include setjmp.h. Update declaration of `read_char'.
10452 (read_filtered_event): Call `read_char' with a local
10453 `wrong_kboard_jmpbuf'.
10454
b8866860
SM
10455 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
10456 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
10457
10458 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
10459 systems.
10460
b8866860 10461 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 10462 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 10463 (Fset_quit_char): EXFUN.
03f06e5c 10464 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
10465 (init_sys_modes, reset_sys_modes): Update prototypes.
10466 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
10467
b8866860
SM
10468 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
10469 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 10470 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 10471 Delete declarations.
03f06e5c
JB
10472 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
10473 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
10474 New declarations.
10475
10476 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
10477 already does that during init_display(). Call syms_of_keymap
b8866860
SM
10478 before syms_of_keyboard. Call `syms_of_terminal'.
10479 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
10480 (shut_down_emacs): Call reset_all_sys_modes() instead of
10481 reset_sys_modes().
10482
10483 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
10484 (internal_resolve_face_name, resolve_face_name_error): New functions.
10485 (resolve_face_name): Protect against loops and errors thrown by Fget.
10486 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
10487 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
10488
10489 * scroll.c: Replace CURTTY() with local variables throughout the
10490 file (where applicable).
10491 (calculate_scrolling, calculate_direct_scrolling)
10492 (scrolling_1, scroll_cost): Use the accessor macros for terminal
10493 characteristics.
10494
10495 * keymap.c (Vfunction_key_map): Remove.
b8866860 10496 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
10497 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
10498 (Vkey_translation_map): Remove.
10499 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 10500 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
10501 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
10502 Update for terminal-local key-translation-map.
10503
10504 * Makefile.in (callproc.o): Update dependencies.
10505 (lisp, shortlisp): Add termdev.elc.
10506 (obj): Add terminal.o.
10507 (terminal.o): Add dependencies.
10508 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
10509 (data.o, fns.o): Add termhooks.h dependency.
10510 (SOME_MACHINE_LISP): Add dnd.elc.
10511 (minibuf.o): Fix typo.
10512 Update dependencies.
10513
10514 * data.c (do_symval_forwarding, store_symval_forwarding)
10515 (find_symbol_value): Use the selected frame's keyboard, not
10516 current_kboard.
10517
10518 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
10519 Vwindow_system.
10520
10521 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
10522 Fmenu_bar_open.
10523 (syms_of_xmenu): Update defsubr.
10524 (mouse_position_for_popup, Fx_popup_menu)
10525 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
10526 (set_frame_menubar, free_frame_menubar)
10527 (create_and_show_popup_menu, xmenu_show, )
10528 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
10529 an X frame.
10530
10531 * xselect.c (x_own_selection): Abort if not an X frame.
10532 (some_frame_on_display): Check if it is an X frame.
10533 (x_handle_selection_clear): Deal with MULTI_KBOARD.
10534
10535 * coding.c: Include frame.h and termhooks.h.
03f06e5c 10536 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
10537 (Fset_terminal_coding_system_internal)
10538 (Fset_keyboard_coding_system_internal)
10539 (Fkeyboard_coding_system)
03f06e5c
JB
10540 (Fterminal_coding_system): Add a terminal parameter.
10541 Get terminal_coding from the terminal.
8d9cc0b7
MB
10542 (init_coding_once): Don't call setup_coding_system here.
10543
10544 * dispextern.h (set_scroll_region, turn_off_insert)
10545 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
10546 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 10547 (delete_tty, updating_frame)
8d9cc0b7
MB
10548 (produce_special_glyphs, produce_glyphs, write_glyphs)
10549 (insert_glyphs): Remove.
10550 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 10551 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 10552 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
10553
10554 * frame.h (enum output_method): Add output_initial.
10555 (struct x_output): Delete.
b8866860
SM
10556 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10557 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
10558 (tty_display): Delete.
10559 (struct frame): Add buried_buffer_list, foreground_pixel,
03f06e5c 10560 background_pixel and terminal. Delete kboard
8d9cc0b7
MB
10561 (union output_data): Add tty.
10562 (FRAME_KBOARD): Get the kboard from the terminal.
10563 (FRAME_INITIAL_P): New macro.
10564 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
10565 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
10566 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
10567 New declarations.
8d9cc0b7
MB
10568
10569 * termchar.h (tty_output, tty_display_info): New structures.
10570 (tty_list): Declare.
10571 (FRAME_TTY, CURTTY): New macros.
10572 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
10573 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
10574 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
10575 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
10576
10577 * callproc.c: Include frame.h and termhooks.h, for terminal
10578 parameters.
10579 (add_env): New function.
10580 (child_setup): Use it.
b8866860 10581 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
10582 (getenv_internal): Fix get_terminal_param call.
10583 (Fgetenv_internal, egetenv): Update doc.
10584 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 10585 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
10586 strings.
10587 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
10588 (getenv_internal): Add terminal parameter.
10589 Handle Vlocal_environment_variables.
8d9cc0b7
MB
10590 (Fgetenv_internal): Add terminal parameter.
10591 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 10592 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
10593 (set_initial_environment): Rename from set_global_environment.
10594 Store Emacs environment in initial frame parameter.
10595
10596 * xdisp.c (redisplay_internal): Update references to
10597 `previous_terminal_frame'.
10598 (display_mode_line, Fformat_mode_line): Replace calls to
10599 `push_frame_kboard' with `push_kboard'.
10600 (get_glyph_string_clip_rects): Add extra parentheses and
10601 braces to prevent compiler warnings.
10602 (calc_pixel_width_or_height): Add xassert to check that the
10603 frame is alive. Don't call `lookup_image' on a termcap frame.
10604 (message2_nolog, message3_nolog, redisplay_internal)
10605 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
10606 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
10607 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
10608 (Fx_display_pixel_width, Fx_display_pixel_height)
10609 (Fx_display_planes, Fx_display_color_cells)
10610 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
10611 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
10612 (Fx_display_backing_store, Fx_display_visual_class)
10613 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 10614 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
10615
10616 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
10617 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
10618 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10619 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
10620 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
10621 terminal that is being deleted.
10622 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 10623 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
10624 (Fx_close_connection, Fx_synchronize): Unify argument names with
10625 the rest of the DEFUNs.
10626
10627 * dispnew.c (Fsend_string_to_terminal): Update call to
10628 `get_tty_terminal'.
10629 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 10630 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
10631 FRAME_TERMCAP_P and FRAME_TTY.
10632 (window_change_signal): Don't believe width/height values that are
10633 impossibly small.
10634 (Vinitial_window_system): Rename from Vwindow_system.
10635 (termscript, Wcm, rif): Delete.
10636
10637 * termhooks.h (struct terminal): New struct containing the
10638 previously global text display hooks and new members NAME,
10639 DELETED and PARAM_ALIST.
10640 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
10641 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
10642 (FRAME_RIF): New macros.
10643 (get_terminal_param, get_device): New declarations.
10644 (termscript): Delete declaration.
10645
10646 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
10647 (XTflash, x_free_frame_resources, x_scroll_bar_create)
10648 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
10649 FRAME_FOREGROUND_PIXEL.
10650 (x_fully_uncatch_errors): Disable definition.
10651 (x_scroll_bar_expose): Fix reference to foreground pixel.
10652 (XTread_socket): Disable loop on all X displays.
10653 (x_delete_terminal): Don't set terminal->deleted and let
10654 delete_terminal delete the frames on the terminal.
10655 (x_delete_display): Doc update to reflect changes in
10656 delete_terminal.
10657 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
10658 (deleting_tty): Remove old variable.
10659 (Fsuspend_tty): Call clear_tty_hooks.
10660 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
10661 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
10662 errors on X frames.
10663 (x_catch_errors_unwind): Abort if x_error_message is NULL.
10664 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 10665 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
10666 (XTset_terminal_modes, XTreset_terminal_modes)
10667 (XTread_socket, x_connection_closed, x_term_init)
10668 (x_term_init, x_delete_display): Add terminal parameter.
10669 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
10670 X connections.
10671
bf380f53
GM
10672 * frame.c: Include termchar.h.
10673 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
10674 (Qwindow_system, Qenvironment, Qterm_environment_variable)
10675 (Qdisplay_environment_variable): New vars.
10676 (Fframep): Deal with output_initial.
10677 (Fframe-live-p): Doc fix.
10678 (Fwindow-system): New function.
8d9cc0b7
MB
10679 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
10680 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 10681 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 10682 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
10683 (Fmake_terminal_frame): Handle NULL tty names correctly.
10684 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
10685 (Fdelete_frame): Remove unused variable `count'. Don't allow other
10686 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 10687 (Fframe_with_environment): New function.
b8866860 10688 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
10689 (get_future_frame_param): New function.
10690 (Fmake_terminal_frame): Use it.
2d33f506 10691 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
10692
10693 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
10694 * sysdep.c (reset_sys_modes): Update for renames.
10695
10696 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 10697 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
10698 (syms_of_keyboard): Defsubr them.
10699 (Fset_input_meta_mode, Fset_quit_char): New functions.
10700 (Fset_input_mode): Split to above functions.
10701
10702 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
10703 parameter. Use it in call to `read_char'.
b8866860
SM
10704 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
10705 Set wrong_kboard_jmpbuf correctly in recursive calls.
10706 Use current_kboard to access Vkeyboard_translate_table.
10707 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
10708 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
10709 Update longjmp invocations. Remember the original current_kboard,
10710 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
10711 changes it. Comment out unnecessary calls to
10712 `record_single_kboard_state' and `any_kboard_state'.
10713 Update recursive calls.
8d9cc0b7
MB
10714 (wrong_kboard_jmpbuf): Remove global variable.
10715 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
10716 Handle deleted interrupted_kboards correctly; that is a legal
10717 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 10718 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
10719 (any_kboard_state, single_kboard_state)
10720 (push_frame_kboard): Remove function.
10721 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
10722 been deleted. Remove unused variable. Help debugging by not
10723 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
10724 kboard of the selected frame when the stored kboard object has
10725 been deleted before pop_kboard.
10726 (temporarily_switch_to_single_kboard): Change first parameter to a
10727 frame pointer. Throw an error when caller wants to change kboards
10728 while in single_kboard mode. Don't push_kboard if we weren't in
10729 single kboard state. Don't pop_kboard if we popped into any
10730 kboard state.
10731 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 10732 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
10733 up single_kboard mode.
10734 (Frecursive_edit): Switch to single_kboard mode only in nested
10735 command loops.
b8866860
SM
10736 (cmd_error, command_loop, command_loop_1, timer_check):
10737 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
10738 `record_single_kboard_state'.
10739 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 10740 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
10741 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
10742 `fatal_error_signal'.
10743 (record_single_kboard_state): Don't push_kboard if we weren't in
10744 single kboard state. Don't pop_kboard if we popped into any
10745 kboard state.
10746 (push_frame_kboard): Rename to push_kboard.
10747 (kbd_buffer_get_event): Use FRAME_TERMINAL.
10748 (read_avail_input): Read input from all terminals.
10749 (mark_kboards): Also mark Vkeyboard_translate_table.
10750 (kbd_buffer_store_event_hold): Simplify condition.
10751 (read_key_sequence): Reinitialize fkey and keytran at each replay.
10752 (Vkeyboard_translate_table): Move to struct kboard.
10753 (init_kboard): Initialize Vkeyboard_translate_table.
10754 (syms_of_keyboard): Use DEFVAR_KBOARD to define
10755 Vkeyboard_translate_table. Update doc strings. Update docs of
10756 local-function-key-map and function-key-map.
10757
10758 * terminal.c: New file.
10759
10760 * term.c: Include errno.h.
10761 (Vring_bell_function, device_list, initial_device)
10762 (next_device_id, ring_bell, update_begin, update_end)
10763 (set_terminal_window, cursor_to, raw_cursor_to)
10764 (clear_to_end, clear_frame, clear_end_of_line)
10765 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
10766 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
10767 (syms_of_term): Move their initialization to terminal.c.
10768 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
10769 (Ftty_display_color_cells)
10770 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 10771 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
10772 (init_tty, maybe_fatal): New functions.
10773 (Ftty_type): Return nil if terminal is not on a tty instead of
10774 throwing an error. Doc update.
10775 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 10776 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
10777 (delete_tty): Use terminal->deleted.
10778 (tty_set_terminal_modes): Rename from set_terminal_modes.
10779 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
10780 (set_scroll_region): Rename to `tty_set_scroll_region'.
10781 (turn_on_insert): Rename to `tty_turn_on_insert'.
10782 (turn_off_insert): Rename to `tty_turn_off_insert'.
10783 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
10784 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
10785 (toggle_highligh): Rename to `tty_toggle_highlight'.
10786 (background_highlight): Rename to `tty_background_highlight'.
10787 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
10788 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
10789 (tty_set_scroll_region, tty_background_highlight)
10790 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
10791 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
10792 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
10793 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
10794 Add static modifier.
10795 (tty_reset_terminal_modes, tty_set_terminal_window)
10796 (tty_set_scroll_region, tty_background_highlight)
10797 (tty_highlight_if_desired, tty_cursor_to)
10798 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
10799 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
10800 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
10801 renames.
10802
880820fe 108032007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
10804
10805 * keyboard.c: Qrtl is new.
10806 (parse_tool_bar_item): Handle :rtl keyword.
10807 (syms_of_keyboard): Intern :rtl keyword.
10808
10809 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
10810
10811 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
10812 so no Lisp code is executed.
10813 (file_for_image, find_rtl_image): New functions.
10814 (xg_get_image_for_pixmap): Use file_for_image
10815 (update_frame_tool_bar): If direction is RTL, use RTL image if
10816 defined. Use Gtk stock images if defined.
10817
83cc8d35
YM
108182007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10819
10820 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
10821 for nonexistent or zero-width glyph in composition glyph.
10822
e60c4e15
SM
108232007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
10824
d7e2a28f
SM
10825 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
10826
e60c4e15
SM
10827 * xdisp.c (Finvisible_p): New function.
10828 (syms_of_xdisp): defsubr it.
10829
ee163e6d
JB
108302007-08-24 Juanma Barranquero <lekktu@gmail.com>
10831
10832 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
10833 Doc fixes.
10834
90fa408d
YM
108352007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10836
35277b03 10837 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 10838
cac4219c
MR
108392007-08-24 Martin Rudalics <rudalics@gmx.at>
10840
10841 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
10842 whether decoding has modified buffer contents.
10843
5fc9fdeb
JR
108442007-08-24 Jason Rumney <jasonr@gnu.org>
10845
10846 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
10847 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
10848 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
10849 (init_svg_functions) [HAVE_NTGUI]: New function.
10850 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
10851 (svg_load_image): Use them.
10852 (svg_load_image) [HAVE_NTGUI]: Implement background.
10853
93b23406
YM
108542007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10855
10856 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
10857 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
10858 (LIBX): Remove @RSVG_LIBS@.
10859 (LIBES): Add $(RSVG_LIBS).
10860
10861 * image.c (svg_load_image): Blend with specified background if exists.
10862 Use IMAGE_BACKGROUND. Add Mac OS Support.
10863
10864 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
10865 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
10866 Remove macros.
10867 [MAC_OSX] (socket_callback): Do nothing.
10868 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
10869 ReceiveNextEvent.
10870 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
10871 socket_callback.
10872 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
10873
2467875c
GM
108742007-08-22 Glenn Morris <rgm@gnu.org>
10875
ff8da443 10876 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 10877
4ab27a43
GM
108782007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
10879
10880 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 10881
666e0eda
GM
10882 * image.c: Add support for SVG images. Some additional comments
10883 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
10884 (svg_image_p): New function to test for SVG image.
10885 (svg_load): New function to load SVG image.
10886 (svg_load_image): New function, helper for svg_load.
10887 (Qsvg): New Lisp_object.
10888 (svg_keyword_index): New enum.
10889 (svg_format): New static `image_keyword' struct.
10890 (svg_type): New static `image_type' struct.
10891 (librsvg/rsvg.h): Include it.
4ab27a43 10892
b636b4c1
SM
108932007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
10894
10895 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
10896
9ecb827b
SM
108972007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
10898
1d064697
SM
10899 * lread.c (Qold_style_backquotes): New var.
10900 (syms_of_lread): Init and staticpro it.
10901 (load_warn_old_style_backquotes): New fun.
10902 (Fload): Use them to warn about old style backquotes.
10903 (end_of_file_error, Fload): Remove unused vars.
10904
5772ed4b
SM
10905 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
10906
9ecb827b 10907 * lread.c (Vold_style_backquotes): New var.
5aa273b0 10908 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
10909 (read1): Set it when we find an old-style (back)quote.
10910
32e1c7b1
JR
109112007-08-22 Jason Rumney <jasonr@gnu.org>
10912
10913 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
10914
b8fa755b
KY
109152007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
10916
10917 * puresize.h (BASE_PURESIZE): Increase to 1140000.
10918
1283140e
RS
109192007-08-19 Richard Stallman <rms@gnu.org>
10920
10921 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
10922
2c4685ee
AS
109232007-08-19 Andreas Schwab <schwab@suse.de>
10924
10925 * alloc.c (pure): Round PURESIZE up.
10926
880820fe 109272007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
10928
10929 * xterm.c (handle_one_xevent): Remove check that mouse click is in
10930 active frame.
10931
6e33efc4
RS
109322007-08-16 Richard Stallman <rms@gnu.org>
10933
10934 * eval.c (Fcommandp): Add parens to clarify.
10935
10936 * minibuf.c (Fall_completions): Use enum for type of table.
10937
10938 * emacs.c (USAGE2): Improve text.
10939
fcf8ff2e
GM
109402007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
10941
5205ee62
GM
10942 * term.c (tty_default_color_capabilities): Declare static
10943 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 10944
880820fe 109452007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
10946
10947 * gtkutil.c (update_frame_tool_bar): Use -1 as index
10948 to gtk_toolbar_insert.
10949
4a181359
SM
109502007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
10951
1bc99c9c
SM
10952 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
10953
4a181359
SM
10954 * insdel.c (reset_var_on_error): New fun.
10955 (signal_before_change, signal_after_change):
10956 Use it to reset (after|before)-change-functions to nil in case of error.
10957 Bind inhibit-modification-hooks to t.
10958 Don't bind (after|before)-change-functions to nil while they run.
10959
6c28435c
YM
109602007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10961
10962 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
10963 filling pixmap with stippled background.
10964
ad3b3e02
YM
109652007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10966
10967 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
10968 Don't use invisible frame as parent window for repositioning.
10969
a22dec27
SM
109702007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
10971
10972 * print.c (new_backquote_output): Rename from old_backquote_output.
10973 (print): Inverse its logic (according to its name) so as to match the
10974 behavior of new_backquote_flag in lread.c.
10975
7b7d07bb
YM
109762007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10977
10978 * gmalloc.c (posix_memalign): New function.
10979
10980 * macterm.c (frame_highlight, frame_unhighlight): Don't call
10981 ActivateControl/DeactivateControl here.
10982 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
10983 frame-notice-user-settings is non-nil.
10984 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
10985 for kEventParamFMFontStyle.
10986 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
10987 mac_pass_command_to_system and mac_pass_control_to_system here.
10988 (XTread_socket): Call ActivateControl/DeactivateControl here.
10989 (XTread_socket) [TARGET_API_MAC_CARBON]:
10990 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
10991 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
10992 for window repositioning.
7b7d07bb 10993
22e9fe24
GM
109942007-08-08 Glenn Morris <rgm@gnu.org>
10995
10996 * Replace `iff' in doc-strings and comments.
10997
ae494350
CY
109982007-08-07 Chong Yidong <cyd@stupidchicken.com>
10999
11000 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11001
6f2528d8
MR
110022007-08-07 Martin Rudalics <rudalics@gmx.at>
11003
11004 * fileio.c (Finsert_file_contents): Run format-decode and
11005 after_insert_file_functions on entire buffer when REPLACE is
11006 non-nil and inhibit modification_hooks and point_motion_hooks.
11007 For consistency, run after_insert_file_functions iff something
11008 got inserted. Move signal_after_change and update_compositions
11009 after code running after_insert_file_functions. Make sure that
6b8e474c 11010 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 11011
3ceeb306
YM
110122007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11013
11014 * emacs.c (main)
11015 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11016 Call malloc_enable_thread on interactive startup.
11017
11018 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
11019 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11020 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
11021 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11022 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11023 New functions.
11024
ca5e6fd5
CY
110252007-08-06 Chong Yidong <cyd@stupidchicken.com>
11026
32bfce5d
CY
11027 * xdisp.c (redisplay_window): When restoring original buffer
11028 position, make sure it is still valid.
11029
ca5e6fd5
CY
11030 * image.c (png_load): Ignore png-supplied background color.
11031
a5b11587
YM
110322007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11033
11034 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11035 Use kCFAbsoluteTimeIntervalSince1970.
11036
11037 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11038 New variable.
11039 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11040 event loop should be quit.
11041 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11042 Quit dialog event loop if quit_dialog_event_loop is set.
11043
11044 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
11045 (Selection): New typedef. Use instead of ScrapRef.
11046 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
11047 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
11048 (mac_clear_selection): Rename from clear_scrap.
11049 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 11050 scrap_has_target_type. All uses changed.
a5b11587
YM
11051 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11052 (mac_selection_has_target_p): New functions.
11053 (mac_put_selection_value): Rename from put_scrap_string.
11054 (mac_get_selection_value): Rename from get_scrap_string.
11055 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
11056 (put_scrap_private_timestamp, scrap_has_target_type)
11057 (get_scrap_private_timestamp): Remove functions.
11058 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
11059 (x_own_selection, x_get_local_selection):
11060 Use mac_valid_selection_value_p.
11061 (x_own_selection): Don't use put_scrap_private_timestamp.
11062 Record OWNERSHIP-INFO into Vselection_alist instead.
11063 (x_get_local_selection): Don't check type if request is local.
11064 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
11065 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
11066
880820fe 110672007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
11068
11069 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
11070 add comment explaining why.
11071
73ff9d42
RS
110722007-08-03 Richard Stallman <rms@gnu.org>
11073
11074 * fileio.c (Fvisited_file_modtime): Use make_time.
11075
54ed9a2d 110762007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
11077
11078 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
11079 build.
11080
65a9c8e2
SM
110812007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
11082
11083 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
11084
c5925799
KY
110852007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
11086
11087 * puresize.h (BASE_PURESIZE): Increase to 1130000.
11088
adef3de7
RS
110892007-07-30 Richard Stallman <rms@gnu.org>
11090
11091 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
11092
880820fe 110932007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
11094
11095 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
11096
a10421a1
NR
110972007-07-28 Nick Roberts <nickrob@snap.net.nz>
11098
11099 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
11100 remote default-directory.
11101
11102 * buffer.c (mode-line-format): Update doc string.
11103
0cb1ae20
YM
111042007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11105
11106 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
11107 scroll bar gap.
11108 (x_scroll_bar_create): Set bar->fringe_extended_p.
11109 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
11110 on frame edge. Check fringe background extension. Don't clear
11111 extended fringe background area.
11112
11113 * w32term.h (struct scroll_bar): New member fringe_extended_p.
11114 (w32_fill_area): Enclose multiple statements with do ... while (0).
11115
11116 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
11117 Extend fringe background to scroll bar gap.
11118 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
11119 Set bar->fringe_extended_p.
11120 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11121 Put leftmost/rightmost scroll bars on frame edge. Check fringe
11122 background extension. Don't clear extended fringe background area.
11123
11124 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11125 New member fringe_extended_p.
11126
cacc7b51
GM
111272007-07-25 Glenn Morris <rgm@gnu.org>
11128
11129 * Relicense all FSF files to GPLv3 or later.
11130
11131 * COPYING: Switch to GPLv3.
11132
89835619
SM
111332007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
11134
c4f46926
SM
11135 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
11136
11137 * data.c (Finteractive_form): Check for the presence of an
11138 `interactive-form' symbol property more thoroughly.
11139
11140 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
11141 present, analogous to the function-documentation property.
11142
ee04257d
JR
111432007-07-24 Jason Rumney <jasonr@gnu.org>
11144
11145 * w32fns.c (x_real_positions): Get real position from OS instead of
11146 calculating it.
11147
50624218
JR
111482007-07-23 Jason Rumney <jasonr@gnu.org>
11149
11150 * filelock.c (current_lock_owner): Allow for @ sign in username.
11151
3650f60e
NR
111522007-07-22 Nick Roberts <nickrob@snap.net.nz>
11153
11154 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
11155 remote default-directory.
11156
11157 * buffer.c (mode-line-format): Describe above case in doc string.
11158
1e899515 111592007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 11160
75be5258
EZ
11161 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
11162 Define if not defined.
11163
2b6e2f4d
JR
111642007-07-18 Jason Rumney <jasonr@gnu.org>
11165
11166 * w32proc.c (w32_executable_type): Handle 64 bit executables.
11167
23dacf80
JB
111682007-07-18 Richard Stallman <rms@gnu.org>
11169
11170 * data.c (Fsetq_default): Doc fix.
11171
11172 * eval.c (Fsetq): Doc fix.
11173
111742007-07-18 Juanma Barranquero <lekktu@gmail.com>
11175
11176 * coding.c (Ffind_operation_coding_system):
11177 * eval.c (For, Fand): Doc fixes.
880820fe 11178 Reported by Johan Bockgård.
23dacf80 11179
880820fe 111802007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 11181
23dacf80 11182 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 11183
23dacf80 11184 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
11185
11186 * xterm.c (x_ewmh_activate_frame): New function.
11187 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
11188
71ec17e6
MR
111892007-07-17 Martin Rudalics <rudalics@gmx.at>
11190
11191 * window.c (Fdisplay_buffer): If largest or LRU window is the
11192 only window, split it even if it is not eligible for splitting.
11193 This restores the original behavior broken by the 2007-07-15
11194 change.
11195
e9818042
GM
111962007-07-17 Glenn Morris <rgm@gnu.org>
11197
11198 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
11199 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11200 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
11201 constituents. Doc fix.
11202
e6fca843
SM
112032007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11204
11205 * process.c (Fstart_process, Fmake_network_process)
11206 (read_process_output): Fix up last changes.
11207
b5d2b4ab
EZ
112082007-07-16 Eli Zaretskii <eliz@gnu.org>
11209
11210 * makefile.w32-in (clean): Don't delete *~.
11211
413a79ad
AS
112122007-07-16 Andreas Schwab <schwab@suse.de>
11213
11214 * window.c (Fdisplay_buffer): Use NILP.
11215 (Fset_window_scroll_bars): Likewise.
11216
f1de8c77
MR
112172007-07-15 Martin Rudalics <rudalics@gmx.at>
11218
11219 * window.c (window_min_size_2): New function.
11220 (window_min_size_1, size_window, Fdisplay_buffer)
11221 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
11222 windows without mode- or header-lines when window-min-height is
11223 too small.
11224 (size_window): Reset nodelete_p after testing it, following an
11225 earlier note by Kim F. Storm.
11226 (display_buffer): Do not set split_height_threshold to twice the
11227 value of window_min_height to avoid changing the value of a
11228 customizable variable. Rather explicitly check whether the
11229 height of the window that shall be splitted is at least as large
11230 as split_height_threshold.
1af74d06
MB
11231 (Fwindow_full_width_p): New defun.
11232 (syms_of_window): Defsubr it.
d31053f9 11233
1af74d06 11234 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 11235
5e1ab613
JR
112362007-07-14 Jason Rumney <jasonr@gnu.org>
11237
11238 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
11239
f01cbfdd
RS
112402007-07-14 Richard Stallman <rms@gnu.org>
11241
11242 * eval.c (maybe_call_debugger): New function.
11243 (find_handler_clause): Use maybe_call_debugger.
11244 Call it when the handler says `debug'.
11245 Eliminate DEBUGGER_VALUE_PTR.
11246 (Fsignal): Eliminate debugger_value.
11247 (Qdebug): New variable.
11248 (syms_of_eval): Initialize it.
11249
1bab435a
JB
112502007-07-14 Juanma Barranquero <lekktu@gmail.com>
11251
11252 * eval.c (Fprogn):
11253 * keyboard.c (Ftrack_mouse):
11254 * print.c (Fwith_output_to_temp_buffer):
11255 * window.c (Fsave_window_excursion): Doc fix.
11256
be436d23
SM
112572007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
11258
11259 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
11260
60f0fb11
SM
112612007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
11262
11263 * process.h (struct Lisp_Process): Turn slots infd, outfd,
11264 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
11265 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
11266 read_output_delay, and read_output_skip from Lisp_Objects to ints.
11267 Remove unused encoding_carryover.
11268 * process.c: Adjust all functions accordingly.
11269
d8b18043
RS
112702007-07-12 Richard Stallman <rms@gnu.org>
11271
11272 * term.c: Include unistd.h only if HAVE_UNISTD_H.
11273
d5781bb6
JR
112742007-07-11 Jason Rumney <jasonr@gnu.org>
11275
11276 * makefile.w32-in (LIBS): Include OLE32.
11277
11278 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
11279 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
11280
5bb7dfee
SM
112812007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
11284 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
11285 from a Lisp_Object into a bare pointer.
11286 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11287 Adjust the code correspondingly.
11288
11289 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
11290
11291 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
11292 (term_show_mouse_face): Remove unused var `j'.
11293 (handle_one_term_event): Remove unused vars `i' and `j'.
11294 Don't cast return value of ttyname since it's not necessary.
11295
a1be1ce8
SM
112962007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
11297
5045e68e
SM
11298 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
11299 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
11300
8071c00f
SM
11301 * fns.c (map_char_table): Use an array of int for `indices' rather than
11302 an array of Lisp_Objects (which are only ever integers anyway).
11303 (Fmap_char_table): Update caller.
11304 * lisp.h: Update prototype.
11305 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
11306 * fontset.c (Ffontset_info):
11307 * casetab.c (set_case_table): Update callers.
11308
11309 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
11310
fab84e3c
SM
11311 * keymap.c (struct accessible_keymaps_data)
11312 (struct where_is_internal_data): New structures.
11313 (accessible_keymaps_1, where_is_internal_1): Use them to change
11314 interface to adhere to the one used by map_keymap.
11315 (Faccessible_keymaps, where_is_internal): Use map_keymap.
11316 (accessible_keymaps_char_table, where_is_internal_2): Remove.
11317
a1be1ce8
SM
11318 * keymap.h (map_keymap_function_t): More informative prototype.
11319
ef887810
RS
113202007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
11321
11322 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
11323 (looking_at_1): Don't change search_regs and last_thing_searched
11324 if `inhibit-changing-match-data' is non-nil.
11325 (string_match_1, search_buffer, set_search_regs): Likewise.
11326 (syms_of_search): Add Lisp level definition for
11327 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
11328 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
11329 start and end of the match, instead of using values in search_regs.
ef887810 11330
4d02fc25
SM
113312007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
11332
11333 * minibuf.c (Fcompleting_read): New value `confirm-only'
11334 for `require-match'.
11335
fe45b81f
SM
113362007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
11337
11338 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
11339 part of the 2007-06-27 change to syms_of_fileio.
11340
a56dd283
YM
113412007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11342
11343 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
11344 Check WINDOWP before using XWINDOW. Consolidate return statements.
11345
0cf9f5b5
RS
113462007-06-27 Richard Stallman <rms@gnu.org>
11347
11348 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11349
a66f285a
JB
113502007-06-27 Juanma Barranquero <lekktu@gmail.com>
11351
11352 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
11353
8d0d84d2
YM
113542007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11355
11356 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
11357 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
11358 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
11359 (_free_internal, memalign): Use them.
11360 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
11361 Initialize to PTHREAD_MUTEX_INITIALIZER.
11362 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
11363 (morecore_nolock): Rename from morecore. All uses changed.
11364 Use only nolock versions of internal allocation functions.
11365 (_malloc_internal_nolock, _realloc_internal_nolock)
11366 (_free_internal_nolock): New functions created from
11367 _malloc_internal, _realloc_internal, and _free_internal.
11368 (_malloc_internal, _realloc_internal, _free_internal): Use them.
11369 Copy hook value to automatic variable before its use.
11370 (memalign): Copy hook value to automatic variable before its use.
11371
5a0bbd9a
KH
113722007-06-26 Kenichi Handa <handa@m17n.org>
11373
11374 * coding.c (Ffind_operation_coding_system): Docstring improved.
11375 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
11376
9a51747b
DK
113772007-06-25 David Kastrup <dak@gnu.org>
11378
11379 * keymap.c (Fcurrent_active_maps): Add `position' argument.
11380 (Fwhere_is_internal): Adjust call to `current-active-maps' to
11381 cater for additional parameter.
11382
11383 * keymap.h: Adjust number of parameters to `current-active-maps'.
11384
11385 * doc.c (Fsubstitute_command_keys): Adjust call of
11386 `current-active-maps'.
11387
e4305426
DK
113882007-06-25 David Kastrup <dak@gnu.org>
11389
11390 * callint.c (Fcall_interactively): Make the parsing of interactive
11391 specs somewhat more readable.
11392
511a18d9
YM
113932007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11394
11395 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
11396 to scroll bar gap also when bitmap fills fringe. Draw only foreground
11397 if extended background has already been filled.
11398
512eb161
YM
113992007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11400
11401 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
11402 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
11403
11404 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
11405 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
11406 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
11407 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
11408 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
11409 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
11410 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
11411 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
11412 Run timers during dialog popup.
11413 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
11414
2386b1f1
JR
114152007-06-21 Jason Rumney <jasonr@gnu.org>
11416
11417 * image.c (convert_mono_to_color_image): Swap fore and background.
11418
fab8b787
JR
114192007-06-20 Jason Rumney <jasonr@gnu.org>
11420
11421 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
11422 (w32_free_bdf_font): Unmap memory not handle.
11423
15bdd7a0 114242007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
11425
11426 * gmalloc.c (__morecore): Fix the declaration to comply with the
11427 definition.
11428
1bb8a291
JB
114292007-06-20 Juanma Barranquero <lekktu@gmail.com>
11430
11431 * w32term.c (w32_delete_display): Remove leftover declaration.
11432 (w32_define_cursor, w32_initialize): Make static.
11433
11434 * w32.c (_wsa_errlist): Fix typo in error message.
11435 (init_environment): Ignore any environment variable from the
11436 registry having a null value.
11437
92648dea
GM
114382007-06-20 Glenn Morris <rgm@gnu.org>
11439
11440 * Makefile.in (LIBGIF): Default to -lgif.
11441
ff25d115
JR
114422007-06-17 Jason Rumney <jasonr@gnu.org>
11443
11444 * w32menu.c (add_menu_item): Don't use multibyte string functions on
11445 unicode strings.
11446
a1a578a5
JB
114472007-06-16 Juanma Barranquero <lekktu@gmail.com>
11448
11449 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
11450 Fix typo in docstring.
11451
af41f8a8
EZ
114522007-06-16 Eli Zaretskii <eliz@gnu.org>
11453
11454 * w32menu.c (add_menu_item): Escape `&' characters in menu items
11455 and their keybindings.
11456
8b29cab9
CY
114572007-06-15 Chong Yidong <cyd@stupidchicken.com>
11458
11459 * composite.c (update_compositions): Fix last fix.
11460
c433c134
JR
114612007-06-14 Jason Rumney <jasonr@gnu.org>
11462
11463 * w32.c (get_process_times_fn): New function pointer.
11464 (globals_of_w32): Intialize it if present in kernel32.dll.
11465 (w32_get_internal_run_time): New function.
11466
11467 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
11468
553d3164
KH
114692007-06-14 Kenichi Handa <handa@etlken.m17n.org>
11470
11471 * composite.c (update_compositions): Check the validness of
11472 compositions.
11473
446ba96f
YM
114742007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11475
11476 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
11477 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
11478
11479 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
11480 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
11481
11482 * macgui.h (USE_MAC_TOOLBAR): New define.
11483
11484 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11485 Return immediately unless popup is activated.
11486
11487 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
11488 background to scroll bar gap.
11489 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
11490 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
11491 scroll bars on frame edge. Check fringe background extension.
11492 Don't clear extended fringe background area.
11493 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
11494 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
11495 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
11496 [USE_MAC_TOOLBAR]: New macros.
11497 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
11498 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
11499 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
11500 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
11501 [USE_MAC_TOOLBAR]: New functions.
11502 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
11503 manually if previous repositioning has failed.
11504 (mac_handle_keyboard_event): Use precomputed event kind.
11505 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
11506 as tool bar item click. Handle mouse movement over tool bar items.
11507
11508 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
11509 toolbar_win_gravity.
11510 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
11511 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
11512 Add externs.
11513
11514 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
11515 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
11516
9720173f
CY
115172007-06-14 Chong Yidong <cyd@stupidchicken.com>
11518
11519 * image.c (search_image_cache): Remove unused variable.
11520
1217dd00
CY
115212007-06-13 Chong Yidong <cyd@stupidchicken.com>
11522
11523 * xfns.c, xmenu.c: Link to xaw3d if available.
11524
c5b8e0ea
YM
115252007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11526
11527 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
11528 frame_foreground and frame_background.
11529
11530 * image.c (lookup_image): Save frame foreground and background colors.
11531 (search_image_cache): Check if saved and current frame colors match.
11532
c69b0314
SM
115332007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11534
11535 * regex.c (regex_compile): Remove the `regnum' counter.
11536 Use bufp->re_nsub instead. Add support for \(?N:RE\).
11537
c9612b8e
SM
115382007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11539
11540 * term.c: Include intervals.h to declare Fget_text_property.
11541
843d2458
JR
115422007-06-10 Jason Rumney <jasonr@gnu.org>
11543
11544 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
11545
1e0d2d60 115462007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
11547
11548 * callint.c (Fcall_interactively):
11549 * editfns.c (Fdelete_and_extract_region):
11550 * fileio.c (Fread_file_name):
11551 * fns.c (Fmapconcat):
11552 * keyboard.c (cmd_error_internal):
11553 * keymap.c (Fkey_description):
11554 * lread.c (openp):
11555 * minibuf.c (read_minibuf):
11556 * search.c (wordify):
11557 * sunfns.c (sel_read):
11558 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
11559 * xfns.c (x_default_scroll_bar_color_parameter):
11560 * xmenu.c (menu_help_callback):
11561 * xselect.c (Fx_get_atom_name):
11562 * xterm.c (x_term_init): Use empty_unibyte_string.
11563
15bdd7a0 115642007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
11565
11566 * alloc.c (init_strings): Initialize canonical empty strings.
11567 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
11568 canonical empty string when the requested size is 0.
11569
11570 * emacs.c (empty_unibyte_string): Rename from empty_string.
11571 (empty_multibyte_string): New canonical empty string.
11572 (syms_of_emacs): Don't initialize empty_string.
11573
11574 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
11575 string, if appropriate.
11576 (empty_unibyte_string, empty_multibyte_string): New externs.
11577 (empty_string): Remove extern.
11578
11579 * lread.c (syms_of_lread): Use empty_unibyte_string.
11580
42c4c67a
JR
115812007-06-07 Jason Rumney <jasonr@gnu.org>
11582
11583 * s/ms-w32.h: Don't define HAVE_TZNAME.
11584
11585 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
11586
aa8280d3
YM
115872007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11588
11589 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
11590
11591 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
11592 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
11593
11594 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11595 Don't call next handler.
11596 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
11597 Remove argument. Install handler to application.
11598 (set_frame_menubar): Don't change deep_p.
1e0d2d60 11599 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
11600 FRAME_OUTER_TO_INNER_DIFF_Y.
11601 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11602 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11603 [HAVE_DIALOGS]: New macros.
11604 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
11605 Use them.
11606 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
11607
11608 * macselect.c [MAC_OSX] (install_service_handler): Rename from
11609 init_service_handler. All callers changed. Return OSStatus value.
11610
11611 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
11612 All callers changed so as not to call SetPortWindowPort.
11613 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
11614 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
11615 mac_draw_string_common.
11616 (mac_draw_image_string_qd): Likewise.
11617 (mac_draw_string_common): Use them. Add INLINE.
11618 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
11619 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
11620 GetGlobalMouse.
11621 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
11622 and FRAME_OUTER_TO_INNER_DIFF_Y.
11623 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
11624 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
11625 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
11626 repositioning window to mac_handle_window_event.
11627 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
11628 saving window location to mac_handle_window_event
11629 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
11630 (install_menu_target_item_handler): Remove argument in extern.
11631 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
11632 Also accept command events.
11633 (do_keystroke): New function created from XTread_socket.
11634 (init_command_handler): Remove functions.
11635 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
11636 and save window location by kEventWindowShowing and kEventWindowHiding
11637 handlers here. Don't call next handler for window state change and
11638 focus events.
11639 (mac_handle_application_event, mac_handle_keyboard_event)
11640 [TARGET_API_MAC_CARBON]: New functions.
11641 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
11642 kEventWindowShowing and kEventWindowHiding events. Move installation
11643 of mouse, font, text input and menu target item handlers to
11644 install_application_handler.
11645 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
11646 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11647 New function.
11648 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11649 Register it.
c9612b8e
SM
11650 (XTread_socket) [TARGET_API_MAC_CARBON]:
11651 Consolidate SendEventToEventTarget calls.
11652 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
11653 Move application activation handler to mac_handle_application_event.
11654 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
11655 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
11656 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11657 init_command_handler. Call install_application_handler.
11658
11659 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
11660 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
11661
6926c954
GM
116622007-06-07 Glenn Morris <rgm@gnu.org>
11663
11664 * emacs.c (main): Use `emacs-copyright' in --version output.
11665
6fe04c89
CY
116662007-06-06 Chong Yidong <cyd@stupidchicken.com>
11667
c9612b8e 11668 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 11669
7eb0d727
YM
116702007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11671
11672 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
11673
11674 * macgui.h: Replace WindowPtr with WindowRef.
11675
11676 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11677 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11678 Replace ControlHandle with ControlRef.
11679 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
11680
11681 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11682 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11683 Replace ControlHandle with ControlRef.
11684 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
11685 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
11686
11687 * macterm.h (struct scroll_bar): Rename member control_handle_low
11688 and control_handle_high to control_ref_low and control_ref_high.
11689 All uses changed.
11690 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
11691 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
11692 respectively. All uses changed.
11693 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
11694 (install_window_handler, remove_window_handler): Replace WindowPtr
11695 with WindowRef in externs.
11696
65fddb74
JB
116972007-06-05 Juanma Barranquero <lekktu@gmail.com>
11698
11699 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
11700
db1213a9
NR
117012007-06-03 Nick Roberts <nickrob@snap.net.nz>
11702
11703 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
11704
65fddb74 11705 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
11706 Condition on HAVE_GPM too.
11707
11708 * term.c (term_mouse_highlight): Remove unused variables.
11709 (Fterm_open_connection): Set gpm_zerobased to 1.
11710 (term_mouse_movement, term_mouse_click, handle_one_term_event):
11711 Use zero based co-ordinates.
11712 (handle_one_term_event): Report a drag as mouse movement too.
11713
11714 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
11715
d94df25b
CY
117162007-06-03 Chong Yidong <cyd@stupidchicken.com>
11717
11718 * image.c (search_image_cache): New function. Require background
11719 color match if background color is unspecified in the image spec.
11720 (uncache_image, lookup_image): Use it.
11721
4797b6d9
JB
117222007-06-01 Juanma Barranquero <lekktu@gmail.com>
11723
11724 * window.c (Fshrink_window): Reflow docstring.
11725
1ffe7343
NR
117262007-06-02 Chong Yidong <cyd@stupidchicken.com>
11727
11728 * Version 22.1 released.
11729
117302007-06-01 Richard Stallman <rms@gnu.org>
11731
11732 * xfns.c (x_encode_text): Add GCPRO.
11733
117342007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11735
11736 * xfns.c (x_set_name_internal): Save encoded name before
11737 x_encode_text in case string data is relocated.
11738
117392007-05-31 Richard Stallman <rms@gnu.org>
11740
11741 * buffer.c (syms_of_buffer): Doc fix.
11742
117432007-05-30 Nick Roberts <nickrob@snap.net.nz>
11744
11745 * sysdep.c (init_sys_modes): Add rather than replace with
11746 O_NONBLOCK.
11747
11748 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
11749 term_mouse_moveto.
11750
11751 * termhooks.h (term_mouse_moveto): New extern.
11752
11753 * term.c (mouse_face_window): Rename...
11754 (Qmouse_face_window): ...to this.
11755 (term_show_mouse_face, term_clear_mouse_face)
11756 (term_mouse_highlight): Use Qmouse_face_window.
11757 (term_mouse_moveto): New function.
11758 (term_mouse_position): Make it work.
11759 (syms_of_term): Uncomment assignment to mouse_position_hook.
11760 Staticpro Qmouse_face_window.
11761
117622007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11763
11764 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
11765 around current_column call.
11766
117672007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
11768
11769 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
11770 * xdisp.c (next_element_from_buffer):
11771 * window.c (delete_window):
11772 * term.c (term_mouse_highlight):
11773 * msdos.c (getdefdir):
11774 * macterm.c (mac_create_bitmap_from_bitmap_data)
11775 (init_font_name_table):
11776 * fns.c (Fsxhash):
11777 * data.c (Fmake_local_variable):
11778 * ccl.c (ccl_driver): Likewise.
11779
117802007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11781
11782 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
11783 Call mac_wakeup_from_rne on window size change.
11784
117852007-05-25 Chong Yidong <cyd@stupidchicken.com>
11786
11787 * image.c (uncache_image): Fix typo.
11788
117892007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
11790
11791 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
11792
117932007-05-22 Richard Stallman <rms@gnu.org>
11794
11795 * xterm.c (x_connection_closed): Remove NO_RETURN.
11796
117972007-05-22 Martin Rudalics <rudalics@gmx.at>
11798
11799 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
11800
118012007-05-21 Chong Yidong <cyd@stupidchicken.com>
11802
11803 * image.c (uncache_image): New function.
11804 (Fimage_refresh): New function.
11805
880820fe 118062007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
11807
11808 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
11809
118102007-05-20 Nick Roberts <nickrob@snap.net.nz>
11811
11812 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
11813 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
11814
118152007-05-20 Nick Roberts <nickrob@snap.net.nz>
11816
11817 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
11818 conditional on [HAVE_GPM_H].
11819
118202007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11821
11822 * syntax.c (skip_chars): Update syntax-table only after we checked that
11823 the new location is valid.
11824
118252007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11826
11827 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
11828 mac_get_window_bounds.
11829
118302007-05-20 Nick Roberts <nickrob@snap.net.nz>
11831
11832 * Makefile.in (LIBGPM): Allow it to be set from configure.
11833 If set then link Emacs with it.
11834
11835 * config.in: Regenerate.
11836
11837 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
11838 New externs.
11839
11840 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
11841 Include gpm.h.
11842 (handle_one_term_event, term_gpm): New externs.
11843
11844 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
11845 and allow it to be interrupted by SIGIO.
11846
11847 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
11848 (wait_reading_process_output): Wait on gpm_fd too.
11849 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
11850 (add_gpm_wait_descriptor_called_flag): New variable.
11851 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
11852
11853 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
11854 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
11855 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
11856 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
11857 (make_lispy_event): Add case GPM_CLICK_EVENT.
11858 (read_avail_input): Handle mouse input.
11859
11860 * term.c (write_glyphs_with_face): New function.
11861 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
11862 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
11863 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
11864 (mouse_face_face_id, term_gpm, pos_x, pos_y)
11865 (last_mouse_x, last_mouse_y): New variables.
11866 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
11867 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
11868 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
11869 (Fterm_close_connection): New functions.
11870 (term_init): Initialise mouse_face_window.
11871
118722007-05-19 Chong Yidong <cyd@stupidchicken.com>
11873
11874 * xdisp.c (redisplay_window): If first window line is a
11875 continuation line, recompute the new window start instead of
11876 recentering.
11877
118782007-05-18 Glenn Morris <rgm@gnu.org>
11879
11880 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
11881 Suggested by Alfred M. Szmidt <ams@gnu.org>.
11882
118832007-05-17 Glenn Morris <rgm@gnu.org>
11884
11885 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
11886
118872007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11888
11889 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
11890 dead key repeat and up events.
11891
118922007-05-14 Chong Yidong <cyd@stupidchicken.com>
11893
11894 * image.c (pbm_load): Check image size for monochrome pbm.
11895
118962007-05-13 Chong Yidong <cyd@stupidchicken.com>
11897
11898 * xterm.c (XTread_socket): Revert last change.
11899
119002007-05-12 Chong Yidong <cyd@stupidchicken.com>
11901
11902 * image.c (pbm_load): Correctly check image size for greyscale pbm.
11903
11904 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
11905
119062007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
11907
11908 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
11909 mixup (YAILOM).
11910
119112007-05-07 Andreas Schwab <schwab@suse.de>
11912
11913 * keymap.c (Flookup_key): Fix typo in last change.
11914
119152007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
11916
11917 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
11918 mapping for unibyte strings.
11919
119202007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11921
11922 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
11923 (Fx_popup_dialog) [MAC_OSX]: Likewise.
11924
119252007-04-29 Richard Stallman <rms@gnu.org>
11926
11927 * insdel.c (replace_range): For undo, record insertion first.
11928
119292007-04-29 Andreas Schwab <schwab@suse.de>
11930
11931 * lisp.h (VECSIZE): Use OFFSETOF.
11932
119332007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11934
11935 * xdisp.c (try_window_reusing_current_matrix): Fix number of
11936 disabled lines.
11937
119382007-04-28 Richard Stallman <rms@gnu.org>
11939
11940 * lread.c (read_escape): In a string, \s is always space.
11941
880820fe 119422007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
11943
11944 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
11945
11946 * gtkutil.c (xg_update_menubar, create_menus): Create empty
11947 submenu for menu bar items.
11948
382c648d 11949See ChangeLog.10 for earlier changes.
6922b018
KH
11950
11951;; Local Variables:
880820fe 11952;; coding: utf-8
33462dfa 11953;; add-log-time-zone-rule: t
6922b018 11954;; End:
2a34a036 11955
59ce725a 11956 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
11957
11958 This file is part of GNU Emacs.
11959
5a1dde61 11960 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 11961 it under the terms of the GNU General Public License as published by
5a1dde61
GM
11962 the Free Software Foundation, either version 3 of the License, or
11963 (at your option) any later version.
7f6d64f8
GM
11964
11965 GNU Emacs is distributed in the hope that it will be useful,
11966 but WITHOUT ANY WARRANTY; without even the implied warranty of
11967 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11968 GNU General Public License for more details.
11969
11970 You should have received a copy of the GNU General Public License
5a1dde61 11971 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 11972
28f60c3d 11973;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40