aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog.trunk
diff options
context:
space:
mode:
authorStefan Monnier2010-12-10 19:13:08 -0500
committerStefan Monnier2010-12-10 19:13:08 -0500
commit2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch)
treef26dc9f22861dc37610de319d05255de058c221b /src/ChangeLog.trunk
parent0c747cb143fa227e78f350ac353d703f489209df (diff)
parent175069efeb080517afefdd44a06f7a779ea8c25c (diff)
downloademacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz
emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip
Merge from trunk
Diffstat (limited to 'src/ChangeLog.trunk')
-rw-r--r--src/ChangeLog.trunk1495
1 files changed, 1213 insertions, 282 deletions
diff --git a/src/ChangeLog.trunk b/src/ChangeLog.trunk
index 567bf2868e7..eeba4192e25 100644
--- a/src/ChangeLog.trunk
+++ b/src/ChangeLog.trunk
@@ -1,5 +1,936 @@
12010-12-08 Glenn Morris <rgm@gnu.org>
2
3 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
4
52010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
6
7 * xml.c (parse_region): Ignore blank HTML nodes.
8 (make_dom): Return CDATA sections (like <style>foo</style>) as
9 text nodes.
10
112010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * lread.c (read1): Allow newstyle unquote outside of backquote.
14 Disallow old-style backquotes inside new-style backquotes.
15 Don't count unquotes to figure out when we're "syntactically inside
16 but semantically outside of a backquote" any more.
17 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
18 to all contexts.
19
202010-12-05 Chong Yidong <cyd@stupidchicken.com>
21
22 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
23
242010-12-04 Andreas Schwab <schwab@linux-m68k.org>
25
26 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
27 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
28 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
29
302010-12-03 Andreas Schwab <schwab@linux-m68k.org>
31
32 * lisp.h (union Lisp_Object): Explicitly declare signedness of
33 bit-field.
34 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
35 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
36 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
37 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
38 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
39 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
40 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
41 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
42 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
43 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
44 * m/hp800.h: Remove file.
45 * m/mips.h: Remove file.
46
472010-12-03 Jan Djärv <jan.h.d@swipnet.se>
48
49 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
50 with cursor color and draw a rectangle around the image (Bug#7412).
51
522010-12-03 Andreas Schwab <schwab@linux-m68k.org>
53
54 * frame.c (x_set_font): Remove unused variable.
55
562010-12-02 Jan Djärv <jan.h.d@swipnet.se>
57
58 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
59
60 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
61 drawing text under filled box cursor (Bug#7479).
62
632010-11-27 Kenichi Handa <handa@m17n.org>
64
65 * charset.c (emacs_mule_charset): Make it an array of charset ID;
66 i.e. integer.
67 (Fdefine_charset_internal): Adjust for the above change.
68 (init_charset_once): Likewise.
69
70 * charset.h (emacs_mule_charset): Adjust the prototype.
71 Delete duplicated extern.
72
73 * coding.c (emacs_mule_char): Adjust for the change of
74 emacs_mule_charset.
75
76 * lread.c (read_emacs_mule_char): Adjust for the change of
77 emacs_mule_charset.
78
792010-11-27 Eli Zaretskii <eliz@gnu.org>
80
81 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
82 of w32api >= 3.15. (Bug#6989) (Bug#7452)
83
842010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
85
86 * alloc.c (mark_terminals): Ensure that the image cache is marked
87 even if the terminal object was marked earlier (Bug#6301).
88
892010-11-21 Chong Yidong <cyd@stupidchicken.com>
90
91 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
92
932010-11-27 Jan Djärv <jan.h.d@swipnet.se>
94
95 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
96 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
97 Use 23 as menubar height if 0. (Bug#7425).
98
992010-11-26 Eli Zaretskii <eliz@gnu.org>
100
101 * xdisp.c (set_message_1): Force paragraph direction in echo area
102 be left-to-right.
103
104 * keyboard.c (make_lispy_position): Put a meaningful value in yret
105 when the click is on the header or mode line.
106
1072010-11-25 Eli Zaretskii <eliz@gnu.org>
108
109 * xdisp.c (set_cursor_from_row): Don't forget to consider the
110 `cursor' property of the first character in overlay strings.
111 (Bug#7474) (Bug#7481)
112
1132010-11-24 Jan Djärv <jan.h.d@swipnet.se>
114
115 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
116 (NSLeftAlternateKeyMask): New defines.
117 (keyDown): Parse left and right keys separately (Bug#7458).
118 Compare Left key masks exactly (Bug#7458).
119
1202010-11-23 Eli Zaretskii <eliz@gnu.org>
121
122 * intervals.c (temp_set_point_both): Define before calling, to
123 avoid GCC warnings.
124
1252010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
126
127 * nsmenu.m: Use #include <config.h> instead of "config.h".
128
129 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
130 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
131 Move declarations ...
132 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
133 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
134 ... here.
135
136 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
137 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
138 (gdb_pvec_type):
139 * print.c (print_output_debug_flag):
140 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
141 (safe_debug_print): New declaration.
142
143 * xterm.c:
144 * systty.h:
145 * sound.c: Include <sys/ioctl.h> unconditionally.
146
1472010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
148
149 * alloc.c (mark_maybe_object): Return early if given a Lisp
150 integer (Bug#6301).
151
1522010-11-21 Ken Brown <kbrown@cornell.edu>
153
154 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
155
1562010-11-21 Jan Djärv <jan.h.d@swipnet.se>
157
158 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
159 Define (Bug#7458).
160 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
161 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
162 NSRightControlKeyMask also (Bug#7458).
163 (keyDown): Ditto (Bug#7458).
164 (syms_of_nsterm): Defvar ns-right-command-modifier and
165 ns-right-control-modifier (Bug#7458).
166
1672010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
168
169 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
170 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
171
172 * intervals.h (temp_set_point, temp_set_point_both):
173 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
174
1752010-11-20 Ken Brown <kbrown@cornell.edu>
176
177 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
178
1792010-11-20 Eli Zaretskii <eliz@gnu.org>
180
181 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
182 \xNNNNNN for hex-code display of glyphless characters.
183
1842010-11-20 Jan Djärv <jan.h.d@swipnet.se>
185
186 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
187 Set important to ! vert_only.
188 (xg_show_toolbar_item): Don't show label horizontally if
189 tool item isn't important.
190 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
191 xg_make_tool_item, or update important on existing tool item.
192
193 * keyboard.c (QCvert_only): New variable.
194 (parse_tool_bar_item): Check for QCvert_only.
195 (syms_of_keyboard): Initialize QCvert_only.
196
197 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
198
1992010-11-20 Eli Zaretskii <eliz@gnu.org>
200
201 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
202 same in-line.
203
2042010-11-20 Andreas Schwab <schwab@linux-m68k.org>
205
206 * xfaces.c (lookup_face): Make static.
207 * dispnew.c (copy_row_except_pointers): Likewise.
208 * syntax.c (dec_bytepos): Likewise.
209 (inc_bytepos): Remove.
210 * dispextern.h (lookup_face): Remove declaration.
211
2122010-11-19 Eli Zaretskii <eliz@gnu.org>
213
214 * xdisp.c (set_cursor_from_row): Display cursor after all the
215 glyphs that come from an overlay. Don't overstep the last glyph
216 when skipping glyphs from an overlay. (Bug#6687)
217
2182010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
219
220 * alloc.c (refill_memory_reserve): Move declaration ...
221 * lisp.h (refill_memory_reserve): ... here.
222
223 * strftime.c (_strftime_copytm): Add declaration.
224
225 * callproc.c (syms_of_callproc): Use intern_c_string.
226
227 Move declarations from .c files to .h files.
228 * process.c (timers_run):
229 * minibuf.c (quit_char):
230 * lread.c (read_emacs_mule_char):
231 * keyboard.c (minibuf_level, message_enable_multibyte)
232 (pending_malloc_warning):
233 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
234 (Qonly): Remove declarations.
235 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
236 (Vselect_active_regions):
237 * keyboard.h (timers_run): Add declarations.
238
239 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
240 (tm_diff): Convert definitions to standard C.
241 (extra_args_spec_iso): Remove, unused.
242
2432010-11-18 Jan Djärv <jan.h.d@swipnet.se>
244
245 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
246
247 * config.in (HAVE_G_TYPE_INIT): New symbol.
248
2492010-11-18 Eli Zaretskii <eliz@gnu.org>
250
251 * lread.c (Fload): Mention `load-in-progress' and
252 `load-file-name'. (Bug#7346)
253
254 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
255 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
256 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
257 subprocesses. Use buffer_free only ifdef subprocesses.
258
259 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
260 the subprocesses version, not in the non-subprocesses one.
261
262 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
263
2642010-11-17 Eli Zaretskii <eliz@gnu.org>
265
266 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
267 lines on text-mode terminals. (bug#7417)
268
2692010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
270
271 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
272 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
273
2742010-11-17 Kenichi Handa <handa@m17n.org>
275
276 * coding.c (Fset_terminal_coding_system_internal): Fix previous
277 change (set charset-ID list instead of charset-symbol list).
278
2792010-11-16 Chong Yidong <cyd@stupidchicken.com>
280
281 * keyboard.c (make_lispy_position): For text area clicks, record Y
282 pixel position relative to the text area, excluding header line.
283 Also change X and Y to Lisp_Objects, not pointers; don't return
284 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
285 buffer_posn_from_coords counting from the start of the text area.
286 (Fposn_at_x_y, make_lispy_event): Callers changed.
287
288 * window.c (coordinates_in_window): Change X and Y to ints rather
289 than pointers; don't return coordinates via pointers.
290 (struct check_window_data): Change X and Y from pointers to ints.
291 (window_from_coordinates): Remove args WX and WY; don't return
292 coordinates via pointers.
293 (Fcoordinates_in_window_p, window_from_coordinates):
294 (check_window_containing, Fwindow_at): Callers changed.
295 (window_relative_x_coord): New function.
296
297 * window.h (window_from_coordinates, window_relative_x_coord):
298 Update prototypes.
299
300 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
301 the start of the text area.
302
303 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
304 call. Use window_relative_x_coord.
305 (note_mouse_highlight): Change window_from_coordinates call.
306
307 * w32term.c (w32_read_socket):
308 * msdos.c (dos_rawgetc):
309 * xterm.c (handle_one_xevent): Likewise.
310
3112010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
312
313 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
314 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
315 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
316 Convert definitions to standard C.
317 * regex.c: Do not include <stdlib.h>, config.h does it.
318 Include unistd.h.
319 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
320 (regerror, regfree): Convert definitions to standard C.
321 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
322 (__mktime_internal): Convert definitions to standard C.
323
3242010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
325
326 * w32proc.c:
327 * w32inevt.c:
328 * w32heap.c:
329 * w32.c: Remove config.h include guards.
330
331 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
332 No code changes.
333
334 * process.c: Include <sys/ioctl.h> unconditionally,
335 keyboard.c already does it.
336
337 * keyboard.c (pending_malloc_warning): Add const to match
338 definition in alloc.c.
339 (Fset_input_interrupt_mode): Simplify #ifdefs.
340
3412010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
342
343 Clean up systty.h macros.
344 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
345 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
346 definition in all uses.
347 (EMACS_TTY_TABS_OK): Remove, it has a single user.
348 * sysdep.c (discard_tty_input, child_setup_tty)
349 (init_sys_modes, tabs_safe_p, reset_sys_modes):
350 * emacs.c (shut_down_emacs):
351 * callproc.c (child_setup):
352 * term.c (dissociate_if_controlling_tty): Inline removed macros.
353
354 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
355
3562010-11-14 Chong Yidong <cyd@stupidchicken.com>
357
358 * w32fns.c (Fx_create_frame):
359 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
360 resource here; it's now done at startup.
361
3622010-11-14 Jan Djärv <jan.h.d@swipnet.se>
363
364 * xterm.c (set_wm_state): Add Qnil to final cons.
365
366 * xselect.c (x_send_client_event): Remove unused variables cons and
367 size.
368
3692010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
370
371 * keyboard.c (modify_event_symbol) : Add const to array elements of
372 arg NAME_TABLE.
373 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
374 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
375 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
376 Add const to array elements.
377 (scroll_bar_parts): Make static. Fix position of const.
378
379 * w32fns.c (lispy_function_keys): Add const to extern.
380
381 * w32inevt.c (lispy_function_keys): Likewise.
382
3832010-11-14 Chong Yidong <cyd@stupidchicken.com>
384
385 * xfns.c (Fx_create_frame): Don't check for the cursorColor
386 resource here; it's now done at startup.
387
3882010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
389
390 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
391
392 Fix compilation on Solaris.
393 * sysdep.c: Do not #include <term.h>.
394 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
395
396 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
397
3982010-11-13 Jan Djärv <jan.h.d@swipnet.se>
399
400 * xterm.c (set_wm_state): Don't put Atom in cons, call
401 make_fixnum_or_float on them first.
402 (x_term_init): Initialize Xatom_net_supporting_wm_check and
403 Xatom_net_supported correctly.
404
405 * xselect.c (x_send_client_event): Move CHECK_STRING ...
406 (Fx_send_client_event): to here.
407
4082010-11-13 Martin Rudalics <rudalics@gmx.at>
409
410 * window.c (Fwindow_use_time): New function.
411
4122010-11-13 Eli Zaretskii <eliz@gnu.org>
413
414 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
415 zero-width characters.
416
417 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
418
419 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
420 box before drawing the glyphs inside it.
421
422 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
423
424 * dispextern.h (enum glyphless_display_method):
425 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
426 All users changed.
427
428 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
429 Fix comments.
430 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
431 whitespace in "[]", to simulate a box. Don't use uninitialized
432 variable `width'.
433
4342010-11-11 Julien Danjou <julien@danjou.info>
435
436 * xsettings.c (init_xsettings): Use already fetch atoms.
437
438 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
439 from dpyinfo.
440
441 * xselect.c (Fx_send_client_event): Split and create
442 x_send_client_event.
443
444 * lisp.h: Do not EXFUN Fx_send_client_event.
445
446 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
447 from dpyinfo.
448 (wm_supports): Use atoms from dpyinfo.
449 (do_ewmh_fullscreen): Use atoms from dpyinfo.
450 (x_ewmh_activate_frame): Use atoms from dpyinfo.
451 (xembed_set_info): Use atoms from dpyinfo.
452 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
453 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
454 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
455 Get all atoms in one round-trip.
456 (set_wm_state): Use x_send_client_event rather than
457 Fx_send_client_event, using Atom directly.
458 (x_ewmh_activate_frame): Ditto.
459 (x_set_sticky): Pass atoms to set_wm_state.
460 (do_ewmh_fullscreen): Ditto.
461
462
463 * xterm.h (x_display_info): Add Xatom_net_supported,
464 Xatom_net_supporting_wm_check, Xatom_net_active_window,
465 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
466
467 * xfns.c (Fx_show_tip): Fix typo in docstring.
468
4692010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
470
471 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
472 it's not negative.
473
4742010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
475
476 * font.c (font_filter_properties): Add const to array elements of
477 properties args.
478
479 * font.h (font_filter_properties): Likewise.
480
481 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
482 elements.
483
484 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
485
4862010-11-10 Michael Albinus <michael.albinus@gmx.de>
487
488 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
489 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
490 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
491 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
492 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
493
4942010-11-10 Glenn Morris <rgm@gnu.org>
495
496 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
497
4982010-11-09 Eli Zaretskii <eliz@gnu.org>
499
500 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
501
5022010-11-09 Chong Yidong <cyd@stupidchicken.com>
503
504 * image.c (free_image): Don't garbage the frame here, since this
505 function can be called while redisplaying (Bug#7210).
506 (uncache_image): Garbage the frame here (Bug#6426).
507
5082010-11-09 Jan Djärv <jan.h.d@swipnet.se>
509
510 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
511 parent is the root window. Check this after traversing window tree.
512
513 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
514
515 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
516
517 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
518 before traversing window tree (Bug#5721).
519
5202010-11-07 Jan Djärv <jan.h.d@swipnet.se>
521
522 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
523
524 * xdisp.c (note_mode_line_or_margin_highlight):
525 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
526
5272010-11-06 Eli Zaretskii <eliz@gnu.org>
528
529 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
530 adjust width of tool-tip frame to the width of text, excluding the
531 stretch glyph at the beginning of R2L glyph rows.
532
533 * w32fns.c (Fx_show_tip): Likewise.
534
5352010-11-06 Jan Djärv <jan.h.d@swipnet.se>
536
537 * nsfont.m: Include termchar for new mouse-highlight.
538 (nsfont_draw): Use MOUSE_HL_INFO.
539
5402010-11-05 Eli Zaretskii <eliz@gnu.org>
541
542 Unify mouse-highlight code for all GUI and TTY sessions.
543
544 * term.c: Remove static mouse_face_* variables. All users
545 changed.
546 (term_show_mouse_face, term_clear_mouse_face)
547 (fast_find_position, term_mouse_highlight): Functions deleted.
548 (tty_draw_row_with_mouse_face): New function.
549 (term_mouse_movement): Call note_mouse_highlight instead of
550 term_mouse_highlight.
551
552 * nsterm.m (ns_update_window_begin, ns_update_window_end)
553 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
554 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
555 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
556 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
557 Replace Display_Info with Mouse_HLInfo everywhere where
558 mouse_face_* members were accessed for mouse highlight purposes.
559
560 * xterm.c (x_update_window_begin, x_update_window_end)
561 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
562 (handle_one_xevent, x_free_frame_resources, x_term_init):
563 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
564 members were accessed for mouse highlight purposes.
565
566 * w32term.c (x_update_window_begin, x_update_window_end)
567 (x_update_end, w32_read_socket, x_free_frame_resources)
568 (w32_initialize_display_info): Replace Display_Info with
569 Mouse_HLInfo everywhere where mouse_face_* members were accessed
570 for mouse highlight purposes.
571
572 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
573 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
574 unless the frame is on a window-system.
575 (get_tool_bar_item, handle_tool_bar_click)
576 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
577 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
578 (note_mode_line_or_margin_highlight, note_mouse_highlight)
579 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
580 Replace Display_Info with Mouse_HLInfo everywhere where
581 mouse_face_* members were accessed for mouse highlight purposes.
582 (coords_in_mouse_face_p): Move prototype out of the
583 HAVE_WINDOW_SYSTEM conditional.
584 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
585 HAVE_WINDOW_SYSTEM block.
586 (try_window_id) [HAVE_GPM || MSDOS]:
587 Call x_clear_window_mouse_face.
588 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
589 systems. Call tty_draw_row_with_mouse_face for TTY systems.
590 (show_mouse_face): Call draw_row_with_mouse_face, instead of
591 calling draw_glyphs directly.
592 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
593 (cursor_in_mouse_face_p, rows_from_pos_range)
594 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
595 (note_mode_line_or_margin_highlight, note_mouse_highlight)
596 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
597 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
598 fragments.
599 (note_mouse_highlight): Call popup_activated for MSDOS as well.
600 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
601 integer.
602 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
603 (x_consider_frame_title, tool_bar_lines_needed):
604 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
605 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
606 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
607 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
608 part.
609
610 * dispnew.c (mirror_make_current): Set Y coordinate of the
611 mode-line and header-line rows.
612 (init_display): Setup initial frame's output_data for text
613 terminal frames.
614
615 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
616 its own definition on msdos.c.
617
618 * msdos.c (show_mouse_face, clear_mouse_face)
619 (fast_find_position, IT_note_mode_line_highlight)
620 (IT_note_mouse_highlight): Functions deleted.
621 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
622 instead of IT_note_mouse_highlight.
623 (draw_row_with_mouse_face, popup_activated): New functions.
624 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
625 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
626 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
627 where mouse_face_* members were accessed for mouse highlight
628 purposes.
629
630 * msdos.h (initialize_msdos_display): Add prototype.
631
632 * frame.h (MOUSE_HL_INFO): New macro.
633
634 * lisp.h (Mouse_HLInfo): New data type.
635
636 * xterm.h (struct x_display_info):
637 * w32term.h (struct w32_display_info):
638 * nsterm.h (struct ns_display_info):
639 * termchar.h (struct tty_display_info): Use it instead of
640 mouse_face_* members.
641
642 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
643 1st argument.
644 (frame_to_window_pixel_xy, note_mouse_highlight)
645 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
646 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
647 HAVE_WINDOW_SYSTEM conditional.
648 (draw_row_with_mouse_face): Declare prototype.
649 (tty_draw_row_with_mouse_face): Declare prototype.
650
6512010-11-05 Eli Zaretskii <eliz@gnu.org>
652
653 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
654 Remove unused variables.
655
6562010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
657
658 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
659 logic pointed out by Eli Zaretskii.
660
6612010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
662
663 * coding.c (coding-category-list): Refer to set-coding-system-priority
664 instead of the obsolete set-coding-priority in the doc string.
665
666
6672010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
668
669 * nsfont.m (nsfont_draw): Correct previous patch to return
670 correct value.
671 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
672 don't change the method signature, change the return.
673
6742010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
675
676 * nsfont.m (nsfont_draw)
677 * nsimage.m (EmacsImage-setXBMColor:)
678 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
679
6802010-11-03 Julien Danjou <julien@danjou.info>
681
682 * image.c (gif_load): Add support for transparency and specified
683 :background.
684
6852010-11-01 Kenichi Handa <handa@m17n.org>
686
687 * dispextern.h (lookup_glyphless_char_display): Extern it.
688
689 * termhooks.h (struct terminal): New member charset_list.
690
691 * coding.c (Fset_terminal_coding_system_internal): Set the
692 `charset_list' member of struct terminal.
693
694 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
695 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
696
697 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
698 (lookup_glyphless_char_display): Set it->what at the end.
699 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
700 (last_glyphless_glyph_merged_face_id): Make them non-static.
701
702 * w32term.c (x_draw_glyphless_glyph_string_foreground):
703 Fix the arg with_background for font->driver->draw.
704
7052010-11-01 Kenichi Handa <handa@m17n.org>
706
707 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
708 Surround chp by parentheses.
709
7102010-11-01 Kenichi Handa <handa@m17n.org>
711
712 Implement various display methods for glyphless characters.
713
714 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
715 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
716 (Qzero_width): New variables.
717 (THIN_SPACE_WIDTH): New macro.
718 (lookup_glyphless_char_display): New funciton.
719 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
720 (last_glyphless_glyph_merged_face_id): New variables.
721 (get_next_display_element): Check glyphless characters.
722 (redisplay_internal): Initialize last_glyphless_glyph_frame and
723 last_glyphless_glyph_face_id.
724 (fill_glyphless_glyph_string): New function.
725 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
726 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
727 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
728 (x_produce_glyphs): If a suitable font is not found, produce a
729 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
730 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
731 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
732 Qzero_width.
733 (Vglyphless_char_display): Declare it as a Lisp variable.
734
735 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
736 (struct glyph): Change the size of the member "type" to 3.
737 Add glyphless to the union slice and u.
738 (enum display_element_type): Add IT_GLYPHLESS.
739 (enum glyphless_display_method): New enum.
740 (struct it): New member glyphless_method.
741 (Vglyphless_char_display): Extern it.
742
743 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
744 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
745
746 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
747 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
748
749 * nsterm.m (ns_draw_glyph_string): Handle the case
750 GLYPHLESS_GLYPH (the detail is not yet implemented).
751
7522010-10-31 Glenn Morris <rgm@gnu.org>
753
754 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
755
756 * frame.c (syms_of_frame) <tool-bar-mode>:
757 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
758
7592010-10-31 Chong Yidong <cyd@stupidchicken.com>
760
761 * xterm.c (x_connection_closed): Print informative error message
762 when aborting on GTK. This requires using shut_down_emacs
763 directly instead of Fkill_emacs.
764
7652010-10-29 Eli Zaretskii <eliz@gnu.org>
766
767 * emacs.c (main): Call syms_of_filelock unconditionally.
768
769 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
770 clause, but keep part of it conditioned on CLASH_DETECTION.
771
7722010-10-29 Glenn Morris <rgm@gnu.org>
773
774 * nsfns.m (Fx-display-save-under, Fx-open-connection)
775 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
776 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
777 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
778 Sync docs between X, W32, NS.
779
780 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
781 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
782
7832010-10-26 Juanma Barranquero <lekktu@gmail.com>
784
785 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
786 otherwise, bootstrapping on Windows fails to compile macroexp.el.
787
7882010-10-26 Eli Zaretskii <eliz@gnu.org>
789
790 * cmds.c (internal_self_insert): Don't insert if argument N is
791 zero or negative. (Bug#7281)
792
7932010-10-26 Jan Djärv <jan.h.d@swipnet.se>
794
795 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
796
7972010-10-25 Glenn Morris <rgm@gnu.org>
798
799 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
800
8012010-10-24 Glenn Morris <rgm@gnu.org>
802
803 * w32fns.c (Fx_synchronize, Fx_change_window_property)
804 (Fx_window_property, Fx_file_dialog):
805 * xfns.c (Fx_synchronize, Fx_change_window_property)
806 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
807
8082010-10-24 Chong Yidong <cyd@stupidchicken.com>
809
810 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
811
8122010-10-24 Eli Zaretskii <eliz@gnu.org>
813
814 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
815
816 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
817 Deprecate use as a boolean flag.
818
8192010-10-24 Jim Meyering <jim@meyering.net>
820
821 * emacs.c (argmatch): Don't treat "--" as "--chdir".
822
8232010-10-24 Glenn Morris <rgm@gnu.org>
824
825 * w16select.c (syms_of_win16select) <selection-coding-system>:
826 <next-selection-coding-system>:
827 * w32select.c (syms_of_w32select) <selection-coding-system>:
828 <next-selection-coding-system>:
829 Sync docs with select.el.
830
831 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
832 Lisp version.
833
834 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
835 Sync doc with the xterm.c version.
836
837 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
838 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
839
8402010-10-23 Glenn Morris <rgm@gnu.org>
841
842 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
843 * frame.c (syms_of_frame) <menu-bar-mode>:
844 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
845 <hourglass-delay>: Sync docs with Lisp.
846
8472010-10-23 Eli Zaretskii <eliz@gnu.org>
848
849 Implement mouse highlight for bidi-reordered lines.
850
851 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
852 (mouse_face_from_string_pos): New function, replaces
853 fast_find_string_pos.
854 (note_mouse_highlight): Call it instead of fast_find_string_pos.
855 (note_mode_line_or_margin_highlight): Support bidi-reordered
856 strings and R2L glyph rows. Fix comments.
857 (note_mouse_highlight): When bidi reordering is turned on in a
858 buffer, call next-single-property-change and
859 previous-single-property-change with last argument nil. Clear
860 mouse highlight when mouse pointer is in a R2L row on the stretch
861 glyph that stands for no text beyond the line end.
862 (row_containing_pos): Don't return too early when CHARPOS is in a
863 bidi-reordered continued line. Return immediately when the first
864 hit is found in a line that is not continued, or when an exact
865 match for CHARPOS is found.
866 (rows_from_pos_range): New function.
867 (mouse_face_from_buffer_pos): Use it instead of calling
868 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
869 function to support mouse highlight in bidi-reordered lines and
870 not to assume that START_CHARPOS is always in mouse_face_beg_row.
871 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
872 that the former is always above the latter or identical to it.
873 (show_mouse_face): Support drawing highlighted R2L lines.
874 (coords_in_mouse_face_p): New function, bidi-aware.
875 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
876 Call it instead of comparing with mouse-face members of dpyinfo.
877 (note_mode_line_or_margin_highlight): Fix confusingly swapped
878 usage of hpos and vpos.
879
8802010-10-22 Jan Djärv <jan.h.d@swipnet.se>
881
882 * xrdb.c: Include keyboard.h for MOTIF.
883
884 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
885 MOTIF (Bug#7263).
886
887 * xfns.c: Include Xm/TextF and Xm/List.
888 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
889 Make ANSI prototypes.
890
8912010-10-22 Glenn Morris <rgm@gnu.org>
892
893 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
894 Remove ccl and duplicate mouse.
895
8962010-10-21 Chong Yidong <cyd@stupidchicken.com>
897
898 * insdel.c (prepare_to_modify_buffer): Don't set
899 saved-region-selection if modification hooks are disabled.
900
9012010-10-19 Chong Yidong <cyd@stupidchicken.com>
902
903 * cmds.c (Fdelete_char): Doc fix.
904
9052010-10-19 Ken Brown <kbrown@cornell.edu>
906
907 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
908
9092010-10-19 Kenichi Handa <handa@m17n.org>
910
911 Fix incorrect font metrics when the same font is opened with
912 different pixelsizes.
913
914 * xftfont.c: Include composite.h.
915 (xftfont_shape): New function.
916 (syms_of_xftfont): Set xftfont_driver.shape.
917
9182010-10-18 Julien Danjou <julien@danjou.info>
919
920 * frame.c (Fframe_pointer_visible_p):
921 Add `frame-pointer-visible-p' to get the pointer visibility.
922
9232010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
924
925 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
926 non-"EAGAIN"-like error to signal to Emacs that the socket should
927 be closed.
928
12010-10-15 Eli Zaretskii <eliz@gnu.org> 9292010-10-15 Eli Zaretskii <eliz@gnu.org>
2 930
931 * unexcoff.c (make_hdr): Fix prototype according to changes in
932 2010-10-03T13:59:56Z!dann@ics.uci.edu.
933
3 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning. 934 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4 935
52010-10-15 Tassilo Horn <tassilo@member.fsf.org> 9362010-10-15 Tassilo Horn <tassilo@member.fsf.org>
@@ -236,8 +1167,8 @@
236 anything on any platform. 1167 anything on any platform.
237 1168
238 Remove unused code. 1169 Remove unused code.
239 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove 1170 * sysdep.c (select_alarm, sys_select, read_input_waiting):
240 select emulation, all systems support select. 1171 Remove select emulation, all systems support select.
241 (set_exclusive_use): Remove, the only user is in an #if 0 block. 1172 (set_exclusive_use): Remove, the only user is in an #if 0 block.
242 * process.c (create_process): Remove #if 0 code. 1173 * process.c (create_process): Remove #if 0 code.
243 1174
@@ -302,7 +1233,7 @@
3022010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org> 12332010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
303 1234
304 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region) 1235 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
305 (parse_region): Reworked to take regions instead of strings, and 1236 (parse_region): Rework to take regions instead of strings, and
306 renamed to reflect that these are the libxml functions. 1237 renamed to reflect that these are the libxml functions.
307 1238
3082010-10-01 Eli Zaretskii <eliz@gnu.org> 12392010-10-01 Eli Zaretskii <eliz@gnu.org>
@@ -340,7 +1271,8 @@
340 * msdos.c: 1271 * msdos.c:
341 * charset.c: Do not include stdlib.h and string.h, config.h does it. 1272 * charset.c: Do not include stdlib.h and string.h, config.h does it.
342 1273
343 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it. 1274 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
1275 defines it.
344 1276
345 * process.c: Move #include <pty.h> earlier. 1277 * process.c: Move #include <pty.h> earlier.
346 (SIGCHLD): Remove conditional definition, syssignal.h defines it. 1278 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
@@ -430,8 +1362,8 @@
430 (find_last_unchanged_at_beg_row) 1362 (find_last_unchanged_at_beg_row)
431 (find_first_unchanged_at_end_row, row_containing_pos) 1363 (find_first_unchanged_at_end_row, row_containing_pos)
432 (trailing_whitespace_p, display_mode_element, decode_mode_spec) 1364 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
433 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use 1365 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
434 EMACS_INT for buffer and string positions. 1366 Use EMACS_INT for buffer and string positions.
435 1367
436 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT. 1368 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
437 (row_containing_pos): Adjust prototype. 1369 (row_containing_pos): Adjust prototype.
@@ -518,7 +1450,7 @@
518 1450
519 * dispextern.h (struct glyph): Change the member "slice" to union. 1451 * dispextern.h (struct glyph): Change the member "slice" to union.
520 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id. 1452 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
521 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change. 1453 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
522 1454
523 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img 1455 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
524 instead of glyph->slice. 1456 instead of glyph->slice.
@@ -714,8 +1646,8 @@
714 positions. 1646 positions.
715 1647
716 * xdisp.c (redisplay_internal, try_window_id) 1648 * xdisp.c (redisplay_internal, try_window_id)
717 (set_cursor_from_row, find_first_unchanged_at_end_row): Use 1649 (set_cursor_from_row, find_first_unchanged_at_end_row):
718 EMACS_INT for buffer positions. 1650 Use EMACS_INT for buffer positions.
719 1651
720 * dispextern.h (set_cursor_from_row): Adjust prototype. 1652 * dispextern.h (set_cursor_from_row): Adjust prototype.
721 1653
@@ -725,8 +1657,8 @@
725 positions. 1657 positions.
726 1658
727 * dispextern.h (mode_line_string, marginal_area_string) 1659 * dispextern.h (mode_line_string, marginal_area_string)
728 (increment_matrix_positions, increment_row_positions): Adjust 1660 (increment_matrix_positions, increment_row_positions):
729 prototypes. 1661 Adjust prototypes.
730 1662
731 * data.c (Faref, Faset): Use EMACS_INT for string length and 1663 * data.c (Faref, Faset): Use EMACS_INT for string length and
732 positions. 1664 positions.
@@ -739,8 +1671,8 @@
739 1671
740 * syntax.c (scan_words, update_syntax_table) 1672 * syntax.c (scan_words, update_syntax_table)
741 (prev_char_comend_first, back_comment, skip_chars) 1673 (prev_char_comend_first, back_comment, skip_chars)
742 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use 1674 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
743 EMACS_INT for buffer and string positions. 1675 Use EMACS_INT for buffer and string positions.
744 1676
745 * syntax.h (scan_words, update_syntax_table): Adjust prototypes. 1677 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
746 1678
@@ -788,8 +1720,8 @@
788 (modify_overlay, Fmove_overlay, report_overlay_modification) 1720 (modify_overlay, Fmove_overlay, report_overlay_modification)
789 (evaporate_overlays): Use EMACS_INT for buffer positions. 1721 (evaporate_overlays): Use EMACS_INT for buffer positions.
790 1722
791 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust 1723 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
792 prototypes. 1724 Adjust prototypes.
793 1725
794 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer 1726 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
795 positions. 1727 positions.
@@ -880,13 +1812,13 @@
880 * indent.c (compute_motion): Use EMACS_INT for arguments to 1812 * indent.c (compute_motion): Use EMACS_INT for arguments to
881 region_cache_forward. 1813 region_cache_forward.
882 1814
883 * region-cache.c (struct boundary, struct region_cache): Use 1815 * region-cache.c (struct boundary, struct region_cache):
884 EMACS_INT for positions. 1816 Use EMACS_INT for positions.
885 (find_cache_boundary, move_cache_gap, insert_cache_boundary) 1817 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
886 (delete_cache_boundaries, set_cache_region) 1818 (delete_cache_boundaries, set_cache_region)
887 (invalidate_region_cache, know_region_cache) 1819 (invalidate_region_cache, know_region_cache)
888 (region_cache_forward, region_cache_backward, pp_cache): Use 1820 (region_cache_forward, region_cache_backward, pp_cache):
889 EMACS_INT for buffer positions. 1821 Use EMACS_INT for buffer positions.
890 1822
891 * region-cache.h (know_region_cache, invalidate_region_cache) 1823 * region-cache.h (know_region_cache, invalidate_region_cache)
892 (region_cache_forward, region_cache_backward): Adjust prototypes. 1824 (region_cache_forward, region_cache_backward): Adjust prototypes.
@@ -907,8 +1839,8 @@
907 (Fline_beginning_position, Fline_end_position, Fprevious_char) 1839 (Fline_beginning_position, Fline_end_position, Fprevious_char)
908 (Fchar_after, Fchar_before, Finsert_char) 1840 (Fchar_after, Fchar_before, Finsert_char)
909 (Finsert_buffer_substring, Fcompare_buffer_substrings) 1841 (Finsert_buffer_substring, Fcompare_buffer_substrings)
910 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use 1842 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
911 EMACS_INT for buffer and string position variables. 1843 Use EMACS_INT for buffer and string position variables.
912 (Finsert_char): Protect against too large insertions. 1844 (Finsert_char): Protect against too large insertions.
913 1845
914 * lisp.h (clip_to_bounds): Adjust prototype. 1846 * lisp.h (clip_to_bounds): Adjust prototype.
@@ -945,8 +1877,8 @@
945 1877
946 * editfns.c (Fformat): Use EMACS_INT for string size variables. 1878 * editfns.c (Fformat): Use EMACS_INT for string size variables.
947 1879
948 * xdisp.c (store_mode_line_noprop, display_mode_element): Use 1880 * xdisp.c (store_mode_line_noprop, display_mode_element):
949 EMACS_INT for string positions. 1881 Use EMACS_INT for string positions.
950 1882
951 * intervals.c (get_property_and_range): Use EMACS_INT for buffer 1883 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
952 position arguments. 1884 position arguments.
@@ -956,13 +1888,13 @@
956 * character.c (parse_str_as_multibyte, str_as_multibyte) 1888 * character.c (parse_str_as_multibyte, str_as_multibyte)
957 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte) 1889 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
958 (string_count_byte8, string_escape_byte8, c_string_width) 1890 (string_count_byte8, string_escape_byte8, c_string_width)
959 (strwidth, lisp_string_width, multibyte_chars_in_text): Use 1891 (strwidth, lisp_string_width, multibyte_chars_in_text):
960 EMACS_INT for string length variables and arguments. 1892 Use EMACS_INT for string length variables and arguments.
961 1893
962 * character.h (parse_str_as_multibyte, str_as_multibyte) 1894 * character.h (parse_str_as_multibyte, str_as_multibyte)
963 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte) 1895 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
964 (c_string_width, strwidth, lisp_string_width): Adjust 1896 (c_string_width, strwidth, lisp_string_width):
965 prototypes. 1897 Adjust prototypes.
966 1898
967 * font.c (font_intern_prop): Use EMACS_INT for string length 1899 * font.c (font_intern_prop): Use EMACS_INT for string length
968 variables. 1900 variables.
@@ -982,8 +1914,8 @@
982 (allocate_string_data, compact_small_strings, Fmake_string) 1914 (allocate_string_data, compact_small_strings, Fmake_string)
983 (Fmake_bool_vector, make_string, make_unibyte_string) 1915 (Fmake_bool_vector, make_string, make_unibyte_string)
984 (make_multibyte_string, make_string_from_bytes) 1916 (make_multibyte_string, make_string_from_bytes)
985 (make_specified_string_string, Fmake_list, Fmake_vector): Use 1917 (make_specified_string_string, Fmake_list, Fmake_vector):
986 EMACS_INT for string length variables and arguments. 1918 Use EMACS_INT for string length variables and arguments.
987 (find_string_data_in_pure, make_pure_string, make_pure_c_string) 1919 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
988 (Fpurecopy): Use EMACS_INT for string size. 1920 (Fpurecopy): Use EMACS_INT for string size.
989 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT 1921 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
@@ -1248,8 +2180,8 @@
1248 2180
12492010-09-04 Eli Zaretskii <eliz@gnu.org> 21812010-09-04 Eli Zaretskii <eliz@gnu.org>
1250 2182
1251 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't 2183 * w32uniscribe.c (uniscribe_shape): Update commentary.
1252 try to reorder grapheme clusters, since LGSTRING should always 2184 Don't try to reorder grapheme clusters, since LGSTRING should always
1253 hold them in the logical order. 2185 hold them in the logical order.
1254 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to 2186 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1255 return glyph codes in the logical order. 2187 return glyph codes in the logical order.
@@ -1448,16 +2380,16 @@
1448 Do not define EMACS_HAVE_TTY_PGRP. Only define 2380 Do not define EMACS_HAVE_TTY_PGRP. Only define
1449 EMACS_GET_TTY_PGRP for !DOS_NT. 2381 EMACS_GET_TTY_PGRP for !DOS_NT.
1450 * sysdep.c: Include sysselect.h unconditionally. Do not include 2382 * sysdep.c: Include sysselect.h unconditionally. Do not include
1451 sys/ioctl.h and termios.h, systty.h does it. Use 2383 sys/ioctl.h and termios.h, systty.h does it.
1452 HAVE_SYS_UTSNAME_H instead of USG as an include guard. 2384 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1453 (init_baud_rate): Remove HAVE_TERMIO code. 2385 (init_baud_rate): Remove HAVE_TERMIO code.
1454 (child_setup_tty): Remove HAVE_TERMIO code. 2386 (child_setup_tty): Remove HAVE_TERMIO code.
1455 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS 2387 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1456 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR. 2388 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1457 (new_ltchars, new_tchars): Remove, unused. 2389 (new_ltchars, new_tchars): Remove, unused.
1458 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS 2390 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1459 code. Remove special casing for __mips__, it was a no-op. Remove 2391 code. Remove special casing for __mips__, it was a no-op.
1460 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS. 2392 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1461 (init_sys_modes): Remove HPUX special case. 2393 (init_sys_modes): Remove HPUX special case.
1462 * process.c: Include stdlib.h unconditionally. Do not include 2394 * process.c: Include stdlib.h unconditionally. Do not include
1463 fcntl.h, systty.h does it. Remove conditional code for 2395 fcntl.h, systty.h does it. Remove conditional code for
@@ -2181,8 +3113,8 @@
2181 (initial_argv, last_nonmenu_event, load_in_progress) 3113 (initial_argv, last_nonmenu_event, load_in_progress)
2182 (noninteractive_need_newline, scroll_margin): Add declarations. 3114 (noninteractive_need_newline, scroll_margin): Add declarations.
2183 3115
2184 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove 3116 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
2185 declarations, menu.h has them. 3117 Remove declarations, menu.h has them.
2186 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers) 3118 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2187 (Vinput_method_function, Qinput_method_function) 3119 (Vinput_method_function, Qinput_method_function)
2188 (Qevent_symbol_element_mask, last_event_timestamp): 3120 (Qevent_symbol_element_mask, last_event_timestamp):
@@ -2489,8 +3421,8 @@
2489 3421
2490 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations. 3422 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2491 (encode_terminal_code, produce_composite_glyph): Remove unused variables. 3423 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2492 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove 3424 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
2493 local extern declarations. 3425 Remove local extern declarations.
2494 3426
2495 * xmenu.c: Do not included lwlib.h, not needed. 3427 * xmenu.c: Do not included lwlib.h, not needed.
2496 3428
@@ -2855,8 +3787,8 @@
2855 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook) 3787 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2856 (xaw_jump_callback, xaw_scroll_callback) 3788 (xaw_jump_callback, xaw_scroll_callback)
2857 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb) 3789 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2858 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert 3790 (x_wm_set_size_hint, x_activate_timeout_atimer):
2859 definitions to standard C. 3791 Convert definitions to standard C.
2860 * xmenu.c (menubar_id_to_frame, popup_get_selection) 3792 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2861 (popup_activate_callback, popup_deactivate_callback) 3793 (popup_activate_callback, popup_deactivate_callback)
2862 (menu_highlight_callback, menubar_selection_callback) 3794 (menu_highlight_callback, menubar_selection_callback)
@@ -2969,7 +3901,7 @@
2969 (Ffont_put): Accept font-entity and font-object too. 3901 (Ffont_put): Accept font-entity and font-object too.
2970 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and 3902 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2971 return value changed. 3903 return value changed.
2972 (syms_of_font): Adjusted for the above change. 3904 (syms_of_font): Adjust for the above change.
2973 3905
29742010-07-11 Andreas Schwab <schwab@linux-m68k.org> 39062010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2975 3907
@@ -3060,8 +3992,8 @@
3060 3992
3061 * frame.c (make_frame): Initialize menu_bar_lines and 3993 * frame.c (make_frame): Initialize menu_bar_lines and
3062 tool_bar_lines members. 3994 tool_bar_lines members.
3063 (make_initial_frame, make_terminal_frame): Initialize 3995 (make_initial_frame, make_terminal_frame):
3064 menu_bar_lines using value of menu-bar-mode. 3996 Initialize menu_bar_lines using value of menu-bar-mode.
3065 3997
3066 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines. 3998 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3067 3999
@@ -3509,8 +4441,8 @@
3509 * xsmfns.c (SSDATA): New macro. 4441 * xsmfns.c (SSDATA): New macro.
3510 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings 4442 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3511 passed to strlen/strcpy/strcat. 4443 passed to strlen/strcpy/strcat.
3512 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast 4444 (create_client_leader_window): Surround with #ifndef USE_GTK.
3513 7:th arg to XChangeProperty to (unsigned char *). 4445 Cast 7:th arg to XChangeProperty to (unsigned char *).
3514 4446
3515 * xsettings.c (something_changedCB, parse_settings) 4447 * xsettings.c (something_changedCB, parse_settings)
3516 (apply_xft_settings): Reformat prototype. 4448 (apply_xft_settings): Reformat prototype.
@@ -3668,8 +4600,8 @@
3668 4600
3669 * msdos.c (IT_set_frame_parameters): Fix setting of colors in 4601 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3670 frames other than the initial one. Fix reversal of colors when 4602 frames other than the initial one. Fix reversal of colors when
3671 `reverse' is specified in the frame parameters. Call 4603 `reverse' is specified in the frame parameters.
3672 update_face_from_frame_parameter instead of 4604 Call update_face_from_frame_parameter instead of
3673 internal-set-lisp-face-attribute. Initialize screen colors from 4605 internal-set-lisp-face-attribute. Initialize screen colors from
3674 initial_screen_colors[] when f->default_face_done_p is zero, 4606 initial_screen_colors[] when f->default_face_done_p is zero,
3675 instead of depending on being called with default-frame-alist as 4607 instead of depending on being called with default-frame-alist as
@@ -3854,8 +4786,8 @@
3854 4786
38552010-06-30 Chong Yidong <cyd@stupidchicken.com> 47872010-06-30 Chong Yidong <cyd@stupidchicken.com>
3856 4788
3857 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't 4789 * frame.c (get_future_frame_param, Fmake_terminal_frame):
3858 check default-frame-alist. 4790 Don't check default-frame-alist.
3859 4791
38602010-06-30 Andreas Schwab <schwab@linux-m68k.org> 47922010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3861 4793
@@ -3947,8 +4879,8 @@
3947 (Bug#6526). 4879 (Bug#6526).
3948 4880
3949 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped) 4881 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3950 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New 4882 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
3951 defines based on what configure finds. 4883 New defines based on what configure finds.
3952 4884
3953 * xterm.c (XTflash): Use gtk_widget_get_window. 4885 * xterm.c (XTflash): Use gtk_widget_get_window.
3954 (xg_scroll_callback): Use gtk_adjustment_get_upper and 4886 (xg_scroll_callback): Use gtk_adjustment_get_upper and
@@ -3962,8 +4894,8 @@
3962 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with 4894 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3963 HAVE_GTK_FILE_SELECTION_NEW. 4895 HAVE_GTK_FILE_SELECTION_NEW.
3964 4896
3965 * gtkutil.c (xg_display_open, xg_display_close): Remove 4897 * gtkutil.c (xg_display_open, xg_display_close):
3966 HAVE_GTK_MULTIDISPLAY, it is always defined. 4898 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
3967 (xg_display_open): Return type is void. 4899 (xg_display_open): Return type is void.
3968 (gtk_widget_set_has_window) 4900 (gtk_widget_set_has_window)
3969 (gtk_dialog_get_action_area, gtk_dialog_get_content_area) 4901 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
@@ -3972,8 +4904,8 @@
3972 (gtk_adjustment_get_step_increment): #define these if not found 4904 (gtk_adjustment_get_step_increment): #define these if not found
3973 by configure. 4905 by configure.
3974 (remove_submenu): New define based on Gtk+ version. 4906 (remove_submenu): New define based on Gtk+ version.
3975 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use 4907 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
3976 gtk_widget_get_window. 4908 Use gtk_widget_get_window.
3977 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped. 4909 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3978 (xg_create_frame_widgets): Use gtk_widget_set_has_window. 4910 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3979 (create_dialog): Use gtk_dialog_get_action_area and 4911 (create_dialog): Use gtk_dialog_get_action_area and
@@ -3981,10 +4913,10 @@
3981 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH 4913 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3982 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always 4914 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3983 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough. 4915 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3984 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use 4916 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
3985 g_object_ref and g_object_unref. 4917 Use g_object_ref and g_object_unref.
3986 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use 4918 (xg_update_menu_item, xg_tool_bar_menu_proxy):
3987 gtk_widget_get_sensitive. 4919 Use gtk_widget_get_sensitive.
3988 (xg_update_submenu): Use remove_submenu. 4920 (xg_update_submenu): Use remove_submenu.
3989 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child 4921 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3990 properties instead to get old x and y position. 4922 properties instead to get old x and y position.
@@ -4517,8 +5449,8 @@
4517 Move static/dynamic dependency stuff to deps.mk/autodeps.mk. 5449 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4518 * deps.mk, autodeps.mk: New files, extracted from Makefile.in. 5450 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4519 5451
4520 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix 5452 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
4521 reallocation of the cache. (Bug#6210) 5453 Fix reallocation of the cache. (Bug#6210)
4522 5454
45232010-05-19 Glenn Morris <rgm@gnu.org> 54552010-05-19 Glenn Morris <rgm@gnu.org>
4524 5456
@@ -5225,8 +6157,8 @@
5225 Reduce CPP usage. 6157 Reduce CPP usage.
5226 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user. 6158 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5227 (obj): Use autoconf for unexec instead of cpp. 6159 (obj): Use autoconf for unexec instead of cpp.
5228 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove 6160 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
5229 definitions and undefs. Inline definitions in the only user. 6161 Remove definitions and undefs. Inline definitions in the only user.
5230 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf. 6162 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
5231 6163
52322010-04-27 Glenn Morris <rgm@gnu.org> 61642010-04-27 Glenn Morris <rgm@gnu.org>
@@ -5337,8 +6269,8 @@
5337 the only user: s/unixware.h. 6269 the only user: s/unixware.h.
5338 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition 6270 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5339 from m/intel386.h. 6271 from m/intel386.h.
5340 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions 6272 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
5341 moved here from m/intel386.h. 6273 Definitions moved here from m/intel386.h.
5342 6274
5343 * m/mips.h: Remove #if 0 code. 6275 * m/mips.h: Remove #if 0 code.
5344 6276
@@ -5420,14 +6352,14 @@
5420 HAVE_XFT. 6352 HAVE_XFT.
5421 (something_changedCB): store_font_changed_event is now 6353 (something_changedCB): store_font_changed_event is now
5422 store_config_changed_event. 6354 store_config_changed_event.
5423 (parse_settings): Rename from parse_xft_settings. Read 6355 (parse_settings): Rename from parse_xft_settings.
5424 non-xft xsettings outside #ifdef HAVE_XFT. 6356 Read non-xft xsettings outside #ifdef HAVE_XFT.
5425 (read_settings): Renamed from read_xft_settings. 6357 (read_settings): Renamed from read_xft_settings.
5426 (apply_xft_settings): Take current settings as parameter. Do not 6358 (apply_xft_settings): Take current settings as parameter. Do not
5427 call read_(xft)_settings. 6359 call read_(xft)_settings.
5428 (read_and_apply_settings): New function. 6360 (read_and_apply_settings): New function.
5429 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call 6361 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
5430 read_and_apply_settings if there are settings to be read. 6362 Call read_and_apply_settings if there are settings to be read.
5431 (init_xsettings): Renamed from init_xfd_settings. 6363 (init_xsettings): Renamed from init_xfd_settings.
5432 Call read_and_apply_settings unconditionally. 6364 Call read_and_apply_settings unconditionally.
5433 (xsettings_initialize): Call init_xsettings. 6365 (xsettings_initialize): Call init_xsettings.
@@ -5555,19 +6487,19 @@
5555 6487
5556 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for 6488 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5557 append_stretch_glyph. 6489 append_stretch_glyph.
5558 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix 6490 (set_cursor_from_row) <cursor_x>: Remove unused variable.
5559 off-by-one error in computing x at end of text in the row. 6491 Fix off-by-one error in computing x at end of text in the row.
5560 (append_stretch_glyph): In reversed row, prepend the glyph rather 6492 (append_stretch_glyph): In reversed row, prepend the glyph rather
5561 than append it. Set resolved_level and bidi_type of the glyph. 6493 than append it. Set resolved_level and bidi_type of the glyph.
5562 (extend_face_to_end_of_line): If the row is reversed, prepend a 6494 (extend_face_to_end_of_line): If the row is reversed, prepend a
5563 stretch glyph whose width is such that the rightmost glyph will be 6495 stretch glyph whose width is such that the rightmost glyph will be
5564 drawn at the right margin of the window. Fix off-by-one error on 6496 drawn at the right margin of the window. Fix off-by-one error on
5565 TTY frames in testing whether a line needs face extension. Fix 6497 TTY frames in testing whether a line needs face extension.
5566 face extension at ZV. If this is the last glyph row, use 6498 Fix face extension at ZV. If this is the last glyph row, use
5567 DEFAULT_FACE_ID, to avoid painting the rest of the window with the 6499 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5568 region face. 6500 region face.
5569 (set_cursor_from_row, display_line): Use 6501 (set_cursor_from_row, display_line):
5570 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of 6502 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5571 row->continuation_lines_width. 6503 row->continuation_lines_width.
5572 (next_element_from_buffer): Don't call bidi_paragraph_init if we 6504 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5573 are at ZV. Fixes a crash when reseated to ZV by 6505 are at ZV. Fixes a crash when reseated to ZV by
@@ -5933,8 +6865,8 @@
5933 6865
5934 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID. 6866 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5935 (apply_systemfont_to_menu): New function. 6867 (apply_systemfont_to_menu): New function.
5936 (set_frame_menubar, create_and_show_popup_menu): Call 6868 (set_frame_menubar, create_and_show_popup_menu):
5937 apply_systemfont_to_menu. 6869 Call apply_systemfont_to_menu.
5938 6870
59392010-04-07 Jan Djärv <jan.h.d@swipnet.se> 68712010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5940 6872
@@ -5962,8 +6894,8 @@
5962 6894
59632010-04-03 Eli Zaretskii <eliz@gnu.org> 68952010-04-03 Eli Zaretskii <eliz@gnu.org>
5964 6896
5965 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check 6897 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
5966 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against 6898 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5967 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV. 6899 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5968 6900
5969 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it 6901 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
@@ -6186,8 +7118,8 @@
6186 (prepare_desired_row): Preserve the reversed_p flag. 7118 (prepare_desired_row): Preserve the reversed_p flag.
6187 (row_equal_p): Compare the reversed_p attributes as well. 7119 (row_equal_p): Compare the reversed_p attributes as well.
6188 7120
6189 * xdisp.c (init_iterator): Initialize it->bidi_p. Call 7121 * xdisp.c (init_iterator): Initialize it->bidi_p.
6190 bidi_init_it and set it->paragraph_embedding from the current 7122 Call bidi_init_it and set it->paragraph_embedding from the current
6191 buffer's value of bidi_paragraph_direction. 7123 buffer's value of bidi_paragraph_direction.
6192 (reseat_1): Initialize bidi_it.first_elt. 7124 (reseat_1): Initialize bidi_it.first_elt.
6193 (set_iterator_to_next, next_element_from_buffer): Use the value of 7125 (set_iterator_to_next, next_element_from_buffer): Use the value of
@@ -6198,8 +7130,8 @@
6198 (next_element_from_buffer): If bidi_it.first_elt is set, 7130 (next_element_from_buffer): If bidi_it.first_elt is set,
6199 initialize paragraph direction and find the first character to 7131 initialize paragraph direction and find the first character to
6200 display in the visual order. If reseated to a middle of a line, 7132 display in the visual order. If reseated to a middle of a line,
6201 prime the bidi iterator starting at the line's beginning. Handle 7133 prime the bidi iterator starting at the line's beginning.
6202 the situation where we overstepped stop_charpos due to 7134 Handle the situation where we overstepped stop_charpos due to
6203 non-linearity of the bidi iteration. Likewise for when we back up 7135 non-linearity of the bidi iteration. Likewise for when we back up
6204 beyond the previous stop_charpos. When moving across stop_charpos, 7136 beyond the previous stop_charpos. When moving across stop_charpos,
6205 record it in prev_stop. 7137 record it in prev_stop.
@@ -6220,8 +7152,8 @@
6220 now EMACS_INT; all callers changed. 7152 now EMACS_INT; all callers changed.
6221 (set_cursor_from_row): Rewritten to support bidirectional text and 7153 (set_cursor_from_row): Rewritten to support bidirectional text and
6222 reversed glyph rows. 7154 reversed glyph rows.
6223 (text_outside_line_unchanged_p, try_window_id): Disable 7155 (text_outside_line_unchanged_p, try_window_id):
6224 optimizations if we are reordering bidirectional text and the 7156 Disable optimizations if we are reordering bidirectional text and the
6225 paragraph direction can be affected by the change. 7157 paragraph direction can be affected by the change.
6226 (append_glyph, append_composite_glyph) 7158 (append_glyph, append_composite_glyph)
6227 (produce_image_glyph, append_stretch_glyph): Set the 7159 (produce_image_glyph, append_stretch_glyph): Set the
@@ -8374,8 +9306,8 @@
83742009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com> 93062009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8375 9307
8376 * emacs.c (inhibit_x_resources): Update doc string for NS. 9308 * emacs.c (inhibit_x_resources): Update doc string for NS.
8377 (main) [HAVE_NS]: Don't process --no-init-file option. Remove 9309 (main) [HAVE_NS]: Don't process --no-init-file option.
8378 legacy code for -NXHost. Fix error printf in daemon case. 9310 Remove legacy code for -NXHost. Fix error printf in daemon case.
8379 9311
8380 * nsterm.h (ns_no_defaults): Remove. 9312 * nsterm.h (ns_no_defaults): Remove.
8381 9313
@@ -8384,8 +9316,8 @@
8384 (ns_use_qd_smoothing): Remove legacy variable. 9316 (ns_use_qd_smoothing): Remove legacy variable.
8385 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and 9317 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8386 don't update the NSWindow itself. 9318 don't update the NSWindow itself.
8387 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve 9319 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
8388 state detection and store user rect ourselves. (Bug #3581) 9320 Improve state detection and store user rect ourselves. (Bug #3581)
8389 9321
8390 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use 9322 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8391 ns_use_qd_smoothing. 9323 ns_use_qd_smoothing.
@@ -8688,8 +9620,8 @@
86882009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com> 96202009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8689 9621
8690 * nsterm.m (ns_get_color): Update documentation properly for last 9622 * nsterm.m (ns_get_color): Update documentation properly for last
8691 change, and clean up loose ends in the code left by it. Fix 9623 change, and clean up loose ends in the code left by it.
8692 longstanding bug with 16-bit hex parsing, and add support for 9624 Fix longstanding bug with 16-bit hex parsing, and add support for
8693 yet another X11 format (rgb:r/g/b) for compatibility. 9625 yet another X11 format (rgb:r/g/b) for compatibility.
8694 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of 9626 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8695 timer_check() to avoid crash on Leopard/PPC. Bug #2154. 9627 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
@@ -10584,8 +11516,8 @@
10584 (Fdefine_coding_system_internal): Likewise. 11516 (Fdefine_coding_system_internal): Likewise.
10585 (setup_coding_system): Likewise. Remove unneeded casts. 11517 (setup_coding_system): Likewise. Remove unneeded casts.
10586 (detect_coding_iso_2022): Compare Viso_2022_charset_list with 11518 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10587 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove 11519 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
10588 unneeded casts. 11520 Remove unneeded casts.
10589 11521
10590 * insdel.c (del_range_2): Don't modify gap contents when called 11522 * insdel.c (del_range_2): Don't modify gap contents when called
10591 from decode_coding_object. (Bug#1809) 11523 from decode_coding_object. (Bug#1809)
@@ -10598,8 +11530,8 @@
10598 11530
10599 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern. 11531 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10600 11532
10601 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions 11533 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
10602 moved to data.c. 11534 Definitions moved to data.c.
10603 11535
106042009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com> 115362009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10605 11537
@@ -11615,8 +12547,8 @@
11615 here; it will be done in init_frame_faces. 12547 here; it will be done in init_frame_faces.
11616 12548
11617 * xterm.h (struct xim_inst_t): Definition moved from xterm.c. 12549 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11618 (struct x_display_info): Remove unused member null_pixel. New 12550 (struct x_display_info): Remove unused member null_pixel.
11619 member xim_callback_data. 12551 New member xim_callback_data.
11620 12552
11621 * xterm.c (struct xim_inst_t): Definition moved to xterm.h. 12553 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11622 (xim_initialize): Save pointer to callback function data. 12554 (xim_initialize): Save pointer to callback function data.
@@ -11641,8 +12573,8 @@
11641 12573
116422008-12-12 Jason Rumney <jasonr@gnu.org> 125742008-12-12 Jason Rumney <jasonr@gnu.org>
11643 12575
11644 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set 12576 * w32fns.c (x_display_info_for_name, Fx_open_connection):
11645 Vwindow_system_version to the real w32 major version. 12577 Set Vwindow_system_version to the real w32 major version.
11646 12578
116472008-12-12 Dan Nicolaescu <dann@ics.uci.edu> 125792008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11648 12580
@@ -11892,7 +12824,7 @@
11892 (set_category_set): Extern it. 12824 (set_category_set): Extern it.
11893 12825
11894 * category.c (hash_get_category_set): New function. 12826 * category.c (hash_get_category_set): New function.
11895 (Fmodify_category_entry): Adjusted for the change of 12827 (Fmodify_category_entry): Adjust for the change of
11896 char_table_ref_and_range. Call hash_get_category_set to get a 12828 char_table_ref_and_range. Call hash_get_category_set to get a
11897 category set to store in the table. 12829 category set to store in the table.
11898 12830
@@ -11910,8 +12842,8 @@
11910 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER) 12842 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11911 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER): 12843 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11912 New macros. 12844 New macros.
11913 (load_charset_map): Meaning of control_flag changed. If 12845 (load_charset_map): Meaning of control_flag changed.
11914 inhibit_load_charset_map is nonzero, setup a table in 12846 If inhibit_load_charset_map is nonzero, setup a table in
11915 temp_charset_work. 12847 temp_charset_work.
11916 (load_charset): New argument control_flag. 12848 (load_charset): New argument control_flag.
11917 (map_charset_for_dump): New function. 12849 (map_charset_for_dump): New function.
@@ -11930,18 +12862,18 @@
11930 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp 12862 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11931 variable. 12863 variable.
11932 12864
11933 * chartab.c (sub_char_table_ref_and_range): Adjusted for the 12865 * chartab.c (sub_char_table_ref_and_range): Adjust for the
11934 change of char_table_ref_and_range. 12866 change of char_table_ref_and_range.
11935 (char_table_ref_and_range): Change the meaning of argument FROM 12867 (char_table_ref_and_range): Change the meaning of argument FROM
11936 and TO. Now the caller must provide initial values for *FROM 12868 and TO. Now the caller must provide initial values for *FROM
11937 and *TO. 12869 and *TO.
11938 12870
11939 * fontset.c (fontset_add): Adjusted for the change of 12871 * fontset.c (fontset_add): Adjust for the change of
11940 char_table_ref_and_range. 12872 char_table_ref_and_range.
11941 (fontset_get_font_group): Likewise. 12873 (fontset_get_font_group): Likewise.
11942 (Ffontset_info): Likewise. 12874 (Ffontset_info): Likewise.
11943 12875
11944 * keymap.c (describe_vector): Adjusted for the change of 12876 * keymap.c (describe_vector): Adjust for the change of
11945 char_table_ref_and_range. For char-table, put boundary between 12877 char_table_ref_and_range. For char-table, put boundary between
11946 non-ASCII and 8-bit characters. 12878 non-ASCII and 8-bit characters.
11947 12879
@@ -13755,8 +14687,8 @@
13755 14687
13756 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def. 14688 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13757 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs 14689 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13758 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand 14690 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
13759 comment on NO_SOCK_SIGIO. 14691 Expand comment on NO_SOCK_SIGIO.
13760 14692
137612008-08-03 Chong Yidong <cyd@stupidchicken.com> 146932008-08-03 Chong Yidong <cyd@stupidchicken.com>
13762 14694
@@ -14748,8 +15680,8 @@
14748 15680
147492008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change) 156812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14750 15682
14751 * callproc.c (set_initial_environment): Initialize 15683 * callproc.c (set_initial_environment):
14752 Vprocess_environment under CANNOT_DUMP (fixes crash when 15684 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
14753 batch-compiling for bootstrap). 15685 batch-compiling for bootstrap).
14754 15686
147552008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change) 156872008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
@@ -15165,8 +16097,8 @@
15165 16097
15166 * xftfont.c (struct xftfont_info): New member ft_size. Make the 16098 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15167 member order compatible with struct ftfont_info. 16099 member order compatible with struct ftfont_info.
15168 (xftfont_open): Add FC_CHARSET to the pattern. Set 16100 (xftfont_open): Add FC_CHARSET to the pattern.
15169 xftfont_info->ft_size. Don't unlock the face. Check BDF 16101 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
15170 properties if appropriate. 16102 properties if appropriate.
15171 (xftfont_close): Unlock the face. 16103 (xftfont_close): Unlock the face.
15172 (xftfont_anchor_point, xftfont_shape): Deleted. 16104 (xftfont_anchor_point, xftfont_shape): Deleted.
@@ -15592,8 +16524,8 @@
15592 truncate only if the window width is below that integer. 16524 truncate only if the window width is below that integer.
15593 (start_display, resize_mini_window, produce_stretch_glyph) 16525 (start_display, resize_mini_window, produce_stretch_glyph)
15594 (display_string, move_it_in_display_line_to): Use line_wrap. 16526 (display_string, move_it_in_display_line_to): Use line_wrap.
15595 (back_to_previous_visible_line_start, reseat_1): Reset 16527 (back_to_previous_visible_line_start, reseat_1):
15596 string_from_display_prop_p. 16528 Reset string_from_display_prop_p.
15597 (display_line): Extend default face to end of line when wrapping. 16529 (display_line): Extend default face to end of line when wrapping.
15598 16530
155992008-06-24 Kim F. Storm <storm@cua.dk> 165312008-06-24 Kim F. Storm <storm@cua.dk>
@@ -16961,8 +17893,8 @@
16961 (struct glyph_string): New member underline_position and 17893 (struct glyph_string): New member underline_position and
16962 underline_thickness. 17894 underline_thickness.
16963 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX. 17895 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16964 (struct face): Change type of `font' to `struct font *'. Remove 17896 (struct face): Change type of `font' to `struct font *'.
16965 members `font_name', `font_info_id'. 17897 Remove members `font_name', `font_info_id'.
16966 (per_char_metric, encode_char): Delete externs. 17898 (per_char_metric, encode_char): Delete externs.
16967 (calc_pixel_width_or_height): Adjust the prototype. 17899 (calc_pixel_width_or_height): Adjust the prototype.
16968 17900
@@ -16990,8 +17922,8 @@
16990 (CHECK_FONT_GET_OBJECT): Likewise. 17922 (CHECK_FONT_GET_OBJECT): Likewise.
16991 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros. 17923 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16992 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h. 17924 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16993 (struct font_driver): New members case_sensitive anc check. Type 17925 (struct font_driver): New members case_sensitive anc check.
16994 of the member list and open changed. 17926 Type of the member list and open changed.
16995 (enable_font_backend, font_symbolic_weight, font_symbolic_slant) 17927 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16996 (font_symbolic_width, font_find_object, font_get_spec) 17928 (font_symbolic_width, font_find_object, font_get_spec)
16997 (font_set_lface_from_name): Delete extern. 17929 (font_set_lface_from_name): Delete extern.
@@ -17011,7 +17943,7 @@
17011 (font_make_spec, font_make_entity, font_make_object) 17943 (font_make_spec, font_make_entity, font_make_object)
17012 (font_intern_prop): Renamed from intern_downcase. Don't downcase 17944 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17013 the string. Callers changed. 17945 the string. Callers changed.
17014 (font_pixel_size): Adjusted for the format change of font-related 17946 (font_pixel_size): Adjust for the format change of font-related
17015 objects. 17947 objects.
17016 (prop_name_to_numeric, prop_numeric_to_name): Delete them. 17948 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17017 (font_style_to_value, font_style_symbolic): New function. 17949 (font_style_to_value, font_style_symbolic): New function.
@@ -17019,19 +17951,19 @@
17019 (font_registry_charsets): Use Fassoc_string instead of 17951 (font_registry_charsets): Use Fassoc_string instead of
17020 assq_no_quit. 17952 assq_no_quit.
17021 (font_prop_validate_symbol): Don't return null_string. 17953 (font_prop_validate_symbol): Don't return null_string.
17022 (font_prop_validate_style): Adjusted for the change of 17954 (font_prop_validate_style): Adjust for the change of
17023 style-related values in a font vector. 17955 style-related values in a font vector.
17024 (font_property_table): Delete entries for QClanguage and 17956 (font_property_table): Delete entries for QClanguage and
17025 QCantialias, add entries for QCavgwidth. 17957 QCantialias, add entries for QCavgwidth.
17026 (get_font_prop_index): Delete the 2nd argument FROM. 17958 (get_font_prop_index): Delete the 2nd argument FROM.
17027 (font_prop_validate): Arguments changed. 17959 (font_prop_validate): Arguments changed.
17028 (font_put_extra): Adjusted for the change of font-related objects. 17960 (font_put_extra): Adjust for the change of font-related objects.
17029 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd) 17961 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17030 (font_parse_fcname, font_unparse_fcname) 17962 (font_parse_fcname, font_unparse_fcname)
17031 (font_prepare_composition): Likewise. 17963 (font_prepare_composition): Likewise.
17032 (font_parse_family_registry): Renamed from font_merge_old_spec. 17964 (font_parse_family_registry): Renamed from font_merge_old_spec.
17033 (otf_open): Delete the 1st arg entity. 17965 (otf_open): Delete the 1st arg entity.
17034 (font_otf_capability): Adjusted for the above change. 17966 (font_otf_capability): Adjust for the above change.
17035 (font_score): New arg alternate_families. Adjusted for the change 17967 (font_score): New arg alternate_families. Adjusted for the change
17036 of font-related objects. 17968 of font-related objects.
17037 (font_sort_entites): New arg best_only. 17969 (font_sort_entites): New arg best_only.
@@ -17040,27 +17972,27 @@
17040 (font_match_p): Check alternate families. 17972 (font_match_p): Check alternate families.
17041 (font_find_object): Delete it. 17973 (font_find_object): Delete it.
17042 (font_check_object): New function. 17974 (font_check_object): New function.
17043 (font_clear_cache): Adjusted for the change of font-related objects. 17975 (font_clear_cache): Adjust for the change of font-related objects.
17044 (font_delete_unmatched): New arg. 17976 (font_delete_unmatched): New arg.
17045 (font_list_entities): Call font_driver->list with a spec that 17977 (font_list_entities): Call font_driver->list with a spec that
17046 doesn't specify style-related properties. 17978 doesn't specify style-related properties.
17047 (font_matching_entity): Arguments changed. Caller changed. 17979 (font_matching_entity): Arguments changed. Caller changed.
17048 (font_open_entity): Adjusted for the change of font-related objects. 17980 (font_open_entity): Adjust for the change of font-related objects.
17049 (font_close_object, font_has_char, font_encode_char) 17981 (font_close_object, font_has_char, font_encode_char)
17050 (font_get_name, font_get_spec): Likewise. 17982 (font_get_name, font_get_spec): Likewise.
17051 (font_spec_from_name, font_clear_prop, font_update_lface): 17983 (font_spec_from_name, font_clear_prop, font_update_lface):
17052 New functions. 17984 New functions.
17053 (font_find_for_lface, font_open_for_lface, font_load_for_lface) 17985 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17054 (font_prepare_for_face, font_done_for_face, font_open_by_name) 17986 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17055 (font_at): Adjusted for the change of font-related objects. 17987 (font_at): Adjust for the change of font-related objects.
17056 (font_range): New function. 17988 (font_range): New function.
17057 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts) 17989 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17058 (Ffont_xlfd_name): Adjusted for the change of font-related objects. 17990 (Ffont_xlfd_name): Adjust for the change of font-related objects.
17059 (Fcopy_font_spec, Fmerge_font_spec): New function. 17991 (Fcopy_font_spec, Fmerge_font_spec): New function.
17060 (Ffont_family_list): Renamed from list-families. 17992 (Ffont_family_list): Renamed from list-families.
17061 (Finternal_set_font_style_table): Arguments changed. 17993 (Finternal_set_font_style_table): Arguments changed.
17062 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font) 17994 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17063 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the 17995 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
17064 change of font-related objects. 17996 change of font-related objects.
17065 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols. 17997 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17066 17998
@@ -17070,8 +18002,8 @@
17070 (enum FONT_SPEC_INDEX): Delete it. 18002 (enum FONT_SPEC_INDEX): Delete it.
17071 (font_info, list_fonts_func, load_font_func, query_font_func) 18003 (font_info, list_fonts_func, load_font_func, query_font_func)
17072 (set_frame_fontset_func, find_ccl_program_func) 18004 (set_frame_fontset_func, find_ccl_program_func)
17073 (get_font_repertory_func, new_fontset_from_font_name): Delete 18005 (get_font_repertory_func, new_fontset_from_font_name):
17074 externs. 18006 Delete externs.
17075 (fontset_from_font_name): Extern it. 18007 (fontset_from_font_name): Extern it.
17076 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID) 18008 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17077 (FONT_INFO_FROM_FACE): Deleted. 18009 (FONT_INFO_FROM_FACE): Deleted.
@@ -17101,7 +18033,7 @@
17101 (face_for_char): Likewise. Call face_for_char with font_object. 18033 (face_for_char): Likewise. Call face_for_char with font_object.
17102 (fs_load_font): Delete. Delete #pragma surrounding it. 18034 (fs_load_font): Delete. Delete #pragma surrounding it.
17103 (fs_query_fontset): Use strcasecmp instead of strcmp. 18035 (fs_query_fontset): Use strcasecmp instead of strcmp.
17104 (generate_ascii_font_name): Adjusted for the format change of 18036 (generate_ascii_font_name): Adjust for the format change of
17105 font-spec. 18037 font-spec.
17106 (Fset_fontset_font): Likewise. Use new macros to set elements of 18038 (Fset_fontset_font): Likewise. Use new macros to set elements of
17107 font-def. 18039 font-def.
@@ -17112,7 +18044,7 @@
17112 a fontset is already created for the font. FIx updating of 18044 a fontset is already created for the font. FIx updating of
17113 Vfontset_alias_alist. 18045 Vfontset_alias_alist.
17114 (fontset_ascii_font): Deleted. 18046 (fontset_ascii_font): Deleted.
17115 (Ffont_info): Adjusted for the format change of font-spec. 18047 (Ffont_info): Adjust for the format change of font-spec.
17116 (Finternal_char_font): Likewise. 18048 (Finternal_char_font): Likewise.
17117 (Ffontset_info): Likewise. 18049 (Ffontset_info): Likewise.
17118 (syms_of_fontset): Don't check load_font_func. 18050 (syms_of_fontset): Don't check load_font_func.
@@ -17128,13 +18060,13 @@
17128 (x_set_font_backend): Use FRAME_FONT macro to check if a font is 18060 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17129 already set for the frame. 18061 already set for the frame.
17130 18062
17131 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make 18063 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
17132 a font-entity by font_make_entity. Use font_intern_prop instead 18064 Make a font-entity by font_make_entity. Use font_intern_prop instead
17133 of intern_downcase. Use FONT_SET_STYLE to set a style-related 18065 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17134 font property. If a font is scalable, set avgwidth property to 0. 18066 font property. If a font is scalable, set avgwidth property to 0.
17135 Set font-entity property by font_put_extra. 18067 Set font-entity property by font_put_extra.
17136 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed. 18068 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17137 (ffont_driver): Adjusted for the change of struct font_driver. 18069 (ffont_driver): Adjust for the change of struct font_driver.
17138 (ftfont_spec_pattern): New function. 18070 (ftfont_spec_pattern): New function.
17139 (ftfont_list): Return a list, not vector. 18071 (ftfont_list): Return a list, not vector.
17140 (ftfont_match): Use ftfont_spec_pattern to get a pattern. 18072 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
@@ -17145,7 +18077,7 @@
17145 font property. Don't update dpyinfo->smallest_font_height and 18077 font property. Don't update dpyinfo->smallest_font_height and
17146 dpyinfo->smallest_char_width. 18078 dpyinfo->smallest_char_width.
17147 (ftfont_close): Don't free `struct font'. 18079 (ftfont_close): Don't free `struct font'.
17148 (ftfont_has_char): Adjusted for the format change of font-entity. 18080 (ftfont_has_char): Adjust for the format change of font-entity.
17149 (ftfont_encode_char, ftfont_text_extents): Likewise. 18081 (ftfont_encode_char, ftfont_text_extents): Likewise.
17150 18082
17151 * ftxfont.c (ftxfont_list): Return a list, not vector. 18083 * ftxfont.c (ftxfont_list): Return a list, not vector.
@@ -17154,10 +18086,10 @@
17154 font property. Don't update dpyinfo->smallest_font_height and 18086 font property. Don't update dpyinfo->smallest_font_height and
17155 dpyinfo->smallest_char_width. 18087 dpyinfo->smallest_char_width.
17156 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts. 18088 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17157 (ftxfont_draw): Adjusted for the change of struct font. 18089 (ftxfont_draw): Adjust for the change of struct font.
17158 18090
17159 * image.c (image_ascent): Don't include "charset.h". Include 18091 * image.c (image_ascent): Don't include "charset.h".
17160 "character.h" and "font.h". 18092 Include "character.h" and "font.h".
17161 18093
17162 * lisp.h (enum pvec_type): New member PREV_FONT. 18094 * lisp.h (enum pvec_type): New member PREV_FONT.
17163 (Fassoc_string): EXFUN it. 18095 (Fassoc_string): EXFUN it.
@@ -17175,19 +18107,19 @@
17175 'struct font *'. 18107 'struct font *'.
17176 (get_char_face_and_encoding): Assign the whole encoding task to 18108 (get_char_face_and_encoding): Assign the whole encoding task to
17177 the `encode-char' method of a font driver. 18109 the `encode-char' method of a font driver.
17178 (fill_composite_glyph_string): Adjusted for the change of `struct 18110 (fill_composite_glyph_string): Adjust for the change of `struct
17179 face' and `struct glyph_string'. 18111 face' and `struct glyph_string'.
17180 (fill_glyph_string): Likewise. 18112 (fill_glyph_string): Likewise.
17181 (get_per_char_metric): Arguments changed. 18113 (get_per_char_metric): Arguments changed.
17182 (x_get_glyph_overhangs): Adjusted for the change of `struct face' 18114 (x_get_glyph_overhangs): Adjust for the change of `struct face'
17183 and `struct glyph_string'. 18115 and `struct glyph_string'.
17184 (produce_stretch_glyph, calc_line_height_property) 18116 (produce_stretch_glyph, calc_line_height_property)
17185 (x_produce_glyphs): Likewise. 18117 (x_produce_glyphs): Likewise.
17186 18118
17187 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND 18119 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17188 conditionals. Don't check enable_font_backend. Delete all codes 18120 conditionals. Don't check enable_font_backend. Delete all codes
17189 used only when USE_FONT_BACKEND is not defined. Use 18121 used only when USE_FONT_BACKEND is not defined.
17190 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx. 18122 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17191 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth) 18123 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17192 (Qp): Extern them. 18124 (Qp): Extern them.
17193 (clear_font_table, load_face_font, xlfd_lookup_field_contents): 18125 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
@@ -17260,7 +18192,7 @@
17260 (xfont_query_font): Deleted. 18192 (xfont_query_font): Deleted.
17261 (xfont_find_ccl_program): Renamed from x_find_ccl_program and 18193 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17262 moved from xterm.c. 18194 moved from xterm.c.
17263 (xfont_driver): Adjusted for the change of struct font_driver. 18195 (xfont_driver): Adjust for the change of struct font_driver.
17264 (compare_font_names): New function. 18196 (compare_font_names): New function.
17265 (xfont_list_pattern): Sort font names case insensitively. Make 18197 (xfont_list_pattern): Sort font names case insensitively. Make
17266 font_entity by calling font_make_entity. Avoid auto-scaled fonts. 18198 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
@@ -17272,16 +18204,16 @@
17272 font property. Don't update dpyinfo->smallest_font_height and 18204 font property. Don't update dpyinfo->smallest_font_height and
17273 dpyinfo->smallest_char_width. 18205 dpyinfo->smallest_char_width.
17274 (xfont_close): Don't free struct font. 18206 (xfont_close): Don't free struct font.
17275 (xfont_prepare_face): Adjusted for the change of struct font. 18207 (xfont_prepare_face): Adjust for the change of struct font.
17276 (xfont_done_face): Deleted. 18208 (xfont_done_face): Deleted.
17277 (xfont_has_char): Adjusted for the change of struct font. 18209 (xfont_has_char): Adjust for the change of struct font.
17278 (xfont_encode_char, xfont_draw): Likewise. 18210 (xfont_encode_char, xfont_draw): Likewise.
17279 (xfont_check): New function. 18211 (xfont_check): New function.
17280 18212
17281 * xftfont.c (xftfont_list): Adjusted for the change of `list' 18213 * xftfont.c (xftfont_list): Adjust for the change of `list'
17282 callback function. 18214 callback function.
17283 (xftfont_match): Adjusted for the format change of font-entity. 18215 (xftfont_match): Adjust for the format change of font-entity.
17284 (xftfont_open): Adjusted for the format change of font-entity and 18216 (xftfont_open): Adjust for the format change of font-entity and
17285 font-object. Adjusted for the change of struct font. Return a 18217 font-object. Adjusted for the change of struct font. Return a
17286 font-object. Don't update dpyinfo->smallest_font_height and 18218 font-object. Don't update dpyinfo->smallest_font_height and
17287 dpyinfo->smallest_char_width. 18219 dpyinfo->smallest_char_width.
@@ -17305,7 +18237,7 @@
17305 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h. 18237 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17306 (x_per_char_metric, x_encode_char): Deleted. 18238 (x_per_char_metric, x_encode_char): Deleted.
17307 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont. 18239 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17308 (x_compute_glyph_string_overhangs): Adjusted for the change of 18240 (x_compute_glyph_string_overhangs): Adjust for the change of
17309 `struct face'. 18241 `struct face'.
17310 (x_draw_glyph_string_foreground) 18242 (x_draw_glyph_string_foreground)
17311 (x_draw_composite_glyph_string_foreground): Likewise. 18243 (x_draw_composite_glyph_string_foreground): Likewise.
@@ -17317,7 +18249,7 @@
17317 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font) 18249 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17318 (x_query_font, x_get_font_repertory): Deleted. 18250 (x_query_font, x_get_font_repertory): Deleted.
17319 (x_find_ccl_program): Renamed and moved to xfont.c. 18251 (x_find_ccl_program): Renamed and moved to xfont.c.
17320 (x_redisplay_interface): Adjusted for the change of `struct 18252 (x_redisplay_interface): Adjust for the change of `struct
17321 redisplay_interface'. 18253 redisplay_interface'.
17322 18254
17323 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND 18255 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
@@ -17352,19 +18284,19 @@
17352 Use FONT_SET_STYLE to set a style-related font property. If a 18284 Use FONT_SET_STYLE to set a style-related font property. If a
17353 font is scalable, set avgwidth property to 0. Set font-entity 18285 font is scalable, set avgwidth property to 0. Set font-entity
17354 property by font_put_extra. 18286 property by font_put_extra.
17355 (font_matches_spec): Adjusted for the format change of font-entity. 18287 (font_matches_spec): Adjust for the format change of font-entity.
17356 (w32_weight_table, w32_decode_weight): New variables. 18288 (w32_weight_table, w32_decode_weight): New variables.
17357 (w32_encode_weight): New function. 18289 (w32_encode_weight): New function.
17358 (fill_in_logfont): Adjusted for the format change of font-spec. 18290 (fill_in_logfont): Adjust for the format change of font-spec.
17359 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol 18291 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17360 weight value. 18292 weight value.
17361 (w32font_driver): Adjusted for the change of struct font_driver. 18293 (w32font_driver): Adjust for the change of struct font_driver.
17362 18294
17363 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND 18295 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17364 conditionals. Don't check enable_font_backend. Surround non-used 18296 conditionals. Don't check enable_font_backend. Surround non-used
17365 code by "#ifdef OLD_FONT" and "endif". 18297 code by "#ifdef OLD_FONT" and "endif".
17366 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT) 18298 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17367 (FONT_AVG_WIDTH): Adjusted for the change of struct font. 18299 (FONT_AVG_WIDTH): Adjust for the change of struct font.
17368 18300
17369 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND 18301 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17370 conditionals. Don't check enable_font_backend. Delete all codes 18302 conditionals. Don't check enable_font_backend. Delete all codes
@@ -17374,9 +18306,9 @@
17374 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional. 18306 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17375 (uniscribe_open): Return value changed to font-object. 18307 (uniscribe_open): Return value changed to font-object.
17376 Adjusted for the format change of font-object. 18308 Adjusted for the format change of font-object.
17377 (uniscribe_otf_capability): Adjusted for the change of struct font. 18309 (uniscribe_otf_capability): Adjust for the change of struct font.
17378 (add_opentype_font_name_to_list): Don't downcase names. 18310 (add_opentype_font_name_to_list): Don't downcase names.
17379 (uniscribe_font_driver): Adjusted for the change of struct 18311 (uniscribe_font_driver): Adjust for the change of struct
17380 font_driver. 18312 font_driver.
17381 18313
173822008-05-13 Chong Yidong <cyd@stupidchicken.com> 183142008-05-13 Chong Yidong <cyd@stupidchicken.com>
@@ -19527,8 +20459,8 @@
19527 20459
195282008-02-01 Kenichi Handa <handa@ni.aist.go.jp> 204602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19529 20461
19530 * coding.c (decode_coding_object, encode_coding_object): Adjust 20462 * coding.c (decode_coding_object, encode_coding_object):
19531 marker positions after conversion. 20463 Adjust marker positions after conversion.
19532 20464
19533 * lisp.h (struct Lisp_Marker): New member need_adjustment. 20465 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19534 20466
@@ -20097,8 +21029,8 @@
20097 21029
200982008-02-01 Jason Rumney <jasonr@gnu.org> 210302008-02-01 Jason Rumney <jasonr@gnu.org>
20099 21031
20100 * w32term.c (x_set_glyph_string_clipping): Use 21032 * w32term.c (x_set_glyph_string_clipping):
20101 get_glyph_string_clip_rects. 21033 Use get_glyph_string_clip_rects.
20102 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): 21034 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20103 Adjust for the change of struct glyph_string. 21035 Adjust for the change of struct glyph_string.
20104 21036
@@ -20109,8 +21041,8 @@
20109 * xftfont.c (xftfont_draw): Adjust for the change of struct 21041 * xftfont.c (xftfont_draw): Adjust for the change of struct
20110 glyph_string. 21042 glyph_string.
20111 21043
20112 * xterm.c (x_set_glyph_string_clipping): Use 21044 * xterm.c (x_set_glyph_string_clipping):
20113 get_glyph_string_clip_rects. 21045 Use get_glyph_string_clip_rects.
20114 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): 21046 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20115 Adjust for the change of struct glyph_string. 21047 Adjust for the change of struct glyph_string.
20116 21048
@@ -20287,8 +21219,8 @@
20287 constant. Save QCspacing value. Save list of scripts instead of 21219 constant. Save QCspacing value. Save list of scripts instead of
20288 binary subranges. 21220 binary subranges.
20289 (w32_generic_family, logfonts_match, font_matches_spec): New functions. 21221 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20290 (add_font_entity_to_list): Use font_callback_data struct. Filter 21222 (add_font_entity_to_list): Use font_callback_data struct.
20291 unwanted fonts. 21223 Filter unwanted fonts.
20292 (add_one_font_entity_to_list): Use font_callback_data struct. 21224 (add_one_font_entity_to_list): Use font_callback_data struct.
20293 (w32_registry): Default to iso10646_1. 21225 (w32_registry): Default to iso10646_1.
20294 (fill_in_logfont): Use dpi from extra slot. Don't bother with 21226 (fill_in_logfont): Use dpi from extra slot. Don't bother with
@@ -20509,8 +21441,8 @@
20509 21441
205102008-02-01 Kenichi Handa <handa@m17n.org> 214422008-02-01 Kenichi Handa <handa@m17n.org>
20511 21443
20512 * xterm.c (x_draw_composite_glyph_string_foreground): Fix 21444 * xterm.c (x_draw_composite_glyph_string_foreground):
20513 indexing into elements of s->cmp and s->char2b. 21445 Fix indexing into elements of s->cmp and s->char2b.
20514 21446
205152008-02-01 Juanma Barranquero <lekktu@gmail.com> 214472008-02-01 Juanma Barranquero <lekktu@gmail.com>
20516 21448
@@ -20748,8 +21680,8 @@
20748 21680
20749 * font.c (font_parse_fcname, font_parse_name): Don't change :name 21681 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20750 property of FONT. 21682 property of FONT.
20751 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define 21683 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
20752 them unconditionally. 21684 Define them unconditionally.
20753 (font_matching_entity): New function. 21685 (font_matching_entity): New function.
20754 (font_open_by_name): Try font_matching_entity if exact match is 21686 (font_open_by_name): Try font_matching_entity if exact match is
20755 not found. 21687 not found.
@@ -20794,8 +21726,8 @@
20794 (font_prepare_composition): Set cmp->glyph_len. 21726 (font_prepare_composition): Set cmp->glyph_len.
20795 (font_open_entity): Set font->scalable. 21727 (font_open_entity): Set font->scalable.
20796 (Ffont_get): Handle :otf property. 21728 (Ffont_get): Handle :otf property.
20797 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New 21729 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
20798 functions. 21730 New functions.
20799 (Fquery_font): Use font->font.full_name. 21731 (Fquery_font): Use font->font.full_name.
20800 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and 21732 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20801 Sfont_otf_alternates. 21733 Sfont_otf_alternates.
@@ -20864,8 +21796,8 @@
20864 (font_at): New function. 21796 (font_at): New function.
20865 (Ffont_get): If FONT is a font-object, get entity from it. 21797 (Ffont_get): If FONT is a font-object, get entity from it.
20866 (Ffont_make_gstring): Initialize elements of glyphs with nil. 21798 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20867 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix 21799 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
20868 range check. 21800 Fix range check.
20869 (Ffont_at): New function. 21801 (Ffont_at): New function.
20870 (syms_of_font): Defsubr Sfont_at. 21802 (syms_of_font): Defsubr Sfont_at.
20871 21803
@@ -20896,7 +21828,7 @@
208962008-02-01 Kenichi Handa <handa@m17n.org> 218282008-02-01 Kenichi Handa <handa@m17n.org>
20897 21829
20898 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST) 21830 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20899 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format. 21831 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
20900 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros. 21832 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20901 21833
20902 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card. 21834 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
@@ -20958,8 +21890,8 @@
20958 (font_prop_validate_extra): Delete. 21890 (font_prop_validate_extra): Delete.
20959 (font_prop_validate_spacing): New function. 21891 (font_prop_validate_spacing): New function.
20960 (font_property_table): Add elements for all known properties. 21892 (font_property_table): Add elements for all known properties.
20961 (get_font_prop_index): Rename from check_font_prop_name. New 21893 (get_font_prop_index): Rename from check_font_prop_name.
20962 argument FROM. Change caller. 21894 New argument FROM. Change caller.
20963 (font_prop_validate): Validate all known properties. 21895 (font_prop_validate): Validate all known properties.
20964 (font_put_extra): Delete argument force. Change caller. 21896 (font_put_extra): Delete argument force. Change caller.
20965 (font_expand_wildcards): Make it static. Fix the way of shrinking 21897 (font_expand_wildcards): Make it static. Fix the way of shrinking
@@ -21031,8 +21963,8 @@
21031 (font_open_for_lface, font_open_by_name): Fix handling of font size. 21963 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21032 (Ffont_spec): Add QCname property that contains only unknown properties. 21964 (Ffont_spec): Add QCname property that contains only unknown properties.
21033 21965
21034 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't 21966 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
21035 include weight in listing pattern, instead check weight of each 21967 Don't include weight in listing pattern, instead check weight of each
21036 listed font. Don't include scalable in pattern. Pay attention to 21968 listed font. Don't include scalable in pattern. Pay attention to
21037 FONT_PIXEL_SIZE_QUANTUM. 21969 FONT_PIXEL_SIZE_QUANTUM.
21038 21970
@@ -21067,8 +21999,8 @@
21067 21999
21068 * font.c (XLFD_SMALLNUM_MASK): Delete this macro. 22000 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21069 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it. 22001 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21070 (font_expand_wildcards): Fix handling ENCODING field. Avoid 22002 (font_expand_wildcards): Fix handling ENCODING field.
21071 unnecessary checks for weight, slant, and swidth. 22003 Avoid unnecessary checks for weight, slant, and swidth.
21072 (font_parse_fcname): New function. 22004 (font_parse_fcname): New function.
21073 (font_unparse_fcname): New function. 22005 (font_unparse_fcname): New function.
21074 (font_parse_name): New function. 22006 (font_parse_name): New function.
@@ -21302,8 +22234,8 @@
21302 * xfns.c [USE_FONT_BACKEND]: Include "font.h". 22234 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21303 (x_default_font_parameter) [USE_FONT_BACKEND]: New function. 22235 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21304 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is 22236 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21305 nonzero, register all available font drivers. Call 22237 nonzero, register all available font drivers.
21306 x_default_font_parameter for deciding a font. 22238 Call x_default_font_parameter for deciding a font.
21307 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise. 22239 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21308 22240
21309 * xterm.c [USE_FONT_BACKEND]: Include "font.h". 22241 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
@@ -21347,8 +22279,8 @@
21347 22279
213482008-02-01 Kenichi Handa <handa@m17n.org> 222802008-02-01 Kenichi Handa <handa@m17n.org>
21349 22281
21350 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix 22282 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
21351 condition to terminate the loop. 22283 Fix condition to terminate the loop.
21352 22284
213532008-02-01 Kenichi Handa <handa@m17n.org> 222852008-02-01 Kenichi Handa <handa@m17n.org>
21354 22286
@@ -21381,8 +22313,8 @@
21381 22313
213822008-02-01 Kenichi Handa <handa@m17n.org> 223142008-02-01 Kenichi Handa <handa@m17n.org>
21383 22315
21384 * xterm.c (x_set_glyph_string_clipping_exactly): Set 22316 * xterm.c (x_set_glyph_string_clipping_exactly):
21385 src->clip_head and src->clip_tail temporarily instead of src->hl. 22317 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
21386 22318
21387 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte 22319 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21388 character sequence. 22320 character sequence.
@@ -21414,8 +22346,8 @@
21414 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL. 22346 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21415 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly. 22347 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21416 22348
21417 * xterm.c (x_draw_composite_glyph_string_foreground): Check 22349 * xterm.c (x_draw_composite_glyph_string_foreground):
21418 s->face is NULL or not. 22350 Check s->face is NULL or not.
21419 22351
214202008-02-01 Kenichi Handa <handa@m17n.org> 223522008-02-01 Kenichi Handa <handa@m17n.org>
21421 22353
@@ -21465,8 +22397,8 @@
21465 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS. 22397 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21466 (decode_mac_font_name): Use decode_coding_c_string instead of 22398 (decode_mac_font_name): Use decode_coding_c_string instead of
21467 decode_coding. 22399 decode_coding.
21468 (x_load_font): Initialize fontp->fontset to -1. Set 22400 (x_load_font): Initialize fontp->fontset to -1.
21469 fontp->encoding_type. 22401 Set fontp->encoding_type.
21470 22402
214712008-02-01 Kenichi Handa <handa@m17n.org> 224032008-02-01 Kenichi Handa <handa@m17n.org>
21472 22404
@@ -21513,8 +22445,8 @@
21513 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally. 22445 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21514 (UNIDATA): New variable. 22446 (UNIDATA): New variable.
21515 (${lispsource}international/charprop.el): Depends on ${UNIDATA}. 22447 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21516 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run 22448 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
21517 $(RUN_TEMACS) unconditionally. 22449 Run $(RUN_TEMACS) unconditionally.
21518 22450
215192008-02-01 Kenichi Handa <handa@m17n.org> 224512008-02-01 Kenichi Handa <handa@m17n.org>
21520 22452
@@ -21531,10 +22463,10 @@
21531 22463
21532 * w32select.c (validate_coding_system) 22464 * w32select.c (validate_coding_system)
21533 (setup_windows_coding_system): New functions. 22465 (setup_windows_coding_system): New functions.
21534 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use 22466 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
21535 setup_windows_coding_system. 22467 Use setup_windows_coding_system.
21536 (setup_config, Fw32_get_clipboard_data): Use 22468 (setup_config, Fw32_get_clipboard_data):
21537 validate_coding_system. 22469 Use validate_coding_system.
21538 (Fx_selection_exists): Move call to setup_config to a place 22470 (Fx_selection_exists): Move call to setup_config to a place
21539 where signals are allowed. 22471 where signals are allowed.
21540 22472
@@ -21616,8 +22548,8 @@
21616 22548
21617 * fontset.c (fs_load_font): Use fast_string_match_ignore_case 22549 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21618 instead of fast_c_string_match_ignore_case. 22550 instead of fast_c_string_match_ignore_case.
21619 (find_font_encoding): Change argument to Lisp_Object. Use 22551 (find_font_encoding): Change argument to Lisp_Object.
21620 fast_string_match_ignore_case instead of 22552 Use fast_string_match_ignore_case instead of
21621 fast_c_string_match_ignore_case. Change caller. 22553 fast_c_string_match_ignore_case. Change caller.
21622 22554
216232008-02-01 Kenichi Handa <handa@m17n.org> 225552008-02-01 Kenichi Handa <handa@m17n.org>
@@ -21644,13 +22576,13 @@
21644 Qundecided. 22576 Qundecided.
21645 (Fterminal_coding_system): Return nil if terminal coding system is 22577 (Fterminal_coding_system): Return nil if terminal coding system is
21646 `undecided'. 22578 `undecided'.
21647 (syms_of_coding): Define coding-system `undecided' here. Setup 22579 (syms_of_coding): Define coding-system `undecided' here.
21648 terminal_coding as `undecided'. 22580 Setup terminal_coding as `undecided'.
21649 22581
216502008-02-01 Kenichi Handa <handa@m17n.org> 225822008-02-01 Kenichi Handa <handa@m17n.org>
21651 22583
21652 * xdisp.c (message_dolog, set_message_1): Call 22584 * xdisp.c (message_dolog, set_message_1):
21653 unibyte_char_to_multibyte with arg type int. 22585 Call unibyte_char_to_multibyte with arg type int.
21654 22586
21655 * lread.c (read1): Fix reading of a char-table. 22587 * lread.c (read1): Fix reading of a char-table.
21656 22588
@@ -21748,8 +22680,8 @@
21748 22680
217492008-02-01 Kenichi Handa <handa@m17n.org> 226812008-02-01 Kenichi Handa <handa@m17n.org>
21750 22682
21751 * coding.c (Ffind_coding_systems_region_internal): Include 22683 * coding.c (Ffind_coding_systems_region_internal):
21752 raw-text and no-conversion in the result. 22684 Include raw-text and no-conversion in the result.
21753 22685
217542008-02-01 Kenichi Handa <handa@m17n.org> 226862008-02-01 Kenichi Handa <handa@m17n.org>
21755 22687
@@ -21805,16 +22737,16 @@
21805 22737
21806 * fontset.c: Include "intervals.h". 22738 * fontset.c: Include "intervals.h".
21807 (fontset_face): Fix comparing of Lisp_Objects. 22739 (fontset_face): Fix comparing of Lisp_Objects.
21808 (free_face_fontset, new_fontset_from_font_name): Fix 22740 (free_face_fontset, new_fontset_from_font_name):
21809 Lisp_Object/int mixup. 22741 Fix Lisp_Object/int mixup.
21810 22742
21811 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup. 22743 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21812 22744
21813 * coding.c: Add many prototypes for static functions. 22745 * coding.c: Add many prototypes for static functions.
21814 (get_translation_table): Allow max_lookup to be NULL. 22746 (get_translation_table): Allow max_lookup to be NULL.
21815 (decode_coding, Ffind_coding_systems_region_internal) 22747 (decode_coding, Ffind_coding_systems_region_internal)
21816 (Funencodable_char_position, Fcheck_coding_systems_region): Call 22748 (Funencodable_char_position, Fcheck_coding_systems_region):
21817 get_translation_table with max_lookup NULL. 22749 Call get_translation_table with max_lookup NULL.
21818 22750
218192008-02-01 Kenichi Handa <handa@m17n.org> 227512008-02-01 Kenichi Handa <handa@m17n.org>
21820 22752
@@ -21943,8 +22875,8 @@
21943 (Fdefine_coding_system_internal): Accept list of translation 22875 (Fdefine_coding_system_internal): Accept list of translation
21944 tables as :encode-translation-table and :decode-translation-table. 22876 tables as :encode-translation-table and :decode-translation-table.
21945 (Fcoding_system_put): New function. 22877 (Fcoding_system_put): New function.
21946 (syms_of_coding): Declare new symbols. Defsubr 22878 (syms_of_coding): Declare new symbols.
21947 Scoding_system_put. 22879 Defsubr Scoding_system_put.
21948 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset, 22880 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21949 typically JISX0212. 22881 typically JISX0212.
21950 22882
@@ -22065,8 +22997,8 @@
22065 * chartab.c (map_sub_char_table_for_charset): Fix args to 22997 * chartab.c (map_sub_char_table_for_charset): Fix args to
22066 c_function with. 22998 c_function with.
22067 22999
22068 * coding.h (enum coding_result_code): Delete 23000 * coding.h (enum coding_result_code):
22069 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC. 23001 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22070 23002
22071 * coding.c (Qinsufficient_source, Qinconsistent_eol) 23003 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22072 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables. 23004 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
@@ -22278,8 +23210,8 @@
22278 23210
22279 * w32console.c: Include character.h. Use terminal_encode_buffer 23211 * w32console.c: Include character.h. Use terminal_encode_buffer
22280 from term.c. 23212 from term.c.
22281 (write_glyphs): Use new version of encode_terminal_code. Use 23213 (write_glyphs): Use new version of encode_terminal_code.
22282 encode_coding_object in place of encode_coding. 23214 Use encode_coding_object in place of encode_coding.
22283 23215
22284 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling. 23216 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22285 encoding becomes encoding_type. 23217 encoding becomes encoding_type.
@@ -22303,16 +23235,16 @@
22303 * charset.h (charset_unicode): Extern it. 23235 * charset.h (charset_unicode): Extern it.
22304 23236
22305 * charset.c (string_xstring_p): Check by (C >= 0x100). 23237 * charset.c (string_xstring_p): Check by (C >= 0x100).
22306 (find_charsets_in_text): Change format of the arc CHARSETS. New 23238 (find_charsets_in_text): Change format of the arc CHARSETS.
22307 arg MULTIBYTE. 23239 New arg MULTIBYTE.
22308 (Ffind_charset_region, Ffind_charset_string): Adjust for the 23240 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22309 change of find_charsets_in_text. 23241 change of find_charsets_in_text.
22310 (Fsplit_char): Fix doc. Never return unknown. 23242 (Fsplit_char): Fix doc. Never return unknown.
22311 23243
22312 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP. 23244 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22313 23245
22314 * coding.c (Fdefine_coding_system_alias): Update 23246 * coding.c (Fdefine_coding_system_alias):
22315 Vcoding_system_list. 23247 Update Vcoding_system_list.
22316 23248
22317 * fontset.c (load_font_get_repertory): Pay attention to the case 23249 * fontset.c (load_font_get_repertory): Pay attention to the case
22318 that ENCODING of a font is specified by a char-table. 23250 that ENCODING of a font is specified by a char-table.
@@ -22322,16 +23254,16 @@
22322 23254
223232008-02-01 Kenichi Handa <handa@m17n.org> 232552008-02-01 Kenichi Handa <handa@m17n.org>
22324 23256
22325 * term.c (encode_terminal_code): Don't handle glyph-table. Check 23257 * term.c (encode_terminal_code): Don't handle glyph-table.
22326 if a character is encodable by the terminal coding system. If 23258 Check if a character is encodable by the terminal coding system.
22327 not, produces proper number of `?'s. Update 23259 If not, produces proper number of `?'s. Update
22328 terminal_encode_buffer and terminal_encode_buf_size if necessary. 23260 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22329 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. 23261 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22330 23262
223312008-02-01 Kenichi Handa <handa@m17n.org> 232632008-02-01 Kenichi Handa <handa@m17n.org>
22332 23264
22333 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New 23265 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
22334 variables. 23266 New variables.
22335 (encode_terminal_code): Change argument. Encode multiple 23267 (encode_terminal_code): Change argument. Encode multiple
22336 characters at once. Store the result of encoding in 23268 characters at once. Store the result of encoding in
22337 terminal_encode_buffer. 23269 terminal_encode_buffer.
@@ -22409,8 +23341,8 @@
22409 23341
22410 * casetab.c (set_case_table): Remove unused var. 23342 * casetab.c (set_case_table): Remove unused var.
22411 23343
22412 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove 23344 * window.c (Fdisplay_buffer, Fframe_selected_window):
22413 unused vars. 23345 Remove unused vars.
22414 23346
224152008-02-01 Dave Love <fx@gnu.org> 233472008-02-01 Dave Love <fx@gnu.org>
22416 23348
@@ -22438,8 +23370,8 @@
22438 (update_compositions, Ffind_composition_internal): Make buffer 23370 (update_compositions, Ffind_composition_internal): Make buffer
22439 positions EMACS_INT. 23371 positions EMACS_INT.
22440 23372
22441 * composite.h (find_composition, update_compositions): Make 23373 * composite.h (find_composition, update_compositions):
22442 position args EMACS_INT. 23374 Make position args EMACS_INT.
22443 23375
22444 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT. 23376 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22445 23377
@@ -22463,8 +23395,8 @@
22463 23395
224642008-02-01 Andreas Schwab <schwab@suse.de> 233962008-02-01 Andreas Schwab <schwab@suse.de>
22465 23397
22466 * chartab.c (map_char_table, map_char_table_for_charset): Protect 23398 * chartab.c (map_char_table, map_char_table_for_charset):
22467 `range' from GC. 23399 Protect `range' from GC.
22468 23400
224692008-02-01 Kenichi Handa <handa@m17n.org> 234012008-02-01 Kenichi Handa <handa@m17n.org>
22470 23402
@@ -22526,8 +23458,8 @@
22526 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). 23458 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22527 It is the same as RE_MULTIBYTE_P (bufp) now. 23459 It is the same as RE_MULTIBYTE_P (bufp) now.
22528 <exactn>: Translate via multibyte. 23460 <exactn>: Translate via multibyte.
22529 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't 23461 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
22530 translate it. 23462 Don't translate it.
22531 <charset, charset_not>: Fetch a character by 23463 <charset, charset_not>: Fetch a character by
22532 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. 23464 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22533 <duplicate>: Call bcmp_translate with the last arg `multibyte'. 23465 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
@@ -22748,8 +23680,8 @@
22748 FONT_SPEC_INDEX. If font_spec is a string, extract the registry 23680 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22749 name by using split_font_name_into_vector. 23681 name by using split_font_name_into_vector.
22750 (Fnew_fontset): If no ASCII font is specified in FONTLIST, 23682 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22751 generate a proper font name from the fontset name. Update 23683 generate a proper font name from the fontset name.
22752 Vfontset_alias_alist. 23684 Update Vfontset_alias_alist.
22753 (n_auto_fontsets): New variable. 23685 (n_auto_fontsets): New variable.
22754 (new_fontset_from_font_name): New function. 23686 (new_fontset_from_font_name): New function.
22755 (Ffont_info): Store the information about fonts generated from the 23687 (Ffont_info): Store the information about fonts generated from the
@@ -22814,8 +23746,8 @@
22814 sequence is valid in this coding system. Change callers. 23746 sequence is valid in this coding system. Change callers.
22815 (MAX_ANNOTATION_LENGTH): New macro. 23747 (MAX_ANNOTATION_LENGTH): New macro.
22816 (ADD_ANNOTATION_DATA): New macro. 23748 (ADD_ANNOTATION_DATA): New macro.
22817 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call 23749 (ADD_COMPOSITION_DATA): Change argument. Change callers.
22818 ADD_ANNOTATION_DATA. Change the format of annotation data. 23750 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
22819 (ADD_CHARSET_DATA): New macro. 23751 (ADD_CHARSET_DATA): New macro.
22820 (emacs_mule_char): New argument ID. Change callers. 23752 (emacs_mule_char): New argument ID. Change callers.
22821 (decode_coding_emacs_mule, decode_coding_iso_2022) 23753 (decode_coding_emacs_mule, decode_coding_iso_2022)
@@ -22829,8 +23761,8 @@
22829 (produce_composition): Adjust for the new annotation data format. 23761 (produce_composition): Adjust for the new annotation data format.
22830 (produce_charset): New function. 23762 (produce_charset): New function.
22831 (produce_annotation): Handle charset annotation. 23763 (produce_annotation): Handle charset annotation.
22832 (handle_composition_annotation, handle_charset_annotation): New 23764 (handle_composition_annotation, handle_charset_annotation):
22833 functions. 23765 New functions.
22834 (consume_chars): Handle charset annotation. Utilize the above two 23766 (consume_chars): Handle charset annotation. Utilize the above two
22835 functions. 23767 functions.
22836 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same 23768 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
@@ -22960,8 +23892,8 @@
22960 23892
22961 * coding.c (detect_coding_charset): If only ASCII bytes are found, 23893 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22962 return 0. 23894 return 0.
22963 (Fdefine_coding_system_internal): Setup 23895 (Fdefine_coding_system_internal):
22964 CODING_ATTR_ASCII_COMPAT (attrs) correctly. 23896 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22965 23897
229662008-02-01 Dave Love <fx@gnu.org> 238982008-02-01 Dave Love <fx@gnu.org>
22967 23899
@@ -22971,8 +23903,8 @@
22971 23903
229722008-02-01 Kenichi Handa <handa@m17n.org> 239042008-02-01 Kenichi Handa <handa@m17n.org>
22973 23905
22974 * coding.c (decode_coding): Fix args to translate_chars. Pay 23906 * coding.c (decode_coding): Fix args to translate_chars.
22975 attention to Vstandard_translation_table_for_decode. 23907 Pay attention to Vstandard_translation_table_for_decode.
22976 (encode_coding): Fix args to translate_chars. Pay attention to 23908 (encode_coding): Fix args to translate_chars. Pay attention to
22977 Vstandard_translation_table_for_encode. 23909 Vstandard_translation_table_for_encode.
22978 23910
@@ -23022,8 +23954,8 @@
23022 23954
23023 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string 23955 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23024 if C is greater than MAX_3_BYTE_CHAR. 23956 if C is greater than MAX_3_BYTE_CHAR.
23025 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call 23957 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
23026 string_char instead of string_char_with_unification. 23958 Call string_char instead of string_char_with_unification.
23027 23959
230282008-02-01 Dave Love <fx@gnu.org> 239602008-02-01 Dave Love <fx@gnu.org>
23029 23961
@@ -23081,8 +24013,8 @@
23081 24013
23082 * keyboard.c (read_key_sequence): Fix type error. 24014 * keyboard.c (read_key_sequence): Fix type error.
23083 24015
23084 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix 24016 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
23085 type error. 24017 Fix type error.
23086 24018
23087 * fontset.c (fontset_add): Return Lisp_Object. 24019 * fontset.c (fontset_add): Return Lisp_Object.
23088 24020
@@ -23134,8 +24066,8 @@
23134 * regex.h (struct re_pattern_buffer): New member target_multibyte. 24066 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23135 24067
23136 * regex.c (RE_TARGET_MULTIBYTE_P): New macro. 24068 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23137 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If 24069 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
23138 that is zero, convert an eight-bit char to multibyte. 24070 If that is zero, convert an eight-bit char to multibyte.
23139 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for 24071 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23140 non-emacs case. 24072 non-emacs case.
23141 (PATFETCH): Convert an eight-bit char to multibyte. 24073 (PATFETCH): Convert an eight-bit char to multibyte.
@@ -23154,14 +24086,14 @@
23154 multibyte always 1. 24086 multibyte always 1.
23155 (re_search_2): In emacs, set the locale variable multibyte to 1, 24087 (re_search_2): In emacs, set the locale variable multibyte to 1,
23156 otherwise to 0. New local variable target_multibyte. Check it 24088 otherwise to 0. New local variable target_multibyte. Check it
23157 to decide the multibyteness of STR1 and STR2. If 24089 to decide the multibyteness of STR1 and STR2.
23158 target_multibyte is zero, convert unibyte chars to multibyte 24090 If target_multibyte is zero, convert unibyte chars to multibyte
23159 before translating and checking fastmap. 24091 before translating and checking fastmap.
23160 (TARGET_CHAR_AND_LENGTH): New macro. 24092 (TARGET_CHAR_AND_LENGTH): New macro.
23161 (re_match_2_internal): In emacs, set the locale variable multibyte 24093 (re_match_2_internal): In emacs, set the locale variable multibyte
23162 to 1, otherwise to 0. New local variable target_multibyte. Check 24094 to 1, otherwise to 0. New local variable target_multibyte.
23163 it to decide the multibyteness of STR1 and STR2. Use 24095 Check it to decide the multibyteness of STR1 and STR2.
23164 TARGET_CHAR_AND_LENGTH to fetch a character from D. 24096 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
23165 <charset, charset_not>: If multibyte is nonzero, check fastmap 24097 <charset, charset_not>: If multibyte is nonzero, check fastmap
23166 only for ASCII chars. Call bcmp_translate with 24098 only for ASCII chars. Call bcmp_translate with
23167 target_multibyte, not with multibyte. 24099 target_multibyte, not with multibyte.
@@ -23369,8 +24301,8 @@
23369 24301
23370 * lisp.h (Fset_buffer_multibyte): Adjust prototype. 24302 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23371 24303
23372 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust 24304 * xdisp.c (setup_echo_area_for_printing, set_message_1):
23373 for the change of Fset_buffer_multibyte. 24305 Adjust for the change of Fset_buffer_multibyte.
23374 24306
23375 * fns.c (Fstring_to_multibyte): New function. 24307 * fns.c (Fstring_to_multibyte): New function.
23376 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. 24308 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
@@ -23465,11 +24397,11 @@
23465 (find_font_encoding): New function. 24397 (find_font_encoding): New function.
23466 (list_fontsets): Use STRINGP, not ! NILP. 24398 (list_fontsets): Use STRINGP, not ! NILP.
23467 (accumulate_script_ranges): New function. 24399 (accumulate_script_ranges): New function.
23468 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely 24400 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
23469 re-written to handle new fontset structure. 24401 Completely re-written to handle new fontset structure.
23470 (Ffontset_font): Return a copy of element. 24402 (Ffontset_font): Return a copy of element.
23471 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix 24403 (syms_of_fontset): Define symbols Qprepend and Qappend.
23472 docstring of font-encoding-alist. 24404 Fix docstring of font-encoding-alist.
23473 24405
23474 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). 24406 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23475 (Fset_fotset_font): Fix arguments to 5. 24407 (Fset_fotset_font): Fix arguments to 5.
@@ -23559,8 +24491,8 @@
23559 24491
235602008-02-01 Kenichi Handa <handa@m17n.org> 244922008-02-01 Kenichi Handa <handa@m17n.org>
23561 24493
23562 * xdisp.c (face_before_or_after_it_pos): Call 24494 * xdisp.c (face_before_or_after_it_pos):
23563 FETCH_MULTIBYTE_CHAR with byte postion, not char position. 24495 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23564 24496
235652008-02-01 Kenichi Handa <handa@m17n.org> 244972008-02-01 Kenichi Handa <handa@m17n.org>
23566 24498
@@ -23588,8 +24520,8 @@
23588 deunify instead of unify a charset. 24520 deunify instead of unify a charset.
23589 (string_xstring_p): Add `const' to local variables. 24521 (string_xstring_p): Add `const' to local variables.
23590 (find_charsets_in_text): Add `const' to arguments and local variables. 24522 (find_charsets_in_text): Add `const' to arguments and local variables.
23591 (encode_char): Adjust for the change of Funify_charset. Fix 24523 (encode_char): Adjust for the change of Funify_charset.
23592 detecting of invalid code. 24524 Fix detecting of invalid code.
23593 (Fset_charset_priority): Increment charset_ordered_list_tick. 24525 (Fset_charset_priority): Increment charset_ordered_list_tick.
23594 (Fmap_charset_chars): Fix handling of default value for FROM_CODE 24526 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23595 and TO_CODE. 24527 and TO_CODE.
@@ -23622,8 +24554,8 @@
23622 24554
236232008-02-01 Dave Love <fx@gnu.org> 245552008-02-01 Dave Love <fx@gnu.org>
23624 24556
23625 * casetab.c (init_casetab_once, init_casetab_once): Fix 24557 * casetab.c (init_casetab_once, init_casetab_once):
23626 CHAR_TABLE_SET call. 24558 Fix CHAR_TABLE_SET call.
23627 24559
23628 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. 24560 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23629 24561
@@ -23698,8 +24630,8 @@
236982008-02-01 Kenichi Handa <handa@m17n.org> 246302008-02-01 Kenichi Handa <handa@m17n.org>
23699 24631
23700 * category.c (Fmodify_category_entry): Don't modify the contents 24632 * category.c (Fmodify_category_entry): Don't modify the contents
23701 of category_set for characters out of the range. Avoid 24633 of category_set for characters out of the range.
23702 unnecessary modification. 24634 Avoid unnecessary modification.
23703 24635
23704 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of 24636 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23705 Vchar_unify_table. The default value of the table is now nil. 24637 Vchar_unify_table. The default value of the table is now nil.
@@ -23707,8 +24639,8 @@
23707 * character.c (syms_of_character): Setup Vchar_width_table for 24639 * character.c (syms_of_character): Setup Vchar_width_table for
23708 eight-bit-control and raw-byte chars. 24640 eight-bit-control and raw-byte chars.
23709 24641
23710 * charset.h (enum define_charset_arg_index): Delete 24642 * charset.h (enum define_charset_arg_index):
23711 charset_arg_parents and add charset_arg_subset and 24643 Delete charset_arg_parents and add charset_arg_subset and
23712 charset_arg_superset. 24644 charset_arg_superset.
23713 (enum charset_attr_index): Delete charset_parents and add 24645 (enum charset_attr_index): Delete charset_parents and add
23714 charset_subset and charset_superset. 24646 charset_subset and charset_superset.
@@ -23724,8 +24656,8 @@
23724 24656
23725 * charset.c (load_charset_map): Set the default value of encoder 24657 * charset.c (load_charset_map): Set the default value of encoder
23726 and deunifier char-tables to nil. 24658 and deunifier char-tables to nil.
23727 (map_charset_chars): Change argument. Change callers. Use 24659 (map_charset_chars): Change argument. Change callers.
23728 map_char_table_for_charset instead of map_char_table. 24660 Use map_char_table_for_charset instead of map_char_table.
23729 (Fmap_charset_chars): New optional args from_code and to_code. 24661 (Fmap_charset_chars): New optional args from_code and to_code.
23730 (Fdefine_charset_internal): Adjust for the change of 24662 (Fdefine_charset_internal): Adjust for the change of
23731 `define-charset' (:parents -> :subset or :superset). 24663 `define-charset' (:parents -> :subset or :superset).
@@ -23734,8 +24666,8 @@
23734 Fdefine_charset_internal. 24666 Fdefine_charset_internal.
23735 (Ffind_charset_string): Setup the vector `charsets' correctly. 24667 (Ffind_charset_string): Setup the vector `charsets' correctly.
23736 24668
23737 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix 24669 * chartab.c (sub_char_table_ref_and_range): New arg default.
23738 the previous change. 24670 Fix the previous change.
23739 (char_table_ref_and_range): Adjust for the above change. 24671 (char_table_ref_and_range): Adjust for the above change.
23740 (map_sub_char_table_for_charset): New function. 24672 (map_sub_char_table_for_charset): New function.
23741 (map_char_table_for_charset): New function. 24673 (map_char_table_for_charset): New function.
@@ -23878,8 +24810,8 @@
238782008-02-01 Kenichi Handa <handa@m17n.org> 248102008-02-01 Kenichi Handa <handa@m17n.org>
23879 24811
23880 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. 24812 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23881 (emacs_mule_char): New arg src. Delete arg `composition'. Change 24813 (emacs_mule_char): New arg src. Delete arg `composition'.
23882 caller. Handle 2-byte and 3-byte charsets correctly. 24814 Change caller. Handle 2-byte and 3-byte charsets correctly.
23883 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from 24815 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23884 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller. 24816 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23885 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. 24817 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
@@ -23924,8 +24856,8 @@
23924 24856
23925 * character.h (string_escape_byte8): Declare. 24857 * character.h (string_escape_byte8): Declare.
23926 24858
23927 * charset.c (load_charset_map, load_charset_map_from_file): Remove 24859 * charset.c (load_charset_map, load_charset_map_from_file):
23928 unused vars. 24860 Remove unused vars.
23929 (Fdefine_charset_internal, Fsplit_char, syms_of_charset) 24861 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23930 (Fmap_charset_chars): Doc fix. 24862 (Fmap_charset_chars): Doc fix.
23931 24863
@@ -23996,8 +24928,8 @@
23996 * coding.c (coding_set_source): Delete the local variable beg_byte. 24928 * coding.c (coding_set_source): Delete the local variable beg_byte.
23997 (encode_coding_charset, Fdefine_coding_system_internal): 24929 (encode_coding_charset, Fdefine_coding_system_internal):
23998 Delete the local variable charset. 24930 Delete the local variable charset.
23999 (Fdefine_coding_system_internal): Setup 24931 (Fdefine_coding_system_internal):
24000 attrs[coding_attr_charset_valids] correctly. 24932 Setup attrs[coding_attr_charset_valids] correctly.
24001 24933
24002 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' 24934 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24003 member to check if CODE is valid or not. 24935 member to check if CODE is valid or not.
@@ -24019,8 +24951,8 @@
24019 24951
240202008-02-01 Kenichi Handa <handa@m17n.org> 249522008-02-01 Kenichi Handa <handa@m17n.org>
24021 24953
24022 * coding.c (decode_coding_charset, encode_coding_charset): Handle 24954 * coding.c (decode_coding_charset, encode_coding_charset):
24023 multiple charsets correctly. 24955 Handle multiple charsets correctly.
24024 24956
240252008-02-01 Kenichi Handa <handa@m17n.org> 249572008-02-01 Kenichi Handa <handa@m17n.org>
24026 24958
@@ -28193,10 +29125,10 @@ See ChangeLog.10 for earlier changes.
28193 29125
28194;; Local Variables: 29126;; Local Variables:
28195;; coding: utf-8 29127;; coding: utf-8
28196;; add-log-time-zone-rule: t
28197;; End: 29128;; End:
28198 29129
28199 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 29130 Copyright (C) 2007, 2008, 2009, 2010
29131 Free Software Foundation, Inc.
28200 29132
28201 This file is part of GNU Emacs. 29133 This file is part of GNU Emacs.
28202 29134
@@ -28213,4 +29145,3 @@ See ChangeLog.10 for earlier changes.
28213 You should have received a copy of the GNU General Public License 29145 You should have received a copy of the GNU General Public License
28214 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 29146 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28215 29147
28216;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40