Synopsis: Migrate allout encryption provisions from pgg library, which is
[bpt/emacs.git] / src / ChangeLog
1 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
4 same as the background, use the face forground as cursor.
5
6 2010-12-13 Eli Zaretskii <eliz@gnu.org>
7
8 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
9
10 2010-12-13 Eli Zaretskii <eliz@gnu.org>
11
12 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
13 (face_before_or_after_it_pos, next_element_from_string)
14 (next_element_from_c_string, produce_stretch_glyph): Remove unused
15 calculations of maximum string length before calling
16 string_char_and_length and STRING_CHAR_AND_LENGTH.
17 (string_char_and_length): Update commentary: MAXLEN is no longer
18 needed.
19
20 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
21
22 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
23 as (Qsave_session arg).
24
25 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
26 (smc_die_CB): Make an event with arg Qt.
27 (Fhandle_save_session): If event has Qt as argument,
28 call Fkill_emacs (Bug#7552).
29
30 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
31
32 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
33
34 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
35
36 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
37
38 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
39
40 * dispextern.h (struct it): New member overlay_strings_charpos.
41
42 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
43 charpos where we computed n_overlay_strings.
44 (next_overlay_string): Load overlay strings at recorded position,
45 which may not be the same as the iterator's charpos (Bug#7016).
46
47 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
48
49 * xdisp.c (try_scrolling): Avoid infloop if the first line is
50 obscured due to a vscroll (Bug#7537).
51
52 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
53
54 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
55
56 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
57 Use FRAME_TOOLBAR_HEIGHT.
58 (x_set_offset): Handle XNegative and YNegative in
59 f->size_hint_flags (Bug#7510).
60
61 2010-12-11 Eli Zaretskii <eliz@gnu.org>
62
63 * w32fns.c (Fx_show_tip): Call try_window with last argument
64 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
65 solved. Round up the tip height to an integral multiple of the
66 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
67 (Bug#7398)
68
69 2010-12-08 Glenn Morris <rgm@gnu.org>
70
71 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
72
73 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
74
75 * xml.c (parse_region): Ignore blank HTML nodes.
76 (make_dom): Return CDATA sections (like <style>foo</style>) as
77 text nodes.
78
79 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
80
81 * lread.c (read1): Allow newstyle unquote outside of backquote.
82 Disallow old-style backquotes inside new-style backquotes.
83 Don't count unquotes to figure out when we're "syntactically inside
84 but semantically outside of a backquote" any more.
85 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
86 to all contexts.
87
88 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
89
90 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
91
92 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
93
94 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
95 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
96 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
97
98 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
99
100 * lisp.h (union Lisp_Object): Explicitly declare signedness of
101 bit-field.
102 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
103 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
104 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
105 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
106 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
107 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
108 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
109 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
110 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
111 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
112 * m/hp800.h: Remove file.
113 * m/mips.h: Remove file.
114
115 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
116
117 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
118 with cursor color and draw a rectangle around the image (Bug#7412).
119
120 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
121
122 * frame.c (x_set_font): Remove unused variable.
123
124 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
125
126 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
127
128 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
129 drawing text under filled box cursor (Bug#7479).
130
131 2010-11-27 Kenichi Handa <handa@m17n.org>
132
133 * charset.c (emacs_mule_charset): Make it an array of charset ID;
134 i.e. integer.
135 (Fdefine_charset_internal): Adjust for the above change.
136 (init_charset_once): Likewise.
137
138 * charset.h (emacs_mule_charset): Adjust the prototype.
139 Delete duplicated extern.
140
141 * coding.c (emacs_mule_char): Adjust for the change of
142 emacs_mule_charset.
143
144 * lread.c (read_emacs_mule_char): Adjust for the change of
145 emacs_mule_charset.
146
147 2010-11-27 Eli Zaretskii <eliz@gnu.org>
148
149 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
150 of w32api >= 3.15. (Bug#6989) (Bug#7452)
151
152 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
153
154 * alloc.c (mark_terminals): Ensure that the image cache is marked
155 even if the terminal object was marked earlier (Bug#6301).
156
157 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
158
159 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
160
161 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
162
163 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
164 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
165 Use 23 as menubar height if 0. (Bug#7425).
166
167 2010-11-26 Eli Zaretskii <eliz@gnu.org>
168
169 * xdisp.c (set_message_1): Force paragraph direction in echo area
170 be left-to-right.
171
172 * keyboard.c (make_lispy_position): Put a meaningful value in yret
173 when the click is on the header or mode line.
174
175 2010-11-25 Eli Zaretskii <eliz@gnu.org>
176
177 * xdisp.c (set_cursor_from_row): Don't forget to consider the
178 `cursor' property of the first character in overlay strings.
179 (Bug#7474) (Bug#7481)
180
181 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
182
183 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
184 (NSLeftAlternateKeyMask): New defines.
185 (keyDown): Parse left and right keys separately (Bug#7458).
186 Compare Left key masks exactly (Bug#7458).
187
188 2010-11-23 Eli Zaretskii <eliz@gnu.org>
189
190 * intervals.c (temp_set_point_both): Define before calling, to
191 avoid GCC warnings.
192
193 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
194
195 * nsmenu.m: Use #include <config.h> instead of "config.h".
196
197 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
198 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
199 Move declarations ...
200 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
201 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
202 ... here.
203
204 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
205 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
206 (gdb_pvec_type):
207 * print.c (print_output_debug_flag):
208 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
209 (safe_debug_print): New declaration.
210
211 * xterm.c:
212 * systty.h:
213 * sound.c: Include <sys/ioctl.h> unconditionally.
214
215 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
216
217 * alloc.c (mark_maybe_object): Return early if given a Lisp
218 integer (Bug#6301).
219
220 2010-11-21 Ken Brown <kbrown@cornell.edu>
221
222 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
223
224 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
225
226 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
227 Define (Bug#7458).
228 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
229 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
230 NSRightControlKeyMask also (Bug#7458).
231 (keyDown): Ditto (Bug#7458).
232 (syms_of_nsterm): Defvar ns-right-command-modifier and
233 ns-right-control-modifier (Bug#7458).
234
235 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
236
237 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
238 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
239
240 * intervals.h (temp_set_point, temp_set_point_both):
241 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
242
243 2010-11-20 Ken Brown <kbrown@cornell.edu>
244
245 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
246
247 2010-11-20 Eli Zaretskii <eliz@gnu.org>
248
249 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
250 \xNNNNNN for hex-code display of glyphless characters.
251
252 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
253
254 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
255 Set important to ! vert_only.
256 (xg_show_toolbar_item): Don't show label horizontally if
257 tool item isn't important.
258 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
259 xg_make_tool_item, or update important on existing tool item.
260
261 * keyboard.c (QCvert_only): New variable.
262 (parse_tool_bar_item): Check for QCvert_only.
263 (syms_of_keyboard): Initialize QCvert_only.
264
265 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
266
267 2010-11-20 Eli Zaretskii <eliz@gnu.org>
268
269 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
270 same in-line.
271
272 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
273
274 * xfaces.c (lookup_face): Make static.
275 * dispnew.c (copy_row_except_pointers): Likewise.
276 * syntax.c (dec_bytepos): Likewise.
277 (inc_bytepos): Remove.
278 * dispextern.h (lookup_face): Remove declaration.
279
280 2010-11-19 Eli Zaretskii <eliz@gnu.org>
281
282 * xdisp.c (set_cursor_from_row): Display cursor after all the
283 glyphs that come from an overlay. Don't overstep the last glyph
284 when skipping glyphs from an overlay. (Bug#6687)
285
286 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
287
288 * alloc.c (refill_memory_reserve): Move declaration ...
289 * lisp.h (refill_memory_reserve): ... here.
290
291 * strftime.c (_strftime_copytm): Add declaration.
292
293 * callproc.c (syms_of_callproc): Use intern_c_string.
294
295 Move declarations from .c files to .h files.
296 * process.c (timers_run):
297 * minibuf.c (quit_char):
298 * lread.c (read_emacs_mule_char):
299 * keyboard.c (minibuf_level, message_enable_multibyte)
300 (pending_malloc_warning):
301 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
302 (Qonly): Remove declarations.
303 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
304 (Vselect_active_regions):
305 * keyboard.h (timers_run): Add declarations.
306
307 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
308 (tm_diff): Convert definitions to standard C.
309 (extra_args_spec_iso): Remove, unused.
310
311 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
312
313 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
314
315 * config.in (HAVE_G_TYPE_INIT): New symbol.
316
317 2010-11-18 Eli Zaretskii <eliz@gnu.org>
318
319 * lread.c (Fload): Mention `load-in-progress' and
320 `load-file-name'. (Bug#7346)
321
322 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
323 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
324 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
325 subprocesses. Use buffer_free only ifdef subprocesses.
326
327 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
328 the subprocesses version, not in the non-subprocesses one.
329
330 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
331
332 2010-11-17 Eli Zaretskii <eliz@gnu.org>
333
334 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
335 lines on text-mode terminals. (bug#7417)
336
337 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
338
339 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
340 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
341
342 2010-11-17 Kenichi Handa <handa@m17n.org>
343
344 * coding.c (Fset_terminal_coding_system_internal): Fix previous
345 change (set charset-ID list instead of charset-symbol list).
346
347 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
348
349 * keyboard.c (make_lispy_position): For text area clicks, record Y
350 pixel position relative to the text area, excluding header line.
351 Also change X and Y to Lisp_Objects, not pointers; don't return
352 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
353 buffer_posn_from_coords counting from the start of the text area.
354 (Fposn_at_x_y, make_lispy_event): Callers changed.
355
356 * window.c (coordinates_in_window): Change X and Y to ints rather
357 than pointers; don't return coordinates via pointers.
358 (struct check_window_data): Change X and Y from pointers to ints.
359 (window_from_coordinates): Remove args WX and WY; don't return
360 coordinates via pointers.
361 (Fcoordinates_in_window_p, window_from_coordinates):
362 (check_window_containing, Fwindow_at): Callers changed.
363 (window_relative_x_coord): New function.
364
365 * window.h (window_from_coordinates, window_relative_x_coord):
366 Update prototypes.
367
368 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
369 the start of the text area.
370
371 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
372 call. Use window_relative_x_coord.
373 (note_mouse_highlight): Change window_from_coordinates call.
374
375 * w32term.c (w32_read_socket):
376 * msdos.c (dos_rawgetc):
377 * xterm.c (handle_one_xevent): Likewise.
378
379 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
380
381 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
382 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
383 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
384 Convert definitions to standard C.
385 * regex.c: Do not include <stdlib.h>, config.h does it.
386 Include unistd.h.
387 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
388 (regerror, regfree): Convert definitions to standard C.
389 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
390 (__mktime_internal): Convert definitions to standard C.
391
392 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
393
394 * w32proc.c:
395 * w32inevt.c:
396 * w32heap.c:
397 * w32.c: Remove config.h include guards.
398
399 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
400 No code changes.
401
402 * process.c: Include <sys/ioctl.h> unconditionally,
403 keyboard.c already does it.
404
405 * keyboard.c (pending_malloc_warning): Add const to match
406 definition in alloc.c.
407 (Fset_input_interrupt_mode): Simplify #ifdefs.
408
409 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
410
411 Clean up systty.h macros.
412 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
413 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
414 definition in all uses.
415 (EMACS_TTY_TABS_OK): Remove, it has a single user.
416 * sysdep.c (discard_tty_input, child_setup_tty)
417 (init_sys_modes, tabs_safe_p, reset_sys_modes):
418 * emacs.c (shut_down_emacs):
419 * callproc.c (child_setup):
420 * term.c (dissociate_if_controlling_tty): Inline removed macros.
421
422 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
423
424 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
425
426 * w32fns.c (Fx_create_frame):
427 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
428 resource here; it's now done at startup.
429
430 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
431
432 * xterm.c (set_wm_state): Add Qnil to final cons.
433
434 * xselect.c (x_send_client_event): Remove unused variables cons and
435 size.
436
437 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
438
439 * keyboard.c (modify_event_symbol) : Add const to array elements of
440 arg NAME_TABLE.
441 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
442 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
443 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
444 Add const to array elements.
445 (scroll_bar_parts): Make static. Fix position of const.
446
447 * w32fns.c (lispy_function_keys): Add const to extern.
448
449 * w32inevt.c (lispy_function_keys): Likewise.
450
451 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
452
453 * xfns.c (Fx_create_frame): Don't check for the cursorColor
454 resource here; it's now done at startup.
455
456 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
457
458 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
459
460 Fix compilation on Solaris.
461 * sysdep.c: Do not #include <term.h>.
462 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
463
464 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
465
466 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
467
468 * xterm.c (set_wm_state): Don't put Atom in cons, call
469 make_fixnum_or_float on them first.
470 (x_term_init): Initialize Xatom_net_supporting_wm_check and
471 Xatom_net_supported correctly.
472
473 * xselect.c (x_send_client_event): Move CHECK_STRING ...
474 (Fx_send_client_event): to here.
475
476 2010-11-13 Martin Rudalics <rudalics@gmx.at>
477
478 * window.c (Fwindow_use_time): New function.
479
480 2010-11-13 Eli Zaretskii <eliz@gnu.org>
481
482 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
483 zero-width characters.
484
485 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
486
487 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
488 box before drawing the glyphs inside it.
489
490 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
491
492 * dispextern.h (enum glyphless_display_method):
493 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
494 All users changed.
495
496 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
497 Fix comments.
498 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
499 whitespace in "[]", to simulate a box. Don't use uninitialized
500 variable `width'.
501
502 2010-11-11 Julien Danjou <julien@danjou.info>
503
504 * xsettings.c (init_xsettings): Use already fetch atoms.
505
506 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
507 from dpyinfo.
508
509 * xselect.c (Fx_send_client_event): Split and create
510 x_send_client_event.
511
512 * lisp.h: Do not EXFUN Fx_send_client_event.
513
514 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
515 from dpyinfo.
516 (wm_supports): Use atoms from dpyinfo.
517 (do_ewmh_fullscreen): Use atoms from dpyinfo.
518 (x_ewmh_activate_frame): Use atoms from dpyinfo.
519 (xembed_set_info): Use atoms from dpyinfo.
520 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
521 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
522 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
523 Get all atoms in one round-trip.
524 (set_wm_state): Use x_send_client_event rather than
525 Fx_send_client_event, using Atom directly.
526 (x_ewmh_activate_frame): Ditto.
527 (x_set_sticky): Pass atoms to set_wm_state.
528 (do_ewmh_fullscreen): Ditto.
529
530
531 * xterm.h (x_display_info): Add Xatom_net_supported,
532 Xatom_net_supporting_wm_check, Xatom_net_active_window,
533 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
534
535 * xfns.c (Fx_show_tip): Fix typo in docstring.
536
537 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
538
539 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
540 it's not negative.
541
542 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
543
544 * font.c (font_filter_properties): Add const to array elements of
545 properties args.
546
547 * font.h (font_filter_properties): Likewise.
548
549 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
550 elements.
551
552 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
553
554 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
555
556 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
557 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
558 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
559 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
560 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
561
562 2010-11-10 Glenn Morris <rgm@gnu.org>
563
564 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
565
566 2010-11-09 Eli Zaretskii <eliz@gnu.org>
567
568 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
569
570 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
571
572 * image.c (free_image): Don't garbage the frame here, since this
573 function can be called while redisplaying (Bug#7210).
574 (uncache_image): Garbage the frame here (Bug#6426).
575
576 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
577
578 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
579 parent is the root window. Check this after traversing window tree.
580
581 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
582
583 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
584
585 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
586 before traversing window tree (Bug#5721).
587
588 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
589
590 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
591
592 * xdisp.c (note_mode_line_or_margin_highlight):
593 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
594
595 2010-11-06 Eli Zaretskii <eliz@gnu.org>
596
597 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
598 adjust width of tool-tip frame to the width of text, excluding the
599 stretch glyph at the beginning of R2L glyph rows.
600
601 * w32fns.c (Fx_show_tip): Likewise.
602
603 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
604
605 * nsfont.m: Include termchar for new mouse-highlight.
606 (nsfont_draw): Use MOUSE_HL_INFO.
607
608 2010-11-05 Eli Zaretskii <eliz@gnu.org>
609
610 Unify mouse-highlight code for all GUI and TTY sessions.
611
612 * term.c: Remove static mouse_face_* variables. All users
613 changed.
614 (term_show_mouse_face, term_clear_mouse_face)
615 (fast_find_position, term_mouse_highlight): Functions deleted.
616 (tty_draw_row_with_mouse_face): New function.
617 (term_mouse_movement): Call note_mouse_highlight instead of
618 term_mouse_highlight.
619
620 * nsterm.m (ns_update_window_begin, ns_update_window_end)
621 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
622 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
623 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
624 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
625 Replace Display_Info with Mouse_HLInfo everywhere where
626 mouse_face_* members were accessed for mouse highlight purposes.
627
628 * xterm.c (x_update_window_begin, x_update_window_end)
629 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
630 (handle_one_xevent, x_free_frame_resources, x_term_init):
631 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
632 members were accessed for mouse highlight purposes.
633
634 * w32term.c (x_update_window_begin, x_update_window_end)
635 (x_update_end, w32_read_socket, x_free_frame_resources)
636 (w32_initialize_display_info): Replace Display_Info with
637 Mouse_HLInfo everywhere where mouse_face_* members were accessed
638 for mouse highlight purposes.
639
640 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
641 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
642 unless the frame is on a window-system.
643 (get_tool_bar_item, handle_tool_bar_click)
644 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
645 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
646 (note_mode_line_or_margin_highlight, note_mouse_highlight)
647 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
648 Replace Display_Info with Mouse_HLInfo everywhere where
649 mouse_face_* members were accessed for mouse highlight purposes.
650 (coords_in_mouse_face_p): Move prototype out of the
651 HAVE_WINDOW_SYSTEM conditional.
652 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
653 HAVE_WINDOW_SYSTEM block.
654 (try_window_id) [HAVE_GPM || MSDOS]:
655 Call x_clear_window_mouse_face.
656 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
657 systems. Call tty_draw_row_with_mouse_face for TTY systems.
658 (show_mouse_face): Call draw_row_with_mouse_face, instead of
659 calling draw_glyphs directly.
660 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
661 (cursor_in_mouse_face_p, rows_from_pos_range)
662 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
663 (note_mode_line_or_margin_highlight, note_mouse_highlight)
664 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
665 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
666 fragments.
667 (note_mouse_highlight): Call popup_activated for MSDOS as well.
668 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
669 integer.
670 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
671 (x_consider_frame_title, tool_bar_lines_needed):
672 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
673 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
674 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
675 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
676 part.
677
678 * dispnew.c (mirror_make_current): Set Y coordinate of the
679 mode-line and header-line rows.
680 (init_display): Setup initial frame's output_data for text
681 terminal frames.
682
683 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
684 its own definition on msdos.c.
685
686 * msdos.c (show_mouse_face, clear_mouse_face)
687 (fast_find_position, IT_note_mode_line_highlight)
688 (IT_note_mouse_highlight): Functions deleted.
689 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
690 instead of IT_note_mouse_highlight.
691 (draw_row_with_mouse_face, popup_activated): New functions.
692 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
693 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
694 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
695 where mouse_face_* members were accessed for mouse highlight
696 purposes.
697
698 * msdos.h (initialize_msdos_display): Add prototype.
699
700 * frame.h (MOUSE_HL_INFO): New macro.
701
702 * lisp.h (Mouse_HLInfo): New data type.
703
704 * xterm.h (struct x_display_info):
705 * w32term.h (struct w32_display_info):
706 * nsterm.h (struct ns_display_info):
707 * termchar.h (struct tty_display_info): Use it instead of
708 mouse_face_* members.
709
710 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
711 1st argument.
712 (frame_to_window_pixel_xy, note_mouse_highlight)
713 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
714 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
715 HAVE_WINDOW_SYSTEM conditional.
716 (draw_row_with_mouse_face): Declare prototype.
717 (tty_draw_row_with_mouse_face): Declare prototype.
718
719 2010-11-05 Eli Zaretskii <eliz@gnu.org>
720
721 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
722 Remove unused variables.
723
724 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
725
726 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
727 logic pointed out by Eli Zaretskii.
728
729 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
730
731 * coding.c (coding-category-list): Refer to set-coding-system-priority
732 instead of the obsolete set-coding-priority in the doc string.
733
734
735 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
736
737 * nsfont.m (nsfont_draw): Correct previous patch to return
738 correct value.
739 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
740 don't change the method signature, change the return.
741
742 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
743
744 * nsfont.m (nsfont_draw)
745 * nsimage.m (EmacsImage-setXBMColor:)
746 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
747
748 2010-11-03 Julien Danjou <julien@danjou.info>
749
750 * image.c (gif_load): Add support for transparency and specified
751 :background.
752
753 2010-11-01 Kenichi Handa <handa@m17n.org>
754
755 * dispextern.h (lookup_glyphless_char_display): Extern it.
756
757 * termhooks.h (struct terminal): New member charset_list.
758
759 * coding.c (Fset_terminal_coding_system_internal): Set the
760 `charset_list' member of struct terminal.
761
762 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
763 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
764
765 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
766 (lookup_glyphless_char_display): Set it->what at the end.
767 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
768 (last_glyphless_glyph_merged_face_id): Make them non-static.
769
770 * w32term.c (x_draw_glyphless_glyph_string_foreground):
771 Fix the arg with_background for font->driver->draw.
772
773 2010-11-01 Kenichi Handa <handa@m17n.org>
774
775 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
776 Surround chp by parentheses.
777
778 2010-11-01 Kenichi Handa <handa@m17n.org>
779
780 Implement various display methods for glyphless characters.
781
782 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
783 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
784 (Qzero_width): New variables.
785 (THIN_SPACE_WIDTH): New macro.
786 (lookup_glyphless_char_display): New funciton.
787 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
788 (last_glyphless_glyph_merged_face_id): New variables.
789 (get_next_display_element): Check glyphless characters.
790 (redisplay_internal): Initialize last_glyphless_glyph_frame and
791 last_glyphless_glyph_face_id.
792 (fill_glyphless_glyph_string): New function.
793 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
794 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
795 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
796 (x_produce_glyphs): If a suitable font is not found, produce a
797 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
798 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
799 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
800 Qzero_width.
801 (Vglyphless_char_display): Declare it as a Lisp variable.
802
803 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
804 (struct glyph): Change the size of the member "type" to 3.
805 Add glyphless to the union slice and u.
806 (enum display_element_type): Add IT_GLYPHLESS.
807 (enum glyphless_display_method): New enum.
808 (struct it): New member glyphless_method.
809 (Vglyphless_char_display): Extern it.
810
811 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
812 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
813
814 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
815 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
816
817 * nsterm.m (ns_draw_glyph_string): Handle the case
818 GLYPHLESS_GLYPH (the detail is not yet implemented).
819
820 2010-10-31 Glenn Morris <rgm@gnu.org>
821
822 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
823
824 * frame.c (syms_of_frame) <tool-bar-mode>:
825 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
826
827 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
828
829 * xterm.c (x_connection_closed): Print informative error message
830 when aborting on GTK. This requires using shut_down_emacs
831 directly instead of Fkill_emacs.
832
833 2010-10-29 Eli Zaretskii <eliz@gnu.org>
834
835 * emacs.c (main): Call syms_of_filelock unconditionally.
836
837 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
838 clause, but keep part of it conditioned on CLASH_DETECTION.
839
840 2010-10-29 Glenn Morris <rgm@gnu.org>
841
842 * nsfns.m (Fx-display-save-under, Fx-open-connection)
843 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
844 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
845 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
846 Sync docs between X, W32, NS.
847
848 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
849 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
850
851 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
852
853 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
854 otherwise, bootstrapping on Windows fails to compile macroexp.el.
855
856 2010-10-26 Eli Zaretskii <eliz@gnu.org>
857
858 * cmds.c (internal_self_insert): Don't insert if argument N is
859 zero or negative. (Bug#7281)
860
861 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
862
863 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
864
865 2010-10-25 Glenn Morris <rgm@gnu.org>
866
867 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
868
869 2010-10-24 Glenn Morris <rgm@gnu.org>
870
871 * w32fns.c (Fx_synchronize, Fx_change_window_property)
872 (Fx_window_property, Fx_file_dialog):
873 * xfns.c (Fx_synchronize, Fx_change_window_property)
874 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
875
876 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
877
878 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
879
880 2010-10-24 Eli Zaretskii <eliz@gnu.org>
881
882 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
883
884 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
885 Deprecate use as a boolean flag.
886
887 2010-10-24 Jim Meyering <jim@meyering.net>
888
889 * emacs.c (argmatch): Don't treat "--" as "--chdir".
890
891 2010-10-24 Glenn Morris <rgm@gnu.org>
892
893 * w16select.c (syms_of_win16select) <selection-coding-system>:
894 <next-selection-coding-system>:
895 * w32select.c (syms_of_w32select) <selection-coding-system>:
896 <next-selection-coding-system>:
897 Sync docs with select.el.
898
899 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
900 Lisp version.
901
902 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
903 Sync doc with the xterm.c version.
904
905 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
906 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
907
908 2010-10-23 Glenn Morris <rgm@gnu.org>
909
910 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
911 * frame.c (syms_of_frame) <menu-bar-mode>:
912 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
913 <hourglass-delay>: Sync docs with Lisp.
914
915 2010-10-23 Eli Zaretskii <eliz@gnu.org>
916
917 Implement mouse highlight for bidi-reordered lines.
918
919 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
920 (mouse_face_from_string_pos): New function, replaces
921 fast_find_string_pos.
922 (note_mouse_highlight): Call it instead of fast_find_string_pos.
923 (note_mode_line_or_margin_highlight): Support bidi-reordered
924 strings and R2L glyph rows. Fix comments.
925 (note_mouse_highlight): When bidi reordering is turned on in a
926 buffer, call next-single-property-change and
927 previous-single-property-change with last argument nil. Clear
928 mouse highlight when mouse pointer is in a R2L row on the stretch
929 glyph that stands for no text beyond the line end.
930 (row_containing_pos): Don't return too early when CHARPOS is in a
931 bidi-reordered continued line. Return immediately when the first
932 hit is found in a line that is not continued, or when an exact
933 match for CHARPOS is found.
934 (rows_from_pos_range): New function.
935 (mouse_face_from_buffer_pos): Use it instead of calling
936 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
937 function to support mouse highlight in bidi-reordered lines and
938 not to assume that START_CHARPOS is always in mouse_face_beg_row.
939 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
940 that the former is always above the latter or identical to it.
941 (show_mouse_face): Support drawing highlighted R2L lines.
942 (coords_in_mouse_face_p): New function, bidi-aware.
943 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
944 Call it instead of comparing with mouse-face members of dpyinfo.
945 (note_mode_line_or_margin_highlight): Fix confusingly swapped
946 usage of hpos and vpos.
947
948 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
949
950 * xrdb.c: Include keyboard.h for MOTIF.
951
952 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
953 MOTIF (Bug#7263).
954
955 * xfns.c: Include Xm/TextF and Xm/List.
956 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
957 Make ANSI prototypes.
958
959 2010-10-22 Glenn Morris <rgm@gnu.org>
960
961 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
962 Remove ccl and duplicate mouse.
963
964 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
965
966 * insdel.c (prepare_to_modify_buffer): Don't set
967 saved-region-selection if modification hooks are disabled.
968
969 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
970
971 * cmds.c (Fdelete_char): Doc fix.
972
973 2010-10-19 Ken Brown <kbrown@cornell.edu>
974
975 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
976
977 2010-10-19 Kenichi Handa <handa@m17n.org>
978
979 Fix incorrect font metrics when the same font is opened with
980 different pixelsizes.
981
982 * xftfont.c: Include composite.h.
983 (xftfont_shape): New function.
984 (syms_of_xftfont): Set xftfont_driver.shape.
985
986 2010-10-18 Julien Danjou <julien@danjou.info>
987
988 * frame.c (Fframe_pointer_visible_p):
989 Add `frame-pointer-visible-p' to get the pointer visibility.
990
991 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
992
993 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
994 non-"EAGAIN"-like error to signal to Emacs that the socket should
995 be closed.
996
997 2010-10-15 Eli Zaretskii <eliz@gnu.org>
998
999 * unexcoff.c (make_hdr): Fix prototype according to changes in
1000 2010-10-03T13:59:56Z!dann@ics.uci.edu.
1001
1002 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
1003
1004 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
1005
1006 * Makefile.in (really-oldXMenu): Fix typo in variable name that
1007 made building the X menu fail.
1008 (really-oldXMenu): Fix my previous fix.
1009
1010 2010-10-14 Damyan Pepper <damyanp@gmail.com>
1011
1012 Fix handling of font properties on Windows (bug#6303).
1013 * font.c (font_filter_properties): New function, refactored from
1014 ftfont_filter_properties.
1015 * font.h (font_filter_properties): Declare.
1016 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
1017 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
1018 (w32font_filter_properties): New function.
1019 (w32font_driver): Add w32font_filter_properties.
1020
1021 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
1022
1023 * font.c (Ffont_variation_glyphs):
1024 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
1025
1026 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
1027
1028 * w32fns.c (w32_wnd_proc, file_dialog_callback):
1029 * w32font.c (w32_generic_family):
1030 * w32inevt.c (key_event):
1031 * w32menu.c (fill_in_menu):
1032 * w32proc.c (reader_thread, w32_executable_type, compare_env)
1033 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
1034 * w32term.c (w32_read_socket): Make static.
1035
1036 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
1037
1038 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
1039 prototypes; all callers changed.
1040
1041 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
1042
1043 * makefile.w32-in (TLIB2): Rename from TLIBW32.
1044 (OBJ2): New macro.
1045 (WIN32OBJ, FONTOBJ): Remove.
1046 (OBJ1): Redistribute object files with OBJ2.
1047 (LIBS, $(TEMACS)): Use TLIB2.
1048 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
1049 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
1050
1051 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
1052
1053 * emacs.c (Vdynamic_library_alist)
1054 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
1055 Doc fix.
1056
1057 * lisp.h (Vdynamic_library_alist): Declare extern.
1058
1059 * image.c (Vimage_library_alist)
1060 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
1061 (lookup_image_type): Use Vdynamic_library_alist.
1062 (Finit_image_library): Doc fix.
1063
1064 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
1065
1066 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
1067 (lispdir): Remove trailing /, update all uses.
1068
1069 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
1070
1071 * nsterm.m (Qleft): Declare.
1072 (ns_right_alternate_modifier): New variable
1073 (NSRightAlternateKeyMask): New define.
1074 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
1075 ns_right_alternate_modifier isn't Qleft.
1076 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
1077 as emacs modifier for NSRightAlternateKeyMask.
1078 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
1079
1080 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
1081
1082 * gnutls.c (emacs_gnutls_write): If we're trying to write before
1083 gnutls is ready, return EAGAIN as the errno.
1084
1085 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
1086
1087 * vm-limit.c:
1088 * unexhp9k800.c:
1089 * unexelf.c:
1090 * unexaix.c:
1091 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
1092
1093 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
1094 (PROFILING_LDFLAGS): Remove, not needed anymore.
1095
1096 * Makefile.in: Use $(...) everywhere instead of ${...}
1097 (CRT_DIR): Move near potential user.
1098 (START_FILE): Move near CRT_DIR, it might use it.
1099
1100 * sysdep.c (LPASS8): Remove, unused.
1101 (emacs_ospeed): Change from being a global to a local in the only
1102 user: init_baud_rate.
1103
1104 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1105
1106 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
1107 (emacs_gnutls_write): Remove the debuggin fsync call.
1108 (emacs_gnutls_read): Return -1 if we got an error from
1109 gnutls_read. This allows us to actually read lots of data from
1110 the GnuTLS stream.
1111 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
1112 According to the documentation, this is correct, and it seems to
1113 make things work.
1114
1115 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
1116
1117 * xterm.c (x_draw_relief_rect): Clear corner pixels.
1118
1119 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
1120
1121 * keyboard.c: Revert last change; it was not intended to be
1122 synchronized with the trunk.
1123
1124 2010-10-08 Kenichi Handa <handa@m17n.org>
1125
1126 * coding.c (complement_process_encoding_system): Fix previous change.
1127
1128 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
1129
1130 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
1131 (Fdbus_init_bus): ... here. (Bug#7113)
1132
1133 2010-10-08 Glenn Morris <rgm@gnu.org>
1134
1135 * buffer.c (before-change-functions, after-change-functions):
1136 Three-year overdue doc fix following 2007-08-13 change.
1137
1138 2010-10-08 Kenichi Handa <handa@m17n.org>
1139
1140 * coding.c (coding_inherit_eol_type): If parent doesn't specify
1141 eol-format, inherit from the system's default.
1142 (complement_process_encoding_system): Make a new coding system
1143 inherit the original eol-format.
1144
1145 2010-10-08 Kenichi Handa <handa@m17n.org>
1146
1147 * coding.c (complement_process_encoding_system): New function.
1148
1149 * coding.h (complement_process_encoding_system): Extern it.
1150
1151 * callproc.c (Fcall_process): Complement the coding system for
1152 encoding arguments.
1153 (Fcall_process_region): Complement the coding system for encoding
1154 the input to the process.
1155
1156 * process.c (Fstart_process): Complement the coding system for
1157 encoding arguments.
1158 (send_process): Complement the coding system for encoding what
1159 sent to the process.
1160
1161 2010-10-08 Kenichi Handa <handa@m17n.org>
1162
1163 * xfont.c (xfont_open): Fix setting of font->average_width from
1164 :avgwidth property (Bug#7123).
1165
1166 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
1167
1168 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
1169 is more portable.
1170
1171 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
1172 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
1173 has not defined SIGIO.
1174
1175 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
1176
1177 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
1178 draw the outermost line using the black relief, for legibility.
1179 Omit drawing the four corner pixels.
1180
1181 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
1182
1183 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
1184 (read_key_sequence): Inline echo_prompt.
1185 (echo_dash): Add a dash only if key is continued (Bug#7137).
1186
1187 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
1188
1189 Remove O_RDONLY, O_WRONLY definitions, not needed.
1190 * unexcoff.c:
1191 * lread.c:
1192 * fileio.c:
1193 * doc.c:
1194 * callproc.c:
1195 * alloc.c:
1196 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
1197
1198 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
1199
1200 * gnutls.h (GNUTLS_LOG2): Convenience macro.
1201
1202 * gnutls.c: Add property list symbol holders.
1203 (emacs_gnutls_handshake): Clarify how sockets are passed to
1204 GnuTLS.
1205 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
1206 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
1207 and keyfiles to be a list of file names. Default to "NORMAL" for
1208 the priority string. Improve logging.
1209
1210 2010-10-03 Glenn Morris <rgm@gnu.org>
1211
1212 * fileio.c (Vdirectory_sep_char): Remove.
1213
1214 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
1215
1216 * termhooks.h: Remove #ifdef CONSP.
1217
1218 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
1219
1220 Include <fcntl.h> unconditionally.
1221 * termcap.c:
1222 * sysdep.c:
1223 * lread.c:
1224 * keyboard.c:
1225 * filelock.c:
1226 * fileio.c:
1227 * doc.c:
1228 * callproc.c:
1229 * alloc.c: Remove include guards for <fcntl.h>, process.c already
1230 does it.
1231
1232 * process.c: Do not include <sys/wait.h>, syswait.h does it.
1233
1234 * sysdep.c (flush_pending_output): Remove code, does not do
1235 anything on any platform.
1236
1237 Remove unused code.
1238 * sysdep.c (select_alarm, sys_select, read_input_waiting):
1239 Remove select emulation, all systems support select.
1240 (set_exclusive_use): Remove, the only user is in an #if 0 block.
1241 * process.c (create_process): Remove #if 0 code.
1242
1243 Remove unused arguments for unexec.
1244 The third one is never used, and the last two are always passed as zero.
1245 * emacs.c (unexec): Add declaration.
1246 (Fdump_emacs): Only pass the first two arguments to unexec.
1247 Simplify #ifdef.
1248 * unexw32.c (unexec):
1249 * unexsol.c (unexec):
1250 * unexhp9k800.c (unexec):
1251 * unexcw.c (unexec): Remove the last 3 arguments, unused.
1252 * unexelf.c (unexec): Remove the last 3 arguments, unused.
1253 (find_section): Use const.
1254 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
1255 (unexec_error): Declare it NO_RETURN.
1256 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
1257 it as an argument, remove data_start and entry_address arguments, unused.
1258 (unexec): Remove bss_start, data_start and
1259 entry_address arguments.
1260 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
1261 it as an argument, remove data_start and entry_address arguments, unused.
1262 (unexec): Remove bss_start, data_start and
1263 entry_address arguments.
1264
1265 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
1266
1267 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
1268
1269 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
1270 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
1271 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
1272 Fix typos in docstrings.
1273 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
1274 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
1275
1276 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
1277
1278 * keyboard.c (command_loop_1): Make sure the mark is really alive
1279 before using it (Bug#7044).
1280
1281 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
1282
1283 * makefile.w32-in (tags): Rename target to full-tags.
1284
1285 2010-10-02 Eli Zaretskii <eliz@gnu.org>
1286
1287 * emacs.c (main): Remove !WINDOWSNT conditional.
1288 (Fkill_emacs): Don't mention exemption on MS-Windows.
1289
1290 2010-10-02 Glenn Morris <rgm@gnu.org>
1291
1292 * character.c (Fchar_bytes): Remove obsolete function.
1293 (syms_of_character): Remove Schar_bytes.
1294
1295 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
1296 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
1297 in batch-mode.
1298 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
1299 (kill-emacs-hook): Doc fix.
1300
1301 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
1302
1303 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
1304 (parse_region): Rework to take regions instead of strings, and
1305 renamed to reflect that these are the libxml functions.
1306
1307 2010-10-01 Eli Zaretskii <eliz@gnu.org>
1308
1309 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
1310 screen dimensions in tty->Wcm.
1311
1312 * xdisp.c (set_cursor_from_row): When the row is truncated and
1313 point is outside the range of displayed characters, position the
1314 cursor inside the scroll margin. (Bug#6349)
1315
1316 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
1317
1318 Do not include stdlib.h and string.h, config.h does it.
1319 * xfont.c:
1320 * w32term.c:
1321 * w32reg.c:
1322 * w32inevt.c:
1323 * w32heap.c:
1324 * w32console.c:
1325 * w16select.c:
1326 * unexsol.c:
1327 * term.c:
1328 * sound.c:
1329 * scroll.c (m):
1330 * gtkutil.c:
1331 * font.c:
1332 * filelock.c:
1333 * fileio.c:
1334 * dosfns.c:
1335 * dbusbind.c:
1336 * bidi.c:
1337 * callproc.c:
1338 * process.c:
1339 * msdos.c:
1340 * charset.c: Do not include stdlib.h and string.h, config.h does it.
1341
1342 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
1343 defines it.
1344
1345 * process.c: Move #include <pty.h> earlier.
1346 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
1347 (pty_name): Move definition later.
1348
1349 * nsselect.m (syms_of_nsselect):
1350 * nsmenu.m (syms_of_nsmenu):
1351 * nsfns.m (syms_of_nsfns):
1352 * msdos.c (syms_of_msdos):
1353
1354 * image.c (syms_of_image):
1355 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
1356
1357 * point.h: Remove, unused.
1358
1359 2010-10-01 Eli Zaretskii <eliz@gnu.org>
1360
1361 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
1362 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
1363 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
1364
1365 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1366
1367 * xml.c (parse_string): Use const.
1368
1369 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
1370
1371 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
1372 only override Vprint_level if it isn't already bound, and increase
1373 the level to 8 to produce more useful backtraces for bug reports.
1374
1375 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1376
1377 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
1378
1379 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
1380
1381 * w32console.c (vga_stdcolor_name): Remove unused function;
1382 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
1383
1384 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
1385
1386 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
1387 (Fgnutls_boot): Start the handshake.
1388 (emacs_gnutls_read): Perform the handshake from the reader loop.
1389 (Fgnutls_boot): Remove some debugging messages.
1390 Change indentation throughout to use the Emacs style.
1391 (emacs_gnutls_handshake): Cast the fds to something that's
1392 possibly the expected length.
1393 (emacs_gnutls_write): Return -1 if we try to write before handshake.
1394
1395 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
1396
1397 * process.c (make_process): Set the gnutls_p field to zero by
1398 default.
1399 (read_process_output): Always call the gnutls_read function if the
1400 stream is a gnutls stream.
1401 (send_process): Ditto for writes.
1402
1403 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
1404 or write anything until the state is GNUTLS_STAGE_READY.
1405 (Fgnutls_boot): Mark the stream as being a gnutls stream.
1406
1407 2010-09-29 Eli Zaretskii <eliz@gnu.org>
1408
1409 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
1410 NEUTRAL_DIR.
1411 (handle_invisible_prop, iterate_out_of_display_property)
1412 (next_element_from_buffer): If bidi_it.first_elt is set, call
1413 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
1414 (Bug#7128)
1415
1416 * print.c (print_object): Fix format string and argument types for
1417 printing a Lisp_Misc_Marker.
1418
1419 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
1420 (load_overlay_strings, get_overlay_strings_1)
1421 (get_overlay_strings, forward_to_next_line_start)
1422 (back_to_previous_visible_line_start, reseat, reseat_to_string)
1423 (get_next_display_element, next_element_from_string)
1424 (next_element_from_c_string, next_element_from_buffer)
1425 (move_it_vertically_backward, move_it_by_lines, add_to_log)
1426 (message_dolog, message_log_check_duplicate, message2_nolog)
1427 (message3, message3_nolog, vmessage, set_message, set_message_1)
1428 (hscroll_window_tree, text_outside_line_unchanged_p)
1429 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
1430 (find_last_unchanged_at_beg_row)
1431 (find_first_unchanged_at_end_row, row_containing_pos)
1432 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
1433 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
1434 Use EMACS_INT for buffer and string positions.
1435
1436 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
1437 (row_containing_pos): Adjust prototype.
1438
1439 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
1440 (message2_nolog, set_message): Adjust prototypes.
1441
1442 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1443
1444 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
1445 (Fgnutls_boot): Use SDATA.
1446 (Fgnutls_handshake): Remove unused var `max_log_level'.
1447
1448 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
1449
1450 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
1451 (Bug#7113)
1452
1453 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
1454
1455 * xgselect.c (xg_select): Clear file descriptors not set from
1456 rfds and wfds.
1457
1458 * process.c (wait_reading_process_output): Add missing FD_CLR
1459 for write_mask (must mirror connect_wait_mask).
1460
1461 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
1462
1463 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
1464 prefix.
1465 (Fgnutls_boot): Use changed process members. Use log level with a
1466 function parameter to set it. Bring back Emacs-level debugging
1467 messages at log level 1 and 2.
1468
1469 * process.c (make_process): Initialize gnutls_log_level.
1470
1471 * process.h: Add gnutls_log_level and rename x509_cred and
1472 anon_cred to have the gnutls_ prefix for consistency.
1473
1474 * gnutls.h (GNUTLS_LOG): Add convenience macro.
1475
1476 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
1477
1478 * w32.c (g_b_init_get_sid_identifier_authority)
1479 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
1480 Remove, not used.
1481 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
1482 (init_winsock): Remove useless assignment.
1483 (open_process_token, get_token_information, lookup_account_sid)
1484 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
1485 (get_security_descriptor_owner, get_security_descriptor_group)
1486 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
1487 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
1488 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
1489 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
1490 (unc_volume_file_attributes, convert_from_time_t)
1491 (create_toolhelp32_snapshot, process32_first, process32_next)
1492 (open_thread_token, impersonate_self, revert_to_self)
1493 (get_process_memory_info, get_process_working_set_size)
1494 (global_memory_status, global_memory_status_ex, socket_to_fd)
1495 (shutdown_handler): Make static.
1496
1497 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
1498
1499 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
1500 (xd_pending_messages): Functions removed.
1501 (xd_read_queued_messages): Add parameters fd, *data, for_read in
1502 order to be compatible with add_read_fd. Determine bus from data,
1503 and call xd_read_message just for this bus.
1504 (xd_add_watch): Use xd_read_queued_messages as callback function.
1505 Add data.
1506
1507 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
1508
1509 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
1510
1511 * gnutls.c (gnutls_log_function): Added more debugging.
1512 (emacs_gnutls_read): Don't infloop while reading.
1513
1514 2010-09-27 Kenichi Handa <handa@m17n.org>
1515
1516 These changes are to remove restriction on the number of glyphs in
1517 one composition.
1518
1519 * dispextern.h (struct glyph): Change the member "slice" to union.
1520 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
1521 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
1522
1523 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
1524 instead of glyph->slice.
1525 (marginal_area_string): Likewise.
1526
1527 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
1528 glyph->u.cmp.
1529 (append_composite_glyph): Likewise.
1530
1531 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
1532 glyph->u.cmp.
1533 (fill_gstring_glyph_string, x_get_glyph_overhangs)
1534 (append_composite_glyph): Likewise.
1535 (fill_image_glyph_string): Use glyph->slice.img instead of
1536 glyph->slice.
1537 (append_glyph, produce_image_glyph, append_stretch_glyph)
1538 (note_mouse_highlight): Likewise.
1539
1540 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
1541
1542 * process.c (add_keyboard_wait_descriptor)
1543 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
1544 (wait_reading_process_output): Don't pass write_mask to select
1545 if SELECT_CANT_DO_WRITE_MASK is defined.
1546 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
1547
1548 * process.h (add_read_fd, delete_read_fd, add_write_fd)
1549 (delete_write_fd): Declare.
1550
1551 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
1552 (write_mask): New variable.
1553 (max_input_desc): Renamed from max_keyboard_desc.
1554 (fd_callback_info): New variable.
1555 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
1556 New functions.
1557 (Fmake_network_process): FD_SET write_mask.
1558 (deactivate_process): FD_CLR write_mask.
1559 (wait_reading_process_output): Connecting renamed to Writeok.
1560 check_connect removed. check_write is new. Remove references to gpm.
1561 Use Writeok/check_write unconditionally (i.e. no #ifdef
1562 NON_BLOCKING_CONNECT) instead of Connecting.
1563 Loop over file descriptors and call callbacks in fd_callback_info
1564 if file descriptor is ready for I/O.
1565 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
1566 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
1567 (keyboard_bit_set): Use max_input_desc.
1568 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
1569 Remove #ifdef subprocesses. Use max_input_desc.
1570 (init_process): Initialize write_mask and fd_callback_info.
1571
1572 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
1573
1574 * dbusbind.c: Include process.h.
1575 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
1576 (xd_read_message_1): New functions.
1577 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
1578 Handle watch for both read and write.
1579 (Fdbus_init_bus): Also register xd_toggle_watch.
1580 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1581 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
1582 to dbus_connection_flush.
1583 (xd_read_message): Move most of the code to xd_read_message_1.
1584 Call xd_read_message_1 until status is COMPLETE.
1585
1586 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
1587
1588 * term.c: Do not include sys/ioctl.h, not needed.
1589 (init_tty): Reorder code to reduce the number of #ifdefs.
1590 No code changes.
1591
1592 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
1593
1594 * process.h: Set up GnuTLS support.
1595
1596 * process.c (make_process, Fstart_process)
1597 (read_process_output, send_process): Set up GnuTLS support for
1598 process input/output file descriptors.
1599
1600 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
1601
1602 * gnutls.c: The source code for GnuTLS support in Emacs.
1603
1604 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
1605
1606 * config.in: Set up GnuTLS support.
1607
1608 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
1609 (obj, LIBES): Set up GnuTLS support.
1610
1611 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
1612
1613 * w32.c (get_emacs_configuration_options): Fix previous change.
1614
1615 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
1616
1617 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
1618 alive before using it (Bug#6977).
1619
1620 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
1621
1622 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
1623
1624 * dispextern.h: EMACS_INT/int fixup.
1625
1626 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
1627 fixup.
1628
1629 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
1630
1631 2010-09-25 Eli Zaretskii <eliz@gnu.org>
1632
1633 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
1634 (Fselect_window, window_scroll_pixel_based)
1635 (window_scroll_line_based, Frecenter, Fset_window_configuration):
1636 Use EMACS_INT for buffer positions.
1637
1638 * textprop.c (validate_interval_range, interval_of)
1639 (property_change_between_p, Fadd_text_properties)
1640 (set_text_properties_1, Fremove_text_properties)
1641 (Fremove_list_of_text_properties, Ftext_property_any)
1642 (Ftext_property_not_all, copy_text_properties)
1643 (text_property_list, extend_property_ranges)
1644 (verify_interval_modification): Use EMACS_INT for buffer
1645 positions.
1646
1647 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
1648 for buffer positions.
1649
1650 * process.c (read_process_output, send_process)
1651 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
1652 and string positions and size.
1653
1654 * print.c (print_object, print_string, strout): Use EMACS_INT for
1655 string indices.
1656
1657 * minibuf.c (string_to_object): Use EMACS_INT for string position
1658 and size.
1659
1660 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
1661
1662 * lread.c <read_from_string_index, read_from_string_index_byte>
1663 <read_from_string_limit, readchar_count>: Define EMACS_INT.
1664 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
1665 buffer positions and string length.
1666
1667 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
1668 EMACS_INT.
1669 (echo_truncate, adjust_point_for_property, read_char)
1670 (gen_help_event, make_lispy_event, modify_event_symbol)
1671 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
1672 for buffer positions and string length.
1673
1674 * keyboard.h (gen_help_event): Adjust prototype.
1675
1676 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
1677
1678 * commands.h <last_point_position>: Declare EMACS_INT.
1679
1680 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
1681 (truncate_echo_area): Accept EMACS_INT argument.
1682
1683 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
1684
1685 * lisp.h (truncate_echo_area): Adjust prototype.
1686
1687 * composite.c (composition_adjust_point): Return EMACS_INT.
1688
1689 * composite.h (composition_adjust_point): Adjust prototype.
1690
1691 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
1692
1693 * process.c (Fmake_network_process): When arg :host is 'local,
1694 use address 127.0.0.1, not name "localhost". (Bug#6781)
1695
1696 2010-09-24 Eli Zaretskii <eliz@gnu.org>
1697
1698 * indent.c (Fcurrent_indentation, indented_beyond_p)
1699 (compute_motion): Use EMACS_INT for buffer position variables.
1700
1701 * lisp.h (indented_beyond_p): Adjust prototype.
1702
1703 * buffer.c (overlay_strings): Return EMACS_INT.
1704
1705 * buffer.h (overlay_strings): Adjust prototype.
1706
1707 * region-cache.c (pp_cache): Adjust format to arguments.
1708
1709 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
1710 (call_debugger): Use EMACS_INT for specpdl_size related variables.
1711 (verror): Use EMACS_INT for size of allocated buffer.
1712
1713 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
1714 positions.
1715
1716 * xdisp.c (redisplay_internal, try_window_id)
1717 (set_cursor_from_row, find_first_unchanged_at_end_row):
1718 Use EMACS_INT for buffer positions.
1719
1720 * dispextern.h (set_cursor_from_row): Adjust prototype.
1721
1722 * dispnew.c (increment_matrix_positions)
1723 (increment_row_positions, copy_glyph_row_contents)
1724 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
1725 positions.
1726
1727 * dispextern.h (mode_line_string, marginal_area_string)
1728 (increment_matrix_positions, increment_row_positions):
1729 Adjust prototypes.
1730
1731 * data.c (Faref, Faset): Use EMACS_INT for string length and
1732 positions.
1733
1734 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
1735 characters to insert.
1736
1737 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
1738 position and size.
1739
1740 * syntax.c (scan_words, update_syntax_table)
1741 (prev_char_comend_first, back_comment, skip_chars)
1742 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
1743 Use EMACS_INT for buffer and string positions.
1744
1745 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
1746
1747 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
1748 positions.
1749
1750 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
1751
1752 * scroll.c (calculate_scrolling, line_ins_del)
1753 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
1754 conversion.
1755
1756 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
1757 (region_cache_backward, region_cache_forward)
1758 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
1759 conversion.
1760
1761 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1762
1763 * eval.c (verror): Fix EMACS_INT/int conversion.
1764
1765 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
1766 (print_preprocess, print_check_string_charset_prop)
1767 (print_object): Fix EMACS_INT/int conversion.
1768
1769 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1770
1771 2010-09-24 Eli Zaretskii <eliz@gnu.org>
1772
1773 * callproc.c (Fcall_process): Use EMACS_INT for count of
1774 characters read from the subprocess.
1775
1776 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
1777 positions.
1778 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
1779 positions.
1780
1781 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
1782 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
1783 length.
1784 (advance_to_char_boundary, Fset_buffer_multibyte)
1785 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
1786 (overlay_touches_p, record_overlay_string, overlay_strings)
1787 (recenter_overlay_lists, fix_start_end_in_overlays)
1788 (modify_overlay, Fmove_overlay, report_overlay_modification)
1789 (evaporate_overlays): Use EMACS_INT for buffer positions.
1790
1791 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
1792 Adjust prototypes.
1793
1794 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
1795 positions.
1796
1797 * fns.c (Fcompare_strings, Fstring_lessp, concat)
1798 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
1799 (Fsubstring_no_properties, substring_both, Ffillarray)
1800 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
1801 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
1802 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
1803 (Fmd5): Use EMACS_INT for buffer and string positions and length
1804 variables and arguments.
1805
1806 * lisp.h (substring_both): Adjust prototype.
1807
1808 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
1809
1810 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
1811 * w32fns.c (clipboard_sequence_fn): Don't declare.
1812 (globals_of_w32fns): Don't initialize it.
1813
1814 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
1815
1816 * syntax.c (back_comment): Detect the case where a 1-char comment
1817 starter is also the 2nd char of a 2-char comment ender.
1818
1819 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
1820
1821 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
1822
1823 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1824
1825 * eval.c (verror): EMACS_INT/int cleanup.
1826
1827 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
1828 unwind_protect more than 2GB worth of functions.
1829
1830 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
1831
1832 * lisp.h: Have oblookup take EMACS_INT to allow interning big
1833 string and avoid compiler warnings.
1834 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
1835 all users.
1836
1837 * lread.c (oblookup): EMACS_INT/int cleanup.
1838
1839 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
1840
1841 2010-09-23 Eli Zaretskii <eliz@gnu.org>
1842
1843 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
1844
1845 * lisp.h (clip_to_bounds): Adjust prototype.
1846
1847 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
1848
1849 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1850
1851 * lisp.h: doprnt.c EMACS_INT/int cleanup.
1852
1853 * doprnt.c (doprnt): EMACS_INT/int cleanup.
1854
1855 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
1856 cleanup.
1857
1858 * lisp.h: Change the definition of all marker.c functions that
1859 take and return buffer stuff to be EMACS_INT instead of int.
1860
1861 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
1862 (buf_charpos_to_bytepos, bytepos_to_charpos)
1863 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
1864 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
1865 for all buffer positions.
1866
1867 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
1868
1869 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1870 (split_interval_right, find_interval, next_interval)
1871 (delete_node, delete_interval, interval_deletion_adjustment)
1872 (adjust_intervals_for_deletion, merge_interval_right)
1873 (merge_interval_left, graft_intervals_into_buffer)
1874 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
1875
1876 * intervals.h (traverse_intervals): Update prototype.
1877
1878 2010-09-23 Eli Zaretskii <eliz@gnu.org>
1879
1880 * indent.c (compute_motion): Use EMACS_INT for arguments to
1881 region_cache_forward.
1882
1883 * region-cache.c (struct boundary, struct region_cache):
1884 Use EMACS_INT for positions.
1885 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
1886 (delete_cache_boundaries, set_cache_region)
1887 (invalidate_region_cache, know_region_cache)
1888 (region_cache_forward, region_cache_backward, pp_cache):
1889 Use EMACS_INT for buffer positions.
1890
1891 * region-cache.h (know_region_cache, invalidate_region_cache)
1892 (region_cache_forward, region_cache_backward): Adjust prototypes.
1893
1894 * search.c (string_match_1, fast_c_string_match_ignore_case)
1895 (looking_at_1, scan_buffer, scan_newline)
1896 (find_next_newline_no_quit, find_before_next_newline)
1897 (search_command, trivial_regexp_p, search_buffer, simple_search)
1898 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
1899 and string positions and length.
1900
1901 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
1902 (find_before_next_newline): Adjust prototypes.
1903
1904 * editfns.c (transpose_markers, update_buffer_properties)
1905 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
1906 (get_pos_property, Fconstrain_to_field)
1907 (Fline_beginning_position, Fline_end_position, Fprevious_char)
1908 (Fchar_after, Fchar_before, Finsert_char)
1909 (Finsert_buffer_substring, Fcompare_buffer_substrings)
1910 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
1911 Use EMACS_INT for buffer and string position variables.
1912 (Finsert_char): Protect against too large insertions.
1913
1914 * lisp.h (clip_to_bounds): Adjust prototype.
1915
1916 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1917 (balance_an_interval, split_interval_right, split_interval_left)
1918 (find_interval, next_interval, update_interval)
1919 (adjust_intervals_for_insertion, delete_node, delete_interval)
1920 (interval_deletion_adjustment, adjust_intervals_for_deletion)
1921 (offset_intervals, merge_interval_right, merge_interval_left)
1922 (graft_intervals_into_buffer, adjust_for_invis_intang)
1923 (move_if_not_intangible, get_local_map, copy_intervals)
1924 (copy_intervals_to_string, compare_string_intervals)
1925 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
1926 and for interval tree size.
1927
1928 * intervals.h (traverse_intervals, split_interval_right)
1929 (split_interval_left, find_interval, offset_intervals)
1930 (graft_intervals_into_buffer, copy_intervals)
1931 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
1932 (update_interval): Adjust prototypes.
1933
1934 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
1935 Use EMACS_INT for buffer position variables and arguments.
1936
1937 * composite.c (get_composition_id, find_composition)
1938 (run_composition_function, compose_text)
1939 (composition_gstring_width, autocmp_chars)
1940 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
1941 for buffer positions and string length variables and arguments.
1942
1943 * composite.h (get_composition_id, find_composition, compose_text)
1944 (composition_gstring_width): Adjust prototypes.
1945
1946 * editfns.c (Fformat): Use EMACS_INT for string size variables.
1947
1948 * xdisp.c (store_mode_line_noprop, display_mode_element):
1949 Use EMACS_INT for string positions.
1950
1951 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
1952 position arguments.
1953
1954 * intervals.h (get_property_and_range): Adjust prototype.
1955
1956 * character.c (parse_str_as_multibyte, str_as_multibyte)
1957 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1958 (string_count_byte8, string_escape_byte8, c_string_width)
1959 (strwidth, lisp_string_width, multibyte_chars_in_text):
1960 Use EMACS_INT for string length variables and arguments.
1961
1962 * character.h (parse_str_as_multibyte, str_as_multibyte)
1963 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1964 (c_string_width, strwidth, lisp_string_width):
1965 Adjust prototypes.
1966
1967 * font.c (font_intern_prop): Use EMACS_INT for string length
1968 variables.
1969
1970 * font.c (font_intern_prop): Use EMACS_INT for string length
1971 variables.
1972
1973 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1974 variables.
1975
1976 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1977 (Fmake_string): Protect against too large strings.
1978 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1979 (live_misc_p): Use ptrdiff_t instead of int for pointer
1980 differences.
1981 (string_bytes, check_sblock, check_string_free_list)
1982 (allocate_string_data, compact_small_strings, Fmake_string)
1983 (Fmake_bool_vector, make_string, make_unibyte_string)
1984 (make_multibyte_string, make_string_from_bytes)
1985 (make_specified_string_string, Fmake_list, Fmake_vector):
1986 Use EMACS_INT for string length variables and arguments.
1987 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1988 (Fpurecopy): Use EMACS_INT for string size.
1989 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1990 for vector size.
1991
1992 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1993 (make_string_from_bytes, make_specified_string_string)
1994 (make_pure_string, string_bytes, check_point_in_composition):
1995 Adjust prototypes.
1996
1997 2010-09-22 Eli Zaretskii <eliz@gnu.org>
1998
1999 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2000 (check_translation): Use EMACS_INT for buffer positions and
2001 length.
2002
2003 * undo.c (record_marker_adjustment, record_delete)
2004 (record_change, record_point, record_insert)
2005 (record_property_change, Fprimitive_undo): Use EMACS_INT for
2006 buffer positions.
2007
2008 * lisp.h (record_marker_adjustment, record_delete)
2009 (record_change, record_point, record_insert)
2010 (record_property_change, Fprimitive_undo): Adjust prototypes.
2011
2012 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
2013 Eli Zaretskii <eliz@gnu.org>
2014
2015 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
2016
2017 2010-09-22 Eli Zaretskii <eliz@gnu.org>
2018
2019 * minibuf.c (Fminibuffer_contents)
2020 (Fminibuffer_contents_no_properties)
2021 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
2022 positions.
2023
2024 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
2025 mark.
2026
2027 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
2028 (allocate_string_data): Accept EMACS_INT for string length.
2029
2030 * editfns.c (Ffield_string, Ffield_string_no_properties)
2031 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
2032 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
2033 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
2034 (Ffield_end): Use EMACS_INT for buffer positions.
2035
2036 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
2037 point with mark.
2038
2039 * lisp.h (allocate_string_data, make_uninit_string)
2040 (make_uninit_multibyte_string, make_buffer_string)
2041 (make_buffer_string_both): Adjust prototypes.
2042
2043 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
2044
2045 * xml.c: Switch to GNU indentation.
2046 (make_dom): Change parse tree format to match xml.el.
2047 (Fxml_parse_html_string_internal): Rename from html-parse-string.
2048 (Fxml_parse_string_internal): Rename from xml-parse-string.
2049
2050 2010-09-22 Kenichi Handa <handa@m17n.org>
2051
2052 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
2053 only if we are not at a composition.
2054 (set_iterator_to_next): Give it->end_charpos to
2055 composition_compute_stop_pos.
2056 (set_iterator_to_next, next_element_from_buffer): Likewise.
2057
2058 * dispnew.c (buffer_posn_from_coords): Fix position when the
2059 current display element is a grapheme cluster in bidi-reordered
2060 region.
2061
2062 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
2063
2064 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
2065 the regions may overlap.
2066
2067 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
2068
2069 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
2070
2071 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2072
2073 * emacs.c: Do not include sys/ioctl.h, not needed.
2074
2075 * doprnt.c: Do not include stdlib.h, config.h does it.
2076 Move #include before macro definition.
2077
2078 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
2079
2080 * Makefile.in (temacs): Link using $(CC) not $(LD).
2081 (LD_FIRSTFLAG): Define using autoconf.
2082 (LD): Remove.
2083
2084 Remove HAVE_TERMIOS definitions.
2085 * s/usg5-4-common.h (HAVE_TERMIOS):
2086 * s/template.h (HAVE_TERMIOS):
2087 * s/gnu-linux.h (HAVE_TERMIOS):
2088 * s/darwin.h (HAVE_TERMIOS):
2089 * s/cygwin.h (HAVE_TERMIOS):
2090 * s/bsd-common.h (HAVE_TERMIOS):
2091 * s/aix4-2.h (HAVE_TERMIOS):
2092 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
2093 defined on all non-MS platforms.
2094 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
2095
2096 * xterm.c (xt_action_hook): Use const.
2097
2098 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
2099
2100 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
2101 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
2102 (gethostname) [!HAVE_SOCKETS]: Remove.
2103 (SOCK_REPLACE_HANDLE): Remove macro.
2104 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
2105 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
2106 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
2107 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
2108
2109 2010-09-18 Eli Zaretskii <eliz@gnu.org>
2110
2111 * deps.mk (xml.o): Add dependencies.
2112
2113 * xdisp.c (Fcurrent_bidi_paragraph_direction):
2114 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
2115
2116 * bidi.c (bidi_paragraph_init): Accept an additional argument
2117 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
2118 search back until a paragraph with a strong directional character
2119 is found, and use that to determine paragraph's base direction.
2120
2121 * dispextern.h (bidi_paragraph_init): Update prototype.
2122
2123 2010-09-17 Eli Zaretskii <eliz@gnu.org>
2124
2125 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2126 of w32api >= 3.15. (Bug#6989)
2127
2128 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
2129
2130 * process.c (wait_reading_process_output): Don't message about
2131 accept-process-output unless the time limit really is zero.
2132
2133 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2134
2135 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
2136 int/Lisp_Object mixup).
2137
2138 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
2139
2140 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
2141 not HELP.
2142
2143 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
2144
2145 * frame.c (Ftool_bar_pixel_width): New function to expose tool
2146 bar's pixel width to Lisp (Bug#7048).
2147
2148 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
2149
2150 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
2151
2152 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
2153
2154 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
2155 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
2156
2157 2010-09-17 Kenichi Handa <handa@m17n.org>
2158
2159 * ftfont.c (ftfont_check_otf): Fix previous change.
2160
2161 2010-09-14 Kenichi Handa <handa@m17n.org>
2162
2163 * ftfont.c (ftfont_check_otf): Fix the case of checking just
2164 existence of GSUB or GPOS.
2165
2166 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
2167
2168 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
2169
2170 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
2171
2172 * xml.c (parse_buffer): Renamed to parse_string(), since that's
2173 what it does.
2174 (parse_string): Return nil when the document can't be parsed.
2175
2176 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
2177
2178 * xterm.c (get_current_vm_state): New function.
2179 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
2180 want_fullscreen so set_wm_state calls are few (Bug#7013).
2181 (x_handle_net_wm_state): Move code to get_current_vm_state and
2182 call that function.
2183
2184 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
2185
2186 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
2187
2188 2010-09-14 Kenichi Handa <handa@m17n.org>
2189
2190 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
2191 we may use designation or locking-shift.
2192
2193 2010-09-14 Kenichi Handa <handa@m17n.org>
2194
2195 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
2196 sequence when the source is multibyte.
2197
2198 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
2199
2200 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
2201 Don't make first argument optional. Doc fix.
2202
2203 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
2204
2205 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
2206 parameters for the doc string.
2207
2208 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
2209
2210 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
2211
2212 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2213
2214 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
2215 (syms_of_fns): Don't defsubr Sy_or_n_p.
2216 * lisp.h: Don't declare Fy_or_n_p.
2217 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
2218
2219 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2220
2221 * xml.c (Fxml_parse_buffer): New function to parse XML files.
2222
2223 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
2224
2225 * xml.c: New file.
2226 (Fhtml_parse_buffer): New function to interface to the libxml2
2227 html parsing function.
2228
2229 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
2230
2231 * biditype.h: Regenerate.
2232
2233 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
2234
2235 * nsimage.m (ns_load_image): Check argument types.
2236
2237 * image.c: Remove all uses of gcpro.
2238 (xpm_load): Check all lisp types.
2239 (pbm_load): Likewise.
2240 (png_load): Likewise.
2241 (jpeg_load): Likewise.
2242 (tiff_load): Likewise.
2243 (gif_load): Likewise.
2244 (imagemagick_load_image): Likewise.
2245 (imagemagick_load): Likewise.
2246 (svg_load): Likewise.
2247 (gs_load): Likewise.
2248
2249 2010-09-04 Eli Zaretskii <eliz@gnu.org>
2250
2251 * w32uniscribe.c (uniscribe_shape): Update commentary.
2252 Don't try to reorder grapheme clusters, since LGSTRING should always
2253 hold them in the logical order.
2254 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
2255 return glyph codes in the logical order.
2256
2257 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
2258
2259 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
2260 (imagemagick_load_image): Fix type mismatch.
2261 (Fimagemagick_types): Likewise. Doc fix.
2262
2263 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
2264
2265 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
2266
2267 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
2268
2269 * xselect.c: Remove declaration of cut-buffer objects and functions.
2270 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
2271 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
2272 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
2273 (Fx_rotate_cut_buffers_internal): Remove.
2274 (syms_of_xselect): Remove defsubr of above.
2275 Remove intern of QCUT_BUFFERn.
2276
2277 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
2278
2279 * cmds.c (Vblink_paren_function): Remove.
2280 (internal_self_insert): Make it insert N chars at a time.
2281 Don't call blink-paren-function.
2282 (Fself_insert_command): Adjust accordingly.
2283 (syms_of_cmds): Don't declare blink-paren-function.
2284
2285 2010-08-31 Kenichi Handa <handa@m17n.org>
2286
2287 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
2288 characters.
2289
2290 * term.c (encode_terminal_code): Fix the previous change.
2291 (produce_glyphs): Don't set it->char_to_display here.
2292 Don't handle unibyte-display-via-language-environment here.
2293 (produce_special_glyphs): Set temp_it.char_to_display before
2294 calling produce_glyphs.
2295
2296 * xdisp.c (get_next_display_element): Set it->char_to_display
2297 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
2298 characters.
2299 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
2300 calling PRODUCE_GLYPHS.
2301 (append_space_for_newline): Save and store it->char_to_display.
2302 Set it->char_to_display before calling PRODUCE_GLYPHS.
2303 (extend_face_to_end_of_line): Set it->char_to_display before
2304 calling PRODUCE_GLYPHS.
2305 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
2306 character to its byte value.
2307 (get_char_glyph_code): New function.
2308 (produce_stretch_glyph): Set it2.char_to_display too before
2309 calling x_produce_glyphs.
2310 (x_produce_glyphs): Simplify by using the same code for ASCII and
2311 non-ASCII characters. Don't set it->char_to_display here.
2312 Don't handle unibyte-display-via-language-environment here. For a
2313 character of no glyph, use font->space_width instead of FONT_WIDTH.
2314
2315 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2316
2317 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
2318
2319 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
2320
2321 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
2322
2323 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
2324
2325 * marker.c (Fcopy_marker): Make the first arg optional.
2326
2327 2010-08-30 Kenichi Handa <handa@m17n.org>
2328
2329 * composite.c (composition_update_it): Fix computing of
2330 cmp_it->width.
2331
2332 2010-08-29 Kenichi Handa <handa@m17n.org>
2333
2334 * term.c (encode_terminal_code): Encode byte chars to the
2335 corresponding bytes.
2336
2337 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
2338
2339 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
2340
2341 2010-08-26 Kenichi Handa <handa@m17n.org>
2342
2343 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
2344 on calling composition_compute_stop_pos.
2345
2346 2010-08-25 Kenichi Handa <handa@m17n.org>
2347
2348 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
2349 :otf.
2350
2351 * composite.c (composition_compute_stop_pos): Don't break
2352 composition at PT.
2353 (composition_reseat_it): Likewise. Fix calculation of character
2354 position starting a composition.
2355 (Fcomposition_get_gstring): Don't limit the number of components
2356 for automatic composition.
2357
2358 2010-08-25 Kenichi Handa <handa@m17n.org>
2359
2360 * composite.c (composition_compute_stop_pos): In forward search,
2361 pay attention to the possibility that some character after ENDPOS
2362 will be composed with charactrs before ENDPOS.
2363
2364 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
2365
2366 * keyboard.c (command_loop_1): Don't clobber primary selection
2367 during handle-switch-frame (Bug#6872).
2368
2369 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
2370
2371 * dbusbind.c: Accept UNIX domain sockets as bus address.
2372 (Fdbus_close_bus): New function.
2373 (Vdbus_registered_buses): New variable.
2374 (xd_initialize): Implement string as bus address.
2375 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
2376 (Fdbus_get_unique_name, Fdbus_call_method)
2377 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2378 (Fdbus_method_error_internal, Fdbus_send_signal)
2379 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
2380 check. This is done in xd_initialize_bus. Adapt doc string, if
2381 necessary.
2382 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
2383 Vdbus_registered_buses.
2384 (Vdbus_registered_objects_table): Create hash.
2385
2386 2010-08-22 Juri Linkov <juri@jurta.org>
2387
2388 * keyboard.c (Fexecute_extended_command): Move reading a command name
2389 with `completing-read' to a new Elisp function `read-extended-command'.
2390 Call it to read a command to `function' (bug#5364, bug#5214).
2391
2392 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
2393
2394 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
2395
2396 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
2397
2398 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
2399 instead of SAFE_ALLOCA.
2400
2401 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
2402
2403 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
2404 (Bug#6214).
2405
2406 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
2407
2408 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
2409
2410 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
2411
2412 * doc.c (Fsnarf_documentation): Initialize skip_file before
2413 build-files test.
2414
2415 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
2416
2417 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
2418 New definitions.
2419 (HAVE_TERMIO): Remove.
2420
2421 2010-08-22 Eli Zaretskii <eliz@gnu.org>
2422
2423 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
2424
2425 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
2426 for w32.
2427
2428 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
2429 it's done in nt/config.nt.
2430
2431 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
2432
2433 * unexcoff.c (report_error, make_hdr, write_segment)
2434 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
2435 Convert argument lists and prototypes to ANSI C.
2436 (make_hdr, write_segment): Remove unused variables.
2437 (unexec): Remove commented-out line. Initialize `new' to shut up
2438 compiler warnings.
2439
2440 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
2441
2442 Simplify termio code.
2443 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
2444 HAVE_TERMIO code is obsolete.
2445 Replace HAVE_TERMIOS conditionals with !DOS_NT.
2446 * systty.h: Do not define HAVE_TCATTR.
2447 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
2448 Do not define EMACS_HAVE_TTY_PGRP. Only define
2449 EMACS_GET_TTY_PGRP for !DOS_NT.
2450 * sysdep.c: Include sysselect.h unconditionally. Do not include
2451 sys/ioctl.h and termios.h, systty.h does it.
2452 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
2453 (init_baud_rate): Remove HAVE_TERMIO code.
2454 (child_setup_tty): Remove HAVE_TERMIO code.
2455 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
2456 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
2457 (new_ltchars, new_tchars): Remove, unused.
2458 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
2459 code. Remove special casing for __mips__, it was a no-op.
2460 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
2461 (init_sys_modes): Remove HPUX special case.
2462 * process.c: Include stdlib.h unconditionally. Do not include
2463 fcntl.h, systty.h does it. Remove conditional code for
2464 HAVE_SERIAL, it is always true.
2465 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
2466 always true when SIGNALS_VIA_CHARACTERS is true.
2467 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
2468 !WINDOWSNT means HAVE_TERMIOS.
2469 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
2470 conditional, which is true for all HAVE_TERMIOS systems.
2471 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
2472 instead of HAVE_TERMIOS.
2473 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
2474 EMACS_HAVE_TTY_PGRP.
2475 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
2476 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
2477 anyway.
2478
2479 2010-08-21 Eli Zaretskii <eliz@gnu.org>
2480
2481 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
2482 mirroring pixel positions.
2483
2484 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
2485
2486 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
2487 write only.
2488 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
2489 malloc_sbrk_used, nothing uses them.
2490
2491 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
2492 defined, unconditionally defined in lisp.h.
2493
2494 * term.c: Do not include <termios.h>, systty.h does it.
2495
2496 * s/unixware.h (HAVE_TCATTR):
2497 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
2498 systty.h defines it when HAVE_TERMIOS is defined.
2499
2500 2010-08-20 Eli Zaretskii <eliz@gnu.org>
2501
2502 * dispnew.c (buffer_posn_from_coords): Fix last change for text
2503 terminals: add one-character offset for R2L lines.
2504
2505 * emacs.c <emacs_version>: Add a comment regarding
2506 msdos/mainmake.v2's dependency on the syntax of this declaration.
2507
2508 2010-08-20 Eli Zaretskii <eliz@gnu.org>
2509
2510 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
2511 position for R2L lines by mirroring the pixel position wrt the
2512 text are box. Improve commentary.
2513
2514 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
2515
2516 * image.c (imagemagick_clear_image): Remove debugging output.
2517
2518 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2519
2520 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
2521 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
2522 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
2523 self-insert-face.
2524 (syms_of_cmds): Initialize the new vars.
2525
2526 2010-08-19 Jason Rumney <jasonr@gnu.org>
2527
2528 * w32menu.c (set_frame_menubar): Remove call to undefined function.
2529
2530 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
2531
2532 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
2533
2534 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
2535
2536 2010-08-18 Eli Zaretskii <eliz@gnu.org>
2537
2538 * xterm.c (x_draw_bar_cursor):
2539 * w32term.c (x_draw_bar_cursor): If the character under cursor is
2540 R2L, draw the bar cursor on its right rather than on its left.
2541
2542 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
2543
2544 * eval.c (Fdefmacro): Only obey one declaration.
2545
2546 * casefiddle.c (casify_region): Setup gl_state.
2547
2548 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2549
2550 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
2551
2552 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2553
2554 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
2555
2556 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
2557
2558 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
2559 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
2560 QPRIMARY => NXPrimaryPboard.
2561 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
2562 NXPrimaryPboard => QPRIMARY.
2563 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
2564 NXSecondaryPboard = SecondarySelection.
2565 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
2566
2567 2010-08-18 Joakim Verona <joakim@verona.se>
2568
2569 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
2570 defined:
2571 (imagemagick_image_p): New function to test for ImageMagic image.
2572 (imagemagick_load): New function to load ImageMagick image.
2573 (imagemagick_load_image): New function, helper for imagemagick_load.
2574 (imagemagick-types): New function.
2575 (Qimagemagick): New Lisp_object.
2576 (imagemagick-render-type): New variable, decides which renderer to use.
2577
2578 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
2579
2580 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
2581 is a string.
2582
2583 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
2584
2585 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
2586 x_set_tool_bar_position handler.
2587
2588 2010-08-17 Eli Zaretskii <eliz@gnu.org>
2589
2590 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
2591 x_set_tool_bar_position handler, needed to support changes from
2592 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
2593
2594 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
2595
2596 * nsselect.m: include keyboard.h for QPRIMARY, remove its
2597 declaration (Bug#6863).
2598 (syms_of_nsselect): Don't intern QPRIMARY.
2599
2600 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2601
2602 * keyboard.h (QPRIMARY): Declare (Bug#6864).
2603
2604 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
2605
2606 * keyboard.c (command_loop_1): Avoid setting selection twice,
2607 since it's done in deactivate-mark as well.
2608 (Vselect_active_regions): Change default to t. Replace `lazy'
2609 with non-default value `only', meaning only set PRIMARY for
2610 temporarily active regions.
2611
2612 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
2613 select-active-regions.
2614
2615 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2616
2617 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
2618 isn't a string.
2619
2620 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
2621
2622 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
2623
2624 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2625
2626 * keyboard.c (parse_tool_bar_item): malloc buf.
2627 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
2628 new_lbl (Bug#6855).
2629
2630 2010-08-14 Eli Zaretskii <eliz@gnu.org>
2631
2632 * xterm.c (x_draw_stretch_glyph_string):
2633 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
2634 the cursor on the right edge of the stretch glyph.
2635
2636 * xdisp.c (window_box_right_offset, window_box_right):
2637 Fix commentary.
2638
2639 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
2640 direction when point is inside a run of whitespace characters.
2641
2642 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
2643
2644 2010-08-14 Jason Rumney <jasonr@gnu.org>
2645
2646 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
2647
2648 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
2649
2650 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
2651
2652 2010-08-13 Jason Rumney <jasonr@gnu.org>
2653
2654 * w32menu.c (simple_dialog_show): Use unicode message box if available.
2655 (MessageBoxW_Proc): New function typedef.
2656 (unicode-message-box): New function pointer.
2657 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
2658
2659 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
2660
2661 * frame.h (Qtool_bar_position): Declare.
2662
2663 * xfns.c (Fx_create_frame): Call x_default_parameter for
2664 Qtool_bar_position.
2665
2666 2010-08-13 Eli Zaretskii <eliz@gnu.org>
2667
2668 * unexcoff.c: Remove the parts used when "emacs" is not defined.
2669 (report_error, report_error_1): Ditto.
2670 (write_segment): Remove "#if 0" unused code.
2671 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
2672 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
2673 (start_of_text): Remove unused function (was used only if NO_REMAP
2674 was NOT defined).
2675
2676 * msdos.c (IT_set_face): Fix format string to match argument
2677 types.
2678 (IT_write_glyphs, IT_note_mode_line_highlight)
2679 (IT_set_frame_parameters): Remove unused variables.
2680 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
2681 (IT_set_terminal_modes): Disambiguate expression in if clause.
2682 (Fmsdos_remember_default_colors): Return Qnil.
2683 (IT_set_frame_parameters): Add parens to disambiguate boolean
2684 expression for logging the cursor type to termscript.
2685 (keyboard_layout_list, keypad_translate_map)
2686 (grey_key_translate_map): Add braces in inner initializers.
2687 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
2688 (dos_rawgetc): Remove unused label.
2689 (XMenuActivate): Add braces to remove ambiguous `else'.
2690 (dos_ttraw): Always return a value.
2691 (spawnve): Declare.
2692 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
2693
2694 * dosfns.h (x_set_title): Declare.
2695
2696 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
2697 Remove unused variables.
2698
2699 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
2700 variables.
2701 (init_dosfns): Declare get_lim_data.
2702 (system_process_attributes): Declare Fget_internal_run_time.
2703
2704 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
2705 list to be consistent with menu.h.
2706
2707 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
2708 warnings due to mixing of "char *" and "const char *".
2709
2710 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2711
2712 Introduce a new comment style "c" flag.
2713 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
2714 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
2715 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
2716 (syntax_prefix_flag_p): New function.
2717 (Fstring_to_syntax): Understand new "c" flag.
2718 (Finternal_describe_syntax_value): Recognize new flag; use the
2719 SYNTAX_FLAGS_* macros.
2720 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
2721 comment style to accomodate the new styles.
2722 (back_comment, forw_comment, Fforward_comment, scan_lists)
2723 (scan_sexps_forward): Update code to obey the new comment style flag.
2724
2725 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
2726
2727 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
2728
2729 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
2730
2731 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
2732 first.
2733 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
2734
2735 * gtkutil.h (xg_check_special_colors): Declare.
2736
2737 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
2738 (xg_create_frame_widgets): Connect theme name changes to
2739 style_changed_cb.
2740
2741 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
2742 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
2743 (x_term_init): Use char[] display_opt and name_opt instead of
2744 string literal. file is const char*.
2745
2746 * xsmfns.c (NOSPLASH_OPT): Change to char[].
2747 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
2748 props. Free them at the end.
2749
2750 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
2751
2752 * xrdb.c (get_system_app): Make path const and use char *p for
2753 non-const char.
2754
2755 * xmenu.c (Fx_popup_dialog): error_name is const char*.
2756 (xmenu_show): error parameter is const char **. pane_string is const
2757 char *.
2758 (button_names): Is const char *.
2759 (xdialog_show): error_name and pane_string is const.
2760
2761 * process.h (synch_process_death): Is const char*.
2762
2763 * w32menu.c (w32_menu_show):
2764 * nsmenu.m (ns_menu_show): error parameter is const char **.
2765
2766 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
2767 is const char **.
2768
2769 * menu.c (Fx_popup_menu): error_name is const.
2770
2771 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
2772 with unsigned char and XtPointer with void *.
2773
2774 * gtkutil.h: Replace widget_value with struct _widget_value.
2775 (enum button_type, struct _widget_value): Remove and use the one from
2776 keyboard.h.
2777
2778 * gtkutil.c (get_utf8_string): Always return an allocated string.
2779 Parameter is const.
2780 (create_dialog, xg_create_one_menuitem, create_menus)
2781 (xg_item_label_same_p, xg_update_menu_item): Free result from
2782 get_utf8_string.
2783 (xg_separator_p, xg_item_label_same_p): label is const.
2784
2785 * font.h (font_open_by_name): Make name const.
2786
2787 * font.c (font_open_by_name): Make name const.
2788
2789 * floatfns.c (matherr): Use a const char* variable for x->name.
2790
2791 * emacs.c (main): Pass char[] to putenv instead of literal.
2792
2793 * callproc.c (synch_process_death): Make const.
2794 (Fcall_process): Make signame const.
2795
2796 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
2797 (addDisplayItemWithImage): Use const char*.
2798
2799 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
2800 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
2801
2802 * nsfont.m (ns_descriptor_to_entity): Use const char*.
2803
2804 * keyboard.h (_widget_value): name, value and key are const char*.
2805
2806 * unexmacosx.c (unexec_error): Use const char *.
2807
2808 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2809
2810 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
2811 (font_parse_name, font_open_by_name):
2812 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
2813 (font_parse_name, font_open_by_name): Remove const.
2814
2815 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
2816
2817 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
2818 definition.
2819
2820 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
2821 * m/amdx86-64.h: Likewise.
2822 * m/arm.h: Likewise.
2823 * m/hp800.h: Likewise.
2824 * m/ia64.h: Likewise.
2825 * m/ibmrs6000.h: Likewise.
2826 * m/ibms390.h: Likewise.
2827 * m/intel386.h: Likewise.
2828 * m/iris4d.h: Likewise.
2829 * m/m68k.h: Likewise.
2830 * m/macppc.h: Likewise.
2831 * m/mips.h: Likewise.
2832 * m/sh3.h: Likewise.
2833 * m/sparc.h: Likewise.
2834 * m/template.h: Likewise.
2835 * m/vax.h: Likewise.
2836 * m/xtensa.h: Likewise.
2837 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
2838 WORDS_BIG_ENDIAN.
2839 * lisp.h: Likewise.
2840 * md5.c: Likewise.
2841 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
2842
2843 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2844
2845 Use const char* instead of char*.
2846 Reduce the number of warnings with -Wwrite-strings.
2847 * xrdb.c (get_environ_db, get_system_name):
2848 * unexelf.c (find_section):
2849 * term.c (string_cost, string_cost_one_line, per_line_cost)
2850 (get_named_tty, init_tty):
2851 * sysdep.c (sys_subshell):
2852 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
2853 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
2854 * search.c (Freplace_match):
2855 * process.c (Fmake_network_process, send_process, init_process):
2856 * lread.c (Fload, init_lread):
2857 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
2858 * keyboard.c (parse_tool_bar_item, struct event_head):
2859 * gtkutil.h (xg_get_font_name):
2860 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
2861 (make_widget_for_menu_item, make_menu_item, create_menus)
2862 (xg_make_tool_item):
2863 * font.c (parse_matrix, font_parse_name):
2864 * floatfns.c (rounding_driver, float_error_fn_name):
2865 * filelock.c (get_boot_time_1, lock_file_1):
2866 * fileio.c (barf_or_query_if_file_exists, check_writable):
2867 * editfns.c (get_system_name, get_operating_system_release)
2868 (Fencode_time, Fset_time_zone_rule):
2869 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
2870 * buffer.c (defvar_per_buffer): Use const.
2871
2872 2010-08-08 Kenichi Handa <handa@m17n.org>
2873
2874 * charset.c: Include <stdlib.h>.
2875 (struct charset_sort_data): New struct.
2876 (charset_compare): New function.
2877 (Fsort_charsets): New function.
2878 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
2879
2880 * coding.c (decode_coding_iso_2022): Fix checking of dimension
2881 number in CTEXT extended segment.
2882
2883 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2884
2885 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
2886 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
2887
2888 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2889
2890 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
2891 (Fhash_table_size): Fix typos in docstrings.
2892 (Fmake_hash_table): Doc fix.
2893
2894 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2895
2896 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
2897 Doc fix (bug#5625).
2898
2899 2010-08-08 Ken Brown <kbrown@cornell.edu>
2900
2901 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
2902 the MSDOS definition.
2903
2904 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2905
2906 Use const char* instead of char*.
2907 * xterm.c (x_create_toolkit_scroll_bar):
2908 * xfont.c (xfont_list_pattern):
2909 * xfns.c (x_default_scroll_bar_color_parameter)
2910 (xic_create_fontsetname, x_default_font_parameter)
2911 (x_screen_planes):
2912 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
2913 (store_mode_line_string, decode_mode_spec, display_string):
2914 * menu.c (digest_single_submenu):
2915 * keymap.h (initial_define_key, initial_define_lispy_key):
2916 * keymap.c (initial_define_key, initial_define_lispy_key):
2917 * image.c (image_error, image_keyword):
2918 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
2919 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
2920 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
2921 (ftfont_list, ftfont_match):
2922 * frame.c (frame_parm_table):
2923 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2924 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2925 (font_add_log, font_deferred_log):
2926 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2927 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2928 (font_add_log, font_deferred_log):
2929 * emacs.c (argmatch):
2930 * dispextern.h (struct it):
2931 * coding.c (ENCODE_DESIGNATION):
2932 * charset.c (define_charset_internal): Use const.
2933
2934 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
2935
2936 * xrdb.c: Remove include guard.
2937 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
2938 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
2939 realloc->xrealloc instead of using #defines.
2940
2941 2010-08-08 Eli Zaretskii <eliz@gnu.org>
2942
2943 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
2944 * editfns.c (Fline_beginning_position, Fline_end_position):
2945 State in the doc strings that start and end of line are in the
2946 logical order.
2947
2948 * xdisp.c (display_line): Move the handling of overlay arrow after
2949 the call to find_row_edges. (Bug#6699)
2950
2951 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
2952
2953 * keyboard.c (command_loop_1):
2954 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
2955
2956 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
2957
2958 * insdel.c (prepare_to_modify_buffer): Save active region text to
2959 Vsaved_region_selection.
2960
2961 * xselect.c (QPRIMARY): Move to keyboard.c.
2962
2963 * keyboard.c (Vselect_active_regions): Move from simple.el.
2964 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2965 (command_loop_1): Set window selection prior to deactivating the mark.
2966
2967 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
2968
2969 * alloc.c (lisp_malloc):
2970 * buffer.c (set_buffer_internal, set_buffer_internal_1):
2971 * charset.h (emacs_mule_charset):
2972 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2973 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2974 (bitch_at_user):
2975 * lisp.h (Fcheck_coding_system, Fget_text_property)
2976 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2977 Remove duplicate declarations.
2978
2979 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2980
2981 * process.c: Simplify include logic.
2982
2983 * keyboard.h (quit_char): Add declaration.
2984 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
2985 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2986 Add declarations.
2987 * sysdep.c:
2988 * w32.c: Remove the above declarations.
2989
2990 Remove extern declarations in .c files, .h files have them.
2991 * xterm.c:
2992 * xdisp.c:
2993 * msdos.c:
2994 * image.c:
2995 * gtkutil.c:
2996 * fileio.c:
2997 * eval.c: Remove declarations.
2998
2999 * frame.c (frame_params): Make const.
3000
3001 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
3002
3003 * emacs.c (emacs_copyright, emacs_version): Make static.
3004 (Vinitial_window_system, Vauto_save_list_file_name)
3005 (Vinhibit_redisplay): Remove declarations.
3006 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
3007 for AIX.
3008
3009 Use const for some arrays and functions.
3010 * xterm.h (xg_set_icon_from_xpm_data):
3011 * xfns.c (xg_set_icon_from_xpm_data):
3012 * term.c (fkeys):
3013 * keyboard.c (lispy_accent_keys, lispy_function_keys)
3014 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
3015 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
3016 (frame.c frame_parms):
3017 * emacs-icon.h (gnu_xpm_bits):
3018 * callint.c (callint_argfuns): Use const.
3019
3020 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
3021
3022 * sysdep.c: Move include term.h last of includes (Bug#6812).
3023
3024 2010-08-06 Eli Zaretskii <eliz@gnu.org>
3025
3026 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
3027
3028 * msdos.c (IT_display_cursor): Log cursor position on termscript.
3029
3030 * .gdbinit (pgx): Display the avoid_cursor_p flag.
3031
3032 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
3033
3034 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
3035
3036 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
3037
3038 * xterm.h (x_get_focus_frame): Declare.
3039
3040 * keyboard.h (poll_for_input_1): Unconditionally declare.
3041
3042 * nsterm.h (x_set_menu_bar_lines): Declare.
3043
3044 * window.c: Don't include menu.h, it depends on lots of other .h-files.
3045
3046 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
3047
3048 * window.c: Include menu.h.
3049
3050 * unexmacosx.c (print_region_list, print_regions)
3051 (build_region_list, find_emacs_zone_regions)
3052 (unexec_regions_merge, read_load_commands, dump_it)
3053 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
3054
3055 * term.c: Check HAVE_SYS_IOCTL_H.
3056
3057 * sysdep.c: Check HAVE_TERM_H.
3058
3059 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3060
3061 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
3062 (ns_ring_bell, ns_defined_color, hide_hourglass)
3063 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
3064 Convert to ANSI C prototypes.
3065 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
3066 before code.
3067
3068 * nsterm.h : Include sysselect.h.
3069 (x_sync, x_get_focus_frame, x_set_mouse_position)
3070 (x_set_mouse_pixel_position, x_make_frame_visible)
3071 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
3072 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
3073 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
3074 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
3075 Declare.
3076
3077 * nsmenu.m (popup_activated, name_is_separator)
3078 (syms_of_nsmenu): Convert to ANSI C prototypes.
3079 (runMenuAt): Prototypes and move declarations before code.
3080
3081 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
3082
3083 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
3084 prototypes.
3085
3086 * nsfns.m (have_menus_p, ns_display_info_for_name)
3087 (x_set_cursor_type, ns_appkit_version_str)
3088 (ns_appkit_version_int, ns_do_applescript)
3089 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
3090 (syms_of_nsfns): Convert to ANSI C prototypes.
3091
3092 * menu.h (x_set_menu_bar_line): Declare.
3093 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
3094
3095 * lisp.h (fmod_float): Declare.
3096
3097 * image.c (xpm_scan, xpm_make_color_table_v)
3098 (xpm_put_color_table_v, xpm_get_color_table_v)
3099 (xpm_make_color_table_h, xpm_put_color_table_h)
3100 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
3101 (xpm_load): Convert to ANSI C prototypes.
3102
3103 * emacs.c: Include nsterm.h if HAVE_NS.
3104
3105 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
3106
3107 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
3108
3109 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
3110 subprocesses, only MSDOS does not define HAVE_SOCKETS.
3111 (socket_options): Use const char* for name.
3112
3113 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
3114
3115 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
3116
3117 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
3118 Don't declare xmalloc_widget_value and digest_single_submenu.
3119
3120 * w32font.c (Qlatin): Remove declaration.
3121
3122 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
3123
3124 * dired.c (compile_pattern): Restore declaration.
3125
3126 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
3127
3128 Remove extern declarations in .c files, .h files have them.
3129 * data.c:
3130 * dired.c:
3131 * editfns.c:
3132 * filelock.c:
3133 * fns.c:
3134 * font.c:
3135 * fontset.c:
3136 * frame.c:
3137 * fringe.c:
3138 * ftfont.c:
3139 * gtkutil.c:
3140 * indent.c:
3141 * keyboard.c:
3142 * keymap.c:
3143 * lread.c:
3144 * menu.c:
3145 * print.c:
3146 * search.c:
3147 * sound.c:
3148 * window.c:
3149 * xdisp.c:
3150 * xfaces.c:
3151 * xfns.c:
3152 * xfont.c:
3153 * xftfont.c:
3154 * xmenu.c:
3155 * xterm.c: Remove declarations.
3156
3157 Cleanup syssignal.h.
3158 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
3159 (main_thread): Move down to remove #ifdef.
3160 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
3161 Remove conditional definition following unconditional ones.
3162
3163 * lisp.h: Remove HAVE_SHM code, unused.
3164 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
3165 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
3166 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
3167 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
3168 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
3169 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
3170 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
3171 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
3172 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
3173 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
3174 (Qwindow_scroll_functions, Vafter_load_alist)
3175 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
3176 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
3177 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
3178 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
3179 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
3180 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
3181 (initial_argv, last_nonmenu_event, load_in_progress)
3182 (noninteractive_need_newline, scroll_margin): Add declarations.
3183
3184 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3185 Remove declarations, menu.h has them.
3186 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
3187 (Vinput_method_function, Qinput_method_function)
3188 (Qevent_symbol_element_mask, last_event_timestamp):
3189 * dispextern.h (Voverflow_newline_into_fringe):
3190 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
3191 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
3192 (syms_of_w32font, syms_of_nsfont):
3193 * fontset.h (find_font_encoding, Qlatin):
3194 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
3195 (Vtool_bar_mode, set_frame_menubar):
3196 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
3197 * xterm.h (Qx_gtk_map_stock):
3198 * keymap.h (meta_prefix_char): Add declarations.
3199
3200 * term.c: Remove dead code.
3201
3202 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
3203 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
3204 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
3205 which is what was there before BSD_PGRPS was removed.
3206
3207 2010-08-05 Eli Zaretskii <eliz@gnu.org>
3208
3209 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
3210
3211 * unexcoff.c: Renamed from unexec.c.
3212
3213 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
3214
3215 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
3216
3217 2010-08-03 Johan Bockgård <bojohan@gnu.org>
3218
3219 * data.c (Flocal_variable_p): Handle variable aliases correctly.
3220 (Bug#6744)
3221
3222 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
3223
3224 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
3225 to TRUE if depth of screen is < 16.
3226
3227 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
3228 USE_GTK_TOOLTIP.
3229 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
3230 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
3231 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
3232 USE_GTK_TOOLTIP.
3233 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
3234
3235 * xterm.h (USE_GTK_TOOLTIP): New define.
3236 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
3237
3238 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
3239 to Control-D (Bug#6771).
3240
3241 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
3242
3243 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
3244 Wording by Drew Adams <drew.adams@oracle.com>.
3245
3246 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
3247
3248 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
3249 ttip_lbl.
3250
3251 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
3252 calling gtk_widget_queue_draw.
3253 (x_free_frame_resources): Call xg_free_frame_widgets.
3254
3255 * xfns.c (x_gtk_use_system_tooltips): New variable.
3256 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
3257 new gtkutil tooltip functions to show the tooltip.
3258 (Fx_hide_tip): Call xg_hide_tooltip.
3259 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
3260
3261 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
3262 (xg_show_tooltip, xg_hide_tooltip): Declare.
3263
3264 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
3265 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
3266 New functions.
3267 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
3268 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
3269 Remove code that is commented out.
3270
3271 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
3272
3273 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
3274
3275 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
3276
3277 * xselect.c (x_own_selection): Use list4.
3278
3279 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3280
3281 * buffer.c (Qwindow): Do not define, already defined in data.c.
3282 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
3283
3284 2010-07-29 Chad Brown <yandros@mit.edu>
3285
3286 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
3287 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
3288 * config.in: Undef HAVE_DIRENT_H.
3289 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
3290 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
3291
3292 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3293
3294 Rename s/usg5-4.h -> s/usg5-4-common.h.
3295 * s/usg5-4.h: Rename file to ...
3296 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
3297 * s/unixware.h:
3298 * s/sol2-6.h:
3299 * s/irix6-5.h: Update includes accordingly.
3300
3301 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
3302
3303 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
3304
3305 * xterm.h (struct x_output): Add toolbar_top_height,
3306 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
3307 Remove toolbar_height.
3308 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
3309 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
3310 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
3311 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
3312
3313 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3314
3315 * xfns.c (x_set_tool_bar_position): New function.
3316 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
3317 (x_frame_parm_handlers): Add x_set_tool_bar_position.
3318 (syms_of_xfns): If USE_GTK, provide move-toolbar.
3319
3320 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
3321 and FRAME_TOOLBAR_LEFT_WIDTH.
3322
3323 * gtkutil.h (xg_change_toolbar_position): Declare.
3324
3325 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
3326 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3327 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
3328 (xg_create_frame_widgets): Create a hobox for placing widgets
3329 vertically. Use gtk_box_pack_start.
3330 (xg_height_or_width_changed): Renamed from xg_height_changed.
3331 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
3332 (xg_update_frame_menubar, free_frame_menubar): Change to
3333 xg_height_or_width_changed.
3334 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
3335 size correctly. Remove hardcoded 4, instead use handlebox size -
3336 toolbar size.
3337 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
3338 size correctly. Use handlebox size + toolbar size as additional size.
3339 (xg_pack_tool_bar): POS is a new parameter.
3340 Set orientation of tool bar based on pos.
3341 Only make handlebox_widget if NULL.
3342 Check if tool bar goes to vbox or hbox depending on pos.
3343 (xg_update_tool_bar_sizes): New function.
3344 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
3345 height, call xg_update_tool_bar_sizes instead.
3346 (free_frame_tool_bar): Remove from hbox or vbox depending on
3347 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
3348 (xg_change_toolbar_position): New function.
3349
3350 * frame.h (struct frame): Add tool_bar_position.
3351 (Qbottom): Declare.
3352
3353 * frame.c (Qtool_bar_position): New variable.
3354 (make_frame): Set tool_bar_position to Qtop.
3355 (frame_parms): Add tool-bar-position.
3356 (x_report_frame_params): Store tool_bar_position.
3357 (x_set_fringe_width): Reset wm size hint after fringe changes.
3358
3359 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3360
3361 Make lisp_time_argument declaration work on all systems.
3362 * lisp.h (lisp_time_argument): Move declaration ...
3363 * systime.h (lisp_time_argument): ... here
3364 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
3365
3366 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
3367
3368 * vm-limit.c (POINTER): Add typedef for it.
3369 (start_of_data): Change return type from POINTER to char *.
3370
3371 * frame.h (Qtty_color_mode): Move declaration out of ifdef
3372 HAVE_WINDOW_SYSTEM.
3373
3374 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3375
3376 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
3377 Remove reference to __osf__, unused.
3378
3379 * mem-limits.h: Remove duplicated includes.
3380 (NULL): Remove definition, unused.
3381 (POINTER): Remove definition.
3382 (start_of_data): Use char* in prototype, as the function
3383 definition does.
3384
3385 Remove extern declarations from .c files, and them to .h files.
3386 * keyboard.h (Qhelp_echo, waiting_for_input)
3387 (input_available_clear_time, ignore_mouse_drag_p)
3388 (Vdouble_click_time, real_this_command, Vthis_original_command):
3389 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
3390 (Voverriding_local_map_menu_flag):
3391 * lisp.h (Qinteractive_form, use_file_dialog)
3392 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
3393 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
3394 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3395 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
3396 (Qfunction, debug_on_next_call, Qfield)
3397 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
3398 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
3399 (Qfile_directory_p, Qinsert_file_contents)
3400 (Qcompletion_ignore_case, Qcompletion_ignore_case)
3401 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
3402 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
3403 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
3404 (Qminibuffer_prompt)
3405 (Vtemporary_file_directory,char_ins_del_vector, Qface):
3406 * xterm.h (gray_bitmap_width, gray_bitmap_height)
3407 (gray_bitmap_bits, xic_create_fontsetname):
3408 * coding.h (Vtranslation_table_for_input): Add extern declarations.
3409
3410 * xsmfns.c (Vuser_login_name):
3411 * xrdb.c (Vdouble_click_time):
3412 * xfaces.c (xic_create_fontsetname):
3413 * w32select.c (waiting_for_input):
3414 * print.c (minibuffer_auto_raise):
3415 * msdos.c (Qhelp_echo):
3416 * macros.c (real_this_command):
3417 * keymap.c (Voverriding_local_map):
3418 * xterm.c (poll_for_input_1, gray_bitmap_width)
3419 (gray_bitmap_height, gray_bitmap_bits;
3420 * xmenu.c ( Voverriding_local_map)
3421 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
3422 (use_file_dialog, Xt_app_con):
3423 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
3424 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
3425 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
3426 (Qtool_bar_lines, ignore_mouse_drag_p):
3427 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
3428 (Qrear_nonsticky, nconc2):
3429 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
3430 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
3431 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
3432 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
3433 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
3434 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
3435 (gc_in_progress):
3436 * doc.c (Voverriding_local_map, Qremap):
3437 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
3438 (Vcompletion_regexp_list):
3439 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
3440 (Qcompletion_ignore_case):
3441 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
3442 (Vhistory_length, Vthis_original_command, real_this_command)
3443 (Qface, Qminibuffer_prompt, history_delete_duplicates):
3444 * image.c (Qrisky_local_variable):
3445 * fontset.c (QCname):
3446 * fns.c (minibuffer_auto_raise, QCname):
3447 * dispnew.c (char_ins_del_cost):
3448 * composite.c (font_fill_lglyph_metrics):
3449 * cmds.c (Qface, Vtranslation_table_for_input):
3450 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
3451 * ccl.c (charset_unicode):
3452 * callproc.c (Vtemporary_file_directory):
3453 * buffer.c (emacs_strerror): Remove extern declarations.
3454
3455 * data.c (Qwindow): Make non-static, used from other files too.
3456 * frame.c (validate_x_resource_name): Remove shadow definition for i.
3457
3458 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
3459 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
3460 * s/usg5-4.h (COFF):
3461 * s/template.h:
3462 * s/msdos.h (COFF, NO_REMAP):
3463 * s/ms-w32.h (NO_REMAP):
3464 * s/hpux10-20.h (NO_REMAP):
3465 * m/sparc.h (SEGMENT_MASK):
3466 * m/m68k.h (NO_REMAP):
3467 * m/intel386.h (SEGMENT_MASK):
3468 * m/arm.h (NO_REMAP):
3469 * m/alpha.h (COFF):
3470 * m/template.h: Remove references to unused defines.
3471
3472 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
3473
3474 * xsettings.c (Ftool_bar_get_system_style): Also check for
3475 Qtext_image_horiz.
3476
3477 * xdisp.c (Qtext_image_horiz): Define.
3478 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
3479 to documentation of tool-bar-style.
3480
3481 * lisp.h (Qtext_image_horiz): Declare.
3482
3483 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
3484 style text_image_horiz.
3485
3486 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3487
3488 * emacs.c (Fkill_emacs): Remove return statement.
3489
3490 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
3491 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
3492 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
3493 Remove local extern declarations.
3494
3495 * xmenu.c: Do not included lwlib.h, not needed.
3496
3497 * m/iris4d.h (XUINT, XSET): Remove, not needed.
3498
3499 * process.c: Move definitions earlier to minimize #ifdefs.
3500
3501 * xterm.h (x_get_customization_string, x_load_resources)
3502 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
3503 (x_check_errors, x_property_data_to_lisp, defined_color)
3504 (xic_set_xfontset, x_defined_color): Use const.
3505
3506 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
3507 (x_text_icon, x_check_errors, x_connection_closed): Use const.
3508
3509 * xselect.c (selection_data_to_lisp_data)
3510 (x_property_data_to_lisp):
3511 * xrdb.c (x_get_string_resource, file_p)
3512 (x_get_customization_string, magic_file_p, search_magic_path)
3513 (get_system_app, get_user_app, x_load_resources, x_get_resource)
3514 (x_get_string_resource): Use const.
3515
3516 * xfns.c: Include xlwmenu.h when USE_LUCID.
3517 (x_defined_color, xic_set_xfontset): Use const.
3518 (Fx_hide_tip): Remove local extern declaration.
3519
3520 * xfaces.c (Qmouse_face): Remove declaration.
3521 (face_color_gray_p, tty_defined_color, defined_color)
3522 (face_color_gray_p, face_color_supported_p): Add const.
3523
3524 * xdisp.c (do_mouse_tracking): Remove declaration.
3525 (add_to_log): Use const.
3526
3527 * minibuf.c (Qmouse_face): Remove declaration.
3528
3529 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
3530
3531 * keyboard.h (do_mouse_tracking): Add declaration.
3532
3533 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
3534 (QCdata, QCtype, Qcenter): Remove declarations.
3535
3536 * frame.c (x_get_resource_string, x_get_string_resource)
3537 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3538 (x_default_parameter): Use const.
3539
3540 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
3541 (QCheight, QCsize, QCname): Remove declarations.
3542
3543 * emacs.c (main): Remove local extern declaration.
3544
3545 * editfns.c (region_limit, syms_of_editfns): Remove local extern
3546 declarations.
3547
3548 * dispnew.c: Remove duplicate #include <unistd.h>.
3549 (update_window, update_frame_1, init_display): Remove local extern
3550 declarations.
3551
3552 * dispextern.h (add_to_log): Remove declaration.
3553 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3554 (x_frame_get_and_record_arg, x_default_parameter): Add const.
3555
3556 * dired.c (scmp): Add const.
3557 (directory_files_internal): Remove local extern declaration.
3558
3559 * data.c (Finteractive_form): Use const.
3560
3561 * composite.c (syms_of_composite): Remove local extern declarations.
3562
3563 * charset.c (add_to_log): Remove declaration.
3564
3565 * character.c (strwidth, parse_str_to_multibyte): Add const.
3566
3567 * character.h (strwidth, parse_str_to_multibyte): Likewise.
3568
3569 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
3570
3571 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
3572 (Lisp_Subr): Make doc and intspec constant.
3573 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
3574 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
3575 (QCheight, QCsize, QCname, QCwidth, QCforeground)
3576 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
3577 (display_arg): Add declarations.
3578
3579 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
3580
3581 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
3582
3583 * window.c (Fwindow_height): Doc fix (bug#6518).
3584
3585 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
3586
3587 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
3588
3589 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
3590
3591 * keyboard.c (Ftop_level, Fexit_recursive_edit)
3592 (Fabort_recursive_edit): Remove return statements in NO_RETURN
3593 functions.
3594
3595 * frame.h (Qtty_color_mode): Add declaration.
3596
3597 * lisp.h (Ftop_level, Fexit_recursive_edit)
3598 (Fabort_recursive_edit): Mark as NO_RETURN.
3599
3600 2010-07-26 Kenichi Handa <handa@m17n.org>
3601
3602 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
3603 number of glyphs gets smaller than the original length. (Bug#6621)
3604
3605 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
3606
3607 * lread.c (unreadpure, mapatoms_1): Make static.
3608
3609 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
3610
3611 * terminfo.c (tparam): Fix prototype of tparm.
3612
3613 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
3614
3615 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
3616 find start of text segment.
3617 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
3618 is defined.
3619
3620 * callproc.c (set_initial_environment): Avoid unbalanced braces.
3621
3622 2010-07-25 Ken Brown <kbrown@cornell.edu>
3623
3624 * vm-limit.c (check_memory_limits): Fix previous change;
3625 accidentally reverted an earlier change.
3626
3627 2010-07-25 Ken Brown <kbrown@cornell.edu>
3628
3629 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
3630 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
3631
3632 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
3633
3634 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
3635 * dired.c (opendir, readdir): Fix prototypes.
3636 * editfns.c (w32_get_internal_run_time): Fix prototypes.
3637 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
3638 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
3639 (telldir): Remove declaration.
3640 * ralloc.c (real_morecore, __morecore): Fix prototypes.
3641 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
3642 * syssignal.h (strsignal): Fix prototype.
3643 * term.c (tparam): Fix prototype.
3644 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
3645 (term_get_fkeys): Set inside "#ifndef DOS_NT".
3646 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
3647 and __morecore.
3648 * w32gui.h (XParseGeometry): Fix prototype.
3649 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
3650 * w32term.c (my_set_focus): Declare inside #if 0.
3651 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
3652 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
3653 (drain_message_queue, get_next_msg, post_msg, parse_button)
3654 (ClipboardSequence_Proc): Fix prototypes.
3655 (wait_for_sync): Remove declaration.
3656
3657 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
3658
3659 * w32fns.c (w32_to_x_color): Remove, unused.
3660
3661 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3662
3663 * lisp.h: Remove leftover P_.
3664
3665 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3666
3667 * ecrt0.c, unexalpha.c: Remove files, unused.
3668
3669 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3670
3671 * cmds.c (internal_self_insert): Make static.
3672 * lisp.h (internal_self_insert): Remove declaration.
3673
3674 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
3675
3676 * alloc.c (free_float):
3677 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
3678 * frame.c (delete_frame_handler):
3679 * ralloc.c (reorder_bloc):
3680 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
3681 Remove unused static functions.
3682
3683 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
3684 it is called only from NS code.
3685
3686 * w32term.c (my_set_focus): #ifdef away; it is called only from
3687 "#ifdef 0" code.
3688
3689 * w32fns.c (x_edge_detection):
3690 * xfaces.c (may_use_scalable_font_p):
3691 Remove obsolete static declarations.
3692
3693 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
3694
3695 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
3696 (emacs_blocked_realloc, uninterrupt_malloc):
3697 * fringe.c (w32_reset_fringes):
3698 * image.c (convert_mono_to_color_image, lookup_rgb_color)
3699 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
3700 * sound.c (be2hs, do_play_sound):
3701 * vm-limit.c (get_lim_data, ret_lim_data):
3702 * w32term.c (x_free_frame_resources):
3703 * xfaces.c (x_create_gc, x_free_gc):
3704 Convert definitions to standard C.
3705
3706 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
3707
3708 * eval.c (Feval, Ffuncall): Use the new names.
3709
3710 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
3711 (DEFUN): Add braces around the union initialisation and use ## to
3712 specify the right union alternative and avoid a cast.
3713
3714 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
3715
3716 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
3717
3718 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
3719
3720 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
3721
3722 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
3723
3724 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
3725 is related to the menu bar (Bug#6499).
3726 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
3727
3728 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3729
3730 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
3731
3732 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
3733
3734 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
3735 i.e. don't put back ButtonRelease (Bug#6608).
3736
3737 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
3738 instead of Window. Call xg_event_is_for_menubar when
3739 USE_GTK (Bug#6499).
3740
3741 * gtkutil.h (xg_event_is_for_menubar): Declare.
3742
3743 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
3744
3745 2010-07-16 Eli Zaretskii <eliz@gnu.org>
3746
3747 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
3748 when it's the same as the old foreground. (Bug#6609)
3749
3750 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3751
3752 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
3753 widget is non-null (Bug#6645).
3754
3755 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
3756
3757 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
3758 Convert old-style definition.
3759
3760 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
3761 timestamp argument.
3762
3763 2010-07-15 Eli Zaretskii <eliz@gnu.org>
3764
3765 * fringe.c (update_window_fringes): Restore mistakenly reverted
3766 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
3767
3768 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
3769
3770 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
3771 (SET_SAVED_KEY_EVENT): Remove (not used).
3772 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
3773 remove size parameter.
3774 (handle_one_xevent): Check popup_activated () for menu for Xt also.
3775 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
3776 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
3777 ButtonRelease.
3778 (x_set_window_size_1): scroll_bar_actual_width is always
3779 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
3780
3781 * xdisp.c (pending_menu_activation): Remove extern declaration.
3782 (prepare_menu_bars): Remove setting of pending_menu_activation.
3783
3784 * xmenu.c (pending_menu_activation): Remove.
3785 (x_activate_menubar): Set popup_activated_flag for Xt also.
3786 Remove setting of pending_menu_activation.
3787 (set_frame_menubar): Remove check of pending_menu_activation.
3788 Declare menubar_size before code. Correct spelling in comment.
3789
3790 2010-07-14 Kenichi Handa <handa@m17n.org>
3791
3792 * font.c (font_open_entity): Cancel previous change.
3793 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
3794
3795 2010-07-13 Eli Zaretskii <eliz@gnu.org>
3796
3797 Remove subprocesses #ifdefs.
3798 * process.c <inhibit_sentinels>: Move to the common part.
3799 (Fwaiting_for_user_input_p): Move to the common part; return nil
3800 if async subprocesses aren't supported.
3801 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
3802 MS-DOS. Remove "#ifdef subprocesses".
3803 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
3804 (gettimeofday): Remove "#ifdef subprocesses".
3805 (wait_without_blocking): Remove function.
3806 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
3807 Remove "#ifdef subprocesses".
3808 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
3809 compiled on MS-DOS.
3810 * callproc.c (Fcall_process) [!MSDOS]: Don't call
3811 wait_for_termination on MS-DOS.
3812 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
3813 initialization of inhibit_sentinels.
3814 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
3815 subprocesses" conditional.
3816 * callproc.c (Fcall_process) [!subprocesses]: Don't call
3817 wait_for_termination, since `buffer' cannot be an integer when
3818 async subprocesses are not supported
3819 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
3820 for ifdefing away the call to Fprocess_status.
3821
3822 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
3823 away the entire body of the function.
3824
3825 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3826
3827 Remove subprocesses #ifdefs from term.c.
3828 * process.c (add_keyboard_wait_descriptor)
3829 (delete_keyboard_wait_descriptor): Move to common section, do
3830 nothing when subprocesses is not defined.
3831 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
3832 Remove subprocesses #ifdefs.
3833
3834 Convert maybe_fatal to standard C.
3835 * lisp.h (verror): Declare.
3836 * eval.c (verror): New function containing the code from ...
3837 (error): ... this. Call verror.
3838 * term.c (vfatal): New function containing the code from ...
3839 (fatal): ... this. Call vfatal.
3840 (maybe_fatal): Convert to standard C, use variable number of
3841 arguments. Declare as non-return.
3842 (init_tty): Fix maybe_fatal call.
3843
3844 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3845
3846 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
3847 (_scroll_bar_note_movement): Convert definitions to standard C.
3848 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
3849 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
3850
3851 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3852
3853 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
3854 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
3855 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
3856 (xaw_jump_callback, xaw_scroll_callback)
3857 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
3858 (x_wm_set_size_hint, x_activate_timeout_atimer):
3859 Convert definitions to standard C.
3860 * xmenu.c (menubar_id_to_frame, popup_get_selection)
3861 (popup_activate_callback, popup_deactivate_callback)
3862 (menu_highlight_callback, menubar_selection_callback)
3863 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
3864 (free_frame_menubar, popup_selection_callback, as)
3865 (create_and_show_popup_menu, dialog_selection_callback)
3866 (create_and_show_dialog):
3867 * xfns.c (hack_wm_protocols, x_window):
3868 * xfaces.c (x_update_menu_appearance):
3869 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
3870 (char_to_pixel_size, round_size_to_char, get_wm_shell)
3871 (set_frame_size, update_wm_hints, setup_frame_gcs)
3872 (update_various_frame_slots, update_from_various_frame_slots)
3873 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
3874 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
3875 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
3876
3877 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3878
3879 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
3880
3881 2010-07-12 Eli Zaretskii <eliz@gnu.org>
3882
3883 * process.c (setup_process_coding_systems): Move to the part
3884 shared by non-subprocesses systems, and make its body empty when
3885 subprocesses is not defined.
3886 (close_process_descs): Move to the part shared by non-subprocesses
3887 systems.
3888 (wait_reading_process_output) [!subprocesses]: Convert arg list to
3889 ANSI C.
3890
3891 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3892
3893 * editfns.c (transpose_markers): Convert old-style definition.
3894 * emacs.c (abort, shut_down_emacs, fixup_locale)
3895 (synchronize_system_time_locale)
3896 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
3897 * floatfns.c (extract_float, matherr, init_floatfns)
3898 (syms_of_floatfns): Likewise.
3899 * fns.c (make_hash_table): Likewise.
3900 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
3901 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
3902 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
3903 (ftfont_variation_glyphs): Likewise.
3904 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
3905 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
3906 * lread.c (read_filtered_event): Likewise.
3907 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
3908 * process.c (wait_reading_process_output): Likewise.
3909 * scroll.c (do_line_insertion_deletion_costs): Likewise.
3910 * search.c (search_buffer, boyer_moore): Likewise.
3911 * syntax.c (scan_sexps_forward): Likewise.
3912 * xdisp.c (try_scrolling): Likewise.
3913 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3914 (face_at_string_position): Likewise.
3915 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
3916 * xselect.c (x_get_window_property, receive_incremental_selection)
3917 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
3918 Likewise.
3919 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
3920
3921 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3922
3923 * callproc.c (child_setup): Remove subprocesses conditional.
3924 Remove code dealing with SET_EMACS_PRIORITY, unused.
3925
3926 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
3927 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
3928
3929 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
3930 (__do_global_dtors, __main): Use void in definition.
3931 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
3932 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
3933 the only users from ...
3934 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
3935 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
3936 (HAVE_VOLATILE): Remove, unused.
3937
3938 Convert more function definitions to standard C.
3939 * xdisp.c (window_box_edges, handle_single_display_spec)
3940 (display_string): Convert definition to standard C.
3941 * scroll.c (do_direct_scrolling, scrolling_1):
3942 * dispnew.c (allocate_matrices_for_frame_redisplay)
3943 (mirrored_line_dance):
3944 * coding.c (code_convert_string):
3945 * charset.c (map_charset_chars):
3946 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
3947 (Fregister_ccl_program, Fregister_code_conversion_map):
3948 * keyboard.c (kbd_buffer_nr_stored): Likewise.
3949 (head_table): Make static and const.
3950
3951 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3952
3953 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
3954 (PROFILING_LDFLAGS): Set from substitution.
3955 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
3956 CFLAGS last.
3957
3958 2010-07-12 Kenichi Handa <handa@m17n.org>
3959
3960 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
3961 (shortlisp): Likewise.
3962
3963 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3964
3965 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3966 of FONT_ENTITY_INDEX.
3967 (Ffont_get): If KEY is :otf and the font-object doesn't have the
3968 property, get the property value dynamically.
3969 (Ffont_put): Accept font-entity and font-object too.
3970 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
3971 return value changed.
3972 (syms_of_font): Adjust for the above change.
3973
3974 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3975
3976 * blockinput.h: Remove obsolete comment.
3977
3978 * lisp.h: Include <stddef.h>.
3979 (OFFSETOF): Don't define.
3980 (VECSIZE): Use offsetof instead of OFFSETOF.
3981 (PSEUDOVECSIZE): Likewise.
3982 * process.c (conv_sockaddr_to_lisp): Likewise.
3983 * alloc.c: Don't include <stddef.h>.
3984 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3985
3986 * process.c: Remove obsolete comment.
3987
3988 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
3989
3990 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3991
3992 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3993
3994 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3995 index, rindex.
3996 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3997 * editfns.c (Fuser_full_name, Fformat): Likewise.
3998 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3999 * fileio.c (Ffile_symlink_p): Likewise.
4000 * filelock.c (current_lock_owner): Likewise.
4001 * font.c (font_parse_name, font_parse_family_registry): Likewise.
4002 * fontset.c (fontset_pattern_regexp): Likewise.
4003 * lread.c (read1): Likewise.
4004 * sysdep.c (init_system_name): Likewise.
4005 * xfns.c (select_visual): Likewise.
4006 * s/hpux10-20.h (index, rindex): Don't define.
4007 * s/ms-w32.h (index): Likewise.
4008 * s/usg5-4.h: Likewise.
4009
4010 * callproc.c (relocate_fd): Use F_DUPFD if defined.
4011
4012 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
4013 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
4014 (egetenv): Likewise.
4015 * doprnt.c (doprnt): Likewise.
4016 * editfns.c (set_time_zone_rule, format2): Likewise.
4017 * emacs.c (decode_env_path): Likewise.
4018 * eval.c (signal_error, error): Likewise.
4019 * insdel.c (replace_range_2): Likewise.
4020 * keyboard.c (cmd_error_internal): Likewise.
4021 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
4022 * print.c (write_string, write_string_1, print_error_message):
4023 Likewise.
4024 * vm-limit.c (warn_function, memory_warnings): Likewise.
4025 * xdisp.c (message1, message1_nolog, message_with_string)
4026 (vmessage, message, message_nolog): Likewise.
4027 * emacs.c: Remove duplicate declaration.
4028 * keyboard.h: Likewise.
4029 * lisp.h: Update prototypes.
4030
4031 * eval.c: Fix indentation problem.
4032
4033 * keyboard.c: Include "process.h"
4034
4035 * eval.c: Remove obsolete noinline declaration.
4036 * fns.c: Likewise.
4037
4038 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
4039
4040 * doprnt.c (doprnt): Take a va_list argument instead of count and
4041 pointer.
4042 * eval.c (error): Change to a standard-C variadic function.
4043 * xdisp.c (vmessage): Renamed from message, made static, and
4044 changed to take a va_list argument.
4045 (message): New variadic wrapper.
4046 (message_nolog): Now a variadic function, calling vmessage.
4047 * lisp.h: Include stdarg.h for va_list.
4048 (doprnt, error, message, message_nolog): Decls updated.
4049
4050 2010-07-11 Eli Zaretskii <eliz@gnu.org>
4051
4052 * process.c (syms_of_process) <delete-exited-processes>: Define
4053 even if !subprocesses.
4054 (delete_exited_processes): Ditto.
4055
4056 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
4057 (delete_exited_processes): Don't define.
4058
4059 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
4060
4061 * frame.c (make_frame): Initialize menu_bar_lines and
4062 tool_bar_lines members.
4063 (make_initial_frame, make_terminal_frame):
4064 Initialize menu_bar_lines using value of menu-bar-mode.
4065
4066 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
4067
4068 2010-07-10 Eli Zaretskii <eliz@gnu.org>
4069
4070 * process.c: Reshuffle #include's. Condition some of the global
4071 and static variables on `subprocesses'.
4072 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
4073 Leave only one implementation.
4074 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
4075 (kill_buffer_processes, Flist_system_processes)
4076 (Fprocess_attributes, init_process, syms_of_process): Unify the
4077 implementations for with subprocesses and without them.
4078
4079 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
4080
4081 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
4082 correct size for Motif.
4083 (free_frame_menubar): Call x_set_window_size to update frame size.
4084
4085 * xfns.c (x_window): Set borderWidth to 0 for pane and
4086 EmacsFrame. Frame size calculation is wrong otherwise.
4087
4088 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
4089
4090 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
4091 allows to suppress errors when polling in Emacs' main loop.
4092 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
4093 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4094 (Fdbus_method_error_internal, Fdbus_send_signal)
4095 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
4096 (Fdbus_register_method): Use it. (Bug#6579)
4097
4098 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
4099
4100 * alloc.c: Convert DEFUNs to standard C.
4101 * buffer.c:
4102 * bytecode.c:
4103 * callint.c:
4104 * callproc.c:
4105 * casefiddle.c:
4106 * casetab.c:
4107 * category.c:
4108 * character.c:
4109 * charset.c:
4110 * chartab.c:
4111 * cmds.c:
4112 * coding.c:
4113 * composite.c:
4114 * data.c:
4115 * dbusbind.c:
4116 * dired.c:
4117 * dispnew.c:
4118 * doc.c:
4119 * dosfns.c:
4120 * editfns.c:
4121 * emacs.c:
4122 * eval.c:
4123 * fileio.c:
4124 * filelock.c:
4125 * floatfns.c:
4126 * fns.c:
4127 * font.c:
4128 * fontset.c:
4129 * frame.c:
4130 * fringe.c:
4131 * image.c:
4132 * indent.c:
4133 * insdel.c:
4134 * keyboard.c:
4135 * keymap.c:
4136 * lread.c:
4137 * macros.c:
4138 * marker.c:
4139 * menu.c:
4140 * minibuf.c:
4141 * msdos.c:
4142 * nsfns.m:
4143 * nsmenu.m:
4144 * nsselect.m:
4145 * print.c:
4146 * process.c:
4147 * search.c:
4148 * sound.c:
4149 * syntax.c:
4150 * term.c:
4151 * terminal.c:
4152 * textprop.c:
4153 * undo.c:
4154 * w16select.c:
4155 * w32console.c:
4156 * w32fns.c:
4157 * w32font.c:
4158 * w32menu.c:
4159 * w32proc.c:
4160 * w32select.c:
4161 * window.c:
4162 * xdisp.c:
4163 * xfaces.c:
4164 * xfns.c:
4165 * xmenu.c:
4166 * xselect.c:
4167 * xsettings.c:
4168 * xsmfns.c: Likewise.
4169
4170 2010-07-08 Eli Zaretskii <eliz@gnu.org>
4171
4172 * process.c (kbd_is_on_hold, hold_keyboard_input)
4173 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
4174
4175 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
4176
4177 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
4178 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
4179 unless USE_LUCID.
4180
4181 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
4182
4183 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
4184 declaration.
4185
4186 Clean up include guards.
4187 * tparam.c: Remove include guards for config.h, string.h and code
4188 that assumes #ifndef emacs.
4189 * termcap.c:
4190 * unexalpha.c:
4191 * sysdep.c:
4192 * filemode.c:
4193 * filelock.c:
4194 * bidi.c: Likewise.
4195
4196 Remove prefix-args.c
4197 * prefix-args.c: Remove file.
4198 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
4199 * Makefile.in (temacs${EXEEXT}): Remove references to
4200 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
4201 (mostlyclean): Remove reference to prefix-args.
4202 (prefix-args): Remove.
4203
4204 Simplify cstart_of_data, start_of_code and related code.
4205 * mem-limits.h: Remove !emacs and _LIBC conditional code.
4206 (start_of_data): Merge into start_of_data function.
4207 * sysdep.c (start_of_text): Remove. Move simplified versions of
4208 it in the only users: unexaix.c and unexec.c.
4209 (read_input_waiting): Remove local declaration of quit_char.
4210 (start, etext): Remove declarations.
4211 (start_of_data): Merge with the version in mem-limits.h and move
4212 to vm-limits.c.
4213 * vm-limit.c (start_of_data): Merged and simplified version of the
4214 code formerly in mem-limits.h and sysdep.c.
4215 * unexec.c (start): New declaration, moved from sysdep.c.
4216 (start_of_text): Simplified version of the code formerly in sysdep.c.
4217 * unexaix.c (start_of_text): Simplified version of the code
4218 formerly in sysdep.c.
4219 * m/alpha.h (HAVE_TEXT_START): Remove.
4220 (TEXT_START): Move ...
4221 * unexalpha.c (TEXT_START): ... here.
4222 * s/hpux10-20.h (TEXT_START): Remove.
4223 * s/darwin.h (TEXT_START):
4224 * m/mips.h (TEXT_START):
4225 * m/macppc.h (HAVE_TEXT_START):
4226 * m/m68k.h (TEXT_START):
4227 * m/iris4d.h (TEXT_START):
4228 * m/intel386.h (TEXT_START):
4229 * m/ibmrs6000.h (TEXT_START):
4230 * m/ia64.h (HAVE_TEXT_START):
4231 * s/msdos.h (TEXT_START): Likewise.
4232
4233 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
4234
4235 * alloc.c (overrun_check_malloc, overrun_check_realloc)
4236 (overrun_check_free, xstrdup, allocate_string)
4237 (allocate_string_data, compact_small_strings, Fmake_string)
4238 (make_unibyte_string, make_multibyte_string)
4239 (make_string_from_bytes, make_specified_string, make_float)
4240 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
4241 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
4242 memcpy, memmove, memset, memcmp.
4243 * atimer.c (start_atimer, set_alarm): Likewise.
4244 * buffer.c (clone_per_buffer_values, report_overlay_modification)
4245 (mmap_realloc, init_buffer_once): Likewise.
4246 * callint.c (Fcall_interactively): Likewise.
4247 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
4248 (getenv_internal_1): Likewise.
4249 * casefiddle.c (casify_object): Likewise.
4250 * ccl.c (ccl_driver): Likewise.
4251 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
4252 * charset.c (load_charset_map_from_file)
4253 (load_charset_map_from_file, load_charset_map_from_vector)
4254 (Fdefine_charset_internal): Likewise.
4255 * cm.c (Wcm_clear): Likewise.
4256 * coding.c (decode_eol, decode_coding_object)
4257 (Fset_coding_system_priority, make_subsidiaries): Likewise.
4258 * data.c (Faset): Likewise.
4259 * dired.c (directory_files_internal, file_name_completion_stat):
4260 Likewise.
4261 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
4262 (clear_glyph_row, copy_row_except_pointers)
4263 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
4264 (save_current_matrix, restore_current_matrix)
4265 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
4266 (mirror_line_dance, scrolling_window): Likewise.
4267 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
4268 Likewise.
4269 * doprnt.c (doprnt): Likewise.
4270 * editfns.c (Fuser_full_name, make_buffer_string_both)
4271 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
4272 * emacs.c (sort_args): Likewise.
4273 * eval.c (Fapply, Ffuncall): Likewise.
4274 * fileio.c (Ffile_name_directory, make_temp_name)
4275 (Fexpand_file_name, search_embedded_absfilename)
4276 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
4277 (auto_save_error): Likewise.
4278 * fns.c (Fstring_equal, Fcopy_sequence, concat)
4279 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
4280 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
4281 (Fmake_hash_table): Likewise.
4282 * fringe.c (Fdefine_fringe_bitmap): Likewise.
4283 * ftfont.c (ftfont_text_extents): Likewise.
4284 * getloadavg.c (getloadavg): Likewise.
4285 * image.c (define_image_type, make_image, make_image_cache)
4286 (x_create_x_image_and_pixmap, xbm_image_p)
4287 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
4288 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
4289 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
4290 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
4291 (tiff_image_p, tiff_read_from_memory, gif_image_p)
4292 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
4293 Likewise.
4294 * indent.c (scan_for_column, compute_motion): Likewise.
4295 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
4296 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
4297 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
4298 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
4299 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
4300 (store_user_signal_events, menu_bar_items, tool_bar_items)
4301 (process_tool_bar_item, append_tool_bar_item)
4302 (read_char_minibuf_menu_prompt, read_key_sequence)
4303 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
4304 Likewise.
4305 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
4306 Likewise.
4307 * lisp.h (STRING_COPYIN): Likewise.
4308 * lread.c (Fload, read1, oblookup): Likewise.
4309 * msdos.c (Frecent_doskeys): Likewise.
4310 * nsfns.m (Fx_create_frame): Likewise.
4311 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
4312 Likewise.
4313 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
4314 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
4315 Likewise.
4316 * nsmenu.m (ns_update_menubar): Likewise.
4317 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
4318 * print.c (print_unwind, printchar, strout, print_string)
4319 (print_error_message): Likewise.
4320 * process.c (conv_lisp_to_sockaddr, set_socket_option)
4321 (Fmake_network_process, Fnetwork_interface_list)
4322 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
4323 (init_process): Likewise.
4324 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
4325 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
4326 Likewise.
4327 * scroll.c (do_scrolling, do_direct_scrolling)
4328 (scrolling_max_lines_saved): Likewise.
4329 * search.c (search_buffer, wordify, Freplace_match): Likewise.
4330 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
4331 * syntax.c (skip_chars, skip_syntaxes): Likewise.
4332 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
4333 (emacs_set_tty): Likewise.
4334 * term.c (encode_terminal_code, calculate_costs)
4335 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
4336 Likewise.
4337 * termcap.c (tgetst1, gobble_line): Likewise.
4338 * termhooks.h (EVENT_INIT): Likewise.
4339 * tparam.c (tparam1): Likewise.
4340 * unexalpha.c (unexec): Likewise.
4341 * unexec.c (write_segment): Likewise.
4342 * unexmacosx.c (unexec_write_zero): Likewise.
4343 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
4344 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
4345 * w32font.c (w32font_list_family, w32font_text_extents)
4346 (w32font_list_internal, w32font_match_internal)
4347 (w32font_open_internal, compute_metrics, Fx_select_font):
4348 Likewise.
4349 * w32menu.c (set_frame_menubar, add_menu_item)
4350 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
4351 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
4352 * w32uniscribe.c (uniscribe_list_family): Likewise.
4353 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
4354 * window.c (make_window, replace_window, set_window_buffer)
4355 (Fsplit_window): Likewise.
4356 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
4357 (add_to_log, message3, x_consider_frame_title)
4358 (append_space_for_newline, extend_face_to_end_of_line)
4359 (decode_mode_spec_coding, init_glyph_string): Likewise.
4360 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
4361 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
4362 (face_attr_equal_p, make_realized_face, make_face_cache)
4363 (free_realized_faces, lookup_named_face, smaller_face)
4364 (face_with_height, lookup_derived_face)
4365 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
4366 (Finternal_set_font_selection_order, realize_default_face)
4367 (compute_char_face, face_at_buffer_position)
4368 (face_for_overlay_string, face_at_string_position, merge_faces):
4369 Likewise.
4370 * xfns.c (xic_create_fontsetname, Fx_create_frame)
4371 (Fx_window_property, x_create_tip_frame)
4372 (Fx_backspace_delete_keys_p): Likewise.
4373 * xfont.c (xfont_list, xfont_match, xfont_list_family)
4374 (xfont_text_extents): Likewise.
4375 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
4376 * xrdb.c (magic_file_p, x_get_resource): Likewise.
4377 * xselect.c (x_queue_event, x_get_window_property)
4378 (receive_incremental_selection): Likewise.
4379 * xsmfns.c (x_session_check_input): Likewise.
4380 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
4381 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
4382 Likewise.
4383 * character.h (BCOPY_SHORT): Removed.
4384 * config.in: Regenerate.
4385 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
4386 * emacs.c (main) [PROFILING]: Don't declare
4387 dump_opcode_frequencies.
4388 * lisp.h (safe_bcopy): Remove declaration.
4389 (memset) [!HAVE_MEMSET]: Declare.
4390 (memcpy) [!HAVE_MEMCPY]: Likewise.
4391 (memmove) [!HAVE_MEMMOVE]: Likewise.
4392 (memcmp) [!HAVE_MEMCMP]: Likewise.
4393 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
4394 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
4395 Don't define.
4396 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
4397 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
4398 (BCOPY_DOWNWARD_SAFE): Don't define.
4399 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
4400 (memcpy) [!HAVE_MEMCPY]: Define.
4401 (memmove) [!HAVE_MEMMOVE]: Define.
4402 (memcmp) [!HAVE_MEMCMP]: Define.
4403
4404 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
4405
4406 * process.c (kbd_is_on_hold): New variable.
4407 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
4408 New functions.
4409 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
4410 select on empty input mask.
4411 (init_process): Initialize kbd_is_on_hold to 0.
4412
4413 * process.h (hold_keyboard_input, unhold_keyboard_input)
4414 (kbd_on_hold_p): Declare.
4415
4416 * keyboard.c (input_available_signal): Declare.
4417 (kbd_buffer_nr_stored): New function.
4418 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
4419 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
4420 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
4421 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
4422 (tty_read_avail_input): If input is on hold, return.
4423 Don't read more that free slots in kbd_buffer (Bug#6571).
4424
4425 2010-07-07 Eli Zaretskii <eliz@gnu.org>
4426
4427 * msdos.h:
4428 * msdos.c:
4429 * dosfns.c:
4430 * w16select.c: Convert function definitions to ANSI C.
4431
4432 * msdos.h (ctrl_break_func, install_ctrl_break_check):
4433 Remove unused prototypes.
4434
4435 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
4436
4437 * coding.c, sysdep.c: Convert some more functions to standard C.
4438
4439 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
4440
4441 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
4442 (encode_coding_object): Use SPECPDL_INDEX.
4443 (syms_of_coding): Use DOS_NT.
4444
4445 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
4446
4447 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
4448
4449 Make the function member of Lisp_Subr use standard C prototypes.
4450 * lisp.h (struct Lisp_Subr): Use a union for the function member.
4451 (DECL_ALIGN): Add a cast for the function.
4452 * eval.c (Feval, Ffuncall): Use the proper type for each type
4453 function call.
4454
4455 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
4456
4457 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
4458 fringe face id, so face-remapping-alist works (Bug#6091).
4459
4460 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
4461
4462 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
4463 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
4464 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
4465
4466 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
4467
4468 * xterm.c (x_get_keysym_name): Change type of parameter to int.
4469 * lisp.h: Declare x_get_keysym_name.
4470 * keyboard.c (modify_event_symbol): Don't declare
4471 x_get_keysym_name here.
4472
4473 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
4474
4475 * ecrt0.c: Revert conversion to standard C.
4476
4477 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
4478
4479 * vm-limit.c (memory_warnings):
4480 * keyboard.c (modify_event_symbol):
4481 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
4482 (round2, emacs_rint):
4483 * process.c (send_process, old_sigpipe): Convert function
4484 definitions and declarations to standard C.
4485
4486 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
4487
4488 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
4489 * xdisp.c: Convert function definitions to standard C.
4490
4491 * cm.c (cmputc): Arg C is now int, not char.
4492 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
4493
4494 2010-07-05 James Cloos <cloos@jhcloos.com>
4495
4496 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
4497
4498 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
4499 _NET_WM_ICON_NAME atoms.
4500
4501 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
4502 and _NET_WM_ICON_NAME properties, too, matching what is
4503 done in the Gtk+ case.
4504
4505 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
4506
4507 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
4508
4509 * xsmfns.c (SSDATA): New macro.
4510 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
4511 passed to strlen/strcpy/strcat.
4512 (create_client_leader_window): Surround with #ifndef USE_GTK.
4513 Cast 7:th arg to XChangeProperty to (unsigned char *).
4514
4515 * xsettings.c (something_changedCB, parse_settings)
4516 (apply_xft_settings): Reformat prototype.
4517 (something_changedCB, init_gconf): Remove unused variable i.
4518 (read_settings): Remove unused variable long_len.
4519
4520 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
4521 (xg_get_image_for_pixmap, create_dialog)
4522 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
4523 (menuitem_highlight_callback, make_menu_item)
4524 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
4525 (xg_create_scroll_bar, xg_update_scrollbar_pos)
4526 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
4527 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
4528 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
4529 (xg_tool_bar_item_expose_callback): Reformat prototype.
4530 (xg_update_menubar): GList *group => GSList *group.
4531 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
4532 before use.
4533 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
4534 to GTK_IMAGE (wimage).
4535
4536 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
4537
4538 * atimer.c: Use "" instead of <> for local includes for
4539 consistency with the rest of the code.
4540
4541 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
4542 * xrdb.c (get_system_name):
4543 * window.c (shrink_windows):
4544 * syntax.c (forw_comment):
4545 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
4546 (ins_del_costs):
4547 * mem-limits.h (start_of_data):
4548 * lread.c (readevalloop):
4549 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
4550 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
4551 * frame.c (x_get_focus_frame):
4552 * floatfns.c (fmod_float):
4553 * fileio.c (choose_write_coding_system):
4554 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
4555 (malloc_initialize_hook, sort_args, synchronize_locale):
4556 * doprnt.c (doprnt):
4557 * dired.c (compile_pattern):
4558 * data.c (fmod_float):
4559 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
4560 (map_char_table_for_charset):
4561 * charset.c (define_charset_internal):
4562 * alloc.c (Fgarbage_collect): Convert declarations or definitions
4563 to standard C.
4564
4565 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
4566 Stefan Monnier <monnier@iro.umontreal.ca>
4567
4568 * lread.c (read1): Fix up last change to not mess up `c'.
4569
4570 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
4571
4572 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
4573
4574 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
4575
4576 Fix prototypes.
4577
4578 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
4579 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
4580 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
4581 arg, as required by internal_condition_case_1.
4582 * print.c (strout): Use const char* for arg PTR.
4583 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
4584 (analyse_first): Fix "const const".
4585 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
4586 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
4587 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
4588
4589 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
4590
4591 * alloc.c: Convert function definitions to standard C.
4592 * atimer.c:
4593 * bidi.c:
4594 * bytecode.c:
4595 * callint.c:
4596 * callproc.c:
4597 * casefiddle.c:
4598 * casetab.c:
4599 * category.c:
4600 * ccl.c:
4601 * character.c:
4602 * charset.c:
4603 * chartab.c:
4604 * cmds.c:
4605 * coding.c:
4606 * composite.c:
4607 * data.c:
4608 * dbusbind.c:
4609 * dired.c:
4610 * dispnew.c:
4611 * doc.c:
4612 * doprnt.c:
4613 * ecrt0.c:
4614 * editfns.c:
4615 * fileio.c:
4616 * filelock.c:
4617 * filemode.c:
4618 * fns.c:
4619 * font.c:
4620 * fontset.c:
4621 * frame.c:
4622 * fringe.c:
4623 * ftfont.c:
4624 * ftxfont.c:
4625 * gtkutil.c:
4626 * indent.c:
4627 * insdel.c:
4628 * intervals.c:
4629 * keymap.c:
4630 * lread.c:
4631 * macros.c:
4632 * marker.c:
4633 * md5.c:
4634 * menu.c:
4635 * minibuf.c:
4636 * prefix-args.c:
4637 * print.c:
4638 * ralloc.c:
4639 * regex.c:
4640 * region-cache.c:
4641 * scroll.c:
4642 * search.c:
4643 * sound.c:
4644 * strftime.c:
4645 * syntax.c:
4646 * sysdep.c:
4647 * termcap.c:
4648 * terminal.c:
4649 * terminfo.c:
4650 * textprop.c:
4651 * tparam.c:
4652 * undo.c:
4653 * unexelf.c:
4654 * window.c:
4655 * xfaces.c:
4656 * xfns.c:
4657 * xfont.c:
4658 * xftfont.c:
4659 * xgselect.c:
4660 * xmenu.c:
4661 * xrdb.c:
4662 * xselect.c:
4663 * xsettings.c:
4664 * xsmfns.c:
4665 * xterm.c: Likewise.
4666
4667 2010-07-03 Eli Zaretskii <eliz@gnu.org>
4668
4669 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
4670 frames other than the initial one. Fix reversal of colors when
4671 `reverse' is specified in the frame parameters.
4672 Call update_face_from_frame_parameter instead of
4673 internal-set-lisp-face-attribute. Initialize screen colors from
4674 initial_screen_colors[] when f->default_face_done_p is zero,
4675 instead of depending on being called with default-frame-alist as
4676 the alist argument.
4677
4678 * xfaces.c (update_face_from_frame_parameter): Move out of
4679 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
4680 with HAVE_WINDOW_SYSTEM.
4681
4682 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
4683 to menu-bar-mode, if not set in the frame parameters or in
4684 default-frame-alist.
4685
4686 * w32console.c (sys_tputs): Adjust argument list to prototype in
4687 term.c.
4688
4689 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
4690
4691 * lisp.h (memory_warnings): Fix prototype.
4692
4693 * cm.h (evalcost): Fix prototype.
4694
4695 * cm.c (evalcost): Fix arg type.
4696
4697 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4698
4699 * term.c (term_clear_mouse_face, Fidentity):
4700 * syssignal.h (signal_handler_t):
4701 * lisp.h (memory_warnings):
4702 * coding.h (preferred_coding_system):
4703 * cm.h (evalcost):
4704 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
4705
4706 2010-07-02 Eli Zaretskii <eliz@gnu.org>
4707
4708 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
4709 from prototypes.
4710
4711 * msdos.h (load_pixmap): Don't define away.
4712
4713 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
4714
4715 * lisp.h:
4716 * atimer.h: Remove define for P_.
4717
4718 * alloc.c: Remove __P and P_ from .c and .m files.
4719 * atimer.c:
4720 * buffer.c:
4721 * callint.c:
4722 * category.c:
4723 * charset.c:
4724 * chartab.c:
4725 * cm.c:
4726 * coding.c:
4727 * composite.c:
4728 * data.c:
4729 * dired.c:
4730 * dispnew.c:
4731 * doc.c:
4732 * editfns.c:
4733 * emacs.c:
4734 * eval.c:
4735 * fileio.c:
4736 * filelock.c:
4737 * fns.c:
4738 * font.c:
4739 * fontset.c:
4740 * frame.c:
4741 * ftfont.c:
4742 * ftxfont.c:
4743 * gmalloc.c:
4744 * gtkutil.c:
4745 * image.c:
4746 * indent.c:
4747 * intervals.c:
4748 * keyboard.c:
4749 * keymap.c:
4750 * lread.c:
4751 * marker.c:
4752 * menu.c:
4753 * minibuf.c:
4754 * print.c:
4755 * process.c:
4756 * scroll.c:
4757 * search.c:
4758 * sound.c:
4759 * strftime.c:
4760 * syntax.c:
4761 * sysdep.c:
4762 * term.c:
4763 * terminal.c:
4764 * textprop.c:
4765 * unexalpha.c:
4766 * w32console.c:
4767 * w32fns.c:
4768 * w32font.c:
4769 * w32menu.c:
4770 * w32term.c:
4771 * w32uniscribe.c:
4772 * window.c:
4773 * xdisp.c:
4774 * xfaces.c:
4775 * xfns.c:
4776 * xfont.c:
4777 * xftfont.c:
4778 * xmenu.c:
4779 * xselect.c:
4780 * xterm.c: Likewise.
4781
4782 Remove P_ and __P macros.
4783 * atimer.h: Remove P_ and __P macros.
4784 * buffer.h:
4785 * category.h:
4786 * ccl.h:
4787 * character.h:
4788 * charset.h:
4789 * cm.h:
4790 * coding.h:
4791 * composite.h:
4792 * dispextern.h:
4793 * disptab.h:
4794 * dosfns.h:
4795 * font.h:
4796 * fontset.h:
4797 * frame.h:
4798 * gtkutil.h:
4799 * indent.h:
4800 * intervals.h:
4801 * keyboard.h:
4802 * keymap.h:
4803 * lisp.h:
4804 * macros.h:
4805 * md5.h:
4806 * menu.h:
4807 * msdos.h:
4808 * nsterm.h:
4809 * puresize.h:
4810 * region-cache.h:
4811 * syntax.h:
4812 * syssignal.h:
4813 * systime.h:
4814 * termhooks.h:
4815 * w32font.h:
4816 * w32term.h:
4817 * widget.h:
4818 * window.h:
4819 * xgselect.h:
4820 * xsettings.h:
4821 * xterm.h: Likewise.
4822
4823 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4824
4825 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
4826
4827 Cleanup old code.
4828 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
4829 * syssignal.h: Remove code for Lynx, not supported anymore.
4830 * vm-limit.c: Remove unused code the depends on emacs not being
4831 defined and NO_LIM_DATA being defined.
4832 * mem-limits.h: Remove dead code.
4833
4834 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
4835
4836 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
4837
4838 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
4839 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
4840
4841 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
4842 parameters, they are already absolute.
4843
4844 * nsterm.m (x_set_window_size, initFrameFromEmacs):
4845 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
4846
4847 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
4848
4849 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
4850 Update FRAME_TOOLBAR_HEIGHT.
4851
4852 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
4853 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
4854
4855 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
4856
4857 * frame.c (get_future_frame_param, Fmake_terminal_frame):
4858 Don't check default-frame-alist.
4859
4860 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
4861
4862 * process.c (create_process): Avoid using invalid file descriptors.
4863
4864 * callproc.c (child_setup): Avoid closing a file descriptor twice.
4865
4866 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
4867
4868 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4869 Improve documentation. Return font regardless of use_system_font.
4870 (syms_of_xsettings): Improve documentation for font-use-system-font.
4871
4872 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
4873
4874 * xfaces.c (realize_face): Garbage the frame if a face is removed
4875 (Bug#6593).
4876
4877 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
4878
4879 * keyboard.c: Remove duplicate <setjmp.h>.
4880 (read_key_sequence): Remove volatile qualifiers.
4881
4882 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4883
4884 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
4885 (struct glyph_row): New members left_fringe_offset and
4886 right_fringe_offset.
4887
4888 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
4889 specially.
4890 * w32term.c (w32_draw_fringe_bitmap): Likewise.
4891 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
4892
4893 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
4894 Take account of bitmap offset.
4895 (draw_window_fringes): Take account of window vscroll.
4896 (update_window_fringes): Likewise. Extend top-aligned top indicator
4897 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
4898 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
4899 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
4900
4901 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
4902
4903 * w32fns.c (Qtooltip): Declare.
4904 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
4905
4906 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
4907
4908 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
4909 grab on just Press (Bug#6499).
4910
4911 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
4912
4913 * frame.c (Qtooltip): New var.
4914 (delete_frame): Use it. Fix faulty if statement. Don't update
4915 mode line for tooltip frames. Suggested by Martin Rudalics.
4916
4917 * xfns.c (x_create_tip_frame):
4918 * w32fns.c (x_create_tip_frame): Use it.
4919
4920 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
4921
4922 * xftfont.c (xftfont_open): Check font width one by one also when
4923 spacing is dual.
4924
4925 * ftfont.c (ftfont_open): Ditto.
4926
4927 2010-06-30 Glenn Morris <rgm@gnu.org>
4928
4929 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
4930
4931 * Makefile.in (CANNOT_DUMP): Update for configure name change.
4932
4933 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
4934 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
4935 * s/darwin.h (SYSTEM_MALLOC):
4936 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
4937
4938 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
4939
4940 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
4941 (ns_get_screen): Don't assign integer to f.
4942 (Fx_display_color_cells): Declarations before statements.
4943
4944 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
4945
4946 * xfns.c (x_default_font_parameter): Remove got_from_system
4947 (Bug#6526).
4948
4949 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4950 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
4951 New defines based on what configure finds.
4952
4953 * xterm.c (XTflash): Use gtk_widget_get_window.
4954 (xg_scroll_callback): Use gtk_adjustment_get_upper and
4955 gtk_adjustment_get_page_size.
4956 (handle_one_xevent): Use gtk_widget_get_mapped.
4957 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
4958 messages.
4959
4960 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
4961
4962 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
4963 HAVE_GTK_FILE_SELECTION_NEW.
4964
4965 * gtkutil.c (xg_display_open, xg_display_close):
4966 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
4967 (xg_display_open): Return type is void.
4968 (gtk_widget_set_has_window)
4969 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4970 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4971 (gtk_adjustment_set_page_increment)
4972 (gtk_adjustment_get_step_increment): #define these if not found
4973 by configure.
4974 (remove_submenu): New define based on Gtk+ version.
4975 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
4976 Use gtk_widget_get_window.
4977 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4978 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4979 (create_dialog): Use gtk_dialog_get_action_area and
4980 gtk_dialog_get_content_area.
4981 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4982 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
4983 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4984 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
4985 Use g_object_ref and g_object_unref.
4986 (xg_update_menu_item, xg_tool_bar_menu_proxy):
4987 Use gtk_widget_get_sensitive.
4988 (xg_update_submenu): Use remove_submenu.
4989 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4990 properties instead to get old x and y position.
4991 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4992 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
4993 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
4994 (xg_get_tool_bar_widgets): New function.
4995 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4996 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4997 (toolbar_set_orientation): New #define based on if configure
4998 finds gtk_orientable_set_orientation.
4999 (xg_create_tool_bar): Call toolbar_set_orientation.
5000 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
5001 instead of gtk_box_pack_start_defaults.
5002
5003 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
5004
5005 * cmds.c (Fdelete_backward_char): Move into Lisp.
5006
5007 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5008
5009 * s/freebsd.h (BSD4_2): Remove redundant definition.
5010 bsd-common.h defines it already.
5011
5012 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
5013
5014 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
5015 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
5016 tool-bar-mode, which are now set using these X resources at
5017 startup, to determine the defaults (Bug#2249).
5018
5019 * w32fns.c (Fx_create_frame):
5020 * nsfns.m (Fx_create_frame): Likewise.
5021
5022 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
5023
5024 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
5025
5026 * gtkutil.c (xg_update_scrollbar_pos):
5027 Avoid C99 mid-block variable declaration.
5028
5029 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
5030
5031 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
5032
5033 * gtkutil.h (xg_show_scroll_bar): Remove.
5034
5035 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
5036 if height is less than scroll bar min size.
5037 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
5038
5039 * xfns.c (x_default_font_parameter): Try to open font from system
5040 before using it (bug#6478). Rename got_from_gconf to got_from_system.
5041
5042 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
5043
5044 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
5045
5046 2010-06-20 Eli Zaretskii <eliz@gnu.org>
5047
5048 * xdisp.c (try_scrolling): When scroll-conservatively is set to
5049 most-positive-fixnum, be extra accurate when scrolling window
5050 start, to avoid missing the cursor line.
5051
5052 2010-06-19 Eli Zaretskii <eliz@gnu.org>
5053
5054 * xdisp.c (try_scrolling): Compute the limit for searching point
5055 in forward scroll from scroll_max, instead of an arbitrary limit
5056 of 10 screen lines. See
5057 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
5058 and
5059 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
5060 for details.
5061
5062 2010-06-16 Glenn Morris <rgm@gnu.org>
5063
5064 * editfns.c (Fbyte_to_string): Pacify compiler.
5065
5066 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5067
5068 * lread.c (read1): Phase out old-style backquotes a bit more.
5069
5070 2010-06-12 Eli Zaretskii <eliz@gnu.org>
5071
5072 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
5073 bidimirror.h.
5074
5075 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
5076
5077 * bidi.c (bidi_initialize): Remove explicit initialization of
5078 bidi_type_table; include biditype.h instead. Don't support
5079 entries whose second codepoint is zero. Initialize bidi_mirror_table.
5080 (bidi_mirror_char): Use bidi_mirror_table.
5081
5082 * biditype.h: New file.
5083
5084 * bidimirror.h: New file.
5085
5086 * window.c (syms_of_window): Doc fix (bug#6409).
5087
5088 2010-06-12 Romain Francoise <romain@orebokech.com>
5089
5090 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
5091 ediff-hook.
5092
5093 2010-06-10 Glenn Morris <rgm@gnu.org>
5094
5095 * editfns.c (Fbyte_to_string): Pacify compiler.
5096
5097 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
5098
5099 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
5100
5101 * alloc.c (Fmake_byte_code): Don't access undefined argument
5102 (Bug#6517).
5103
5104 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
5105
5106 * xdisp.c (next_element_from_image): Ensure that after-strings are
5107 read the next time we hit handle_stop (Bug#1336).
5108
5109 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
5110
5111 * lread.c (read1): Signal error if #s is not followed by paren.
5112
5113 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
5114
5115 * image.c (free_image): Mark frame as garbaged (Bug#6426).
5116
5117 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
5118
5119 2010-06-15 Glenn Morris <rgm@gnu.org>
5120
5121 * editfns.c (Fbyte_to_string): Pacify compiler.
5122
5123 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
5124
5125 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
5126 Check `object's type before accessing its guts.
5127
5128 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
5129
5130 * s/usg5-4.h: Fix previous change.
5131 Suggested by Lawrence Mitchell <wence@gmx.li>
5132
5133 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
5134
5135 * minibuf.c (Fall_completions): Add more checks.
5136
5137 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
5138
5139 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
5140
5141 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
5142
5143 * lread.c (X_OK): Remove, unused.
5144
5145 * dispnew.c: Remove obsolete comment.
5146
5147 Remove INCLUDED_FCNTL.
5148 * xterm.c (INCLUDED_FCNTL):
5149 * callproc.c (INCLUDED_FCNTL):
5150 * alloc.c (INCLUDED_FCNTL):
5151 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
5152 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
5153
5154 2010-06-07 Martin Rudalics <rudalics@gmx.at>
5155
5156 * window.c (Fselect_window): Move `record_buffer' up to the
5157 beginning of this function, so the buffer gets recorded
5158 even if the selected window does not change.
5159 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
5160
5161 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
5162
5163 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
5164 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
5165
5166 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
5167
5168 Remove BSTRING related code, all platforms define it.
5169 * s/usg5-4.h (BSTRING): Remove definition.
5170 * s/template.h (BSTRING):
5171 * s/msdos.h (BSTRING):
5172 * s/ms-w32.h (BSTRING):
5173 * s/hpux10-20.h (BSTRING):
5174 * s/gnu-linux.h (BSTRING):
5175 * s/darwin.h (BSTRING):
5176 * s/cygwin.h (BSTRING):
5177 * s/bsd-common.h (BSTRING):
5178 * s/aix4-2.h (BSTRING): Likewise.
5179 * sysdep.c: Remove code depending on BSTRING not being defined.
5180
5181 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
5182
5183 Remove obsolete macro BASE_LEADING_CODE_P.
5184 * character.h (BASE_LEADING_CODE_P): Remove.
5185 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
5186 * buffer.c (Fset_buffer_multibyte):
5187 * indent.c (scan_for_column, compute_motion):
5188 * insdel.c (count_combining_before, count_combining_after):
5189 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
5190
5191 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
5192
5193 Turn `directory-sep-char' into a noop.
5194
5195 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
5196 (DIRECTORY_SEP): Define unconditionally.
5197
5198 * s/ms-w32.h (DIRECTORY_SEP): Remove.
5199
5200 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
5201 call dostounix_filename directly.
5202
5203 * fileio.c (CORRECT_DIR_SEPS): Remove.
5204 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
5205 (Fsubstitute_in_file_name): Use dostounix_filename instead.
5206 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
5207 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
5208
5209 * w32proc.c (CORRECT_DIR_SEPS): Remove.
5210 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
5211
5212 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
5213
5214 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
5215 (Bug#6346)
5216
5217 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
5218
5219 * ccl.c (Fccl_program_p): Fix typo in docstring.
5220
5221 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
5222
5223 Move UNEXEC definition to autoconf.
5224 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
5225 * s/sol2-10.h (UNEXEC):
5226 * s/irix6-5.h (UNEXEC):
5227 * s/hpux10-20.h (UNEXEC):
5228 * s/gnu-linux.h (UNEXEC):
5229 * s/darwin.h (UNEXEC):
5230 * s/cygwin.h (UNEXEC):
5231 * s/bsd-common.h (UNEXEC):
5232 * s/aix4-2.h (UNEXEC):
5233 * m/alpha.h (UNEXEC): Likewise.
5234 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
5235
5236 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
5237
5238 Remove obsolete pre-unicode2 macros.
5239 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
5240 * composite.c (composition_reseat_it):
5241 * data.c (Faset):
5242 * fns.c (Ffillarray):
5243 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
5244 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
5245
5246 2010-06-03 Juri Linkov <juri@jurta.org>
5247
5248 * buffer.c (Fother_buffer): Add CHECK_FRAME.
5249 (Fswitch_to_buffer): Remove unused variable `err'.
5250
5251 2010-06-03 Glenn Morris <rgm@gnu.org>
5252
5253 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
5254
5255 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
5256 now that AH_BOTTOM does it.
5257
5258 * m/hp800.h (HAVE_ALLOCA):
5259 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
5260
5261 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
5262 Remove NOT_C_CODE tests, it is always true now.
5263
5264 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
5265
5266 Fix config.h includes.
5267 * xsettings.c:
5268 * xgselect.c:
5269 * nsterm.m:
5270 * nsselect.m:
5271 * nsimage.m:
5272 * nsfont.m:
5273 * nsfns.m:
5274 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
5275 other files do.
5276
5277 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
5278
5279 * s/sol2-6.h: Remove obsolete comments.
5280
5281 Remove unnecessary alloca.h includes.
5282 * keymap.c: Do not include alloca.h, config.h does that.
5283 * sysdep.c: Likewise. Do not define fwrite, not used.
5284
5285 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
5286
5287 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
5288 the HAVE_TERMIO where it belongs (bug#6149).
5289
5290 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
5291
5292 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
5293 of bug#6305).
5294
5295 2010-05-30 Eli Zaretskii <eliz@gnu.org>
5296
5297 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
5298 state is always cached (bug#6306).
5299
5300 2010-05-29 Eli Zaretskii <eliz@gnu.org>
5301
5302 Fix cursor motion in bidi-reordered continued lines.
5303 * xdisp.c (try_cursor_movement): Backup to non-continuation line
5304 only after finding point's row. Fix the logic. Rewrite the loop
5305 over continuation lines in bidi-reordered buffers. Return
5306 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
5307 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
5308
5309 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
5310
5311 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
5312
5313 2010-05-28 Kenichi Handa <handa@m17n.org>
5314
5315 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
5316 Don't sheck SPEC if it is nil.
5317 (font_list_entities): Call font_delete_unmatched if
5318 Vface_ignored_fonts is non-nil. (Bug#6287)
5319
5320 2010-05-28 Glenn Morris <rgm@gnu.org>
5321
5322 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
5323
5324 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
5325
5326 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
5327 whether to trash.
5328 (internal_delete_file, Frename_file): Callers changed.
5329 (delete_by_moving_to_trash): Doc fix.
5330 (Fdelete_directory_internal): Don't move to trash.
5331
5332 * callproc.c (delete_temp_file):
5333 * buffer.c (Fkill_buffer): Callers changed.
5334
5335 * lisp.h: Update prototype.
5336
5337 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
5338
5339 * xdisp.c (redisplay_window): After redisplay, check if point is
5340 still valid before setting it (Bug#6177).
5341
5342 2010-05-27 Glenn Morris <rgm@gnu.org>
5343
5344 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
5345 Convert comments to Makefile format.
5346
5347 * Makefile.in (bootstrap-clean): No more Makefile.c.
5348
5349 2010-05-26 Glenn Morris <rgm@gnu.org>
5350
5351 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
5352 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
5353
5354 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5355 Remove.
5356 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5357
5358 2010-05-26 Kenichi Handa <handa@m17n.org>
5359
5360 * composite.c (composition_compute_stop_pos): Fix condition for
5361 backward scanning.
5362
5363 2010-05-25 Glenn Morris <rgm@gnu.org>
5364
5365 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5366 Move before TEMACS_LDFLAGS.
5367 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5368 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5369
5370 * Makefile.in (NOT_C_CODE): No longer define.
5371 (config.h): No longer include.
5372
5373 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
5374 variables it may reference.
5375
5376 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
5377 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
5378
5379 2010-05-25 Kenichi Handa <handa@m17n.org>
5380
5381 * dispextern.h (struct composition_it): New members rule_idx and
5382 charpos.
5383
5384 * xdisp.c (set_iterator_to_next): While scanning backward, assume
5385 that the character positions of IT point the last character of the
5386 current grapheme cluster.
5387 (next_element_from_composition): Don't change character positions
5388 of IT.
5389 (append_composite_glyph): Set glyph->charpos to
5390 it->cmp_it.charpos.
5391
5392 * composite.c (autocmp_chars): Change the first argument to RULE,
5393 and try composition with RULE only.
5394 (composition_compute_stop_pos): Record the index number of the
5395 composition rule in CMP_IT->rule_idx.
5396 (composition_reseat_it): Call autocmp_chars repeatedly until the
5397 correct rule of the composition is found.
5398 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
5399 is at the last character of the current grapheme cluster when
5400 CMP_IT->reversed_p is nonzero.
5401
5402 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
5403
5404 * editfns.c (Fbyte_to_string): New function.
5405
5406 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
5407
5408 * process.c (Fmake_network_process): Set :host to nil if it's not used.
5409 Suggested by Masatake YAMATO <yamato@redhat.com>.
5410
5411 2010-05-23 Eli Zaretskii <eliz@gnu.org>
5412
5413 * dispextern.h (init_iterator): Sync prototype with changed definition.
5414
5415 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
5416
5417 * s/netbsd.h: If terminfo is found, use it in preference to
5418 termcap. (Bug#6190) [Backport from trunk]
5419
5420 2010-05-19 Eli Zaretskii <eliz@gnu.org>
5421
5422 Redesign and reimplement bidi-aware edge positions of glyph rows.
5423
5424 * dispextern.h (struct glyph_row): New members minpos and maxpos.
5425 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
5426 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
5427 and maxpos members instead of start.pos and end.pos, respectively.
5428
5429 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
5430 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
5431 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
5432 (try_window_reusing_current_matrix, try_window_id):
5433 Use ROW->minpos rather than ROW->start.pos.
5434 (init_from_display_pos, init_iterator): Use EMACS_INT for
5435 character and byte positions.
5436 (find_row_edges): Rename from find_row_end. Accept additional
5437 arguments for minimum and maximum buffer positions seen by
5438 display_line for this row. Don't use iterator to find the
5439 position following the maximum one; instead, increment the
5440 position found by display_line directly. Fix logic; eol_pos
5441 should be tested before the rest. Handle the case of characters
5442 delivered from display vector (bug#6036). Fix tests related to
5443 it->method. Handle the truncated_on_right_p rows.
5444 (RECORD_MAX_MIN_POS): New macro.
5445 (display_line): Use it to record the minimum and maximum buffer
5446 positions for glyphs in the row being assembled. Record the
5447 position of the newline that terminates the line. If word wrap is
5448 in effect, restore minimum and maximum positions seen up to the
5449 wrap point, when iterator returns to it.
5450 (try_window_reusing_current_matrix): Give up if in bidi-reordered
5451 row and cursor not already at point. Restore original pre-bidi
5452 code for unidirectional buffers.
5453
5454 * dispnew.c (increment_row_positions, check_matrix_invariants):
5455 Increment and check row->start.pos and row->end.pos, in addition
5456 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
5457
5458 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
5459 Display truncated_on_left_p and truncated_on_right_p flags.
5460 Formatting fixes.
5461 (pmtxrows): Display the ordinal number of each row. Don't display
5462 rows beyond the last one.
5463
5464 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
5465 it is not copied by bidi_copy_it.
5466
5467 2010-05-22 Eli Zaretskii <eliz@gnu.org>
5468
5469 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
5470 (Bug#6237)
5471
5472 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
5473
5474 * image.c (Fimage_flush): Rename from image-refresh.
5475
5476 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
5477
5478 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
5479 just one window.
5480
5481 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
5482 (clear_image_cache): If the number of cached images is unusually
5483 large, decrease the cache eviction delay (Bug#6230).
5484
5485 2010-05-21 Glenn Morris <rgm@gnu.org>
5486
5487 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
5488 Move these rules to ns.mk.
5489 * ns.mk: New file.
5490
5491 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
5492
5493 * Makefile.in (CANNOT_DUMP): New, set by configure.
5494 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
5495
5496 2010-05-20 Juri Linkov <juri@jurta.org>
5497
5498 * fileio.c (Fdelete_file): Change interative spec to use
5499 `read-file-name' like in `find-file-read-args' where the default
5500 value is `default-directory' instead of `buffer-file-name'.
5501 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
5502
5503 2010-05-20 Kevin Ryde <user42@zip.com.au>
5504
5505 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
5506 (Voverriding_terminal_local_map, Vsystem_key_alist)
5507 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
5508
5509 2010-05-20 Glenn Morris <rgm@gnu.org>
5510
5511 * Makefile.in (DEPDIR): New constant.
5512 (DEPFLAGS): Set with configure, not cpp.
5513 (MKDEPDIR): New, set by configure.
5514 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
5515 (clean): Use $DEPDIR.
5516 (deps_frag): Include from configure.
5517 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
5518 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
5519
5520 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
5521 Fix reallocation of the cache. (Bug#6210)
5522
5523 2010-05-19 Glenn Morris <rgm@gnu.org>
5524
5525 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
5526
5527 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
5528 (GNULIB_VAR): Remove.
5529 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
5530
5531 * m/ibms390x.h (LINKER):
5532 * m/macppc.h (LINKER) [GNU_LINUX]:
5533 * s/aix4-2.h (ORDINARY_LINK):
5534 * s/cygwin.h (LINKER):
5535 * s/darwin.h (ORDINARY_LINK):
5536 * s/gnu.h (ORDINARY_LINK):
5537 * s/netbsd.h (LINKER):
5538 * s/usg5-4.h (ORDINARY_LINK):
5539 Move to configure.
5540
5541 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
5542
5543 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
5544
5545 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
5546 prevent stack overflow if number of arguments is too large
5547 (Bug#6214).
5548
5549 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
5550
5551 * charset.c (load_charset_map_from_file): Don't call close after fclose.
5552
5553 2010-05-18 Glenn Morris <rgm@gnu.org>
5554
5555 * s/gnu-linux.h: Combine two conditionals.
5556
5557 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
5558 $(POST_ALLOC_OBJ).
5559
5560 * Makefile.in (RALLOC_OBJ): New, set by configure.
5561 (rallocobj): Replace with the previous variable.
5562 (otherobj): Use $RALLOC_OBJ.
5563
5564 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
5565 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
5566
5567 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
5568 (gmallocobj, vmlimitobj): Replace with previous two variables.
5569 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
5570
5571 2010-05-17 Glenn Morris <rgm@gnu.org>
5572
5573 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
5574 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
5575
5576 2010-05-16 Glenn Morris <rgm@gnu.org>
5577
5578 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
5579
5580 * Makefile.in (clean): Get rid of HAVE_NS conditional.
5581
5582 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
5583 trailing "/".
5584
5585 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
5586 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
5587
5588 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
5589 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
5590 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
5591 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
5592 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
5593
5594 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
5595 Remove ${STARTFLAGS}, nothing ever sets it.
5596
5597 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
5598
5599 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
5600
5601 2010-05-16 Glenn Morris <rgm@gnu.org>
5602
5603 * Makefile.in (LIBX_BASE): Always define.
5604
5605 * Makefile.in (LIBX_OTHER): Move out of cpp section.
5606
5607 * Makefile.in (LIBXT): Always define.
5608
5609 2010-05-15 Glenn Morris <rgm@gnu.org>
5610
5611 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
5612
5613 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
5614 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
5615
5616 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
5617
5618 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
5619 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
5620
5621 * emacs.c (main): Initialize initial-environment and
5622 process-environment before generating from env, not after.
5623
5624 Handle --version reasonably in CANNOT_DUMP configuration.
5625 * emacs.c (emacs_version, emacs_copyright): New string variables.
5626 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
5627 (syms_of_emacs): Defvar them, and initialize them from the C
5628 string variables.
5629 (main): If initialization hasn't been done, print initial version
5630 info from the C strings, instead of starting an interactive session.
5631
5632 2010-05-15 Eli Zaretskii <eliz@gnu.org>
5633
5634 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
5635 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
5636 (bidi_paragraph_init): Remove redundant assertion that we are at
5637 the beginning of a line after call to bidi_find_paragraph_start.
5638
5639 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
5640 (syms_of_xdisp): Defsubr it.
5641
5642 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
5643
5644 * Makefile.in: Fix MSDOS-related comments.
5645
5646 2010-05-15 Glenn Morris <rgm@gnu.org>
5647
5648 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
5649 (really-lwlib, really-oldXMenu): Always define.
5650 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
5651
5652 * Makefile.in: Simplify cpp conditional.
5653
5654 * Makefile.in (${ns_appdir}): Simplify using umask.
5655
5656 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
5657
5658 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5659
5660 * eval.c (specbind): Remove left-over duplicate test.
5661 Disallow let-binding frame-local vars. Add comment.
5662
5663 2010-05-14 Eli Zaretskii <eliz@gnu.org>
5664
5665 Make the cache of bidi iterator states dynamically allocated.
5666 * bidi.c (bidi_cache_shrink): New function.
5667 (bidi_init_it): Call it.
5668 (bidi_cache_iterator_state): Enlarge the cache if needed.
5669
5670 * bidi.c (bidi_move_to_visually_next): Rename from
5671 bidi_get_next_char_visually. All callers changed.
5672
5673 2010-05-14 Kenichi Handa <handa@m17n.org>
5674
5675 * dispextern.h (struct composition_it): New member reversed_p.
5676
5677 * composite.c (composition_compute_stop_pos): Search backward if
5678 ENDPOS < CHARPOS.
5679 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
5680 Set CMP_IT->reversed_p.
5681 (composition_update_it): Pay attention to CMP_IT->reversed_p.
5682
5683 * xdisp.c (set_iterator_to_next):
5684 Call composition_compute_stop_pos with negative ENDPOS if we are
5685 scanning backward. Call composition_compute_stop_pos if scan
5686 direction is changed.
5687 (next_element_from_buffer): Call composition_compute_stop_pos with
5688 negative ENDPOS if we are scanning backward.
5689 (next_element_from_composition): Pay attention to
5690 IT->cmp_it.reversed_p.
5691
5692 2010-05-14 Kenichi Handa <handa@m17n.org>
5693
5694 * font.c (font_range): Return the range for the font found at first.
5695
5696 2010-05-14 Glenn Morris <rgm@gnu.org>
5697
5698 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
5699
5700 * Makefile.in (mktime, X11, register): Move undefs to configure.
5701
5702 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
5703 (MSDOS_X_OBJ): New variable.
5704 (MSDOS_SUPPORT_REAL): New constant.
5705 (MSDOS_SUPPORT): Set as a variable, not with cpp.
5706 (obj): Use MSDOS_X_OBJ.
5707 (lisp): Use MSDOS_SUPPORT as a variable.
5708
5709 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
5710 (GPM_MOUSE_SUPPORT): Now it's a constant.
5711 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
5712 not cpp.
5713
5714 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
5715 (ns_appresdir): Remove, unused.
5716
5717 * Makefile.in (SHELL): Move outside cpp section.
5718
5719 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
5720
5721 2010-05-13 Glenn Morris <rgm@gnu.org>
5722
5723 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
5724 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
5725
5726 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
5727 HAVE_WINDOW_SYSTEM must be too.
5728
5729 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
5730 (lisp): Remove WINNT_SUPPORT.
5731
5732 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
5733 Let configure set these variables (to empty) in this case as well.
5734
5735 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
5736 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
5737
5738 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
5739 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
5740 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
5741 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
5742 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
5743 the values output by configure.
5744 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
5745
5746 2010-05-12 Glenn Morris <rgm@gnu.org>
5747
5748 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
5749 (LINKER_WAS_SPECIFIED): Remove.
5750
5751 * Makefile.in (LIB_GCC): Set using configure, not cpp.
5752 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
5753 * m/arm.h (LIB_GCC) [GNU_LINUX]:
5754 * s/cygwin.h (LIB_GCC):
5755 * s/freebsd.h (LIB_GCC):
5756 * s/gnu-linux.h (LIB_GCC):
5757 * s/msdos.h (LIB_GCC):
5758 * s/netbsd.h (LIB_GCC):
5759 Move to configure.
5760
5761 2010-05-11 Karel Klíč <kklic@redhat.com>
5762
5763 * ftfont.c: Fix incorrect parentheses of #if condition for
5764 definining M17N_FLT_USE_NEW_FEATURE.
5765
5766 2010-05-11 Glenn Morris <rgm@gnu.org>
5767
5768 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
5769 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
5770
5771 2010-05-10 Eli Zaretskii <eliz@gnu.org>
5772
5773 * xdisp.c (init_iterator): Don't turn on bidi reordering in
5774 unibyte buffers. See
5775 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
5776
5777 2010-05-10 Glenn Morris <rgm@gnu.org>
5778
5779 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
5780 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
5781 (LIBES): Use LIBS_SYSTEM as a variable.
5782 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
5783 * s/aix4-2.h (LIBS_SYSTEM):
5784 * s/freebsd.h (LIBS_SYSTEM):
5785 * s/hpux10-20.h (LIBS_SYSTEM):
5786 * s/sol2-6.h (LIBS_SYSTEM):
5787 * s/unixware.h (LIBS_SYSTEM):
5788 Move to configure.
5789
5790 * s/aix4-2.h (MAIL_USE_LOCKF):
5791 * s/bsd-common.h (MAIL_USE_FLOCK):
5792 * s/darwin.h (MAIL_USE_FLOCK):
5793 * s/gnu-linux.h (MAIL_USE_FLOCK):
5794 * s/irix6-5.h (MAIL_USE_FLOCK):
5795 * s/template.h (MAIL_USE_FLOCK):
5796 Move to configure.
5797
5798 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
5799
5800 * Version 23.2 released.
5801
5802 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5803
5804 * composite.c (autocmp_chars): Save point as marker before calling
5805 auto-composition-function (Bug#5984).
5806
5807 * lisp.h (restore_point_unwind): Add prototype.
5808
5809 * fileio.c (restore_point_unwind): Remove static attribute.
5810
5811 2010-05-08 Kenichi Handa <handa@m17n.org>
5812
5813 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
5814 new feature of libotf and m17n-flt.
5815 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
5816 Call OTF_check_features even if no specific feature is given.
5817 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
5818 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
5819 that OUT is NULL. Use OTF_drive_gsub_with_log and
5820 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
5821 OTF_drive_gpos.
5822 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
5823 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
5824 Setup mflt_enable_new_feature and mflt_try_otf.
5825
5826 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
5827
5828 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
5829
5830 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
5831 box and toolbar (Bug #6139).
5832 (xg_create_tool_bar): Remove comment (Bug #6139).
5833 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
5834 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
5835
5836 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
5837
5838 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
5839 Update dependencies.
5840
5841 2010-05-08 Eli Zaretskii <eliz@gnu.org>
5842
5843 * fringe.c (update_window_fringes): Set up truncation bitmaps for
5844 R2L lines.
5845
5846 2010-05-08 Glenn Morris <rgm@gnu.org>
5847
5848 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
5849
5850 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
5851 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5852 (termcapobj): Replace with TERMCAP_OBJ.
5853 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
5854 (LIBES): Use LIBS_TERMCAP as a variable.
5855
5856 * s/freebsd.h (osreldate.h): No longer include, since this file
5857 does not use __FreeBSD_version any more.
5858
5859 * s/aix4-2.h (TERMINFO):
5860 * s/cygwin.h (TERMINFO):
5861 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5862 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
5863 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5864 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5865 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
5866 * s/irix6-5.h (TERMINFO):
5867 * s/netbsd.h (LIBS_TERMCAP):
5868 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
5869 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
5870 * s/usg5-4.h (TERMINFO):
5871 Move to configure.
5872
5873 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
5874
5875 * eval.c (unbind_to): Don't unbind a local binding into the global
5876 binding when the local binding disappeared. Inversely, don't unbind
5877 a global binding into a newly created local binding.
5878 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
5879 can specify the frame to use, when applicable. Adjust callers.
5880
5881 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
5882 Stefan Monnier <monnier@iro.umontreal.ca>
5883
5884 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
5885
5886 2010-05-07 Eli Zaretskii <eliz@gnu.org>
5887
5888 * w32fns.c: Include w32.h.
5889 (Fw32_shell_execute): Decode the error message before passing it
5890 to `error'. (Bug#6126)
5891
5892 * msdos.c (dos_set_window_size):
5893 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5894 instead of `XSYMBOL (foo)->value'.
5895
5896 2010-05-07 Eli Zaretskii <eliz@gnu.org>
5897
5898 Fix the MS-DOS build, broken by autoconfiscation.
5899
5900 * Makefile.in: Don't use Make-style comments past the "start of
5901 cpp stuff" line.
5902 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
5903
5904 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
5905 edited directly by msdos/sed1v2.inp).
5906
5907 2010-05-07 Glenn Morris <rgm@gnu.org>
5908
5909 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
5910 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
5911 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
5912 move out of cpp section.
5913 * s/freebsd.h (LD_SWITCH_SYSTEM):
5914 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
5915 * s/netbsd.h (LD_SWITCH_SYSTEM):
5916 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
5917
5918 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5919
5920 Define LIB_STANDARD and START_FILES using autoconf.
5921 * s/usg5-4.h (LIB_STANDARD):
5922 * s/netbsd.h (START_FILES):
5923 * s/irix6-5.h (LIB_STANDARD):
5924 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
5925 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5926 * s/freebsd.h (START_FILES):
5927 * s/darwin.h (START_FILES):
5928 * s/cygwin.h (START_FILES):
5929 * s/aix4-2.h (LIB_STANDARD):
5930 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
5931 * Makefile.in (STARTFILES): Rename to START_FILES, define using
5932 autoconf, not cpp.
5933
5934 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
5935
5936 Remove NEED_BSDTTY and NEED_UNISTD_H.
5937 * s/hpux10-20.h (NEED_BSDTTY): Remove.
5938 * s/aix4-2.h (NEED_UNISTD_H): Remove.
5939 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
5940 <sys/ptyio.h> and <unistd.h>.
5941
5942 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
5943
5944 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
5945 * s/gnu.h (START_FILES): Remove empty definition.
5946
5947 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
5948
5949 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
5950
5951 2010-05-06 Glenn Morris <rgm@gnu.org>
5952
5953 * Makefile.in (CPP, LN_S): Remove unused variables.
5954
5955 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5956
5957 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
5958
5959 2010-05-05 Lawrence Mitchell <wence@gmx.li>
5960
5961 * m/sparc.h: Fix typo in earlier change.
5962
5963 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5964
5965 Misc tweaks.
5966 * eval.c (Fdefvaralias): Remove unintended nested if.
5967 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5968
5969 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
5970
5971 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5972
5973 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5974
5975 Remove BSD_PGRPS.
5976 * s/bsd-common.h (BSD_PGRPS): Remove undef.
5977 * s/gnu-linux.h (BSD_PGRPS): Remove.
5978 * term.c (dissociate_if_controlling_tty):
5979 * sysdep.c (narrow_foreground_group, widen_foreground_group)
5980 (init_sys_modes, reset_sys_modes):
5981 * emacs.c (main):
5982 * callproc.c (Fcall_process, child_setup): Remove code depending
5983 on BSD_PGRPS.
5984
5985 Remove POSIX_SIGNALS.
5986 * s/usg5-4.h (POSIX_SIGNALS):
5987 * s/netbsd.h (POSIX_SIGNALS):
5988 * s/msdos.h (POSIX_SIGNALS):
5989 * s/ms-w32.h (POSIX_SIGNALS):
5990 * s/hpux11.h (POSIX_SIGNALS):
5991 * s/gnu.h (POSIX_SIGNALS):
5992 * s/gnu-linux.h (POSIX_SIGNALS):
5993 * s/freebsd.h (POSIX_SIGNALS):
5994 * s/darwin.h (POSIX_SIGNALS):
5995 * s/cygwin.h (POSIX_SIGNALS):
5996 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5997 * s/unixware.h:
5998 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5999 * process.c (create_process):
6000 * syssignal.h:
6001 * sysdep.c (wait_for_termination, init_signals):
6002 * process.c (create_process):
6003 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
6004 remove all code that assumes the contrary.
6005
6006 2010-05-04 Glenn Morris <rgm@gnu.org>
6007
6008 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
6009 variable.
6010 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6011 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
6012 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6013 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
6014 LD_SWITCH_SYSTEM_tmp.
6015 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
6016 New variables, set by configure.
6017
6018 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6019 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
6020 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6021 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
6022 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
6023
6024 * s/aix4-2.h (C_SWITCH_SYSTEM):
6025 * m/alpha.h (C_SWITCH_MACHINE):
6026 Move to configure.in.
6027 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
6028 New variables, set by configure.
6029 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
6030 $c_switch_machine and $c_switch_system.
6031
6032 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
6033
6034 * s/hpux10-20.h (LIB_STANDARD): New definition.
6035 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
6036 on it, not used anymore.
6037
6038 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
6039
6040 * eval.c (internal_condition_case_n): Rename from
6041 internal_condition_case_2.
6042 (internal_condition_case_2): New function.
6043
6044 * xdisp.c (safe_call): Use internal_condition_case_n.
6045
6046 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
6047 (internal_delete_file, Frename_file): Callers changed.
6048
6049 * buffer.c (Fkill_buffer):
6050 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
6051
6052 * lisp.h: Update prototypes.
6053
6054 2010-05-03 Glenn Morris <rgm@gnu.org>
6055
6056 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
6057 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
6058 (LIBXT): Set with configure, not cpp.
6059 (LIBX): Remove.
6060 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
6061
6062 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6063
6064 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
6065 The FreeBSD is not needed, the default works, Solaris version is
6066 not needed, and the remaining case is not supported by configure.
6067
6068 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
6069
6070 * xsmfns.c (CHDIR_OPT): New define.
6071 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
6072 restarting emacs.
6073
6074 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
6075 shut_down_emacs.
6076
6077 * emacs.c (USAGE1): Mention --chdir.
6078 (main): Handle --chdir.
6079 (standard_args): Add --chdir.
6080 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
6081 #5552).
6082
6083 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
6084
6085 Remove LD_SWITCH_MACHINE.
6086 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
6087 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
6088
6089 Clean up IRIX code.
6090 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
6091 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
6092
6093 Clean up AIX code.
6094 * m/ibmrs6000.inp: Remove file, unused.
6095 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
6096 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
6097 definition ...
6098 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
6099
6100 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
6101 unused.
6102
6103 2010-05-01 Eli Zaretskii <eliz@gnu.org>
6104
6105 Emulate POSIX_SIGNALS on MS-Windows.
6106
6107 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
6108 (SIG_SETMASK, SIG_UNBLOCK): Define.
6109
6110 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
6111 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
6112 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
6113
6114 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
6115 New stubs.
6116
6117 Miscellaneous fixes of bidi display.
6118
6119 * xdisp.c (find_row_end): New function, refactored from display_line.
6120 (display_line): Use it.
6121 (extend_face_to_end_of_line): In almost-filled rows, extend only
6122 if the row is R2L and not continued.
6123 (display_line): Fix prepending of truncation glyphs to R2L rows.
6124 Preserve overlay and string info in row->end.
6125 (insert_left_trunc_glyphs): Support addition of left truncation
6126 glyphs to R2L rows.
6127 (set_cursor_from_row): Don't place cursor on the vertical border
6128 glyph between adjacent windows. Fix a crash when a display string
6129 is continued to the next line. Don't return zero if cursor was
6130 found by `cursor' property of a display string.
6131 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
6132 test for that explicitly.
6133
6134 2010-05-01 Glenn Morris <rgm@gnu.org>
6135
6136 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
6137 for clarity.
6138 (OTHER_OBJ): Remove.
6139 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
6140 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
6141
6142 2010-05-01 Karel Klíč <kklic@redhat.com>
6143
6144 * fileio.c (Ffile_selinux_context): Context functions may return null.
6145
6146 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
6147
6148 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
6149
6150 2010-04-30 Glenn Morris <rgm@gnu.org>
6151
6152 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
6153 (OTHER_OBJ): Define as a separate variable, for clarity.
6154
6155 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
6156
6157 * xsettings.c: include limits.h and update file comment.
6158
6159 2010-04-30 Glenn Morris <rgm@gnu.org>
6160
6161 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
6162 Set with configure, not cpp.
6163 (LIBW): Remove, replace with $TOOLKIT_LIBW.
6164
6165 * Makefile.in (mallocobj): Remove.
6166 (otherobj): Simplify using @OTHER_OBJ@.
6167
6168 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
6169 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
6170 Don't bother making nsgui.h dependency platform-specific.
6171
6172 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
6173
6174 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
6175
6176 * process.c (read_process_output, exec_sentinel): Don't burp if the
6177 sentinel/filter kills the current buffer (bug#6060).
6178
6179 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
6180 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
6181 Remove unused var `args'.
6182 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
6183 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
6184 * doc.c (store_function_docstring): Use XSETCAR.
6185
6186 2010-04-28 Glenn Morris <rgm@gnu.org>
6187
6188 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
6189 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
6190
6191 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
6192
6193 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
6194 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
6195
6196 * Makefile.in (FONT_OBJ): New, set by configure.
6197 (FONT_DRIVERS): Use $FONT_OBJ.
6198
6199 * Makefile.in (LIBXMU): Set with configure, not cpp.
6200 * s/aix4-2.h (LIBXMU):
6201 * s/hpux10-20.h (LIBXMU):
6202 Remove definition, now set in configure.
6203
6204 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
6205
6206 * m/amdx86-64.h [i386]: Move this test to configure.in.
6207
6208 2010-04-27 Glenn Morris <rgm@gnu.org>
6209
6210 * Makefile.in (LIBXTR6): Set with configure, not cpp.
6211 * s/unixware.h (NEED_LIBW): Remove definition.
6212
6213 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
6214 (TOOLKIT_LIBW): New, set by configure.
6215 (@X_TOOLKIT_TYPE@): No longer define it.
6216
6217 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
6218 (MOTIF_LIBW): Set with configure, not cpp.
6219 * s/aix4-2.h (LIB_MOTIF):
6220 * s/gnu-linux.h (LIB_MOTIF):
6221 * s/unixware.h (LIB_MOTIF): Move to configure.in.
6222
6223 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
6224
6225 Reduce CPP usage.
6226 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
6227 (obj): Use autoconf for unexec instead of cpp.
6228 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
6229 Remove definitions and undefs. Inline definitions in the only user.
6230 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
6231
6232 2010-04-27 Glenn Morris <rgm@gnu.org>
6233
6234 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
6235 since the defaults (set by the system file) are fine in most cases.
6236 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
6237 * m/ibms390x.h (START_FILES, LIB_STANDARD):
6238 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
6239 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
6240 Remove definitions, since they are set correctly in s/gnu-linux.h.
6241 * s/freebsd.h (START_FILES, LIB_STANDARD):
6242 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6243 * s/hpux10-20.h (START_FILES):
6244 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
6245 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
6246
6247 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
6248 (MOTIF_LIBW): Use $LIBXP.
6249 (otherobj): Use $WIDGET_OBJ.
6250
6251 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
6252
6253 * Makefile.in (LIBS_MACHINE): Remove, unused.
6254
6255 Use autoconf instead of cpp for LIB_MATH.
6256 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
6257 * s/cygwin.h (LIB_MATH): Likewise.
6258 * Makefile.in (LIB_MATH): Do not define with cpp.
6259 (LIBES): Use autoconf for LIB_MATH.
6260
6261 2010-04-26 Kenichi Handa <handa@m17n.org>
6262
6263 * composite.c (Ffind_composition_internal): Fix the return value
6264 for an automatic composition.
6265
6266 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
6267
6268 Remove all NO_ARG_ARRAY uses.
6269 * fns.c (concat2, concat3, nconc2):
6270 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
6271 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
6272 * m/xtensa.h (NO_ARG_ARRAY):
6273 * m/template.h (NO_ARG_ARRAY):
6274 * m/sparc.h (NO_ARG_ARRAY):
6275 * m/sh3.h (NO_ARG_ARRAY):
6276 * m/mips.h (NO_ARG_ARRAY):
6277 * m/macppc.h (NO_ARG_ARRAY):
6278 * m/iris4d.h (NO_ARG_ARRAY):
6279 * m/intel386.h (NO_ARG_ARRAY):
6280 * m/ibms390x.h (NO_ARG_ARRAY):
6281 * m/ibms390.h (NO_ARG_ARRAY):
6282 * m/ibmrs6000.h (NO_ARG_ARRAY):
6283 * m/ia64.h (NO_ARG_ARRAY):
6284 * m/hp800.h (NO_ARG_ARRAY):
6285 * m/arm.h (NO_ARG_ARRAY):
6286 * m/amdx86-64.h (NO_ARG_ARRAY):
6287 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
6288
6289 2010-04-25 Eli Zaretskii <eliz@gnu.org>
6290
6291 * xdisp.c (display_line): Don't assume 2nd call to
6292 get_next_display_element cannot return zero. (Bug#6030)
6293 (iterate_out_of_display_property): New function, body from pop_it.
6294 (pop_it): Use it.
6295
6296 2010-04-24 Glenn Morris <rgm@gnu.org>
6297
6298 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
6299 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
6300 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
6301 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
6302
6303 2010-04-24 Eli Zaretskii <eliz@gnu.org>
6304
6305 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
6306 use `get_next_display_element' and `set_iterator_to_next' to
6307 advance to the next character, when looking for the character that
6308 begins the next row.
6309
6310 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
6311 definition of "struct Lisp_Symbol".
6312
6313 2010-04-24 Glenn Morris <rgm@gnu.org>
6314
6315 * Makefile.in (CRT_DIR): New variable, set by configure.
6316 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
6317 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
6318
6319 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6320
6321 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
6322
6323 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
6324
6325 Remove redundant flags.
6326 * s/freebsd.h (C_SWITCH_SYSTEM):
6327 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
6328 * s/netbsd.h (C_SWITCH_SYSTEM):
6329 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
6330 of these.
6331
6332 Simplify m/intel386.h.
6333 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
6334 user: ecrt0.c.
6335 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
6336 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
6337 the only user: s/unixware.h.
6338 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
6339 from m/intel386.h.
6340 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
6341 Definitions moved here from m/intel386.h.
6342
6343 * m/mips.h: Remove #if 0 code.
6344
6345 2010-04-23 Eli Zaretskii <eliz@gnu.org>
6346
6347 Fix display of composed characters from L2R scripts in bidi buffers.
6348 * xdisp.c (set_iterator_to_next, next_element_from_composition):
6349 After advancing IT past the composition, resync the bidi iterator
6350 with IT's position. (Bug#5977)
6351
6352 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6353
6354 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
6355 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
6356
6357 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
6358
6359 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
6360
6361 2010-04-23 Eli Zaretskii <eliz@gnu.org>
6362
6363 Support `display' text properties and overlay strings in bidi buffers.
6364 * xdisp.c (pop_it): When the stack is popped after displaying
6365 from a string, bidi-iterate to exit from the text portion covered
6366 by the `display' property or overlay. (Bug#5988, bug#5920)
6367
6368 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6369
6370 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
6371 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
6372
6373 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
6374 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
6375
6376 Simplify STARTFILES definition.
6377 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
6378 relying on Makefile.in to define it.
6379 * s/cygwin.h (START_FILES): Likewise.
6380 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
6381
6382 Clean up Solaris code.
6383 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
6384 (LIB_MOTIF): Remove, configure takes care of this.
6385 (NOT_USING_MOTIF): Remove, unused.
6386 * xrdb.c: Remove #if 0-ed #include.
6387 (SYSV): Remove conditional for old SysV.
6388 * sysdep.c (closedir): Remove conditional code for Solaris,
6389 Solaris has closedir.
6390
6391 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
6392
6393 * xsettings.c (read_and_apply_settings): Check if current_font is
6394 NULL before strcmp (Bug#6001).
6395
6396 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
6397
6398 Clean up HP-UX files.
6399 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
6400 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
6401 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
6402 * s/hpux10-20.h: ... to the only user, here.
6403
6404 2010-04-21 Eli Zaretskii <eliz@gnu.org>
6405
6406 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
6407 use buffer-local values of paragraph-start and paragraph-separate.
6408 <paragraph_start_re, paragraph_separate_re>: Rename from
6409 fallback_paragraph_start_re and fallback_paragraph_separate_re.
6410 (Bug#5992)
6411
6412 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
6413
6414 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
6415 current_tool_bar_style are new.
6416 (store_config_changed_event): Rename from store_font_changed_event.
6417 (XSETTINGS_TOOL_BAR_STYLE): New define.
6418 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
6419 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
6420 HAVE_XFT.
6421 (something_changedCB): store_font_changed_event is now
6422 store_config_changed_event.
6423 (parse_settings): Rename from parse_xft_settings.
6424 Read non-xft xsettings outside #ifdef HAVE_XFT.
6425 (read_settings): Renamed from read_xft_settings.
6426 (apply_xft_settings): Take current settings as parameter. Do not
6427 call read_(xft)_settings.
6428 (read_and_apply_settings): New function.
6429 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
6430 Call read_and_apply_settings if there are settings to be read.
6431 (init_xsettings): Renamed from init_xfd_settings.
6432 Call read_and_apply_settings unconditionally.
6433 (xsettings_initialize): Call init_xsettings.
6434 (Ftool_bar_get_system_style): New function.
6435 (syms_of_xsettings): Define Qmonospace_font_name and
6436 Qtool_bar_style. Initialize current_tool_bar_style to nil.
6437 defsubr Stool_bar_get_system_style. Fprovide on
6438 dynamic-setting.
6439 Move misplaced HAVE_GCONF
6440
6441 * xsettings.h (Ftool_bar_get_system_style): Declare.
6442
6443 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
6444 Qtext, Qboth, Qboth_horiz are new.
6445 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
6446 Vtool_bar_style, tool_bar_max_label_size.
6447
6448 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
6449
6450 * keyboard.c: QClabel is new.
6451 (parse_tool_bar_item): Take out QClabel from tool bar items.
6452 Try to construct a label if ther is no QClabel.
6453 (syms_of_keyboard): Intern :label as QClabel.
6454
6455 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
6456 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
6457 New.
6458
6459 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
6460 dynamic-setting.el.
6461
6462 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
6463 (xg_make_tool_item, xg_show_toolbar_item): New function.
6464 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
6465 Call xg_make_tool_item to make a tool bar item.
6466 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
6467
6468 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
6469 into account for toolbars.
6470
6471 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
6472
6473 * data.c (make_blv): Declarations before code (Bug#5993).
6474
6475 2010-04-21 Glenn Morris <rgm@gnu.org>
6476
6477 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
6478 Define using autoconf, not cpp.
6479 (LIBXSM): New variable, set by autoconf.
6480 (LIBXT): Use $LIBXSM.
6481
6482 2010-04-21 Dan Nicolaescu <local_user@dannlt>
6483
6484 Remove NOMULTIPLEJOBS, unused.
6485 * s/template.h (NOMULTIPLEJOBS):
6486 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
6487
6488 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
6489 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
6490 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
6491 detects -znocombreloc and passes it to the linker
6492 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
6493
6494 2010-04-21 Glenn Morris <rgm@gnu.org>
6495
6496 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
6497
6498 2010-04-21 Karel Klíč <kklic@redhat.com>
6499
6500 * Makefile.in (LIBSELINUX_LIBS): New.
6501 (LIBES): Add $LIBSELINUX_LIBS.
6502 * eval.c, lisp.h (call7): New function.
6503 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
6504 (Ffile_selinux_context, Fset_file_selinux_context):
6505 New functions.
6506 (Fcopy_file): New parameter preserve-selinux-context.
6507 (Frename_file): Preserve selinux context when renaming by copy-file.
6508
6509 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
6510 Eli Zaretskii <eliz@gnu.org>
6511
6512 Don't depend on cm.c or termcap.c on Windows, use stubs.
6513 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
6514 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
6515 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
6516 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
6517 (sys_tputs, sys_tgetstr): New stubs.
6518 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
6519 (tputs, tgetstr): New; define to sys_*.
6520
6521 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
6522
6523 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
6524
6525 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6526
6527 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
6528 Just signal a warning rather than an error when inside a let.
6529 (Fmake_variable_frame_local): Add the same test.
6530
6531 * font.c (syms_of_font): Make the style table vars read-only.
6532
6533 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
6534 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
6535
6536 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
6537
6538 2010-04-20 Eli Zaretskii <eliz@gnu.org>
6539
6540 Fix R2L paragraph display on TTY.
6541
6542 * xdisp.c (unproduce_glyphs): New function.
6543 (display_line): Use it when produced glyphs are discarded from R2L
6544 glyph rows.
6545 (append_composite_glyph): In R2L rows, prepend the glyph rather
6546 than appending it.
6547
6548 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
6549 rather than append it. Set up the resolved_level and bidi_type
6550 attributes of the appended glyph.
6551 (produce_special_glyphs): Mirror the backslash continuation
6552 character in R2L lines.
6553
6554 Implement display of R2L paragraphs in GUI sessions.
6555
6556 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
6557 append_stretch_glyph.
6558 (set_cursor_from_row) <cursor_x>: Remove unused variable.
6559 Fix off-by-one error in computing x at end of text in the row.
6560 (append_stretch_glyph): In reversed row, prepend the glyph rather
6561 than append it. Set resolved_level and bidi_type of the glyph.
6562 (extend_face_to_end_of_line): If the row is reversed, prepend a
6563 stretch glyph whose width is such that the rightmost glyph will be
6564 drawn at the right margin of the window. Fix off-by-one error on
6565 TTY frames in testing whether a line needs face extension.
6566 Fix face extension at ZV. If this is the last glyph row, use
6567 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
6568 region face.
6569 (set_cursor_from_row, display_line):
6570 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
6571 row->continuation_lines_width.
6572 (next_element_from_buffer): Don't call bidi_paragraph_init if we
6573 are at ZV. Fixes a crash when reseated to ZV by
6574 try_window_reusing_current_matrix.
6575 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
6576 which happens with R2L glyph rows. Fixes a crash when inserting a
6577 character at end of an R2L line.
6578 (set_cursor_from_row): Don't be fooled by truncated rows: don't
6579 treat them as having zero-width characters. Improve comments.
6580 Don't reverse pos_before and pos_after for reversed glyph rows.
6581 Set cursor.x to negative value when the cursor might be on the
6582 left fringe.
6583 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
6584 left fringe, not the right one.
6585 (notice_overwritten_cursor, draw_phys_cursor_glyph)
6586 (erase_phys_cursor): For reversed cursor_row, support cursor on
6587 the left fringe.
6588
6589 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
6590 of continuation indicators on the fringes.
6591 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
6592 left fringe.
6593
6594 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
6595 draw cursor on the left fringe.
6596
6597 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
6598 cursor on the left fringe.
6599
6600 * dispnew.c (update_text_area): Handle reversed desired rows when
6601 the cursor is on the left fringe.
6602 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
6603 below, not by 0, for when the cursor is on the left fringe.
6604
6605 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
6606
6607 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
6608 widget is a scrollbar.
6609
6610 2010-04-20 Kenichi Handa <handa@m17n.org>
6611
6612 * charset.c (char_charset): Consider Vcharset_non_preferred_head
6613 only when the arg CHARSET_LIST is nil.
6614
6615 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6616
6617 Make variable forwarding explicit rather the using special values.
6618 Basically, this makes the structure of buffer-local values and object
6619 forwarding explicit in the type of Lisp_Symbols rather than use
6620 special Lisp_Objects for that. This tends to lead to slightly more
6621 verbose code, but is more C-like, simpler, and makes it easier to make
6622 sure we handled all cases, among other things by letting the compiler
6623 help us check it.
6624 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
6625 Removing forwarding objects.
6626 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
6627 (struct Lisp_Symbol): Make the various forms of variable-forwarding
6628 explicit rather than hiding them inside Lisp_Object "values".
6629 (XFWDTYPE): New macro.
6630 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
6631 (XBUFFER_LOCAL_VALUE): Remove.
6632 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
6633 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
6634 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
6635 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
6636 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
6637 Remove the Lisp_Misc_* header.
6638 (struct Lisp_Buffer_Local_Value): Redefine.
6639 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
6640 (struct Lisp_Misc_Any): Add filler to get the right size.
6641 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
6642 Lisp_Intfwd.
6643 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
6644 (DEFVAR_KBOARD): Allocate a forwarding object.
6645 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
6646 (let_shadows_global_binding_p): New function.
6647 (union Lisp_Val_Fwd): New type.
6648 (make_blv): New function.
6649 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
6650 (store_symval_forwarding, swap_in_global_binding, Fboundp)
6651 (swap_in_symval_forwarding, find_symbol_value, Fset)
6652 (let_shadows_buffer_binding_p, set_internal, default_value)
6653 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
6654 (Fkill_local_variable, Fmake_variable_frame_local)
6655 (Flocal_variable_p, Flocal_variable_if_set_p)
6656 (Fvariable_binding_locus):
6657 * xdisp.c (select_frame_for_redisplay):
6658 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
6659 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
6660 * frame.c (store_frame_param):
6661 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
6662 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
6663 value structure.
6664 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
6665 (clone_per_buffer_values): Only adjust markers into the current buffer.
6666 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
6667 (Fbuffer_local_value, set_buffer_internal_1)
6668 (swap_out_buffer_local_variables):
6669 Adapt to the new symbol value structure.
6670 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
6671 (defvar_per_buffer): Take a new arg for the fwd object.
6672 (buffer_lisp_local_variables): Return a proper alist (different fix
6673 for bug#4138).
6674 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
6675 (Fgarbage_collect): Don't handle buffer_defaults specially.
6676 (mark_object): Handle new symbol value structure rather than the old
6677 special Lisp_Misc_* objects.
6678 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
6679 * term.c (set_tty_color_mode):
6680 * bidi.c (bidi_initialize): Don't access the ->value field directly.
6681 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
6682 a buffer_local_flags.
6683 * print.c (print_object): Get rid of impossible forwarding objects.
6684
6685 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6686
6687 * bidi.c (bidi_get_type, bidi_get_category)
6688 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
6689 (bidi_type_of_next_char, bidi_level_of_next_char):
6690 Declare static. Use `INLINE' rather than `inline'.
6691
6692 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
6693
6694 * dired.c (Ffile_attributes): Fix typo in docstring.
6695
6696 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6697
6698 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
6699 NSInteger (Bug#5811).
6700
6701 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6702
6703 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
6704 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
6705
6706 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6707
6708 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
6709
6710 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
6711
6712 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
6713 terminal frames (Bug#5837).
6714
6715 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6716
6717 * .gdbinit (xsubchartable): New command.
6718
6719 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6720
6721 * xdisp.c (display_line): Don't write beyond the last glyph row in
6722 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
6723 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
6724 and
6725 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
6726
6727 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6728
6729 * alloc.c (Fpurecopy): Hash-cons if requested.
6730 (syms_of_alloc): Update purify-flag docstring.
6731
6732 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
6733
6734 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
6735 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
6736
6737 2010-04-17 Eli Zaretskii <eliz@gnu.org>
6738
6739 Fix a crash when an NSM character is inserted at BEGV.
6740
6741 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
6742 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
6743 NEUTRAL_B or UNKNOWN_BT.
6744
6745 2010-04-16 Eli Zaretskii <eliz@gnu.org>
6746
6747 * xdisp.c (set_cursor_from_row): Don't consider possibility of
6748 other rows with cursor unless they are different from this row and
6749 this row is part of a continued line. (Bug#5943)
6750
6751 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6752
6753 * s/freebsd.h: Restore osreldate.h include.
6754 Suggested by Naohiro Aota.
6755
6756 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
6757
6758 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
6759
6760 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
6761
6762 * s/cygwin.h: Avoid linking against static libgcc.
6763
6764 2010-04-15 Juri Linkov <juri@jurta.org>
6765
6766 * window.c: Add Qscroll_command.
6767 Remove Vscroll_preserve_screen_position_commands.
6768 (window_scroll_pixel_based, window_scroll_line_based): Check the
6769 `scroll-command' property on the last command instead of searching
6770 the last command in Vscroll_preserve_screen_position_commands.
6771 (syms_of_window): Initialize and staticpro `Qscroll_command'.
6772 Put Qscroll_command property on Qscroll_up and Qscroll_down.
6773 (scroll-preserve-screen-position): Doc fix.
6774 (Vscroll_preserve_screen_position_commands): Remove variable.
6775
6776 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6777
6778 * xdisp.c (message): Do not use NO_ARG_ARRAY.
6779
6780 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
6781
6782 Reduce cpp use in Makefile.in.
6783 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
6784 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
6785 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
6786 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
6787 (CRT0_COMPILE): Remove, inline it in the only user.
6788
6789 2010-04-14 Juri Linkov <juri@jurta.org>
6790
6791 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
6792 `scroll-up-command' and `M-v' from `scroll-down' to
6793 `scroll-down-command'.
6794
6795 2010-04-14 Juri Linkov <juri@jurta.org>
6796
6797 * window.c (Vscroll_preserve_screen_position_commands): New variable
6798 with the default value as the list of Qscroll_down and Qscroll_up.
6799 (window_scroll_pixel_based, window_scroll_line_based): Search the
6800 last command in the list Vscroll_preserve_screen_position_commands
6801 instead of comparing with Qscroll_up and Qscroll_down.
6802
6803 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
6804
6805 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
6806 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
6807 does that.
6808
6809 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
6810 to zero.
6811
6812 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6813
6814 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
6815
6816 Try to solve the problem of spurious EOF chars in long lines of text
6817 sent to interactive subprocesses.
6818 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
6819 (system_process_attributes): Remove unused var `ttotal'.
6820 * process.c (send_process): Don't bother breaking long line with EOF
6821 chars when talking to ttys any more.
6822 (wait_reading_process_output): Output a warning when called in such
6823 a way that it could block without being interruptible.
6824
6825 Try to detect file modification within the same second.
6826 * buffer.h (struct buffer): New field modtime_size.
6827 * buffer.c (reset_buffer): Initialize it.
6828 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
6829 (Fverify_visited_file_modtime): Check it.
6830 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
6831 (Fset_visited_file_modtime): Set (or clear) it.
6832
6833 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6834
6835 * process.c (status_notify): Remove unused var `ro'.
6836
6837 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
6838
6839 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
6840 more than one visual (Bug#5938).
6841
6842 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6843
6844 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
6845 Undefine.
6846
6847 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6848
6849 Remove C_SWITCH_SYSTEM_TEMACS.
6850 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
6851 (malloc, realloc, free): Use emacs, not temacs for conditional
6852 definition.
6853
6854 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
6855 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
6856
6857 Use autoconf, not cpp for some variables.
6858 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
6859 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
6860 (ALL_CFLAGS): Use them as make variables.
6861 (really-lwlib, really-oldXMenu): Do not pass them.
6862
6863 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
6864
6865 * xmenu.c (apply_systemfont_to_dialog): New.
6866 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
6867
6868 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6869
6870 * process.c (exec_sentinel): Preserve current-buffer.
6871
6872 * process.c (read_process_output): Move the save-current-buffer to
6873 apply to both the filter and the non-filter branches.
6874
6875 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
6876
6877 * s/msdos.h (UNEXEC): New definition.
6878
6879 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6880
6881 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
6882 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
6883
6884 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
6885 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
6886 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
6887 TRY_WINDOW_CHECK_MARGINS.
6888
6889 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
6890 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
6891 width only when it is for padding.
6892
6893 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
6894
6895 * xfns.c (Fx_show_tip): Call try_window in a loop until
6896 fonts_changed_p is zero (Bug#2423).
6897
6898 2010-04-08 Eli Zaretskii <eliz@gnu.org>
6899
6900 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
6901 the end of TEXT_AREA. (Bug#5856)
6902
6903 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6904
6905 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
6906 HAVE_GCONF.
6907
6908 2010-04-08 Eli Zaretskii <eliz@gnu.org>
6909
6910 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
6911 prev.orig_type, for resolving type of NSM. (Bug#5858)
6912
6913 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6914
6915 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
6916 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
6917 in current_font.
6918 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
6919 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
6920 New functions.
6921 (syms_of_xsettings): Initialize current_font.
6922 defsubr Sfont_get_system_normal_font.
6923
6924 * xsettings.h (Ffont_get_system_normal_font)
6925 (xsettings_get_system_normal_font): Declare.
6926
6927 * xfns.c (extern xlwmenu_default_font): Remove.
6928 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
6929 to xlwmenu.c.
6930
6931 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
6932 menu items in UTF-8.
6933
6934 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
6935 (apply_systemfont_to_menu): New function.
6936 (set_frame_menubar, create_and_show_popup_menu):
6937 Call apply_systemfont_to_menu.
6938
6939 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
6940
6941 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
6942 FRAME_LINE_TO_PIXEL_Y.
6943
6944 * xterm.c (x_set_window_size_1): Don't add border_width/height to
6945 pixelwidth/height.
6946
6947 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
6948
6949 Simplify code for HP machines.
6950 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
6951 for GNU_LINUX, not needed.
6952 (UNEXEC, NEED_BSDTTY): Move definitions...
6953 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
6954
6955 * m/iris4d.h (UNEXEC): Move definition ...
6956 * s/irix6-5.h (UNEXEC): ... here.
6957
6958 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
6959
6960 * xfns.c (set_machine_and_pid_properties): New function.
6961 (Fx_create_frame): Call set_machine_and_pid_properties.
6962
6963 2010-04-03 Eli Zaretskii <eliz@gnu.org>
6964
6965 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
6966 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6967 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6968
6969 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6970 in this function. (Bug#5703)
6971
6972 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * nsterm.h: Fix last change.
6975
6976 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
6977
6978 * m/intel386.h (NO_REMAP): Move definition ...
6979 * s/msdos.h (NO_REMAP): ... here.
6980
6981 * m/vax.h (CRT0_DUMMIES): Remove, unused.
6982
6983 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6984 used on those platforms.
6985
6986 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
6987
6988 Remove extern errno declarations.
6989 * xterm.c:
6990 * xrdb.c:
6991 * w32term.c:
6992 * unexec.c:
6993 * unexaix.c:
6994 * sysdep.c:
6995 * process.c:
6996 * lread.c:
6997 * keyboard.c:
6998 * floatfns.c:
6999 * filelock.c:
7000 * fileio.c:
7001 * emacs.c (main):
7002 * ecrt0.c:
7003 * dispnew.c:
7004 * callproc.c:
7005 * buffer.c: Remove errno extern declarations.
7006 * s/netbsd.h (NEED_ERRNO): Remove.
7007
7008 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
7009
7010 Remove all uses of LIBX11_SYSTEM.
7011 * Makefile.in (LIBX11_SYSTEM): Remove.
7012 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
7013 instead.
7014
7015 2010-04-01 Eli Zaretskii <eliz@gnu.org>
7016
7017 Remove support for DJGPP v1.x (bug#5813).
7018
7019 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
7020 * s/msdos.h:
7021 * unexec.c (make_hdr, copy_text_and_data):
7022 * sysdep.c (wait_for_termination, sys_subshell):
7023 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
7024 (IT_set_terminal_modes, __write, _rename, gethostname)
7025 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
7026 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
7027 the value of __DJGPP__.
7028 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
7029 compatibility code.
7030 * lread.c:
7031 * gmalloc.c (memalign):
7032 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
7033 * emacs.c (main):
7034 * dosfns.c (init_dosfns):
7035 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
7036
7037 2010-04-01 Eli Zaretskii <eliz@gnu.org>
7038
7039 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
7040 string with `cursor' property comes from an `after-string'
7041 overlay. (Bug#5816)
7042
7043 2010-04-01 Glenn Morris <rgm@gnu.org>
7044
7045 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
7046 Define as Makefile variables.
7047 (LIBX): Use above variables rather than directly using autoconf.
7048
7049 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
7050
7051 Clean up BSD_SYSTEM use.
7052 * xterm.c:
7053 * process.c:
7054 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
7055 for including <sys/ioctl.h>.
7056 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
7057 code is only used for MSDOS.
7058
7059 2010-03-31 Juri Linkov <juri@jurta.org>
7060
7061 * image.c: Add `Qextension_data'.
7062 (syms_of_image): Initialize and staticpro `Qextension_data'.
7063 (Fimage_metadata): Rename from `Fimage_extension_data'.
7064 (gif_load): Put GIF extension data to the property
7065 `Qextension_data'.
7066
7067 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
7068
7069 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
7070 * nsterm.h: Fix prototype.
7071
7072 2010-03-31 Eli Zaretskii <eliz@gnu.org>
7073
7074 * xdisp.c (highlight_trailing_whitespace): Support highlight of
7075 trailing whitespace in right-to-left rows.
7076
7077 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7078
7079 Get rid of the direct_output optimizations.
7080 * keyboard.c (nonundocount): Remove extern declaration.
7081 (command_loop_1): Remove brittle optimisation for cheap and
7082 common operations.
7083 * xdisp.c (redisplay_internal): Don't bother checking
7084 redisplay_performed_directly_p any more.
7085 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
7086 any more.
7087 * dispnew.c (redisplay_performed_directly_p)
7088 (direct_output_for_insert, direct_output_forward_char):
7089 * dispextern.h (redisplay_performed_directly_p)
7090 (direct_output_for_insert, direct_output_forward_char): Remove.
7091 * cmds.c (nonundocount): Make it static.
7092
7093 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
7094
7095 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
7096
7097 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
7098
7099 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
7100 invisible (Bug#5766).
7101
7102 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
7103
7104 * xdisp.c (x_consider_frame_title, update_window_cursor):
7105 Remove HAVE_NS conditionals.
7106 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
7107
7108 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
7109 filename for the title.
7110 (ns_set_doc_edited): Do nothing if the selected window is a
7111 minibuffer window.
7112
7113 * nsterm.h: Add prototypes for ns_set_name_as_filename and
7114 ns_set_doc_edited.
7115
7116 * nsterm.m: Remove unneeded prototype.
7117
7118 2010-03-31 Glenn Morris <rgm@gnu.org>
7119
7120 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
7121 in the DOC file. (Bug#5336)
7122
7123 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
7124
7125 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
7126
7127 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7128
7129 * window.c (keys_of_window): Remove redundant/overridden bindings.
7130
7131 2010-03-30 Eli Zaretskii <eliz@gnu.org>
7132
7133 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
7134 Restore original behavior when the iterator is not bidi_p.
7135
7136 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
7137
7138 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
7139
7140 2010-03-30 Eli Zaretskii <eliz@gnu.org>
7141
7142 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
7143 are outside the range of cached character positions.
7144
7145 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
7146
7147 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
7148
7149 2010-03-30 Eli Zaretskii <eliz@gnu.org>
7150
7151 Initial support for bidirectional editing.
7152
7153 * Makefile.in (obj): Include bidi.o.
7154 (bidi.o): New target.
7155
7156 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
7157 ($(BLD)/bidi.$(O)): New target.
7158
7159 * bidi.c: New file.
7160
7161 * buffer.h (struct buffer): New members bidi_display_reordering
7162 and bidi_paragraph_direction.
7163
7164 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
7165 and bidi_paragraph_direction.
7166 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
7167 and bidi-paragraph-direction.
7168 (Fbuffer_swap_text): Swap the values of
7169 bidi_display_reordering and bidi_paragraph_direction.
7170
7171 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
7172 (bidi_type_t, bidi_dir_t): New types.
7173 (bidi_saved_info, bidi_stack, bidi_it): New structures.
7174 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
7175 prev_stop, base_level_stop, and eol_pos.
7176 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
7177 (IT_STACK_SIZE): Enlarge to 5.
7178 (struct glyph_row): New member reversed_p.
7179 <string_buffer_position>: Update prototype.
7180 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
7181 glyph_row if bidi_it.paragraph_dir == R2L.
7182 (struct glyph): New members resolved_level and bidi_type.
7183
7184 * dispnew.c (direct_output_forward_char): Give up if we need bidi
7185 processing or buffer's direction is right-to-left.
7186 (prepare_desired_row): Preserve the reversed_p flag.
7187 (row_equal_p): Compare the reversed_p attributes as well.
7188
7189 * xdisp.c (init_iterator): Initialize it->bidi_p.
7190 Call bidi_init_it and set it->paragraph_embedding from the current
7191 buffer's value of bidi_paragraph_direction.
7192 (reseat_1): Initialize bidi_it.first_elt.
7193 (set_iterator_to_next, next_element_from_buffer): Use the value of
7194 paragraph_embedding to determine the paragraph direction.
7195 (set_iterator_to_next): Under bidi reordering, call
7196 bidi_get_next_char_visually. Call bidi_paragraph_init if the
7197 new_paragraph flag is set in the bidi iterator.
7198 (next_element_from_buffer): If bidi_it.first_elt is set,
7199 initialize paragraph direction and find the first character to
7200 display in the visual order. If reseated to a middle of a line,
7201 prime the bidi iterator starting at the line's beginning.
7202 Handle the situation where we overstepped stop_charpos due to
7203 non-linearity of the bidi iteration. Likewise for when we back up
7204 beyond the previous stop_charpos. When moving across stop_charpos,
7205 record it in prev_stop.
7206 (display_line): Set row->end and it->start for the next row to the
7207 next character in logical order. Always extend reversed_p rows to
7208 the end of line, even if they end at ZV. Copy the reversed_p flag
7209 to the next glyph row. Keep calling set_cursor_from_row for
7210 bidi-reordered rows even if we already have a possible candidate
7211 for cursor position. Set row_end after all the row's glyphs have
7212 been produced, by looping over the glyphs. Record the position
7213 after EOL in it->eol_pos, and use it to set end_pos of the last
7214 row produced for a continued line.
7215 <Qright_to_left, Qleft_to_right>: New variables.
7216 (syms_of_xdisp): Initialize and staticpro them.
7217 (string_buffer_position_lim): New function.
7218 (string_buffer_position): Most of code moved to
7219 string_buffer_position_lim. Last argument and return value are
7220 now EMACS_INT; all callers changed.
7221 (set_cursor_from_row): Rewritten to support bidirectional text and
7222 reversed glyph rows.
7223 (text_outside_line_unchanged_p, try_window_id):
7224 Disable optimizations if we are reordering bidirectional text and the
7225 paragraph direction can be affected by the change.
7226 (append_glyph, append_composite_glyph)
7227 (produce_image_glyph, append_stretch_glyph): Set the
7228 resolved_level and bidi_type members of each glyph.
7229 (append_glyph): If the glyph row is reversed, prepend the glyph
7230 rather than appending it.
7231 (handle_stop_backwards): New function.
7232 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
7233 (reseat): call handle_stop_backwards to recompute prev_stop and
7234 base_level_stop for the new position.
7235 (handle_invisible_prop): Under bidi iteration, skip invisible text
7236 using bidi_get_next_char_visually. If we are `reseat'ed, init the
7237 paragraph direction. Update IT->prev_stop after skipping
7238 invisible text.
7239 (move_it_in_display_line_to): New variables prev_method
7240 and prev_pos. Compare for strict equality in
7241 BUFFER_POS_REACHED_P.
7242 (try_cursor_movement): Examine all the candidate rows that occlude
7243 point, to return the best match. If rows are bidi-reordered
7244 and point moved backwards, back up to the row that is not a
7245 continuation line, and start looking for a suitable row from
7246 there.
7247
7248 * term.c (append_glyph): Reverse glyphs by pre-pending them,
7249 rather than appending, if the glyph_row's reversed_p flag is set.
7250 Set the resolved_level and bidi_type members of each glyph.
7251
7252 * .gdbinit (pbiditype): New command.
7253 (pgx): Use it to display bidi level and type of the glyph.
7254 (pitx): Display some bidi information about the iterator.
7255 (prowlims, pmtxrows): New commands.
7256
7257 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
7258
7259 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
7260 * s/usg5-4.h (LIBS_DEBUG):
7261 * s/irix6-5.h (C_DEBUG_SWITCH):
7262 * s/gnu-linux.h (LIBS_DEBUG):
7263 * s/darwin.h (LIBS_DEBUG):
7264 * s/bsd-common.h (LIBS_DEBUG):
7265 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
7266 * m/iris4d.h (LIBS_DEBUG):
7267 * m/hp800.h (LIBS_DEBUG): Remove definitions.
7268
7269 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
7270 (LIBS_DEBUG): Remove definition.
7271
7272 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
7273
7274 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
7275 Windows.
7276
7277 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7278
7279 * process.c (Fmake_network_process): Don't call turn_on_atimers around
7280 `connect' (Bug#5723).
7281
7282 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
7283
7284 * process.c (Fmake_network_process): Call `select' for interrupted
7285 `connect' rather than creating new socket (Bug#5173).
7286
7287 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
7288
7289 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
7290
7291 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
7292
7293 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
7294
7295 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7296
7297 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
7298 XLoadQueryFont.
7299
7300 2010-03-24 Kenichi Handa <handa@m17n.org>
7301
7302 * coding.c (decode_coding_ccl): Fix previous change for the
7303 multibyte case.
7304 (encode_coding_ccl): Don't setup ccl program here. Fix for the
7305 case that the output buffer is fullfilled.
7306 (encode_coding): Setup ccl program here.
7307
7308 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
7309
7310 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
7311
7312 Simplify LIBS_MACHINE definitions.
7313 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
7314 * m/iris4d.h (LIBS_MACHINE): Likewise.
7315 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
7316 * s/aix4-2.h (LIBS_SYSTEM): ... here.
7317 * s/netbsd.h: Remove commented out code.
7318
7319 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
7320
7321 Remove dead code dealing with POSIX_SIGNALS.
7322 * atimer.c (set_alarm): Remove dead code, all USG systems define
7323 POSIX_SIGNALS.
7324 * data.c (arith_error): Likewise.
7325 * keyboard.c (input_available_signal, handle_user_signal)
7326 (interrupt_signal): Likewise.
7327 * process.c (sigchld_handler): Likewise.
7328 (create_process): Remove if 0 code. Remove HPUX conditional when
7329 !defined (POSIX_SIGNALS), it cannot be true.
7330 * syssignal.h: Remove USG5_4 and USG conditionals when
7331 !POSIX_SIGNALS, they cannot be true.
7332
7333 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
7334 NO_SOCK_SIGIO, not used anymore.
7335
7336 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
7337
7338 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
7339 support vax on BSDs.
7340
7341 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
7342 * s/aix4-2.h (ORDINARY_LINK): ... here.
7343
7344 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
7345
7346 * Makefile.in (abs_builddir): Define.
7347 (bootstrap_exe): Use it.
7348 (VPATH): Use $(srcdir) instead of @srcdir@.
7349
7350 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7351
7352 * Makefile.in (bootstrap_exe): Use an absolute name.
7353
7354 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7355
7356 Remove support for old GNU/Linux using libc version 5.
7357 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
7358 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
7359
7360 Consolidate redundant definitions in s/bsd-common.h.
7361 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7362 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7363 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
7364 doing it in all files that include this one.
7365 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7366 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7367 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7368 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7369 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7370 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7371 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7372 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7373 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7374
7375 Consolidate redundant definitions.
7376 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
7377 it's undefined in all files that include this one.
7378 (POSIX_SIGNALS): Define here instead of doing it in all files that
7379 include this one.
7380 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7381 (POSIX_SIGNALS): Do not define.
7382 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7383 (POSIX_SIGNALS): Do not define.
7384 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7385 (POSIX_SIGNALS): Do not define.
7386
7387 Remove support for old UNIX System V systems.
7388 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
7389 * s/usg-5-4-2.h: Remove.
7390
7391 Remove support for Solaris on PPC and for old versions.
7392 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
7393 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
7394 that cancel each other.
7395 * s/sol2-3.h:
7396 * s/sol2-4.h:
7397 * s/sol2-5.h: Remove.
7398 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
7399 (NO_REMAP): Remove, unused.
7400 (UNEXEC): Move definition ...
7401 * s/aix4-2.h (UNEXEC): ... here.
7402
7403 * s/openbsd.h: Remove support for non-ELF and for systems that do
7404 not support shared libraries.
7405 * s/netbsd.h:
7406 * s/freebsd.h: Likewise.
7407
7408 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7409
7410 Remove non-working support for lynxos 3.0.
7411 * s/lynxos.h: Remove file.
7412
7413 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
7414 COFF_BSD_SYMBOLS, nothing defines it anymore.
7415
7416 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7417
7418 Remove obsolete uses of HAVE_SHM.
7419 * emacs.c (standard_args):
7420 (Fdump_emacs):
7421 (syms_of_emacs): Remove code depending on HAVE_SHM.
7422
7423 * alloc.c: Remove HAVE_SHM dependent definition.
7424
7425 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
7426
7427 2010-03-18 Glenn Morris <rgm@gnu.org>
7428
7429 * emacs.c (USAGE4): Hard-code bug address.
7430 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
7431 (bug_reporting_address): Remove.
7432 (main): Don't call bug_reporting_address.
7433
7434 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
7435 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
7436
7437 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
7438
7439 * xfns.c (Fx_create_frame):
7440 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
7441 on left.
7442
7443 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
7444
7445 * editfns.c (Fformat): Account for string precision when computing
7446 field width (Bug#5710).
7447
7448 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
7449
7450 * xfns.c (Fx_create_frame): Set default to Qright.
7451
7452 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
7453 all window systems.
7454
7455 2010-03-12 Eli Zaretskii <eliz@gnu.org>
7456
7457 These changes remove termcap.c from the build on Posix platforms.
7458 * Makefile.in (termcapobj): Move termcap.o from here...
7459 (MSDOS_OBJ): ...to here.
7460 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
7461 now identical to when LIBS_TERMCAP is defined.
7462
7463 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
7464
7465 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
7466
7467 * config.in: Regenerated. (See top-level ChangeLog.)
7468
7469 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
7470
7471 * Branch for 23.2.
7472
7473 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7474
7475 Cleanup setup of gl_state in various parts of the code.
7476 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
7477 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
7478 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
7479 (skip_chars):
7480 * regex.c (regex_compile): Use it.
7481 (re_compile_pattern): Don't set gl_state.current_syntax_table since
7482 it's now set in regex_compile when/if we need it.
7483
7484 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
7485
7486 Make it possible to C-g in a tight bytecode loop again (bug#5680).
7487 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
7488 (QUIT): Use it to consolidate code and remove redundancy.
7489 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
7490
7491 * regex.c (regex_compile): Setup gl_state as well.
7492
7493 * syntax.c (skip_chars): Setup gl_state (bug#3823).
7494 (in_classes): Use CONSP before XCAR/XCDR.
7495
7496 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
7497
7498 * keymap.c (Fwhere_is_internal): Use Fequal to compare
7499 definitions, so that keyboard macros are correctly handled
7500 (Bug#5481).
7501
7502 2010-03-02 Eli Zaretskii <eliz@gnu.org>
7503
7504 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
7505 text that could be relocated inside the call to emacs_mule_char.
7506 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
7507 (CODING_DECODE_CHAR): Add a comment describing its purpose.
7508
7509 2010-03-02 Kenichi Handa <handa@m17n.org>
7510
7511 * character.c (parse_str_as_multibyte): Fix handling of the
7512 multibyte form of raw-bytes.
7513 (str_as_multibyte): Likewise.
7514
7515 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
7516 form of raw-bytes.
7517
7518 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
7519
7520 * charset.c (load_charset_map_from_file)
7521 (load_charset_map_from_vector): Zero out allocated
7522 charset_map_entries before using them.
7523
7524 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
7525
7526 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
7527
7528 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
7529
7530 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
7531 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
7532
7533 2010-02-26 Kenichi Handa <handa@m17n.org>
7534
7535 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
7536
7537 * xdisp.c (reseat_to_string): Fix previous change.
7538
7539 2010-02-26 David Reitter <david.reitter@gmail.com>
7540
7541 * nsfont.m (nsfont_draw): ns_antialias_text should be a
7542 Lisp_Object (Bug#4736).
7543
7544 2010-02-25 Kenichi Handa <handa@m17n.org>
7545
7546 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
7547
7548 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
7549
7550 * xterm.c (XTflash): Move declarations before statements.
7551
7552 * gtkutil.c (xg_get_gdk_display): Remove (unused).
7553 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
7554 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
7555 (xg_create_tool_bar): Remove unused variables.
7556 (x_wm_set_size_hint): Move declarations before statements.
7557 (xg_create_frame_widgets): Remove variable grav.
7558
7559 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
7560
7561 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
7562
7563 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7564
7565 * term.c (fatal): Add a final \n if needed (bug#5596).
7566
7567 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
7568
7569 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
7570
7571 2010-02-18 Glenn Morris <rgm@gnu.org>
7572
7573 * callint.c (Finteractive): Doc fix.
7574
7575 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
7576
7577 * coding.c (record_conversion_result):
7578 Handle CODING_RESULT_INSUFFICIENT_DST.
7579 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
7580 memory allocation error.
7581
7582 2010-02-17 Kenichi Handa <handa@m17n.org>
7583
7584 * coding.c (decode_coding_ccl): Don't setup ccl program here.
7585 Fix for the case that the output buffer is fullfilled.
7586 (decode_coding): Setup ccl program here. Keep looping when the
7587 decoder stopped because the output buffer is
7588 fullfilled (bug#5534).
7589
7590 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
7591
7592 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
7593
7594 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
7595 bug #5571.
7596 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
7597 overdrawn.
7598
7599 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
7600
7601 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
7602 doing_interact here.
7603 (ice_connection_closed): New function.
7604 (x_session_check_input, smc_die_CB, ice_io_error_handler)
7605 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
7606 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
7607 returns I/O error.
7608 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
7609 bug #5512.
7610
7611 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
7612
7613 * nsfont.m (nsfont_open): The system's value for the font descent
7614 is negative, so round it down to avoid clipping.
7615
7616 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
7617
7618 * charset.c (load_charset_map_from_file)
7619 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
7620 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
7621
7622 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
7623
7624 * charset.c (load_charset_map_from_file): Allocate large
7625 charset_map_entries structure on the heap rather than the stack.
7626 (Bug#5526).
7627
7628 2010-01-31 Kenichi Handa <handa@m17n.org>
7629
7630 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
7631 size in NAME is invalid, return -1 (Bug#5396).
7632
7633 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
7634
7635 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
7636 <deactivated@gmail.com> (Bug#3605).
7637
7638 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
7639
7640 * fileio.c (Frename_file): Correctly rename symlinks to
7641 directories (Bug#5496).
7642
7643 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
7644
7645 * nsterm.m (ns_ring_bell): Handle visible bell like X.
7646
7647 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
7648
7649 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
7650
7651 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
7652
7653 * frame.c (DEFAULT_ROWS): Change default to 35.
7654
7655 * xfns.c (x_default_font_parameter): Change default XFT font to
7656 monospace-10 (Bug#3643).
7657
7658 2010-01-29 Eli Zaretskii <eliz@gnu.org>
7659
7660 * w32inevt.c (key_event): Remove unnecessary comparison of
7661 event->uChar.AsciiChar with 128.
7662
7663 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * fileio.c (Frename_file): Fix last change (Bug#5487).
7666
7667 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
7668
7669 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
7670
7671 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
7672
7673 * xfns.c (Fx_create_frame): Remove window size matching code from
7674 2010-01-15.
7675 (x_get_current_desktop, x_get_desktop_workarea): Remove.
7676
7677 2010-01-27 Jason Rumney <jasonr@gnu.org>
7678
7679 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
7680 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7681
7682 2010-01-27 Kenichi Handa <handa@m17n.org>
7683
7684 * regex.c (analyse_first): Fix setting of fastmap for unibyte
7685 pattern string (Bug#4209).
7686
7687 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
7688
7689 * fileio.c (Frename_file): Call copy-directory and
7690 delete-directory for directories, in order to handle cross-device
7691 renaming (Bug#3353).
7692
7693 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
7694
7695 * xfns.c (Fx_create_frame): If frame height is too big, try
7696 sizes 24 and 10. Bug #3643.
7697
7698 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7699
7700 Try and fix bug#788, hopefully for real this time.
7701 * keymap.c (shadow_lookup): Add `remap' arg.
7702 (describe_map, describe_vector): Update calls to shadow_lookup.
7703 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
7704 `remapped' so this flag is applicable to `sequence'. Be careful to
7705 perform remapping during shadow_lookup check of remapped_sequences.
7706
7707 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
7708
7709 * image.c (png_load): Use png_sig_cmp instead of the obsolete
7710 png_check_sig, which has been removed in libpng 1.4.
7711
7712 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
7713
7714 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
7715 lacks this header file).
7716
7717 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7718
7719 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
7720 as in Emacs 22.
7721
7722 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7723
7724 * lisp.h (make_pure_string): String pointer arg now points to const.
7725
7726 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
7727 args now point to const.
7728
7729 2010-01-22 Eli Zaretskii <eliz@gnu.org>
7730
7731 * lread.c (Fload): Don't treat files without .elc extension as
7732 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
7733 them. (bug#5303)
7734
7735 2010-01-20 Kenichi Handa <handa@m17n.org>
7736
7737 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
7738 treat the source as actual byte sequence.
7739
7740 2010-01-19 Alan Mackenzie <acm@muc.de>
7741
7742 Fix spurious before-change-functions invocation from (insert ?\n).
7743 * textprop.c (set_text_properties): Rename parameter
7744 `signal_after_change_p' to `coherent_change_p', and make the
7745 invocation of `modify_region' conditional on it.
7746
7747 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
7748
7749 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
7750 for debug purpose.
7751 (syms_of_xsettings): Declare xft-settings.
7752
7753 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
7754
7755 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
7756
7757 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7758
7759 * xterm.c (event_handler_gdk): Block input (Bug#5037).
7760
7761 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
7762
7763 * emacs.c (standard_args): Adjust arg priorities to reflect how
7764 they are processed in startup.el.
7765
7766 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
7767
7768 * Makefile.in (lisp, shortlisp): Update.
7769
7770 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7771
7772 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
7773 code, link the new kboard into all_kboard before running Lisp code,
7774 and protect the new terminal with GCPRO (Bug#5365).
7775 (x_term_init): Remove unused var `atom'.
7776 (x_delete_display, x_delete_terminal): Remove unused var `i'.
7777
7778 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
7779
7780 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
7781 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
7782 to find out usable size of the desktop. Don't make frames larger than
7783 this. Bug #3643.
7784
7785 2010-01-15 Kenichi Handa <handa@m17n.org>
7786
7787 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
7788
7789 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
7790
7791 * nsterm.m (Qnone): Define.
7792
7793 * nsfns.m (Qnone): Move definition to nsterm.m.
7794
7795 2010-01-14 Kenichi Handa <handa@m17n.org>
7796
7797 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
7798 systems.
7799
7800 2010-01-14 Kenichi Handa <handa@m17n.org>
7801
7802 Make auto-composition work on all buffers even if they are
7803 fundamental mode.
7804
7805 * composite.c (Vauto_composition_mode): New variable.
7806 (composition_compute_stop_pos): Check Vauto_composition_mode
7807 instead of Vauto_composition_function.
7808 (composition_adjust_point, Ffind_composition_internal): Likewise.
7809 (syms_of_composite): Declare Lisp variable
7810 "auto-composition-mode" here.
7811
7812 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
7813
7814 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
7815 during call to vendor-specific-keysyms (Bug#5365).
7816
7817 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7818
7819 * keyboard.c (input_available_signal) [SYNC_INPUT]:
7820 Call SIGNAL_THREAD_CHECK (Bug#5333).
7821
7822 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
7823 Call SIGNAL_THREAD_CHECK.
7824
7825 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
7826
7827 Try to fix bug#5314. This is probably not the final word, tho.
7828 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
7829 recent-auto-save-p as a side-effect.
7830 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
7831 * buffer.c (Fkill_buffer, reset_buffer):
7832 * editfns.c (Fsubst_char_in_region):
7833 * fileio.c (Finsert_file_contents, Fdo_auto_save)
7834 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
7835
7836 2010-01-13 Kenichi Handa <handa@m17n.org>
7837
7838 Display buffer name, etc. in mode line by composing correctly.
7839
7840 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
7841 STRING is not nil.
7842 (display_mode_element): Adjust for the change of
7843 decode_mode_spec and display_line.
7844 (decode_mode_spec): Change arg MULTIBYTE to STRING.
7845 (display_string): Handle the case that STRING is non-null and
7846 LISP_STRING is not nil.
7847
7848 * xterm.c (x_draw_composite_glyph_string_foreground):
7849 Pay attention to s->face->overstrike.
7850
7851 * composite.c (composition_reseat_it): Don't check PT if STRING is
7852 non nil.
7853
7854 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7855
7856 * keyboard.c (read_char): Don't apply previous change when current
7857 buffer is unchanged by command execution.
7858
7859 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
7860
7861 * keyboard.c (read_char): Return after executing from special map.
7862
7863 2010-01-12 Glenn Morris <rgm@gnu.org>
7864
7865 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
7866 bug-gnu-emacs rather than emacs-pretest-bug.
7867
7868 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
7869
7870 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
7871 initializing the Lisp variables that depend on them.
7872
7873 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7874
7875 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
7876 Clear areas that will not be updated after change of menu bar lines.
7877 Clear the menu bar window's current matrix when the window gets empty.
7878
7879 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
7880
7881 * intervals.h, textprop.c (extend_property_ranges): Return value
7882 and args changed. Discard properties that begin at or after the
7883 new end (Bug#5306).
7884
7885 * editfns.c (Fformat): Caller changed.
7886
7887 * nsterm.m (ns_set_default_prefs): Delete function.
7888 (syms_of_nsterm): Initialize ns_command_modifier,
7889 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
7890 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
7891
7892 * xdisp.c (pos_visible_p): Check for invisible text at the correct
7893 position (Bug#4040).
7894
7895 2010-01-09 Eli Zaretskii <eliz@gnu.org>
7896
7897 * editfns.c (Ffloat_time): Doc fix.
7898
7899 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
7900
7901 * xfns.c (Fx_create_frame): Don't create frame larger than display
7902 by default bug#3643.
7903
7904 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7905
7906 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
7907 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
7908 windows above internal border.
7909
7910 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
7911 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
7912 windows above internal border.
7913
7914 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
7915 tool bar windows specially.
7916
7917 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
7918
7919 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
7920 specially.
7921 (XTflash): Take account of menu bar height.
7922
7923 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
7924 specially.
7925
7926 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
7927
7928 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
7929 also be true before we can return early (bug #5339).
7930
7931 2010-01-06 David Reitter <david.reitter@gmail.com>
7932
7933 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
7934 (Fns_display_usable_bounds): Rewrite, computing bounds properly
7935 (Bug#3233).
7936
7937 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
7938
7939 * font.c (font_open_entity): Enable chache and call cached_font_ok
7940 for the driver if defined.
7941 (QCuser_spec): New symbol.
7942 (font_spec_from_name): Save name as user-spec.
7943 (font_load_for_lface): Keep user-spec instead of name.
7944 (font_open_by_name): Save name as user-spec.
7945 (syms_of_font): Initialize QCuser_spec.
7946 (font_clear_prop): Clear name if it exists in font (bug#5157).
7947
7948 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
7949 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
7950 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
7951
7952 * font.h (struct font_driver): Add cached_font_ok.
7953
7954 * xterm.c (x_clear_frame): Queue draw for scroll bars.
7955
7956 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
7957
7958 * xterm.c (x_new_font): Move code for setting rows/cols before
7959 resizing ...
7960 (x_set_window_size): ... to here. Bug #2568.
7961
7962 * gtkutil.c (xg_clear_under_internal_border): New function.
7963 (xg_frame_resized, xg_frame_set_char_size):
7964 Call xg_clear_under_internal_border.
7965 (xg_update_scrollbar_pos): Clear under old scroll bar position.
7966
7967 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
7968
7969 * keyboard.c (read_key_sequence): Catch keyboard switch after
7970 making a new tty frame (Bug#5095).
7971
7972 2010-01-05 Kenichi Handa <handa@m17n.org>
7973
7974 * fontset.c (fontset_find_font): Fix getting the frame pointer.
7975
7976 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7977
7978 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7979 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7980 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7981
7982 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
7983
7984 * dbusbind.c (xd_add_watch): Improve debug message.
7985 (xd_remove_watch): Improve debug message. If DATA is the session
7986 bus, unset D-Bus session environment.
7987 (Fdbus_init_bus): Pass the bus as argument to
7988 dbus_connection_set_watch_functions. (Bug#5283)
7989
7990 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
7991
7992 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7993
7994 * lread.c (syms_of_lread): Make it clearer that these are the
7995 names of loaded files (Bug#5068).
7996
7997 * eval.c (run_hook_with_args): Handle the case where the global
7998 value has the obsolete single-function form (Bug#5026).
7999
8000 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
8001
8002 * minibuf.c (Fall_completions): Minor optimization.
8003
8004 2009-12-26 Eli Zaretskii <eliz@gnu.org>
8005
8006 * .gdbinit (pgx): Fix display of composite glyphs.
8007 Display cmp.from and cmp.to as well.
8008 (pitx): Fix last change.
8009
8010 2009-12-25 Kenichi Handa <handa@m17n.org>
8011
8012 * composite.h (composition_adjust_point): Update prototype.
8013
8014 * composite.c (composition_reseat_it): Don't make a composition
8015 spanning over point.
8016 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
8017 composable characters.
8018 (composition_adjust_point): New arg NEW_PT. Callers changed.
8019
8020 * keyboard.c (command_loop_1): Force redisplay if the last point
8021 was within a composition.
8022 (adjust_point_for_property): Don't adjust point for automatic
8023 composition when called after buffer modification.
8024
8025 2009-12-19 Eli Zaretskii <eliz@gnu.org>
8026
8027 * .gdbinit (pitx): Don't use enum names, use their values.
8028 Remove reference to non-existing value GET_FROM_COMPOSITION.
8029 (pgx): Don't use enum names, use their values.
8030 (pitmethod): New helper command.
8031 (pitx): Use it to display iteration method.
8032 (pgrowit): New command.
8033
8034 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
8035
8036 Update dependencies in Makefile.in.
8037
8038 * Makefile.in (alloc.o): Depend on termhooks.h.
8039 (atimer.o): Depend on blockinput.h.
8040 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
8041 and frame.h.
8042 (callint.o): Depend on systime.h, coding.h, and composite.h.
8043 (callproc.o): Depend on buffer.h.
8044 (casefiddle.o): Don't depend on charset.h.
8045 (casetab.o): Depend on character.h.
8046 (ccl.o): Depend on composite.h.
8047 (chartab.o): Depend on ccl.h.
8048 (cm.o): Depend on dispextern.h.
8049 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
8050 (coding.o): Don't depend on $(INTERVALS_H).
8051 (composite.o): Don't depend on dispextern.h explicitly (it's in
8052 $(INTERVALS_H)). Depend on ccl.h.
8053 (data.o): Depend on systime.h, coding.h, composite.h,
8054 dispextern.h, font.h, and ccl.h.
8055 (dired.o): Depend on composite.h.
8056 (dispnew.o): Depend on coding.h. Don't depend explicitly on
8057 composite.h (it's in $(INTERVALS_H)).
8058 (doc.o): Depend on systime.h, coding.h, and composite.h.
8059 (editfns.o): Don't depend explicitly on dispextern.h.
8060 (emacs.o): Depend on frame.h and coding.h.
8061 (eval.o): Depend on coding.h, composite.h, and xterm.h.
8062 (fileio.o): Depend on frame.h and commands.h. Don't depend
8063 explicitly on dispextern.h.
8064 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
8065 composite.h.
8066 (fns.o): Don't depend on termhooks.h.
8067 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
8068 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
8069 coding.h, $(INTERVALS_H), window.h, xterm.h.
8070 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
8071 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
8072 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
8073 fontset.h, ccl.h, and ftfont.h.
8074 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
8075 (gtkutil.o): Depend on dispextern.h and composite.h.
8076 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
8077 termhooks.h, and ccl.h.
8078 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
8079 (intervals.o): Depend on systime.h and coding.h.
8080 (keyboard.o): Depend on composite.h and coding.h.
8081 (keymap.o): Depend on coding.h and frame.h.
8082 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
8083 (macros.o): Depend on systime.h, coding.h, and composite.h.
8084 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
8085 and atimer.h.
8086 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
8087 dispextern.h explicitly.
8088 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
8089 Don't depend explicitly on dispextern.h and composite.h.
8090 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
8091 (regex.o): Don't depend on charset.h.
8092 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
8093 (search.o): Don't depend explicitly on composite.h.
8094 (sound.o): Depend on atimer.h and systime.h.
8095 (syntax.o): Don't depend explicitly on composite.h.
8096 (sysdep.o): Depend on coding.h and composite.h.
8097 (term.o): Depend on xterm.h and buffer.h.
8098 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
8099 (textprop.o): Don't depend on dispextern.h explicitly.
8100 (undo.o): Depend on dispextern.h.
8101 (window.o): Depend on coding.h and termhooks.h. Don't depend on
8102 dispextern.h and composite.h explicitly.
8103 (xdisp.o): Depend on ccl.h.
8104 (xfaces.o): Depend on coding.h and ccl.h.
8105 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
8106 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
8107 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
8108 ftfont.h.
8109 (xgselect.o): New dependency.
8110 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
8111 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
8112 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
8113 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
8114 (xsmfns.o): Depend on frame.h and dispextern.h.
8115 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
8116 sysselect.h.
8117
8118 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
8119
8120 * font.c (Fclear_font_cache): Pass correct cache argument to
8121 font_clear_cache.
8122
8123 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
8124
8125 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
8126 twice.
8127
8128 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
8129
8130 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
8131 calling file-remote-p. Reported by Jim Meyering.
8132
8133 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
8134
8135 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
8136 avoid compiler warnings. (Bug #5217)
8137
8138 2009-12-14 Kenichi Handa <handa@m17n.org>
8139
8140 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
8141 in 8-bit encoding.
8142
8143 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
8144
8145 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
8146 tooltip windows.
8147
8148 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
8149
8150 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
8151 Xatom_net_window_type.
8152
8153 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
8154 Xatom_net_window_type.
8155
8156 * xterm.c (my_log_handler): New function.
8157 (x_term_init): Set my_log_handler as log handler during gtk_init
8158 so we can filter out buggy messages. (Bug #5120).
8159
8160 * xterm.c (xg_scroll_callback): Parameter list changed,
8161 use parameter GtkScrollType to determine scroll/line/page.
8162 Only allow dragging if a button < 4 is grabbed (bug #5177).
8163 (xg_end_scroll_callback): New function.
8164 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
8165 xg_create_scroll_bar.
8166
8167 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
8168 (scroll_end_callback): Remove.
8169 (xg_create_scroll_bar): Add parameter end_callback, bind it to
8170 button-release-event. Replace value-changed event with change-value,
8171 bug #5177.
8172 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
8173 bug #5177.
8174
8175 * gtkutil.h (XG_LAST_SB_DATA): Remove.
8176 (xg_create_scroll_bar): Add GCallback end_callback.
8177
8178 * xftfont.c (QClcdfilter): New variable.
8179 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
8180 (syms_of_xftfont): Initialize QClcdfilter.
8181
8182 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
8183
8184 * xsettings.c (struct xsettings): Add member seen.
8185 (parse_xft_settings): Update member seen with what we have read.
8186 Return non-zero if Xft-settings have been parsed, 0 otherwise.
8187 (apply_xft_settings): Only update Xft settings with what member seen
8188 indicates as new.
8189
8190 2009-12-12 Eli Zaretskii <eliz@gnu.org>
8191
8192 * dispextern.h (struct text_pos): Use EMACS_INT.
8193 (struct glyph): Use EMACS_INT for charpos.
8194 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
8195 region_beg_charpos, region_end_charpos,
8196 redisplay_end_trigger_charpos, and also for
8197 iterator_stack_entry.end_charpos and
8198 iterator_stack_entry.stop_charpos.
8199
8200 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
8201
8202 * gtkutil.c (scroll_end_callback): New function (bug #5177).
8203 (xg_create_scroll_bar): Call scroll_end_callback on button release
8204 event (bug #5177).
8205 (xg_event_is_for_scrollbar): != replaced with ==.
8206
8207 2009-12-12 Kenichi Handa <handa@m17n.org>
8208
8209 * ftfont.c (struct ftfont_info): New member matrix.
8210 (ftfont_open): Setup xftfont_info->matrix.
8211 (MFLTFontFT): New member matrix.
8212 (FLOOR, CEIL, ROUND): New macros.
8213 (ftfont_get_metrics): Handle matrix transformation.
8214 (ftfont_shape_by_flt): New arg matrix. Callers changed.
8215
8216 * xftfont.c (struct xftfont_info): New member matrix.
8217 (xftfont_open): Setup xftfont_info->matrix.
8218
8219 2009-12-10 Kenichi Handa <handa@m17n.org>
8220
8221 * xdisp.c (append_space_for_newline): Consider face-remapping.
8222
8223 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
8224
8225 * xsettings.c: Include "keyboard.h".
8226
8227 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
8228
8229 Fix implicit function declarations.
8230 * cmds.c: Include "frame.h".
8231 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
8232 * frame.h: Move declaration of delete_frame outside of
8233 HAVE_WINDOW_SYSTEM.
8234
8235 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
8236
8237 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
8238
8239 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
8240 GTK builds.
8241
8242 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
8243
8244 * unexelf.c (unexec): Don't search for .data twice.
8245
8246 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
8247
8248 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
8249 if push failed.
8250 (handle_line_prefix): Set avoid_cursor_p here. Check return value
8251 of push_display_prop (Bug#5000).
8252
8253 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
8254 value of font_list_entities (Bug#5085).
8255
8256 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
8257
8258 Fix `string-to-number' to deal consistently with integers and floats.
8259 * lread.c (isfloat_string): New argument ignore_trailing to accept all
8260 trailing characters, not just whitespace.
8261 (read1): Pass new arg 0 to keep old behavior.
8262 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
8263 trailing chars, as it is already done for integers. Doc fixes.
8264 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
8265
8266 2009-12-04 Eli Zaretskii <eliz@gnu.org>
8267
8268 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
8269 Delete unused enumeration value.
8270
8271 2009-12-03 Eli Zaretskii <eliz@gnu.org>
8272
8273 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
8274
8275 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
8276
8277 * process.c (Fmake_network_process): Fix up the tests for
8278 "connectionless socket", so they DTRT for seqpacket sockets as well.
8279
8280 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
8281
8282 * process.c (Qseqpacket): New symbol.
8283 (HAVE_SEQPACKET): New macro.
8284 (Fmake_network_process): Accept new :type `seqpacket'.
8285 (init_process): Add `seqpacket' feature when applicable.
8286 (syms_of_process): Initialize Qseqpacket.
8287
8288 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8289
8290 * font.c (font_load_for_lface, font_open_by_name): Don't store name
8291 if entity is Qnil.
8292
8293 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * print.c (print_preprocess): Preprocess the key_and_value table of
8296 hashtables, even tho they're "hidden" (bug#5082).
8297
8298 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
8299
8300 * frame.c (frame_make_pointer_invisible)
8301 (frame_make_pointer_visible): Declare f before statements.
8302
8303 2009-11-28 Eli Zaretskii <eliz@gnu.org>
8304
8305 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
8306 omitted dependencies on lisp.h.
8307
8308 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
8309
8310 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
8311 is NULL.
8312
8313 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
8314
8315 * frame.c (frame_make_pointer_invisible)
8316 (frame_make_pointer_visible): Just return if there isn't any selected
8317 frame.
8318
8319 * search.c (simple_search): Remove warning by making *p const.
8320
8321 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
8322
8323 * xdisp.c (power_letter): Remove duplicate const.
8324
8325 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
8326
8327 * term.c (delete_tty): Remove check for last terminal (bug#4970).
8328
8329 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
8330 defaults (bug #5025).
8331
8332 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
8333
8334 * insdel.c (adjust_markers_for_delete): Move it in the
8335 right direction! (bug#4803)
8336
8337 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8338
8339 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
8340
8341 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
8342
8343 2009-11-24 Glenn Morris <rgm@gnu.org>
8344
8345 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
8346
8347 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
8348
8349 * Makefile.in: Must create deps for ecrt0.o in its rule.
8350
8351 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
8352 because that is what Gtk+ font dialog understands.
8353
8354 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
8355 of Fcopy_sequence.
8356 (font_open_by_name): Put name given into QCname for font-object returned.
8357
8358 * frame.c (x_set_font): Save original font name as frame parameter
8359 font-parameter.
8360
8361 * xsettings.c (set_default_xft_settings): New function.
8362 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
8363 is found.
8364
8365 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
8366
8367 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
8368 searching backwards through multibyte buffer.
8369
8370 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
8371
8372 * xterm.c: #include xgselect.h.
8373 (x_initialize): Call xgselect_initialize.
8374
8375 * xsettings.c (something_changedCB): C++ comments => C comments.
8376 (init_gconf): Do not deal with any GLib file descriptors, xg_select
8377 does that now.
8378
8379 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
8380 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
8381 (scroll_bar_button_cb): Remove.
8382 (create_menus): C++ comments => C comments. Don't bind grab-notify
8383 event.
8384 (xg_create_scroll_bar): Don't bind button-press-event and
8385 button-release-event.
8386
8387 * process.c: Include xgselect.h if defined (USE_GTK) ||
8388 defined (HAVE_GCONF).
8389 (wait_reading_process_output): Call xg_select for the same condition.
8390
8391 * xgselect.c (xg_select): New function to better integrate with
8392 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
8393
8394 * xgselect.h: New file, declare xg_select, xgselect_initialize.
8395
8396 * Makefile.in (XOBJ): Add xgselect.o.
8397
8398 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
8399
8400 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
8401 Remove ignored second argument. All callers changed.
8402 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
8403 (RE_STRING_CHAR_AND_LENGTH): Likewise.
8404 * xdisp.c (string_char_and_length): Likewise.
8405
8406 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
8407
8408 * xterm.c (x_new_font):
8409 * print.c (print_object):
8410 * cmds.c (Fself_insert_command): Move declarations before statements.
8411
8412 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
8413
8414 * s/cygwin.h: Remove unneeded linker flags.
8415
8416 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
8417
8418 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
8419
8420 * xsettings.h: Declare xsettings_get_system_font.
8421
8422 * xsettings.c (xsettings_get_system_font): New function.
8423 (init_gconf): No use initiating gconf unless we have Xft also.
8424 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
8425 HAVE_GCONF.
8426
8427 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
8428 add a blank entry so it doesn't collapse into nothing.
8429
8430 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8431
8432 * lread.c (Funintern): Comment out last change.
8433
8434 2009-11-19 Richard Stallman <rms@gnu.org>
8435
8436 * lread.c (Funintern): Error if symbol is t or nil.
8437
8438 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8439
8440 * insdel.c (make_gap_larger): Don't make as many assumptions about the
8441 representation of Lisp integers.
8442 Reported by MJ Chan <mjchan.inbox@gmail.com>.
8443
8444 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8445
8446 * lisp.h: Remove declaration of Ffont_get_system_font.
8447 * xfns.c: Move include of "xsettings.h".
8448 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
8449
8450 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
8451
8452 * xsettings.c (something_changedCB, Ffont_get_system_font):
8453 Check use_system_font.
8454 (syms_of_xsettings): DEFVAR font-use-system-font.
8455
8456 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8457
8458 * xfns.c (x_default_font_parameter): Remove dead assignment.
8459
8460 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
8461
8462 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
8463
8464 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
8465 not have FC_LCD_*. #define them if not there.
8466
8467 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
8468
8469 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
8470
8471 * xterm.c (handle_one_xevent): Call xft_settings_event for
8472 ClientMessage, PropertyNotify and DestroyNotify.
8473 (x_term_init): If we have XFT, get DPI from Xft.dpi.
8474 Call xsettings_initialize.
8475
8476 * xftfont.c (xftfont_fix_match): New function.
8477 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
8478 Call xftfont_fix_match after XftFontMatch.
8479
8480 * xfont.c (xfont_driver): Initialize all members.
8481
8482 * xfns.c (x_default_font_parameter):
8483 Try font from Ffont_get_system_font.
8484 Do not get font from x_default_parameter if we got one from
8485 Ffont_get_system_font.
8486 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
8487
8488 * w32font.c (w32font_driver): Initialize all members.
8489
8490 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
8491
8492 * lisp.h: Declare syms_of_xsettings.
8493
8494 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
8495 Handle CONFIG_CHANGED_EVENT.
8496
8497 * ftfont.c (ftfont_filter_properties): New function.
8498
8499 * frame.c (x_set_font): Remove unused variable lval.
8500
8501 * font.h (struct font_driver): Add filter_properties.
8502
8503 * font.c (font_put_extra): Don't return if val is nil, it means
8504 boolean option is off.
8505 (font_parse_fcname): Collect all extra properties in extra_props
8506 and call filter_properties for all drivers with extra_props and
8507 font as parameter.
8508 (font_open_entity): Do not use cache, it does not pick up new
8509 fontconfig settings like hinting.
8510 (font_load_for_lface): If spec had a name in it, store it in entity.
8511
8512 * emacs.c (main): Call syms_of_xsettings.
8513
8514 * config.in: HAVE_GCONF is new.
8515
8516 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
8517 xsettings.o is new.
8518
8519 2009-11-17 Kenichi Handa <handa@m17n.org>
8520
8521 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
8522 back to the default font in case that no suitable font is found.
8523
8524 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8525
8526 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
8527 Suggested by Chad Brown <yandros@mit.edu>.
8528 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
8529
8530 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
8531
8532 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
8533
8534 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
8535
8536 * Makefile.in: Ignore errors from mkdir when creating deps directory.
8537
8538 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
8539
8540 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
8541 has a parent.
8542
8543 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
8544 dependency files in deps/. Include those files into Makefile.
8545
8546 * config.in: Generated (AUTO_DEPEND).
8547
8548 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
8549
8550 * dbusbind.c (Vdbus_registered_objects_table): Rename from
8551 Vdbus_registered_functions_table, because it contains also
8552 properties. Fix docstring.
8553 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
8554
8555 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
8556
8557 * alloc.c (mark_object): Don't reprocess marked strings.
8558 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
8559 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
8560
8561 2009-11-13 Kenichi Handa <handa@m17n.org>
8562
8563 * category.c (word_boundary_p): Adjust for the change of the
8564 semantics of Vword_combining_categories.
8565 (Vword_combining_categories): Describe the slight change of the
8566 semantics.
8567
8568 2009-11-13 Eli Zaretskii <eliz@gnu.org>
8569
8570 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
8571
8572 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
8573
8574 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
8575
8576 * xdisp.c (syms_of_xdisp): Fix typo in last change.
8577
8578 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
8579
8580 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
8581
8582 2009-11-11 David Reitter <david.reitter@gmail.com>
8583
8584 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
8585 variables to fix 2009-11-09 change.
8586
8587 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
8588
8589 * process.c (ifflag_def): Make flag_sym constant.
8590 (Fnetwork_interface_info): Use a constant pointer.
8591 (ifflag_table):
8592 * xfns.c (cursor_bits):
8593 * xdisp.c (power_letter):
8594 * termcap.c (speeds, esctab):
8595 * sysdep.c (baud_convert):
8596 * keyboard.c (lispy_accent_codes, modifier_names):
8597 * image.c (xbm_format, xpm_format, pbm_format, png_format)
8598 (jpeg_format, tiff_format, gif_format, svg_format)
8599 (interlace_start, interlace_increment, gs_format):
8600 * gtkutil.c (separator_names):
8601 * fringe.c (swap_nibble):
8602 * fns.c (base64_value_to_char, base64_char_to_value):
8603 * fileio.c (make_temp_name_tbl):
8604 * coding.c (suffixes): Make constant.
8605
8606 * frame.c (make_initial_frame):
8607 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
8608 build_string.
8609 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
8610
8611 * s/freebsd.h:
8612 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
8613
8614 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
8615 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
8616
8617 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
8618 * xterm.c (syms_of_xterm):
8619 * xfaces.c (syms_of_xfaces):
8620 * xdisp.c (syms_of_xdisp):
8621 * lread.c (syms_of_lread):
8622 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
8623 build_string.
8624
8625 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
8626
8627 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8628
8629 * fns.c (Fplist_get): Merge the active and the commented out code.
8630
8631 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8632
8633 * keyboard.h: Declare timer_check.
8634
8635 * keyboard.c (timer_check_2): New function that does what the old
8636 timer_check did.
8637 (timer_check): Call timer_check_2 until -1 or a non-zero time is
8638 returned, i.e. don't return -1 with timers pending.
8639
8640 * process.c: Remove extern declaration of timer_check.
8641
8642 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
8643 even if timer_check returned -1.
8644
8645 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
8646 xg_dialog_data.
8647 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
8648 the event loop.
8649 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
8650 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
8651 Destroy the dialog after xg_dialog_run.
8652
8653 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8654
8655 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
8656
8657 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8658
8659 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
8660
8661 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
8662
8663 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
8664
8665 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
8666
8667 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
8668 w32menu.c, and nsmenu.m.
8669 Simplify the obsolete case where position is nil.
8670 (cleanup_popup_menu): New function, moved from nsmenu.m.
8671 (struct skp): Remove slot `notreal'.
8672 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
8673 adjust callers.
8674 (single_menu_item): Adjust call to parse_menu_item.
8675 (syms_of_menu): Defsubr x-popup-menu.
8676 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
8677 (keymap_panes): Don't export any more.
8678 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
8679 (xmenu_show): Declare.
8680 * keyboard.c (parse_menu_item): Remove arg `notreal'.
8681 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
8682 * keyboard.h (parse_menu_item): Update declaration.
8683 * xmenu.c (Fx_popup_menu): Remove.
8684 (syms_of_xmenu): Don't defsubr x-popup-menu.
8685 * w32menu.c (Fx_popup_menu): Remove.
8686 (syms_of_w32menu): Don't defsubr x-popup-menu.
8687 * nsmenu.m (cleanup_popup_menu): Remove.
8688 (ns_menu_show): Rename from ns_popup_menu and remove all the code
8689 moved to menu.c's Fx_popup_menu.
8690 (Fx_popup_menu): Remove.
8691 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
8692 menu_items (it's done in menu.c already).
8693
8694 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
8695
8696 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
8697 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
8698
8699 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
8700
8701 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
8702 xmenu_show. Hide any tooltip before opening a menu.
8703 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
8704 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
8705
8706 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8707
8708 Let integers use up 2 tags to give them one extra bit and thus double
8709 their range.
8710 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
8711 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
8712 New macros.
8713 (enum Lisp_Type): Use them. Give explicit values.
8714 (Lisp_Type_Limit): Remove.
8715 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
8716 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
8717 Pay attention to USE_2_TAGS_FOR_INTS.
8718 (INTEGERP): Use LISP_INT_TAG_P.
8719 * fns.c (internal_equal): Simplify the default case.
8720 (sxhash): Use case_Lisp_Int.
8721 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
8722 any more.
8723 (Ftype_of): Use case_Lisp_Int.
8724 (store_symval_forwarding): Take into account the fact that Ints can
8725 now have more than one tag.
8726 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
8727 (buffer_slot_type_mismatch):
8728 * xfaces.c (face_attr_equal_p):
8729 * print.c (print_object):
8730 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
8731 Use case_Lisp_Int.
8732
8733 2009-11-06 Eli Zaretskii <eliz@gnu.org>
8734
8735 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
8736
8737 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
8738 warning.
8739
8740 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
8741
8742 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
8743
8744 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
8745
8746 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
8747 ButtonPressRelease and MotionNotify (bug#4870).
8748
8749 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
8750
8751 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
8752
8753 * xterm.c (syms_of_xterm):
8754 * xselect.c (syms_of_xselect):
8755 * xmenu.c (syms_of_xmenu):
8756 * xfns.c (syms_of_xfns):
8757 * xfaces.c (syms_of_xfaces):
8758 * xdisp.c (syms_of_xdisp):
8759 * window.c (syms_of_window):
8760 * w32fns.c (syms_of_w32fns):
8761 * undo.c (syms_of_undo):
8762 * textprop.c (syms_of_textprop):
8763 * terminal.c (syms_of_terminal):
8764 * syntax.c (syms_of_syntax):
8765 * sound.c (syms_of_sound):
8766 * search.c (syms_of_search):
8767 * print.c (syms_of_print):
8768 * minibuf.c (syms_of_minibuf):
8769 * macros.c (syms_of_macros):
8770 * keymap.c (syms_of_keymap, initial_define_key)
8771 (initial_define_lispy_key):
8772 * keyboard.c (syms_of_keyboard):
8773 * insdel.c (syms_of_insdel):
8774 * image.c (syms_of_image):
8775 * fringe.c (syms_of_fringe):
8776 * frame.c (syms_of_frame):
8777 * fontset.c (syms_of_fontset):
8778 * fns.c (syms_of_fns):
8779 * fns.c (syms_of_fns):
8780 * fileio.c (syms_of_fileio):
8781 * fileio.c (syms_of_fileio):
8782 * eval.c (syms_of_eval):
8783 * doc.c (syms_of_doc):
8784 * dispnew.c (syms_of_display):
8785 * dired.c (syms_of_dired):
8786 * dbusbind.c (syms_of_dbusbind):
8787 * data.c (syms_of_data):
8788 * composite.c (syms_of_composite):
8789 * coding.c (syms_of_coding):
8790 * cmds.c (syms_of_cmds):
8791 * charset.c (define_charset_internal, syms_of_character):
8792 * ccl.c (syms_of_ccl):
8793 * category.c (syms_of_category, init_category_once):
8794 * casetab.c (syms_of_casetab):
8795 * casefiddle.c (syms_of_casefiddle):
8796 * callint.c (syms_of_callint):
8797 * bytecode.c (syms_of_bytecode):
8798 * buffer.c (keys_of_buffer, syms_of_buffer):
8799 * alloc.c (syms_of_alloc):
8800 * process.c (syms_of_process, init_process):
8801 * lread.c (syms_of_lread, init_obarray):
8802 * font.c (build_style_table):
8803 * emacs.c (syms_of_emacs, main): Replace calls to intern with
8804 intern_c_string, calls to make_pure_string with
8805 make_pure_c_string. Use pure_cons instead of Fcons.
8806
8807 * process.c (socket_options): Make it const.
8808 (set_socket_option, init_process): Use a const pointer.
8809
8810 * lread.c (intern_c_string): New function.
8811 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8812 (defvar_int): Uset it. Make the name const char*.
8813
8814 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8815 (defvar_int): Update prototypes.
8816 (DEFUN, EXFUN): Support for prototypes is now required.
8817 (intern_c_string): New prototype.
8818 (struct Lisp_Subr): Make symbol_name constant.
8819
8820 * font.c (struct table_entry): Remove unused member. Make NAMES
8821 constant.
8822 (weight_table, slant_table, width_table): Make constant.
8823
8824 * emacs.c (struct standard_args): Make name and longname constant.
8825
8826 * character.h (DEFSYM): Use intern_c_string.
8827
8828 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8829
8830 * alloc.c (make_pure_c_string): New function.
8831
8832 * eval.c (Fautoload): Purecopy all arguments.
8833
8834 2009-11-05 Kenichi Handa <handa@m17n.org>
8835
8836 * fileio.c (Finsert_file_contents): Be sure set coding-system of
8837 the buffer in case of replace.
8838
8839 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
8840
8841 * puresize.h (BASE_PURESIZE): Increase to 1620000.
8842
8843 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8844
8845 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
8846 when applicable (bug#4851).
8847
8848 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
8849 (P_): Support for prototypes is now required.
8850
8851 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
8852
8853 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
8854 (Bug#4827).
8855
8856 2009-10-30 Eli Zaretskii <eliz@gnu.org>
8857
8858 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
8859
8860 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
8861
8862 * puresize.h (BASE_PURESIZE): Increase to 1470000.
8863
8864 * lread.c (Fload): Purecopy the file name when building
8865 Vpreloaded_file_list.
8866
8867 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
8868
8869 * w32fns.c (syms_of_w32fns): Change default value of
8870 w32-scroll-lock-modifier to nil. (Bug#2827)
8871
8872 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
8873
8874 * minibuf.c (Fall_completions): Fix typos in docstring.
8875
8876 2009-10-26 Andreas Schwab <schwab@redhat.com>
8877
8878 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
8879
8880 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
8881
8882 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
8883 For delta < 0, skip check that only makes sense when the mini-window
8884 is going to be enlarged. (Bug#4534)
8885
8886 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
8887
8888 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
8889 string in menu maps (Bug#4471).
8890
8891 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
8892
8893 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
8894 FRAME_NS_VIEW on terminal frames (Bug#4765).
8895
8896 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
8897
8898 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
8899 DBUS_TYPE_UINTnn separately to get proper sign extension.
8900
8901 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
8902 can properly handle unsigned types.
8903 (make_uid, make_gid): Remove.
8904
8905 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8906 types again.
8907
8908 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
8909 (system_process_attributes): Likewise.
8910
8911 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
8912
8913 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
8914
8915 * eval.c (Fautoload): Purecopy the filename. Simplify.
8916
8917 * category.c (Fdefine_category): Purecopy docstring.
8918
8919 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
8920
8921 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
8922
8923 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
8924
8925 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
8926
8927 * window.c (Fwindow_edges, Fwindow_pixel_edges)
8928 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
8929 (Bug#4775).
8930
8931 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8932
8933 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
8934 (init_fileio_once):
8935 * lisp.h (init_fileio_once): Remove.
8936 * emacs.c (main): Don't call init_fileio_once.
8937
8938 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
8939
8940 * puresize.h (BASE_PURESIZE): Increase to 1430000.
8941
8942 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
8943
8944 * doprnt.c (doprnt): Fix overflow check.
8945
8946 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
8947
8948 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
8949
8950 * xterm.h (x_wait_for_event): Declare it.
8951
8952 * xterm.c (pending_event_wait): New variable.
8953 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
8954 see pending_event_wait.eventtype.
8955 (handle_one_xevent): Don't change gravity when parent changes.
8956 (x_new_font): Call change_frame_size with new rows/columns before we
8957 try to resize the frame.
8958 (x_wait_for_event): New function.
8959 (x_set_window_size_1): Don't change gravity unless change_gravity
8960 is set.
8961 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
8962 don't change frame size, instead wait for the ConfigureNotify.
8963 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8964 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8965 (x_initialize): Initialize pending_event_wait.
8966
8967 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8968 size.
8969
8970 * widget.c (EmacsFrameSetValues): Add comment.
8971 (EmacsFrameSetCharSize): Just call x_set_window_size.
8972
8973 * gtkutil.c (xg_frame_set_char_size): Flush events and call
8974 x_wait_for_event.
8975 (flush_and_sync): Remove again.
8976 (xg_get_font_name): Suggest monospace if no previous font is known.
8977
8978 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
8979
8980 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
8981 8th bit, since that only made sense in the ASCII world (bug#4751).
8982
8983 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8984
8985 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8986 processing pending events when event is filtered for input method.
8987 (Bug#3681)
8988
8989 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
8990
8991 * fns.c: Add #endif accidentally removed in previous change.
8992
8993 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8994
8995 * fns.c: Remove code for unsupported system: MAC_OS.
8996 * image.c: Likewise. Include setjmp.h.
8997
8998 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8999
9000 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
9001 pixel -1 (bug #4742).
9002
9003 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
9004
9005 * process.c (create_pty): Remove conditionals for no longer
9006 supported systems: UNIPLUS and RTU.
9007
9008 * xterm.c:
9009 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
9010
9011 * alloc.c: Do not define struct catchtag.
9012 * eval.c: Move struct catchtag definition ...
9013 * lisp.h: ... here.
9014
9015 * image.c: Move png.h #include earlier to avoid warnings.
9016
9017 * xterm.c:
9018 * xsmfns.c:
9019 * xselect.c:
9020 * xrdb.c:
9021 * xmenu.c:
9022 * xftfont.c:
9023 * xfont.c:
9024 * xfns.c:
9025 * xfaces.c:
9026 * xdisp.c:
9027 * window.c:
9028 * widget.c:
9029 * w32xfns.c:
9030 * w32uniscribe.c:
9031 * w32term.c:
9032 * w32select.c:
9033 * w32reg.c:
9034 * w32proc.c:
9035 * w32menu.c:
9036 * w32inevt.c:
9037 * w32heap.c:
9038 * w32font.c:
9039 * w32fns.c:
9040 * w32console.c:
9041 * w32.c:
9042 * w16select.c:
9043 * vm-limit.c:
9044 * unexsol.c:
9045 * unexec.c:
9046 * unexcw.c:
9047 * unexaix.c:
9048 * undo.c:
9049 * tparam.c:
9050 * textprop.c:
9051 * terminfo.c:
9052 * terminal.c:
9053 * termcap.c:
9054 * term.c:
9055 * syntax.c:
9056 * sound.c:
9057 * sheap.c:
9058 * search.c:
9059 * scroll.c:
9060 * region-cache.c:
9061 * regex.c:
9062 * ralloc.c:
9063 * process.c:
9064 * print.c:
9065 * nsterm.m:
9066 * nsselect.m:
9067 * nsmenu.m:
9068 * nsimage.m:
9069 * nsfont.m:
9070 * nsfns.m:
9071 * msdos.c:
9072 * minibuf.c:
9073 * menu.c:
9074 * marker.c:
9075 * macros.c:
9076 * keymap.c:
9077 * keyboard.c:
9078 * intervals.c:
9079 * insdel.c:
9080 * indent.c:
9081 * gtkutil.c:
9082 * ftxfont.c:
9083 * ftfont.c:
9084 * fringe.c:
9085 * frame.c:
9086 * fontset.c:
9087 * font.c:
9088 * fns.c:
9089 * floatfns.c:
9090 * filelock.c:
9091 * fileio.c:
9092 * emacs.c:
9093 * editfns.c:
9094 * dosfns.c:
9095 * doprnt.c:
9096 * doc.c:
9097 * dispnew.c:
9098 * dired.c:
9099 * dbusbind.c:
9100 * data.c:
9101 * composite.c:
9102 * coding.c:
9103 * cmds.c:
9104 * cm.c:
9105 * chartab.c:
9106 * charset.c:
9107 * character.c:
9108 * ccl.c:
9109 * category.c:
9110 * casetab.c:
9111 * casefiddle.c:
9112 * callproc.c:
9113 * callint.c:
9114 * bytecode.c:
9115 * buffer.c:
9116 * atimer.c: Include setjmp.h. (Bug#4643)
9117
9118 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9119
9120 Remove leftover table unibyte_to_multibyte_table.
9121 * character.c (unibyte_to_multibyte_table): Remove.
9122 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
9123 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
9124 * character.h (UNIBYTE_TO_CHAR): New macro.
9125 (MAKE_CHAR_MULTIBYTE): Use it.
9126 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
9127 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
9128 (message_dolog, set_message_1):
9129 * search.c (Freplace_match):
9130 * editfns.c (Fcompare_buffer_substrings):
9131 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
9132 (concat):
9133 * insdel.c (copy_text, count_size_as_multibyte):
9134 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
9135 * term.c (produce_glyphs):
9136 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
9137 * regex.c (RE_CHAR_TO_MULTIBYTE):
9138 * cmds.c (internal_self_insert):
9139 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
9140
9141 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
9142
9143 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
9144
9145 * puresize.h (BASE_PURESIZE): Increase to 1310000.
9146
9147 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
9148
9149 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
9150
9151 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9152
9153 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
9154 still needed under Tiger.
9155
9156 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
9157
9158 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
9159 __Apple__.
9160
9161 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
9162
9163 2009-10-15 Kenichi Handa <handa@m17n.org>
9164
9165 * print.c (print_object): Escape a symbol like "2E10" too.
9166
9167 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
9168
9169 Cleanups and changes for 64-bit compile under Snow Leopard.
9170 Based on suggestions by Erik Charlebois.
9171
9172 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
9173
9174 * nsfont.m (ns_char_width): Replace deprecated call.
9175 (ns_findfonts, nsfont_list_family): Use long format in printf, and
9176 cast argument.
9177 (nsfont_open): Use ns_char_width() everywhere.
9178 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
9179
9180 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
9181
9182 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
9183 where appropriate.
9184
9185 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
9186 where appropriate.
9187 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
9188 Use stringWithUTF8String.
9189 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
9190
9191 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
9192 Add formal protocol mention to inheritance.
9193 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
9194
9195 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
9196 Fix printf format.
9197 (ns_query_color): Use CGFloat where appropriate.
9198 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
9199 (EmacsScroller-mouseDown:): Use long format in printf, and cast
9200 argument.
9201
9202 * config.in (NS_HAVE_NSINTEGER): Drop.
9203
9204 * dbusbind.c (dbus-method-return-internal)
9205 (dbus-method-error-internal): Use long format in printf, and cast
9206 argument.
9207
9208 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
9209 in printf, and cast argument.
9210
9211 * process.c (list_processes_1): Use long format in printf, and
9212 cast argument.
9213
9214 2009-10-11 Glenn Morris <rgm@gnu.org>
9215
9216 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
9217
9218 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
9219
9220 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
9221 menu bar with a small width so it doesn't enlarge the frame.
9222
9223 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
9224
9225 * fontset.c (Fset_fontset_font): Fix typos in error messages.
9226
9227 2009-10-06 Glenn Morris <rgm@gnu.org>
9228
9229 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
9230 SOME_MACHINE_LISP (this enters indirectly via DOC).
9231
9232 2009-10-05 Eli Zaretskii <eliz@gnu.org>
9233
9234 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
9235
9236 2009-10-04 Eli Zaretskii <eliz@gnu.org>
9237
9238 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
9239 Doc fix.
9240
9241 2009-10-03 Martin Rudalics <rudalics@gmx.at>
9242
9243 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
9244
9245 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
9246
9247 * lisp.h (Qdelete_directory_internal): Remove, because it is not
9248 used anymore outside fileio.c.
9249
9250 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
9251
9252 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
9253
9254 * lisp.h (Qdelete_directory_internal):
9255 Declare, instead of Qdelete_directory.
9256
9257 * w32fns.c (Fsystem_move_file_to_trash): Use it.
9258
9259 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * eval.c (Fcalled_interactively_p): Add `kind' argument.
9262
9263 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
9264
9265 * fileio.c (Fdelete_directory_internal): Rename from
9266 Fdelete_directory. It is not a command anymore. It has no file
9267 name handler.
9268
9269 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
9270
9271 * xdisp.c (get_next_display_element): Use an enum in last change.
9272
9273 2009-09-28 Kenichi Handa <handa@m17n.org>
9274
9275 * xdisp.c (get_next_display_element): Pay attention to
9276 unibyte_display_via_language_environment in handling
9277 Vnobreak_char_display.
9278
9279 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9280
9281 * nsterm.h (ns_app_name): New extern variable.
9282
9283 * nsterm.m (ns_app_name): New variable.
9284 (ns_term_init): Set and use it.
9285 (ns_term_shutdown): Use it.
9286
9287 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
9288 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
9289
9290 * nsfns.m (ns_set_name_iconic, ns_set_name)
9291 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
9292 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
9293
9294 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
9295 Remove double-casting in client_data comparison.
9296
9297 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9298
9299 * keyboard.c (make_lispy_event): Remember last wheel direction.
9300 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
9301
9302 2009-09-26 Glenn Morris <rgm@gnu.org>
9303
9304 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
9305 internal.elc. Add term/pc-win.elc.
9306 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
9307 term/x-win.elc.
9308 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
9309 term/w32-win.elc.
9310 (NS_SUPPORT): New.
9311 (lisp): Add NS_SUPPORT.
9312 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
9313
9314 2009-09-25 David Reitter <david.reitter@gmail.com>
9315
9316 * nsmenu.m (EmacsMenu-clear): Recognize application menu
9317 on Mac OS X 10.6+ (bug#4513).
9318
9319 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
9320
9321 * frame.c (xrdb_get_resource): Return nil for empty string resources;
9322 some parts of Emacs code (like font selection) don't grok them.
9323 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
9324
9325 2009-09-24 Andreas Schwab <schwab@redhat.com>
9326
9327 * coding.c (decode_coding_iso_2022): Fix operator precedence.
9328
9329 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
9330
9331 * dired.c (Fdirectory_files): Fix typo in docstring.
9332
9333 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9334
9335 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
9336 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
9337 (EmacsScroller-setPosition:portion:whole:): Remove -display call
9338 under GNUstep.
9339 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
9340
9341 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
9342 glyph advancement.
9343
9344 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9345
9346 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
9347 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
9348
9349 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
9350 deleted (bug #4492).
9351
9352 * nsfont.m (Vns_reg_to_script): New lisp variable.
9353 (syms_of_nsfont): Declare it.
9354 (ns_registry_to_script): New function.
9355 (ns_get_req_script): Call it.
9356 (ns_findfonts): Don't give up on non-unicode registry.
9357
9358 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
9359
9360 2009-09-20 Tom Tromey <tromey@redhat.com>
9361
9362 * eval.c (find_handler_clause): Make stack-trace-on-error work in
9363 batch mode (bug#4228).
9364
9365 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
9366
9367 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
9368 carefully. (Bug #4339)
9369
9370 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
9371
9372 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
9373
9374 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9375
9376 * emacs.c (inhibit_x_resources): Update doc string for NS.
9377 (main) [HAVE_NS]: Don't process --no-init-file option.
9378 Remove legacy code for -NXHost. Fix error printf in daemon case.
9379
9380 * nsterm.h (ns_no_defaults): Remove.
9381
9382 * nsterm.m (ns_no_defaults): Remove.
9383 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
9384 (ns_use_qd_smoothing): Remove legacy variable.
9385 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
9386 don't update the NSWindow itself.
9387 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
9388 Improve state detection and store user rect ourselves. (Bug #3581)
9389
9390 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
9391 ns_use_qd_smoothing.
9392
9393 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
9394 platform versions. Drop support for emacs-20-style face specs.
9395 (x-close-connection): Drop PSFlush() under OS X.
9396 (x-focus-frame): Activate the app first. (Bug #4180)
9397
9398 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
9399
9400 * emacs.c (inhibit_x_resources): New variable.
9401 (main) [HAVE_NS]: Don't process --quick command line option.
9402 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
9403
9404 * lisp.h (inhibit_x_resources): Declare it extern.
9405
9406 * w32reg.c (x_get_string_resource):
9407 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
9408
9409 2009-09-17 Eli Zaretskii <eliz@gnu.org>
9410
9411 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
9412 Add lisp/term/internal.elc.
9413
9414 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9415
9416 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
9417 (bug#4461).
9418
9419 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
9420
9421 * puresize.h (BASE_PURESIZE): Increase to 1290000.
9422
9423 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
9424 (OBJECTS_MACHINE): Remove, unused.
9425
9426 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
9427
9428 * frame.c (x_get_resource_string): Remove unused.
9429
9430 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
9431
9432 * xterm.c (x_new_font): Call change_frame_size before calling
9433 x_set_window_size, in case frame size won't change.
9434
9435 * frame.c (x_set_font): Remove dead code.
9436
9437 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
9438
9439 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
9440
9441 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9442
9443 * lread.c (Fload): Don't output a message after loading an obsolete
9444 package any more (done in Lisp now).
9445
9446 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
9447
9448 * fns.c (syms_of_fns): Doc fix (Bug#4227).
9449
9450 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9451
9452 * keymap.c (Fwhere_is_internal): Use nconc2.
9453
9454 2009-09-11 Alan Mackenzie <acm@muc.de>
9455
9456 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
9457 batch mode.
9458
9459 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
9460
9461 * xdisp.c (display_mode_element): Detect cycles.
9462
9463 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9464
9465 * keymap.c (where_is_internal): Don't erroneously return nil right after
9466 filling the cache.
9467 (where_is_internal_1): Fix up typo.
9468
9469 2009-09-11 Glenn Morris <rgm@gnu.org>
9470
9471 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
9472 share a common doc-string.
9473
9474 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9475
9476 * keymap.c (get_keymap): Return the actual keymap symbol rather than
9477 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
9478
9479 * keymap.c (QCadvertised_binding): New constant.
9480 (syms_of_keymap): Initialize it.
9481 (Fwhere_is_internal): Try and use bindings from :advertised-binding
9482 if applicable.
9483
9484 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
9485
9486 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
9487 (parse_menu_item): Streamline since bindings are recomputed all the
9488 time anyway. Don't bother checking Vdefine_key_rebound_commands any
9489 more and don't support lmenu's menu-alias any more either.
9490
9491 * keymap.c (where_is_internal_data): Make noindirect a boolean.
9492 (where_is_internal): Strip it down to only traverse the keymaps.
9493 Move the cache handling from Fwhere_is_internal to here.
9494 (Fwhere_is_internal): Move the handling of remapping and the choice of
9495 the best binding from where_is_internal to here.
9496 Unify the cached/noncached paths, so remapping is also handled
9497 correctly when the cache is used, and so the cache can be used to
9498 speed up remap-handling when applicable.
9499 Give preference to non-remapped bindings.
9500 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
9501 non-remapped bindings.
9502 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
9503 command remapping.
9504
9505 * xdisp.c (display_mode_element): Move list length limit from 50 to
9506 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
9507
9508 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
9509
9510 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
9511
9512 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
9513
9514 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
9515 (Bug#4334)
9516
9517 * keymap.c (where_is_internal): Filter out shadowed remappings.
9518 Assume that where_is_internal returns unshadowed bindings to simplify
9519 the code and get rid of the gotos. Use ASIZE.
9520
9521 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
9522
9523 * xterm.c (x_focus_changed): If we get a focusout and pointer
9524 is invisible, make it visible.
9525
9526 * xterm.h: Remove condition for declaration of
9527 x_*_window_to_frame.
9528
9529 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
9530
9531 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
9532 initial terminal as well.
9533
9534 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
9535
9536 * xterm.h: Rename x_non_menubar_window_to_frame to
9537 x_menubar_window_to_frame.
9538
9539 * xterm.c: Remove declarations also in xterm.h.
9540 (XTmouse_position): Do not return valid positions
9541 for clicks in the menubar and the toolbar for Gtk+.
9542
9543 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
9544 if the widget for the event has the same top level as a frame,
9545 return the frame.
9546 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
9547 internal windows, bug #4122.
9548 (x_non_menubar_window_to_frame): Remove.
9549
9550 2009-09-02 Glenn Morris <rgm@gnu.org>
9551
9552 * buffer.c (default-major-mode): Move most of the doc from here...
9553 (major-mode): ... to here.
9554
9555 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
9556
9557 * process.c (wait_reading_process_output): Keep the descriptor
9558 when pty is used by a non-child process, e.g., in I/O buffer of
9559 GDB this allows inferior to be restarted.
9560
9561 2009-08-29 Eli Zaretskii <eliz@gnu.org>
9562
9563 * xdisp.c (redisplay_internal): Remove redundant test and collapse
9564 both branches into one.
9565
9566 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9567
9568 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
9569 (main): Use enable-multibyte-characters rather than
9570 default-enable-multibyte-characters. Output a warning message when
9571 running a unibyte session.
9572
9573 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9574
9575 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
9576 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
9577 (copy_data_segment): Also copy __program_vars section.
9578 (copy_dyld_info) [LC_DYLD_INFO]: New function.
9579 (dump_it) [LC_DYLD_INFO]: Use it.
9580
9581 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
9582
9583 2009-08-28 Eli Zaretskii <eliz@gnu.org>
9584
9585 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
9586 $(SRC)/buildobj.h.
9587 (buildobj.h): Renamed from $(SRC)/buildobj.h.
9588 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
9589 $(SRC)/buildobj.h.
9590 (clean): Add buildobj.h.
9591
9592 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
9593
9594 * print.c (print_object): Set escapeflag to 1 when printing
9595 hashtable keys and values.
9596
9597 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
9598
9599 * lread.c (read_integer): Use doubles (and potentially return a float
9600 number) as we do in string-to-number.
9601 (read1): Use strtol to read integers, signal errors on strtol's
9602 overflow and use floats if strtol's output is too large for
9603 Elisp integers.
9604
9605 2009-08-27 Eli Zaretskii <eliz@gnu.org>
9606
9607 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
9608 (make-buildobj-SH): Fix last change.
9609 (SRC): Move to before where it's first used.
9610
9611 2009-08-27 Kenichi Handa <handa@m17n.org>
9612
9613 * process.c (send_process): Use encode_coding_object instead of
9614 encode_coding_string to perform eol-conversion even if the string
9615 is unibyte.
9616
9617 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
9618 character.
9619
9620 * cmds.c (Fself_insert_command): Avoid unnecessay
9621 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
9622
9623 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
9624
9625 * callproc.c (Fcall_process): Remove always true #if.
9626
9627 * lisp.h: Replace #if 0 code for checking with text pointing to
9628 the --enable-checking configure flag.
9629
9630 * emacs.c (main): Mention the --enable-profiling configure flag
9631 instead of using CFLAGS.
9632
9633 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
9634
9635 * Makefile.in (buildobj.h): New target.
9636 (doc.o): Depend on it.
9637 (temacs${EXEEXT}): Don't generate buildobj.lst.
9638 (mostlyclean): Delete buildobj.h, not buildobj.lst.
9639 * makefile.w32-in ($(SRC)/buildobj.h): New target.
9640 ($(BLD)/doc.$(O)): Depend on it.
9641 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
9642 provided by Eli Zaretskii.)
9643 ($(TEMACS)): Don't generate buildobj.lst.
9644 * doc.c: Include buildobj.h.
9645 (buildobj): New static variable.
9646 (Fsnarf_documentation): Use it, instead of opening and reading
9647 buildobj.lst.
9648
9649 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
9650
9651 * dbusbind.c (Fdbus_call_method)
9652 (Fdbus_call_method_asynchronously): Use English numeric format for
9653 timeout values in doc string.
9654
9655 2009-08-25 Kenichi Handa <handa@m17n.org>
9656
9657 * alloc.c (mark_char_table): New function.
9658 (mark_object): Use mark_char_table for a char-table.
9659
9660 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
9661 (CHAR_TABLE_REF): Use it.
9662
9663 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
9664
9665 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
9666 before invoking the newly build emacs to check for load-path
9667 shadowing.
9668
9669 2009-08-22 Glenn Morris <rgm@gnu.org>
9670
9671 * Makefile.in (bootstrap_exe): New variable.
9672 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
9673 Use ${bootstrap_exe}.
9674
9675 2009-08-22 Eli Zaretskii <eliz@gnu.org>
9676
9677 * coding.h (encode_coding_string): Don't encode unibyte strings.
9678 (Bug#4047)
9679
9680 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
9681
9682 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
9683
9684 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
9685 intended as hotfix only.
9686 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
9687
9688 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9689
9690 * nsterm.m (ns_get_color): Update documentation properly for last
9691 change, and clean up loose ends in the code left by it.
9692 Fix longstanding bug with 16-bit hex parsing, and add support for
9693 yet another X11 format (rgb:r/g/b) for compatibility.
9694 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
9695 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
9696
9697 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
9698
9699 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
9700
9701 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
9702
9703 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
9704 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
9705 (xd_initialize, xd_pending_messages): Check, whether
9706 $DBUS_SESSION_BUS_ADDRESS is set.
9707
9708 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9709
9710 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
9711
9712 * nsterm.m (ns_get_color): Remove incompatible color formats again.
9713
9714 2009-08-20 Glenn Morris <rgm@gnu.org>
9715
9716 * emacs.c (system-type): Doc fix.
9717
9718 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9719
9720 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
9721 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
9722
9723 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
9724
9725 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
9726 New functions.
9727 (xd_initialize): Revert change from 2009-08-16.
9728
9729 2009-08-18 Kenichi Handa <handa@m17n.org>
9730
9731 * fontset.c (Ffontset_font): If a nil element is found in a
9732 font-group vector, return nil.
9733
9734 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
9735
9736 * process.c (status_notify): Don't perform redisplay.
9737 (Fdelete_process, list_processes_1, process_send_signal):
9738 Expliticly perform redisplay.
9739 (wait_reading_process_output): Always check process status, but
9740 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
9741
9742 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
9743
9744 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
9745 (XFLOAT_INIT): New macro for storing a float value.
9746 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
9747 * fns.c (sxhash): Copy out the value of a float in order to
9748 examine its bytes.
9749 * dbusbind.c (xd_append_arg): Likewise.
9750
9751 * emacs.c (main): Don't call syms_of_data twice.
9752
9753 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
9754
9755 * dbusbind.c (xd_initialize): Add connection file descriptor to
9756 input_wait_mask, in order to let select() detect, whether a new
9757 message has been arrived.
9758 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
9759
9760 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
9761
9762 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
9763 New functions.
9764
9765 * lisp.h (xd_pending_messages): Declare.
9766
9767 * keyboard.c (readable_events): Call xd_pending_messages.
9768
9769 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
9770
9771 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
9772
9773 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
9774
9775 * buffer.c (set_buffer_internal_1)
9776 (swap_out_buffer_local_variables): Check for unbound local
9777 variables (Bug#4138).
9778
9779 2009-08-14 Eli Zaretskii <eliz@gnu.org>
9780
9781 * process.c (create_pty): Fix last change.
9782
9783 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
9784
9785 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
9786 (xbm_load_image): Caller changed.
9787 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
9788
9789 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
9790
9791 * process.c (create_pty): New function.
9792 (Fstart_process): Use it to allow Emacs to just associate a pty
9793 with the buffer. See associated change in gdb-mi.el.
9794 (list_processes_1): Deal with no program name.
9795 (start_process_unwind): Use pid == -2 to mean no process.
9796
9797 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
9798
9799 * cmds.c (nonundocount): New global variable.
9800 (keys_of_cmds): Initialize it.
9801 (Fself_insert_command): Use it to combine upto 20 sequential chars
9802 into a single undo entry, just like the Qself_insert_command code in
9803 keyboard.c does.
9804 Call frame_make_pointer_invisible, also like the Qself_insert_command
9805 code in keyboard.c does.
9806 * keyboard.c (command_loop_1): Use the new global nonundocount rather
9807 than its own local replacement for it.
9808
9809 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
9810
9811 * fns.c (concat): Don't re-set string length to its current value.
9812
9813 * coding.h (decode_coding_string, encode_coding_string):
9814 Use SBYTES macro.
9815
9816 * doprnt.c (doprnt_lisp): Delete unused function.
9817 (doprnt): Merge with doprnt1, discarding lispstrings code.
9818 * lisp.h (doprnt_lisp): Don't declare.
9819
9820 2009-08-07 Juri Linkov <juri@jurta.org>
9821
9822 * puresize.h (BASE_PURESIZE): Increase to 1270000.
9823
9824 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9825
9826 * print.c (syms_of_print): Undo previous change.
9827
9828 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
9829
9830 * lread.c (read1, syms_of_lread): Read hashtables back from the
9831 readable format.
9832
9833 * print.c (print_preprocess, print_object): Print hashtables fully
9834 and readably.
9835 (syms_of_print): Provide 'hashtable-print-readable.
9836
9837 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9838
9839 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
9840 no family set.
9841 (nsfont_open): Handle case when entity has no family.
9842
9843 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9844
9845 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
9846 element, not a list, for match case.
9847
9848 2009-07-28 Kenichi Handa <handa@m17n.org>
9849
9850 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9851 rigidly.
9852
9853 * xfont.c (xfont_list_pattern): Don't ignore the return value of
9854 font_parse_xlfd. Check font properties more rigidly.
9855
9856 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9857
9858 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
9859 bsd-common.h.
9860
9861 2009-07-27 Kenichi Handa <handa@m17n.org>
9862
9863 * xfaces.c (face_with_height): Call font_clear_prop.
9864
9865 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
9866
9867 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
9868
9869 * xterm.c (x_term_init): Use Qx.
9870
9871 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
9872
9873 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
9874 (ns_get_color): Revert 2009-07-16 change.
9875
9876 2009-07-25 Eli Zaretskii <eliz@gnu.org>
9877
9878 * lread.c (syms_of_lread) <force_load_messages>: New variable.
9879 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
9880
9881 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
9882
9883 * coding.h (decode_coding_string, encode_coding_string):
9884 Use SCHARS macro.
9885
9886 * lread.c: Rewrite 2009-07-21 changes.
9887 (load_depth): Delete.
9888 (Qload_in_progress): New variable.
9889 (load_unwind): Don't reference load_depth or load_in_progress.
9890 (Fload): Likewise; specbind Qload_in_progress instead.
9891 (init_lread): Don't initialize load_depth.
9892 (syms_of_lread): Initialize and protect Qload_in_progress.
9893
9894 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9895
9896 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
9897
9898 2009-07-23 Yavor Doganov <yavor@gnu.org>
9899
9900 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
9901
9902 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9903
9904 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
9905 Bugs 3792, 3720, 2402.
9906 (ns_lookup_indexed_color): Check for bad index.
9907 (ns_index_color): Init unused slot to 0.
9908 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
9909 Bug 3714, possibly 3082.
9910
9911 2009-07-22 Jason Rumney <jasonr@gnu.org>
9912
9913 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
9914 Position IME window at cursor (Bug#2570).
9915 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
9916 (globals_of_w32fns): Dynamically load functions required above.
9917
9918 * w32term.c (w32_draw_window_cursor): Send message to reposition
9919 any IME window.
9920
9921 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
9922
9923 * fileio.c: Revert 2009-07-16 changes.
9924 (Vauto_save_include_big_deletions): New variable.
9925 (Fdo_auto_save): Disable auto-save only if
9926 auto-save-include-big-deletions is nil.
9927
9928 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
9929
9930 * xdisp.c (move_it_to): For continued lines ending in a tab, take
9931 the overflowed pixels into account (Bug#3879).
9932
9933 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
9934
9935 * lread.c (load_depth): New variable.
9936 (Fload, load_unwind, init_lread): Set it to the load recursion
9937 depth; set load_in_progress as a simple boolean based on the
9938 current load_depth. (Bug#3892)
9939
9940 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9941
9942 * nsfont.m (ns_has_attribute): Remove.
9943 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
9944
9945 2009-07-18 Juri Linkov <juri@jurta.org>
9946
9947 * process.c (Fset_process_query_on_exit_flag): Mention killing
9948 a buffer in docstring.
9949
9950 2009-07-17 Kenichi Handa <handa@m17n.org>
9951
9952 * casetab.c (shuffle): Fix the logic of setting up the cycle.
9953
9954 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9955
9956 * nsfns.m (Fns_set_alpha): Remove function.
9957 (syms_of_nsfns): Don't defsubr it.
9958
9959 * nsterm.m (ns_get_color): Remove incompatible color formats.
9960 (ns_color_to_lisp): Generate #rrggbb color format string.
9961
9962 2009-07-16 Richard Stallman <rms@gnu.org>
9963
9964 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9965 (Fset_buffer_auto_saved): Handle save_length = -2.
9966
9967 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
9968
9969 * xterm.c (Qx_gtk_map_stock): New var.
9970
9971 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9972 of calling intern each time.
9973
9974 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9975
9976 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9977 does tiling.
9978
9979 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9980
9981 2009-07-14 Kenichi Handa <handa@m17n.org>
9982
9983 * font.c (font_vconcat_entity_vectors): New function.
9984 (struct font_sort_data): New member font_driver_preference.
9985 (font_compare): Check font_driver_preference.
9986 (font_sort_entities): The format of the first argument changed.
9987 (font_delete_unmatched): Likewise.
9988 (font_list_entities): The return type changed.
9989 (font_select_entity): The format of the second argument changed.
9990 (font_find_for_lface): Adjuste for the above changes.
9991 Don't suppress the checking of C even if the repertory supports it.
9992 (Flist_fonts): Adjust for the above changes.
9993
9994 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
9995 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
9996 Reject a font who has adstyle property that is different from a
9997 langname derived from registry property.
9998 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
9999
10000 2009-07-13 Eli Zaretskii <eliz@gnu.org>
10001
10002 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
10003 local copy of dirfilename.
10004
10005 2009-07-13 Kenichi Handa <handa@m17n.org>
10006
10007 * chartab.c (sub_char_table_ref_and_range): Fix the range check
10008 against max_char.
10009
10010 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
10011 calling XSYMBOL (sym).
10012
10013 2009-07-11 Eli Zaretskii <eliz@gnu.org>
10014
10015 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
10016 New function.
10017 (directory_files_internal) [WINDOWSNT]:
10018 Bind w32-get-true-file-attributes to either t or nil, depending whether
10019 the filesystem of the directory is fast or slow.
10020
10021 * w32.c (logon_network_drive): Don't assume PATH is an absolute
10022 file name.
10023 (is_slow_fs): New function.
10024 (stat): Use it to determine whether to issue more system calls to
10025 get accurate file attributes, when w32-get-true-file-attributes is
10026 `local'.
10027
10028 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
10029
10030 * xfns.c (Fx_select_font): Remember last font selected in
10031 x_last_font_name and use that the next time. Also try the frame
10032 parameter font-parameter as default to the font dialog.
10033
10034 2009-07-10 Kenichi Handa <handa@m17n.org>
10035
10036 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
10037
10038 2009-07-09 Eli Zaretskii <eliz@gnu.org>
10039
10040 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10041
10042 * w32.c (stat): Treat UNC file names as residing on remote
10043 drives. (Bug#3542)
10044
10045 2009-07-09 Kenichi Handa <handa@m17n.org>
10046
10047 * fontset.c (fontset_find_font): Fix previous change.
10048
10049 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
10050
10051 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
10052 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
10053 error flag.
10054
10055 2009-07-08 Kenichi Handa <handa@m17n.org>
10056
10057 * fontset.c (fontset_find_font): Fix the logic of handling
10058 charset_matched.
10059 (font_for_char): Delete unused var.
10060 (generate_ascii_font_name): Delete it.
10061
10062 * coding.h (JIS_TO_SJIS2): Fix the code range check.
10063
10064 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
10065 (encode_coding_sjis): Fix the code range check.
10066
10067 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
10068
10069 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
10070 (Fexpand_file_name): Copy string data properly (Bug#3772).
10071
10072 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
10073
10074 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
10075 first MapNotify.
10076
10077 2009-07-07 Kenichi Handa <handa@m17n.org>
10078
10079 * character.h (unibyte_has_multibyte_table): Delete extern.
10080 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
10081
10082 * charset.c (Fset_charset_priority): Update charset_unibyte.
10083 (syms_of_charset): Initialize charset_unibyte.
10084
10085 * character.c (unibyte_has_multibyte_table): Delete it.
10086 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
10087 charset_unibyte.
10088 (multibyte_char_to_unibyte_safe): Likewise.
10089 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
10090
10091 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
10092 (x_produce_glyphs): Likewise.
10093
10094 * .gdbinit (xcharset): Fix the treating $arg0.
10095
10096 2009-07-04 Eli Zaretskii <eliz@gnu.org>
10097
10098 Emulation of `getloadavg' on MS-Windows.
10099 * w32.c: Include float.h.
10100 (g_b_init_get_native_system_info, g_b_init_get_system_times)
10101 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
10102 (get_native_system_info, get_system_times): New functions.
10103 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
10104 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
10105 (globals_of_w32): Initialize g_b_init_get_native_system_info,
10106 g_b_init_get_system_times, and num_of_processors.
10107
10108 2009-07-03 Jason Rumney <jasonr@gnu.org>
10109
10110 * w32term.c (w32_initialize): Use standard types.
10111
10112 2009-07-03 Eli Zaretskii <eliz@gnu.org>
10113
10114 * dired.c (Ffile_attributes): Decode user and group names by the
10115 locale's encoding. (Bug#3443)
10116
10117 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
10118
10119 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
10120 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
10121
10122 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
10123
10124 * term.c (init_tty): Remove spurious #ifdef.
10125
10126 * m/mips.h: Mention this file is also used for netbsd.
10127 * m/pmax.h: Remove file.
10128
10129 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
10130
10131 * xterm.h (struct x_display_info): Add invisible_cursor.
10132 (struct x_output): Add current_cursor.
10133
10134 * xterm.c (XTtoggle_invisible_pointer): New function.
10135 (x_define_frame_cursor): Don't define cursor if invisible or the
10136 same as before. Set current_cursor.
10137 (x_create_terminal): Set toggle_invisible_pointer_hook.
10138
10139 * xfns.c (make_invisible_cursor): New function.
10140 (x_set_mouse_color): Call make_invisible_cursor.
10141 Set current_cursor.
10142 (x_window): Set current_cursor.
10143
10144 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
10145
10146 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
10147 inserting a character.
10148 (read_avail_input): Call frame_make_pointer_visible.
10149
10150 * frame.c (Vmake_pointer_invisible): New variable.
10151 (frame_make_pointer_invisible, frame_make_pointer_visible):
10152 New functions.
10153 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
10154
10155 * frame.h: Declare frame_make_pointer_invisible and
10156 frame_make_pointer_visible.
10157 (struct frame): Add pointer_invisible.
10158
10159 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
10160
10161 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
10162 frame isn't visible.
10163 (xg_frame_resized): If width/height is -1, get size of window
10164 from X server.
10165
10166 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
10167 for MapNotify.
10168
10169 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
10170 here or call change_frame_size. Just call flush_and_sync.
10171 (flush_and_sync): Reintroduce.
10172
10173 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
10174
10175 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
10176
10177 * xterm.c (x_handle_net_wm_state): Also look for sticky.
10178 (x_term_init): Initialize Xatom_net_wm_state_sticky.
10179
10180 * frame.h: Declare Qsticky.
10181
10182 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
10183
10184 * nsfns.m (ns_frame_parm_handlers): Ditto.
10185
10186 * frame.c: Declare Qsticky.
10187 (frame_parms): Add sticky.
10188
10189 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
10190
10191 * xterm.h: Declare x_set_sticky.
10192
10193 * xterm.c (x_set_sticky): New function.
10194
10195 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
10196 (xg_tool_bar_menu_proxy): Attach enter/leave events to
10197 xg_tool_bar_proxy_help_callback.
10198
10199 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
10200
10201 * frame.c: Qmaximized is new.
10202 (x_set_frame_parameters): Do not handle fullscreen specially.
10203 Only set width and height if explicitly set.
10204 (x_set_fullscreen): Handle Qmaximized.
10205 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
10206 (syms_of_frame): Initialize Qmaximized.
10207
10208 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
10209 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
10210
10211 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
10212 for Expose event. Add call to x_check_fullscreen for MapNotify event.
10213 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
10214 set gravity to NorthWestGravity when USE_GTK.
10215 (set_wm_state): New function.
10216 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
10217 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
10218 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
10219 or the case when no window manager is running. That means remove calls
10220 to x_real_positions and x_fullscreen_adjust.
10221
10222 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
10223 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
10224 flush_and_sync.
10225 (xg_height_changed): New function.
10226 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
10227 and gtk_window_set_policy. Set frame gravity after parsing the
10228 geometry string.
10229 (xg_update_frame_menubar, free_frame_menubar)
10230 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10231 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
10232 Remove calls to xg_frame_set_char_size.
10233
10234 2009-07-01 Kenichi Handa <handa@m17n.org>
10235
10236 * keyboard.c (decode_keyboard_code): New function.
10237 (tty_read_avail_input): Decode the input bytes if necessary.
10238
10239 * coding.c (setup_coding_system):
10240 Initialize coding->carryover_bytes to 0.
10241 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
10242 use Qno_conversion.
10243
10244 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10245
10246 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
10247
10248 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
10249
10250 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
10251
10252 2009-06-30 Jason Rumney <jasonr@gnu.org>
10253
10254 * w32term.c (w32_initialize): Use GetModuleHandle for library that
10255 is already loaded.
10256 Set user model ID if supported (bug#1849).
10257
10258 2009-06-29 Jim Meyering <meyering@redhat.com>
10259
10260 Remove useless if-before-xfree test.
10261 * nsfont.m (nsfont_close): Remove useless test.
10262 * term.c (delete_tty): Likewise.
10263 * w32.c (system_process_attributes): Likewise.
10264 * w32font.c (w32font_close): Likewise.
10265 * xfaces.c (x_free_gc): Likewise.
10266 * xselect.c (buffer): Likewise.
10267
10268 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
10269
10270 * process.c (send_process): Keep decoded string in a local
10271 variable and protect it from GC. (Bug#3521)
10272
10273 2009-06-28 Eli Zaretskii <eliz@gnu.org>
10274
10275 * term.c (create_tty_output) [MSDOS]: #ifdef away.
10276 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
10277
10278 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
10279
10280 * xdisp.c (start_display, handle_face_prop)
10281 (move_it_vertically_backward, cursor_row_fully_visible_p)
10282 (redisplay_window, try_window_id, produce_image_glyph):
10283 Delete some #ifdef-ed out code chunks that are now obsolete.
10284
10285 * xterm.c (x_update_window_begin, x_new_focus_frame)
10286 (x_scroll_bar_handle_click, handle_one_xevent)
10287 (handle_one_xevent, XTread_socket, x_focus_on_frame)
10288 (x_make_frame_visible, x_make_frame_invisible)
10289 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
10290 code chunks that are now obsolete.
10291
10292 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
10293
10294 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
10295 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
10296 for hours, when optimzation is enabled.
10297 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
10298 (xd_read_message): Make them static.
10299
10300 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
10301
10302 * term.c (turn_on_face): Allow simultaneously bold and dim
10303 terminal faces (Bug#3530).
10304
10305 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
10306
10307 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
10308
10309 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
10310 truncation glyphs (Bug#3686).
10311
10312 2009-06-27 Glenn Morris <rgm@gnu.org>
10313
10314 * m/pmax.h: Restore file, with only netbsd portions.
10315
10316 2009-06-26 David Reitter <david.reitter@gmail.com>
10317
10318 * nsterm.m (keydown): Avoid infinite loop.
10319
10320 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
10321
10322 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
10323 the arg FORCE_SYMBOL.
10324
10325 2009-06-25 Kenichi Handa <handa@m17n.org>
10326
10327 * fontset.c (fontset_find_font): When a usable rfont_def is found
10328 in a fallback font-group, make it the first element of the group.
10329
10330 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
10331
10332 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
10333
10334 2009-06-24 Kenichi Handa <handa@m17n.org>
10335
10336 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
10337 set for C.
10338 (fontset_font): Record the availability of a font for C both in
10339 the realized fontsets of the current one and the default one.
10340
10341 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
10342
10343 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
10344 conditional, it is always defined on AIX.
10345
10346 2009-06-23 Miles Bader <miles@gnu.org>
10347
10348 * window.c (Vrecenter_redisplay): New variable.
10349 (syms_of_window): Initialize it.
10350 (Qtty): New extern declaration.
10351 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
10352
10353 2009-06-23 Jim Meyering <meyering@redhat.com>
10354
10355 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
10356 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
10357 pointer dereferences are guaranteed to be valid.
10358
10359 2009-06-23 Kenichi Handa <handa@m17n.org>
10360
10361 * emacs.c (main): Call init_font ().
10362
10363 * font.h (Vfont_log): Extern it.
10364 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
10365
10366 * font.c (font_sort_entities, font_list_entities)
10367 (font_matching_entity, font_open_entity)
10368 (font_close_object): Change font_add_log to FONT_ADD_LOG.
10369 (Vfont_log): Delete static.
10370 (font_log_env_checked): Delete this variable.
10371 (font_add_log): Don't check font_log_env_checked.
10372 (font_deferred_log): Check Vfont_log.
10373 (init_font): New function.
10374
10375 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
10376
10377 * w32font.c: Change font_add_log to FONT_ADD_LOG.
10378
10379 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
10380
10381 * xfont.c: Change font_add_log to FONT_ADD_LOG.
10382
10383 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
10384 (face_for_char): Don't call font_deferred_log here.
10385 (font_for_char): Likewise.
10386
10387 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
10388
10389 * w32term.c (x_draw_glyph_string): Use the glyph string's width
10390 rather than its background_width for drawing the overline and
10391 underline (Bug#489).
10392
10393 * xterm.c (x_draw_glyph_string): Use the glyph string's width
10394 rather than its background_width for drawing the overline and
10395 underline (Bug#489).
10396 (xg_default_icon_file): New variable.
10397 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
10398 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
10399
10400 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
10401 (load_overlay_strings): Remove externs.
10402 (fast_find_position): Function deleted.
10403 (mouse_face_from_buffer_pos): New function, based on
10404 fast_find_position. Correctly handle before-strings,
10405 display-strings, and after-strings (Bug#1220).
10406 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
10407
10408 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
10409
10410 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
10411 (move_it_in_display_line_to, move_it_in_display_line_to)
10412 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
10413
10414 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
10415
10416 * Branch for 23.1.
10417
10418 2009-06-21 Jason Rumney <jasonr@gnu.org>
10419
10420 * w32term.c (keyboard_codepage): New static variable.
10421 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
10422 (w32_read_socket) [WM_CHAR]: Use it to decode character
10423 input (bug#3237).
10424 (w32_initialize): Initialize it.
10425 (codepage_for_locale): New function.
10426
10427 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
10428
10429 * process.c (status_message): Pass Faset index argument as a lisp
10430 object, so as to work with USE_LISP_UNION_TYPE.
10431
10432 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10433
10434 * coding.c (Ffind_coding_systems_region_internal):
10435 Cache checked characters.
10436
10437 2009-06-18 Kenichi Handa <handa@m17n.org>
10438
10439 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
10440
10441 2009-06-18 Andreas Schwab <aschwab@redhat.com>
10442
10443 * xdisp.c (redisplay_internal): Check that the frame is still
10444 live after redisplay of its windows.
10445 (redisplay_windows): Check that the window is still live.
10446
10447 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
10448
10449 * coding.c (detect_coding_utf_16): Fix previous change.
10450
10451 2009-06-16 Kenichi Handa <handa@m17n.org>
10452
10453 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
10454 UTF-16 by checking the dispersion of Eth and Oth bytes.
10455
10456 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
10457
10458 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
10459
10460 2009-06-15 Kenichi Handa <handa@m17n.org>
10461
10462 * process.c (status_message): Fix previous change. Be sure to
10463 decode a localized string.
10464
10465 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10466
10467 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
10468 add comment explaining why.
10469
10470 2009-06-14 Sidney Markowitz <sidney@sidney.com>
10471
10472 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
10473
10474 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
10475
10476 * nsfont.m (ns_attribute_value): Remove.
10477 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
10478 (ns_has_attribute): Shrink the normal range.
10479 (ns_findfonts): Don't worry about requested spec in determining
10480 need for synthItal.
10481 (ns_get_covering_families): Retain scriptToFamilies.
10482
10483 2009-06-14 Seiji Zenitani <zenitani@mac.com>
10484
10485 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
10486
10487 2009-06-11 Kenichi Handa <handa@m17n.org>
10488
10489 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10490 overhang for the static composition case.
10491
10492 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10493
10494 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10495 overhang for the automatic composition case.
10496
10497 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
10498 composition case.
10499
10500 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
10501
10502 * xdisp.c (get_next_display_element): When handling wrap-prefix
10503 and line-prefix, treat \n as a control character (bug#3502).
10504
10505 2009-06-10 Kenichi Handa <handa@m17n.org>
10506
10507 * font.c (font_parse_family_registry): Fix for one-char foundry.
10508 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
10509
10510 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
10511
10512 * process.c (status_message): Fix handling of multibyte signal
10513 string (Bug#3499).
10514
10515 2009-06-09 Jim Meyering <meyering@redhat.com>
10516
10517 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
10518 color name is missing.
10519
10520 2009-06-09 Kenichi Handa <handa@m17n.org>
10521
10522 * charset.c (Fmap_charset_chars): In docstring, state clearly that
10523 FROM-CODE and TO-CODE are codepoints of CHARSET.
10524
10525 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10526
10527 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
10528
10529 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10530
10531 Changes to support :script/:lang/:otf in NS font driver.
10532 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
10533 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
10534 indicate not part of font driver interface, and change callers.
10535 (ns_get_family): Remove pointless null check.
10536 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
10537 ns_spec_to_descriptor, ns_descriptor_to_entity.
10538 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
10539 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
10540 (ns_spec_to_descriptor, ns_descriptor_to_entity)
10541 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
10542 (ns_get_req_script, ns_accumulate_script_ranges)
10543 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
10544 New functions.
10545 (nsfont_list, nsfont_match): Use ns_findfonts.
10546 (nsfont_open): Use font descriptor instead of traits.
10547 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
10548 (dump_glyphstring): Rename to ns_dump_glyphstring.
10549
10550 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
10551
10552 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
10553
10554 * fontset.c (fontset_from_font): Remove NS-specific code.
10555
10556 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
10557
10558 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
10559 nonactive windows.
10560
10561 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
10562
10563 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
10564
10565 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10566
10567 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
10568
10569 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
10570
10571 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
10572 account for the overflowing of newlines into the last glyph on the
10573 display line (Bug#3482).
10574
10575 2009-06-05 David Reitter <david.reitter@gmail.com>
10576
10577 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
10578 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
10579 Fns_selection_exists_p, Fns_selection_owner_p.
10580
10581 2009-06-03 Jason Rumney <jasonr@gnu.org>
10582
10583 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
10584 available. (Bug#3379)
10585
10586 2009-05-29 Kenichi Handa <handa@m17n.org>
10587
10588 * coding.c (get_translation_table):
10589 Check Venable_character_translation.
10590
10591 2009-05-26 David Reitter <david.reitter@gmail.com>
10592
10593 * nsterm.m (ns_raise_frame): Only raise frame if visible.
10594 (x_make_frame_visible): Move frame to front rather than calling
10595 ns_raise_frame().
10596 (keyDown:): Do not swallow events that aren't re-sent if frame
10597 isn't key window.
10598 (drawRect:): Do not set visibility/iconified flags because
10599 drawRect may be called by NSView even if the frame is hidden.
10600
10601 * nsfns.m (Fx_create_frame): Follow other ports in
10602 determining visibility; default to t. Ensure async_visible is set.
10603
10604 2009-05-23 Eli Zaretskii <eliz@gnu.org>
10605
10606 * dired.c (Ffile_attributes): Doc fix.
10607
10608 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
10609
10610 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
10611
10612 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
10613
10614 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
10615 and xfont_scratch_props.
10616 (syms_of_xfont): Do it here instead.
10617 (xfont_find_ccl_program): Delete, unused.
10618 (xfont_open): Delete unused var `i'.
10619
10620 2009-05-21 Kenichi Handa <handa@m17n.org>
10621
10622 * fontset.c (Qlatin): Don't make it static.
10623
10624 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
10625 New functions.
10626 (xfont_scripts_cache, xfont_scratch_props): New variables.
10627 (Qlatin, Vscalable_fonts_allowed): Extern it.
10628 (xfont_list_pattern): Argument changed. Callers changed.
10629 Check Vscalable_fonts_allowed. Check the support of a script.
10630 (xfont_list): Don't reject a font spec with :script property.
10631 (xfont_has_char): Fix setting of encoding.
10632 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
10633 xfont_scratch_props.
10634
10635 2009-05-19 Kenichi Handa <handa@m17n.org>
10636
10637 * font.c (font_sort_entities): Rename from font_sort_entites.
10638 Callers changed.
10639
10640 2009-05-18 Kenichi Handa <handa@m17n.org>
10641
10642 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
10643
10644 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10645
10646 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
10647 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
10648
10649 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10650
10651 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
10652 (x_delete_terminal): Dissociate resource database from display and
10653 then call XrmDestroyDatabase before closing display.
10654
10655 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10656
10657 * nsterm.m (ns_read_socket): Remove unused variable.
10658 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
10659 whether selected frame is viable before raising it (based on patch
10660 by David Reitter), and improve commentary.
10661 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
10662
10663 2009-05-15 Kenichi Handa <handa@m17n.org>
10664
10665 * font.c (Ffont_spec): Check arguments.
10666
10667 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
10668
10669 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
10670 weight when testing attributes (Bug#3282).
10671
10672 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10673
10674 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
10675 what we expect to get in the next ConfigureNotify event.
10676
10677 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
10678 before Xft one (Bug#1696).
10679
10680 2009-05-07 David Reitter <david.reitter@gmail.com>
10681
10682 * nsfns.m (Fx_display_planes): Compute bitplanes using
10683 NSBitsPerPixelFromDepth (Bug#3207).
10684
10685 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
10686
10687 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
10688
10689 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
10690
10691 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
10692
10693 2009-05-07 David Reitter <david.reitter@gmail.com>
10694
10695 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
10696 Respect mouse face background.
10697
10698 2009-05-07 David Reitter <david.reitter@gmail.com>
10699
10700 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
10701 Mouse movement/highlight: bracket drawing operations
10702 in ns_update_begin and ns_update_end.
10703
10704 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * nsfns.m (ns_get_screen): Rewrite.
10707 Don't presume selected-frame is of type `ns'.
10708
10709 * font.c (font_update_drivers): Sanity fallback to avoid disabling
10710 all drivers.
10711
10712 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
10713
10714 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10715
10716 * keyboard.h (add_user_signal): Fix typo in extern.
10717
10718 * lisp.h (add_user_signal): Remove extern.
10719
10720 * unexelf.c (unexec): Consider a section to precede the .bss section
10721 if its addresses overlap that of .bss.
10722 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
10723 instead of dumping process.
10724
10725 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10726
10727 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
10728
10729 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
10730
10731 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
10732
10733 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
10734
10735 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
10736 any statements.
10737
10738 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
10739
10740 * process.c (read_process_output): Make sure the current buffer is
10741 always restored.
10742
10743 * coding.c (record_conversion_result): Don't modify
10744 Vlast_code_conversion_error for successful result.
10745 (alloc_destination): Don't clobber conversion result. (Bug#1650)
10746
10747 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10748
10749 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
10750 (load_charset_map): Remove unnecessary code.
10751
10752 2009-04-30 David Reitter <david.reitter@gmail.com>
10753
10754 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
10755 through f24.
10756
10757 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
10758
10759 * xfaces.c (face_at_buffer_position): New arg base_face_id.
10760
10761 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
10762 face_at_buffer_position.
10763 (face_before_or_after_it_pos, get_next_display_element)
10764 (note_mouse_highlight): Update face_at_buffer_position call.
10765
10766 * term.c (term_mouse_highlight):
10767 * msdos.c (IT_note_mouse_highlight):
10768 * fontset.c (Finternal_char_font):
10769 * font.c (font_at, font_range): Update face_at_buffer_position call.
10770
10771 * dispextern.h (face_at_buffer_position): Update prototype.
10772
10773 2009-04-30 Kenichi Handa <handa@m17n.org>
10774
10775 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
10776
10777 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
10778
10779 * callproc.c (Fcall_process): Fix GC protection. Make sure
10780 current buffer is always restored.
10781
10782 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10783
10784 * atimer.c (init_atimer): Also clear stopped_atimers.
10785
10786 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
10787
10788 * process.c (create_process): Clean up merger residues of
10789 2008-07-17 change.
10790
10791 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
10792
10793 * lread.c (Vread_circle): New variable.
10794 (read1): Disable recursive read if Vread_circle is nil.
10795
10796 2009-04-29 Kenichi Handa <handa@m17n.org>
10797
10798 * fontset.h (set_default_ascii_font): Delete extern.
10799
10800 * fontset.c (set_default_ascii_font): Delete this unused function.
10801
10802 * frame.c (x_set_font): When ARG is a font-object, check if the
10803 font-object matches with the ASCII font-spec of the frame's
10804 fontset. If not, create a new fontset for the frame. (Bug #3075)
10805
10806 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
10807
10808 * fns.c (Flocale_info): Protect vector from GC during decoding.
10809
10810 * process.c (Fstart_process): Protect argv strings from GC during
10811 encoding.
10812
10813 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
10814
10815 * sysdep.c: Include <ctype.h>.
10816
10817 2009-04-27 David Reitter <david.reitter@gmail.com>
10818
10819 * nsfont.m (nsfont_open): Remove unused variable shrink.
10820 Remove commented-out code.
10821
10822 2009-04-26 Johan Bockgård <bojohan@gnu.org>
10823
10824 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10825
10826 2009-04-25 Jason Rumney <jasonr@gnu.org>
10827
10828 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
10829
10830 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10831
10832 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
10833 Swap bytes in short integer if fringe bitmap width > 8.
10834
10835 2009-04-23 Kenichi Handa <handa@m17n.org>
10836
10837 * xfaces.c (Fx_list_fonts): If a font size is specified in
10838 PATTERN, set it in returned scalable fonts.
10839
10840 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
10841
10842 * keyboard.c (Fset_input_meta_mode): Doc fix.
10843
10844 * dispnew.c (Fsend_string_to_terminal): Doc fix.
10845
10846 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
10847
10848 * coding.c (Fterminal_coding_system): Doc fix.
10849
10850 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
10851 (Fx_display_pixel_height, Fx_display_planes)
10852 (Fx_display_color_cells, Fx_server_max_request_size)
10853 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10854 (Fx_display_mm_height, Fx_display_mm_width)
10855 (Fx_display_backing_store, Fx_display_visual_class)
10856 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
10857 Doc fixes, replacing "terminal id" with "terminal object".
10858 (check_x_display_info): Handle terminal objects instead of
10859 terminal ids.
10860
10861 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
10862 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
10863 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
10864 Doc fixes, replacing "terminal id" with "terminal object".
10865
10866 2009-04-21 Kenichi Handa <handa@m17n.org>
10867
10868 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
10869 (font_score): Check AVGWIDTH too.
10870
10871 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
10872 worst case.
10873 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
10874 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
10875
10876 2009-04-19 Jason Rumney <jasonr@gnu.org>
10877
10878 The following changes fix Bug#3005 for wide glyphs on each platform,
10879 without reintroducing Bug#1258 for stretch glyphs.
10880
10881 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
10882 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
10883 get_phys_cursor_geometry.
10884
10885 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
10886 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
10887 using get_phys_cursor_geometry.
10888
10889 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
10890 correctly calculated.
10891
10892 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
10893
10894 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
10895 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
10896 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
10897 is deprecated.
10898
10899 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
10900
10901 * font.c (font_put_frame_data): Use xfree instead of free.
10902
10903 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
10904
10905 * w32font.c (Qja, Qko): Remove declarations.
10906 (syms_of_w32font): Don't DEFSYM them.
10907
10908 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
10909
10910 * font.c (Qja, Qko): Move definitions here from ftfont.c.
10911
10912 * font.h (Qja, Qko): Extern them.
10913
10914 * ftfont.c (Qja, Qko): Remove declarations.
10915
10916 * xfont.c (Qja, Qko): Remove declarations.
10917
10918 2009-04-17 Kenichi Handa <handa@m17n.org>
10919
10920 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
10921 string from a vector to handle Latin-1 characters correctly.
10922
10923 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
10924 entity even if the cache hits.
10925
10926 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
10927
10928 * search.c (boyer_moore): Use zero as marker value for a possible
10929 match instead of depending on overflow behavior. (Bug#2844)
10930
10931 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
10932 * lisp.h: Adjust prototypes.
10933
10934 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
10937 change (Bug#3003).
10938
10939 2009-04-16 Kenichi Handa <handa@m17n.org>
10940
10941 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
10942
10943 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
10944 adstyle.
10945
10946 * ftfont.c (Qja, Qko): Don't make them static.
10947 (enum ftfont_cache_for): New enum.
10948 (fc_charset_table): Undo the previous change.
10949 (ftfont_get_latin1_charset): Delete it.
10950 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
10951 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
10952 non-scarable font, try to get AVERAGE_WIDTH.
10953 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
10954 Change ft_face_cache from a list of a hash-table. Don't check
10955 `ja' and `ko' adstyle here.
10956 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
10957 FTFONT_CACHE_FOR_CHARET.
10958 (ftfont_get_charset): Undo the previous change.
10959 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
10960 (ftfont_close): Likewise.
10961 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
10962
10963 * font.c (font_sort_entites): Change the meaning of the arg
10964 BEST-ONLY. Don't optimize for VEC of lenght 1.
10965 (font_select_entity): Just return the value of font_sort_entites.
10966
10967 * xfaces.c (merge_face_vectors): Reflect font properties in
10968 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
10969 font_clear_prop if a face attribute doesn't change.
10970
10971 * charset.h (charset_ksc5601): Extern it.
10972
10973 * charset.c (charset_ksc5601): New variable.
10974 (Fdefine_charset_internal): Set charset_ksc5601.
10975 (init_charset_once): Initialize charset_ksc5601 to -1.
10976
10977 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10978
10979 * fileio.c (history_delete_duplicates): Remove unused declaration.
10980
10981 * callint.c (history_delete_duplicates): New declaration.
10982 (Fcall_interactively): Remove command history duplicates when
10983 history_delete_duplicates is true.
10984
10985 2009-04-14 Eli Zaretskii <eliz@gnu.org>
10986
10987 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10988
10989 2009-04-14 Kenichi Handa <handa@m17n.org>
10990
10991 * font.c (Ffont_info): Fix docstring. Fix the second element of
10992 the returned value (bug#2949).
10993
10994 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
10995
10996 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10997
10998 2009-04-14 Kenichi Handa <handa@m17n.org>
10999
11000 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
11001 encoding charset is ascii_compatible.
11002
11003 * charset.c (Fdefine_charset_internal): Make charset
11004 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
11005 code_offset is 0, and covers all ASCII characters.
11006
11007 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
11008
11009 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
11010 (ns_string_to_pasteboard_internal):
11011 * nsmenu.m (process_dialog):
11012 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
11013 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
11014 * lisp.h (Fx_load_color_file): Declare.
11015
11016 2009-04-13 Kenichi Handa <handa@m17n.org>
11017
11018 * font.c (font_delete_unmatched): Preserve the order of list elements.
11019 (font_select_entity): Suppress the code to optimize for the same
11020 kind of fonts.
11021 (font_load_for_lface): Get a font that supports at least ASCII
11022 characters.
11023
11024 * ftfont.c (Qja, Qko): New variables.
11025 (fc_charset_table): Delete uniquifier data for iso8859-1.
11026 (ftfont_get_latin1_charset): New function.
11027 (get_adstyle_property): New function.
11028 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
11029 bitmap fonts.
11030 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
11031 Delete iso-8859-1 range from the charset of fonts whose adstyle is
11032 `ko' or `ja'.
11033 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
11034 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
11035 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
11036 property.
11037 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
11038 (syms_of_ftfont): DEFSYM Qja and Qko.
11039
11040 2009-04-09 Kenichi Handa <handa@m17n.org>
11041
11042 * charset.c (map_charset_chars): For a charset of `superset'
11043 method, fix calculation of code range.
11044
11045 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
11046 from the list of extra properties.
11047 (font_clear_prop): Be sure to delete `:name' font property.
11048
11049 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11050
11051 * dispnew.c (redraw_overlapping_rows): Fix detection of
11052 overlapping for topmost and bottommost rows.
11053
11054 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
11055
11056 2009-04-06 Jason Rumney <jasonr@gnu.org>
11057
11058 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
11059
11060 2009-04-06 Kenichi Handa <handa@m17n.org>
11061
11062 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
11063
11064 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
11065
11066 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11067
11068 * ftfont.c (ftfont_open): Fix checking of the return value of
11069 FT_Load_Char. Fix setting font->underline_thickness.
11070
11071 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
11072
11073 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
11074 (Fterminal_parameters, Fterminal_parameter)
11075 (Fset_terminal_parameter): In doc string, refer to terminal
11076 objects rather than terminal ids.
11077
11078 2009-04-04 Eli Zaretskii <eliz@gnu.org>
11079
11080 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
11081 ret_lim_data. (Bug#2867)
11082
11083 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
11084
11085 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
11086 so they don't get wider than the window, matching 2006-01-23
11087 change to the partner function in xdisp.c (Bug#2800).
11088
11089 2009-04-03 Kenichi Handa <handa@m17n.org>
11090
11091 * print.c (print_object): Make each lowest sub_char_table start a
11092 new line (Bug#2866).
11093
11094 2009-04-02 Kenichi Handa <handa@m17n.org>
11095
11096 * fontset.c (fontset_font): Record no-font when a fontset
11097 explicitly tells not to try another font-specs.
11098
11099 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
11100
11101 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
11102
11103 2009-03-30 Kenichi Handa <handa@m17n.org>
11104
11105 * fontset.c (fontset_from_font): Specify only registry in a
11106 font-spec for all characters supported by that registry.
11107
11108 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
11109 even if HAVE_M17N_FLT is not defined.
11110
11111 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
11112
11113 * ftfont.c: Conditionalize prototyping and use of
11114 ftfont_variation_glyphs.
11115
11116 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11117
11118 * frame.c (delete_frame): Work around compiler bug.
11119
11120 * editfns.c (general_insert_function): Adjust to insdel.c changes.
11121 * insdel.c (prepare_to_modify_buffer, signal_before_change):
11122 Some more EMACS_INT.
11123 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
11124
11125 * xdisp.c (dump_glyph): Fix typo.
11126
11127 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
11128 (adjust_markers_gap_motion, adjust_markers_for_delete)
11129 (adjust_markers_for_insert, adjust_point)
11130 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
11131 (make_gap, copy_text, count_size_as_multibyte, insert)
11132 (insert_and_inherit, insert_before_markers)
11133 (insert_before_markers_and_inherit, insert_1)
11134 (count_combining_before, count_combining_after, insert_1_both)
11135 (insert_from_string, insert_from_string_before_markers)
11136 (insert_from_string_1, insert_from_gap, insert_from_buffer)
11137 (insert_from_buffer_1, adjust_after_replace)
11138 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
11139 (replace_range_2, del_range, del_range_1, del_range_byte)
11140 (del_range_both, del_range_2, modify_region)
11141 (prepare_to_modify_buffer, signal_before_change)
11142 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
11143 for buffer positions and sizes.
11144 * lisp.h: Adjust prototypes accordingly.
11145
11146 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
11147 (non_regular_inserted, non_regular_nbytes, read_non_regular)
11148 (Finsert_file_contents): Use EMACS_INT for buffer positions.
11149
11150 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
11151
11152 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
11153
11154 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
11155 lines and columns so we keep the same pixel height and width.
11156
11157 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
11158 the property _NET_WM_STATE has changed.
11159 (x_handle_net_wm_state): New function to update frame parameter
11160 fullscreen.
11161 (x_term_init): Initialize atoms for _NET_WM_STATE.
11162
11163 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
11164
11165 2009-03-27 Kevin Ryde <user42@zip.com.au>
11166
11167 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
11168 Gpm_GetEvent as an error that justifies closing the filedescriptor.
11169 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
11170 (Fgpm_mouse_stop): Pass that new parameter.
11171 * termhooks.h (close_gpm): Adjust prototype.
11172
11173 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11174
11175 * lisp.h (Fx_focus_frame): Declare.
11176
11177 * callint.c (Fcall_interactively): For '^' just delegate the work to
11178 handle-shift-selection.
11179 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
11180
11181 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
11182
11183 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
11184
11185 * data.c (Qinteractive_form): New variable.
11186 (Finteractive_form): Use it.
11187
11188 * eval.c (Fcommandp): Use Qinteractive_form.
11189
11190 2009-03-24 Jason Rumney <jasonr@gnu.org>
11191
11192 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
11193 Calculate total size precisely. Decode environment variables
11194 before substituting. (Bug#38)
11195
11196 2009-03-24 Kenichi Handa <handa@m17n.org>
11197
11198 * font.c (find_font_encoding): Return Qnil for unsupported
11199 encoding (Bug#2722).
11200
11201 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
11202
11203 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
11204 that gdpy is set.
11205
11206 2009-03-22 Alan Mackenzie <acm@muc.de>
11207
11208 * callint.c (Finteractive): Clarify the doc string - even
11209 promptless elements need \n separators.
11210
11211 2009-03-22 Jason Rumney <jasonr@gnu.org>
11212
11213 * w32term.c (syms_of_w32term): Doc fix for
11214 x-use-underline-position-properties.
11215
11216 2009-03-21 Eli Zaretskii <eliz@gnu.org>
11217
11218 * w32.c (getpwuid): Change argument type to unsigned.
11219 (struct w32_id): Change type of `rid' member to unsigned.
11220 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
11221 argument ID to unsigned. All callers changed.
11222 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
11223
11224 2009-03-20 Eli Zaretskii <eliz@gnu.org>
11225
11226 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
11227 negative, produce a float value.
11228
11229 * dired.c (make_uid, make_gid): New functions.
11230 (Ffile_attributes): Use them to avoid negative UID and GID.
11231
11232 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
11233
11234 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
11235 (syms_of_keyboard) <command-hook-internal, input-method-function>:
11236 Fix typos in docstrings.
11237
11238 2009-03-19 Kenichi Handa <handa@m17n.org>
11239
11240 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
11241 changed, use font_load_for_lface to get a new font object.
11242 Call free_realized_fontset after handling ASCII font change.
11243
11244 * frame.c (x_set_font): Handle the case that ARG is a cons.
11245
11246 2009-03-19 Glenn Morris <rgm@gnu.org>
11247
11248 * fileio.c (Fsubstitute_in_file_name): Doc fix.
11249
11250 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
11251
11252 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
11253
11254 2009-03-19 Kenichi Handa <handa@m17n.org>
11255
11256 * charset.c (load_charset_map_from_file): When a mapfile can't be
11257 loaded, signal an error.
11258
11259 2009-03-18 Eli Zaretskii <eliz@gnu.org>
11260
11261 * dired.c (Ffile_attributes): Make sure UID and GID are always
11262 positive, even if the value is too large for a positive EMACS_INT.
11263 Doc fix.
11264
11265 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
11266
11267 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11268
11269 * xmenu.c (xdialog_show): Move Fredisplay call ...
11270 (Fx_popup_dialog): ... here.
11271
11272 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
11273
11274 * dired.c (file_name_completion): Disable the first optimization just
11275 installed, since it is not implemented correctly.
11276
11277 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11278
11279 * dired.c (file_name_completion): Check completion-ignored-extensions
11280 only if the entry can affect bestmatch.
11281 Stop the search early, as Ftry_completion already does.
11282
11283 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
11284
11285 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
11286
11287 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
11288
11289 * keyboard.c (parse_menu_item): Don't display remappings as menu
11290 equivalent bindings (Bug#788).
11291
11292 2009-03-15 Jason Rumney <jasonr@gnu.org>
11293
11294 * w32term.h (WM_EMACS_PAINT): New message.
11295 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
11296 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
11297 before passing to lisp thread. (Bug#950)
11298
11299 2009-03-14 David Reitter <david.reitter@gmail.com>
11300
11301 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
11302 variable as it was never reset.
11303 (ns_term_init): Remove initialization of Lisp-settable defaults
11304 and ns_expand_space.
11305 (-setPanelFromDefaultValues): Remove ns_expand_space.
11306 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
11307 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
11308 i.e. no additional spacing, similar to Carbon port.
11309
11310 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
11311 * nsfns.m (ns-popup-prefs-panel): Remove.
11312
11313 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
11314
11315 * sound.c (alsa_configure): Remove call to deprecated
11316 snd_pcm_sw_params_set_xfer_align.
11317
11318 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
11319
11320 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
11321 after clicking in a detached tool bar.
11322 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
11323
11324 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
11325
11326 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
11327 int/Lisp_Object mixup).
11328
11329 2009-03-13 Kenichi Handa <handa@m17n.org>
11330
11331 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
11332 Handle NAME nil and t correctly. Callers changed.
11333 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
11334 (set_fontset_font): Change ARG to a vector. Handle range_list in
11335 ARG correctly.
11336 (Fset_fontset_font): Fix the case that TARGET is both a script
11337 name and charset name. Adjust the arg to set_fontset_font for
11338 the above change.
11339 (fontset_from_font): Fix previous change.
11340 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
11341 entry. If FONTSET is the default fontset, don't set the extra
11342 slot of the returning char-table.
11343
11344 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
11345
11346 * nsfns.m (Fx_close_connection): Doc fix.
11347 (Fns_do_applescript): Reflow docstring.
11348 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
11349 (Fx_display_pixel_width, Fx_display_pixel_height)
11350 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
11351 Fix typos in docstrings.
11352 (Fns_set_alpha): Fix typos in error messages.
11353
11354 2009-03-12 David Reitter <david.reitter@gmail.com>
11355
11356 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
11357 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
11358 were used for such events.
11359
11360 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
11361 (toggleToolbar, performDragOperation, runHelp): Use it.
11362
11363 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
11364 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
11365
11366 2009-03-11 Kenichi Handa <handa@m17n.org>
11367
11368 * font.h (font_open_by_spec): Extern it.
11369
11370 * font.c (font_open_by_spec): New function.
11371 (font_open_by_name): Use font_open_by_spec.
11372
11373 * frame.c (x_set_font): When ARG is a font-object, don't alter the
11374 fontset of the frame.
11375
11376 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
11377 modify the default font of frames that use this fontset.
11378 (num_auto_fontsets): New variable.
11379 (fontset_from_font): Use num_auto_fontsets to decide a fontset
11380 name. Be sure to set FONTSET_ASCII to the correct font name.
11381 (update_auto_fontset_alist): New function.
11382
11383 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
11384
11385 * makefile.w32-in: Update dependencies.
11386
11387 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11388
11389 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
11390
11391 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11392
11393 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
11394
11395 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
11396
11397 * lread.c (Feval_buffer): Doc fix.
11398
11399 2009-03-09 Kenichi Handa <handa@m17n.org>
11400
11401 * charset.c (Qfile_name_handler_alist): Extern it.
11402 (load_charset_map_from_file): Temporarily bind
11403 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
11404
11405 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
11406
11407 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
11408 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
11409
11410 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11411
11412 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
11413 (x_set_window_size): Change back to calculated method of setting
11414 toolbar height under Cocoa. (Bug#2546)
11415 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
11416 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
11417
11418 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
11419
11420 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
11421 accelerator in parens under GNUstep.
11422
11423 2009-03-06 Kenichi Handa <handa@m17n.org>
11424
11425 These changes are to detect incorrect composition sequence without
11426 looking ahead the source. (Bug#2370)
11427
11428 * coding.h: Include "composite.h".
11429 (enum compisition_state): New enum.
11430 (struct compisition_status): New struct.
11431 (struct iso_2022_spec): New member cmp_status.
11432 (struct emacs_mule_spec): New struct.
11433 (struct coding_system): New members ctext_extended_segment_len and
11434 embedded_utf_8. Change the union member
11435 spec.emacs_mule_full_support to spec.emacs_mule.
11436
11437 * coding.c (CODING_ISO_CMP_STATUS): New macro.
11438 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
11439 (MAX_ANNOTATION_LENGTH): Define to 5.
11440 (ADD_COMPOSITION_DATA): New arg nbytes.
11441 (emacs_mule_char): New arg cmp_status.
11442 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
11443 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
11444 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
11445 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
11446 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
11447 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
11448 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
11449 (EMACS_MULE_COMPOSITION_END): New macro.
11450 (emacs_mule_finish_composition): New function.
11451 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
11452 (decode_coding_emacs_mule): Avoid long looking ahead while
11453 handling composition.
11454 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
11455 (ENCODE_COMPOSITION_RULE): New macro.
11456 (finish_composition): New function.
11457 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
11458 (DECODE_COMPOSITION_START): New implementation.
11459 (DECODE_COMPOSITION_END): Likewise.
11460 (STORE_COMPOSITION_RULE): New macro.
11461 (decode_coding_iso_2022): Avoid long looking ahead while handling
11462 composition, CTEXT extended segment, and embedded UTF-8.
11463 (setup_coding_system): For a coding of type iso-2022, reset
11464 CODING_ISO_EXTSEGMENT_LEN (coding) and
11465 CODING_ISO_EMBEDDED_UTF_8 (coding).
11466 (get_translation): Delete arguments last_block, from_nchars,
11467 to_nchars. Callers changed.
11468 (produce_chars): Don't modify charbuf. Adjusted for the change of
11469 get_translation.
11470 (produce_composition): Adjust for the new annotation sequence.
11471 (handle_composition_annotation): Likewise.
11472 (consume_chars): Adjust for the change of get_translation.
11473
11474 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
11475
11476 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
11477
11478 2009-03-05 Kenichi Handa <handa@m17n.org>
11479
11480 * font.c (font_select_entity): New function.
11481 (font_find_for_lface): Use font_select_entity to select a font.
11482
11483 * fontset.c (fontset_find_font): If a font found without
11484 restricting to the characters C doesn't support C, try to find a
11485 font with C restriction.
11486
11487 2009-03-04 Nikolaj Schumacher <me@nschum.de>
11488
11489 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
11490
11491 2009-03-04 Jason Rumney <jasonr@gnu.org>
11492
11493 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
11494 characters that have already been read. (Bug#2569)
11495
11496 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
11497 Log an error message if check_image_size failed.
11498 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
11499 (gs_load): Mention max-image-size in size error message. (Bug#2560)
11500
11501 2009-03-02 Eli Zaretskii <eliz@gnu.org>
11502
11503 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
11504 when decoding process output.
11505
11506 2009-03-01 Richard M Stallman <rms@gnu.org>
11507
11508 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
11509
11510 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
11511
11512 2009-02-28 Eli Zaretskii <eliz@gnu.org>
11513
11514 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
11515 (decode_coding_emacs_mule, decode_coding_iso_2022)
11516 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11517 (decode_coding_raw_text, decode_coding_charset)
11518 (setup_coding_system, decode_eol, decode_coding, consume_chars):
11519 Honor inhibit-eol-conversion. (Bug #2186)
11520
11521 2009-02-28 Jason Rumney <jasonr@gnu.org>
11522
11523 * coding.c (detect_coding_charset): If not checking latin extra,
11524 fail on characters between 0x80 and 0xA0. (Bug#2354)
11525
11526 2009-02-28 Eli Zaretskii <eliz@gnu.org>
11527
11528 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
11529 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
11530
11531 2009-02-27 Glenn Morris <rgm@gnu.org>
11532
11533 * callint.c (Finteractive): Doc fix.
11534
11535 2009-02-27 Kenichi Handa <handa@m17n.org>
11536
11537 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
11538
11539 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
11540
11541 * font.c (font_style_to_value): Set value for unknown symbols to
11542 100 instead of 255.
11543 (weight_table, slant_table, width_table): Treat "unspecified" as
11544 the default value.
11545
11546 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
11547
11548 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
11549
11550 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
11551
11552 * lread.c (Fload): Stop checking Vloads_in_progress and signal
11553 error as soon as a recursive load is detected.
11554
11555 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11556
11557 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
11558 before caching.
11559
11560 2009-02-24 Kenichi Handa <handa@m17n.org>
11561
11562 * fontset.c (fontset_find_font): Fix the condition for checking
11563 unavailable font.
11564
11565 2009-02-24 Glenn Morris <rgm@gnu.org>
11566
11567 * xfaces.c (Finternal_set_font_selection_order): Remove leading
11568 whitespace that confuses documentation.
11569
11570 2009-02-23 Miles Bader <miles@gnu.org>
11571
11572 * process.c (Flist_system_processes, Fprocess_attributes)
11573 (syms_of_process): Rename `system-process-attributes' to
11574 `process-attributes'.
11575
11576 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
11577
11578 * coding.h (struct coding_system): Make safe_charsets a pointer to
11579 unsigned char.
11580 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
11581 being 255.
11582 (SAFE_CHARSET_P): Likewise.
11583 (setup_iso_safe_charsets): Properly setup safe_charsets.
11584 (Fdefine_coding_system_internal): Likewise.
11585 (setup_coding_system): Likewise. Remove unneeded casts.
11586 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
11587 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
11588 Remove unneeded casts.
11589
11590 * insdel.c (del_range_2): Don't modify gap contents when called
11591 from decode_coding_object. (Bug#1809)
11592
11593 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
11596 Qfont_object.
11597 (Ftype_of): Recognize font objects.
11598
11599 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
11600
11601 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
11602 Definitions moved to data.c.
11603
11604 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11605
11606 * nsterm.m (x_make_frame_invisible): Unset async_visible,
11607 async_iconified. Based on a patch by Christian Lynbech
11608 <christian.lynbech@tieto.com>.
11609 (EmacsView-windowDidMiniaturize:): Unset async_visible.
11610
11611 2009-02-20 Glenn Morris <rgm@gnu.org>
11612
11613 * syntax.c (Fskip_chars_forward): Fix doc typo.
11614
11615 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
11616
11617 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
11618
11619 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
11620
11621 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
11622
11623 2009-02-19 Kenichi Handa <handa@m17n.org>
11624
11625 * coding.c (detect_coding): Preserve coding->mode.
11626 Don't overflow coding->carryover. (Bug#2370)
11627
11628 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
11629
11630 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
11631
11632 2009-02-18 Kenichi Handa <handa@m17n.org>
11633
11634 * font.c (font_check_otf_features): Fix handling of `nil' element.
11635 (Ffont_spec): Describe :lang and :otf in the docstring.
11636
11637 2009-02-16 Andreas Schwab <schwab@suse.de>
11638
11639 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
11640 string.
11641
11642 2009-02-16 Kenichi Handa <handa@m17n.org>
11643
11644 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
11645 (Bug#1723)
11646
11647 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
11648
11649 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
11650
11651 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
11652 (handle_line_prefix): Suppress wrapping of wrap prefixes.
11653
11654 2009-02-14 Eli Zaretskii <eliz@gnu.org>
11655
11656 * msdos.c (MAX_SCREEN_BUF): New macro.
11657 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
11658 Encode the entire run of glyphs sharing the same face, instead of
11659 doing that one glyph at a time (fixes a bug with displaying
11660 double-size characters).
11661
11662 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
11663
11664 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
11665
11666 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
11667 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
11668 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
11669
11670 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
11671 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
11672
11673 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11674
11675 * keyboard.c (adjust_point_for_property): Allow stopping between two
11676 invisible areas.
11677
11678 2009-02-12 Jason Rumney <jasonr@gnu.org>
11679
11680 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
11681 (add_font_entity_to_list): Call check_face_name even when family
11682 is unspecified.
11683
11684 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11685 Release DC when finished. Use NULL window to refer to desktop.
11686 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
11687
11688 * w32font.c (add_font_entity_to_list): Fix check for substituted
11689 raster fonts. (Bug#2219)
11690
11691 2009-02-12 Kenichi Handa <handa@m17n.org>
11692
11693 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
11694 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
11695 (autocmp_chars): Use fast_looking_at. Don't compose more
11696 characters than MAX_COMPOSITION_COMPONENTS.
11697 (find_automatic_composition): While looking forward and backward,
11698 check static composition. Fix where to stop looking forward.
11699 (composition_adjust_point): Fix checking of static composition.
11700 (Fcomposition_get_gstring): Pay attention to
11701 MAX_COMPOSITION_COMPONENTS.
11702
11703 * lisp.h (fast_looking_at): Extern it.
11704
11705 * search.c (fast_looking_at): New function.
11706
11707 * term.c (encode_terminal_code): Adjust for the change of
11708 <struct glyph>.u.cmp.to.
11709 (append_composite_glyph): Likewise.
11710
11711 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
11712 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
11713 composition.
11714 (append_composite_glyph): Adjust for the change of
11715 <strcut glyph>.u.cmp.to.
11716
11717 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
11718
11719 * casetab.c (init_casetab_once):
11720 * coding.c (ALLOC_CONVERSION_WORK_AREA):
11721 * font.c (font_update_lface):
11722 * fontset.c (Fnew_fontset):
11723 * ftfont.c (ftfont_drive_otf):
11724 * xfont.c (xfont_open):
11725 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
11726
11727 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11728
11729 * fileio.c (Fwrite_region): !NILP -> CONSP.
11730
11731 2009-02-10 Andreas Schwab <schwab@suse.de>
11732
11733 * process.c (send_process): Properly relocate pointer into data
11734 when using encoded data. (Bug#2272)
11735
11736 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
11737
11738 * coding.c (detect_coding_charset): Fix previous change.
11739
11740 2009-02-08 Jason Rumney <jasonr@gnu.org>
11741
11742 * w32fns.c (w32_hide_hourglass): Handle case where frame
11743 disappeared while hourglass was displayed. (Bug #2193)
11744
11745 2009-02-07 Andreas Schwab <schwab@suse.de>
11746
11747 * unexelf.c (unexec): Fix error message.
11748
11749 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
11750
11751 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
11752 when modal window is active. (Bug #2152)
11753 (applicationShouldTerminate:): Remove now-unneeded while loop
11754 around NSRunAlertPanel.
11755
11756 * nsmenu.m (popupSession): New file-global variable.
11757 (pop_down_menu): End the popupSession before closing dialog.
11758 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
11759 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
11760 don't query NSApp for events (just sleep instead).
11761
11762 2009-02-07 Eli Zaretskii <eliz@gnu.org>
11763
11764 * coding.c (syms_of_coding) <translation-table-for-input>:
11765 Modify doc string to discourage use for character code unification.
11766
11767 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11768
11769 * atimer.c (run_timers): Update pending_atimers.
11770
11771 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
11772
11773 * image.c (svg_load_image): Fix last change.
11774
11775 * xfns.c (Fx_create_frame): Signal an error if no font is
11776 found (Bug#2147).
11777
11778 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
11779
11780 * character.c (syms_of_character) <script-representative-chars>:
11781 Fix typo in docstring.
11782
11783 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11784
11785 * nsmenu.m (pop_down_menu): New function.
11786 (ns_popup_dialog): Call it on unwind.
11787 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
11788 call timer_check() (Bug#2154).
11789 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
11790 handling_signal is set.
11791 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
11792
11793 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
11794
11795 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
11796
11797 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
11798
11799 * keyboard.c (poll_for_input_1, handle_async_input):
11800 Set handling_signal under HAVE_NS.
11801
11802 2009-02-04 Glenn Morris <rgm@gnu.org>
11803
11804 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
11805
11806 2009-02-04 Kenichi Handa <handa@m17n.org>
11807
11808 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
11809
11810 * charset.c (Fchar_charset): New optional arg restriction.
11811
11812 * coding.h (coding_system_charset_list): Extern it.
11813
11814 * coding.c (coding_system_charset_list): New function.
11815
11816 * composite.c: Include coding.h and termhooks.h.
11817 (composition_gstring_p): Fix for the terminal case.
11818 (composition_gstring_width): Likewise.
11819 (fill_gstring_body): Likewise.
11820 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
11821 the frame.
11822 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
11823 is within a composition.
11824 (Fcomposition_get_gstring): Fix the terminal case.
11825
11826 * term.c (encode_terminal_code): Fix handling of composition.
11827 (produce_composite_glyph): For static composition, get pixel_width
11828 from struct composition.
11829
11830 2009-02-02 Andreas Schwab <schwab@suse.de>
11831
11832 * unexelf.c (unexec): Handle unaligned bss offset.
11833
11834 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11835
11836 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
11837 XT,w32read_socket changes to ns_read_socket.
11838
11839 * keyboard.c (handle_interrupt): Don't call
11840 quit_throw_to_read_char() under NS.
11841
11842 * blockinput.h: Remove NS-specific code.
11843
11844 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
11845
11846 * dispnew.c (window_change_signal): Don't try to get the size of a
11847 suspended tty frame.
11848 * term.c (Fresume_tty): Resize if the size has changed while the
11849 tty was suspended.
11850
11851 * alloc.c (mark_stack): Properly conditionalize previous change.
11852
11853 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
11854
11855 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
11856 * w32term.c (w32_read_socket) [SYNC_INPUT]:
11857 Remove; this code is not used on Windows.
11858
11859 2009-01-30 Eli Zaretskii <eliz@gnu.org>
11860
11861 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
11862 EOLs that also has stray ^M characters.
11863
11864 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
11865
11866 * atimer.c (run_timers, alarm_signal_handler):
11867 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
11868 * w32inevt.c (w32_console_read_socket):
11869 * w32term.c (w32_read_socket):
11870 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
11871
11872 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
11873
11874 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
11875 Initialize it as a relative filename pattern.
11876 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
11877 (Fcall_process_region): Simplify temp file creation using
11878 temporary-file-directory.
11879
11880 2009-01-29 Eli Zaretskii <eliz@gnu.org>
11881
11882 * msdos.c: Rename pending_signals to msdos_pending_signals.
11883 (sig_suspender, sigprocmask): Adjust.
11884
11885 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
11886
11887 * keyboard.c (pending_signals): New var.
11888 (poll_for_input, input_available_signal, init_keyboard): Set it.
11889 (process_pending_signals): New function.
11890
11891 * lisp.h (QUIT): Check pending_signals instead of
11892 interrupt_input_pending. Use process_pending_signals.
11893
11894 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
11895
11896 * process.c (wait_reading_process_output): Use process_pending_signals.
11897
11898 * sysdep.c (emacs_write): Use process_pending_signals.
11899
11900 * xterm.c (XTread_socket): Update pending_signals.
11901
11902 * w32term.c (w32_read_socket): Update pending_signals.
11903
11904 * w32inevt.c (w32_console_read_socket): Update pending_signals.
11905
11906 2009-01-29 Kenichi Handa <handa@m17n.org>
11907
11908 * xftfont.c (xftfont_has_char): New function.
11909 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
11910
11911 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11912
11913 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
11914 under GNUstep.
11915 (ns_query_color): New declaration.
11916
11917 * nsterm.m (ns_confirm_quit): New variable.
11918 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
11919 (EmacsApp-applicationShouldTerminate:): Use it.
11920 (EmacsPrefsController): Let user set it.
11921 (ns_query_color): New function.
11922 (ns_defined_color): Use it.
11923 (ns_initialize): Drop.
11924 (ns_term_init): Add two lines from ns_initialize(), and set
11925 input_interrupt_mode to nil.
11926
11927 * image.c (svg_load_image): Don't right-shift background RGB when
11928 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
11929
11930 2009-01-28 Kenichi Handa <handa@m17n.org>
11931
11932 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11933 (fontset_get_font_group): Remember that no font-group is specified
11934 for C.
11935
11936 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
11937
11938 * fns.c (concat): Check for string overflow (bug#1787).
11939
11940 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
11941 Quadruple undo limits (bug#1501).
11942
11943 2009-01-27 Kenichi Handa <handa@m17n.org>
11944
11945 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
11946 directly use GT_Get_Char_index.
11947
11948 * xftfont.c (struct xftfont_info): New member `index'.
11949
11950 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11951 (Ffontset_font): Adjust for the change of fontset entry.
11952
11953 2009-01-26 Kenichi Handa <handa@m17n.org>
11954
11955 * fontset.c (fontset_find_font): Fix handling of non-cons return
11956 value of fontset_get_font_group.
11957 (fontset_font): Revert last change.
11958
11959 2009-01-26 Jason Rumney <jasonr@gnu.org>
11960
11961 * w32font.c (w32font_list_internal): Return quickly if registry is
11962 unknown. Simplify final return.
11963 (add_font_entity_to_list): Break complex logic down into more
11964 manageable chunks. Move unknown registry check to
11965 w32font_list_internal.
11966
11967 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
11968
11969 Changes to remove Feval calls from GUI under NS.
11970
11971 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11972 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
11973 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11974
11975 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11976 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11977 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11978 instead of NON_ASCII_KEYSTROKE_EVENT.
11979 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11980 (EmacsApp-applicationShouldTerminate:): Query user.
11981 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11982 instead of Feval.
11983
11984 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11985
11986 * keyboard.c (kbd_buffer_get_event): Check for it.
11987 (keys_of_keyboard): Define lispy keys for
11988 ns-put/unput-working-text.
11989
11990 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11991 versions.
11992 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11993
11994 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
11995
11996 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
11997 setting current_buffer directly. (Bug#2044)
11998
11999 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
12000
12001 * fontset.c (fontset_font): If we know there is no font, don't do
12002 any work. (Bug#1952, bug#1990).
12003
12004 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
12005
12006 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12007
12008 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
12009 (ns_no_defaults): New declaration.
12010 (main): Use it.
12011
12012 * nsterm.h (ns_no_defaults): New declaration.
12013
12014 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
12015
12016 * nsterm.m (ns_no_defaults): New variable.
12017 (ns_initialize): Don't read defaults when ns_no_defaults.
12018 (EmacsView-readSelectionFromPasteboard:)
12019 (writeSelectionToPasteboard:types:): New stubbed-out methods for
12020 NSServicesRequests protocol. (Bug#1435)
12021 (ns_dumpglyphs_stretch): New function.
12022 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
12023 of 2008-11-15 to other terms. (Bug#615)
12024
12025 * nsimage.m (setPixmapData:): Set to ignore image DPI.
12026
12027 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
12028
12029 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
12030 call for Sparc64.
12031
12032 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12033
12034 * nsfns.m:
12035 * nsgui.h:
12036 * nsmenu.m:
12037 * nsselect.m:
12038 * nsterm.h:
12039 * nsterm.m: Remove '23' comments that indicated code added during
12040 update from emacs-20 -> emacs-23.
12041
12042 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12043
12044 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
12045 ns_alternate_modifier. (Bug#1217)
12046
12047 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
12048 Display all shortcuts, including those w/o super modifier.
12049
12050 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
12051
12052 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
12053
12054 * fileio.c (Vwrite_region_post_annotation_function)
12055 (Vwrite_region_annotation_buffers): New vars.
12056 (build_annotations_unwind): Just reset
12057 Vwrite_region_annotation_buffers.
12058 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
12059 Call write-region-post-annotation-function.
12060 (build_annotations): Add to Vwrite_region_annotation_buffers if
12061 buffer changes.
12062
12063 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12064
12065 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
12066 Tiger.
12067 * nsfns.m (ns_do_applescript):
12068 Conditionalize typeUTF16ExternalRepresentation on Tiger.
12069
12070 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12071
12072 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
12073
12074 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12075
12076 * nsmenu.m (NSMENUPROFILE): Change #if style.
12077
12078 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
12079
12080 * nsterm.m (x_set_frame_alpha): Add prototype.
12081 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
12082 handle Ctrl-tab. (Bug#1841)
12083 (ns_get_color): Use unsigned long long for scanned hex string value.
12084 (ns_term_shutdown): Abort on non SIGTERM signals.
12085 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
12086 (EmacsPrefsController-setPanelFromDefaultValues): New function.
12087 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
12088 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
12089 (ns_defined_color): Fix settings of the XColor variable fields:
12090 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
12091
12092 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
12093 DPI. (Bug#1316)
12094 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
12095 values in onTiger section.
12096
12097 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
12098
12099 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
12100 Check return value of font_spec_from_name.
12101 (Fx_list_fonts): Doc fix. (Bug#1951)
12102
12103 * font.c (font_spec_from_name): Return Qnil if font name could not
12104 be parsed.
12105 (font_parse_name): Treat a `?' character as part of an XLFD.
12106
12107 * fns.c (Fsubstring): Doc fix.
12108
12109 2009-01-19 Kenichi Handa <handa@m17n.org>
12110
12111 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
12112 (ftfont_list): Likewise.
12113
12114 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
12115
12116 * dbusbind.c (Fdbus_register_signal):
12117 * process.c (conv_sockaddr_to_lisp):
12118 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
12119
12120 * callproc.c (Fgetenv_internal): Doc fix.
12121
12122 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
12123
12124 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
12125 it is not even used.
12126
12127 2009-01-16 Glenn Morris <rgm@gnu.org>
12128
12129 * font.c (Ffont_variation_glyphs): Silence compiler.
12130
12131 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
12132
12133 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
12134 Reported by David Robinow <drobinow@gmail.com>.
12135
12136 2009-01-15 Kenichi Handa <handa@m17n.org>
12137
12138 * coding.c (detect_coding_system): Fix handling of null_byte_found.
12139
12140 2009-01-14 Jason Rumney <jasonr@gnu.org>
12141
12142 * frame.c (x_set_font): Always store a font to the font parameter,
12143 never a fontset. (Bug#1562)
12144
12145 2009-01-14 Kenichi Handa <handa@m17n.org>
12146
12147 * coding.c (TWO_MORE_BYTES): New macro.
12148 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
12149
12150 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
12151
12152 * font.c (font_clear_prop): If clearing the family, clear the font
12153 width index too.
12154
12155 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
12156
12157 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
12158
12159 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
12160 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
12161 functions, use sizeof.
12162
12163 2009-01-12 Martin Rudalics <rudalics@gmx.at>
12164
12165 * keyboard.c (read_char): Fix case where last_nonmenu_event
12166 returned a bad value with submenus. (Bug#447)
12167
12168 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
12169
12170 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
12171 family, clear the font width index too.
12172
12173 2009-01-11 Jason Rumney <jasonr@gnu.org>
12174
12175 * keyboard.c (cmd_error_internal): Exit when errors occur before
12176 frame creation and not in daemon mode. (Bug#1836)
12177
12178 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
12179
12180 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
12181 of a display vector, backtrack.
12182 (try_window_reusing_current_matrix): Check glyph type before
12183 referencing charpos member.
12184
12185 2009-01-10 Eli Zaretskii <eliz@gnu.org>
12186
12187 Fix Bug #876:
12188
12189 * coding.c (inhibit_null_byte_detection): New variable.
12190 (detect_coding, detect_coding_system): Don't pay attention to null
12191 bytes if inhibit_null_byte_detection is non-zero.
12192 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
12193 <inhibit-iso-escape-detection>: Doc fix.
12194
12195 2009-01-09 Jason Rumney <jasonr@gnu.org>
12196
12197 * w32font.c (add_font_entity_to_list): Don't report unknown
12198 Windows charset as any unrecognized registry. (Bug#1548)
12199 Only report Unicode Plane 2 fonts as unicode-sip.
12200
12201 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
12202
12203 * xfaces.c (Fx_font_family_list): Delete function.
12204 Move compatibility version to faces.el.
12205
12206 * font.c (Ffont_family_list): Return a list of strings, not symbols.
12207
12208 2009-01-09 Martin Rudalics <rudalics@gmx.at>
12209
12210 * frame.c (x_set_frame_parameters): Remember requested value for
12211 fullscreen before it's reset by the parameter handler.
12212
12213 2009-01-09 Glenn Morris <rgm@gnu.org>
12214
12215 * keyboard.c (last_command_char): For clarity, rename to...
12216 (last_command_event): ... and update all users.
12217 (last_input_char): For clarity, rename to...
12218 (last_input_event): ... and update all users.
12219 (last-command-char, last-input-char): Move to subr.el as aliases.
12220 * cmds.c, commands.h: Update for last_command_char rename.
12221
12222 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
12223
12224 * font.c (font_open_for_lface): Handle unspecified height attribute.
12225
12226 2009-01-08 Jason Rumney <jasonr@gnu.org>
12227
12228 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
12229 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
12230 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
12231 Don't declare.
12232 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
12233 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
12234
12235 2009-01-07 Kenichi Handa <handa@m17n.org>
12236
12237 * fileio.c (Finsert_file_contents): In the case of replace,
12238 remember the coding system used for decoding in
12239 coding_system (Bug#1039).
12240
12241 * coding.c (decode_coding_utf_8): Check byte_after_cr before
12242 breaking the loop. (Bug#870)
12243 (decode_coding_utf_16, decode_coding_emacs_mule)
12244 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12245 (decode_coding_charset): Likewise.
12246
12247 2009-01-05 Martin Rudalics <rudalics@gmx.at>
12248
12249 * frame.c (x_set_frame_parameters): Make sure height (width) get
12250 applied when fullwidth (fullheight) is set. (Bug#1522)
12251
12252 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
12253
12254 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
12255 (utc_base): Declare as ULONGLONG, not long double.
12256 (convert_time_raw): Delete.
12257 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
12258 (initialize_utc_base): New function.
12259 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
12260 (convert_from_time_t): Use initialize_utc_base; compute result with
12261 64-bit arithmetic.
12262 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
12263
12264 2009-01-03 Eli Zaretskii <eliz@gnu.org>
12265
12266 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
12267 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
12268 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
12269 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
12270 [!subprocesses]: Define.
12271 (syms_of_process) [!subprocesses]: Intern and staticpro them.
12272 (Flist_system_processes, Fsystem_process_attributes)
12273 [!subprocesses]: Call list_system_processes and
12274 system_process_attributes instead of returning Qnil.
12275
12276 * dosfns.c (system_process_attributes, list_system_processes):
12277 New functions.
12278
12279 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
12280
12281 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
12282 Don't use the default (no-op) implementation.
12283
12284 2009-01-03 Jason Rumney <jasonr@gnu.org>
12285
12286 * keyboard.c (parse_modifiers_uncached): Wheel events are
12287 clicks (bug#687).
12288
12289 * w32term.c (x_query_colors, x_query_color): New functions.
12290
12291 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
12292 (svg_load_image): Cast returned pointers from dynamically loaded
12293 functions. Eliminate W32 specific code.
12294
12295 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
12296
12297 * nsfns.m (x_set_foreground_color, x_set_background_color)
12298 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
12299 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
12300 x_ prefix instead of ns_. Update references.
12301 (syms_of_nsfns): Add a FIXME comment.
12302
12303 * nsterm.m (x_set_cursor_type): New prototype.
12304 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
12305
12306 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
12307 for Solaris instead of incorrectly providing Qutime and Qcutime.
12308
12309 2009-01-02 Eli Zaretskii <eliz@gnu.org>
12310
12311 * w32.c (process_times): Compute sum of utime and stime.
12312 (system_process_attributes): Add Qtime to the alist.
12313
12314 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
12315 and add them to the alist.
12316
12317 * process.c (top level) <Qtime, Qctime>: New variables.
12318 (syms_of_process): staticpro them.
12319 (Fsystem_process_attributes): Add their documentation to the doc
12320 string.
12321
12322 * process.h: Declare Qtime and Qctime.
12323
12324 2009-01-02 Jason Rumney <jasonr@gnu.org>
12325
12326 * image.c (Qgobject): New symbol.
12327 (syms_of_image): Initialize it.
12328 (init_svg_functions): Load some functions from gobject library.
12329
12330 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
12331
12332 * frame.c (make_terminal_frame): Remove redundant code and useless
12333 block.
12334
12335 2009-01-01 Andreas Schwab <schwab@suse.de>
12336
12337 * process.c (conv_sockaddr_to_lisp): Add workaround for
12338 getsockname bug on BSD.
12339
12340 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
12341
12342 * xfns.c (x_create_tip_frame): Set border width of the X window.
12343
12344 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
12345
12346 2009-01-01 Jason Rumney <jasonr@gnu.org>
12347
12348 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
12349 Don't block input, as per earlier xterm.c changes.
12350
12351 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
12352
12353 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
12354 (ns_appkit_version_int): New function.
12355 (x-server-version): Use ns_appkit_version_int and follow 21+
12356 convention of returning 3 integers.
12357
12358 2008-12-30 Kenichi Handa <handa@m17n.org>
12359
12360 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
12361 (CHAR_SURROGATE_PAIR_P): New macro.
12362
12363 * font.h (struct font_driver): New member get_variation_glyphs.
12364
12365 * font.c (font_range): Don't require a font for a variation selector.
12366 (Ffont_variation_glyphs): New function.
12367 (syms_of_font): Defsubr it.
12368
12369 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
12370 ftfont_variation_glyphs.
12371 (setup_otf_gstring): New function.
12372 (ftfont_drive_otf): Use it.
12373 (ftfont_shape_by_flt): Handle variation selector.
12374 (ftfont_variation_glyphs): New function.
12375
12376 2008-12-30 Martin Rudalics <rudalics@gmx.at>
12377
12378 * frame.c (Vemacs_iconified): Remove.
12379
12380 2008-12-30 Jason Rumney <jasonr@gnu.org>
12381
12382 * frame.c (store_frame_param, x_get_arg): Enable newer code on
12383 WINDOWSNT too, as related changes have already been synced. (Bug#117)
12384
12385 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
12386
12387 * indent.c (Fvertical_motion): Don't advance iterator if we have
12388 reseated to the desired position.
12389
12390 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
12391 checking for pos match.
12392
12393 2008-12-30 Kenichi Handa <handa@m17n.org>
12394
12395 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
12396 just get the low 8-bit of the code.
12397
12398 * font.c (font_intern_prop): Validate str as multibyte.
12399
12400 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
12401
12402 * dispextern.h (struct face): Move lface and hash from the middle
12403 of bitfields.
12404
12405 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
12406
12407 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
12408
12409 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
12410 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
12411 instead of intervals.h.
12412
12413 2008-12-26 Andreas Schwab <schwab@suse.de>
12414
12415 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
12416 cons.
12417
12418 2008-12-26 Martin Rudalics <rudalics@gmx.at>
12419
12420 * textprop.c (Qminibuffer_prompt): New variable.
12421 (syms_of_textprop): Initialize it.
12422 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
12423 in minibuffer-prompt face. (Bug#1662)
12424
12425 2008-12-25 Jason Rumney <jasonr@gnu.org>
12426
12427 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
12428
12429 2008-12-24 Jason Rumney <jasonr@gnu.org>
12430
12431 * ralloc.c (r_alloc_reset_variable): New function.
12432
12433 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
12434 record of what points where. (Bug#716)
12435
12436 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
12437
12438 * minibuf.c (read_minibuf): Follow the non-interactive case when
12439 running as a daemon, before detaching.
12440
12441 2008-12-22 Andreas Schwab <schwab@suse.de>
12442
12443 * buffer.c (init_buffer): Use realloc instead of xrealloc.
12444 * gtkutil.c (free_widget_value): Use xfree instead of free.
12445
12446 2008-12-22 Martin Rudalics <rudalics@gmx.at>
12447
12448 * frame.c (delete_frame): New function derived from
12449 Fdelete_frame to handle Qnoelisp value for FORCE argument.
12450 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
12451 (Fdelete_frame): Call delete_frame. Remove line from doc-string
12452 saying that FORCE non-nil doesn't run `delete-frame-functions'.
12453 * frame.h: Extern delete_frame.
12454 * window.c (window_loop):
12455 * terminal.c (delete_terminal):
12456 * xterm.c (x_connection_closed):
12457 * xfns.c (Fx_hide_tip):
12458 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
12459
12460 2008-12-21 Jason Rumney <jasonr@gnu.org>
12461
12462 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
12463 when character maps to .notdef character.
12464
12465 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
12466
12467 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
12468
12469 2008-12-20 Jason Rumney <jasonr@gnu.org>
12470
12471 * frame.c (Fmake_terminal_frame): Raise an error when called from
12472 a graphical frame on Windows. (Bug#1325)
12473
12474 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
12475
12476 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
12477
12478 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
12479
12480 * minibuf.c (Fread_buffer): Doc fix.
12481
12482 2008-12-20 Jason Rumney <jasonr@gnu.org>
12483
12484 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
12485 server name in UNC paths. (Bug#719)
12486
12487 * coding.c (decode_coding): Clear chars_at_source flag when using
12488 charbuf. (Bug#1035)
12489
12490 2008-12-19 Daniel Engeler <engeler@gmail.com>
12491
12492 * sysdep.c (serial_configure): Fix typo.
12493
12494 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12495
12496 * sysdep.c: Include alloca.h.
12497 (system_process_attributes): Add implementation for Solaris.
12498
12499 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
12500
12501 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12502
12503 Reorganize implementation of Flist_system_processes and
12504 Fsystem_process_attributes. No functional changes.
12505 * process.c: Don't #include pwd.h, grp.h and limits.h.
12506 (Flist_system_processes): Just call list_system_processes.
12507 (Fsystem_process_attributes): Just call system_process_attributes.
12508 (procfs_list_system_processes, time_from_jiffies)
12509 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
12510 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
12511
12512 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
12513 (list_system_processes): Rename from
12514 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
12515 Provide a do nothing implementation.
12516 (system_process_attributes): Rename from
12517 procfs_list_system_processes.
12518 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
12519 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
12520
12521 * w32.c (list_system_processes): Rename from
12522 w32_list_system_processes.
12523 (system_process_attributes): Rename from
12524 w32_system_process_attributes.
12525
12526 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
12527
12528 * process.h (w32_list_system_processes)
12529 (w32_system_process_attributes): Remove.
12530 (list_system_processes, system_process_attributes):
12531 New prototypes.
12532
12533 2008-12-19 Kenichi Handa <handa@m17n.org>
12534
12535 * xfont.c (xfont_decode_coding_xlfd): New function.
12536 (xfont_encode_coding_xlfd): New function.
12537 (xfont_list_pattern): Decode XLFD by iso-8859-1.
12538 (xfont_list): Decode and encode XLFD by iso-8859-1.
12539 (xfont_match): Likewise.
12540 (xfont_list_family): Likewise.
12541 (xfont_open): Likewise.
12542
12543 * ftfont.c (ftfont_open): Generate a multibyte string if given
12544 names are utf-8.
12545
12546 * xftfont.c (xftfont_open): Generate a multibyte string if given
12547 names are utf-8.
12548
12549 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
12550
12551 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
12552 changed.
12553 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
12554 clicked on a detached tool bar button.
12555
12556 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
12557
12558 * emacs.c (main): Print and error and exit when no data is read
12559 from the pipe.
12560
12561 2008-12-17 Jason Rumney <jasonr@gnu.org>
12562
12563 * w32font.c (w32font_has_char): Always return -1.
12564
12565 2008-12-16 Kenichi Handa <handa@m17n.org>
12566
12567 * font.c (font_open_entity): Fix previous change.
12568
12569 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
12570
12571 * process.c: Include <limits.h>.
12572
12573 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
12574
12575 * font.c (font_update_drivers): Fix mistake in reconstructing the
12576 driver list.
12577
12578 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
12579
12580 * font.c (font_clear_cache): Fix format of font cache data.
12581
12582 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
12583
12584 * xftfont.c (xftfont_open): Free Xft font pattern if
12585 XftFontOpenPattern fails.
12586
12587 * xterm.c (x_free_frame_resources): Remove extraneous call to
12588 free_frame_faces.
12589
12590 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
12591
12592 * xterm.c (x_delete_display): Move xim_close_dpy call to
12593 x_delete_terminal.
12594 (x_delete_terminal): Call xim_close_dpy.
12595
12596 2008-12-13 Jason Rumney <jasonr@gnu.org>
12597
12598 * w32font.c (intern_font_name): New function.
12599 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
12600 (w32font_open_internal, Fx_select_font): Decode font name.
12601 (fill_in_logfont, list_all_matching_fonts): Encode font name.
12602
12603 * w32font.h (intern_font_name): Declare new function.
12604
12605 * w32uniscribe.c (add_opentype_font_name_to_list):
12606 Use intern_font_name.
12607
12608 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
12609
12610 * frame.c (Fdelete_frame): Call free_font_driver_list.
12611
12612 * font.c (free_font_driver_list): Implement missing function.
12613
12614 * w32term.c (w32_term_init): Don't initialize the image cache
12615 here; it will be done in init_frame_faces.
12616
12617 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
12618 (struct x_display_info): Remove unused member null_pixel.
12619 New member xim_callback_data.
12620
12621 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
12622 (xim_initialize): Save pointer to callback function data.
12623 (xim_close_dpy): Free callback function data. Call XCloseIM,
12624 reverting 2008-11-04 change by David Smith.
12625 (x_term_init): Don't initialize the image cache here; it will be
12626 done in init_frame_faces. Remove ancient "null_pixel" cruft.
12627 (x_delete_display): Free x_dnd_atoms member.
12628
12629 2008-12-13 Kenichi Handa <handa@m17n.org>
12630
12631 * font.c (font_rescale_ratio): Moved from xfaces.c.
12632 Argument type changed. Handle a font-spec too.
12633 (font_score): Check Vface_font_rescale_alist.
12634 (font_open_entity): Likewise. (Bug#1547)
12635
12636 * xfaces.c (font_rescale_ratio): Moved to font.c.
12637
12638 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
12639
12640 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
12641
12642 2008-12-12 Jason Rumney <jasonr@gnu.org>
12643
12644 * w32fns.c (x_display_info_for_name, Fx_open_connection):
12645 Set Vwindow_system_version to the real w32 major version.
12646
12647 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
12648
12649 * term.c (init_tty): Move setting the terminal name before the
12650 potential user: maybe_fatal.
12651
12652 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
12653
12654 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
12655 all callers changed. Call free_frame_faces to free the face cache.
12656
12657 2008-12-11 Jason Rumney <jasonr@gnu.org>
12658
12659 * w32font.c (fill_in_logfont): Don't assume symbol script means
12660 SYMBOL_CHARSET. (Bug#547)
12661
12662 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
12663 size for surrogates. (Bug#1096, bug#872)
12664
12665 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
12666
12667 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
12668
12669 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
12670
12671 * process.c (Fsystem_process_attributes, syms_of_process):
12672 Fix typo in name of Ssystem_process_attributes.
12673 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
12674
12675 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
12676
12677 * syntax.c (Fmodify_syntax_entry): Doc fix.
12678
12679 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
12680
12681 * font.c (Ffont_spec): Move usage to end of docstring.
12682
12683 2008-12-10 Jason Rumney <jasonr@gnu.org>
12684
12685 * w32font.c (Qcham): New symbol.
12686 (font_supported_scripts): Add cham, and comments for other new
12687 scripts in bitfield from OpenType spec.
12688 (add_font_entity_to_list): Limit unicode-sip fonts to those that
12689 contain characters beyond the bmp.
12690
12691 2008-12-10 Kenichi Handa <handa@m17n.org>
12692
12693 * ftfont.c (fc_charset_table): Add "unicode-sip".
12694 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
12695 Qunicode_sip.
12696
12697 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
12698
12699 * coding.c (QCdefault_char): Rename from QCdefalut_char.
12700 (Fcoding_system_put): Use QCdefault_char.
12701 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
12702
12703 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
12704
12705 * xftfont.c (syms_of_xftfont): Fix typo.
12706
12707 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
12708
12709 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
12710
12711 * emacs.c (main): Close daemon_pipe on exec.
12712
12713 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
12714
12715 * termchar.h (struct tty): New members termcap_term_buffer and
12716 termcap_strings_buffer.
12717
12718 * term.c (encode_terminal_code): Free any previous memory blocks
12719 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
12720 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
12721 All callers changed.
12722 (init_tty): Store termcap data and string buffers in new struct
12723 tty members termcap_term_buffer and termcap_strings_buffer.
12724 (delete_tty): Free them.
12725 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
12726
12727 2008-12-07 Seiji Zenitani <zenitani@mac.com>
12728
12729 * nsfns.m (ns_set_background_color): Remove code duplication.
12730 It was a substitute for face-transparency on OS X 10.3.
12731
12732 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * coding.c (make_conversion_work_buffer): Disable buffer
12735 modification hooks in the work buffer.
12736
12737 2008-12-05 Eli Zaretskii <eliz@gnu.org>
12738
12739 * process.c (procfs_system_process_attributes): If `nread' has a
12740 negative value, assign zero to it.
12741
12742 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
12743
12744 * eval.c (Vdebug_on_error): Doc fix.
12745
12746 2008-12-05 Kenichi Handa <handa@m17n.org>
12747
12748 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
12749 second character is a combining character.
12750
12751 2008-12-05 Eli Zaretskii <eliz@gnu.org>
12752
12753 * process.c (procfs_system_process_attributes): Don't use cmd,
12754 cmdsize, and q without initializing them first.
12755
12756 2008-12-04 Jason Rumney <jasonr@gnu.org>
12757
12758 * w32font.c (w32font_draw): Initialize orig_clip before getting
12759 it, and delete it when finished.
12760
12761 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
12762
12763 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
12764 case when running as a daemon before detaching.
12765
12766 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
12767
12768 * w32.c (init_environment): Don't unload library shell32.dll.
12769
12770 2008-12-03 Kenichi Handa <handa@m17n.org>
12771
12772 * font.c (font_at): Set `multibyte' at first.
12773
12774 * coding.c (decode_coding_charset): Check type of an element of
12775 vector VALIDS.
12776 (encode_coding_emacs_mule): Be sure to set `code'.
12777
12778 * fontset.c (face_for_char): Handle invalid charset property correctly.
12779 (font_for_char): Likewise.
12780
12781 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
12782
12783 * font.c (Fopen_font): Compute pixel size correctly.
12784 (font_update_lface): Handle fonts with corrupted size specs,
12785 i.e. non-int and non-float.
12786
12787 * ftfont.c (ftfont_match): Initialize entity variable.
12788 (ftfont_resolve_generic_family): Avoid using uninitialized var.
12789 (ftfont_list_family): Initialize list var earlier.
12790
12791 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
12792
12793 * xterm.c (x_draw_glyph_string): Fall back on
12794 underline_minimum_offset for underline position.
12795
12796 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
12797
12798 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
12799
12800 * character.c (c_string_width): Specify the type for LEN.
12801
12802 2008-12-03 Kenichi Handa <handa@m17n.org>
12803
12804 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
12805 (decode_coding_utf_8): Likewise.
12806 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
12807 (produce_chars): Initialize consumed_chars to 0.
12808
12809 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
12810
12811 * keyboard.c (make_lispy_position): Only use PT if the selected
12812 window is current.
12813
12814 2008-12-02 Andreas Schwab <schwab@suse.de>
12815
12816 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
12817
12818 * doprnt.c (doprnt1): Fix size of charbuf.
12819
12820 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
12821
12822 * keyboard.c (timer_check): Revert last change.
12823
12824 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
12825
12826 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
12827
12828 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
12829
12830 * makefile.w32-in: Update dependencies.
12831 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
12832
12833 2008-12-01 Andreas Schwab <schwab@suse.de>
12834
12835 * font.c (register_font_driver): Use xmalloc.
12836 (font_put_frame_data): Likewise.
12837
12838 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
12839
12840 * xfaces.c (realize_x_face): Make abort condition clearer.
12841
12842 * gtkutil.c (update_frame_tool_bar): Initialize variable.
12843
12844 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * keyboard.c (timer_check): After a timer runs, ensure that the
12847 selected window's buffer is current.
12848
12849 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
12850
12851 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
12852 It was accidentally restored by the Unicode merge.
12853
12854 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
12855
12856 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
12857
12858 * w32proc.c: Include "coding.h".
12859 (Fw32_short_file_name): Encode filename passed to Windows API.
12860 (Fw32_long_file_name): Encode filename passed to Windows API and
12861 decode back the result. (Bug#1433)
12862
12863 2008-11-29 Kenichi Handa <handa@m17n.org>
12864
12865 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
12866 not before accessing it.
12867
12868 * charset.c (Fdefine_charset_internal): After calculating
12869 min_char, max_char, and fastmap, copy the charset structure again.
12870 (encode_char): Fix the previous change.
12871
12872 2008-11-28 Seiji Zenitani <zenitani@mac.com>
12873
12874 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
12875
12876 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
12877
12878 * nsterm.m (x_set_frame_alpha): New function.
12879
12880 2008-11-27 Eli Zaretskii <eliz@gnu.org>
12881
12882 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
12883
12884 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
12885
12886 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
12887 pointer to check_face_name.
12888
12889 2008-11-27 Kenichi Handa <handa@m17n.org>
12890
12891 * category.h (SET_CATEGORY_SET): Call set_category_set.
12892 (set_category_set): Extern it.
12893
12894 * category.c (hash_get_category_set): New function.
12895 (Fmodify_category_entry): Adjust for the change of
12896 char_table_ref_and_range. Call hash_get_category_set to get a
12897 category set to store in the table.
12898
12899 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
12900 Funify_charset.
12901
12902 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
12903 (DECODE_CHAR): Check if the decoder vector is ready.
12904 (ENCODE_CHAR): Check if the encoder char-table is ready.
12905 (maybe_unify_char): Extern it.
12906
12907 * charset.c (Vchar_unified_charset_table): Delete it.
12908 (inhibit_load_charset_map): New variable.
12909 (temp_charset_work): New variable.
12910 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
12911 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
12912 New macros.
12913 (load_charset_map): Meaning of control_flag changed.
12914 If inhibit_load_charset_map is nonzero, setup a table in
12915 temp_charset_work.
12916 (load_charset): New argument control_flag.
12917 (map_charset_for_dump): New function.
12918 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
12919 map_charset_for_dump.
12920 (Fdefine_charset_internal): If the charset method is MAP, load
12921 mapping tables by calling load_charset.
12922 (Funify_charset): Don't load a mapping table but directly set
12923 Vchar_unify_table.
12924 (maybe_unify_char): New function.
12925 (decode_char): Don't handle the deleted method MAP_DEFERRED.
12926 Handle the case of inhibit_load_charset_map being nonzero.
12927 (encode_char): Don't handle the deleted method MAP_DEFERRED.
12928 Handle the case of inhibit_load_charset_map being nonzero.
12929 (Fclear_charset_maps): Just free temp_charset_work.
12930 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
12931 variable.
12932
12933 * chartab.c (sub_char_table_ref_and_range): Adjust for the
12934 change of char_table_ref_and_range.
12935 (char_table_ref_and_range): Change the meaning of argument FROM
12936 and TO. Now the caller must provide initial values for *FROM
12937 and *TO.
12938
12939 * fontset.c (fontset_add): Adjust for the change of
12940 char_table_ref_and_range.
12941 (fontset_get_font_group): Likewise.
12942 (Ffontset_info): Likewise.
12943
12944 * keymap.c (describe_vector): Adjust for the change of
12945 char_table_ref_and_range. For char-table, put boundary between
12946 non-ASCII and 8-bit characters.
12947
12948 * print.c (print_object): For bool-vector, delete unnecessary
12949 check of ASCII_BYTE_P.
12950
12951 2008-11-26 Jason Rumney <jasonr@gnu.org>
12952
12953 * w32font.c (w32font_open_internal): Don't include external
12954 leading in font height. (Bug#879)
12955
12956 2008-11-26 Glenn Morris <rgm@gnu.org>
12957
12958 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
12959 redefinition with ifdef. (Bug#1383)
12960
12961 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12962
12963 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12964
12965 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12966
12967 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12968 New EmacsView methods.
12969 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12970 Fixes bug #1048,1357,1414.
12971
12972 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12973
12974 Fix bug #1362.
12975 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12976 is not an indexed color.
12977 * nsterm.m (free_indexed_color): Add argument checking.
12978 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12979
12980 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
12981
12982 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12983 Document confirm-after-completion value for
12984 minibuffer-completion-confirm.
12985
12986 2008-11-24 Jason Rumney <jasonr@gnu.org>
12987
12988 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
12989 warning.
12990
12991 2008-11-23 Jason Rumney <jasonr@gnu.org>
12992
12993 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12994 restored before returning.
12995
12996 * w32font.c (check_face_name): New function.
12997 (add_font_entity_to_list): Use it to filter out common substituted
12998 fonts. (Bug#642)
12999
13000 2008-11-22 Martin Rudalics <rudalics@gmx.at>
13001
13002 * buffer.c (Fswitch_to_buffer): Reword and mention new option
13003 confirm-nonexistent-file-or-buffer in doc-string.
13004
13005 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
13006
13007 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
13008 Fix copy/paste typo. Add checks.
13009
13010 2008-11-21 Kenichi Handa <handa@m17n.org>
13011
13012 * coding.c (detect_coding_iso_2022): Reject invalid composition
13013 sequence.
13014 (DECODE_COMPOSITION_START): If the current source is the last
13015 block, and the current composition doesn't end, regard this
13016 sequence as invalid.
13017 (decode_coding_iso_2022): Handle invalid composition sequence.
13018
13019 2008-11-20 Martin Rudalics <rudalics@gmx.at>
13020
13021 * window.c (coordinates_in_window): Don't return
13022 ON_VERTICAL_BORDER for the rightmost position of a mode/header
13023 line when the window is not the rightmost one. (Bug#1372)
13024
13025 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
13026
13027 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
13028
13029 2008-11-15 Eli Zaretskii <eliz@gnu.org>
13030
13031 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
13032 and bright_bg if noninteractive is non-zero.
13033
13034 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13035
13036 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
13037 x_draw_glyph_string_background.
13038
13039 * w32term.c (x_draw_glyph_string): Likewise.
13040
13041 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
13042
13043 * xterm.c (x_draw_glyph_string): Stop drawing the background of
13044 the next glyph string once past the overhang width.
13045
13046 * nsterm.m (ns_draw_glyph_string): Likewise.
13047
13048 * w32term.c (x_draw_glyph_string): Likewise.
13049
13050 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
13051
13052 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
13053 double file close.
13054
13055 2008-11-14 Martin Rudalics <rudalics@gmx.at>
13056
13057 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
13058 dedicated status of window before attempting to display another
13059 buffer in it.
13060
13061 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
13062
13063 * msdos.c (Fmsdos_long_file_names):
13064 (syms_of_msdos) <dos-unsupported-char-glyph>:
13065 * dosfns.c (Fint86): Fix typos in docstrings.
13066
13067 2008-11-14 Eli Zaretskii <eliz@gnu.org>
13068
13069 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
13070
13071 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
13072
13073 * puresize.h (BASE_PURESIZE): Increase to 1260000.
13074
13075 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
13076
13077 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
13078
13079 * frame.h: Negative alpha means "don't touch".
13080
13081 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
13082
13083 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
13084
13085 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
13086
13087 * hftctl.c:
13088 * chpdef.h:
13089 * acldef.h: Remove files used only for systems no longer supported.
13090
13091 * Makefile.in: Fix .o alphabetical ordering.
13092 (hftctl.o): Remove dependency, file removed.
13093 (keymap.o, print.o): Depend on charset.h.
13094
13095 2008-11-10 Kenichi Handa <handa@m17n.org>
13096
13097 * character.c (Fget_byte): Fix and make it faster for unibyte target.
13098
13099 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
13100
13101 * dired.c (file_name_completion): If completion_ignore_case is
13102 enabled, ignore case when checking completion-regexp-list.
13103
13104 2008-11-08 Eli Zaretskii <eliz@gnu.org>
13105
13106 * vm-limit.c (get_lim_data): Fix last change.
13107
13108 2008-11-08 Kenichi Handa <handa@m17n.org>
13109
13110 * character.c (Fget_byte): New function.
13111 (syms_of_character): Defsubr Fget_byte.
13112
13113 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
13114
13115 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
13116 cursor position is valid after scrolling.
13117
13118 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
13119
13120 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
13121
13122 2008-11-06 Glenn Morris <rgm@gnu.org>
13123
13124 * xterm.c (handle_one_xevent): Don't let popup menus cause
13125 mouse-autoselect-window related window switching. (Bug#1261)
13126
13127 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
13128
13129 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
13130
13131 2008-11-04 Andreas Schwab <schwab@suse.de>
13132
13133 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
13134
13135 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
13136
13137 * xfns.c (Fx_wm_set_size_hint): New function.
13138
13139 2008-11-03 Martin Rudalics <rudalics@gmx.at>
13140
13141 * textprop.c (Fprevious_single_char_property_change): Return 0
13142 when there's no change in a string. (Bug#1301)
13143
13144 2008-11-02 Martin Rudalics <rudalics@gmx.at>
13145
13146 * frame.c (do_switch_frame): New argument NORECORD passed to
13147 Fselect_window.
13148 (Fselect_frame): New argument NORECORD passed to
13149 do_switch_frame.
13150 (Fset_frame_selected_window): New argument NORECORD passed to
13151 Fselect_frame.
13152 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
13153 in call of do_switch_frame.
13154 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
13155 Handle NORECORD argument in call of Fselect_frame.
13156 * lisp.h (do_switch_frame, Fselect_frame)
13157 (Fset_frame_selected_window): Adjust declarations.
13158 * window.c (select_frame_norecord): New function.
13159 (run_window_configuration_change_hook): Use it and call
13160 Fselect_frame with NORECORD set.
13161 (Fselect_window): Pass NORECORD to Fselect_frame.
13162 (Fset_window_configuration): Handle NORECORD argument in call of
13163 do_switch_frame.
13164 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
13165 Fset_frame_selected_window.
13166 * keyboard.c (command_loop_1): Handle NORECORD in call of
13167 Fselect_frame (currently ifdefd).
13168
13169 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
13170
13171 * emacs.c (USAGE2): Untabify.
13172
13173 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
13174
13175 * composite.c (fill_gstring_header): Fix copy/paste typo.
13176
13177 2008-10-31 Martin Rudalics <rudalics@gmx.at>
13178
13179 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
13180 (Fother_window): Rename argument and rewrite doc-string.
13181 (select_window_norecord): Fix return value. (Bug#1276)
13182
13183 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
13184
13185 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
13186 new frames overriding foreground for tooltips. Based on similar patch
13187 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
13188
13189 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
13190
13191 * emacs.c (Fdaemon_initialized): Initialize nfd.
13192
13193 2008-10-29 Martin Rudalics <rudalics@gmx.at>
13194
13195 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
13196 (Fwindow_text_height): Clarify doc-strings.
13197 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
13198 doc-string of window-scroll-functions.
13199
13200 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
13201
13202 * category.c (syms_of_category): Fix typo in docstring.
13203
13204 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
13205
13206 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
13207 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
13208 Fix typos in docstrings.
13209
13210 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
13211
13212 * emacs.c (daemon_pipe): Make non-static.
13213 (IS_DAEMON): Move definition ...
13214 * lisp.h (IS_DAEMON): ... here.
13215 (daemon_pipe): Declare.
13216 (is_daemon): Remove.
13217 * dispnew.c (init_display): Use IS_DAEMON.
13218
13219 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
13220
13221 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
13222 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
13223
13224 * emacs.c (is_daemon): Remove.
13225 (main): Don't set is_daemon.
13226 (IS_DAEMON): New macro.
13227 (Fdaemonp, Fdaemon_initialized): Use it.
13228 (Fdaemon_initialized): Write a char into the pipe to make sure the
13229 parent exits.
13230 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
13231
13232 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
13233
13234 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
13235 over-sized glyph, draw it with the default glyph width.
13236
13237 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13238 glyph, draw it with the default glyph width.
13239
13240 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13241 glyph, draw it with the default glyph width.
13242
13243 * xdisp.c (try_scrolling): When computing the distance from the
13244 scroll margin to PT, try moving some distance past the window
13245 bottom before giving up.
13246
13247 2008-10-27 Martin Rudalics <rudalics@gmx.at>
13248
13249 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
13250 (Fset_window_buffer): Explain in doc-string that a window can be
13251 "strongly" dedicated to its buffer.
13252
13253 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
13254
13255 * emacs.c (daemon_name): New variable.
13256 (main): Deal with --daemon=SERVER_NAME.
13257 (Fdaemonp): Return a name if one was passed to --daemon.
13258
13259 2008-10-26 Romain Francoise <romain@orebokech.com>
13260
13261 * emacs.c (daemon_pipe): New variable.
13262 (main): Create a pipe before forking, make the parent exit only after
13263 the child has closed its end of the pipe. Move closing the
13264 descriptors ...
13265 (Fdaemon_initialized): ... here. New function.
13266
13267 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
13268
13269 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
13270 the previous unoptimized table.
13271
13272 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
13273 the distinction between non-nil and non-t value of `dedicated'.
13274
13275 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
13276
13277 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
13278 read_char_minibuf_menu_text is large enough to hold the menu string.
13279
13280 2008-10-25 Martin Rudalics <rudalics@gmx.at>
13281
13282 * window.c (Fget_buffer_window, Fdelete_windows_on)
13283 (Freplace_buffer_in_windows): Make buffer argument optional and
13284 rename to buffer_or_name.
13285
13286 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
13287
13288 * xdisp.c (handle_single_display_spec, handle_display_prop):
13289 Undo 2005-05-16 change.
13290 (handle_stop): Pop iterator if it's loaded with an empty string.
13291 (get_overlay_strings_1): Don't save iterator if it's loaded with
13292 an empty string (bug#1201).
13293
13294 2008-10-24 Kenichi Handa <handa@m17n.org>
13295
13296 * ftfont.c (ftfont_otf_features): Fix previous change.
13297 (ftfont_otf_capability): Check FeatureList.FeatureCount before
13298 calling ftfont_otf_features.
13299
13300 2008-10-24 Kenichi Handa <handa@m17n.org>
13301
13302 * font.c (font_match_p): Fix for the case that a vector of
13303 characters is in script-representative-chars.
13304
13305 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
13306
13307 * dbusbind.c (xd_in_read_queued_messages): New variable.
13308 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
13309 (xd_read_queued_messages): Catch Qdbus_error from the macros.
13310 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
13311 macro. (Bug#1186)
13312
13313 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
13314
13315 * s/sol2-10.h: New file.
13316
13317 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
13318
13319 * xdisp.c (fill_glyph_string): Fix typo in source (though the
13320 poor beast has survived 9+ years and the jump from xterm.c!).
13321
13322 2008-10-23 Martin Rudalics <rudalics@gmx.at>
13323
13324 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
13325 Reword doc-string.
13326 (Fbury_buffer): In doc-string say what happens to the buffer's window.
13327
13328 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
13329
13330 * character.c (syms_of_character) <script-representative-chars>:
13331 <unicode-category-table>: Doc fixes.
13332
13333 2008-10-23 Noah Friedman <friedman@splode.com>
13334
13335 * coding.c (make_conversion_work_buffer): Check that
13336 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
13337 Fget_buffer_create.
13338
13339 2008-10-23 Kenichi Handa <handa@m17n.org>
13340
13341 * font.c (font_add_log): Check the values of extra properties.
13342
13343 2008-10-22 Martin Rudalics <rudalics@gmx.at>
13344
13345 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13346 Reword doc-string.
13347 (Fset_window_parameter): Use NILP.
13348 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
13349 (Frecenter): Use "selected" instead of "current" window in doc-strings.
13350
13351 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
13352
13353 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
13354
13355 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13356
13357 * nsfns.m (ns_appkit_version): New function.
13358 (x-server-version): Use it.
13359 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
13360 (x-server-vendor): Don't check_ns().
13361
13362 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
13363
13364 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
13365
13366 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
13367 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
13368
13369 2008-10-22 Kenichi Handa <handa@m17n.org>
13370
13371 * syntax.c (scan_words): Call word_boundary_p instead of comparing
13372 scripts.
13373
13374 * category.c (word_boundary_p): Check scripts instead of charset.
13375 Handle nil value in word-separating-categories and
13376 word-combining-categories.
13377 (syms_of_category): Fix docstrings of word-separating-categories
13378 and word-combining-categories.
13379
13380 2008-10-21 Eli Zaretskii <eliz@gnu.org>
13381
13382 * coding.c (Fencode_coding_region, Fdecode_coding_region)
13383 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
13384
13385 2008-10-21 Martin Rudalics <rudalics@gmx.at>
13386
13387 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
13388 Rename arg "buffer" to "buffer_or_name".
13389 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
13390 it optional.
13391 (no_switch_window): Remove since the return value is not used.
13392 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
13393 Consider window as dedicated when Fwindow_dedicated_p returns a
13394 non-nil value.
13395 * lisp.h: Remove prototype for no_switch_window.
13396
13397 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
13398
13399 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
13400 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
13401
13402 2008-10-21 Kenichi Handa <handa@m17n.org>
13403
13404 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
13405 check Vlatin_extra_code_table.
13406
13407 2008-10-20 Eli Zaretskii <eliz@gnu.org>
13408
13409 * fileio.c (Fset_file_modes): Doc fix.
13410
13411 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
13412
13413 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
13414 in arrays.
13415
13416 2008-10-19 Martin Rudalics <rudalics@gmx.at>
13417
13418 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13419 Mention kill-buffer in doc-string.
13420 (Fset_window_buffer): Reinsert tem check removed in last commit.
13421 (Fenlarge_window, Fshrink_window): Have argument names and
13422 doc-string follow Elisp manual more closely.
13423
13424 2008-10-18 Eli Zaretskii <eliz@gnu.org>
13425
13426 * fileio.c (Fset_file_modes): Doc fix.
13427
13428 2008-10-18 Martin Rudalics <rudalics@gmx.at>
13429
13430 * window.c (Fwindow_width, Fset_window_start)
13431 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
13432 (Fdelete_windows_on, Freplace_buffer_in_windows):
13433 Make doc-strings follow code and Elisp manual more closely.
13434 (Fwindow_dedicated_p): Make window argument optional.
13435 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
13436 (Fset_window_buffer): Respect any non-nil dedicated value for
13437 window. Rename "buffer" argument to "buffer_or_name".
13438
13439 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
13440
13441 * m/sh3.h: New file, machine description for SuperH.
13442
13443 2008-10-17 Martin Rudalics <rudalics@gmx.at>
13444
13445 * window.c (Fsplit_window): Rename arg horflag to horizontal.
13446
13447 2008-10-17 Kenichi Handa <handa@m17n.org>
13448
13449 * ftfont.c (ftfont_otf_features): Fix indexing
13450 gsub_gpos->FeatureList.Feature. Check the validity of indices.
13451
13452 2008-10-16 Magnus Henoch <mange@freemail.hu>
13453
13454 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
13455 (Fdbus_call_method_asynchronously): Ditto.
13456 This change makes C-h f display the argument list.
13457
13458 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
13459
13460 * fileio.c (Fexpand_file_name): Doc fix.
13461
13462 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
13463 of :foreground and :background equivalent to unspecified (20.x
13464 compatibility).
13465
13466 2008-10-15 Eli Zaretskii <eliz@gnu.org>
13467
13468 * buffer.c (syms_of_buffer): Doc fix.
13469
13470 2008-10-14 Kenichi Handa <handa@m17n.org>
13471
13472 * font.c (font_clear_prop): When clearing font width, clear the
13473 average width field too.
13474
13475 2008-10-12 Andreas Schwab <schwab@suse.de>
13476
13477 * ftfont.c (ftfont_shape_by_flt): Make static.
13478 * ftfont.h (ftfont_shape_by_flt): Don't declare.
13479
13480 * font.c: Don't include <m17n-flt.h>.
13481
13482 2008-10-10 Eli Zaretskii <eliz@gnu.org>
13483
13484 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
13485
13486 2008-10-09 Eli Zaretskii <eliz@gnu.org>
13487
13488 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
13489 away code.
13490
13491 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
13492
13493 * dispnew.c (update_text_area): Avoid looping due to large glyph
13494 overhangs (bug#1070).
13495
13496 2008-10-09 Kenichi Handa <handa@m17n.org>
13497
13498 * fontset.c (face_for_char): If face->fontset is negative, just
13499 return ascii_face.
13500
13501 * font.c (font_delete_unmatched): Fix previous change.
13502 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
13503
13504 2008-10-09 Martin Rudalics <rudalics@gmx.at>
13505
13506 * frame.c (Fraise_frame): On text-only terminals select frame in
13507 order to make it visible. (Bug#1061)
13508
13509 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
13510
13511 * fontset.c (fontset_find_font): Check frame validity.
13512
13513 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
13514
13515 * gtkutil.c (xg_display_open): Reset default display if none exists.
13516 (xg_display_close): Allow Emacs to close all displays (bug#985).
13517
13518 2008-10-06 Andreas Schwab <schwab@suse.de>
13519
13520 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
13521
13522 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
13523
13524 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
13525
13526 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
13527
13528 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
13529 during initialization.
13530
13531 2008-10-04 Eli Zaretskii <eliz@gnu.org>
13532
13533 * xdisp.c (redisplay_internal): If frame switched, redisplay the
13534 whole thing on MSDOS frames as well as on a TTY.
13535
13536 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
13537 well as for TTY.
13538 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
13539 well as on a TTY.
13540
13541 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
13542 as well as for TTY.
13543
13544 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
13545
13546 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
13547 MSDOS frames as well.
13548
13549 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13550
13551 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
13552 correct arguments.
13553 * menu.c (find_and_return_menu_selection): Add cast.
13554
13555 2008-10-03 Glenn Morris <rgm@gnu.org>
13556
13557 * emacs.c (USAGE1): Add --daemon.
13558
13559 2008-10-02 Eli Zaretskii <eliz@gnu.org>
13560
13561 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
13562 100, so it's in percents as advertised.
13563
13564 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13565
13566 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
13567 (ns_output.current_cursor, ns_output.desired_cursor)
13568 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
13569 (FRAME_NEW_CURSOR_COLOR): Remove.
13570
13571 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
13572 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
13573 enumeration (HOLLOW_BOX_CURSOR, etc.).
13574
13575 * nsterm.m (ns_frame_rehighlight): Remove commented code.
13576 (draw_window_cursor): Simplify code.
13577 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
13578 Don't change cursor type. In latter, call rehighlight instead of doing
13579 updates manually.
13580 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
13581 Use core Emacs cursor types.
13582
13583 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
13584
13585 2008-10-02 Martin Rudalics <rudalics@gmx.at>
13586
13587 * process.c (Faccept_process_output): Fix doc-string.
13588
13589 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
13590
13591 * gmalloc.c (__sbrk): Also define for uClibc.
13592
13593 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
13594 for uClibc.
13595
13596 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13597
13598 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
13599 styles.
13600 (nsfont_open): Reenable the cache.
13601
13602 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13603
13604 * font.c (font_matching_entity): Reflect ATTRS in font selection.
13605 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
13606
13607 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
13608
13609 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
13610 a suspended terminal.
13611
13612 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
13613
13614 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
13615
13616 2008-09-30 Eli Zaretskii <eliz@gnu.org>
13617
13618 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
13619
13620 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
13621
13622 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
13623 in a continued line coincides with a line beginning.
13624
13625 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13626
13627 * nsfont.m (nsfont_trait_distance): Fix bug.
13628 (nsfont_list): Return a list rather than a vector (syncs with Handa
13629 changes of 2008-05-14).
13630 (nsfont_open): Improve logging.
13631
13632 2008-09-29 Andreas Schwab <schwab@suse.de>
13633
13634 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13635
13636 2008-09-28 Martin Rudalics <rudalics@gmx.at>
13637
13638 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
13639 name as char-resolve-modifiers.
13640 Reported by: Markus Triska <markus.triska@gmx.at>
13641
13642 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13643
13644 * dispnew.c (init_display): Return earlier when running as a daemon.
13645
13646 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13647
13648 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
13649
13650 2008-09-27 Eli Zaretskii <eliz@gnu.org>
13651
13652 * composite.c (Fcomposition_get_gstring)
13653 (Fcompose_region_internal, Fcompose_string_internal)
13654 (Ffind_composition_internal): Doc fix.
13655 (syms_of_composite) <compose-chars-after-function>: Doc fix.
13656 (syms_of_composite) <auto-composition-function>: Doc fix.
13657 (syms_of_composite) <composition-function-table>: Doc fix.
13658
13659 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
13660
13661 * search.c (wordify): New argument for lax word-ends.
13662 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
13663
13664 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
13665
13666 * lisp.h (is_daemon): Declare.
13667 * dispnew.c (init_display): Do not try to initialize the terminal
13668 when running as a daemon.
13669
13670 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
13671
13672 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
13673 x_display_pixel_height.
13674
13675 2008-09-22 Martin Rudalics <rudalics@gmx.at>
13676
13677 * undo.c (record_point): Don't call Fundo_boundary for first
13678 change. (Bug#731)
13679
13680 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
13681
13682 * emacs.c (Fdaemonp): Doc fix.
13683
13684 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
13685
13686 * emacs.c (main): Place #ifdef in the proper place.
13687
13688 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13689
13690 * emacs.c (standard_args): Add --daemon.
13691 (main): Disconnect from the terminal when --daemon is passed.
13692 (is_daemon): New variable.
13693 (Fdaemonp): New function.
13694 (syms_of_emacs): Defsubr it.
13695
13696 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
13697
13698 * xdisp.c (get_next_display_element): Handle string display
13699 correctly when checking for the end of a box run.
13700
13701 2008-09-20 Glenn Morris <rgm@gnu.org>
13702
13703 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
13704 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
13705 (Frename_file): Avoid copying to trash if a rename involves
13706 a delete. (Bug#964).
13707
13708 2008-09-20 Eli Zaretskii <eliz@gnu.org>
13709
13710 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
13711 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
13712 frames as well as termcap frames.
13713 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
13714 get_named_tty.
13715
13716 2008-09-19 Eli Zaretskii <eliz@gnu.org>
13717
13718 * process.c (procfs_system_process_attributes): Fix cmdline in
13719 case /proc/PID/cmdline is empty.
13720
13721 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
13722 x_display_pixel_height.
13723
13724 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
13725
13726 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
13727
13728 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13729 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
13730
13731 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
13732
13733 * dispextern.h (struct it): Move line_wrap away from the middle of
13734 bitfields. Move voffset in struct iterator_stack_entry after the
13735 bitfields. Move tab_width near after another short.
13736
13737 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
13738
13739 * frame.h (struct frame): Move alpha from the middle of bitfields.
13740
13741 * window.h (struct window): Move frozen_window_start_p after the
13742 rest of the bitfields to reduce padding.
13743
13744 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
13745
13746 * xterm.h (x_display_info): Remove `height' and `width' members.
13747
13748 * nsterm.h (ns_display_info): Remove `height' and `width' members.
13749
13750 * w32term.h (w32_display_info): Remove `height', `width',
13751 `height_in', and `width_in' members.
13752
13753 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13754 New functions.
13755 (x_calc_absolute_position): Use them.
13756 (x_term_init): Omit removed `height' and `width' members.
13757
13758 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13759 New functions.
13760 (w32_read_socket, x_calc_absolute_position): Use them.
13761 (w32_initialize_display_info, w32_term_init): Omit removed members
13762 of w32_display_info.
13763
13764 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
13765 New functions.
13766 (ns_initialize_display_info): Omit removed members of ns_display_info.
13767
13768 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13769 New functions.
13770 (x_calc_absolute_position): Use them.
13771 (x_term_init): Omit removed `height' and `width' members.
13772
13773 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13774 (compute_tip_xy):
13775 * frame.c (x_fullscreen_adjust):
13776 * xmenu.c (menu_position_func): Use x_display_pixel_height and
13777 x_display_pixel_width.
13778
13779 2008-09-18 Kenichi Handa <handa@m17n.org>
13780
13781 * composite.c (fill_gstring_header): Don't check FROM and TO here.
13782 (composition_compute_stop_pos): Fix handling of static composition.
13783 (Fcomposition_get_gstring): Check FROM and TO at first.
13784
13785 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13786
13787 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
13788 mixup (YAILOM).
13789
13790 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
13791
13792 * indent.c (Fvertical_motion): Use position reported by iterator
13793 instead of PT for determining screen motion (bug#943).
13794
13795 2008-09-17 Romain Francoise <romain@orebokech.com>
13796
13797 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
13798
13799 2008-09-17 Kenichi Handa <handa@m17n.org>
13800
13801 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
13802
13803 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
13804 if necessary.
13805
13806 2008-09-16 Kenichi Handa <handa@m17n.org>
13807
13808 * coding.c (make_conversion_work_buffer): Avoid calling
13809 Fget_buffer_create if it is not necessary.
13810
13811 2008-09-15 Martin Rudalics <rudalics@gmx.at>
13812
13813 * window.c (Fselect_window): Don't update window_select_count and
13814 use_time when norecord is not nil.
13815
13816 2008-09-14 Kenichi Handa <handa@m17n.org>
13817
13818 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
13819 specpdl_ptr.
13820
13821 2008-09-12 Kenichi Handa <handa@m17n.org>
13822
13823 * indent.c (scan_for_column): Don't handle automatic composition
13824 if the current buffer is not associated with a window.
13825
13826 * composite.c (composition_reseat_it): If the current buffer is
13827 not associated with a window, ignore the automatic composition.
13828 (find_automatic_composition): Likewise.
13829
13830 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13831
13832 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
13833 (Fgpm_mouse_stop): Use it.
13834 * termhooks.h (close_gpm): Declare.
13835 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
13836 connection if Gpm_GetEvent fails.
13837
13838 * window.c (set_window_buffer): Always preserve current-buffer.
13839
13840 2008-09-12 Glenn Morris <rgm@gnu.org>
13841
13842 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
13843
13844 2008-09-11 Glenn Morris <rgm@gnu.org>
13845
13846 * charset.c (charset-map-path): Doc fix.
13847
13848 2008-09-10 Kenichi Handa <handa@m17n.org>
13849
13850 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
13851
13852 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
13853 compose a grapheme cluster with the preceding base glyph.
13854
13855 * composite.c (composition_compute_stop_pos): Fix previous change.
13856 Reset cmp_it->id to -1 at first.
13857
13858 2008-09-10 Glenn Morris <rgm@gnu.org>
13859
13860 * Makefile.in (character.o, chartab.o): Fix config.h typo.
13861
13862 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
13863
13864 * keyboard.c (read_key_sequence): Reapply translation maps when
13865 switching keyboards.
13866
13867 2008-09-09 Kenichi Handa <handa@m17n.org>
13868
13869 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
13870 characters.
13871
13872 * composite.c (FORWARD_CHAR): Fix calculation
13873 of (POSITION).pos_byte.
13874 (composition_compute_stop_pos): Limit the search of composition to
13875 at most 500 characters ahead. If we reach the limit or find a
13876 newline, set cmp_it->ch to -2 and return 0.
13877 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
13878
13879 2008-09-08 Kenichi Handa <handa@m17n.org>
13880
13881 * indent.c (Fvertical_motion): Be sure to set
13882 it_overshoot_expected if it.cmp_it.id is non-negative.
13883
13884 2008-09-07 Andreas Schwab <schwab@suse.de>
13885
13886 * callproc.c (Fcall_process): Don't hold references to string data
13887 across garbage collection. Move initialisation of new_argv down
13888 to avoid compiler bug.
13889
13890 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13891
13892 * process.c (Fsystem_process_attributes): Doc fix.
13893
13894 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
13895
13896 * callproc.c (Fcall_process): Canonicalize current directory name.
13897
13898 * xdisp.c (move_it_to): When moving by vpos, ensure that the
13899 iterator advances to the next line if the current line ends in a
13900 continued tab.
13901
13902 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
13903
13904 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
13905 member to point to cmp_from.
13906
13907 * xdisp.c: Doc fix for references to gidx data member.
13908
13909 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13910
13911 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
13912
13913 2008-09-07 Kenichi Handa <handa@m17n.org>
13914
13915 * composite.c (FORWARD_CHAR): Check STOP after
13916 incrementing (POSITION).pos.
13917
13918 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13919
13920 * process.c (Fsystem_process_attributes): Doc fix.
13921
13922 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
13923
13924 * keyboard.c (Ftop_level): Doc fix.
13925
13926 2008-09-06 Eli Zaretskii <eliz@gnu.org>
13927
13928 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
13929 minibuffer, don't let lower part of menu invade the echo area.
13930
13931 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
13932 "char *q" to access menu text and advance through it. Revert the
13933 change that displayed ">" instead of ASCII character 0x10.
13934
13935 2008-09-05 Eli Zaretskii <eliz@gnu.org>
13936
13937 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
13938 toggle boxes and radio buttons on MS-DOS as well.
13939
13940 2008-09-05 Kenichi Handa <handa@m17n.org>
13941
13942 * composite.c (autocmp_chars): Check lookback count.
13943 (composition_compute_stop_pos): Set cmp_it->lookback.
13944 (composition_reseat_it): Check lookback count.
13945 (struct position_record): New struct.
13946 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
13947 (find_automatic_composition): New function.
13948 (composition_adjust_point): Use find_automatic_composition.
13949
13950 * dispextern.h (struct composition_it): New member lookback.
13951
13952 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
13953
13954 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
13955 if moving by a single line.
13956
13957 2008-09-02 Andreas Schwab <schwab@suse.de>
13958
13959 * xterm.c (x_delete_display): Fix merge error.
13960
13961 * fileio.c (Fexpand_file_name): Remove unused variables.
13962
13963 2008-09-02 Eli Zaretskii <eliz@gnu.org>
13964
13965 * fileio.c (Fexpand_file_name): Copy argument `name' into local
13966 storage on all platforms, not just on DOS_NT.
13967
13968 2008-09-02 Jason Rumney <jasonr@gnu.org>
13969
13970 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13971 Ensure mouse is not grabbed after menu is finished.
13972
13973 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
13974
13975 * xfaces.c (Finternal_set_alternative_font_family_alist)
13976 (Finternal_set_alternative_font_registry_alist): Properly copy
13977 entire alist structure.
13978
13979 2008-09-01 Kenichi Handa <handa@m17n.org>
13980
13981 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
13982 representative chars of the script is a vector.
13983 (ftfont_list): Handle the case where the representative chars of
13984 the script is a vector.
13985
13986 * character.c (syms_of_character): Docstring of
13987 script-representative-chars fixed.
13988
13989 2008-08-31 Eli Zaretskii <eliz@gnu.org>
13990
13991 * msdos.c (BUILD_CHAR_GLYPH): New macro.
13992 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13993 the menu. Allocate larger buffer for `text', to account for
13994 possible ^C characters.
13995
13996 2008-08-31 Martin Rudalics <rudalics@gmx.at>
13997
13998 * xdisp.c (prepare_menu_bars): Don't call
13999 Vwindow_size_change_functions with arg Qt.
14000
14001 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
14002
14003 * font.h (font_range):
14004 * fileio.c (report_file_error):
14005 * composite.c (composition_update_it): Yet another int/Lisp_Object
14006 mixup (YAILOM).
14007
14008 2008-08-30 Glenn Morris <rgm@gnu.org>
14009
14010 * data.c (Fmake_variable_frame_local): Doc fix.
14011
14012 * frame.c (Fmodify_frame_parameters): Doc fix.
14013
14014 2008-08-30 Eli Zaretskii <eliz@gnu.org>
14015
14016 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
14017 needed by GetTokenInformation.
14018 (w32_system_process_attributes): Check return values of all system
14019 APIs.
14020
14021 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
14022 only when the state changes.
14023 (IT_update_begin, IT_update_end): Add termscript trace.
14024
14025 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
14026 clipboard is unavailable. Set dst to NULL if it doesn't point to
14027 malloc'ed data.
14028 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
14029 passing random values to xfree.
14030
14031 * dispnew.c (init_display): Set `tty's association in frame's
14032 parameters alist to the name of the terminal device, if that is known.
14033
14034 2008-08-29 Jason Rumney <jasonr@gnu.org>
14035
14036 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
14037
14038 2008-08-29 Eli Zaretskii <eliz@gnu.org>
14039
14040 * composite.c (fill_gstring_body): Avoid compiler warnings.
14041
14042 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
14043 LGLYPH_SET_CODE to avoid compiler warnings.
14044
14045 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
14046
14047 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
14048
14049 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
14050 LGLYPH_SET_CODE.
14051
14052 2008-08-29 Kenichi Handa <handa@m17n.org>
14053
14054 * fileio.c (report_file_error): Don't downcase the first character
14055 of errstring if it is still unibyte.
14056
14057 2008-08-29 Kenichi Handa <handa@m17n.org>
14058
14059 These changes are to re-implement the automatic composition so
14060 that it doesn't use text properties.
14061
14062 * Makefile.in (ftfont.o): Depend on composite.h.
14063 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
14064
14065 * character.h (Vunicode_category_table): Extern it.
14066
14067 * character.c (Vunicode_category_table): New variable.
14068 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
14069
14070 * chartab.c (optimize_sub_char_table): Perform more greedy
14071 optimization.
14072
14073 * composite.h (enum composition_method):
14074 Delete COMPOSITION_WITH_GLYPH_STRING.
14075 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
14076 (Vcomposition_function_table): Extern it.
14077 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
14078 (composition_gstring_put_cache, composition_gstring_from_id)
14079 (composition_gstring_p, composition_gstring_width)
14080 (composition_compute_stop_pos, composition_reseat_it)
14081 (composition_update_it, composition_adjust_point): Extern them.
14082 (Fcomposition_get_gstring): EXFUN it.
14083
14084 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
14085 (Vcomposition_function_table)
14086 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
14087 (gstring_hash_table, gstring_work, gstring_work_headers):
14088 New variables.
14089 (gstring_lookup_cache, composition_gstring_put_cache)
14090 (composition_gstring_from_id, composition_gstring_p)
14091 (composition_gstring_width, fill_gstring_header)
14092 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
14093 (composition_reseat_it, composition_update_it)
14094 (composition_adjust_point, Fcomposition_get_gstring): New functions.
14095 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
14096 and gstring_work_headers. DEFVAR_LISP composition-function-table.
14097 Defsubr composition_get_gstring.
14098
14099 * dispextern.h (struct glyph): New union u.cmp. Delete the member
14100 cmp_id.
14101 (struct glyph_string): Delete the member gidx. New members
14102 cmp_id, cmp_from, and cmp_to.
14103 (enum it_method): Delete GET_FROM_COMPOSITION.
14104 (struct composition_it): New struct.
14105 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
14106 Delete c, len, cmp_id, cmp_len in u.comp.
14107
14108 * font.h (enum lgstring_indices): Delete it.
14109 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
14110 (enum lglyph_indices): Likewise.
14111 (font_range): Adjust extern.
14112 (font_fill_lglyph_metrics): Extern it.
14113
14114 * font.c (QCf): New variable.
14115 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14116 (font_prepare_composition): Delete this function.
14117 (font_range): Type and arguments changed.
14118 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
14119 (font_fill_lglyph_metrics): New function.
14120 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
14121 (syms_of_font): DEFSYM QCf. Delete defsubr for
14122 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
14123 Defsubr Sfont_shape_gstring.
14124
14125 * fontset.h (font_for_char): Extern it.
14126
14127 * fontset.c (font_for_char): New function.
14128
14129 * ftfont.c: Include composite.h.
14130 (ftfont_resolve_generic_family): Add langset "en" to pattern.
14131 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14132
14133 * indent.c: Include composite.h and dispextern.h.
14134 (check_composition): Delete this function.
14135 (scan_for_column): Handle composition by
14136 composition_compute_stop_pos, composition_reseat_it, and
14137 composition_update_it.
14138 (compute_motion): Likewise.
14139 (Fvertical_motion): Fix checking of composition.
14140
14141 * keyboard.c (adjust_point_for_property): Check composition by
14142 composition_adjust_point.
14143
14144 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
14145 struct glyph_string.
14146
14147 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
14148 (append_composite_glyph): Adjust for the change of struct it and
14149 struct glyph.
14150 (produce_composite_glyph): Likewise.
14151
14152 * w32term.c (x_draw_composite_glyph_string_foreground):
14153 Adjust for the change of struct glyph_string.
14154 (x_draw_glyph_string): Likewise.
14155
14156 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
14157 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14158
14159 * xdisp.c: Include font.h.
14160 (it_props): Delete the entry for Qauto_composed.
14161 (init_iterator): Initialize it->cmp_it.id to -1.
14162 (compute_stop_pos): Call composition_compute_stop_pos.
14163 (face_before_or_after_it_pos): Adjust for the change of struct it.
14164 (handle_auto_composed_prop): Delete it.
14165 (handle_composition_prop): Handle only static composition.
14166 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
14167 from xassert. Initialize it->cmp_it.stop_pos.
14168 (push_it): Adjust for the change of struct it.
14169 (pop_it): Likewise.
14170 (get_next_element): Delete next_element_from_composition.
14171 (CHAR_COMPOSED_P): New macro.
14172 (get_next_display_element): For automatic composition, get a face
14173 from the font in the glyph-string.
14174 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
14175 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
14176 (next_element_from_string): Check if the character at the current
14177 position is composed by CHAR_COMPOSED_P.
14178 (next_element_from_buffer): Likewise.
14179 (next_element_from_composition): Adjust for the change of struct it.
14180 Update it->cmp_it.
14181 (dump_glyph): Adjust for the change of struct glyph.
14182 (fill_composite_glyph_string): Adjust for the change of struct
14183 it and struct glyph. Don't handle automatic composition here.
14184 (fill_gstring_glyph_string): New function.
14185 (x_get_glyph_overhangs): Handle automatic composition.
14186 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
14187 (BUILD_GSTRING_GLYPH_STRING): New macro.
14188 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
14189 automatic composition.
14190 (append_composite_glyph): Adjust for the change of struct it and
14191 struct glyph.
14192 (x_produce_glyphs): Adjust for the change of struct it.
14193
14194 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14195 the change of struct glyph_string.
14196 (x_draw_glyph_string): Likewise.
14197
14198 2008-08-29 Glenn Morris <rgm@gnu.org>
14199
14200 * buffer.c (word-wrap): Doc fix.
14201 * xdisp.c (truncate-partial-width-windows): Doc fix.
14202 Increase default to 50.
14203
14204 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
14205
14206 * xdisp.c (update_tool_bar_unwind): New function.
14207 (update_tool_bar): Temporarily set selected frame before building
14208 tool-bar items.
14209
14210 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
14211
14212 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
14213 snprintf, respectively.
14214 (xd_append_arg): Convert strings with Fstring_make_unibyte.
14215
14216 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
14217
14218 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
14219 LDFLAGS to GNUstep CC invocation.
14220
14221 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
14222
14223 * indent.c (Fvertical_motion): Revert last change. Handle the
14224 general case where we are moving forward, and PT spans multiple
14225 screen lines.
14226
14227 * eval.c (find_handler_clause): Temporarily increase
14228 max-lisp-eval-depth while printing the backtrace buffer, to
14229 guarantee that help-mode code can run.
14230
14231 2008-08-27 Eli Zaretskii <eliz@gnu.org>
14232
14233 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
14234 colors under -rv.
14235 (IT_set_frame_parameters): Don't swap foreground and background
14236 colors if `(reverse . t)' is present in the frame properties.
14237 (internal_terminal_init): Call init_frame_faces only for the
14238 initial frame.
14239
14240 2008-08-27 Andreas Schwab <schwab@suse.de>
14241
14242 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
14243
14244 2008-08-27 Andreas Schwab <schwab@suse.de>
14245
14246 * search.c (search_buffer): Set char_base to zero only at the end.
14247
14248 2008-08-27 Kenichi Handa <handa@m17n.org>
14249
14250 * fileio.c (report_file_error): Fix handling of multibyte error string.
14251
14252 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
14253
14254 * xterm.c (x_term_init): Temporarily hide the partially
14255 initialized terminal while calling vendor-specific-keysyms.
14256
14257 2008-08-26 Eli Zaretskii <eliz@gnu.org>
14258
14259 * msdos.c (internal_terminal_init): Most initializations done only
14260 once, especially initial_screen_colors[] and termscript open.
14261
14262 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
14263
14264 * eval.c (Fcondition_case): Doc fix.
14265
14266 * widgetprv.h (EmacsFramePart): Change font member to the new font
14267 struct.
14268
14269 * widget.c: Include character.h and font.h for XSETFONT.
14270 (setup_frame_gcs): Compute X font id from font struct, just once.
14271
14272 2008-08-26 Eli Zaretskii <eliz@gnu.org>
14273
14274 * term.c (get_named_tty): Fix last change.
14275
14276 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
14277
14278 * indent.c (Fvertical_motion): If moving forward starting from a
14279 multi-line string, move the iterator to the last line of that string.
14280
14281 2008-08-25 Eli Zaretskii <eliz@gnu.org>
14282
14283 * frame.c (do_switch_frame): Mark previously displayed frame as
14284 obscured for FRAME_MSDOS_P frames as well.
14285
14286 2008-08-24 Eli Zaretskii <eliz@gnu.org>
14287
14288 * frame.c (make_terminal_frame): Initialize f->terminal,
14289 f->terminal->reference_count, and scroll bars on MS-DOS as well.
14290 Set the top frame to newly created frame.
14291 (Fmake_terminal_frame): Reuse the_only_display_info.
14292
14293 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
14294 estimating available memory.
14295
14296 2008-08-23 David Reitter <david.reitter@gmail.com>
14297
14298 * nsterm.m (ns_draw_window_cursor): Don't call
14299 NSDisableScreenUpdates and NSEnableScreenUpdates on
14300 non-NS_IMPL_COCOA systems.
14301
14302 2008-08-23 Andreas Schwab <schwab@suse.de>
14303
14304 * process.c (procfs_system_process_attributes): Fix use of
14305 uninitialized variables.
14306
14307 2008-08-23 Eli Zaretskii <eliz@gnu.org>
14308
14309 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
14310
14311 * dispnew.c (init_display): Remove MS-DOS specific conditions for
14312 calling tty-set-up-initial-frame-faces.
14313
14314 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
14315 Allow MSDOS frames along with X frames.
14316
14317 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
14318 addition to output_termcap.
14319
14320 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
14321
14322 * termchar.h (FRAME_TTY): Support output_msdos_raw.
14323 (struct tty_display_info) [MSDOS]: Add fields related to mouse
14324 highlight.
14325
14326 * process.c [!subprocesses]: Define QCname.
14327 (syms_of_process): Intern and staticpro it.
14328
14329 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
14330 Adjust for changes in encoding/decoding routines.
14331 Use encode_coding_object and decode_coding_object instead of
14332 encode_coding and decode_coding.
14333
14334 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
14335
14336 * dosfns.c: Include frame.h before termhooks.h.
14337 (dos_cleanup): Use CURTTY ()->termscript instead of a global
14338 variable termscript.
14339
14340 * s/msdos.h (USER_FULL_NAME): Define.
14341 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
14342
14343 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
14344 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
14345 pw->pw_gecos.
14346
14347 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
14348 SELECTED_FRAME as additional (1st) argument.
14349 (tty_read_avail_input): Handle output_msdos_raw in
14350 addition to output_termcap.
14351
14352 * msdos.c: Include frame.h before termhooks.h.
14353 (mouse_on, mouse_off, mouse_moveto, mouse_init)
14354 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
14355 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
14356 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
14357 (IT_set_terminal_modes, IT_reset_terminal_modes)
14358 (IT_set_frame_parameters): Use tty->termscript instead of a global
14359 variable termscript.
14360 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
14361 global variable terminal_coding. Don't refer to
14362 Vnonascii_translation_table.
14363 (internal_terminal_init): Set Vwindow_system in current_kboard.
14364 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
14365 Announce date and time of session start, if termscript is open.
14366 Don't zero out the_only_display_info (it is done in
14367 term.c:init_tty). Open termscript only of not already open.
14368 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
14369 here instead of dos_ttraw. Don't initialize display if this is an
14370 initial tty. Don't set FRAME_FONT.
14371 (Vwindow_system_version): Bump to 23.
14372 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
14373 is available, set up mouse_position_hook.
14374 (dos_ttraw, IT_set_terminal_modes): If called with initial
14375 terminal, do nothing.
14376 (IT_set_frame_parameters): Handle the Qtty_type frame
14377 parameter by calling internal_terminal_init.
14378 (dos_set_window_size, show_mouse_face)
14379 (clear_mouse_face, IT_note_mode_line_highlight)
14380 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
14381 (dos_rawgetc): Use tty_display_info instead of x_display_info.
14382 (initialize_msdos_display): New function.
14383 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
14384 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
14385 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
14386 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
14387 Accept additional argument: a pointer to a frame. Update all callers.
14388 (request_sigio, unrequest_sigio): Don't define, now defined on
14389 sysdep.c.
14390 (IT_write_glyphs): Rewrite to use encode_terminal_code.
14391
14392 * term.c [MSDOS]: Include msdos.h.
14393 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
14394 conditional to DOS_NT. Allow only one call to this function in a
14395 session. Don't allocate a new struct tty_display_info; instead,
14396 reuse the_only_display_info. Call get_tty_size to get screen
14397 dimensions. Call init_baud_rate to set bad_rate.
14398 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
14399 (Fsuspend_tty) [MSDOS]: Don't close input and output.
14400 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
14401 (get_tty_terminal, get_named_tty, Ftty_type)
14402 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
14403 output_termcap.
14404 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
14405 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
14406 only when subprocesses are supported.
14407
14408 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
14409 f->output_data.x.
14410 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
14411 terminal devices.
14412
14413 * msdos.h: Remove definition of struct x_display_info and struct
14414 x_output.
14415 (FRAME_FONT): Use output_data.tty.
14416 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
14417 (struct x_display_info): Rename from display_info. Update all users in
14418 msdos.c.
14419 (struct x_output): Remove background_pixel and foreground_pixel.
14420 (the_only_display_info): Rename from the_only_x_display.
14421 (dos_ttraw): Update prototype.
14422
14423 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
14424 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
14425
14426 2008-08-23 Jason Rumney <jasonr@gnu.org>
14427
14428 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
14429 (fn_TIFFSetDirectory): New library function used.
14430 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
14431 (tiff_load): Use :index to select among multiple images. Set count
14432 property when multiple images exist.
14433 (gif_format): Use :index, not :image.
14434
14435 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
14436
14437 * xdisp.c (try_scrolling): Check INT_MAX instead of
14438 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
14439 to obtain INT_MAX.
14440
14441 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
14442
14443 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
14444
14445 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
14446
14447 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
14448 GNUstep library location.
14449
14450 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
14451
14452 * xfaces.c (x_update_menu_appearance): Check validity of menu font
14453 before using it.
14454
14455 * puresize.h (BASE_PURESIZE): Increase to 1250000.
14456
14457 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14458
14459 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
14460 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
14461 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
14462 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
14463 (EmacsApp-cursor_blink_handler): Remove declaration.
14464 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
14465 match 01 Feb 2008 changes in xterm.c.
14466 (ns_read_socket): Add cast to avoid warning.
14467 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
14468 GNUstep.
14469
14470 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
14471
14472 * xselect.c (x_get_foreign_selection): Return nil if desired
14473 selection could not be obtained, instead of signalling an error.
14474
14475 2008-08-20 David Reitter <david.reitter@gmail.com>
14476
14477 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
14478 * nsterm.m: Remove ns-specific code for cursor blinking.
14479 (ns_draw_window_cursor): Clear cursor properly rather than
14480 redrawing the area. Respect width of bar cursors.
14481 These changes enable the use of generic blink-cursor-mode and
14482 generic cursor types in NS and support smooth cursor movements (do
14483 not blink off after command).
14484 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
14485 Nextstep, too.
14486
14487 2008-08-19 Kenichi Handa <handa@m17n.org>
14488
14489 * font.c (Vfont_log_deferred): New variable.
14490 (font_add_log): Check Vfont_log_deferred.
14491 (font_deferred_log): New function.
14492
14493 * font.h (font_deferred_log): Extern it.
14494
14495 * fontset.c (reorder_font_vector): Use encoding charset of fonts
14496 for sorting.
14497 (face_for_char): Use deferred log.
14498
14499 2008-08-18 Kenichi Handa <handa@m17n.org>
14500
14501 * fontset.c (face_for_char): Add font log.
14502
14503 * font.c (font_add_log): Add the font properties :script, :lang,
14504 and :otf in the log.
14505
14506 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
14507
14508 * xdisp.c: Remove dead code.
14509 (handle_invisible_prop, next_overlay_string): Defer call to
14510 setup_for_ellipsis.
14511 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
14512
14513 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
14514
14515 * xfaces.c (lookup_derived_face): Properly handle possible zero
14516 return value of get_lface_attributes.
14517 (merge_faces): Don't tell lookup_derived_face to signal an error
14518 if face is not found.
14519
14520 * dired.c (Fdirectory_files): Doc fix.
14521
14522 * process.c (make_process): Initialize kill_without_query struct
14523 member.
14524
14525 2008-08-15 Eli Zaretskii <eliz@gnu.org>
14526
14527 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
14528 Alternative calculation of totphys for Visual Studio 6.
14529
14530 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
14531
14532 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
14533 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
14534 All users changed.
14535 (stat): Only root directory passed to GetDriveType. Allow RAM
14536 disk as well as local fixed disk when w32-get-true-file-attributes
14537 is set to `local'.
14538 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
14539 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
14540 (w32_cached_id, w32_add_to_cache): New functions.
14541 (get_name_and_id): Look account names in the cache before calling
14542 lookup_account_sid.
14543 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
14544 New initialization flags.
14545 (globals_of_w32): Initialize them to zero.
14546 (w32_system_process_attributes): Use w32_cached_id and
14547 w32_add_to_cache.
14548
14549 2008-08-14 Lawrence Mitchell <wence@gmx.li>
14550
14551 * lread.c (Fread_char, Fread_char_exclusive): If no character
14552 event is read before timeout is reached, return nil, rather than
14553 converting to a number.
14554
14555 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
14556
14557 * fns.c (use_dialog_box): Doc fix.
14558
14559 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
14560 on OS X.
14561
14562 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
14563
14564 * frame.c (Qns_parse_geometry): New var.
14565 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
14566
14567 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
14568
14569 * xdisp.c (x_produce_glyphs): Handle the case when font has no
14570 space character in calculating tabs.
14571
14572 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
14573
14574 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
14575
14576 2008-08-10 Glenn Morris <rgm@gnu.org>
14577
14578 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
14579 silence gcc "limited range of data type" warnings in some
14580 make_fixnum_or_float calls.
14581
14582 2008-08-09 Eli Zaretskii <eliz@gnu.org>
14583
14584 * w32.c (w32_system_process_attributes): If the process does not
14585 exist, return nil.
14586
14587 * w32.c: Include thelp32.h, psapi.h and coding.h.
14588 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
14589 declarations.
14590 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
14591 (Process32Next_Proc): New typedefs.
14592 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
14593 (g_b_init_process32_next, g_b_init_open_thread_token)
14594 (g_b_init_impersonate_self, g_b_init_revert_to_self)
14595 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
14596 (g_b_init_get_process_working_set_size)
14597 (g_b_init_global_memory_status_ex): New static variables.
14598 (globals_of_w32): Initialize them.
14599 (create_toolhelp32_snapshot, process32_first, process32_next)
14600 (open_thread_token, impersonate_self, revert_to_self)
14601 (get_process_memory_info, get_process_working_set_size)
14602 (global_memory_status, global_memory_status_ex): New wrapper
14603 functions.
14604 (w32_list_system_processes, w32_system_process_attributes)
14605 (enable_privilege, restore_privilege, ltime, process_times):
14606 New functions.
14607 (convert_time_raw): New function.
14608 (convert_time): Remove conversion of FILETIME into time in 100
14609 nsec units, call convert_time_raw instead.
14610
14611 * process.h (w32_list_system_processes, w32_system_process_attributes):
14612 Add prototypes.
14613 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
14614 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
14615 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
14616 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
14617
14618 * process.c (Fsystem_process_attributes): Doc fix.
14619
14620 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
14621
14622 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
14623 a continued multi-char glyph; if so, advance to the actual glyph.
14624
14625 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
14626
14627 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
14628
14629 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
14630 (.m.o): Use it.
14631 * config.in: Regenerate.
14632
14633 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
14634
14635 * xdisp.c (redisplay_window): Revert last change.
14636 (try_window): Check bottom scroll margin too.
14637
14638 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14639
14640 * config.in: Regenerate.
14641
14642 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
14643 -list-load-path-shadows'.
14644 (nsgui.h): Reduce number of things depending on it.
14645
14646 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
14647
14648 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
14649 instead of window-end which does the wrong thing at eob.
14650 (try_cursor_movement): Minor optimization.
14651 (redisplay_window): If scroll margin is defined, don't assume
14652 window doesn't need scrolling.
14653
14654 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14655
14656 * config.in: Regenerate.
14657
14658 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
14659 (mostlyclean): Don't delete *.d under NS.
14660
14661 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
14662
14663 2008-08-06 Kenichi Handa <handa@m17n.org>
14664
14665 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
14666
14667 2008-08-06 Andreas Schwab <schwab@suse.de>
14668
14669 * config.in: Regenerate.
14670
14671 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
14672
14673 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
14674 forcing a window start.
14675
14676 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
14677 (auto_save_1): Update modtime when auto-save-list-file-name is on.
14678
14679 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14680
14681 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
14682 argument.
14683
14684 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
14685
14686 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
14687 <scroll-down-aggressively, before-change-functions>:
14688 <after-change-functions>: Reflow docstrings.
14689
14690 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14691 Ken Raeburn <raeburn@gnu.org>
14692
14693 Dock menu customization, based on a patch by Ken Raeburn, plus some
14694 other fixes.
14695 * nsmenu.m (dockMenu): New variable.
14696 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
14697
14698 * nsterm.h (dockMenu): Declare.
14699
14700 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
14701 (ns_term_init): Initialize dockMenu.
14702 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
14703 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
14704 left.
14705
14706 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
14707
14708 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
14711
14712 * config.in: Regenerate.
14713
14714 2008-08-04 Seiji Zenitani <zenitani@mac.com>
14715
14716 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
14717
14718 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
14719
14720 * nsterm.h (find_and_call_menu_selection): Fix prototype.
14721
14722 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14723
14724 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
14725
14726 * keyboard.h: Comment an #endif.
14727
14728 * lisp.h (have_menus_p): Adjust comment.
14729
14730 * menu.c (find_and_return_menu_selection): Fix comparison with
14731 client_data.
14732
14733 * nsmenu.m (popup_activated_flag): New variable.
14734 (popup_activated): New function.
14735 (menu-or-popup-active-p): New exported lisp definition.
14736 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
14737 when popup done.
14738 (ns_popup_dialog): Set popup_activated_flag.
14739
14740 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14741 version for GNUstep (handled by conditional typedef in nsterm.m).
14742 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
14743 in rgb.txt).
14744
14745 * process.c (init_process): Use DARWIN_OS, not DARWIN.
14746
14747 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
14748
14749 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
14750
14751 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
14752 shortcircuit if popup_activated like GTK and X toolkit.
14753
14754 * m/inter386.h: Change DARWIN to DARWIN_OS.
14755
14756 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
14757 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
14758 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
14759 Expand comment on NO_SOCK_SIGIO.
14760
14761 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
14762
14763 * nsterm.m (windowDidResize): Remove stopModal call.
14764
14765 2008-08-03 Andreas Schwab <schwab@suse.de>
14766
14767 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
14768 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
14769
14770 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
14771
14772 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
14773 Don't use uninitialized pointer variable when using getrlimit.
14774
14775 2008-08-02 Jason Rumney <jasonr@gnu.org>
14776
14777 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
14778
14779 2008-08-02 Eli Zaretskii <eliz@gnu.org>
14780
14781 * alloc.c (NSTATICS): Bump to 0x640.
14782
14783 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
14784
14785 * lisp.h: Add prototype for directory_files_internal.
14786
14787 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
14788 New functions.
14789 (syms_of_process): Defsubr them. Add initializations for various
14790 Q* symbols used in procfs_system_process_attributes.
14791 (procfs_list_system_processes, procfs_system_process_attributes)
14792 [HAVE_PROCFS]: New functions.
14793 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
14794 (procfs_get_total_memory): New functions.
14795
14796 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
14797
14798 * xfaces.c (Fx_load_color_file): Fix previous change;
14799 it is #ifdef WINDOWSNT, not WINDOWS_NT.
14800
14801 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
14802
14803 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
14804
14805 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14806
14807 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
14808
14809 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
14810
14811 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
14812
14813 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
14814 define NSApplicationDelegateReplySuccess.
14815 (EmacsView -converstationIdentifier): Use long instead of
14816 NSInteger for GNUstep, since it doesn't have NSInteger.
14817
14818 * xmenu.c: Revert last change.
14819
14820 * keyboard.h: Fix last change.
14821
14822 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
14823
14824 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
14825 on Windows.
14826
14827 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14828
14829 Warning clearing and clean-up in NS port.
14830 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
14831 Add prototypes.
14832 * nsgui.h (FACE_DEFAULT): Remove, unused.
14833 (XGCValues): Change colors to unsigned long.
14834 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
14835 nsterm.m.
14836 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
14837 (ns_list_fonts): Remove, unused.
14838 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
14839 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
14840 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
14841 (nsfont_draw): Compare face colors to 0, not nil.
14842 * nsmenu.m (struct widget_value): Drop unneeded declaration.
14843 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
14844 (-addSubmenuWithTitle:): Use NSMenuItem class.
14845 (ns_popup_menu): Use NO, not NULL, for enabled setting.
14846 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
14847 (ns_clip_to_row): Make gc arg a BOOL.
14848 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
14849 ns_clip_to_row() call.
14850 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
14851 used). Cast FRAME_FONT assignments.
14852 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
14853 (ns_string_to_lispmod): Change arg to const char.
14854 (ns_term_init): Use NSMenuItem class.
14855 (EmacsApp -openFile:): Move to different section of file.
14856 (EmacsApp -application:openFiles:): Don't return a value, call
14857 -replyToOpenOrPrint:.
14858 (EmacsView -keyDown:): Fix up cast.
14859 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
14860 (EmacsView -menuDown:): Cast tag in call to
14861 find_and_call_menu_selection().
14862 (ns_list_fonts): Remove, unused.
14863 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
14864 (ns_fontname_to_xlfd): Make static.
14865 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
14866 Remove prototypes (now in keyboard.h).
14867 (next_menubar_widget_id): Remove, unused.
14868 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
14869 Remove prototypes (now in keyboard.h).
14870 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
14871
14872 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
14873
14874 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
14875 (floatfns.o): Depend on syssignal.h.
14876 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
14877
14878 * systty.h: Fix previous change that removed BSD_TERMIOS.
14879 Add comments to #ifdefs.
14880
14881 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14882
14883 * w32fns.c (w32-load-color-file): Remove.
14884 (x-open-connection): Use renamed Fx_load_color_file.
14885 * xfaces.c (x-load-color-file): Add.
14886 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
14887 Emacs.clr.
14888 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14889
14890 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
14891
14892 * dbusbind.c (Fdbus_call_method_asynchronously)
14893 (Fdbus_method_error_internal): New defuns.
14894 (xd_read_message): Handle also reply messages.
14895 (Vdbus_registered_functions_table): Extend docstring.
14896
14897 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
14898
14899 * keyboard.c (gobble_input): Fix previous change.
14900
14901 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14902
14903 * bitmaps/README:
14904 * xfns.c:
14905 * termcap.c:
14906 * term.c:
14907 * syswait.h:
14908 * systty.h:
14909 * systime.h:
14910 * syssignal.h:
14911 * sysdep.c:
14912 * process.h:
14913 * process.c:
14914 * print.c:
14915 * ndir.h:
14916 * lread.c:
14917 * keyboard.c:
14918 * getpagesize.h:
14919 * floatfns.c:
14920 * fileio.c:
14921 * emacs.c:
14922 * doc.c:
14923 * dispnew.c:
14924 * dired.c:
14925 * data.c:
14926 * callproc.c:
14927 * buffer.c:
14928 * README:
14929 * Makefile.in:
14930 * s/template.h:
14931 * s/msdos.h:
14932 * m/vax.h: Remove VMS support.
14933 * s/vms.h:
14934 * vlimit.h:
14935 * uaf.h:
14936 * temacs.opt:
14937 * param.h:
14938 * ioctl.h: Remove file.
14939
14940 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14941
14942 * s/ms-w32.h (MULTI_KBOARD): Remove.
14943 * xterm.c:
14944 * xselect.c:
14945 * xfns.c:
14946 * window.c:
14947 * w32term.c:
14948 * w32fns.c:
14949 * terminal.c:
14950 * termhooks.h:
14951 * term.c:
14952 * sysdep.c:
14953 * keyboard.h:
14954 * keyboard.c:
14955 * frame.h:
14956 * frame.c:
14957 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
14958 * config.in: Regenerate.
14959
14960 2008-07-30 Jason Rumney <jasonr@gnu.org>
14961
14962 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
14963
14964 * w32font.c (w32font_encode_char): Leave as unicode if in range.
14965 (w32font_open_internal): Get unicode version of textmetrics.
14966 Don't enable or disable glyph indices here.
14967 (w32font_open): Disable use of glyph indices.
14968
14969 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14970
14971 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
14972
14973 * minibuf.c (Vread_buffer_function): Doc fix.
14974
14975 2008-07-30 John Paul Wallington <jpw@pobox.com>
14976
14977 * minibuf.c (read_buffer_completion_ignore_case): New var.
14978 (Fread_buffer): Use it.
14979
14980 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
14981
14982 * systty.h (sensemode): Remove empty #if. Remove reference to
14983 BSD_TERMIOS, unused.
14984
14985 * sysdep.c: Remove reference to DGUX.
14986 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14987
14988 * config.in: Regenerate.
14989
14990 2008-07-30 Jason Rumney <jasonr@gnu.org>
14991
14992 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14993
14994 2008-07-29 Jason Rumney <jasonr@gnu.org>
14995
14996 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14997 is populated.
14998 (uniscribe_encode_char): Always use uniscribe.
14999 Avoid using context if cache is populated.
15000
15001 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
15002
15003 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
15004 open menu.
15005
15006 * gtkutil.c (menu_nav_ended): Remove.
15007 (create_menus): Remove signal connect for menu_nav_ended.
15008
15009 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
15010
15011 * xdisp.c (redisplay_window): Check return value of
15012 compute_window_start_on_continuation_line before forcing a window
15013 start.
15014
15015 2008-07-28 Jason Rumney <jasonr@gnu.org>
15016
15017 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
15018
15019 * w32term.c (w32_enable_unicode_output, cleartype_active):
15020 Remove obsolete display options.
15021 (x_draw_glyph_string_background): Don't use old cleartype_active
15022 workaround.
15023 (w32_initialize): Remove cleartype_active initialization.
15024 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
15025
15026 2008-07-28 Andreas Schwab <schwab@suse.de>
15027
15028 * lisp.h (init_weak_hash_tables, syms_of_font)
15029 (xd_read_queued_messages, syms_of_dbusbind): Declare.
15030 (remove_hash_entry): Don't declare.
15031 * eval.c (maybe_call_debugger): Make static and move before use.
15032 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
15033 * xdisp.c: Include "gtkutil.h" if USE_GTK.
15034 * xterm.h (x_set_frame_alpha): Declare.
15035
15036 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
15037
15038 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
15039 (create_menus): Connect selection-done to menu_nav_ended.
15040
15041 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15042
15043 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
15044 Set Vx_resource_name to a fallback. Replace read of 'buffered'
15045 parameter with read of 'alpha' one.
15046 (Qns_frame_parameter): Remove.
15047 * nsselect.m (selection-coding-system)
15048 (next-selection-coding-system, Vselection_coding_system)
15049 (Vnext_selection_coding_system): Drop.
15050
15051 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15052
15053 * nsfns.m (do-applescript, do_applescript): Rename to
15054 ns-do-applescript, ns_do_applescript, and move within file.
15055
15056 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
15057
15058 Remove support for Mac Carbon.
15059 * mactoolbox.c:
15060 * macterm.h:
15061 * macterm.c:
15062 * macselect.c:
15063 * macmenu.c:
15064 * macgui.h:
15065 * macfns.c:
15066 * mac.c: Remove file.
15067 * s/darwin.h:
15068 * m/intel386.h:
15069 * xfaces.c:
15070 * xdisp.c:
15071 * window.c:
15072 * tparam.c:
15073 * termhooks.h:
15074 * termcap.c:
15075 * term.c:
15076 * syssignal.h:
15077 * sysselect.h:
15078 * sysdep.c:
15079 * process.c:
15080 * lread.c:
15081 * lisp.h:
15082 * keyboard.c:
15083 * image.c:
15084 * fringe.c:
15085 * frame.h:
15086 * frame.c:
15087 * fontset.c:
15088 * font.h:
15089 * font.c:
15090 * fns.c:
15091 * fileio.c:
15092 * emacs.c:
15093 * dispnew.c:
15094 * dispextern.h:
15095 * config.in:
15096 * atimer.c:
15097 * Makefile.in: Remove code for Carbon.
15098
15099 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15100
15101 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
15102
15103 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15104
15105 * macterm.h (kCGBitmapByteOrder32Host): New define for
15106 non-universal SDKs.
15107
15108 * image.c (mac_create_cg_image_from_image, image_load_image_io)
15109 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
15110
15111 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
15112 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
15113
15114 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
15115
15116 * w32inevt.c: Include dispextern.h.
15117
15118 2008-07-26 Andreas Schwab <schwab@suse.de>
15119
15120 * print.c (print_object): Fix off-by-one in last change.
15121
15122 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
15123
15124 * term.c (syms_of_term): Don't initialize default_orig_pair,
15125 default_set_foreground and default_set_background on Windows.
15126
15127 2008-07-25 Jason Rumney <jasonr@gnu.org>
15128
15129 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
15130 ScriptItemize. Clean up return value checking. Remove unused
15131 variables.
15132 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
15133 shaping engine.
15134
15135 * w32font.c (w32font_has_char): Handle the case where we can't
15136 determine the script for a character.
15137
15138 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
15139
15140 * term.c (syms_of_term): Initialize default_orig_pair,
15141 default_set_foreground, and default_set_background.
15142
15143 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15144 clash (bug#86).
15145 (getloadavg): Callers changed.
15146
15147 * image.c (svg_load_image): Fix last change.
15148 (svg_load_image): Use rsvg_handle_get_dimensions to check that
15149 image size is valid. Use g_object_unref instead of deprecated
15150 rsvg_handle_free to free rsvg handle.
15151 (x_from_xcolors): Don't initialize pixmap (silence compiler).
15152
15153 2008-07-25 Jason Rumney <jasonr@gnu.org>
15154
15155 * w32font.c (w32font_encode_char): Encode characters outside BMP as
15156 surrogates before looking up glyph index.
15157 (w32font_text_extents): Encode as surrogates if falling back to
15158 functions that need UTF-16 wide chars.
15159
15160 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
15161 BMP as surrogates before looking up glyph index.
15162
15163 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
15164
15165 * image.c (svg_load_image): Check for failure in return value of
15166 rsvg_handle_get_pixbuf. Free rsvg handle when done.
15167
15168 2008-07-25 Jason Rumney <jasonr@gnu.org>
15169
15170 * w32font.c (Fx_select_font): Reverse sense of second arg.
15171
15172 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
15173
15174 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
15175 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
15176
15177 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
15178 (PURESIZE): Use it.
15179
15180 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
15181
15182 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
15183 * m/alpha.h (TEXT_END):
15184 * m/ibmrs6000.h (TEXT_END):
15185 * m/macppc.h (TEXT_END):
15186 * s/darwin.h (TEXT_END):
15187 * s/msdos.h (TEXT_END): Remove, unused.
15188 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
15189 * s/cygwin.h: Remove comment.
15190
15191 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
15192 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
15193 * m/intel386.h (DOT_GLOBAL_START):
15194 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
15195 (USG): Remove, file not used on USG platforms.
15196
15197 * Makefile.in (HAVE_X11): Remove empty #else.
15198
15199 2008-07-24 Andreas Schwab <schwab@suse.de>
15200
15201 * fileio.c (Finsert_file_contents): Properly adjust undo list
15202 after format conversion.
15203
15204 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
15205
15206 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
15207 (menu_nav_ended): Remove.
15208 (create_menus): Remove signal connect for menu_nav_ended.
15209 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
15210 create_menus.
15211 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
15212
15213 2008-07-23 Jason Rumney <jasonr@gnu.org>
15214
15215 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
15216 with opened font.
15217 (w32font_open): Set font type to gdi.
15218
15219 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
15220
15221 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
15222
15223 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
15224 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
15225 defines it.
15226 * unexec.c (ADDR_CORRECT): Define unconditionally.
15227
15228 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
15229
15230 * unexec.c: Remove code depending on !COFF and USG, the file is
15231 not used for such systems.
15232
15233 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
15234 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
15235 (LD_SWITCH_SYSTEM_1): Remove, update users.
15236
15237 * s/darwin.h (DATA_END):
15238 * m/intel386.h (DATA_END):
15239 * m/ibmrs6000.h (DATA_END):
15240 * m/alpha.h (DATA_END): Remove, unused.
15241
15242 * config.in: Regenerate.
15243 * s/ms-w32.h (subprocesses): Define unconditionally.
15244 * s/template.h (subprocesses): Update comment.
15245 * s/vms.h (subprocesses):
15246 * s/usg5-4.h (subprocesses):
15247 * s/hpux10-20.h (subprocesses):
15248 * s/gnu-linux.h (subprocesses):
15249 * s/cygwin.h (subprocesses):
15250 * s/bsd-common.h (subprocesses):
15251 * s/aix4-2.h (subprocesses):
15252 * s/darwin.h (subprocesses): Do not define, defined by default now.
15253
15254 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
15255 Remove all references.
15256 (temacs): Add GNUstep specific ld flags.
15257
15258 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
15259 similarly to what X does.
15260
15261 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15262
15263 * nsfns.m (x-list-fonts): Remove.
15264 (syms_of_nsfns): Drop the x-list-fonts declaration.
15265 * nsterm.m: Get rid of remaining "//" comments.
15266
15267 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
15268
15269 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
15270
15271 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
15272 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
15273 (Fns_own_selection_internal, Fx_disown_selection_internal)
15274 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
15275
15276 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
15277 ... */' style of docstrings. Doc fixes.
15278
15279 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
15280
15281 * terminfo.c (UP, BC, PC): Undo previous change.
15282
15283 * nsfns.m: Rename ns prefixed functions/variables to the
15284 corresponding x versions. Update references.
15285
15286 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
15287
15288 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
15289
15290 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
15291
15292 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
15293 Remove forwarding functions.
15294 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
15295 non-static.
15296 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
15297 non-static.
15298 (ns_frame_parm_handlers): Use the new names.
15299 (syms_of_nsfns): Move to the end of file.
15300
15301 * nsterm.m (syms_of_nsterm): Move to the end of file.
15302
15303 * dispnew.c (init_display): Remove code for X10.
15304
15305 2008-07-22 Jason Rumney <jasonr@gnu.org>
15306
15307 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
15308 bare drive.
15309
15310 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15311
15312 * nsterm.m (syms_of_nsterm): Remove debugging println.
15313
15314 2008-07-22 David Reitter <david.reitter@gmail.com>
15315
15316 * nsfns.m (do_applescript, F_do_applescript): NS version of the
15317 Carbon implementation of the same functionality: execute arbitrary
15318 AppleScript code.
15319
15320 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15321
15322 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
15323 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
15324 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15325 (Fx_display_mm_height, Fx_display_mm_width)
15326 (Fx_display_backing_store, Fx_display_visual_class)
15327 (Fx_display_save_under, Fx_open_connection)
15328 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
15329 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
15330 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15331 (Fx_display_pixel_width, Fx_display_pixel_height)
15332 (Fx_display_usable_bounds, Fx_display_planes)
15333 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
15334 ... */' style of docstrings.
15335
15336 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
15337
15338 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
15339 on this platform.
15340 (mips):
15341 * m/iris4d.h (mips): Do not define.
15342 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
15343
15344 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
15345
15346 * image.c:
15347 * nsfns.m:
15348 * nsselect.m:
15349 * nsterm.h:
15350 * nsterm.m: Rename ns prefixed functions/variables to the
15351 corresponding x versions. Update references.
15352
15353 * m/ibms390x.h (NO_REMAP): Do not undefine.
15354
15355 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
15356
15357 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
15358
15359 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
15360 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
15361 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
15362 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
15363 (Fns_display_mm_height, Fns_display_mm_width)
15364 (Fns_display_backing_store, Fns_display_visual_class)
15365 (Fns_display_save_under, Fns_open_connection)
15366 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
15367 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
15368 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15369 (Fns_display_pixel_width, Fns_display_pixel_height)
15370 (Fns_display_usable_bounds, Fx_display_planes)
15371 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
15372
15373 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
15374
15375 * print.c (print_object): Check print_depth before searching for
15376 circularities.
15377
15378 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
15379
15380 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
15381 only sprintf.
15382
15383 2008-07-21 Kenichi Handa <handa@m17n.org>
15384
15385 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
15386
15387 2008-07-20 Andreas Schwab <schwab@suse.de>
15388
15389 * syntax.c (find_start_pos, find_start_value)
15390 (find_start_value_byte, find_start_begv, find_defun_start)
15391 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
15392
15393 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
15394
15395 * s/sol2-3.h: Insert contents of s/sol2.h.
15396 (LD_SWITCH_SYSTEM): Remove redundant definition.
15397 * s/sol2.h: Remove, unused.
15398
15399 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15400
15401 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
15402
15403 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15404
15405 * Makefile.in (ns_appdir): Fix typo in find command.
15406
15407 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
15408
15409 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
15410
15411 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
15412 added not supported anymore.
15413
15414 * s/usg5-4-2.h (LIBS_SYSTEM):
15415 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
15416
15417 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15418 * s/lynxos.h (GETPGRP_NO_ARG):
15419 * s/hpux10-20.h (NO_SIOCTL_H):
15420 * s/gnu.h (GETPGRP_NO_ARG):
15421 * s/gnu-linux.h (NO_SIOCTL_H):
15422 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15423 * s/cygwin.h (GETPGRP_NO_ARG):
15424 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
15425 (C_DEBUG_SWITCH): Remove duplicate definition.
15426
15427 * m/ibms390.h: Remove boilerplate comments.
15428
15429 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
15430
15431 * process.c (HAVE_SERIAL): Consolidate ifdefs.
15432 (wait_reading_process_output): Remove code for SunOS, platform not
15433 supported anymore. Use SOLARIS2 instead of sun.
15434
15435 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15436
15437 * font.c (font_open_by_name): Under NS, default lface height to zero.
15438 (font_open_for_lface): Under NS, set size based on frame fontsize.
15439 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
15440 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
15441
15442 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15443
15444 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
15445 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
15446 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
15447 YES/NO.
15448 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
15449 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
15450 * Makefile.in (clean): Clear out build destination dir.
15451
15452 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15453
15454 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
15455 xterm, xselect.
15456 * lisp.h: Remove declaration of hash_remove.
15457 * nsgui.h: Remove redefinitions of hash_remove.
15458 * fns.c (hash_remove): Rename to hash_remove_from_table.
15459
15460 2008-07-19 Seiji Zenitani <zenitani@mac.com>
15461
15462 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
15463 strdup() the family UTF8String before modifying it.
15464
15465 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15466
15467 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
15468 NS_FACE_BACKGROUND with 0 instead of nil.
15469 * nsfont.m (nsfont_draw): Same.
15470
15471 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
15472
15473 * nsfns.m (ns_set_background_color): Fix crash.
15474
15475 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
15476
15477 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
15478
15479 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
15480
15481 * puresize.h (BASE_PURESIZE): Increase to 1240000.
15482
15483 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15484
15485 * gtkutil.c: Include <config.h> instead of "config.h".
15486
15487 * lisp.h (Foverlay_buffer): Add EXFUN.
15488
15489 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
15490 child process to complete child_setup. Undo 2005-09-21 change.
15491
15492 * s/darwin.h: Mention setsid after vfork.
15493
15494 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15495
15496 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
15497 Depend on macgui.h.
15498
15499 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
15500 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
15501
15502 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
15503 and f19.
15504 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
15505
15506 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
15507 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
15508 Remove enumerators.
15509
15510 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
15511 Check if FACE_FROM_ID returns NULL.
15512
15513 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
15514
15515 * w32inevt.c (change_frame_size): Remove extern declaration.
15516 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
15517 change_frame_size.
15518
15519 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15520
15521 * getloadavg.c: Revert last change (2008-07-15).
15522
15523 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15524
15525 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
15526 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
15527 from configure.
15528
15529 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
15530
15531 * s/sol2.h:
15532 * s/sol2-4.h: Reorganize conditionals.
15533
15534 * ecrt0.c: Remove code depending on m68000, not used anymore.
15535
15536 * fns.c (hash_remove): Make static.
15537 * lisp.h (hash_remove): Don't prototype.
15538
15539 * m/ibmrs6000.h:
15540 * m/ibms390x.h:
15541 * m/macppc.h: Remove boilerplate comments.
15542
15543 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
15544 Solaris, which does not need them.
15545
15546 * m/vax.h: Remove comments about unsupported systems.
15547
15548 * s/darwin.h: Reorganize ifdefs.
15549
15550 2008-07-17 Andreas Schwab <schwab@suse.de>
15551
15552 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
15553
15554 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
15555
15556 Use SDATA. Follow coding convention of placing operators at
15557 beginning of next line rather than end of previous line, and placing
15558 spaces around infix operators.
15559
15560 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
15561 in case it was defined already.
15562 USE @GNUSTEP_MAKEFILES@ rather than envvars.
15563 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
15564 ns_default.
15565 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
15566 Lisp_Objects.
15567 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
15568 (ns_defined_color, ns_color_to_lisp): Declare.
15569 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
15570 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
15571 it's accepted even with USE_LISP_UNION_TYPE.
15572 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
15573 (update_frame_tool_bar): Remove apparently obsolete tests for
15574 non-integerness of f->tool_bar_lines.
15575 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
15576 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
15577 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
15578 (nsfont_open): Don't confuse NULL for Qnil.
15579 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
15580 * menu.h (find_and_call_menu_selection):
15581 * menu.c (find_and_call_menu_selection): Use just int for vector size.
15582 (find_and_return_menu_selection): Always return something.
15583 * frame.h: Include dispextern.h for Display_Info.
15584 (display_x_get_resource): Declare.
15585
15586 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
15587
15588 * syntax.c: Remove stdio.h include accidentally introduced in
15589 Emacs.app commit.
15590 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
15591 NS_IMPL_COCOA.
15592 * keyboard.c (handle_async_input, input_available_signal): Remove
15593 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
15594
15595 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15596
15597 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
15598 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
15599 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
15600 Use SDATA.
15601
15602 * keymap.c: Remove all NS-specific code.
15603 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
15604 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
15605 where_is_preferred_modifier, return a different value depending on how
15606 preferred is the binding.
15607 (where_is_internal): Adjust accordingly.
15608 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
15609 Adjust to new preferred_sequence_p.
15610 (syms_of_keymap): Declare `where-is-preferred-modifier'.
15611 * keyboard.c (parse_solitary_modifier): Not static any more.
15612 * keyboard.h (parse_solitary_modifier): Declare.
15613
15614 2008-07-16 Andreas Schwab <schwab@suse.de>
15615
15616 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
15617 of easymenu.
15618
15619 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
15620
15621 * xdisp.c (move_it_in_display_line): Account for word wrap, so
15622 that we don't move off the line.
15623
15624 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15625
15626 * keyboard.c (Qsuper): Remove.
15627 (parse_menu_item): Don't call where_is_internal specially for NS.
15628
15629 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15630
15631 * s/gnu-linux.h: Remove boilerplate comments.
15632
15633 * m/alpha.h (__ELF__): Consolidate conditions.
15634
15635 * m/m68k.h (linux): Use GNU_LINUX instead.
15636 Remove boilerplate comments.
15637
15638 * m/intel386.h: Undo refactoring from previous change.
15639 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
15640 too, remove dead code.
15641 (linux): Use GNU_LINUX instead.
15642
15643 2008-07-16 Jason Rumney <jasonr@gnu.org>
15644
15645 * w32gui.h: Repeat 26 June changes lost by last change.
15646
15647 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15648
15649 * systty.h: Remove code for Aix on 386, unsupported platform.
15650
15651 * s/ms-w32.h: Remove boilerplate comments.
15652 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
15653
15654 * s/gnu-linux.h (TERM): Remove support.
15655 (HAVE_SYSVIPC): Remove, unused.
15656 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
15657 for this system.
15658
15659 * process.c: Remove support for IRIS, unused.
15660 Remove support for TERM, not relevant anymore.
15661
15662 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
15663 used with the definition.
15664
15665 * s/aix4-2.h (static): Do not undef.
15666
15667 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
15668 only used on Aix.
15669 (HAVE_SYSVIPC): Remove, unused.
15670
15671 * m/hp800.h (CANNOT_DUMP): Do not undef.
15672
15673 * m/alpha.h: Fix comment.
15674
15675 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
15676 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
15677 used by this configuration.
15678 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
15679 * unexec.c: Remove code depending on HPUX and
15680 USG_SHARED_LIBRARIES, not used with this file. Remove code
15681 depending on IRIS, unused. Remove if 0-ed code.
15682
15683 * s/template.h: Remove comments about static.
15684
15685 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
15686 Remove if 0-ed code.
15687 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
15688 were the same as the default.
15689 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
15690 Remove boilerplate comments.
15691 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
15692 (HAVE_SYSVIPC): Remove, unused.
15693 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
15694
15695 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15696 Remove boilerplate comments.
15697 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15698 Remove boilerplate comments.
15699 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15700 Remove boilerplate comments.
15701 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
15702
15703 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
15704 USG systems which do not use DATA_SEG_BITS.
15705 Refactor code. Remove boilerplate comments.
15706
15707 * m/ibms390.h:
15708 * m/m68k.h:
15709 * s/bsd-common.h:
15710 * s/cygwin.h:
15711 * s/darwin.h:
15712 * s/freebsd.h:
15713 * s/gnu.h:
15714 * s/msdos.h: Remove boilerplate comments.
15715
15716 * m/iris4d.h: Remove boilerplate comments and code for systems that
15717 do not use this file.
15718 (IRIS_4D): Remove, unused.
15719
15720 * m/mips.h: Remove boilerplate comments and code for systems that
15721 do not use this file.
15722 (SIGN_EXTEND_CHAR):
15723 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
15724 * unexmips.c: Remove file, unused.
15725
15726 * editfns.c (Fuser_full_name): Replace the only use of
15727 USER_FULL_NAME with its value.
15728 * config.in: Regenerate.
15729
15730 2008-07-16 David Reitter <david.reitter@gmail.com>
15731
15732 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
15733 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
15734
15735 2008-07-16 Glenn Morris <rgm@gnu.org>
15736
15737 * emacs.c (system-type): Doc fix.
15738
15739 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
15740
15741 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
15742 If the cache doesn't work, let's fix it, rather than work around it.
15743
15744 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15745
15746 * Makefile.in: Correct additions for nsfont.o in last commit.
15747 * nsfont.m: New file (forgot last commit).
15748
15749 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15750
15751 * callproc.c (set_initial_environment):
15752 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
15753 batch-compiling for bootstrap).
15754
15755 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15756 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15757
15758 * frame.c (make_initial_frame): Call init_frame_faces(f) in
15759 CANNOT_DUMP case -- fix crash due to different init order.
15760
15761 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15762
15763 Changes and additions for NeXTstep windowing system (Cocoa and
15764 GNUstep) support.
15765
15766 * Makefile.in:
15767 * config.in: Support defines and build commands for NS port.
15768 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
15769 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
15770 * dispextern.h: Include nsgui.h and add needed typedefs under NS
15771 windowing.
15772 (struct face): Add synth_ital field.
15773 * dispnew.c: Include nsterm.h when compiling under NS windowing.
15774 (init_display): Initialize Vinitial_window_system to "ns" when so
15775 compiled.
15776 * emacs.c: Include GSConfig.h when compiling under GNUstep.
15777 (display_arg): Use under NS.
15778 (main): Under NS, allocate autorelease pool and handle command line
15779 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
15780 (standard_args): Add NS-specific args.
15781 (shut_down_emacs): Shut down NS terminal if compiled under NS.
15782 * font.c (DEFAULT_ENCODING): New variable.
15783 (font_find_for_lface): Use it.
15784 (syms_of_font): Load syms_of_nsfont under NS.
15785 * font.h: Declare nsfont_driver when compiled under NS.
15786 * fontset.c: When compiling under NS, include nsterm.h.
15787 (fontset_from_font): Autoconstruct fontset under NS.
15788 * frame.c (various): Under NS, include nsterm.h, add Qns window system
15789 symbol, document and use it.
15790 (do_switch_frame): When for_deletion under Cocoa, add
15791 Fraise_frame(Qnil).
15792 (x_set_frame_parameters): Ensure font attribute changes are picked up.
15793 (x_get_arg): Allow "yes" and "no" as boolean values.
15794 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
15795 Qright under Cocoa.
15796 (focus-follows-mouse): Default to 0 under NS.
15797 * frame.h (enum output_method): Add output_ns.
15798 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
15799 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
15800 (FRAME_WINDOW_P): NS-specific definition.
15801 * fringe.c (max_used_fringe_bitmap): Make public.
15802 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
15803 (getloadavg): Use NeXT code under descendant OS's.
15804 * image.c (includes and header section, x_create_bitmap_from_data)
15805 (x_create_bitmap_from_file, free_bitmap_record, image_background)
15806 (image_background_transparent, x_clear_image_1)
15807 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15808 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
15809 (x_to_xcolors, x_from_xcolors, x_disable_image)
15810 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
15811 other GUIs, including XPM support using code originally written for
15812 Carbon GUI.
15813 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
15814 using NS API.
15815 (image_ascent): Use font metrics macros instead of direct struct field
15816 access.
15817 * keyboard.c (includes): Add nsterm.h when compiling under NS.
15818 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
15819 Also, handle NS as GTK for menu bar purposes.
15820 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
15821 toolkit where they differ.
15822 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
15823 use cachelist, still needed under NS.
15824 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
15825 (struct widget_value): Define it here for menu.c.
15826 * keymap.c (includes): Include modifier internals.
15827 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
15828 NS.
15829 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
15830 support for preferring sequences using certain modifiers, specified by
15831 the FIRSTONLY argument.
15832 * lisp.h (hash_remove): Rename to avoid name clash when compiling
15833 under NS GNUstep implementation.
15834 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
15835 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
15836 * menu.c: Include nsterm.h under NS.
15837 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
15838 (free_menubar_widget_tree_value, update_submenu_strings)
15839 (find_and_call_menu_selection): Treat NS as X and NT.
15840 (find_and_return_menu_selection): New function, used for popup menus.
15841 * nsgui.h:
15842 * nsterm.h:
15843 * nsfns.m:
15844 * nsimage.m:
15845 * nsmenu.m:
15846 * nsselect.m:
15847 * nsterm.m: New files.
15848 * process.c (wait_reading_process_output): Under NS, call ns_select()
15849 instead of plain select().
15850 * syntax.c (char_quoted): Under NS, avoid a crash when called near
15851 beginning of buffer.
15852 * sysselect.h (init_process): Rename when compiling under Cocoa to
15853 avoid name conflict.
15854 * termhooks.h (display_info): Add ns_display_info to union.
15855 * terminal.c (Fterminal_live_p): Add ns to terminal types.
15856 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
15857 COCOA environment.
15858 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
15859 unexec() signature. (Note, this will dump, but the resulting file
15860 crashes; unexosx is used instead; keeping around for reference and
15861 possible aid in getting dump working under GNUstep.)
15862 * w32gui.h (button_type, widget_value): Remove definitions (now in
15863 keyboard.h).
15864 * window.c: Include nsterm.h when compiling under NS.
15865 * xdisp.c (includes): Include nsterm.h when compiling under NS.
15866 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
15867 other GUI windowing systems.
15868 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
15869 GTK.
15870 (x_consider_frame_title): Under NS, set icon type and frame
15871 modified-state indicator; use ns_set_name_as_filename() when using
15872 formatted title.
15873 (update_window_cursor): Make public when compiling under NS.
15874 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
15875 (hourglass_atimer, Vhourglass_delay
15876 * xfaces.c (header section, init_frame_faces, clear_font_table)
15877 (defined_color, unload_color, x_face_list_fonts)
15878 (prepare_face_for_display): Add NS support parallel to other GUIs.
15879 Emulate GCs like other non-X GUIs.
15880 (split_font_name): Don't lowercase font name under NS.
15881 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
15882 under NS.
15883 * s/darwin.h: Add support for compilation under NS.
15884
15885 2008-07-15 Jason Rumney <jasonr@gnu.org>
15886
15887 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
15888 (w32_show_hourglass): Rename from show_hourglass.
15889 (w32_hide_hourglass): Rename from hide_hourglass.
15890 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
15891 (Vhourglass_delay): Declare extern.
15892 (hourglass_started): Remove.
15893
15894 * xdisp.c (Vhourglass_delay): Remove static.
15895 (hourglass_started, start_hourglass, cancel_hourglass):
15896 Don't include these versions on WINDOWSNT.
15897
15898 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15899
15900 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
15901 variables (formerly in xfns.c).
15902 (show_hourglass, hide_hourglass): New prototypes (same).
15903 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
15904 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
15905 in xfns.c).
15906 (syms_of_xdisp): Declare/initialize display-hourglass,
15907 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
15908 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
15909 formerly in xfns.c.
15910 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15911 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15912 (start_hourglass, cancel_hourglass): Remove.
15913 (show_hourglass, hide_hourglass): Remove prototypes and static
15914 modifiers.
15915 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
15916 hourglass_atimer, hourglass_shown_p declaration/initialization.
15917 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15918 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15919 (start_hourglass, cancel_hourglass): Remove.
15920 (show_hourglass, hide_hourglass): Remove prototypes and static
15921 modifiers.
15922 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
15923 hourglass_atimer, hourglass_shown_p declaration/initialization.
15924 * w32fns.c (display_hourglass_p, Vhourglass_delay)
15925 (DEFAULT_HOURGLASS_DELAY): Remove.
15926 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
15927 hourglass_shown_p declaration/initialization.
15928
15929 2008-07-14 Jason Rumney <jasonr@gnu.org>
15930
15931 * w32fns.c (w32_get_arg): Remove wrapper function.
15932 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
15933 directly.
15934 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
15935
15936 2008-07-14 Kenichi Handa <handa@m17n.org>
15937
15938 * xfont.c (xfont_open): Add workaround for X's bug.
15939
15940 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15941
15942 * fontset.c: Include <stdio.h> unconditionally.
15943
15944 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
15945
15946 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
15947 for filtering.
15948
15949 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
15950
15951 * s/vms.h: Use __GNUC__ instead of _GNUC_.
15952
15953 * m/macppc.h:
15954 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
15955
15956 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
15957 (SPECIAL_EMACS_INT):
15958 * m/ia64.h (SPECIAL_EMACS_INT):
15959 * m/amdx86-64.h (SPECIAL_EMACS_INT):
15960 * s/gnu.h (NLIST_STRUCT):
15961 * s/aix4-2.h (X11R5_INHIBIT_I18N):
15962 * s/gnu-linux.h (LINUX):
15963 * s/msdos.h (HAVE_FACES):
15964 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15965
15966 * systty.h:
15967 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15968 anymore.
15969
15970 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
15971
15972 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
15973 always defined as int.
15974
15975 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15976 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15977 * s/gnu-linux.h (HAVE_WAIT_HEADER):
15978 * s/freebsd.h (HAVE_WAIT_HEADER):
15979 * s/bsd-common.h (HAVE_UNION_WAIT):
15980 * s/aix4-2.h (HAVE_WAIT_HEADER):
15981 * m/mips.h (HAVE_UNION_WAIT):
15982 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15983 (COFF, static): Do not define, they are undefined later in the file.
15984
15985 * process.c (update_status): Don't use a union.
15986 (status_convert):
15987 (sigchld_handler): Use int instead of WAITTYPE.
15988
15989 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
15990
15991 * indent.c (Fvertical_motion): Restore hscroll before moving to
15992 goal column.
15993
15994 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15995
15996 * lisp.h: Remove left over code.
15997
15998 2008-07-11 Andreas Schwab <schwab@suse.de>
15999
16000 * lisp.h: Fix logic in last change.
16001
16002 * menu.h: New file.
16003 * menu.c: Include it.
16004 * xmenu.c: Likewise.
16005 * Makefile.in: Update dependencies.
16006
16007 2008-07-11 Kenichi Handa <handa@m17n.org>
16008
16009 * fontset.c (fontset_from_font): Cancel the previous change.
16010
16011 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
16012
16013 * lisp.h:
16014 * w32heap.c:
16015 * emacs.c:
16016 * alloc.c: Replace all references of NO_UNION_TYPE with
16017 USE_LISP_UNION_TYPE.
16018
16019 * m/xtensa.h (NO_UNION_TYPE):
16020 * m/vax.h (NO_UNION_TYPE):
16021 * m/template.h (NO_UNION_TYPE):
16022 * m/sparc.h (NO_UNION_TYPE):
16023 * m/mips.h (NO_UNION_TYPE):
16024 * m/macppc.h (NO_UNION_TYPE):
16025 * m/m68k.h (NO_UNION_TYPE):
16026 * m/iris4d.h (NO_UNION_TYPE):
16027 * m/intel386.h (NO_UNION_TYPE):
16028 * m/ibms390x.h (NO_UNION_TYPE):
16029 * m/ibms390.h (NO_UNION_TYPE):
16030 * m/ibmrs6000.h (NO_UNION_TYPE):
16031 * m/ia64.h (NO_UNION_TYPE):
16032 * m/hp800.h (NO_UNION_TYPE):
16033 * m/arm.h (NO_UNION_TYPE):
16034 * m/amdx86-64.h (NO_UNION_TYPE):
16035 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
16036 defining it the same.
16037
16038 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
16039
16040 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
16041
16042 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
16043
16044 * fileio.c:
16045 * sysdep.c:
16046 * systty.h:
16047 * m/ibmrs6000.h:
16048 * m/iris4d.h:
16049 * s/aix4-2.h:
16050 * s/freebsd.h:
16051 * s/gnu-linux.h:
16052 * s/hpux10-20.h:
16053 * s/hpux11.h:
16054 * s/netbsd.h:
16055 * s/sol2-3.h:
16056 * s/sol2-4.h:
16057 * s/sol2.h:
16058 * s/usg5-4.h:
16059 * s/vms.h: Remove references to unused variables.
16060
16061 2008-07-10 Andreas Schwab <schwab@suse.de>
16062
16063 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
16064 pattern before matching the generic family.
16065
16066 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
16067
16068 * unexec.c:
16069 * s/vms.h:
16070 * s/usg5-4-2.h:
16071 * s/sol2-5.h:
16072 * s/freebsd.h:
16073 * s/darwin.h: Remove dead code.
16074
16075 * m/template.h:
16076 * m/sparc.h:
16077 * m/mips.h:
16078 * m/m68k.h:
16079 * m/iris4d.h:
16080 * m/intel386.h:
16081 * m/ibms390x.h:
16082 * m/ibms390.h:
16083 * m/ia64.h:
16084 * m/hp800.h:
16085 * m/arm.h:
16086 * m/amdx86-64.h: Remove dead code and references to unused
16087 and compiler defined symbols.
16088
16089 * unexmips.c:
16090 * unexelf.c: Remove references to desupported systems.
16091
16092 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
16093
16094 * m/powermac.h: Remove boilerplate comments.
16095 (NO_REMAP): Remove unused definition.
16096
16097 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
16098 define them.
16099
16100 2008-07-10 Kenichi Handa <handa@m17n.org>
16101
16102 * xfont.c (xfont_open): Log the reason of failure.
16103
16104 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
16105
16106 * fontset.c (fontset_get_font_group):
16107 * font.c (font_check_otf): Specify argument types.
16108
16109 2008-07-09 Kenichi Handa <handa@m17n.org>
16110
16111 * coding.c (detect_coding_utf_8): Set detect_info->found only when
16112 non-ASCII char is found.
16113
16114 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
16115 (reorder_font_vector): Change the arg preferred_family to font.
16116 Prefer the spec matching with font.
16117 (fontset_get_font_group): New function.
16118 (fontset_find_font): Change the format of an element of a realized
16119 fontset. Use fontset_get_font_group.
16120 (fontset_font): Try the current fontset, the default fontset, the
16121 fallbacks of the current fontset, and the fallbacks of the default
16122 fontset in this order.
16123 (face_for_char): Delete the shortcut to use the current font.
16124 (fontset_from_font): Don't set fonts for Latin in the fontset.
16125
16126 * font.h (font_make_object, font_match_p): Adjust prototypes.
16127
16128 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
16129
16130 * font.c (font_make_object): New arg entity and pixelsize.
16131 (font_check_otf_features, font_check_otf): New functions.
16132 (font_match_p): Check :lang, :script, and :otf properties.
16133
16134 * xfont.c (xfont_open): Adjust it for the change of
16135 font_make_object.
16136 (xfont_text_extents): Fix initial setting of metrics.
16137
16138 * ftfont.c (struct ftfont_info): New member index, delete member
16139 fc_charset_idx. Make the member order compatible with struct
16140 xftfont_info.
16141 (fc_charset_table): Change charset names to registry names.
16142 (ftfont_pattern_entity): Delete the args registry and
16143 fc_charset_idx. Change the value of :font-entity property
16144 to (FONTNAME . INDEX). Always set :registry property to
16145 `iso10646-1'.
16146 (struct ftfont_cache_data): New struct.
16147 (ftfont_lookup_cache): New arg for_face.
16148 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
16149 (ftfont_driver): Set the member otf_capability.
16150 (ftfont_get_charset): Adjust it for the change of
16151 fc_charset_table.
16152 (OTF_TAG_SYM): New macro.
16153 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
16154 for the change of fc_charset_table.
16155 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
16156 ftfont_pattern_entity. Add FC_INDEX to objset.
16157 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
16158 and ftfont_pattern_entity.
16159 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
16160 font_make_object, struct ftfont_info.
16161 (ftfont_has_char): Use ftfont_get_fc_charset.
16162 (ftfont_otf_features, ftfont_otf_capability): New functions.
16163 (ftfont_shape): Use ftfont_get_otf.
16164 (ftfont_text_extents): Fix initial setting of metrics.
16165
16166 * xftfont.c (struct xftfont_info): New member ft_size. Make the
16167 member order compatible with struct ftfont_info.
16168 (xftfont_open): Add FC_CHARSET to the pattern.
16169 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
16170 properties if appropriate.
16171 (xftfont_close): Unlock the face.
16172 (xftfont_anchor_point, xftfont_shape): Deleted.
16173 (syms_of_xftfont): Don't set members anchor_point and shape of
16174 xftfont_driver.
16175
16176 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
16177 font_make_object.
16178
16179 * w32font.c (w32font_open): Adjust it for the change of
16180 font_make_object.
16181 (w32font_open_internal): Don't set properties of font_object here.
16182
16183 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
16184
16185 * macfns.c (x_create_tip_frame):
16186 * w32fns.c (x_create_tip_frame):
16187 * xfns.c (x_create_tip_frame): Pass parameter argument to
16188 face-set-after-frame-default.
16189
16190 * xfaces.c (Finternal_merge_in_global_face): Save merged
16191 attributes for the default face back into the face vector.
16192
16193 2008-07-08 Andreas Schwab <schwab@suse.de>
16194
16195 * fontset.h: Declare fontset_from_font. Don't declare
16196 new_fontset_from_font and fontset_from_font_name.
16197 * xterm.c: Include "fontset.h".
16198 * Makefile.in (xterm.o): Update dependencies.
16199
16200 2008-07-08 Glenn Morris <rgm@gnu.org>
16201
16202 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
16203 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
16204
16205 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
16206
16207 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
16208 (x_set_frame_parameters): Don't bind it.
16209
16210 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
16211
16212 * w32fns.c (map_w32_filename): Declare extern.
16213
16214 2008-07-07 Jason Rumney <jasonr@gnu.org>
16215
16216 * w32term.c (WS_EX_LAYERED): Define if not already.
16217
16218 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
16219
16220 * xfaces.c (set_font_frame_param): Don't try to set the font
16221 parameter if it is still unspecified in the lface.
16222
16223 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
16224
16225 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
16226 face if it didn't already exist.
16227
16228 * xdisp.c (try_window_id): Give up if word-wrapping is on.
16229
16230 2008-07-05 Andreas Schwab <schwab@suse.de>
16231
16232 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
16233
16234 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
16235
16236 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
16237 word-wrapping.
16238 (IT_DISPLAYING_WHITESPACE): New macro.
16239 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
16240 when word-wrapping. Simplify word-wrapping logic. Use correct
16241 pixel positions when saving copies of the iterator.
16242 (display_line): Use proper wrap point if the last character on a
16243 line was preceded by whitespace.
16244
16245 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
16246
16247 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
16248
16249 2008-07-04 Kenichi Handa <handa@m17n.org>
16250
16251 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
16252
16253 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
16254
16255 2008-07-02 Jason Rumney <jasonr@gnu.org>
16256
16257 * xfns.c (syms_of_xfns): Only define x-select-font when both
16258 HAVE_FREETYPE and USE_GTK.
16259
16260 * xdisp.c (next_element_from_display_vector): Move assignment out
16261 of if statement.
16262
16263 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
16264
16265 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
16266
16267 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
16268 (syms_of_fileio): Initialize and export them.
16269 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
16270
16271 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
16272 (Fsystem_move_file_to_trash): New function.
16273 (syms_of_w32fns): Export it to lisp.
16274
16275 2008-07-01 Jason Rumney <jasonr@gnu.org>
16276
16277 * w32font.c (w32font_text_extents): Don't count overhang as part
16278 of width.
16279
16280 2008-06-30 Miles Bader <miles@gnu.org>
16281
16282 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
16283 Add `avoid_cursor_p' field.
16284
16285 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
16286 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
16287 (append_glyph, append_composite_glyph, produce_image_glyph)
16288 (append_stretch_glyph): Initialize avoid_cursor_p.
16289 (get_it_property): Rename from `get_line_height_property'.
16290 (x_produce_glyphs): Use get_it_property.
16291 (handle_line_prefix, push_display_prop): New functions.
16292 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
16293 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
16294 New variables.
16295 (syms_of_xdisp): Initialize them.
16296
16297 2008-06-30 Kenichi Handa <handa@m17n.org>
16298
16299 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
16300 XftDefaultSubstitute (they are called in XftFontMatch).
16301 (xftfont_open): Fix args to ftfont_font_format.
16302
16303 * ftfont.c (fc_charset_table): New member lang.
16304 (ftfont_resolve_generic_family): New arg pattern.
16305 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
16306 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
16307 (ftfont_open): Fix args to ftfont_font_format.
16308 (ftfont_font_format): New arg filename.
16309
16310 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
16311
16312 * xfaces.c (Finternal_merge_in_global_face): If default face was
16313 modified, realize it again. Update the font face attribute.
16314
16315 2008-06-29 Jason Rumney <jasonr@gnu.org>
16316
16317 * w32term.c (x_set_frame_alpha): Fix logic.
16318
16319 2008-06-29 Kenichi Handa <handa@m17n.org>
16320
16321 * fontset.c (Finternal_char_font): Return font-object instead of
16322 font-name.
16323
16324 * composite.c (get_composition_id): Fix the width calculation for TAB.
16325
16326 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
16327
16328 * indent.c (Fvertical_motion): Properly handle float column arg.
16329
16330 2008-06-28 Jason Rumney <jasonr@gnu.org>
16331
16332 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
16333 (pfnSetLayeredWindowAttributes): New function pointer.
16334 (w32_initialize): Initialize it when supported.
16335 (x_set_frame_alpha): New function.
16336
16337 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
16338 (w32_frame_parm_handlers): Set alpha handler.
16339
16340 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
16341
16342 2008-06-27 Jason Rumney <jasonr@gnu.org>
16343
16344 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
16345 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
16346 (w32_to_x_charset, x_to_w32_charset)
16347 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16348 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16349 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16350 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16351 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16352 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16353 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
16354 (Qw32_charset_unicode): Remove.
16355 (syms_of_w32fns): Update for above changes.
16356
16357 * w32font.c (w32_to_x_charset, x_to_w32_charset)
16358 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16359 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16360 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16361 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16362 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16363 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16364 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
16365 (syms_of_w32font): Update for above changes.
16366
16367 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
16368
16369 * s/usg5-4.h: Fix previous change: keep the correct branch of a
16370 removed #if.
16371 (USG_SHARED_LIBRARIES): Remove duplicate definition.
16372
16373 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
16374 Eli Zaretskii <eliz@gnu.org>
16375
16376 * makefile.w32-in (LOCAL_FLAGS):
16377 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
16378
16379 * sysdep.c (_spawnlp, _getpid):
16380 Declare with explicit _cdecl instead of _CRTAPI1.
16381
16382 * editfns.c (Fget_internal_run_time):
16383 Check for WINDOWSNT with #ifdef, not #if.
16384
16385 2008-06-26 Jason Rumney <jasonr@gnu.org>
16386
16387 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
16388
16389 * w32term.c (x_draw_glyph_string_foreground)
16390 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
16391 Use FONT_HANDLE macro.
16392 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
16393
16394 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16395 (uniscribe_encode_char): Use FONT_HANDLE macro.
16396
16397 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
16398 (w32font_text_extents): Use precast w32_font.
16399 (w32font_close): Free cached metrics.
16400 (w32font_open_internal): Allocate space for name on stack.
16401
16402 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
16403
16404 * xdisp.c (extend_face_to_end_of_line): Fix last change.
16405
16406 2008-06-26 Jason Rumney <jasonr@gnu.org>
16407
16408 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
16409 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
16410
16411 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
16412
16413 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
16414
16415 2008-06-26 Jason Rumney <jasonr@gnu.org>
16416
16417 * w32bdf.c, w32bdf.h: Remove obsolete files.
16418
16419 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
16420
16421 * w32gui.h: Don't include w32bdf.h.
16422 (XCharStruct, enum w32_char_font_type, W32FontStruct):
16423 Remove obsolete font support.
16424
16425 * w32font.h (struct w32font_info): Remove compat_w32_font.
16426 Add hfont member.
16427 (FONT_COMPAT): Remove obsolete macro.
16428
16429 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
16430 (w32font_encode_char, w32font_text_extents): Use new hfont member.
16431 (w32font_open_internal): Remove compat code. Set new hfont member.
16432 (Fx_select_font): Use new hfont member.
16433
16434 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16435 (uniscribe_encode_char): Use new hfont member.
16436
16437 * w32term.c (x_draw_glyph_string_foreground)
16438 (x_draw_composite_glyph_string_foreground): Use new hfont member.
16439 (x_draw_glyph_string): Use metrics in w32font_info.
16440
16441 2008-06-26 Kenichi Handa <handa@m17n.org>
16442
16443 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
16444
16445 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
16446
16447 * unexnext.c:
16448 * m/ews4800.h:
16449 * m/hp9000s300.h:
16450 * m/ibm370aix.h:
16451 * m/mips-siemens.h:
16452 * m/ncr386.h:
16453 * m/next.h:
16454 * m/pmax.h:
16455 * m/powerpcle.h:
16456 * m/tandem-s2.h:
16457 * s/386bsd.h:
16458 * s/bsd386.h:
16459 * s/bsd4-1.h:
16460 * s/bsd4-2.h:
16461 * s/bsdos2-1.h:
16462 * s/bsdos2.h:
16463 * s/bsdos3.h:
16464 * s/bsdos4.h:
16465 * s/nextstep.h:
16466 * s/ultrix4-3.h:
16467 * s/usg5-0.h:
16468 * s/usg5-2-2.h:
16469 * s/usg5-2.h:
16470 * s/usg5-4-3.h:
16471 * s/ux4800.h:
16472 * s/uxpds.h:
16473 * s/uxpv.h: Remove support for obsolete systems.
16474 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
16475 Remove, insert contents in s/hpux10-20.h.
16476 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
16477 Remove, insert contents in s/aix4-2.h.
16478 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
16479 * s/bsd4-3.h: Rename to ...
16480 * s/bsd-common.h: ... this.
16481 * data.c:
16482 * doc.c:
16483 * ecrt0.c:
16484 * emacs.c:
16485 * fileio.c:
16486 * floatfns.c:
16487 * keyboard.c:
16488 * mem-limits.h:
16489 * print.c:
16490 * process.c:
16491 * sysdep.c:
16492 * syssignal.h:
16493 * systty.h:
16494 * syswait.h:
16495 * term.c:
16496 * unexec.c:
16497 * unexelf.c:
16498 * unexhp9k800.c:
16499 * m/hp800.h:
16500 * m/ibmrs6000.h:
16501 * m/mips.h:
16502 * m/vax.h:
16503 * s/darwin.h:
16504 * s/freebsd.h:
16505 * s/gnu.h:
16506 * s/ms-w32.h:
16507 * s/msdos.h:
16508 * s/netbsd.h:
16509 * s/template.h: Remove references to obsolete variables.
16510
16511 * Makefile.in: Add dependencies for all unexec files.
16512 (admindir): Remove unused variable.
16513 (UNEXEC_SRC): Remove references.
16514
16515 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
16516
16517 * xfns.c (x_default_font_parameter): If Xft is available, first
16518 try Monospace-12 for the default font.
16519
16520 2008-06-25 Jason Rumney <jasonr@gnu.org>
16521
16522 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
16523
16524 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
16525
16526 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
16527
16528 * buffer.c (syms_of_buffer): Remove default-word-wrap.
16529
16530 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
16531
16532 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
16533 <scroll-conservatively>: Fix typo in docstring.
16534
16535 * xselect.c (Fx_send_client_event): Doc fix.
16536
16537 2008-06-25 Kenichi Handa <handa@m17n.org>
16538
16539 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
16540
16541 * font.c (font_parse_fcname): Remove unused variables.
16542 (font_sort_entites): Delete the arg SPEC. Caller changed.
16543 Fix for the case of ! best_only.
16544 (font_delete_unmatched): Check DPI and AVGWIDTH too.
16545
16546 * lisp.h (Fstring_to_unibyte): EXFUN it.
16547
16548 * character.h (str_to_unibyte): Extern it.
16549
16550 * character.c (str_to_unibyte): New function.
16551
16552 * fns.c (Fstring_to_unibyte): New function.
16553 (syms_of_fns): Defsubr it.
16554
16555 2008-06-24 Kenichi Handa <handa@m17n.org>
16556
16557 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
16558 DPI too.
16559 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
16560
16561 2008-06-24 Andreas Schwab <schwab@suse.de>
16562
16563 * Makefile.in (${lispsource}loaddefs.el): Rename from
16564 ../lisp/loaddefs.el.
16565 (bootstrap-clean): Do what distclean does but don't remove
16566 Makefile.
16567 (distclean): Depend on bootstrap-clean and remove Makefile.
16568
16569 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
16570
16571 * buffer.h (struct buffer): New member word_wrap.
16572
16573 * buffer.c (syms_of_buffer): New variables default-word-wrap and
16574 word-wrap.
16575 (init_buffer_once): Initialize them.
16576
16577 * dispextern.h (struct it): Replace bool truncate_lines_p with a
16578 line_wrap enum possessing three possible values.
16579
16580 * termopts.h: Replace truncate_partial_width_windows with
16581 Vtruncate_partial_width_windows.
16582
16583 * dispnew.c (direct_output_for_insert): Avoid direct output when
16584 inserting a space with word wrap on.
16585
16586 * indent.c (compute_motion): Obey integer values of
16587 truncate-partial-width-windows.
16588
16589 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
16590 replacing truncate_partial_width_windows.
16591 (init_iterator): If Vtruncate_partial_width_windows is an integer,
16592 truncate only if the window width is below that integer.
16593 (start_display, resize_mini_window, produce_stretch_glyph)
16594 (display_string, move_it_in_display_line_to): Use line_wrap.
16595 (back_to_previous_visible_line_start, reseat_1):
16596 Reset string_from_display_prop_p.
16597 (display_line): Extend default face to end of line when wrapping.
16598
16599 2008-06-24 Kim F. Storm <storm@cua.dk>
16600
16601 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
16602 to wrap continued lines at word boundaries.
16603
16604 2008-06-24 Jason Rumney <jasonr@gnu.org>
16605
16606 * font.c (Ffont_face_attributes): Multiply pixel size before point
16607 conversion to avoid multiplying rounding error.
16608
16609 2008-06-23 Jason Rumney <jasonr@gnu.org>
16610
16611 * w32term.c (x_draw_glyph_string_background)
16612 (x_draw_glyph_string): Remove old bdf font code.
16613
16614 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
16615
16616 2008-06-22 Kenichi Handa <handa@m17n.org>
16617
16618 * font.c (font_find_for_lface): Try the adstyle specified in
16619 the property of LFACE_FONT of LFACE (if any).
16620
16621 2008-06-21 Seiji Zenitani <zenitani@mac.com>
16622 Ryo Yoshitake <ryo@shiftmode.net>
16623
16624 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
16625
16626 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
16627
16628 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
16629 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
16630 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
16631 (witness-emacs): Remove.
16632 (lisp, shortlisp): Move loaddefs.el earlier.
16633 (mostlyclean): Forget about witness-emacs.
16634
16635 2008-06-22 Glenn Morris <rgm@gnu.org>
16636
16637 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
16638 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
16639
16640 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16641
16642 * Makefile.in (PRECOMP): Remove.
16643 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
16644 (witness-emacs): Run `compile-first'.
16645 (.el.elc): Use the new compile-onefile target.
16646
16647 2008-06-21 Kenichi Handa <handa@m17n.org>
16648
16649 * xftfont.c (xftfont_open): Handle QCembolden only when
16650 FC_EMBOLDEN is defined.
16651
16652 2008-06-21 Andreas Schwab <schwab@suse.de>
16653
16654 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
16655 (.el.elc): Likewise.
16656
16657 2008-06-21 Miles Bader <miles@gnu.org>
16658
16659 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
16660 build dir, not the lisp source dir.
16661
16662 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16663
16664 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
16665 (bootstrapclean): Remove.
16666 (.el.elc): New rule.
16667 (PRECOMP): New var.
16668 (../lisp/subdirs.el): Remove.
16669 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
16670 (witness-emacs): New target.
16671 (mostlyclean): Remove witness-emacs as well.
16672 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
16673 Add witness-emacs dependency.
16674
16675 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
16676
16677 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
16678 defined by the font.
16679
16680 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16681
16682 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
16683 (bootstrap-clean): New target that keeps TAGS around.
16684 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
16685 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
16686
16687 2008-06-20 Jason Rumney <jasonr@gnu.org>
16688
16689 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
16690 Remove obsolete font code.
16691
16692 * w32font.c (font_matches_spec): Use csb bitfield from font signature
16693 to determine language support.
16694
16695 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16696
16697 * sysdep.c (cfsetspeed): New fun extracted from the code.
16698 (cfmakeraw): Move before first use.
16699
16700 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
16701
16702 * sysdep.c (cfmakeraw): Provide fallback implementation.
16703 (serial_configure): Provide fallback implementation of cfsetspeed.
16704
16705 2008-06-20 Kenichi Handa <handa@m17n.org>
16706
16707 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
16708 the pattern.
16709
16710 * fontset.c (fontset_from_font): Copy font_spec before changing
16711 the elements.
16712
16713 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
16714
16715 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16716
16717 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
16718 for explicit `font' parameters.
16719
16720 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
16721
16722 2008-06-19 Kenichi Handa <handa@m17n.org>
16723
16724 * frame.c: Include <ctype.h>.
16725 (x_set_font_backend): Allow spacing characters in the X resource
16726 for FontBackend.
16727
16728 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
16729
16730 * w32fns.c, xfns.c (Qfont_param): New var.
16731 (syms_of_w32fns): Initialize it.
16732 (x_default_font_parameter): Record explicit `font' into
16733 `font-parameter'.
16734
16735 2008-06-18 Kenichi Handa <handa@m17n.org>
16736
16737 * font.c (font_parse_xlfd): Fix previous change.
16738 (font_parse_fcname): Don't use :fc-unknown-spec.
16739 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
16740 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
16741 (font_add_log): Prepend the driver name to the resulting fonts.
16742
16743 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
16744 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
16745 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
16746
16747 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
16748 (QCembolden): New variables.
16749 (syms_of_xftfont): DEFSYM them.
16750 (xftfont_open): Call XftFontMatch. Don't trust the result of
16751 XftTextExtents8 if the pixel_size is less than 5.
16752
16753 2008-06-18 Andreas Schwab <schwab@suse.de>
16754
16755 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
16756 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
16757
16758 2008-06-18 Jason Rumney <jasonr@gnu.org>
16759
16760 * w32font.c (w32font_list, w32font_match): Add logging.
16761
16762 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
16763
16764 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
16765
16766 * font.c (font_parse_fcname): Store divider characters for
16767 unknown-spec list. For known key symbols, intern using correct
16768 symbol name.
16769
16770 2008-06-17 Kenichi Handa <handa@m17n.org>
16771
16772 * xfaces.c (realize_default_face): If the frame is not on window
16773 system, set the fontset of face to nil.
16774
16775 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16776
16777 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
16778
16779 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
16780
16781 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
16782 (build_font_name_from_vector): Delete externs.
16783
16784 * xfaces.c (struct font_name): Don't declare.
16785
16786 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
16787
16788 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
16789
16790 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
16791
16792 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
16793
16794 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
16795
16796 * font.c (Ffont_spec): Fix usage in docstring.
16797 (Ffont_face_attributes): Doc fix.
16798
16799 2008-06-16 Andreas Schwab <schwab@suse.de>
16800
16801 * font.c (Ffont_face_attributes): Fix definition.
16802
16803 2008-06-16 Jason Rumney <jasonr@gnu.org>
16804
16805 * font.h (font_style_symbolic_from_value): Remove.
16806
16807 * font.c (font_style_symbolic_from_value): Remove.
16808 (font_style_symbolic): Revert to pre 2008-06-13 version.
16809
16810 * w32font.c (w32_to_fc_weight): New function.
16811 (w32font_full_name, logfont_to_fcname): Use it.
16812
16813 2008-06-16 Kenichi Handa <handa@m17n.org>
16814
16815 * font.c (font_check_object): Delete it.
16816 (font_clear_cache): Check if a font-object is alive.
16817 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
16818 font-object to nil.
16819 (font_close_object): Don't check FONT_CLOSE_OBJECT.
16820 (font_at): Don't call font_check_object.
16821 (Ffont_get): Return a symbol for :weight, :slant, and :width.
16822
16823 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
16824
16825 * puresize.h (BASE_PURESIZE): Increase to 1230000.
16826
16827 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
16828
16829 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
16830
16831 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
16832
16833 * font.c (font_parse_fcname): Only one decimal point.
16834 (font_unparse_fcname): Handle data in family and foundry indices
16835 as symbols, not strings.
16836 (font_unparse_gtkname, Ffont_face_attributes): New functions.
16837
16838 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
16839
16840 * font.h (font_unparse_gtkname): Add prototype.
16841
16842 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16843
16844 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
16845
16846 2008-06-15 Andreas Schwab <schwab@suse.de>
16847
16848 * font.c (font_update_drivers): Fix crash when no drivers match.
16849
16850 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
16851
16852 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
16853 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
16854
16855 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
16856
16857 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
16858
16859 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
16860
16861 * process.c (Fserial_process_configure, Fprocess_send_eof):
16862 Use EQ to compare Lisp_Objects.
16863
16864 2008-06-13 Jason Rumney <jasonr@gnu.org>
16865
16866 * w32fns.c (Fw32_select_font): Remove old font API function.
16867
16868 * w32font.c (logfont_to_fcname): New function.
16869 (Fx_select_font): New font dialog function compatible with
16870 GTK/fontconfig version.
16871
16872 * font.c (font_style_symbolic_from_value): New function.
16873 (font_style_symbolic): Use it.
16874
16875 * font.h (font_style_symbolic_from_value): Declare new function.
16876
16877 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
16878
16879 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
16880 <font-width-table>: Fix typos in docstrings.
16881
16882 2008-06-13 Daniel Engeler <engeler@gmail.com>
16883
16884 These changes add serial port access.
16885 * process.c: Add HAVE_SERIAL.
16886 (Fdelete_process, Fprocess_status, Fset_process_buffer)
16887 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
16888 (list_processes_1, select_wrapper, Fstop_process)
16889 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
16890 (status_notify): Modify to handle serial processes.
16891 [HAVE_SERIAL] (Fserial_process_configure)
16892 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
16893 New functions.
16894 * process.h (struct Lisp_Process): Add `type'.
16895 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
16896 New functions.
16897 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
16898 serial ports.
16899 (serial_open, serial_configure): New functions.
16900 * w32.h: Add FILE_SERIAL.
16901 (struct _child_process): Add ovl_read, ovl_write.
16902
16903 2008-06-13 Kenichi Handa <handa@m17n.org>
16904
16905 * dispextern.h (enum lface_attribute_index): New member
16906 LFACE_FOUNDRY_INDEX.
16907
16908 * font.c (font_score): Delete arg alternate_families. Check only
16909 weight, slant, width, and size. Ignore the difference of alias
16910 style symbols.
16911 (font_sort_entites): Adjust for the above change. Reflect the
16912 order of font-driver to scores.
16913 (font_list_entities): Don't check alternate_familes here.
16914 (font_clear_prop): Handle foundry.
16915 (font_update_lface): Don't parse "foundry-family" form here.
16916 Handle FONT_FOUNDRY_INDEX.
16917 (font_find_for_lface): Likewise. Handle alternate families here.
16918 If registry is nil, try iso8859-1 and ascii-0.
16919 (font_open_for_lface): Pay attention to size in ENTITY.
16920 (font_open_by_name): Simplify by calling font_load_for_lface.
16921 (free_font_driver_list): Delete it.
16922 (font_update_drivers): Preserve the order of backends.
16923 (syms_of_font): Setting of sort_shift_bits adjusted for the change
16924 of font_score and font_sort_entites.
16925 (font_update_sort_order): Likewise.
16926
16927 * xfaces.c (LFACE_FOUNDRY): New macro.
16928 (check_lface_attrs): Check foundry.
16929 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
16930 (merge_face_vectors): Check foundry.
16931 (merge_face_ref): Likewise.
16932 (Finternal_set_lisp_face_attribute): Likewise.
16933 (x_update_menu_appearance): Likewise.
16934 (Finternal_get_lisp_face_attribute): Likewise.
16935 (lface_hash): Likewise.
16936 (lface_same_font_attributes_p): Likewise.
16937 (x_supports_face_attributes_p): Likewise.
16938 (tty_supports_face_attributes_p): Likewise.
16939 (Finternal_set_alternative_font_family_alist): Intern strings.
16940 (Finternal_set_alternative_font_registry_alist): Downcase strings.
16941 (realize_default_face): Set LFACE_FOUNDRY (lface).
16942
16943 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
16944 font-driver at first.
16945
16946 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
16947
16948 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16949
16950 * lread.c (Fload): Use xfree, not free on saved_doc_string.
16951
16952 2008-06-12 Jim Meyering <meyering@redhat.com>
16953
16954 Make unexec_free handle NULL the same way free does.
16955 * unexmacosx.c (unexec_free): Ignore a NULL argument.
16956
16957 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16958
16959 * character.h (CHAR_TO_BYTE_SAFE): New macro.
16960 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
16961 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
16962 (WEAK_ALIAS): Simplify.
16963 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16964 when searching a unibyte buffer.
16965
16966 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
16967
16968 * xfns.c (Fx_select_font): Rename from x-font-dialog.
16969
16970 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
16971
16972 * w32font.c: Include ctype.h.
16973
16974 2008-06-11 Jason Rumney <jasonr@gnu.org>
16975
16976 * w32font.c (w32font_encode_char): Detect missing glyphs that are
16977 misreported as space.
16978 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16979 as aliases for registry iso10646-1.
16980
16981 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16982
16983 * buffer.c (clone_per_buffer_values): Skip `name'.
16984
16985 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
16986
16987 * font.c (font_parse_fcname): Fix last change; accept decimal
16988 points in font size.
16989
16990 2008-06-10 Jason Rumney <jasonr@gnu.org>
16991
16992 * w32uniscribe.c (add_opentype_font_name_to_list):
16993 Skip non unicode fonts.
16994
16995 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
16996
16997 * xfns.c (Fx_font_dialog): New function.
16998
16999 * gtkutil.c (xg_dialog_response_cb): Rename from
17000 xg_file_response_callback.
17001 (pop_down_dialog): Rename from pop_down_file_dialog.
17002 (xg_get_file_name): Callers changed.
17003 (xg_get_font_name): New function.
17004
17005 * gtkutil.h (xg_get_font_name): Insert prototype.
17006
17007 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
17008
17009 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
17010 x_underline_minimum_display_offset.
17011 (syms_of_xdisp): Declare it here rather than in xterm.c.
17012 * dispextern.h (underline_minimum_offset): Declare it.
17013 * w32term.c (x_draw_glyph_string): Use it.
17014 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
17015 (syms_of_xterm): Don't declare it any more.
17016 (x_draw_glyph_string): Adjust to the new name.
17017
17018 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
17019
17020 * xterm.c (x_underline_minimum_display_offset): New var.
17021 (x_draw_glyph_string): Use it.
17022 (syms_of_xterm): Declare it.
17023
17024 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
17025
17026 * font.c (font_parse_fcname): Accept GTK-style font names too.
17027
17028 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
17029
17030 * dired.c (file_name_completion): Don't return t if the match is exact
17031 but with different capitalization.
17032 * minibuf.c (Ftry_completion): Simplify.
17033
17034 * window.c (Vwindow_point_insertion_type): New var.
17035 (set_window_buffer): Use it.
17036 (syms_of_window): Init and export it to Lisp.
17037
17038 2008-06-10 Kenichi Handa <handa@m17n.org>
17039
17040 * font.h (font_intern_prop): Prototype adjusted.
17041
17042 * font.c (font_intern_prop): New arg force_symbol.
17043 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
17044 Adjust for the change of font_intern_prop.
17045
17046 * ftfont.c (ftfont_pattern_entity):
17047 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
17048 (w32_registry):
17049 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
17050 the change of font_intern_prop.
17051
17052 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
17053
17054 * w32menu.c (digest_single_submenu): Declare extern.
17055
17056 2008-06-09 Jason Rumney <jasonr@gnu.org>
17057
17058 * w32term.c (x_make_frame_visible): Use alternate restore flags.
17059
17060 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
17061 (parse_single_submenu): Remove.
17062 (digest_single_submenu): Remove.
17063 (syms_of_w32menu): Don't initialise variables that have moved
17064 to menu.c.
17065 (set_frame_menubar): Sync with version in xmenu.c.
17066 (w32_menu_show): Sync with xmenu_show in xmenu.c.
17067
17068 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
17069 Make static again.
17070
17071 2008-06-09 Jason Rumney <jasonr@gnu.org>
17072
17073 Changes to w32 files related to the move of common menu code
17074 to menu.c on 2008-06-08 by Chong Yidong.
17075
17076 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
17077 defs to w32gui.h.
17078 (single_keymap_panes, push_menu_item, push_menu_pane):
17079 Make globally visible.
17080
17081 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
17082 (local_free, malloc_widget_value, free_widget_value)
17083 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
17084 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
17085 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
17086 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
17087 (menu_items, menu_items_allocated, menu_items_used)
17088 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
17089 (init_menu_items, finish_menu_items, discard_menu_items)
17090 (grow_menu_items, push_submenu_start, push_submenu_end)
17091 (push_left_right_boundary, push_menu_pane, push_menu_item)
17092 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
17093 (free_menubar_widget_tree_value, parse_single_submenu)
17094 (update_submenu_strings): Remove functions.
17095 (xmalloc_widget_value): Remove and declare extern.
17096
17097 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
17098 (OBJ1): Build it.
17099
17100 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
17101 (local_heap, local_alloc, local_free, malloc_widget_value)
17102 (free_widget_value): Define here.
17103
17104 2008-06-09 Kenichi Handa <handa@m17n.org>
17105
17106 * font.h (Qascii_0): Extern it.
17107
17108 * font.c (Qascii_0): New variable.
17109 (syms_of_font): DEFSYM it.
17110 (font_open_by_name): If the registry "iso8859-1" fails, try also
17111 "ascii-0".
17112
17113 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
17114
17115 2008-06-08 Kenichi Handa <handa@m17n.org>
17116
17117 * .gdbinit (xfont): New command.
17118
17119 2008-06-08 Andreas Schwab <schwab@suse.de>
17120
17121 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
17122 * Makefile.in (menu.o): Update dependencies.
17123
17124 * Makefile.in (obj): Always add menu.o.
17125 * emacs.c (main): Always call syms_of_menu.
17126 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
17127
17128 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
17129
17130 * Makefile.in: Compile menu.c.
17131
17132 * lisp.h: Declare syms_of_menu.
17133
17134 * emacs.c (main): Call syms_of_menu.
17135
17136 * keyboard.h: Relocate platform-independent menu definitions from
17137 xmenu.c.
17138
17139 * menu.c: New file. Relocate platform-independent menu
17140 definitions from xmenu.c. Suggested by Adrian Robert.
17141
17142 * xmenu.c: Remove platform-independent menu definitions.
17143 (menu_items, menu_items_inuse, menu_items_allocated)
17144 (menu_items_used, menu_items_n_panes)
17145 (menu_items_submenu_depth): Move to keyboard.h.
17146 (init_menu_items, finish_menu_items, unuse_menu_items)
17147 (discard_menu_items, restore_menu_items, save_menu_items)
17148 (grow_menu_items, push_submenu_start, push_submenu_end)
17149 (push_left_right_boundary, push_menu_pane, push_menu_item)
17150 (keymap_panes, single_keymap_panes, single_menu_item)
17151 (list_of_panes, list_of_items, find_and_call_menu_selection)
17152 (xmalloc_widget_value, free_menubar_widget_value_tree)
17153 (parse_single_submenu, digest_single_submenu)
17154 (update_submenu_strings): Move to menu.c.
17155
17156 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
17157
17158 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
17159
17160 2008-06-06 Miles Bader <miles@gnu.org>
17161
17162 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
17163 face, not frame default.
17164
17165 2008-06-05 Martin Rudalics <rudalics@gmx.at>
17166
17167 * window.c (pop_up_windows, pop_up_frames)
17168 (display_buffer_reuse_frames, Vpop_up_frame_function)
17169 (Vdisplay_buffer_function, Veven_window_heights)
17170 (Vspecial_display_buffer_names, Vspecial_display_regexps)
17171 (Vspecial_display_function, Vsame_window_buffer_names)
17172 (Vsame_window_regexps, split_height_threshold)
17173 (Vsplit_window_preferred_function): Move those vars to window.el.
17174 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
17175 (Fdisplay_buffer): Move those functions to window.el.
17176 (syms_of_window): Remove corresponding declarations.
17177 (display_buffer): New function.
17178 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
17179 * dispnew.c (Flast_nonminibuf_frame): New function.
17180 * buffer.c (Fpop_to_buffer): Move to window.el.
17181
17182 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
17183
17184 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
17185
17186 2008-06-05 Kenichi Handa <handa@m17n.org>
17187
17188 * coding.c (detect_coding): Fix previous change.
17189 (detect_coding_system): Likewise.
17190
17191 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
17192
17193 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
17194
17195 * keymap.c (Vminibuffer_local_filename_must_match_map):
17196 Rename from Vminibuffer_local_must_match_filename_map.
17197 (syms_of_keymap):
17198 * minibuf.c (Fcompleting_read): Adjust accordingly.
17199 * commands.h: Rename declaration as well.
17200
17201 2008-06-05 Kenichi Handa <handa@m17n.org>
17202
17203 * font.c (Ffont_spec): Don't use font_parse_family_registry for
17204 family name.
17205 (Ffont_put): Likewise.
17206
17207 * fontset.c (fontset_find_font): Call font_open_for_lface with the
17208 current font-spec.
17209
17210 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
17211 is unspecified.
17212
17213 * xfaces.c (realize_x_face): If the font-related face attributes
17214 are the same as those of default face, realize a new fontset from
17215 default->fontset.
17216 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
17217
17218 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
17219
17220 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
17221 (move_it_in_display_line): New wrapper.
17222
17223 * window.c (window_scroll_pixel_based_preserve_x)
17224 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
17225 (window_scroll_pixel_based, window_scroll_line_based):
17226 Use them to preserve column positions.
17227 (syms_of_window): Initialize them.
17228
17229 * indent.c (Fvertical_motion): Extend first arg to allow passing an
17230 (HPOS . VPOS) pair.
17231
17232 * dispextern.h (move_it_in_display_line): Declare.
17233
17234 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
17235
17236 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
17237 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
17238 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
17239
17240 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
17241
17242 * window.c (Fset_window_parameter): Doc fix.
17243 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
17244
17245 2008-06-04 Joakim Verona <joakim@verona.se>
17246
17247 * window.h (struct window): Add new member window_parameters.
17248
17249 * window.c (Fwindow_parameters, Fwindow_parameter)
17250 (Fset_window_parameter): New defuns.
17251 (syms_of_window): Defsubr the new defuns.
17252 (make_window): Initialize window_parameters to nil.
17253
17254 2008-06-04 John Paul Wallington <jpw@pobox.com>
17255
17256 * eval.c (Fdefmacro): Doc fix.
17257
17258 2008-06-04 Kenichi Handa <handa@m17n.org>
17259
17260 * coding.c (detect_coding): Fix handling of coding->head_ascii.
17261 Be sure to call setup_coding_system when we find a proper coding system.
17262 (detect_coding_system): Fix handling of coding->head_ascii.
17263
17264 2008-06-03 Andreas Schwab <schwab@suse.de>
17265
17266 * font.c (font_prop_validate_spacing): Fix last change.
17267
17268 2008-06-03 Kenichi Handa <handa@m17n.org>
17269
17270 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
17271 (font_parse_fcname): Fix handling of unknown key.
17272
17273 * xfont.c (xfont_list): Try an alias.
17274
17275 * charset.c (char_charset): Return NULL if the arg charset_list is
17276 specified and C doesn't belong to any of them.
17277
17278 2008-06-02 Chip Coldwell <coldwell@redhat.com>
17279
17280 * font.c (font_pixel_size): Don't take cdr of an integer.
17281
17282 2008-06-02 Jim Meyering <meyering@redhat.com>
17283
17284 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
17285 * alloc.c (xfree): Return right away for a NULL arg.
17286 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
17287 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
17288 * mac.c (create_apple_event_from_event_ref): Likewise.
17289 (create_apple_event_from_drag_ref, cfstring_create_normalized):
17290 Likewise.
17291 * doprnt.c (doprnt1): Likewise.
17292 * frame.c (frame): Likewise.
17293 * keyboard.c (wipe_kboard): Likewise.
17294 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
17295 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
17296 * term.c (tty_default_color_capabilities, maybe_fatal)
17297 (delete_tty): Likewise.
17298 * w16select.c (string): Likewise.
17299 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
17300 * w32bdf.c (w32_free_bdf_font): Likewise.
17301 * w32fns.c (w32_unload_font): Likewise.
17302 * w32font.c (w32font_close): Likewise.
17303 * window.c (size_window): Likewise.
17304 * xselect.c (receive_incremental_selection): Likewise.
17305 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
17306 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
17307 * w32.c (stat): Likewise.
17308
17309 Remove useless if-before-free tests.
17310 * editfns.c (Fset_time_zone_rule): Likewise.
17311 * lread.c (nosuffix): Likewise.
17312 * ralloc.c (get_bloc): Likewise.
17313 * regex.c (reg_free): Likewise.
17314 * xftfont.c (xftfont_open, xftfont_close): Likewise.
17315 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
17316 * xsmfns.c (smc_save_yourself_CB): Likewise.
17317
17318 2008-06-02 Kenichi Handa <handa@m17n.org>
17319
17320 * font.c (font_find_for_lface): Handle float font size.
17321 (font_open_for_lface): Likewise.
17322
17323 * xfaces.c (x_supports_face_attributes_p): Check face->font before
17324 comparing the properties.
17325
17326 2008-06-01 Jason Rumney <jasonr@gnu.org>
17327
17328 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
17329 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
17330 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
17331 Don't add empty script list.
17332 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
17333
17334 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
17335
17336 * Makefile.in (dot, dotdot): Remove, update users.
17337 ".." has been used elsewhere in the file for a long time.
17338 (LIBXT_STATIC): Remove conditional based on unused variable.
17339
17340 2008-06-01 Miles Bader <miles@gnu.org>
17341
17342 * xfaces.c (Vface_remapping_alist): New variable.
17343 (syms_of_xfaces): Initialize it.
17344 (enum named_merge_point_kind): New type.
17345 (struct named_merge_point): Add `named_merge_point_kind' field.
17346 (push_named_merge_point): Make cycle detection respect different
17347 named-merge-point kinds.
17348 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
17349 Remove face-name alias resolution.
17350 (lface_from_face_name): New definition using
17351 `lface_from_face_name_no_resolve'.
17352 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
17353 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
17354 (get_lface_attributes): New definition that layers face-remapping on
17355 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
17356 (lookup_basic_face): New function.
17357 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
17358 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
17359 `get_lface_attributes'.
17360 (face_at_buffer_position): Use `lookup_basic_face' to lookup
17361 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
17362 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
17363
17364 * xdisp.c (init_iterator): Pass base_face_id through
17365 `lookup_basic_face' when we actually use it as a face-id.
17366 (handle_single_display_prop): Use `lookup_basic_face' to lookup
17367 DEFAULT_FACE_ID.
17368
17369 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
17370 lookup the initial face-id.
17371
17372 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
17373
17374 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
17375
17376 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
17377 (Fremove_text_properties): Fix typos in docstrings.
17378
17379 2008-05-31 Kenichi Handa <handa@m17n.org>
17380
17381 * font.c (font_list_entities): Fix the car part of data to be
17382 stored in the cache.
17383
17384 * ftfont.c (ftfont_font_format): Don't use strcasestr.
17385
17386 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
17387
17388 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
17389 Add a `test' argument so another predicate than `equal' can be used.
17390 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
17391 (map_char_table): Remove unused vars `c' and `i'.
17392 * lisp.h (Foptimize_char_table): Adjust declaration.
17393 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
17394
17395 2008-05-30 Kenichi Handa <handa@m17n.org>
17396
17397 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
17398 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
17399 defined.
17400
17401 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
17402
17403 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17404 (Fmake_variable_frame_local): Disallow mixing buffer-local and
17405 frame-local settings for the same variable.
17406
17407 2008-05-30 Kenichi Handa <handa@m17n.org>
17408
17409 * fontset.c (Ffont_info): Move to font.c.
17410 (syms_of_fontset): Delete defsubr of Sfont_info.
17411
17412 * font.c (font_style_to_value, font_score): Delete casting of the
17413 args to xstcasecmp.
17414 (register_font_driver): Increment num_font_drivers only when
17415 registering the driver globally.
17416 (Ffont_info): Move from fontset.c. Handle a font object too.
17417 (syms_of_font): Defsubr Sfont_info.
17418
17419 2008-05-29 Kenichi Handa <handa@m17n.org>
17420
17421 * coding.h (enum define_coding_utf8_arg_index): New enum.
17422 (enum coding_attr_index): Change coding_attr_utf_16_bom to
17423 coding_attr_utf_bom.
17424 (enum utf_bom_type): Rename from utf_16_bom_type.
17425 (struct utf_16_spec): Adjust for the above change.
17426 (struct coding_system): Add utf_8_bom in `spec' union.
17427
17428 * coding.c (CODING_UTF_8_BOM): New macro.
17429 (enum coding_category): Delete coding_category_utf_8, add
17430 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
17431 coding_category_utf_8_sig.
17432 (CATEGORY_MASK_UTF_8): Delete it.
17433 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
17434 (CATEGORY_MASK_UTF_8_SIG): New macros.
17435 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
17436 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
17437 CATEGORY_MASK_UTF_8_SIG.
17438 (CATEGORY_MASK_UTF_8): New macro.
17439 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
17440 (detect_coding_utf_8): Check BOM.
17441 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
17442 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
17443 (encode_coding_utf_16): Likewise.
17444 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
17445 (detect_coding, detect_coding_system): Handle utf-8-auto.
17446 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
17447 (syms_of_coding): Fix setting up of Vcoding_category_table.
17448
17449 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
17450
17451 * process.c (Faccept_process_output): If `millisec' is non-nil,
17452 `seconds' default to 0.
17453 (wait_reading_process_output): Also return non-nil if we read output
17454 from a non-running process.
17455
17456 2008-05-29 Jason Rumney <jasonr@gnu.org>
17457
17458 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
17459 `raster' specified.
17460 (add_font_entity_to_list): Allow non-opentype truetype fonts back
17461 in the uniscribe backend, but disallow any font that has no
17462 unicode subrange support.
17463
17464 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
17465
17466 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
17467 Fix typos in docstrings.
17468
17469 2008-05-29 Kenichi Handa <handa@m17n.org>
17470
17471 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
17472 (Fx_family_fonts): Set frame correctly.
17473
17474 2008-05-28 Jason Rumney <jasonr@gnu.org>
17475
17476 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
17477
17478 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
17479
17480 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
17481 calling build_annotations.
17482
17483 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
17484
17485 * coding.c (Fdecode_coding_region, Fencode_coding_region)
17486 (Fencode_coding_string):
17487 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
17488 <latin-extra-code-table>: Fix typos in docstrings.
17489 (syms_of_coding) <coding-system-alist>: Doc fix.
17490 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
17491
17492 2008-05-28 Kenichi Handa <handa@m17n.org>
17493
17494 * fontset.c (Ffont_info): Don't call font_close_object.
17495
17496 * font.c (font_parse_family_registry): Use Ffont_put to validate
17497 foundry and family.
17498 (font_delete_unmatched): Don't check spacing.
17499 (font_list_entities): Add spacing to the spec to list fonts.
17500
17501 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
17502 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
17503
17504 * coding.c (encode_coding_raw_text): Fix previous change.
17505 (encode_coding_object): When the dst_object is a buffer and is
17506 different from src_object, move gap to PT.
17507
17508 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
17509
17510 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
17511
17512 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17513
17514 * coding.c (encode_coding_raw_text): Set coding->produced_char for
17515 all branches. Compute it differently.
17516
17517 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
17518
17519 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
17520
17521 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
17522 into "else if () ... else ...".
17523
17524 2008-05-27 Jason Rumney <jasonr@gnu.org>
17525
17526 * w32font.c (w32font_open_internal): Determine if glyph indices
17527 are likely to work here.
17528
17529 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
17530
17531 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
17532 draw overlap glyphs with appropriate highlighting.
17533
17534 2008-05-27 Kenichi Handa <handa@m17n.org>
17535
17536 * xfont.c (xfont_open): Fix calculation of font->average_width.
17537
17538 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17539
17540 * casefiddle.c (casify_object): Try to guess better whether the
17541 argument is a byte or a char.
17542
17543 2008-05-26 Andreas Schwab <schwab@suse.de>
17544
17545 * xselect.c (x_reply_selection_request): Properly handle format == 32.
17546 Always send multiples of format size.
17547
17548 * xterm.c (x_set_frame_alpha): Fix type mismatch.
17549
17550 2008-05-26 Jason Rumney <jasonr@gnu.org>
17551
17552 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
17553 (compute_metrics): Don't set failure if we just cleared the cache.
17554 (w32_weight_table): Remove unused variable.
17555 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
17556 backwards compatibility.
17557
17558 2008-05-25 Kenichi Handa <handa@m17n.org>
17559
17560 * w32term.c (x_draw_glyph_string):
17561 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
17562
17563 * xfaces.c: Delete unused function prototypes.
17564 (xstrlwr, font_frame): Delete them.
17565 (clear_face_cache): Delete unused variable.
17566
17567 * xftfont.c (xftfont_open): Delete unused variable.
17568 If underline_thickness is not 1, adjust underline_position.
17569
17570 * ftxfont.c (ftxfont_open): Delete unused variable.
17571
17572 * fontset.c (face_for_char): Optimize for the case of no charset
17573 property.
17574
17575 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
17576 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
17577 (otf_open, font_otf_capability, generate_otf_features)
17578 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17579 Comment out by surrounding "#if 0" and "#endif" for the moment.
17580 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
17581 (syms_of_font): Codes for accessing above commented out.
17582
17583 2008-05-24 Eli Zaretskii <eliz@gnu.org>
17584
17585 * w32proc.c: Include dispextern.h.
17586
17587 * w32.c: Include dispextern.h.
17588
17589 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
17590
17591 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
17592 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
17593 Fix typos in docstrings.
17594
17595 2008-05-23 Jason Rumney <jasonr@gnu.org>
17596
17597 * xsmfns.c: Remove includes that are already included by config.h.
17598
17599 2008-05-23 Kenichi Handa <handa@m17n.org>
17600
17601 * charset.c (Qemacs, charset_emacs): New variables.
17602 (char_charset): Fix for non-Unicode characters.
17603 (syms_of_charset): Define charset_emacs.
17604
17605 * w32term.c (x_draw_glyph_string): Be sure to update
17606 s->underline_thickness and s->underline_position. Be sure to draw
17607 underline within the current line area.
17608
17609 * xterm.c (x_draw_glyph_string): Be sure to update
17610 s->underline_thickness and s->underline_position. Be sure to draw
17611 underline within the current line area.
17612
17613 * fontset.c: Delete unused variables and add casting for char *
17614 throughout the file.
17615 (fontset_font): Try the fallback fonts of the current fontset
17616 before consulting the default fontset.
17617
17618 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
17619
17620 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
17621
17622 2008-05-22 Jason Rumney <jasonr@gnu.org>
17623
17624 * font.c: Don't include strings.h.
17625
17626 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
17627
17628 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
17629 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
17630 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
17631 to call xstrcasecmp.
17632
17633 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
17634
17635 * fontset.c (fs_query_fontset): Use xstrcasecmp.
17636
17637 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
17638
17639 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
17640
17641 2008-05-22 Kenichi Handa <handa@m17n.org>
17642
17643 * puresize.h (BASE_PURESIZE): Increase to 1220000.
17644
17645 * font.c (font_prop_validate_style): Adjust for the format
17646 change of font_style_table.
17647
17648 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
17649 two args.
17650
17651 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
17652 two args.
17653
17654 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
17655
17656 * minibuf.c (keys_of_minibuf): Delete.
17657 * lisp.h (keys_of_minibuf): Delete.
17658 * emacs.c (main): Don't call keys_of_minibuf.
17659
17660 2008-05-22 Kenichi Handa <handa@m17n.org>
17661
17662 * ftfont.c (ftfont_resolve_generic_family): Rename from
17663 ftfont_list_generic_family. Return a single family for each
17664 generic family.
17665 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
17666 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
17667 Call font_add_log.
17668 (ftfont_match): Call font_add_log.
17669
17670 * font.h (Ffont_xlfd_name): EXFUN adjusted.
17671 (FONT_DEBUG): Define it.
17672 (font_add_log): Extern it.
17673 (font_assert): Rename from xassert.
17674
17675 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
17676 (xfont_list_family): Call font_add_log.
17677 (xfont_match): Likewise.
17678 (memq_no_quit): Delete.
17679
17680 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
17681 call of Ffont_xlfd_name.
17682
17683 * xfaces.c (struct table_entry, slant_table, weight_table)
17684 (swidth_table): Move to font.c.
17685
17686 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
17687 xassert are changed to font_assert. Delete many unused variables.
17688 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
17689 New variables.
17690 (struct table_entry): Move from xfaces.c and modified.
17691 (weight_table, slant_table, width_table): Move from xfaces.c and
17692 contents adjusted for the change of struct table_entry.
17693 (font_style_to_value, font_style_symbolic): Adjust for the
17694 format change of font_style_table.
17695 (font_parse_family_registry): Don't overwrite existing foundry and
17696 family of font_spec.
17697 (font_score): Fix calculation of diff for sizes.
17698 (font_sort_entites): Call font_add_log.
17699 (font_delete_unmatched): Return a newly created list.
17700 (font_list_entities): Fix previous change. Call font_add_log.
17701 (font_matching_entity, font_open_entity, font_close_entity):
17702 Call font_add_log.
17703 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
17704 (Finternal_set_font_style_table): Delete.
17705 (BUILD_STYLE_TABLE): New macro.
17706 (build_style_table): New function.
17707 (Vfont_log, font_log_env_checked): New variables.
17708 (font_add_log): New function.
17709 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
17710 Declare Lisp variables "font-weight-table", "font-slant-table",
17711 "font-width-table", and "font-log". Initialize font_style_table.
17712
17713 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
17714
17715 * xterm.c (x_set_frame_alpha): Move declarations before statements.
17716
17717 2008-05-21 Seiji Zenitani <zenitani@mac.com>
17718 Ryo Yoshitake <ryo@shiftmode.net>
17719
17720 * frame.c (Qalpha): Add a new frame parameter `alpha'.
17721 (Vframe_alpha_lower_limit): New variable.
17722 (x_set_alpha): New function.
17723
17724 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
17725
17726 * xfns.c (x-create-frame, Qalpha):
17727 Initialize the frame parameter `alpha'.
17728 * xterm.c (OPAQUE, OPACITY): New.
17729 (x_set_frame_alpha): New function.
17730 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
17731
17732 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
17733 * w32fns.c (w32_frame_parm_handlers): Likewise.
17734
17735 2008-05-20 Jason Rumney <jasonr@gnu.org>
17736
17737 * w32font.c (add_font_entity_to_list): Don't add non-opentype
17738 truetype fonts to opentype list.
17739
17740 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
17741
17742 * fontset.c (Ffontset_info): Doc fix.
17743 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
17744 <ignore-relative-composition>: Fix typos in docstrings.
17745
17746 * font.c (syms-of-font) <font-encoding-alist>:
17747 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
17748 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
17749 (Ffont_otf_alternates): Doc fixes.
17750
17751 2008-05-20 Kenichi Handa <handa@m17n.org>
17752
17753 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
17754 font.h through out the file.
17755 (FONT_DRIVERS): Rename from FONTOBJ.
17756 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
17757 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
17758
17759 * emacs.c (main): Call syms_of_font unconditionally.
17760
17761 * font.h (find_font_encoding): Extern it.
17762
17763 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
17764 fontset.c.
17765 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
17766 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
17767 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
17768 only when HAVE_WINDOW_SYSTEM is defined.
17769 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
17770 when HAVE_WINDOW_SYSTEM is defined.
17771
17772 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
17773 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
17774
17775 * xfaces.c: Include font.h unconditionally.
17776 (merge_face_ref, merge_face_vectors)
17777 (Finternal_set_lisp_face_attribute): Cancel the previous change.
17778
17779 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
17780
17781 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
17782 indirect_variable.
17783 * eval.c (lisp_indirect_variable): New fun.
17784 (Fuser_variable_p): Use it.
17785
17786 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17787
17788 * lisp.h (indirect_variable):
17789 * data.c (indirect_variable, let_shadows_buffer_binding_p):
17790 Use Lisp_Symbol pointers rather than Lisp_Object.
17791 Adjust callers.
17792 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
17793 To this end, change calling-convention.
17794
17795 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
17796 if some non-hidden buffers are selected by string&pred.
17797
17798 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
17799
17800 * process.c (wait_reading_process_output): Always check status
17801 when in batch mode.
17802
17803 2008-05-19 Kenichi Handa <handa@m17n.org>
17804
17805 * font.c (font_list_entities): Fix handling of cache.
17806 (font_matching_entity): Likewise.
17807
17808 * ftfont.c (cs_iso8859_1): Delete.
17809 (ft_face_cache): New variable.
17810 (struct ftfont_info): New member fc_charset_idx.
17811 (ftfont_build_basic_charsets): Delete.
17812 (fc_charset_table): New variable.
17813 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
17814 . FC_CHARSET_IDX) as :font-entity property in the font entity.
17815 Callers changed.
17816 (ftfont_lookup_cache, ftfont_get_charset): New functions.
17817 (ftfont_spec_pattern): New argument fc_charset_idx.
17818 Check registry more rigidly. Change callers.
17819 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
17820 change of :font-entity property of the font.
17821
17822 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
17823 property of the font.
17824
17825 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
17826
17827 * coding.c (Fcoding_system_p): Rename argument to match docstring.
17828 (Funencodable_char_position, Fcheck_coding_systems_region)
17829 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
17830 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
17831 (Ffind_operation_coding_system, Fset_coding_system_priority)
17832 (Fcoding_system_eol_type): Doc fixes.
17833
17834 2008-05-17 Glenn Morris <rgm@gnu.org>
17835
17836 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
17837
17838 2008-05-16 Eli Zaretskii <eliz@gnu.org>
17839
17840 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
17841 and st_gid.
17842
17843 * frame.c (Fdelete_frame): Don't call font_update_drivers if
17844 HAVE_WINDOW_SYSTEM is not defined.
17845
17846 * xfaces.c (merge_face_ref, merge_face_vectors)
17847 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
17848 HAVE_WINDOW_SYSTEM is defined.
17849 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17850
17851 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
17852
17853 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
17854
17855 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17856
17857 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
17858
17859 2008-05-15 Kenichi Handa <handa@m17n.org>
17860
17861 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
17862 preference.
17863
17864 2008-05-15 Glenn Morris <rgm@gnu.org>
17865
17866 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17867
17868 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
17869
17870 * fns.c (init_fns): Don't initialize weak_hash_tables here.
17871 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
17872
17873 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
17874
17875 2008-05-15 Kenichi Handa <handa@m17n.org>
17876
17877 * ftfont.c (ftfont_list): Downcase family name to check generic
17878 families.
17879
17880 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
17881 font-spec for QCfont value.
17882
17883 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
17884 buffer. Check the return value of it.
17885
17886 2008-05-14 Jason Rumney <jasonr@gnu.org>
17887
17888 * w32term.c (w32_get_glyph_overhangs): Remove.
17889 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
17890
17891 2008-05-14 Kenichi Handa <handa@m17n.org>
17892
17893 * font.c (font_prop_validate): Make nil a valid value.
17894 (font_clear_cache): Check if the cached vector of entities is nil
17895 or not.
17896
17897 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17898
17899 * emacs.c (main_thread): Conditionalize on
17900 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17901 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
17902
17903 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
17904 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
17905 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17906
17907 2008-05-14 Kenichi Handa <handa@m17n.org>
17908
17909 * coding.c (detect_coding_iso_2022): Ignore a coding category that
17910 has no corresponding coding system.
17911
17912 2008-05-14 Jason Rumney <jasonr@gnu.org>
17913
17914 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
17915
17916 * w32font.h (w32font_open_internal): Update declaration.
17917
17918 * w32font.c (w32font_open_internal): Change last argument from
17919 w32font_info struct to font object. Fill in font object from
17920 font_entity. Get Outline metrics if possible. Use them to
17921 calculate underline position and thickness. Use xlfd name as name
17922 property. Don't set codepage.
17923 (w32font_open): Pass font_object to w32font_open_internal. Don't
17924 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
17925 (w32font_draw): Use s->font.
17926 (clear_cached_metrics): Don't clear non-existent blocks.
17927
17928 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
17929 font was not found.
17930 (x_draw_glyph_string): Use underline position and thickness from font.
17931
17932 * w32uniscribe.c (uniscribe_open): Pass font_object to
17933 w32font_open_internal.
17934
17935 2008-05-14 Kenichi Handa <handa@m17n.org>
17936
17937 These changes are to delete all legacy font-handling codes, and
17938 make Emacs use only font-backends.
17939
17940 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
17941 (frame.o, image.o, print.o): Depend on $(FONTSRC).
17942
17943 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
17944
17945 * charset.h (Vcharset_non_preferred_head)
17946 (Vcurrent_iso639_language): Extern them.
17947
17948 * charset.c (Vcharset_non_preferred_head): New variable.
17949 (Vcurrent_iso639_language): New variable.
17950 (syms_of_charset): Declare it as a Lisp variable.
17951 (char_charset): Don't check non preferred charsets. As a last
17952 resort, return charset_unicode.
17953 (Fset_charset_priority): Update Vcharset_non_preferred_head.
17954
17955 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
17956 conditionals. Don't check enable_font_backend. Delete all codes
17957 used only when USE_FONT_BACKEND is not defined.
17958
17959 * dispextern.h (struct glyph_string): Change type of `font' to
17960 `struct font *'.
17961 (struct glyph_string): New member underline_position and
17962 underline_thickness.
17963 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17964 (struct face): Change type of `font' to `struct font *'.
17965 Remove members `font_name', `font_info_id'.
17966 (per_char_metric, encode_char): Delete externs.
17967 (calc_pixel_width_or_height): Adjust the prototype.
17968
17969 * emacs.c (enable_font_backend): Delete extern.
17970 (main): Don't set enable_font_backend. Don't check the command
17971 line argument "-disable-font-backend".
17972
17973 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17974 (enum font_property_index): New members FONT_DPI_INDEX,
17975 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17976 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17977 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
17978 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17979 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17980 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17981 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17982 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17983 (struct font_spec, struct font_entity): New structs.
17984 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17985 (struct font): Many members from old "struct font_info" moved to
17986 here. Members font and entity deleted.
17987 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17988 the new font-related objects.
17989 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17990 (CHECK_FONT_GET_OBJECT): Likewise.
17991 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17992 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17993 (struct font_driver): New members case_sensitive anc check.
17994 Type of the member list and open changed.
17995 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17996 (font_symbolic_width, font_find_object, font_get_spec)
17997 (font_set_lface_from_name): Delete extern.
17998 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17999
18000 * font.c: Include <strings.h>.
18001 (enable_font_backend): Delete it.
18002 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
18003 (CHECK_VALIDATE_FONT_SPEC): Delete it.
18004 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
18005 (null_string): Delete it.
18006 (null_vector): Make it static.
18007 (font_family_alist): Delete it.
18008 (Qnormal): Extern it.
18009 (QCextra, QClanguage): Delete it.
18010 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
18011 (font_make_spec, font_make_entity, font_make_object)
18012 (font_intern_prop): Renamed from intern_downcase. Don't downcase
18013 the string. Callers changed.
18014 (font_pixel_size): Adjust for the format change of font-related
18015 objects.
18016 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
18017 (font_style_to_value, font_style_symbolic): New function.
18018 (build_font_family_alist): Delete it.
18019 (font_registry_charsets): Use Fassoc_string instead of
18020 assq_no_quit.
18021 (font_prop_validate_symbol): Don't return null_string.
18022 (font_prop_validate_style): Adjust for the change of
18023 style-related values in a font vector.
18024 (font_property_table): Delete entries for QClanguage and
18025 QCantialias, add entries for QCavgwidth.
18026 (get_font_prop_index): Delete the 2nd argument FROM.
18027 (font_prop_validate): Arguments changed.
18028 (font_put_extra): Adjust for the change of font-related objects.
18029 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
18030 (font_parse_fcname, font_unparse_fcname)
18031 (font_prepare_composition): Likewise.
18032 (font_parse_family_registry): Renamed from font_merge_old_spec.
18033 (otf_open): Delete the 1st arg entity.
18034 (font_otf_capability): Adjust for the above change.
18035 (font_score): New arg alternate_families. Adjusted for the change
18036 of font-related objects.
18037 (font_sort_entites): New arg best_only.
18038 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
18039 Delete them.
18040 (font_match_p): Check alternate families.
18041 (font_find_object): Delete it.
18042 (font_check_object): New function.
18043 (font_clear_cache): Adjust for the change of font-related objects.
18044 (font_delete_unmatched): New arg.
18045 (font_list_entities): Call font_driver->list with a spec that
18046 doesn't specify style-related properties.
18047 (font_matching_entity): Arguments changed. Caller changed.
18048 (font_open_entity): Adjust for the change of font-related objects.
18049 (font_close_object, font_has_char, font_encode_char)
18050 (font_get_name, font_get_spec): Likewise.
18051 (font_spec_from_name, font_clear_prop, font_update_lface):
18052 New functions.
18053 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
18054 (font_prepare_for_face, font_done_for_face, font_open_by_name)
18055 (font_at): Adjust for the change of font-related objects.
18056 (font_range): New function.
18057 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
18058 (Ffont_xlfd_name): Adjust for the change of font-related objects.
18059 (Fcopy_font_spec, Fmerge_font_spec): New function.
18060 (Ffont_family_list): Renamed from list-families.
18061 (Finternal_set_font_style_table): Arguments changed.
18062 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
18063 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
18064 change of font-related objects.
18065 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
18066
18067 * fontset.h (struct font_info): Delete it. Most members go to
18068 struct font.
18069 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
18070 (enum FONT_SPEC_INDEX): Delete it.
18071 (font_info, list_fonts_func, load_font_func, query_font_func)
18072 (set_frame_fontset_func, find_ccl_program_func)
18073 (get_font_repertory_func, new_fontset_from_font_name):
18074 Delete externs.
18075 (fontset_from_font_name): Extern it.
18076 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
18077 (FONT_INFO_FROM_FACE): Deleted.
18078 (face_for_font): Adjust prototype.
18079
18080 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
18081 conditionals. Don't check enable_font_backend. Delete all codes
18082 used only when USE_FONT_BACKEND is not defined.
18083 (get_font_info_func, list_font_func, load_font_func)
18084 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
18085 (get_font_repertory_func): Delete them.
18086 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
18087 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
18088 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
18089 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
18090 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
18091 (fontset_compare_rfontdef): New function.
18092 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
18093 rfont-defs by qsort. Adjusted for the change of font-group vector.
18094 (load_font_get_repertory): Deleted.
18095 (fontset_find_font): Use new macros to ref/set elements of
18096 font-def and rfont-def.
18097 (fontset_font): Fix the timing of remembering that no font for C.
18098 (free_face_fontset): Do nothing if the face has no fontset.
18099 (face_suitable_for_char_p): Use new macros to ref/set elements of
18100 rfont-def.
18101 (face_for_char): Likewise. Call face_for_char with font_object.
18102 (fs_load_font): Delete. Delete #pragma surrounding it.
18103 (fs_query_fontset): Use strcasecmp instead of strcmp.
18104 (generate_ascii_font_name): Adjust for the format change of
18105 font-spec.
18106 (Fset_fontset_font): Likewise. Use new macros to set elements of
18107 font-def.
18108 (Fnew_fontset): Use font_unparse_xlfd to generate
18109 FONTSET_ASCII (fontset).
18110 (new_fontset_from_font_name): Deleted.
18111 (fontset_from_font): Renamed from new_fontset_from_font. Check if
18112 a fontset is already created for the font. FIx updating of
18113 Vfontset_alias_alist.
18114 (fontset_ascii_font): Deleted.
18115 (Ffont_info): Adjust for the format change of font-spec.
18116 (Finternal_char_font): Likewise.
18117 (Ffontset_info): Likewise.
18118 (syms_of_fontset): Don't check load_font_func.
18119
18120 * fns.c (internal_equal): Handle PREV_FONT.
18121
18122 * frame.h: Delete USE_FONT_BACKEND conditional.
18123
18124 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
18125 conditionals. Don't check enable_font_backend. Delete all codes
18126 used only when USE_FONT_BACKEND is not defined.
18127 (x_set_font): Call x_new_font, not x_new_fontset2.
18128 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
18129 already set for the frame.
18130
18131 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
18132 Make a font-entity by font_make_entity. Use font_intern_prop instead
18133 of intern_downcase. Use FONT_SET_STYLE to set a style-related
18134 font property. If a font is scalable, set avgwidth property to 0.
18135 Set font-entity property by font_put_extra.
18136 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
18137 (ffont_driver): Adjust for the change of struct font_driver.
18138 (ftfont_spec_pattern): New function.
18139 (ftfont_list): Return a list, not vector.
18140 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
18141 (ftfont_list_family): Don't downcase names.
18142 (ftfont_free_entity): Deleted.
18143 (ftfont_open): Return a font-object. Adjusted for the change of
18144 struct font. Get underline_thickness and underline_position from
18145 font property. Don't update dpyinfo->smallest_font_height and
18146 dpyinfo->smallest_char_width.
18147 (ftfont_close): Don't free `struct font'.
18148 (ftfont_has_char): Adjust for the format change of font-entity.
18149 (ftfont_encode_char, ftfont_text_extents): Likewise.
18150
18151 * ftxfont.c (ftxfont_list): Return a list, not vector.
18152 (ftxfont_open): Return a font-object. Adjusted for the change of
18153 struct font. Get underline_thickness and underline_position from
18154 font property. Don't update dpyinfo->smallest_font_height and
18155 dpyinfo->smallest_char_width.
18156 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
18157 (ftxfont_draw): Adjust for the change of struct font.
18158
18159 * image.c (image_ascent): Don't include "charset.h".
18160 Include "character.h" and "font.h".
18161
18162 * lisp.h (enum pvec_type): New member PREV_FONT.
18163 (Fassoc_string): EXFUN it.
18164
18165 * print.c: Include font.h.
18166 (print_object): Handle font-related objects.
18167
18168 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
18169 conditionals. Don't check enable_font_backend. Delete all codes
18170 used only when USE_FONT_BACKEND is not defined.
18171 (handle_auto_composed_prop): Do nothing if it->f is not on a
18172 window system. Check how many following characters can be
18173 displayed by the same font.
18174 (calc_pixel_width_or_height): Type of the 4th arg is changed to
18175 'struct font *'.
18176 (get_char_face_and_encoding): Assign the whole encoding task to
18177 the `encode-char' method of a font driver.
18178 (fill_composite_glyph_string): Adjust for the change of `struct
18179 face' and `struct glyph_string'.
18180 (fill_glyph_string): Likewise.
18181 (get_per_char_metric): Arguments changed.
18182 (x_get_glyph_overhangs): Adjust for the change of `struct face'
18183 and `struct glyph_string'.
18184 (produce_stretch_glyph, calc_line_height_property)
18185 (x_produce_glyphs): Likewise.
18186
18187 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
18188 conditionals. Don't check enable_font_backend. Delete all codes
18189 used only when USE_FONT_BACKEND is not defined.
18190 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
18191 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
18192 (Qp): Extern them.
18193 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
18194 Deleted.
18195 (struct font_name): Deleted.
18196 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
18197 (compare_fonts_by_sort_order): New function.
18198 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
18199 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
18200 Deleted.
18201 (Fx_family_fonts): Use font_list_entities, and sort fonts by
18202 compare_fonts_by_sort_order.
18203 (Fx_font_family_list): Call Ffont_family_list.
18204 (face_numeric_value, face_numeric_weight, face_numeric_slant)
18205 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
18206 (face_symbolic_slant, face_symbolic_swidth)
18207 (split_font_name_into_vector, build_font_name_from_vector)
18208 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
18209 (font_rescale_ratio, split_font_name, build_font_name)
18210 (free_font_names, sort_fonts, x_face_list_fonts)
18211 (face_font_available_p, sorted_font_list, cmp_font_names)
18212 (font_list_1, concat_font_list, font_list, remove_duplicates):
18213 Deleted.
18214 (Fx_list_fonts): Use Ffont_list.
18215 (LFACE_AVGWIDTH): Deleted.
18216 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
18217 by FONTP.
18218 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
18219 (set_lface_from_font_name): Delete it.
18220 (set_lface_from_font): Renamed from
18221 set_lface_from_font_and_fontset. Caller changed. Don't set
18222 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
18223 for face.
18224 (merge_face_vectors): Copy font-spec if necessary.
18225 Clear properties of the font-spec if necessary.
18226 (merge_face_ref): Clear properties of the font-spec if necessary.
18227 (Finternal_set_lisp_face_attribute): Likewise.
18228 (set_font_frame_param): Use font_load_for_lface to load a
18229 font-object, and call Fmodify_frame_parameters with it.
18230 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
18231 font name by Ffont_xlfd_name.
18232 (Finternal_lisp_face_attribute_values): Don't check QCweight,
18233 QCslant, and QCwidth.
18234 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
18235 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
18236 Compare fonts by EQ.
18237 (lookup_non_ascii_face): Deleted.
18238 (face_for_font): The 2nd argument changed.
18239 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
18240 Check atomic font properties by case insensitive.
18241 (realize_non_ascii_face): Set face->overstrike correctly.
18242 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
18243 (dump_realized_face): Get font name from
18244 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
18245
18246 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
18247 conditionals. Don't check enable_font_backend. Delete all codes
18248 used only when USE_FONT_BACKEND is not defined.
18249 (xic_create_xfontset): Original code deleted and renamed from
18250 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
18251 (x_make_gc): Don't set GCFont in GCs.
18252 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
18253 opened by "fixed".
18254 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
18255 find_ccl_program_func, query_font_func, set_frame_fontset_func,
18256 get_font_repertory_func.
18257
18258 * xfont.c: Include <stdlib.h> and "ccl.h".
18259 (struct xfont_info): New structure.
18260 (xfont_query_font): Deleted.
18261 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
18262 moved from xterm.c.
18263 (xfont_driver): Adjust for the change of struct font_driver.
18264 (compare_font_names): New function.
18265 (xfont_list_pattern): Sort font names case insensitively. Make
18266 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
18267 (xfont_list): Return a list, not vector.
18268 (xfont_match): If the font doesn't have QCname property, generate
18269 a name from the other font properties.
18270 (xfont_open): Return a font-object. Adjusted for the change of
18271 struct font. Get underline_thickness and underline_position from
18272 font property. Don't update dpyinfo->smallest_font_height and
18273 dpyinfo->smallest_char_width.
18274 (xfont_close): Don't free struct font.
18275 (xfont_prepare_face): Adjust for the change of struct font.
18276 (xfont_done_face): Deleted.
18277 (xfont_has_char): Adjust for the change of struct font.
18278 (xfont_encode_char, xfont_draw): Likewise.
18279 (xfont_check): New function.
18280
18281 * xftfont.c (xftfont_list): Adjust for the change of `list'
18282 callback function.
18283 (xftfont_match): Adjust for the format change of font-entity.
18284 (xftfont_open): Adjust for the format change of font-entity and
18285 font-object. Adjusted for the change of struct font. Return a
18286 font-object. Don't update dpyinfo->smallest_font_height and
18287 dpyinfo->smallest_char_width.
18288 (xftfont_close): Block input while calling XftFontClose.
18289 (xftfont_prepare_face): Don't block input while calling
18290 xftfont_get_colors. Adjusted for the change of struct font.
18291 (xftfont_shape): Return value of error case fixed.
18292
18293 * xrdb.c (x_load_resources): Don't setup a fontset resource.
18294
18295 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
18296 conditionals.
18297 (FONT_WIDTH): Return (f)->max_width.
18298 (struct x_display_info): Delete member `font'.
18299 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
18300 (x_find_ccl_program, x_get_font_repertory): Delete externs.
18301 (struct x_output): Change type of `font' to `struct font *'.
18302
18303 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
18304 conditionals. Don't check enable_font_backend. Delete all codes
18305 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
18306 (x_per_char_metric, x_encode_char): Deleted.
18307 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
18308 (x_compute_glyph_string_overhangs): Adjust for the change of
18309 `struct face'.
18310 (x_draw_glyph_string_foreground)
18311 (x_draw_composite_glyph_string_foreground): Likewise.
18312 (x_draw_glyph_string): Likewise. Use font->underline_position and
18313 font->underline_thickness.
18314 (x_new_font): Renamed from x_new_fontset2.
18315 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
18316 (x_check_font): Call `check' method of a font driver.
18317 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
18318 (x_query_font, x_get_font_repertory): Deleted.
18319 (x_find_ccl_program): Renamed and moved to xfont.c.
18320 (x_redisplay_interface): Adjust for the change of `struct
18321 redisplay_interface'.
18322
18323 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
18324 conditionals. Don't check enable_font_backend. Delete all codes
18325 used only when USE_FONT_BACKEND is not defined. Surround non-used
18326 code by "#ifdef OLD_FONT" and "endif".
18327 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
18328
18329 * w32font.h (struct w32font_info): New member.
18330 (FONT_COMPAT): New macro.
18331 (w32font_open_internal): Prototype adjusted.
18332
18333 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
18334 OLD_FONT" and "endif".
18335
18336 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
18337 conditionals. Don't check enable_font_backend. Delete all codes
18338 used only when USE_FONT_BACKEND is not defined.
18339 (w32font_open): Return a font-object. Make a font-object by
18340 font_make_object. Adjusted for the change of struct w32font_info.
18341 (w32font_close): Don't free struct font. Adjusted for the change
18342 of struct w32font_info.
18343 (w32font_encode_char, w32font_text_extents, w32font_draw):
18344 Adjusted for the change of struct w32font_info.
18345 (w32font_draw): Likewise.
18346 (w32font_list_internal): Return a list, not vector.
18347 (w32font_open_internal): Change the 4th arg to font-object.
18348 Adjusted for the change of struct w32font_info and font-object format.
18349 (add_font_name_to_list): Don't downcase names.
18350 (w32_enumfont_pattern_entity): Make a font-entity by
18351 font_make_entity. Adjusted for the format change of font-entity.
18352 Use FONT_SET_STYLE to set a style-related font property. If a
18353 font is scalable, set avgwidth property to 0. Set font-entity
18354 property by font_put_extra.
18355 (font_matches_spec): Adjust for the format change of font-entity.
18356 (w32_weight_table, w32_decode_weight): New variables.
18357 (w32_encode_weight): New function.
18358 (fill_in_logfont): Adjust for the format change of font-spec.
18359 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
18360 weight value.
18361 (w32font_driver): Adjust for the change of struct font_driver.
18362
18363 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
18364 conditionals. Don't check enable_font_backend. Surround non-used
18365 code by "#ifdef OLD_FONT" and "endif".
18366 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
18367 (FONT_AVG_WIDTH): Adjust for the change of struct font.
18368
18369 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
18370 conditionals. Don't check enable_font_backend. Delete all codes
18371 used only when USE_FONT_BACKEND is not defined. Surround non-used
18372 code by "#ifdef OLD_FONT" and "endif".
18373
18374 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
18375 (uniscribe_open): Return value changed to font-object.
18376 Adjusted for the format change of font-object.
18377 (uniscribe_otf_capability): Adjust for the change of struct font.
18378 (add_opentype_font_name_to_list): Don't downcase names.
18379 (uniscribe_font_driver): Adjust for the change of struct
18380 font_driver.
18381
18382 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
18383
18384 * dispnew.c (update_frame_1): Check if tty output is still valid
18385 before flushing it.
18386
18387 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
18388
18389 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
18390 to Gtk+ menus.
18391
18392 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
18393
18394 * dired.c (file_name_completion): Tweak the code so as to always do it
18395 in a single pass. Tighten the scope of some variables.
18396
18397 * dired.c (Qdefault_directory): New var.
18398 (file_name_completion): Use it instead of Fexpand_file_name.
18399 (syms_of_dired): Initialize it.
18400
18401 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
18402
18403 * fileio.c (double_dollars): Remove dead code.
18404
18405 2008-05-10 Eli Zaretskii <eliz@gnu.org>
18406
18407 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
18408 Mention w32-get-true-file-attributes in doc string.
18409
18410 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
18411
18412 2008-05-09 Glenn Morris <rgm@gnu.org>
18413
18414 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
18415 2008-04-23.
18416
18417 2008-05-09 Eli Zaretskii <eliz@gnu.org>
18418
18419 Support for reporting owner and group of each file on MS-Windows:
18420 * dired.c (stat_uname, stat_gname): New functions, with special
18421 implementation for w32.
18422 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
18423
18424 * w32.c: Rename the_passwd_* to dflt_passwd_*.
18425 (dflt_group_name): New static variable.
18426 (dflt_group): Rename from the_group.
18427 (init_user_info): Init dflt_group fields. Get user's group name
18428 from LookupAccountSid.
18429 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
18430 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
18431 New initialization states.
18432 (globals_of_w32): Initialize them to zero. Initialize the default
18433 group name to "None".
18434 (GetFileSecurity_Name): New global var, the name of the function
18435 to call for GetFileSecurity.
18436 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
18437 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
18438 (get_file_security, get_security_descriptor_owner)
18439 (get_security_descriptor_group, is_valid_sid)
18440 (get_file_security_desc, get_rid, get_name_and_id)
18441 (get_file_owner_and_group): New functions.
18442 (stat): Use get_file_security_desc and get_file_owner_and_group to
18443 report the owner and primary group of each file. Don't ignore the
18444 high 32 bits of file's size, now that st_size is 64-bit wide.
18445 Fix test when to get true file attributes.
18446 (init_user_info): Use get_rid instead of equivalent inline code.
18447 (fstat): Don't ignore the high 32 bits of file's size.
18448
18449 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
18450
18451 * image.c (png_load): Use correct bit-depth for setting background
18452 color.
18453
18454 2008-05-08 Eli Zaretskii <eliz@gnu.org>
18455
18456 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
18457 epa-hook.elc.
18458
18459 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
18460
18461 * font.c (Ffont_match_p): Don't use `iff' in docstring.
18462
18463 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
18464
18465 * macfns.c (Fx_create_frame): Make a copy of frame parameters
18466 because the original parameters are in pure storage now.
18467 (mac_window): Remove unused params. Update callers.
18468
18469 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
18470
18471 * lread.c (substitute_object_recurse): Use lower-level primitives.
18472 Don't signal errors when traversing sub-char-tables.
18473 Don't loop over all the possible characters when traversing char-tables.
18474
18475 * print.c (print_preprocess): Add sub-char-tables to the print-table,
18476 just like we do in print.c.
18477
18478 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
18479
18480 * minibuf.c (Ftry_completion): Remove code left over from when we used
18481 scmp instead of Fcompare_strings.
18482
18483 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
18484
18485 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
18486
18487 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18488
18489 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
18490 Create bitmap context in native byte order.
18491
18492 * macterm.c (XDrawLine)
18493 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
18494 context in native byte order.
18495
18496 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18497
18498 * config.in: Regenerate.
18499
18500 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
18501 New definitions for Image I/O support.
18502 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
18503 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
18504 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18505 (mac_data_provider_release_data, image_load_image_io)
18506 [USE_MAC_IMAGE_IO]: New functions.
18507 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
18508 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
18509 (init_image_func_pointer) [MAC_OSX]: Remove function.
18510 (image_load_quartz2d) [MAC_OSX]: Check availability of
18511 CGImageCreateWithPNGDataProvider at compile time.
18512 Use lowercase `false' for boolean constant.
18513 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
18514 Use image_load_image_io.
18515 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
18516 Don't check MyCGImageCreateWithPNGDataProvider.
18517 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
18518 Don't call init_image_func_pointer.
18519
18520 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
18521
18522 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
18523 Make variable non-static.
18524 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
18525 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18526
18527 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
18528 (RED_FROM_ULONG): Mask off higher bits.
18529 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
18530
18531 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
18532 Include AvailabilityMacros.h.
18533 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
18534 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
18535
18536 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
18537
18538 * chartab.c (Fset_char_table_range): If range is t, really set all
18539 chars to that value.
18540
18541 2008-05-03 Eli Zaretskii <eliz@gnu.org>
18542
18543 * dired.c (Ffile_attributes): Don't allow the device number become
18544 negative.
18545
18546 2008-05-02 Daiki Ueno <ueno@unixuser.org>
18547
18548 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
18549
18550 2008-05-02 Juri Linkov <juri@jurta.org>
18551
18552 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
18553 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
18554 DEFAULT argument as a list of default values in docstrings.
18555
18556 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
18557
18558 * puresize.h (BASE_PURESIZE): Increase to 1210000.
18559
18560 2008-05-01 Martin Rudalics <rudalics@gmx.at>
18561
18562 * dispnew.c (change_frame_size_1): Preserve small windows when
18563 shrinking frames by calling set_window_height|width with third
18564 arg 2.
18565
18566 * window.h (struct window): Replace field too_small_ok by field
18567 resize_proportionally.
18568
18569 * window.c (make_window): Initialize resize_proportionally.
18570 (enlarge_window): Temporarily set resize_proportionally to make
18571 sure that shrink_windows does scale the window proportionally.
18572 (shrink_windows): When window has resize_proportionally set try
18573 to shrink it proportionally by stealing from other windows.
18574 (struct saved_window, Fset_window_configuration)
18575 (compare_window_configurations): Handle resize_proportionally.
18576 (WINDOW_TOTAL_SIZE): New macro.
18577 (window_min_size, shrink_windows, size_window): Use it.
18578 (check_min_window_sizes): Remove. Invalid values of
18579 window-min-height|width are handled by window_min_size_2 now.
18580 (size_window, Fsplit_window, enlarge_window)
18581 (adjust_window_trailing_edge, grow_mini_window): Don't call
18582 check_min_window_sizes.
18583 (window_min_size_2, window_min_size_1, window_min_size):
18584 New argument safe_p for retrieving "safe" minimum sizes.
18585 (Fdisplay_buffer, Fsplit_window, enlarge_window)
18586 (adjust_window_trailing_edge, grow_mini_window):
18587 Adjust arguments of window_min_size... functions.
18588 (shrink_windows): Argument min_size removed. New argument
18589 safe_p allows shrinking windows to their safe minimum sizes.
18590 Calculate minimum size and decide whether a window shall be
18591 deleted for each window individually.
18592 (size_window): When nodelete_p equals 2, tell shrink_windows to
18593 delete windows only if their new minimum size is no more safe.
18594 (shrink_window_lowest_first): Call window_min_size_1 to make
18595 sure to preserve modeline of bottom-most window when resizing
18596 the minibuffer.
18597 (Fset_window_configuration, Fcurrent_window_configuration)
18598 (compare_window_configurations): Do not handle
18599 window-min-height|width any more.
18600 (syms_of_window): Clarify window-min-height|width doc-strings.
18601
18602 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
18603
18604 * dired.c (file_name_completion): Fix up the encoding/decoding issue
18605 some more. Copy some of the code from Ftry_completions.
18606 Remove special case code that dates back to initial revision when the
18607 slash was only added when necessary and that can't trigger nowadays.
18608
18609 2008-04-27 Kenichi Handa <handa@m17n.org>
18610
18611 * font.c (font_prop_validate): Signal `error' instead of `font'.
18612
18613 2008-04-29 Jason Rumney <jasonr@gnu.org>
18614
18615 * w32fns.c (Fw32_battery_status): New defun.
18616 (syms_of_w32fns): Defsubr it.
18617
18618 2008-04-28 Andreas Schwab <schwab@suse.de>
18619
18620 * dired.c (file_name_completion): Fix another mixing of encoded
18621 and decoded names.
18622
18623 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
18624
18625 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
18626
18627 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
18628
18629 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
18630
18631 2008-04-27 Andreas Schwab <schwab@suse.de>
18632
18633 * dired.c (file_name_completion): Fix inappropriate mixing of
18634 encoded and decoded names.
18635
18636 * xterm.c (XTread_socket): Fix use of uninitialized variable.
18637
18638 * puresize.h (BASE_PURESIZE): Increase to 1200000.
18639
18640 2008-04-26 Eli Zaretskii <eliz@gnu.org>
18641
18642 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
18643 2008-03-31, it's not needed anymore with `struct stat' definition
18644 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
18645 for the same reasons.
18646
18647 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
18648
18649 * m/sparc.h: Additional redefinitions for GNU/Linux.
18650
18651 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18652
18653 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
18654 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
18655 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
18656 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
18657 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18658 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
18659 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18660 Likewise.
18661
18662 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
18663 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
18664 (mac_ax_number_of_characters): Add externs.
18665 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18666 [USE_MAC_TSM]: Likewise.
18667 (mac_handle_text_input_event) [MAC_OSX]:
18668 Handle kEventTextInputOffsetToPos for no active input area case.
18669 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18670 (mac_handle_document_access_event)
18671 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
18672 (install_application_handler) [MAC_OSX]: Register handlers for
18673 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18674 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18675 Register mac_handle_document_access_event.
18676
18677 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
18678 Make functions non-static.
18679
18680 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
18681
18682 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
18683 (read_file_name_completion_ignore_case, insert_default_directory)
18684 (Qdefault_directory): Move to minibuffer.el.
18685 (Fread_file_name): Call the new `read-file-name' instead.
18686
18687 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18688
18689 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
18690 Make function non-static.
18691 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
18692 Remove function.
18693 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18694 Move to mactoolbox.c.
18695 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
18696
18697 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
18698 (mac_rect_make): New macro.
18699
18700 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
18701 instead of float.
18702 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18703 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
18704 (XSetBackground) [USE_CG_DRAWING]: Likewise.
18705 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
18706 CGRectMake.
18707 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18708 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
18709 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
18710 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18711 instead of WindowRef in argument type.
18712 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
18713 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
18714 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
18715 instead of DISPLAY. All uses changed.
18716 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
18717 (x_calc_absolute_position): Simplify so as not to use
18718 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
18719
18720 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18721 instead of WindowRef in argument type.
18722 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
18723 [TARGET_API_MAC_CARBON]: Remove externs.
18724 (create_apple_event, mac_event_parameters_to_lisp)
18725 [TARGET_API_MAC_CARBON]: Add externs.
18726
18727 * mactoolbox.c (Vmac_ts_script_language_on_focus)
18728 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
18729 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
18730 is clicked.
18731 (x_activate_menubar): Remove extern for saved_menu_event_location.
18732 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18733 Move from mac.c.
18734
18735 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18736
18737 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
18738 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
18739
18740 2008-04-23 Jason Rumney <jasonr@gnu.org>
18741
18742 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
18743 attributes only for local files.
18744
18745 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
18746 default to Qlocal.
18747
18748 2008-04-22 Juri Linkov <juri@jurta.org>
18749
18750 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
18751 read-buffer-to-switch instead of using the letter "B".
18752
18753 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
18754
18755 * fileio.c (Qdefault_directory): New variable.
18756 (Fread_file_name): Use it to pass `dir' to the completion functions.
18757
18758 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
18759
18760 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
18761
18762 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
18763
18764 * keyboard.c (Vpre_help_message): Remove.
18765 (show_help_echo): Remove default C code.
18766
18767 * dired.c (directory_files_internal, file_name_completion):
18768 Only call ENCODE_FILE if the string is indeed decoded.
18769
18770 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18771
18772 * Makefile.in (TOOLKIT_DEFINES): Remove.
18773 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
18774
18775 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18776
18777 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
18778 (mactoolbox.o): New target.
18779
18780 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
18781 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
18782
18783 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
18784 Use mac_set_frame_window_background instead of XSetWindowBackground.
18785 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
18786 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
18787 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
18788 instead of SetWindowTitleWithCFString.
18789 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
18790 Move function to mactoolbox.c.
18791 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
18792 Use mac_set_window_modified instead of SetWindowModified.
18793 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
18794 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
18795 (Fx_focus_frame): Use mac_front_non_floating_window instead of
18796 FrontNonFloatingWindow. Use mac_activate_window instead of
18797 ActivateWindow. Use mac_active_non_floating_window instead of
18798 ActiveNonFloatingWindow.
18799 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
18800 Use mac_show_hourglass and mac_hide_hourglass.
18801 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
18802 instead of GetGlobalMouse.
18803 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
18804 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
18805 Use mac_bring_window_to_front instead of BringToFront.
18806 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
18807 mactoolbox.c.
18808 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
18809 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
18810 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
18811 mactoolbox.c.
18812
18813 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
18814 (XtPointer): Move typedef from macmenu.c.
18815 (enum button_type): Move enum from macmenu.c.
18816 (widget_value): Move typedef from macmenu.c.
18817 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
18818 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18819 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18820 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18821 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18822 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18823 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18824 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
18825 (Selection): Move typedef from macselect.c.
18826 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
18827 macterm.c.
18828 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
18829 (mac_is_window_collapsed, mac_bring_window_to_front)
18830 (mac_send_window_behind, mac_hide_window, mac_show_window)
18831 (mac_collapse_window, mac_front_non_floating_window)
18832 (mac_active_non_floating_window, mac_activate_window)
18833 (mac_move_window_structure, mac_move_window, mac_size_window)
18834 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
18835
18836 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
18837 (enum mac_menu_kind): Move enum to mactoolbox.c.
18838 (min_menu_id): Move variable to mactoolbox.c.
18839 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
18840 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
18841 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18842 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18843 [TARGET_API_MAC_CARBON]: Likewise.
18844 (XtPointer): Move typedef to macgui.h.
18845 (enum button_type): Move enum to macgui.h.
18846 (widget_value): Move typedef to macgui.h.
18847 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18848 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18849 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18850 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18851 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18852 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18853 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
18854 (popup_activated_flag): Make variable non-static.
18855 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
18856 (add_menu_item, fill_menu, dispose_menus):
18857 Move functions to mactoolbox.c.
18858 (restore_show_help_function, menu_target_item_handler)
18859 (install_menu_target_item_handler, mac_handle_dialog_event)
18860 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
18861 [TARGET_API_MAC_CARBON]: Likewise.
18862 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
18863 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18864 (find_and_call_menu_selection, name_is_separator): Make function
18865 non-static.
18866 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
18867 to mactoolbox.c.
18868 (set_frame_menubar): Don't call install_menu_quit_handler.
18869 (menu_item_selection): New variable.
18870 (mac_menu_show): Use create_and_show_popup_menu.
18871 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
18872 selection but set variable menu_item_selection. All uses changed.
18873 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
18874 Call install_menu_quit_handler. Move to mactoolbox.c.
18875
18876 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
18877 (Selection): Move typedef to macgui.h.
18878 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
18879 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
18880 Make variables non-static.
18881 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18882 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
18883 Make functions non-static.
18884 (Vmac_service_selection) [MAC_OSX]: Likewise.
18885 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
18886 (mac_valid_selection_target_p, mac_clear_selection)
18887 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18888 (mac_put_selection_value, mac_selection_has_target_p)
18889 (mac_get_selection_value, mac_get_selection_target_list)
18890 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
18891 Move functions to mactoolbox.c.
18892 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
18893 Likewise.
18894 (copy_scrap_flavor_data, mac_handle_service_event)
18895 (install_service_handler) [MAC_OSX]: Likewise.
18896 (syms_of_macselect) <Vmac_dnd_known_types>:
18897 Use mac_dnd_default_known_types.
18898
18899 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
18900 Move to mactoolbox.c.
18901 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
18902 (Fx_selection_owner_p): Add EXFUN.
18903 (install_window_handler, remove_window_handler, XSetWindowBackground):
18904 Remove externs.
18905 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
18906 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
18907 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
18908 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
18909 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
18910 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
18911 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
18912 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
18913 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
18914 (create_and_show_popup_menu, mac_get_selection_from_symbol)
18915 (mac_valid_selection_target_p, mac_clear_selection)
18916 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18917 (mac_put_selection_value, mac_selection_has_target_p)
18918 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
18919 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
18920 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
18921 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18922 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
18923 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18924 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
18925 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18926 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18927
18928 * mactoolbox.c: New file.
18929
18930 2008-04-18 Jason Rumney <jasonr@gnu.org>
18931
18932 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
18933
18934 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18935
18936 * character.c (Fmultibyte_char_to_unibyte):
18937 Return latin1 chars unchanged.
18938
18939 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
18940 relocated if it points to `name'.
18941
18942 2008-04-17 Kenichi Handa <handa@m17n.org>
18943
18944 * data.c (Faset): Allow setting a multibyte character in an
18945 ASCII-only unibyte string.
18946
18947 * lisp.h (STRING_SET_MULTIBYTE): New macro.
18948
18949 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
18950
18951 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
18952 done in config.h.
18953
18954 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
18955
18956 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
18957 (Fchar_direction): Add usage in the docstring.
18958
18959 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
18960
18961 * keyboard.c (read_key_sequence): Remove always-true checks.
18962
18963 2008-04-14 Jason Rumney <jasonr@gnu.org>
18964
18965 * w32font.c (w32font_open_internal): Set max_bounds.descent in
18966 compatibility struct, for better underline positioning.
18967
18968 2008-04-13 David Hansen <david.hansen@gmx.net>
18969
18970 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18971 string.
18972
18973 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
18974
18975 * m/hp800.h (XUINT, XSET): Remove.
18976
18977 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
18978
18979 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18980 previous change.
18981
18982 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
18983
18984 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18985 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18986
18987 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18988
18989 * keymap.h (map_keymap_canonical): Declare.
18990 * xmenu.c (single_keymap_panes): Use it.
18991
18992 2008-04-11 Glenn Morris <rgm@gnu.org>
18993
18994 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18995 set the target's value to that of the alias.
18996
18997 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18998
18999 * term.c (set_tty_color_mode): Left over typo.
19000
19001 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
19002
19003 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
19004 only after check for file name handler functions. Signal, when
19005 native functionality is not supported.
19006 (syms_of_fileio): Declare it unconditionally.
19007
19008 2008-04-10 Jason Rumney <jasonr@gnu.org>
19009
19010 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
19011 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
19012
19013 * w32.c (logon_network_drive): Also logon to remote drives that
19014 are mapped to drive letters.
19015
19016 2008-04-10 Glenn Morris <rgm@gnu.org>
19017
19018 * xdisp.c (truncate-partial-width-windows): Doc fix.
19019
19020 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
19021
19022 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
19023 Move functions to minibuffer.el.
19024 (syms_of_fileio): Don't declare them.
19025
19026 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
19027
19028 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
19029 (syms_of_minibuf): Remove its initialization.
19030
19031 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
19032
19033 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
19034
19035 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
19036
19037 2008-04-09 Jason Rumney <jasonr@gnu.org>
19038
19039 * makefile.w32-in (distclean): Delete makefile too.
19040 (maintainer-clean): New target.
19041
19042 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
19043
19044 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
19045 for new font backend and composite cases.
19046
19047 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
19048
19049 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
19050 Most of the code moved to run_timers.
19051 (do_pending_atimers): Call run_timers.
19052 (run_timers): New function.
19053
19054 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
19055 run atimers.
19056
19057 * process.c (wait_reading_process_output): The same as above.
19058
19059 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
19060
19061 * minibuf.c (last_exact_completion): Remove variable.
19062 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
19063 (complete_and_exit_1, complete_and_exit_2)
19064 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
19065 (Fdisplay_completion_list, display_completion_list_1)
19066 (Fminibuffer_completion_help, Fself_insert_and_exit)
19067 (Fexit_minibuffer, Fminibuffer_message): Move functions to
19068 minibuffer.el.
19069 (syms_of_minibuf): Remove corresponding initializations.
19070
19071 * keyboard.c (Qdeactivate_mark): New var.
19072 (command_loop_1): Use it to call `deactivate-mark'.
19073 (syms_of_keyboard): Initialize it.
19074
19075 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
19076 to another frame.
19077 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
19078 Don't call set_tty_color_mode.
19079 (store_frame_param): Reset previous_frame rather than call
19080 set_tty_color_mode.
19081 * term.c (set_tty_color_mode): Rewrite.
19082 * dispextern.h (set_tty_color_mode): New type.
19083 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
19084
19085 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
19086
19087 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
19088 for generic chars, which do not exist any more in emacs-unicode.
19089
19090 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
19091
19092 * coding.c (detect_coding_emacs_mule)
19093 (Ffind_operation_coding_system): Fix typo.
19094
19095 2008-04-08 Jason Rumney <jasonr@gnu.org>
19096
19097 * w32uniscribe.c (SNAME): Extract only symbol name.
19098
19099 * w32font.h (struct w32_metric_cache): New struct.
19100 (w32font_info): Use it.
19101 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
19102 (CACHE_BLOCKSIZE): New constants.
19103
19104 * w32font.c (Qja, Qko, Qzh): New symbols.
19105 (syms_of_w32font): Initialise them.
19106 (font_matches_spec): Use them to filter by language.
19107 (recompute_cached_metrics): Remove function.
19108 (compute_metrics, clear_cached_metrics): New functions.
19109 (w32font_encode_char): Use them to manage metric cache.
19110 (w32font_text_extents): Cache metrics for all glyphs on demand.
19111 Delay converting glyph indices to WORD until needed.
19112 (w32font_open_internal): Initialize metric cache to empty.
19113 (registry_to_w32_charset): Charset should always be a symbol.
19114 (fill_in_logfont, list_all_matching_fonts): Family should
19115 always be a symbol.
19116
19117 2008-04-06 Jason Rumney <jasonr@gnu.org>
19118
19119 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
19120 Give up if glyph indices not supported. Use uniscribe obtained
19121 ABC widths for individual metrics. Map glyph clusters back to
19122 characters using fClusterStart flag. Return number of glyphs
19123 produced, not chars processed.
19124 (uniscribe_shape): Map char at FROM to current glyph.
19125
19126 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19127
19128 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
19129 Use SetMenuItemHierarchicalMenu.
19130
19131 2008-04-05 Jason Rumney <jasonr@gnu.org>
19132
19133 * image.c (pbm_load): Allow color values up to 65535.
19134 Throw an error if max_color_idx is outside the supported range.
19135 Report an error when image size is invalid.
19136 Read two bytes at a time when raw images have max_color_idx above 255.
19137
19138 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
19139
19140 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
19141 append "CCL: Quitted" when the CCL program is quitted.
19142 (setup_ccl_program): Initialize ccl->quit_silently to zero.
19143
19144 * ccl.h (struct ccl_program): New member quit_silently.
19145
19146 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
19147
19148 * search.c (compile_pattern_1): Treat non-nil and non-string of
19149 search-spaces-regexp as nil.
19150
19151 * minibuf.c (Fassoc_string): Tweak docstring.
19152
19153 2008-04-05 Eli Zaretskii <eliz@gnu.org>
19154
19155 * dired.c (Ffile_attributes): Support inode numbers wider than 32
19156 bits. Remove ugly WINDOWSNT-specific kludge introduced on
19157 2008-03-14 to force inode be positive.
19158
19159 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
19160 _S_* ones, since we now use our own sys/stat.h.
19161 (stat, fstat): Don't mangle the inode number.
19162 (init_user_info): Don't restrict UID and GID to 0-60000 range.
19163
19164 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
19165
19166 * frame.h (struct frame): Give one more bit to `visible' since we use
19167 values larger than 1 to indicate obscured frames on ttys.
19168
19169 * keymap.c (Qkeymap_canonicalize): New var.
19170 (Fmap_keymap_internal): New fun.
19171 (describe_map): Use keymap-canonicalize.
19172
19173 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
19174 (Fundo_boundary): Set them.
19175 (syms_of_undo): Initialize them.
19176 (record_point): Use them instead of last_point_position*.
19177 (last_undo_buffer): Change type.
19178
19179 2008-04-04 Jason Rumney <jasonr@gnu.org>
19180
19181 * w32font.c (w32font_text_extents): Use font's ascent and descent.
19182 (recompute_cached_metrics): Don't set ascent and descent per char.
19183
19184 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
19185 (uniscribe_check_otf): Add GC protection before consing.
19186 Rearrange loop for counting features.
19187
19188 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
19189
19190 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
19191 buffer with byte-size of source buffer.
19192
19193 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
19194
19195 * callint.c (Fcall_interactively): Handle temporary region even
19196 when shift-select-mode is off.
19197
19198 2008-04-03 Jason Rumney <jasonr@gnu.org>
19199
19200 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
19201
19202 2008-04-03 Kenichi Handa <handa@m17n.org>
19203
19204 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
19205 (CATEGORY_MASK_UTF_16): Likewise.
19206 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
19207 binary file.
19208 (detect_coding): Add null-byte detection for a binary file.
19209 (detect_coding_system): Likewise.
19210
19211 2008-04-03 Jason Rumney <jasonr@gnu.org>
19212
19213 * w32uniscribe.c: New file.
19214
19215 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
19216
19217 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
19218
19219 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
19220 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
19221 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
19222 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
19223 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
19224 (Qphonetic): New symbols.
19225 (syms_of_w32font): Initialize them.
19226 (font_supported_scripts): Use them.
19227 (w32font_list_family): List all charsets.
19228 (w32font_text_extents, recompute_cached_metrics): Fix metric
19229 calculations.
19230 (w32_enumfont_pattern_entity): Make full_type a DWORD.
19231 Give opentype fonts their own format.
19232 (font_matches_spec): New arguments backend and logfont.
19233 Handle :otf spec for uniscribe backend.
19234 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
19235 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
19236
19237 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
19238 font backend.
19239 (globals_of_w32fns): Initialize uniscribe font backend.
19240
19241 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
19242 dependencies.
19243 (w32uniscribe.$(O)): New file to build.
19244 (FONT_OBJ): Include w32uniscribe.$(O).
19245 (LIBS): Add uniscribe libraries.
19246
19247 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
19248
19249 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
19250
19251 * callint.c (Vshift_select_mode): New var.
19252 (Finteractive): Document new ^ spec.
19253 (Fcall_interactively): Call handle-shift-selection if the ^ spec
19254 is present.
19255
19256 * keyboard.c (Vthis_command_keys_shift_translated): New var.
19257 (command_loop_1): Avoid running the direct display versions of
19258 forward-char and backward-char if shift-selection may occur.
19259 (read_key_sequence): Set Vthis_command_keys_shift_translated if
19260 shift-translation takes place.
19261
19262 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
19263 avoid clobbering by define-minor-mode.
19264
19265 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
19266 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
19267
19268 * syntax.c (Fforward_word): Add ^ interactive spec.
19269
19270 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
19271 (Fscroll_right): Add ^ interactive spec.
19272
19273 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
19274
19275 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
19276
19277 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
19278
19279 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
19280
19281 2008-03-31 Juri Linkov <juri@jurta.org>
19282
19283 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
19284
19285 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
19286
19287 * gtkutil.c (xg_set_geometry): Fix indentation.
19288 (xg_resize_outer_widget): Remove.
19289 (x_wm_size_hint_off): Fix indentation.
19290 (xg_frame_set_char_size): Call flush_and_sync after
19291 gtk_window_resize.
19292 (x_wm_set_size_hint): Pass NULL as geometry window to
19293 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
19294 Add menu bar and tool bar height to base height.
19295 (xg_update_frame_menubar, free_frame_menubar)
19296 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
19297 (update_frame_tool_bar, free_frame_tool_bar):
19298 Change xg_resize_outer_widget to xg_frame_set_char_size.
19299
19300 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
19301
19302 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
19303 (Fdbus_call_method): New parameter TIMEOUT.
19304 (dbus-send-signal): Optimize UNGCPRO call.
19305
19306 2008-03-29 Juri Linkov <juri@jurta.org>
19307
19308 * window.c (Fdisplay_buffer): Move call to
19309 Vsplit_window_preferred_function out of conditions that check
19310 if window is eligible for vertical splitting.
19311 When Vsplit_window_preferred_function is non-nil, call it and use
19312 its non-nil return value as window. Otherwise, continue doing
19313 vertical splitting using Fsplit_window with arg horflag=nil.
19314 (syms_of_window) <Vsplit_window_preferred_function>: Change the
19315 default value from `split-window' to nil.
19316
19317 2008-03-29 Juri Linkov <juri@jurta.org>
19318
19319 * callint.c (Fcall_interactively): Revert 2008-03-16 change
19320 for interactive code letters 'b' and 'B'.
19321
19322 2008-03-29 Eli Zaretskii <eliz@gnu.org>
19323
19324 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
19325 multibyte string.
19326
19327 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
19328
19329 * keyboard.c (pending_funcalls): New var.
19330 (timer_check): Run it.
19331 (syms_of_keyboard): Initialize it.
19332 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
19333 (Vdelete_terminal_functions): New vars.
19334 (syms_of_terminal): Initialize them.
19335 (Fdelete_terminal): Run delete-terminal-functions.
19336 * xdisp.c (safe_eval): Rewrite.
19337 (safe_call2): New fun.
19338 * frame.c (Qdelete_frame_functions): New var.
19339 (syms_of_frame): Initialize it.
19340 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
19341 * lisp.h (safe_call2, pending_funcalls): Declare.
19342
19343 2008-03-28 Andreas Schwab <schwab@suse.de>
19344
19345 * indent.c (Fmove_to_column): Move declaration before statements.
19346
19347 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
19348
19349 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
19350 (struct frame): Use bit fields for boolean vars.
19351
19352 * process.c (server_accept_connection): Simplify naming.
19353 (emacs_get_tty_pgrp): Use SDATA.
19354
19355 * coding.c (decode_coding_object): Fix last change.
19356
19357 2008-03-27 Jason Rumney <jasonr@gnu.org>
19358
19359 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
19360
19361 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
19362
19363 * charset.c (Fdefine_charset_internal): Change the way of
19364 registering charsets in Vcharset_order_list.
19365 (syms_of_charset): Make the charset `eight-bit' supplementary.
19366
19367 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
19368
19369 * regex.c (EXTEND_BUFFER): Change order of pointer addition
19370 operations, to avoid having the difference between pointers
19371 overflow.
19372
19373 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
19374
19375 * indent.c (check_display_width): New fun.
19376 (scan_for_column): Use it.
19377
19378 * data.c (syms_of_data): Mark most-positive-fixnum and
19379 most-negative-fixnum as constants.
19380
19381 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
19382
19383 * indent.c (scan_for_column): Extract from current_column_1.
19384 Merge with the same code from Fmove_to_column.
19385 (current_column_1, Fmove_to_column): Use it.
19386
19387 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
19388
19389 * keymap.c (map_keymap_internal): New fun.
19390 (map_keymap): Use it.
19391 (Fmap_keymap_internal): New fun.
19392 (Fmap_keymap): Remove left-out test from before make_save_value.
19393
19394 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
19395
19396 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
19397 Use XCAR/XCDR.
19398
19399 * process.h (struct Lisp_Process): Remove filter_multibyte.
19400 * process.c (QCfilter_multibyte): Remove.
19401 (setup_process_coding_systems): Don't use filter_multibyte.
19402 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
19403 (read_process_output): Don't adjust multibyteness to filter_multibyte.
19404 (Fset_process_filter_multibyte): Change the coding-system to
19405 approximate the previous behavior.
19406 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
19407 coding-system.
19408
19409 * coding.c (decode_coding_object): When not decoding into a buffer,
19410 obey the coding system's preference of (uni|multi)byte.
19411
19412 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
19413
19414 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
19415 every char is changed and has a different byte-length.
19416 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
19417 Fix int -> EMACS_INT.
19418
19419 2008-03-23 David Hansen <david.hansen@gmx.net>
19420
19421 * dbusbind.c (xd_read_message): Remove extra copying of message
19422 strings. Check for NULL `interface' or `member'.
19423
19424 2008-03-22 Eli Zaretskii <eliz@gnu.org>
19425
19426 * w32.c (readdir): If FindFirstFile/FindNextFile return in
19427 cFileName a file name that includes `?' characters, use the 8+3
19428 alias in cAlternateFileName instead.
19429
19430 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
19431
19432 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
19433
19434 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
19435
19436 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
19437 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
19438 work on current_buffer only instead (that was already the case
19439 for some of the code anyway).
19440 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
19441 (temp_set_point, temp_set_point_both): Use EMACS_INT.
19442 (SET_PT, SET_PT_BOTH): Adjust.
19443 * intervals.h (set_point, temp_set_point, set_point_both)
19444 (temp_set_point_both): Remove redundant declarations.
19445
19446 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
19447
19448 * fileio.c (Finsert_file_contents):
19449 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
19450 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
19451 when buffer != current_buffer anyway.
19452
19453 2008-03-20 Andreas Schwab <schwab@suse.de>
19454
19455 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
19456 as default.
19457
19458 2008-03-19 Jason Rumney <jasonr@gnu.org>
19459
19460 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
19461 (syms_of_w32fns): Initialize them.
19462 (HOURGLASS_ID): New constant.
19463 (x_window_to_frame): Don't check hourglass_window.
19464 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
19465 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
19466 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
19467 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
19468 Only change the cursor if hourglass is not active.
19469 (Fx_create_frame): Initialize frame's current_cursor.
19470 (hourglass_atimer): Remove.
19471 (hourglass_started): New function.
19472 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
19473 (show_hourglass): Adapt to w32, changing argument to frame.
19474
19475 * w32term.h (struct w32_output): Remove hourglass_window.
19476 Add current_cursor.
19477
19478 * eval.c (call_debugger, Fsignal):
19479 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
19480 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
19481 (Fexecute_extended_command, cancel_hourglass_unwind):
19482 * minibuf.c (read_minibuf):
19483 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
19484
19485 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
19486
19487 * window.c (run_funs): New fun.
19488 (run_window_configuration_change_hook): Use it to run the buffer-local
19489 and the global part of the hook.
19490
19491 * xdisp.c (format_mode_line_unwind_data): Add window argument.
19492 (unwind_format_mode_line): Restore selected window.
19493 (x_consider_frame_title, Fformat_mode_line): Set selected window.
19494
19495 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
19496
19497 * editfns.c (Fchar_equal): Check they are valid characters.
19498
19499 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
19500
19501 2008-03-17 Andreas Schwab <schwab@suse.de>
19502
19503 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
19504 against a charset.
19505
19506 * lisp.h (Fbuffer_list): Declare.
19507
19508 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
19509
19510 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
19511 handlebox_widget is != 0.
19512
19513 2008-03-16 Juri Linkov <juri@jurta.org>
19514
19515 * callint.c (Fcall_interactively): For interactive code letters
19516 'b' and 'B' put the buffer list into the list of default "future"
19517 values of the minibuffer.
19518
19519 2008-03-16 Andreas Schwab <schwab@suse.de>
19520
19521 * keyboard.c (read_key_sequence): Fix downcasing of letters with
19522 modifiers.
19523
19524 * regex.c (re_match_2_internal): Correct matching of a charset
19525 against latin-1 characters.
19526
19527 2008-03-16 Kenichi Handa <handa@m17n.org>
19528
19529 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
19530 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
19531 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
19532 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
19533 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
19534 CHAR_STRING_ADVANCE.
19535 (produce_chars): Fix for the case that the source and the
19536 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
19537 instead of CHAR_STRING_ADVANCE.
19538 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
19539 STRING_CHAR_ADVANCE.
19540
19541 2008-03-15 Andreas Schwab <schwab@suse.de>
19542
19543 * regex.c (re_match_2_internal): Correct matching of eight bit
19544 characters in unibyte strings.
19545
19546 2008-03-15 Martin Rudalics <rudalics@gmx.at>
19547
19548 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
19549 at end of range when it coincides with the end of the buffer.
19550
19551 2008-03-14 Eli Zaretskii <eliz@gnu.org>
19552
19553 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
19554
19555 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
19556
19557 2008-03-14 Jason Rumney <jasonr@gnu.org>
19558
19559 * editfns.c (initial_tz): New variable.
19560 (syms_of_editfns): Initialize it.
19561 (Fset_time_zone_rule): Set it when first called.
19562 Use it when TZSTRING is nil.
19563
19564 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
19565 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
19566 (monitor_from_point_fn, get_monitor_info_fn): New globals.
19567 (globals_of_w32fns): Initialize them.
19568 (compute_tip_xy): Use them to position tooltips.
19569
19570 2008-03-14 Glenn Morris <rgm@gnu.org>
19571
19572 * emacs.c (main): Revert previous change.
19573 (standard_args): Revert -internal-script back to -scriptload,
19574 and remove the long-option form.
19575
19576 2008-03-13 Glenn Morris <rgm@gnu.org>
19577
19578 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
19579 Remove option -enable-font-backend.
19580
19581 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
19582
19583 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
19584
19585 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
19586
19587 * xterm.c (x_connection_closed): For GTK: If this is the last
19588 terminal just exit without closing the display.
19589
19590 2008-03-11 Jason Rumney <jasonr@gnu.org>
19591
19592 * w32font.c (w32font_full_name): Use floor to round.
19593
19594 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19595
19596 * sound.c (alsa_configure): Declare vol at beginning of block.
19597
19598 * fontset.c (Ffontset_info): Remove extra semicolon.
19599
19600 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
19601
19602 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
19603 size of resulting string.
19604
19605 2008-03-10 Jason Rumney <jasonr@gnu.org>
19606
19607 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
19608
19609 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19610
19611 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
19612 Don't pretend as if characters with display property haven't been
19613 consumed for string-replacing-string case.
19614
19615 2008-03-08 Kim F. Storm <storm@cua.dk>
19616
19617 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
19618 (get_next_display_element, next_element_from_string)
19619 (next_element_from_ellipsis, next_element_from_buffer): Use it.
19620
19621 2008-03-08 Andreas Schwab <schwab@suse.de>
19622
19623 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
19624
19625 2008-03-06 Jason Rumney <jasonr@gnu.org>
19626
19627 * w32font.c (w32_registry): Take font_type argument. Use ANSI
19628 when charset not specified. Only translate ANSI to unicode when
19629 font_type is truetype.
19630 (w32font_coverage_ok): New function.
19631 (add_font_entity_to_list): Use it to filter unsuitable fonts.
19632
19633 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
19634
19635 * lread.c (Fread_char): Resolve modifiers.
19636 (Fread_char_exclusive): Likewise.
19637
19638 * character.c (char_resolve_modifier_mask): New function.
19639 (char_string): Use char_resolve_modifier_mask.
19640 (Fchar_resolve_modifiers): New function.
19641 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
19642 function.
19643
19644 2008-03-04 Jason Rumney <jasonr@gnu.org>
19645
19646 * makefile.w32-in: Always include w32font.c in the build.
19647 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
19648
19649 2008-03-04 Andreas Schwab <schwab@suse.de>
19650
19651 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
19652 (versionclean): Likewise.
19653
19654 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
19655
19656 * .cvsignore: Add oo.
19657
19658 2008-03-03 Andreas Schwab <schwab@suse.de>
19659
19660 * coding.c (decode_coding_object): Inhibit gap shrinking while
19661 decoding in place.
19662
19663 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
19664
19665 * w32term.c: Remove unused include "gnu.h".
19666 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
19667
19668 * gnu.h: Rename to ...
19669 * emacs-icon.h: ... this.
19670 * xterm.c: Use emacs-icon.h instead of gnu.h.
19671 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
19672
19673 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
19674
19675 * w32font.c: Include math.h.
19676
19677 2008-03-03 Jason Rumney <jasonr@gnu.org>
19678
19679 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
19680 Compute options separately.
19681 (w32font_open_internal): Set glyph_idx before caching metrics.
19682
19683 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
19684 Define if system headers don't.
19685 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
19686 (w32font_encode_char): Don't declare here.
19687
19688 * w32font.c (Quniscribe, QCformat): New symbols.
19689 (syms_of_w32font): Define them.
19690 (w32font_has_char): Indicate uncertainty.
19691 (w32font_encode_char): Encode as glyph point. Make static.
19692 (recompute_cached_metrics): New function.
19693 (w32font_open_internal): Use it. Set font to use glyph points
19694 initially. Set format based on type of font.
19695 (w32font_text_extents, w32font_draw): Optionally use glyph points.
19696 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
19697 on it. Set format based on information available here.
19698 (add_font_entity_to_list): Identify backend based on opentype_only.
19699
19700 2008-03-02 Andreas Schwab <schwab@suse.de>
19701
19702 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
19703
19704 * coding.c (decode_coding_big5, produce_chars):
19705 Fix typos in last change.
19706
19707 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
19708
19709 * gnu.h: New icon.
19710
19711 2008-03-02 Kenichi Handa <handa@m17n.org>
19712
19713 * coding.c (decode_coding_utf_8): When eol-type of CODING is
19714 `dos', don't decode '\r' if that is the last in the source.
19715 (decode_coding_utf_16, decode_coding_emacs_mule)
19716 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19717 (decode_coding_raw_text, decode_coding_charset): Likewise.
19718 (produce_chars): Don't decode EOL here. Use EMACS_INT.
19719
19720 2008-03-01 Jason Rumney <jasonr@gnu.org>
19721
19722 * w32font.c (w32font_full_name): Report point size for scalable fonts.
19723
19724 2008-03-01 Kim F. Storm <storm@cua.dk>
19725
19726 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
19727
19728 2008-03-01 Jason Rumney <jasonr@gnu.org>
19729
19730 * w32font.c (w32font_full_name): New function.
19731 (w32font_open_internal): Use it.
19732
19733 2008-03-01 Kim F. Storm <storm@cua.dk>
19734
19735 * dispnew.c (line_draw_cost): Fix invalid glyph check.
19736
19737 2008-03-01 Jason Rumney <jasonr@gnu.org>
19738
19739 * font.c (font_unparse_fcname): Increase len when style is a symbol.
19740
19741 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
19742
19743 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
19744 xg_frame_resized when the event is for the edit widget.
19745
19746 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
19747
19748 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
19749 set_char_size.
19750 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
19751 operations on widgets here. Just set frame size if needed.
19752 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
19753 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
19754 (x_wm_set_size_hint): Set size hints on the edit widget only, not
19755 the whole frame.
19756 (xg_create_tool_bar): Move attachment of the tool bar to
19757 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
19758 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
19759
19760 2008-03-01 Jason Rumney <jasonr@gnu.org>
19761
19762 * w32fns.c (w32_msg_pump): Disable debug code.
19763
19764 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19765
19766 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
19767
19768 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
19769
19770 * xdisp.c (next_overlay_string): Don't set
19771 overlay_strings_at_end_processed_p if we're currently reading from
19772 a display string.
19773
19774 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
19775
19776 * xdisp.c (get_overlay_strings_1): Fix typo.
19777
19778 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
19779
19780 * xdisp.c (get_overlay_strings_1): Add missing argument type.
19781
19782 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
19783
19784 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
19785
19786 * xdisp.c (display_mode_element): Cancel the previous change.
19787 (decode_mode_spec): Likewise.
19788 (handle_auto_composed_prop): Don't make composition if it->string
19789 is a string.
19790
19791 2008-02-27 Kim F. Storm <storm@cua.dk>
19792
19793 * lisp.h (GLYPH): Change type from int to struct with separate char
19794 and face_id members.
19795 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
19796 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
19797 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
19798 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
19799 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
19800 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
19801 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
19802 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
19803 handle new Lisp glyph code encoding, either an integer or a cons.
19804
19805 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
19806 (GLYPH_ALIAS): Delete.
19807 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
19808 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
19809 (GLYPH_FROM_CHAR): Replace macro by ...
19810 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
19811
19812 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
19813 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
19814 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
19815 (GLYPH_INVALID_P): New macro.
19816 (spec_glyph_lookup_face): Update prototype.
19817
19818 * dispnew.c (line_draw_cost): Adapt to new glyph type.
19819 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
19820 new glyph code encoding.
19821 (spec_glyph_lookup_face): No return value; update passed glyph instead.
19822 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
19823
19824 * xdisp.c (get_next_display_element, next_element_from_display_vector):
19825 Adapt to new glyph type and new glyph code encoding.
19826
19827 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
19828
19829 * indent.c (current_column, current_column_1, Fmove_to_column)
19830 (compute_motion): Adapt to new glyph code encoding.
19831
19832 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
19833
19834 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
19835
19836 * process.c (wait_reading_process_output): Check for window
19837 changes caused by timers.
19838 Suggested by Johan Bockgård.
19839
19840 2008-02-27 Glenn Morris <rgm@gnu.org>
19841
19842 * emacs.c (USAGE1): Add `--disable-font-backend'.
19843
19844 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
19845
19846 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
19847 is made to the buffer.
19848
19849 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
19850
19851 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
19852 (face_at_string_position):
19853 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
19854 (face_at_string_position):
19855 * xdisp.c (display_string, next_overlay_change):
19856 * buffer.h (overlays_at):
19857 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
19858 Update callers.
19859
19860 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
19861
19862 * editfns.c (Fformat): Doc fix.
19863
19864 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
19865
19866 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
19867 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
19868 (Ffont_otf_alternates, Fquery_font): Doc fixes.
19869
19870 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19871
19872 * buffer.c (Fbuffer_swap_text): New function.
19873 (syms_of_buffer): Defsubr it.
19874
19875 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
19876
19877 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
19878
19879 2008-02-25 Jason Rumney <jasonr@gnu.org>
19880
19881 * w32font.c (w32font_draw): Draw one character at a time when padding.
19882
19883 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19884
19885 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
19886 Handle a nil arg. Use run_window_configuration_change_hook.
19887 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
19888 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
19889 Use run_window_configuration_change_hook.
19890
19891 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19892
19893 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
19894 1-pixel width.
19895
19896 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19897
19898 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
19899 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
19900 if the glyph in the font is zero pixel with.
19901
19902 * dispextern.h (struct glyph_string): New member padding_p.
19903
19904 * w32font.c (w32font_draw): Pay attention to s->padding_p.
19905
19906 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
19907
19908 * xfont.c (xfont_draw): Pay attention to s->padding_p.
19909
19910 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
19911
19912 * font.c: If the font driver doesn't have `shape' function, return Qnil.
19913
19914 2008-02-25 Jason Rumney <jasonr@gnu.org>
19915
19916 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
19917
19918 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
19919
19920 Allow fine-grained image-cache flushing.
19921 * dispextern.h (struct image): Add `dependencies' field.
19922 (clear_image_caches): Change arg to Lisp_Object.
19923 * image.c (make_image): Initialize `dependencies' field.
19924 (clear_image_cache): Change arg to allow fine-grained flushing.
19925 Perform the flush even if image-cache-eviction-delay is nil.
19926 (clear_image_caches): Change arg to Lisp_Object.
19927 (Fclear_image_cache): Expand meaning of the argument.
19928 (mark_image): Mark `dependencies' field.
19929 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
19930 (lface_hash): Use XHASH rather than XFASTINT.
19931 (face_at_buffer_position): Fix int -> EMACS_INT position.
19932 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
19933 (select_frame_for_redisplay): Remove code duplication.
19934 (redisplay_internal): Adapt arg to call to clear_image_caches.
19935
19936 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
19937
19938 * s/vms4-0.h:
19939 * s/vms4-2.h:
19940 * s/vms4-4.h:
19941 * s/vms5-5.h: Remove, unused.
19942
19943 * s/irix5-2.h:
19944 * s/irix6-0.h:
19945 * s/riscos5.h:
19946 * s/mach-bsd4-3.h:
19947 * m/mips4.h: Remove files for obsolete systems.
19948
19949 * Makefile.in:
19950 * filelock.c:
19951 * unexmips.c:
19952 * m/hp9000s300.h:
19953 * m/iris4d.h:
19954 * s/aix3-1.h:
19955 * s/hpux.h:
19956 * s/msdos.h:
19957 * s/usg5-0.h:
19958 * s/usg5-2-2.h:
19959 * s/usg5-2.h:
19960 * s/usg5-3.h: Remove references to obsolete variables.
19961
19962 * s/irix5-0.h: Remove, move all the contents ...
19963 * s/irix6-5.h: ... here. Simplify.
19964 * config.in: Regenerate.
19965
19966 2008-02-24 Jason Rumney <jasonr@gnu.org>
19967
19968 * w32term.c (x_draw_glyph_string_background): Clear the background
19969 manually when cleartype is in use.
19970 (x_draw_glyph_string_foreground): Draw text transparently when
19971 cleartype is in use.
19972
19973 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19974 a font into it unless we have to.
19975
19976 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19977
19978 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
19979 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
19980
19981 2008-02-18 Jason Rumney <jasonr@gnu.org>
19982
19983 * w32fns.c (Fw32_shell_execute): Encode parameters.
19984
19985 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19986
19987 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19988
19989 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
19990
19991 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19992
19993 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
19994
19995 * xterm.c (x_set_offset): Don't change the gravity if
19996 CHANGE_GRAVITY is -1.
19997
19998 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
19999
20000 * fileio.c (auto_save_error_occurred): New var.
20001 (auto_save_error): Set it.
20002 (Fdo_auto_save): Don't overwrite the error message if an auto-save
20003 error occurred.
20004
20005 2008-02-23 Eli Zaretskii <eliz@gnu.org>
20006
20007 * w32.c (globals_of_w32): Add initializations for
20008 g_b_init_get_sid_sub_authority and
20009 g_b_init_get_sid_sub_authority_count.
20010
20011 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
20012
20013 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
20014 (font_parse_xlfd): Use them for sanity check.
20015 (Finternal_set_font_style_table): Make sure the table is bijective.
20016
20017 Consolidate the image_cache to the terminal struct.
20018 * termhooks.h (P_): Remove redundant def.
20019 (struct terminal): New field `image_cache'.
20020 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
20021 of FRAME_X_IMAGE_CACHE.
20022 * xterm.h (struct x_display_info): Remove image_cache field.
20023 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
20024 * w32term.h (struct w32_display_info): Remove image_cache field.
20025 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
20026 * macterm.h (struct mac_display_info): Remove image_cache field.
20027 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
20028 * xterm.c (x_term_init):
20029 * w32term.c (w32_term_init):
20030 * macterm.c (mac_term_init): Set the image_cache in the terminal.
20031 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
20032 Remove declarations.
20033 (clear_image_caches, mark_image_cache): New declarations.
20034 * xfaces.c (clear_face_cache):
20035 * xdisp.c (redisplay_internal): Use clear_image_caches.
20036 * image.c (clear_image_cache): Don't check that a frame is on
20037 a window-system before checking if it shares the same cache.
20038 (clear_image_caches): New function.
20039 (Fclear_image_cache): Use it.
20040 (mark_image): Move from allo.c.
20041 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
20042 * alloc.c (mark_image, mark_image_cache): Move to image.c.
20043 (mark_object): Don't call mark_image_cache for frames.
20044 (mark_terminals): Call mark_image_cache.
20045
20046 * lisp.h (Fdelete_terminal): Declare.
20047
20048 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
20049 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
20050 wrong_type_argument.
20051
20052 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
20053
20054 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
20055 malayalam.el, and tamil.el. Add sinhala.el.
20056
20057 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
20058
20059 * xterm.c (x_connection_closed): Consolidate identical tests.
20060 (x_delete_terminal): Don't crash if called via x_connection_closed.
20061
20062 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
20063
20064 * xdisp.c (decode_mode_spec): New arg string.
20065 (display_mode_element): Adjust for the above change.
20066
20067 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
20068
20069 * callint.c (Fcall_interactively): Use AREF.
20070
20071 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
20072
20073 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
20074
20075 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
20076
20077 * xfns.c (Fx_show_tip): Set string to " " if empty.
20078
20079 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
20080
20081 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
20082 with Qt.
20083
20084 2008-02-17 Kenichi Handa <handa@m17n.org>
20085
20086 * ftfont.c (ftfont_shape): Return Lispy number.
20087
20088 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
20089 for GCs.
20090 (Finternal_set_font_selection_order): Call font_update_sort_order
20091 only when enable_font_backend is set.
20092 (realize_x_face): Set face->font_info to that of default face only
20093 when enable_font_backend is set.
20094
20095 * xdisp.c (handle_composition_prop): Set it->c to the fist
20096 character of the composed region.
20097 (fill_composite_glyph_string): Set base_face->font_info to
20098 s->font_info. Get a face for ascii from base_face->ascii_face.
20099 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
20100 with a face already decided.
20101 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
20102 non-negative.
20103 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
20104 call font_prepare_composition unconditionally.
20105
20106 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
20107
20108 * xterm.h (struct x_display_info): New member font.
20109
20110 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
20111 (x_set_mouse_face_gc, x_new_font): Likewise.
20112 (x_term_init): Setup display_info->font.
20113 (x_delete_terminal): Free display_info->font.
20114
20115 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
20116
20117 * ftxfont.c (ftxfont_default_fid): Delete it.
20118 (ftxfont_open): Set xfont->fid to 0.
20119 (ftxfont_end_for_frame): Clear data specific to the frame and the
20120 font-driver.
20121
20122 * xftfont.c (xftfont_default_fid): Delete it.
20123 (xftfont_open): Set xfont->fid to 0.
20124
20125 * fontset.c (FONTSET_OBJLIST): New macro.
20126 (fontset_find_font): Update font-object list of the fontset.
20127 (free_realized_fontset): New function.
20128 (free_face_fontset): Call free_realized_fontset.
20129 (Ffont_info): Call font_close_object only when enable_font_backend
20130 is set.
20131
20132 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
20133 [HAVE_NTGUI]: Include w32term.h.
20134 [MAC_OS]: Include macterm.ch.
20135 (font_otf_ValueRecord): Use make_number.
20136 (font_finish_cache): Fix handling of reference count.
20137 (font_clear_cache): Update num_fonts.
20138 (font_open_entity): Update smallest_char_width and
20139 smallest_font_height of the frame.
20140 (font_close_object): Update num_fonts.
20141 (Fclear_font_cache): Fix finding the target cache data.
20142
20143 2008-02-16 Glenn Morris <rgm@gnu.org>
20144
20145 * fontset.c (Finternal_char_font): Fix compilation warning.
20146
20147 2008-02-16 Eli Zaretskii <eliz@gnu.org>
20148
20149 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
20150 instead of char arrays. Enlarge the size of array passed to
20151 get_token_information.
20152
20153 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
20154 warnings.
20155
20156 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
20157
20158 * .gdbinit: Don't set `args', it breaks gdb --args.
20159
20160 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
20161
20162 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
20163 within a narrowed buffer.
20164
20165 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
20166
20167 * coding.c (decode_coding_object, encode_coding_object):
20168 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
20169
20170 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
20171
20172 * coding.c (coding_set_destination): Use BEG_BYTE rather than
20173 hardcoding 1.
20174 (detect_coding_system):
20175 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
20176 (string_char_to_byte, string_byte_to_char, insert_from_gap):
20177 * insdel.c (insert_from_gap):
20178 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
20179 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
20180 (string_to_multibyte):
20181 * character.c (chars_in_text, multibyte_chars_in_text):
20182 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
20183
20184 * character.h (FETCH_STRING_CHAR_ADVANCE)
20185 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
20186 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
20187 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
20188
20189 * casefiddle.c (casify_region): Only call after-change and composition
20190 functions on the part of the region that was changed.
20191
20192 * keyboard.c (read_avail_input):
20193 * frame.c (Fdelete_frame): Call Fdelete_terminal.
20194
20195 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
20196
20197 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
20198 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
20199
20200 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
20201
20202 * w32menu.c (push_submenu_start, push_submenu_end)
20203 (push_left_right_boundary, push_menu_pane, push_menu_item):
20204 * keyboard.c (read_key_sequence): Don't pass args with side effects
20205 to AREF, it fails when compiling with -DENABLE_CHECKING.
20206
20207 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
20208
20209 * Makefile.in (${lispsource}international/charprop.el):
20210 Delete this target.
20211
20212 * search.c (boyer_moore): Fix incorrect synching of the trunk and
20213 emacs-unicode-2.
20214
20215 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
20216
20217 * terminal.c (Fdelete_terminal): Clean up the `force' path.
20218
20219 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
20220
20221 * frame.c (Qnoelisp): New symbol.
20222 (syms_of_frame): Initialize it.
20223 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
20224 harmless Elisp code, from a strong `force' from x_connection_closed.
20225 * frame.h (Qnoelisp): Declare.
20226 * xterm.c (x_connection_closed): Pass `noelisp'.
20227
20228 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
20229 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
20230 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
20231 rather than `int' for the type of `type'.
20232
20233 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
20234
20235 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
20236
20237 * Makefile.in (GNUC): Remove support for gcc-1.x.
20238
20239 2008-02-10 Richard Stallman <rms@gnu.org>
20240
20241 * lisp.h (ASET): Use AREF, not ASLOT.
20242
20243 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
20244
20245 * lisp.h (ASET): Check bounds.
20246
20247 2008-02-10 Glenn Morris <rgm@gnu.org>
20248
20249 * buffer.c (mode-name): Doc fix.
20250
20251 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
20252
20253 * Makefile.in:
20254 * emacs.c:
20255 * gmalloc.c:
20256 * keyboard.c:
20257 * lisp.h:
20258 * m/ibm370aix.h:
20259 * process.c:
20260 * regex.c:
20261 * s/hpux.h:
20262 * sysdep.c:
20263 * sysselect.h:
20264 * systty.h:
20265 * unexec.c:
20266 * w32term.c:
20267 * xsmfns.c:
20268 * xterm.c: Remove code that deals with obsolete variables.
20269
20270 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
20271
20272 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
20273 nothing else needs it anymore.
20274
20275 2008-02-09 Eli Zaretskii <eliz@gnu.org>
20276
20277 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
20278 instead of unibyte_char_to_multibyte.
20279
20280 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
20281
20282 * s/gnu-linux.h: Remove commented out code.
20283
20284 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
20285
20286 * Makefile.in: Update what RMS says about using autoconf.
20287 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
20288 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
20289 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
20290 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
20291
20292 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
20293
20294 * keymap.c (Fkey_description): Move side effect outside of macro call.
20295
20296 * xfaces.c (Finternal_make_lisp_face):
20297 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
20298
20299 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
20300 (syms_of_fontset): Use ASET.
20301
20302 * fns.c (concat): Move side effect outside of macro call.
20303 (hash_clear): Use ASET.
20304
20305 2008-02-08 Richard Stallman <rms@gnu.org>
20306
20307 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
20308 If FORCE, and frame has a surrogate minibuffer for another frame,
20309 delete the other frame first.
20310
20311 2008-02-07 Timo Savola <timo.savola@iki.fi>
20312
20313 * xterm.c (x_detect_focus_change): Handle embed client message.
20314 (handle_one_xevent): Ditto.
20315 (handle_one_xevent): If embedded and we get a button press/release,
20316 request focus.
20317 (xembed_set_info, xembed_send_message): New functions.
20318 (x_make_frame_visible): Call xembed_set_info if embedded.
20319 (x_make_frame_invisible): Call xembed_set_info if embedded.
20320 (x_term_init): Initialize Xatom_XEMBED.
20321 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
20322 (x_iconify_frame): Ditto.
20323
20324 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
20325 (enum xembed_info, enum xembed_message, enum xembed_focus)
20326 (enum xembed_modifier, enum xembed_accelerator): New.
20327 (xembed_set_info, xembed_send_message): Declare.
20328 (FRAME_X_EMBEDDED_P): New.
20329
20330 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
20331 gtk_plug_new.
20332
20333 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
20334 window ID of a frame.
20335 (x_window): Reparent frame if embedded.
20336 (Fx_create_frame): Don't set border width if embedded.
20337
20338 * emacs.c (USAGE3): Add --parent-id.
20339 (standard_args): Ditto.
20340
20341 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
20342
20343 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
20344
20345 2008-02-07 Jim Meyering <meyering@redhat.com>
20346
20347 Use "do...while (0)", not "if (1)...else" in macro definitions.
20348 The latter provokes a warning from gcc about the empty else, when
20349 followed by ";". Also, without that trailing semicolon, it would
20350 silently swallow up any following statement.
20351 * syntax.h (SETUP_SYNTAX_TABLE)
20352 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
20353 * buffer.h (DECODE_POSITION): Likewise.
20354 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
20355 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
20356 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
20357 (FETCH_CHAR_ADVANCE): Likewise.
20358 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
20359
20360 2008-02-07 Jim Meyering <meyering@redhat.com>
20361
20362 * lread.c [lint]: Don't include <sys/inode.h>.
20363
20364 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
20365
20366 * xselect.c (x_handle_dnd_message):
20367 * xmenu.c (digest_single_submenu, xmenu_show):
20368 * xdisp.c (with_echo_area_buffer_unwind_data)
20369 (format_mode_line_unwind_data, unwind_format_mode_line)
20370 (display_menu_bar):
20371 * eval.c (Ffetch_bytecode):
20372 * doc.c (store_function_docstring):
20373 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
20374 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
20375 * buffer.c (add_overlay_mod_hooklist): Use ASET.
20376
20377 2008-02-07 Kenichi Handa <handa@m17n.org>
20378
20379 * ftxfont.c (ftxfont_open): Don't set
20380 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
20381
20382 * ftfont.c (ftfont_open): Fix previous change.
20383
20384 2008-02-06 Jason Rumney <jasonr@gnu.org>
20385
20386 * w32font.c (w32font_text_extents): Fill in lbearing metric.
20387 Use cached metrics for ASCII characters.
20388 (w32font_open_internal): Don't set font's owning_frame.
20389 Cache metrics for ASCII characters.
20390
20391 * w32font.h (struct w32font_info): Add ascii_metrics.
20392 Remove owning_frame.
20393
20394 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
20395
20396 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
20397 to negative value.
20398
20399 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
20400
20401 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
20402
20403 * charset.c (syms_of_charset): Set QCtest and Qeq.
20404
20405 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
20406
20407 * process.c (Fstart_process):
20408 * callproc.c (Fcall_process): Handle the case where
20409 Funhandled_file_name_directory returns nil.
20410
20411 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
20412 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
20413 * font.c (check_gstring): Use them and AREF to access the vector before
20414 we know it's really a gstring.
20415 (Ffont_shape_text): Fix typo.
20416 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
20417
20418 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
20419 Declare.
20420
20421 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
20422
20423 2008-02-05 Jason Rumney <jasonr@gnu.org>
20424
20425 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
20426 Set smallest_font_height and smallest_char_width in display info.
20427
20428 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
20429
20430 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
20431
20432 2008-02-05 Miles Bader <miles@gnu.org>
20433
20434 * xfaces.c (get_lface_attributes, merge_named_face)
20435 (lookup_named_face, lookup_derived_face, realize_named_face):
20436 Revert 2008-02-01 change by cyd@stupidchicken.com.
20437
20438 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
20439
20440 * fontset.c (Ffontset_info): Handle the case of inhibitting the
20441 fallback fonts.
20442 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
20443
20444 2008-02-04 Jason Rumney <jasonr@gnu.org>
20445
20446 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
20447 set full_name.
20448 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
20449
20450 2008-02-03 Jason Rumney <jasonr@gnu.org>
20451
20452 * makefile.w32-in (OBJ1): Include font.o here.
20453 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
20454
20455 2008-02-02 Jason Rumney <jasonr@gnu.org>
20456
20457 * makefile.w32-in (temacs): Bump EMHEAP to 21.
20458
20459 2008-02-01 Jason Rumney <jasonr@gnu.org>
20460
20461 * s/cygwin.h: Define VIRT_ADDR_VARIES.
20462
20463 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
20464
20465 2008-02-01 Andreas Schwab <schwab@suse.de>
20466
20467 * Makefile.in (shortlisp, lisp): Update for rename of
20468 ../lisp/language/myanmar.el.
20469
20470 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
20471
20472 * xfaces.c (get_lface_attributes): Delete function.
20473 (merge_named_face, lookup_named_face, lookup_derived_face)
20474 (realize_named_face): Call lface_from_face_name directly, and use
20475 the fact that merge_face_vectors does not alter its FROM argument.
20476
20477 2008-02-01 Jason Rumney <jasonr@gnu.org>
20478
20479 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
20480 input in the default locale. Handle non-Unicode multibyte input.
20481
20482 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20483
20484 * fontset.c (reorder_font_vector): Exclude nil elements from the
20485 font group. Don't try multiple fonts.
20486 (fontset_font): Adjust for the above change.
20487 (Finternal_char_font): Return nil if the found font doesn't
20488 contain the character ch.
20489
20490 * Makefile.in (lisp, shortlisp): Add cham.el.
20491
20492 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20493
20494 * font.h (FONTP): Make it return 1 also for a font-object.
20495
20496 * .gdbinit (xfontset): New function.
20497
20498 * font.c (font_find_for_lface): Check if the character C is
20499 supported or not only for the first font.
20500
20501 * fontset.c (reorder_font_vector): Fix typo.
20502 (fontset_find_font): Don't add a font-spec specifying a script.
20503 Use 0 (not Qt) for the indication of empty font-group. Change the
20504 format of RFONT-DEF. Return Qt if no font in the font-group
20505 support the character.
20506 (fontset_font): Adjust for the above change. If no font was
20507 found the character, remember that.
20508 (face_for_char): Adjust for the change of RFONT-DEF.
20509 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
20510 no font for the target.
20511 (Finternal_char_font): Adjust for the change of RFONT-DEF.
20512
20513 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20514
20515 * font.c (font_load_for_face): Handle the case that the font in
20516 face->lface is a string.
20517
20518 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20519
20520 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
20521
20522 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20523
20524 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
20525 Fix previous change. If the frame is not on a window system,
20526 signal an error.
20527
20528 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20529
20530 * coding.c (decode_coding_object, encode_coding_object):
20531 Adjust marker positions after conversion.
20532
20533 * lisp.h (struct Lisp_Marker): New member need_adjustment.
20534
20535 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20536
20537 * font.c (font_find_for_lface): Fix the handling of the return
20538 value of font_has_char.
20539 (Ffont_shape_text): Fix previous change.
20540
20541 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
20542 (fontset_ref_and_range): Delete it.
20543 (fontset_find_font): Call char_table_ref_and_range instead of
20544 FONTSET_REF_AND_RANGE.
20545 (make_fontset): Don't setup font groups of Latin here.
20546 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
20547 (new_fontset_from_font): Make the specified font the default for
20548 all Latin characters.
20549
20550 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20551
20552 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
20553 is on a window system before accessing the fontset of the frame.
20554
20555 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20556
20557 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
20558
20559 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
20560 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
20561
20562 * font.c (Ffont_shape_text): If the font driver doesn't have a
20563 shaper function, make zero-width glyphs to have at least one-pixel
20564 width. Fix setting of `to' field of glyphs.
20565
20566 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20567
20568 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
20569 glyphs.
20570
20571 * font.h (struct font_driver): Improve docstring of member `shape'.
20572
20573 2008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * composite.c (syms_of_composite): Fix docstring of
20576 auto-composition-function.
20577
20578 * font.h (LGLYPH_SIZE): New macro.
20579
20580 * font.c (Ffont_fill_gstring): Stop filling when a character not
20581 supported by the font is found.
20582 (Ffont_shape_text): When a shape callback function returns nil,
20583 try at most two more times with larger gstring.
20584 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
20585
20586 * xdisp.c (handle_auto_composed_prop): Change the argument to
20587 auto-composition-function.
20588
20589 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
20590 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
20591 Lispy glyph and store it in the lgstring.
20592
20593 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
20594
20595 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
20596
20597 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20598
20599 * font.c (Ffont_shape_text): Avoid unnecessary composition.
20600
20601 * fontset.c (Vfont_encoding_charset_alist): New variable.
20602 (syms_of_fontset): DEFVAR it.
20603 (reorder_font_vector, fontset_find_font): Optimize for the case of
20604 no need of reordering.
20605 (face_for_char): Map the charset property by
20606 Vfont_encoding_charset_alist.
20607
20608 2008-02-01 Jason Rumney <jasonr@gnu.org>
20609
20610 * w32font.c (logfonts_match): Don't check adstyle here.
20611 (font_matches_spec): Check here against physical font instead.
20612 (add_font_entity_to_list): Avoid some substitutions.
20613
20614 * font.c (font_parse_fcname): Default weight and slant to normal.
20615 (font_score): Prefer normal fonts if weight or slant unspecified.
20616 (font_score) [WINDOWSNT]: Scale weight difference down to closer
20617 match freetype scores.
20618
20619 2008-02-01 Jason Rumney <jasonr@gnu.org>
20620
20621 * w32font.c (w32font_text_extents): Don't use the frame stored in the
20622 font, as it may have been deleted.
20623 (w32_enumfont_pattern_entity): Map generic family to adstyle using
20624 most common hyphenless variation.
20625 (logfonts_match): Check generic family.
20626 (font_matches_spec): Don't check generic family here.
20627 (fill_in_logfont): Set generic family based on adstyle.
20628
20629 * w32font.h (w32font_get_cache): Update declaration.
20630
20631 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20632
20633 * ftfont.c (ftfont_get_cache): Adjust the argument type.
20634
20635 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
20636 If none of the new drivers are available, call font_update_drivers
20637 with the old drivers.
20638
20639 * w32font.c (w32font_get_cache): Adjust the argument type.
20640
20641 * xfont.c (xfont_get_cache): Adjust the argument type.
20642
20643 * font.h (struct font_driver): Change argument type of get_cache.
20644
20645 * xftfont.c (xftfont_start_for_frame): Delete prototype.
20646
20647 * font.c (Ffont_get): Fix arguments to Fassoc.
20648 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
20649 (font_clear_cache): New function.
20650 (font_list_entities, font_matching_entity): Use font_get_cache.
20651 (font_update_drivers): Call font_clear_cache when finishing a driver.
20652
20653 * fontset.c (fontset_find_font): Fix previous change.
20654
20655 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20656
20657 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
20658 dpyinfo->font_table.
20659 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
20660 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
20661
20662 * font.c (font_at): Handle the case that the arg C is negative.
20663 Handle the unibyte case.
20664 (Ffont_at): Call font_at with the arg C -1.
20665
20666 * xdisp.c (handle_auto_composed_prop): Don't get a character at
20667 the position here, and call font_at with the arg C -1.
20668 Don't check the range of the existing composition at the point.
20669
20670 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20671
20672 * fontset.c (fontset_add): New args charset_id and family.
20673 Change caller.
20674 (load_font_get_repertory, fontset_find_font): Assume that
20675 font_spec is always a font-spec object.
20676 (Fset_fontset_font): Always store a font-spec object in a fontset.
20677
20678 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
20679 instead of get_property_and_range.
20680
20681 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20682
20683 * xftfont.c (struct xftfont_info): Delete the member ft_face.
20684 (xftfont_open): Don't keep locking face.
20685 (xftfont_close): Don't unlock face.
20686 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
20687
20688 * fontset.c (fontset_find_font): Don't prefer a font of
20689 supplementary charset.
20690
20691 2008-02-01 Kenichi Handa <handa@m17n.org>
20692
20693 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
20694 script, langsys_tag to langsys, new member script.
20695 (OTF_TAG_STR): Terminate by '\0'.
20696 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
20697 listing to the script specified in that property. Fix arg to
20698 OTF_check_features.
20699
20700 2008-02-01 Jason Rumney <jasonr@gnu.org>
20701
20702 * w32font.h: New file.
20703
20704 * w32font.c: Include it.
20705 (struct w32font_info): Add owning_frame field. Move to w32font.h.
20706 (w32font_open): Set owning_frame.
20707 (w32font_text_extents): Use owning_frame.
20708 (struct font_callback_data): Add opentype_only field.
20709 (add_font_entity_to_list): Use it to filter fonts.
20710 Don't check against full name.
20711 (w32font_list_internal): New function.
20712 (w32font_list): Use it.
20713 (w32font_match_internal): New function.
20714 (w32font_match): Use it.
20715 (w32font_open_internal): New function.
20716 (w32font_open): Use it.
20717 (w32font_get_cache, w32font_close, w32font_has_char)
20718 (w32font_encode_char, w32font_text_extents, w32font_draw):
20719 Make non-static.
20720
20721 * makefile.w32-in (w32font.o): Depend on w32font.h.
20722
20723 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20724
20725 * charset.c (Fdefine_charset_internal): Record a supplementary
20726 charset at the tail of Vcharset_order_list.
20727
20728 * font.c (Ffont_shape_text): Fix the return value.
20729
20730 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
20731
20732 * xdisp.c (handle_auto_composed_prop): Fix previous change.
20733
20734 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20735
20736 * ftfont.c (struct OpenTypeSpec): New struct.
20737 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
20738 (ftfont_get_open_type_spec): New function.
20739 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
20740
20741 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
20742
20743 2008-02-01 Jason Rumney <jasonr@gnu.org>
20744
20745 * w32font.c (add_font_entity_to_list): Compare only the beginning
20746 of full name.
20747
20748 2008-02-01 Kenichi Handa <handa@m17n.org>
20749
20750 * xdisp.c (handle_auto_composed_prop): Simplify the code.
20751 Never return HANDLED_RECOMPUTE_PROPS.
20752
20753 2008-02-01 Kenichi Handa <handa@m17n.org>
20754
20755 * font.c (font_gstring_produce): Delete it.
20756
20757 * composite.h (COMPOSITION_METHOD):
20758 Handle COMPOSITION_WITH_GLYPH_STRING.
20759
20760 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20761
20762 * xfont.c (Qx): Delete.
20763 (syms_of_xfont): Don't initialize Qx.
20764
20765 * composite.h (enum composition_method):
20766 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
20767
20768 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20769
20770 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
20771 (choose_face_font): Accept new form of font-spec.
20772
20773 * frame.h (font_driver_list): Declare it unconditionally.
20774 (struct frame): Define members font_driver_list and font_data_list
20775 unconditionally.
20776
20777 * fontset.c: Include "font.h" unconditionally.
20778 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
20779 (Fset_fontset_font): Accept a font-spec object.
20780
20781 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
20782 PIXEL_SIZE part a wild card.
20783
20784 * dispextern.h (struct glyph_string): Define members clip and
20785 num_clips unconditionally.
20786 (struct face): Define members font_info and extra unconditionally.
20787
20788 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
20789 ftfont_info only when HAVE_LIBOTF is defined.
20790
20791 2008-02-01 Andreas Schwab <schwab@suse.de>
20792
20793 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
20794 and end.
20795
20796 2008-02-01 Jason Rumney <jasonr@gnu.org>
20797
20798 * w32font.c (w32font_driver): Add new fields.
20799
20800 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20801
20802 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
20803 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
20804 (LIBES): Add @M17N_FLT_CFLAGS@.
20805
20806 * composite.c (compose_text): Don't treat the new style
20807 composition specially.
20808
20809 * emacs.c (main): Call syms_of_font unconditionally.
20810
20811 * font.h (FONT_ENTITY_NOT_LOADABLE)
20812 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
20813 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
20814 (struct font_driver): New member shape.
20815 (font_registry_charsets): Extern it.
20816 (font_find_for_lface, font_prepare_composition): Adjust prototype.
20817 (font_otf_capability, font_drive_otf): Delete their externs.
20818
20819 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
20820 (font_charset_alist, font_registry_charsets): Move from xfont.c
20821 and rename.
20822 (font_prop_validate_otf): New function.
20823 (font_property_table): Register it for QCotf.
20824 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
20825 (font_drive_otf): Delete.
20826 (font_prepare_composition): New arg F. Adjust for the change of
20827 lispy gstring.
20828 (font_find_for_lface): New arg C.
20829 (font_load_for_face): Adjust for the change of font_find_for_lface.
20830 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
20831 lispy gstring.
20832 (Ffont_shape_text): New function.
20833 (Fopen_font): If the font size is not given, use 12-pixel.
20834 (Ffont_at): New arg STRING.
20835 (syms_of_font): Initialize font_charset_alist.
20836 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
20837 conditionally.
20838
20839 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
20840 fonts of the same font-spec. Change the format of RFONT-DEF.
20841 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
20842 Adjust for the change of RFONT-DEF.
20843 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
20844
20845 * ftfont.h: New file.
20846
20847 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
20848 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20849 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20850 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
20851 font_otf_capability and font_drive_otf, set ftfont_shape.
20852 (ftfont_list): Adjust for the change of :otf property value.
20853 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
20854 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
20855 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
20856 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20857 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
20858 (otf_gstring, gstring, m17n_flt_initialized): New variables.
20859
20860 * w32term.c (x_draw_composite_glyph_string_foreground):
20861 Adjust for the change of lispy gstring.
20862
20863 * xdisp.c (handle_composition_prop): Adjust for the change of
20864 lispy gstring. Call a function for auto-composition with the
20865 third arg it->window.
20866 (fill_composite_glyph_string): Adjust for the change of lispy string.
20867 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
20868
20869 * xfaces.c (set_font_frame_param): Adjust for the change of
20870 font_find_for_lface.
20871
20872 * xfont.c (x_font_charset_alist): Move to font.c and rename.
20873 (xfont_registry_charsets): Likewise. Change caller.
20874 (syms_of_xfont): Don't handle x_font_charset_alist.
20875
20876 * xftfont.c: Include "ftfont.h".
20877 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20878 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20879 (xftfont_close) [HAVE_LIBOTF]: Close otf.
20880 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20881 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
20882 Set xftfont_driver.shape to xftfont_shape.
20883
20884 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20885 the change of lispy gstring.
20886
20887 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20888
20889 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
20890
20891 2008-02-01 Jason Rumney <jasonr@gnu.org>
20892
20893 * w32font.c (w32font_draw): Fill background manually.
20894
20895 2008-02-01 Jason Rumney <jasonr@gnu.org>
20896
20897 * font.c (Qfontp): Remove unused symbol.
20898 (QCantialias): New symbol.
20899 (syms_of_font): Define it.
20900 (font_property_table): Set a validator for QCantialias.
20901
20902 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
20903 Define if not already.
20904 (QCfamily): Share with xfaces.c.
20905 (Qstandard, Qsubpixel, Qnatural): New symbols.
20906 (syms_of_w32font): Define them. Don't define QCfamily here.
20907 (w32_antialias_type, lispy_antialias_type): New functions.
20908 (w32_enumfont_pattern_entity): New arg requested_font.
20909 Set antialias parameter if non-default was requested.
20910 (fill_in_logfont): Fill in lfQuality if :antialias specified.
20911
20912 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20913
20914 * lread.c (read1): Undo the previous change.
20915
20916 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
20917
20918 * frame.c (Fdelete_frame): Call font_update_drivers only when
20919 USE_FONT_BACKEND is defined.
20920
20921 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20922
20923 * font.h (struct font_bitmap): New member bits_per_pixel.
20924 (struct font_driver): New members start_for_frame and end_for_frame.
20925 (struct font_data_list): New struct.
20926 (font_put_frame_data, font_get_frame_data): Extern them.
20927
20928 * frame.h (struct frame): New member font_data_list.
20929
20930 * font.c (font_update_drivers): Call driver->start_for_frame and
20931 driver->end_for_frame at proper timings.
20932 (font_put_frame_data, font_get_frame_data): New functions.
20933 (Ffont_spec): Add usage in the docstring.
20934
20935 * frame.c (make_frame): Initialize f->font_data_list to NULL.
20936 (Fdelete_frame): Call font_update_drivers.
20937
20938 * xftfont.c (struct xftface_info): Delete the member xft_draw.
20939 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
20940 (xftfont_get_xft_draw): New function.
20941 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
20942 (xftfont_end_for_frame): New function.
20943 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
20944
20945 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
20946 Change argument. Cache GCs in the per-frame data.
20947 (struct ftxfont_frame_data): New struct.
20948 (ftxfont_draw_bitmap): New arg gc_fore and flush.
20949 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
20950 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
20951 (ftxfont_end_for_frame): New function.
20952 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
20953
20954 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
20955
20956 2008-02-01 Kenichi Handa <handa@m17n.org>
20957
20958 * xselect.c (Vselection_coding_system)
20959 (Vnext_selection_coding_system): Delete them.
20960 (syms_of_xselect): Don't declare selection-coding-system and
20961 next-selection-coding-system. They are declared in select.el.
20962
20963 2008-02-01 Jason Rumney <jasonr@gnu.org>
20964
20965 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20966
20967 * w32fns.c: Include imm.h.
20968 (get_composition_string_fn, get_ime_context_fn): New optional
20969 system functions.
20970 (globals_of_w32fns): Load them from imm32.dll.
20971 (ignore_ime_char): New flag.
20972 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20973 WM_IME_ENDCOMPOSITION messages.
20974
20975 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20976 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20977
20978 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20979
20980 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20981 (READCHAR_REPORT_MULTIBYTE): New macro.
20982 (readchar): New 2nd arg MULTIBYTE.
20983 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20984 Make symbol's name multibyte according to the multibyteness of the
20985 source.
20986
20987 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20988
20989 * xfaces.c (face_for_overlay_string): Call lookup_face with
20990 correct arguments (fix of synching with the trunk).
20991
20992 2008-02-01 Kenichi Handa <handa@m17n.org>
20993
20994 * font.c (font_prop_validate_symbol, font_prop_validate_style)
20995 (font_prop_validate_non_neg, font_prop_validate_spacing):
20996 Delete argument prop_index.
20997 (font_property_table): Change arguments to validater. Change Callers.
20998 (font_lispy_object): Delete.
20999 (font_at): Use font_find_object instead fo font_lispy_object.
21000
21001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21002
21003 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
21004 and file names.
21005
21006 2008-02-01 Jason Rumney <jasonr@gnu.org>
21007
21008 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
21009 (font_matches_spec): Remove debug output.
21010 (add_font_entity_to_list): Avoid using substituted fonts.
21011
21012 2008-02-01 Jason Rumney <jasonr@gnu.org>
21013
21014 * doc.c (Fsnarf_documentation):
21015 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
21016
21017 2008-02-01 Miles Bader <miles@gnu.org>
21018
21019 * dispextern.h (struct glyph_row): Only define "clip" field if
21020 HAVE_WINDOW_SYSTEM is defined.
21021
21022 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21023
21024 Fix up multi-tty merge.
21025
21026 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
21027 and indentation.
21028
21029 * xfaces.c (free_realized_face, clear_face_gcs):
21030 Include font_done_for_face in the input_blocked section, just in case.
21031
21032 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
21033 (get_char_face_and_encoding): Undo last change and remove the *other*
21034 duplicate definition (i.e. keep the one that's better scoped and that
21035 includes code for the font-backend).
21036
21037 * terminal.c (create_terminal): Default keyboard_coding to
21038 `no-conversion' and terminal_coding to `undecided'.
21039
21040 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
21041
21042 * fontset.c (free_realized_fontsets): Check that the table entry does
21043 contain a fontset before trying to compare it to `base'.
21044
21045 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
21046 syms_of_charset, and syms_of_coding earlier because init_window_once
21047 now needs Vcoding_system_hash_table to be setup.
21048
21049 * coding.h (default_buffer_file_coding): Remove.
21050
21051 * coding.c (default_buffer_file_coding): Remove.
21052 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
21053 than ->symbol, and use the terminal-local coding system.
21054 (syms_of_coding): Don't setup the coding-systems that are not
21055 terminal-local.
21056 (Fdefine_coding_system_internal): Use XCAR/XCDR.
21057
21058 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
21059 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
21060
21061 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
21062 in chartab.c and were re-added here by mistake.
21063 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
21064
21065 * doc.c (Fsnarf_documentation):
21066 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
21067 src to etc.
21068
21069 * ChangeLog.10: Add mistakenly removed entry.
21070
21071 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
21072
21073 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
21074
21075 2008-02-01 Miles Bader <miles@gnu.org>
21076
21077 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
21078 Add extra args to FACE_FOR_CHAR.
21079
21080 2008-02-01 Kenichi Handa <handa@m17n.org>
21081
21082 * keymap.c (where_is_internal_1): If key is a cons, store the copy
21083 in sequence.
21084
21085 * chartab.c (map_sub_char_table, map_char_table): If the range
21086 contains just one character, call the function with that character
21087 even if the depth is not 3.
21088
21089 2008-02-01 Jason Rumney <jasonr@gnu.org>
21090
21091 * w32font.c (w32font_text_extents): Calculate metrics for the
21092 whole string.
21093
21094 2008-02-01 Jason Rumney <jasonr@gnu.org>
21095
21096 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
21097
21098 2008-02-01 Jason Rumney <jasonr@gnu.org>
21099
21100 * w32term.c (x_set_glyph_string_clipping):
21101 Use get_glyph_string_clip_rects.
21102 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
21103 Adjust for the change of struct glyph_string.
21104
21105 * w32font.c (w32font_draw): Do clipping here.
21106
21107 2008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 * xftfont.c (xftfont_draw): Adjust for the change of struct
21110 glyph_string.
21111
21112 * xterm.c (x_set_glyph_string_clipping):
21113 Use get_glyph_string_clip_rects.
21114 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
21115 Adjust for the change of struct glyph_string.
21116
21117 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
21118 the resulting clip(s}.
21119 (expose_overlaps): Add arg r. Change callers. Set it to
21120 row->clip temporarily.
21121 (expose_window): Redraw rows overlapping the exposed area.
21122
21123 * dispextern.h (struct glyph_row): New member clip.
21124 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
21125 clip_height, new member clip, and num_clips.
21126
21127 2008-02-01 Kenichi Handa <handa@m17n.org>
21128
21129 * data.c (Fchar_or_string_p): Fix docstring.
21130
21131 2008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
21134 create a temporary XftDraw object.
21135
21136 2008-02-01 Kenichi Handa <handa@m17n.org>
21137
21138 * font.c (Ffontp): Fix docstring.
21139
21140 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
21141 strong evidence of ISO-2022.
21142
21143 2008-02-01 Kenichi Handa <handa@m17n.org>
21144
21145 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
21146 SYNTAX_ENTRY_FOLLOW_PARENT.
21147
21148 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21149
21150 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
21151 its type.
21152 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21153 Update to the new type of weak_hash_tables and next_weak.
21154
21155 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
21156 a plain C pointer to Lisp_Hash_Table.
21157
21158 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
21159 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
21160 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
21161 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
21162 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
21163 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
21164 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
21165 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
21166 (GC_EQ): Remove since they've been identical to their non-GC_
21167 alter-egos ever since the markbit was eradicated.
21168
21169 * alloc.c:
21170 * buffer.c:
21171 * buffer.h:
21172 * data.c:
21173 * fileio.c:
21174 * filelock.c:
21175 * fns.c:
21176 * frame.h:
21177 * lisp.h:
21178 * macterm.c:
21179 * print.c:
21180 * process.c:
21181 * w32fns.c:
21182 * w32menu.c:
21183 * w32term.c:
21184 * xfns.c:
21185 * xmenu.c:
21186 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
21187
21188 2008-02-01 Kenichi Handa <handa@m17n.org>
21189
21190 * chartab.c (map_sub_char_table): Make it work for the top-level
21191 char-table. Fix handling of parent char-table.
21192 (map_char_table): Adjust for the above change.
21193
21194 2008-02-01 Jason Rumney <jasonr@gnu.org>
21195
21196 * w32font.c (Qgdi): Rename from Qw32.
21197
21198 2008-02-01 Jason Rumney <jasonr@gnu.org>
21199
21200 * w32bdf.c (get_quoted_string): Make function static.
21201
21202 2008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
21205 bigger ascent and descent than those of the font, use them as
21206 font's ascent and descent.
21207
21208 2008-02-01 Kenichi Handa <handa@m17n.org>
21209
21210 * Makefile.in (${lispsource}international/charprop.el): Move this
21211 target within "#ifdef HAVE_UNIDATA" and "#endif".
21212
21213 2008-02-01 Kenichi Handa <handa@m17n.org>
21214
21215 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
21216 (shortlisp): Add ../lisp/language/tai-viet.el.
21217
21218 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
21219
21220 * Makefile.in (${lispsource}international/charprop.el): Depend on
21221 temacs${EXEEXT}.
21222
21223 2008-02-01 Jason Rumney <jasonr@gnu.org>
21224
21225 * w32font.c (w32font_close): Delete the GDI font object.
21226
21227 * w32menu.c: Include character.h.
21228
21229 * w32proc.c: Likewise.
21230
21231 * w32select.c: Likewise.
21232
21233 * makefile.w32-in (w32proc.o): Depend on character.h.
21234
21235 2008-02-01 Jason Rumney <jasonr@gnu.org>
21236
21237 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
21238
21239 * w32menu.c (syms_of_w32menu): Likewise.
21240
21241 * w32proc.c (syms_of_ntproc): Likewise.
21242
21243 * w32select.c (syms_of_w32select): Likewise.
21244
21245 * w32term.c (syms_of_w32term): Likewise.
21246
21247 2008-02-01 Jason Rumney <jasonr@gnu.org>
21248
21249 * w32font.c (w32font_draw): Delete brush after using it.
21250
21251 2008-02-01 Jason Rumney <jasonr@gnu.org>
21252
21253 * w32font.c (w32font_open): Don't set font_idx.
21254 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
21255 to font settings.
21256 (w32font_draw): Fill background explicitly.
21257
21258 2008-02-01 Jason Rumney <jasonr@gnu.org>
21259
21260 * w32term.c (w32_initialize): Don't call w32font_initialize.
21261
21262 * w32font.c (w32font_info): Remove subranges.
21263 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
21264 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
21265 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
21266 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
21267 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
21268 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
21269 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
21270 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
21271 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
21272 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
21273 New symbols.
21274 (font_callback_data): New struct.
21275 (w32font_list, w32font_match): Use it.
21276 (w32font_open): Don't populate subranges.
21277 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
21278 (w32font_encode_char): Always return unicode code-point as-is.
21279 (w32font_text_extents): Supply a transformation matrix to
21280 GetGlyphOutline. Never look up by glyph index. Avoid looping
21281 twice. Use unicode version of GetTexExtentPoint32 instead of
21282 glyph index version.
21283 (set_fonts_frame): Remove.
21284 (w32_enumfont_pattern_entity): Add frame parameter, use it to
21285 set frame parameter. Use backward compatible fake foundries.
21286 Save generic family in extra slot under QCfamily. Make width slot
21287 constant. Save QCspacing value. Save list of scripts instead of
21288 binary subranges.
21289 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
21290 (add_font_entity_to_list): Use font_callback_data struct.
21291 Filter unwanted fonts.
21292 (add_one_font_entity_to_list): Use font_callback_data struct.
21293 (w32_registry): Default to iso10646_1.
21294 (fill_in_logfont): Use dpi from extra slot. Don't bother with
21295 string font registries. Don't fill in font name if it is a generic
21296 family name, fill family instead. Use spacing, family and script
21297 extra info to fill pitch, family and charset fields.
21298 (list_all_matching_fonts): Use font_callback_data struct.
21299 (unicode_range_for_char): Remove.
21300 (font_supported_scripts): New function.
21301 (w32font_initialize): Remove.
21302 (syms_of_w32font): Update which symbols are defined.
21303
21304 2008-02-01 Jason Rumney <jasonr@gnu.org>
21305
21306 * font.c (font_pixel_size): Reverse assq_no_quit args.
21307
21308 * w32term.h (FONT_WIDTH): Report max width, not average.
21309 (FONT_MAX_WIDTH): Remove.
21310 (FONT_AVG_WIDTH): New macro.
21311
21312 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
21313 redefinition of FONT_WIDTH.
21314
21315 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
21316 (w32_cache_char_metrics): Use FONT_WIDTH.
21317
21318 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
21319
21320 2008-02-01 Jason Rumney <jasonr@gnu.org>
21321
21322 * w32font.c (w32font_open): Make lfHeight negative.
21323
21324 * w32fns.c (x_default_font_parameter): Use new style font name.
21325 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
21326
21327 2008-02-01 Jason Rumney <jasonr@gnu.org>
21328
21329 * w32font.c (QCsubranges): New symbol.
21330 (w32font_open, w32font_has_char): Get subranges from subproperty
21331 of extra.
21332 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
21333 (syms_of_w32font): Define :subranges symbol.
21334
21335 * font.c (font_put_extra): Expose externally.
21336
21337 * font.h (font_put_extra): Move declaration from font.c.
21338
21339 * font.c (Ffont_get): Use font driver to determine otf capability.
21340 (adjust_anchor): Check if driver defines anchor_point before using.
21341
21342 * w32font.c (w32font_open): Handle size, height and pixel_size better.
21343 (w32font_draw): Use options.
21344 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
21345 Fix detection of truetype fonts.
21346 (registry_to_w32_charset): Handle charsets other than iso8859-1
21347 expressed as lisp symbols.
21348 (w32_registry): Express charset as lisp symbol.
21349 (fill_in_logfont): Reverse pixel and point height logic.
21350 Don't set width here. Set quality to default.
21351
21352 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
21353 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
21354
21355 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21356 Remove redundant loop and allocation.
21357
21358 * makefile.w32-in (font.o, w32font.o): New objects.
21359 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
21360 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
21361
21362 * xdisp.c (fill_composite_glyph_string): Make the first arg to
21363 STORE_XCHARB a valid l-value.
21364
21365 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
21366 calculations for non-Truetype fonts.
21367 (x_draw_glyph_string): Sync with xterm.c.
21368 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21369 Remove redundant code.
21370 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
21371
21372 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
21373 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
21374
21375 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
21376 (x_to_w32_charset, w32_to_x_charset): Expose externally.
21377
21378 * w32font.c: New file for w32 font backend.
21379
21380 2008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * term.c: Don't include "buffer.h" twice.
21383
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * character.c (Funibyte_string): New function.
21387 (syms_of_character): Defsubr it.
21388
21389 2008-02-01 Jason Rumney <jasonr@gnu.org>
21390
21391 * w32term.c [USE_FONT_BACKEND]:
21392 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
21393 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
21394 (x_draw_glyph_string, x_draw_glyph_string_foreground)
21395 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
21396 (x_free_frame_resources): Sync with xterm.c.
21397
21398 2008-02-01 Andreas Schwab <schwab@suse.de>
21399
21400 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
21401 char-table size.
21402
21403 2008-02-01 Kenichi Handa <handa@m17n.org>
21404
21405 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
21406
21407 2008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
21410 font_otf_gpos, add font_drive_otf.
21411
21412 * fontset.c (fontset_find_font): Pay attention to font size
21413 specified for a font.
21414 (reorder_font_vector): Check contents of font_def.
21415
21416 * font.c (struct otf_list): Delete it.
21417 (otf_list): Make it a lisp variable.
21418 (otf_open): Use lispy otf_list.
21419 (generate_otf_features): Rename from parse_gsub_gpos_spec.
21420 (check_otf_features): New function.
21421 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21422 New functions.
21423 (font_drive_otf): New function merging font_otf_gsub and
21424 font_otf_gpos.
21425 (font_open_for_lface): New arg spec. Change argument order.
21426 (font_load_for_face): Adjust for the change of font_open_for_lface.
21427 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
21428 Ffont_otf_gpos.
21429 (syms_of_font): Staticpro otf_list. Delete defsubr of
21430 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
21431
21432 * xfaces.c (set_font_frame_param): Adjust for the change of
21433 font_open_for_lface.
21434
21435 * font.h (font_open_for_lface): Adjust prototype.
21436 (struct font_driver): Delete members otf_gsub and otf_gpos, add
21437 member otf_drive.
21438 (font_otf_gsub, font_otf_gpos): Delete externs.
21439 (font_drive_otf): Extern it.
21440
21441 2008-02-01 Kenichi Handa <handa@m17n.org>
21442
21443 * font.c (font_at): If the window W is not on a window system,
21444 return Qnil.
21445
21446 * coding.c (produce_chars, encode_coding): Don't call
21447 insert_from_gap if no characters to produce.
21448
21449 2008-02-01 Kenichi Handa <handa@m17n.org>
21450
21451 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
21452 Fclear_face_cache.
21453
21454 * xfaces.c (face_for_font): Check also face->font==font->font.font.
21455
21456 2008-02-01 Miles Bader <miles@gnu.org>
21457
21458 * emacs.c (main): Change default value of `enable_font_backend' to 1.
21459 Parse "--disable-font-backend" option.
21460 (standard_args): Add "--disable-font-backend" option.
21461
21462 2008-02-01 Kenichi Handa <handa@m17n.org>
21463
21464 * fontset.c (fontset_find_font): New function.
21465 (fontset_font): Use fontset_find_font.
21466 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
21467 Register the specified font for all Latin characters.
21468 (new_fontset_from_font): Register the specified font for all Latin
21469 characters.
21470 (dump_fontset): For a realized fontset, include the base fontset
21471 name in the returned vector.
21472
21473 2008-02-01 Kenichi Handa <handa@m17n.org>
21474
21475 * character.h (CHAR_STRING): Cast C to unsigned on calling
21476 char_string.
21477
21478 * character.c (char_string): Type of arg C changed to unsigned.
21479 Signal an error if C is an invalid character code.
21480
21481 * editfns.c (general_insert_function, Fchar_to_string):
21482 Use CHARACTERP, not INTEGERP.
21483
21484 2008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 * character.h (MIN_MULTIBYTE_LEADING_CODE)
21487 (MAX_MULTIBYTE_LEADING_CODE): New macros.
21488
21489 * regex.c (analyse_first): Fix for multibyte characters in "case
21490 charset:" and "case categoryspec:".
21491
21492 2008-02-01 Andreas Schwab <schwab@suse.de>
21493
21494 * Makefile.in (LIBES): Move standard libraries to the end.
21495
21496 2008-02-01 Kenichi Handa <handa@m17n.org>
21497
21498 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
21499 nonzero, don't shrink the buffer nextb.
21500
21501 * buffer.h (struct buffer_text): New member inhibit_shrinking.
21502
21503 * coding.c (coding_alloc_by_making_gap): New arg offset.
21504 (alloc_destination): Call coding_alloc_by_making_gap with the arg
21505 offset.
21506 (decode_coding_iso_2022): Update coding->safe_charsets.
21507 (decode_coding_gap): Temporarily set
21508 current_buffer->text->inhibit_shrinking to 1.
21509
21510 2008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * xterm.c (x_draw_composite_glyph_string_foreground):
21513 Fix indexing into elements of s->cmp and s->char2b.
21514
21515 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
21516
21517 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
21518
21519 2008-02-01 Kenichi Handa <handa@m17n.org>
21520
21521 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
21522 target_multibyte instead of multibyte.
21523 (re_match_2_internal): Call bcmp_translate with target_multibyte.
21524 (bcmp_translate): Change the argument name from multibyte to
21525 target_multibyte.
21526
21527 2008-02-01 Kenichi Handa <handa@m17n.org>
21528
21529 These changes are to compile a regexp into a pattern that can be
21530 used both for multibyte and unibyte targets.
21531
21532 * Makefile.in (search.o): Depend on charset.h.
21533
21534 * character.c (multibyte_char_to_unibyte_safe): New function.
21535
21536 * search.c: Include "charset.h".
21537 (compile_pattern_1): Delete argument multibyte. Don't set
21538 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
21539 (compile_pattern): Don't compare cp->buf.target_multibyte.
21540 Compare cp->buf.charset_unibyte.
21541 (compile_pattern): Set cp->buf.target_multibyte.
21542
21543 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
21544
21545 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
21546
21547 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
21548 multibyte. Change callers.
21549 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
21550 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
21551 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
21552 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
21553 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
21554 (regex_compile): Make the compiled pattern usable both for
21555 multibyte and unibyte targets.
21556 (analyse_first): Make the fastmap usable both for multibyte and
21557 unibyte targets.
21558 (TRANSLATE_VIA_MULTIBYTE): Delete.
21559 (re_match_2_internal): Pay attention to the case that the
21560 multibyteness of bufp and target may be different.
21561
21562 2008-02-01 Kenichi Handa <handa@m17n.org>
21563
21564 * xdisp.c (x_produce_glyphs): When a font is not found, make the
21565 empty box occupy at least one column width.
21566
21567 2008-02-01 Miles Bader <miles@gnu.org>
21568
21569 * Makefile.in: Remove redundant HAVE_XFT clause.
21570
21571 2008-02-01 Kenichi Handa <handa@m17n.org>
21572
21573 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
21574
21575 2008-02-01 Kenichi Handa <handa@m17n.org>
21576
21577 * fontset.c (Finternal_char_font): Fix for the case of POSITION
21578 being nil.
21579
21580 2008-02-01 Kenichi Handa <handa@m17n.org>
21581
21582 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
21583
21584 2008-02-01 Kenichi Handa <handa@m17n.org>
21585
21586 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
21587
21588 2008-02-01 Kenichi Handa <handa@m17n.org>
21589
21590 * search.c (simple_search): Fix previous change.
21591
21592 2008-02-01 Kenichi Handa <handa@m17n.org>
21593
21594 * xftfont.c (ftfont_font_format): Extern declaration.
21595
21596 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
21597
21598 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
21599 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
21600
21601 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
21602 (ftfont_font_format): Fix previous change.
21603
21604 * font.h (Ffont_xlfd_name): EXFUN it.
21605
21606 * font.c (font_parse_xlfd): Fix the array size of `f'.
21607 (register_font_driver): Use EQ to compare driver->type.
21608
21609 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
21610 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
21611 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
21612
21613 2008-02-01 Kenichi Handa <handa@m17n.org>
21614
21615 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
21616 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
21617
21618 2008-02-01 Kenichi Handa <handa@m17n.org>
21619
21620 * xfont.c (xfont_open): Set font->format.
21621
21622 * xftfont.c (xftfont_open): Set font->format.
21623
21624 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
21625 (ftfont_list): Include FC_FONTFORMAT in FcObject.
21626 (ftfont_open): Set font->format.
21627 (ftfont_font_format): New function.
21628
21629 * font.h (struct font): New member format.
21630
21631 * font.c (Qopentype): New variable.
21632 (syms_of_font): Defsym it.
21633 (Fquery_font): Change the format of the last element of the return
21634 value.
21635
21636 2008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * xfns.c (xic_create_xfontset): Try the default fontset name as a
21639 last resort.
21640
21641 2008-02-01 Kenichi Handa <handa@m17n.org>
21642
21643 * coding.c (detect_coding_charset): Fix detection of multi-byte
21644 charset.
21645
21646 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
21647
21648 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
21649
21650 2008-02-01 Kenichi Handa <handa@m17n.org>
21651
21652 * xdisp.c (get_next_display_element): Set it->face_id for the
21653 first component of a composition.
21654 (x_produce_glyphs): Check if the font is changed or not for composition.
21655
21656 2008-02-01 Kenichi Handa <handa@m17n.org>
21657
21658 * fontset.c (Qlatin): New variable.
21659 (syms_of_fontset): Define it as a lisp symbol.
21660 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
21661
21662 2008-02-01 Kenichi Handa <handa@m17n.org>
21663
21664 * font.c (font_unparse_fcname): Pay attention to the case that
21665 some of font property is a null string.
21666
21667 2008-02-01 Kenichi Handa <handa@m17n.org>
21668
21669 * term.c: Include "composite.h".
21670 (encode_terminal_code): Output all components of composition.
21671 Check the size of encode_terminal_src.
21672 (produce_glyphs): For composition, call produce_composite_glyph.
21673 (append_composite_glyph, produce_composite_glyph): New functions.
21674
21675 * xdisp.c (x_produce_glyphs): In handling composition, if a font
21676 is not found, get font_info from the current ascii face.
21677
21678 2008-02-01 Kenichi Handa <handa@m17n.org>
21679
21680 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
21681 buffer-file-name to Qnil before calling insert_from_buffer.
21682
21683 * font.c (font_unparse_fcname): Pay attention to the case that
21684 foundry is a null string.
21685
21686 2008-02-01 Kenichi Handa <handa@m17n.org>
21687
21688 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
21689
21690 * font.c (Qunicode_sip): New variable.
21691 (syms_of_font): Declare it as a Lisp symbol.
21692
21693 * font.h (Qunicode_sip): Extern it.
21694
21695 2008-02-01 Kenichi Handa <handa@m17n.org>
21696
21697 * composite.c (get_composition_id): Pay attention to TAB component.
21698
21699 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
21700 TAB. Adjust for the change of s->char2b which always points to
21701 the first element of allocated memory.
21702
21703 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
21704
21705 * xdisp.c (handle_composition_prop): Set it->c to the first
21706 non-TAB component.
21707 (fill_composite_glyph_string): Change argument.
21708 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
21709 (x_produce_glyphs): Fix handling of left/right padding.
21710
21711 2008-02-01 Kenichi Handa <handa@m17n.org>
21712
21713 * coding.c (detect_coding_system): Fix for handling off
21714 inhibit_iso_escape_detection. Fix for the case that no coding
21715 system is defined for a specific coding category.
21716
21717 2008-02-01 Kenichi Handa <handa@m17n.org>
21718
21719 * font.c (font_matching_entity): Delete unused local var.
21720
21721 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
21722 opening a font.
21723
21724 * fileio.c (Finsert_file_contents): On recovering a file, assume
21725 Unix-like eol.
21726 (choose_write_coding_system): On auto-saving a file, force
21727 Unix-like eol.
21728
21729 * coding.c (setup_coding_system): Fix setting of
21730 coding->common_flags based on eol_type.
21731 (coding_inherit_eol_type): If PARENT is not nil, be sure to
21732 inherit from it.
21733
21734 2008-02-01 Kenichi Handa <handa@m17n.org>
21735
21736 * alloc.c (NSTATICS): Increas to 0x600.
21737
21738 2008-02-01 Kenichi Handa <handa@m17n.org>
21739
21740 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
21741 (ftfont_list): Don't check :name property.
21742 (ftfont_match): New function.
21743 (ftfont_pattern_entity): If the pattern doesn't contain
21744 FC_SPACING, don't assume FC_MONO.
21745
21746 * font.h (struct font_driver): New member `match'.
21747 (font_update_drivers): Adjust prototype.
21748
21749 * font.c (font_parse_fcname, font_parse_name): Don't change :name
21750 property of FONT.
21751 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
21752 Define them unconditionally.
21753 (font_matching_entity): New function.
21754 (font_open_by_name): Try font_matching_entity if exact match is
21755 not found.
21756 (font_update_drivers): Delete the arg FONT. Return a list of
21757 actually used backends. Don't free faces, font caches here.
21758 Don't store data in frame parameters. Don't call x_set_font.
21759 (Ffont_spec): Store :name property as is.
21760 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
21761 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
21762 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
21763 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
21764 Call font->driver->otf_gsub instead of font_otf_gsub.
21765
21766 * frame.c (x_set_font_backend): Do more works that were done in
21767 font_update_drivers before.
21768
21769 * xfont.c (xfont_match): New function.
21770 (xfont_driver): Set xfont_driver.match to xfont_match.
21771 (xfont_draw): Set font in GC if necessary.
21772
21773 * ftxfont.c (ftxfont_match): New function.
21774 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
21775
21776 * xftfont.c (xftfont_match): New function.
21777 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
21778
21779 2008-02-01 Kenichi Handa <handa@m17n.org>
21780
21781 * font.h (struct font): New member scalable.
21782 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
21783 (font_otf_gsub): Adjust prototype.
21784
21785 * font.c (font_otf_capability): Fix handling of the default langsys.
21786 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
21787 Check the contents of SPEC.
21788 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
21789 (check_gstring): New function.
21790 (REPLACEMENT_CHARACTER): New macro.
21791 (font_otf_gsub): New arg alternate_subst. Be sure to set all
21792 glyph codes of GSTRING.
21793 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
21794 (font_prepare_composition): Set cmp->glyph_len.
21795 (font_open_entity): Set font->scalable.
21796 (Ffont_get): Handle :otf property.
21797 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
21798 New functions.
21799 (Fquery_font): Use font->font.full_name.
21800 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
21801 Sfont_otf_alternates.
21802
21803 * ftfont.c (ftfont_open): Set font->font.full_name and
21804 font->font.name properly. Fix calculation of font->font.height
21805 and font->min_width.
21806
21807 * ftxfont.c (ftxfont_create_gcs): New function.
21808 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
21809 (ftxfont_draw_backgrond): Fix filling region.
21810 (ftxfont_default_fid): New function.
21811 (ftxfont_open): Set xfont->fid to the return value of
21812 ftxfont_default_fid.
21813 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
21814 (ftxfont_done_face): Free only GCs that are created by
21815 ftxfont_create_gcs.
21816 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
21817
21818 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
21819 Clip to src->width, etc (not src->clip_XXX).
21820
21821 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
21822 FontBackend frame parameter.
21823
21824 2008-02-01 Kenichi Handa <handa@m17n.org>
21825
21826 * font.h (struct font_driver_list): New member `on'.
21827 (Fclear_font_cache): EXFUN it.
21828 (font_update_drivers): Extern it.
21829
21830 * font.c (font_unparse_fcname): Fix typo (swidth->width).
21831 (font_list_entities): Check driver_list->on.
21832 (register_font_driver): Initialize `on' member to 0.
21833 (font_update_drivers): New function.
21834 (Fclear_font_cache): Check driver_list->on.
21835
21836 * frame.h (Qfont_backend): Extern it.
21837 (x_set_font_backend): Extern it.
21838
21839 * frame.c (Qfont_backend): New variable.
21840 (frame_parms): New element for font-backend.
21841 (x_set_font_backend): New function.
21842
21843 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
21844 FontBackend frame parameter.
21845 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
21846 x_set_font_backend.
21847
21848 * xfont.c (xfont_list): Don't try listing by :name property if the
21849 name is not for XLFD.
21850
21851 2008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
21854 (LGLYPH_SET_TO): New macros.
21855 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
21856 element of G is vector or not.
21857 (font_at): Extern it.
21858
21859 * font.c: Include window.h.
21860 (font_lispy_object): New function.
21861 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
21862 end of valid glyph.
21863 (font_close_object): Fix getting (struct font *).
21864 (font_at): New function.
21865 (Ffont_get): If FONT is a font-object, get entity from it.
21866 (Ffont_make_gstring): Initialize elements of glyphs with nil.
21867 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
21868 Fix range check.
21869 (Ffont_at): New function.
21870 (syms_of_font): Defsubr Sfont_at.
21871
21872 * xdisp.c (it_props): Move the entry for Qauto_composed to just
21873 before the entry for Qcomposition.
21874 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
21875 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
21876 the font in gstring.
21877 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
21878 LGLYPH_FORM (g) to detect the end of valid glyph.
21879 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
21880 we are composing with gstring.
21881
21882 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
21883 Check if adjustment is vector or not.
21884
21885 * Makefile.in (font.o): Make it depends on window.h.
21886
21887 2008-02-01 Kenichi Handa <handa@m17n.org>
21888
21889 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
21890 adjustment is vector or not.
21891
21892 2008-02-01 Miles Bader <miles@gnu.org>
21893
21894 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
21895
21896 2008-02-01 Kenichi Handa <handa@m17n.org>
21897
21898 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
21899 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
21900 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
21901
21902 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
21903 (DEVICE_DELTA): Fix typo.
21904 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
21905 LGLYPH format.
21906
21907 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21908 the change of LGLYPH format.
21909
21910 2008-02-01 Kenichi Handa <handa@m17n.org>
21911
21912 * ftfont.c (ftfont_list): Fix typo.
21913 (ftfont_build_basic_charsets): Don't include letters with diacritics.
21914
21915 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21916
21917 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
21918
21919 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
21920 xftface_info is non-NULL.
21921
21922 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21923
21924 * ftfont.c (ftfont_list): Move misplaced #endif.
21925
21926 2008-02-01 Kenichi Handa <handa@m17n.org>
21927
21928 * ftfont.c (ftfont_list): Pay attention to the case that
21929 FC_CAPABILITY is not defined.
21930
21931 2008-02-01 Kenichi Handa <handa@m17n.org>
21932
21933 * xftfont.c (xftfont_open): Set charset related members to -1.
21934
21935 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
21936 QCname.
21937 (ftfont_open): Set charset related members to -1.
21938
21939 * fontset.c (Votf_script_alist): New variable.
21940 (syms_of_fontset): Initialize it.
21941 (fontset_font): Delete unused variable.
21942
21943 * fontset.h (Votf_script_alist): Extern it.
21944
21945 * font.c (font_find_for_lface): Optimize code.
21946
21947 * font.h (font_close_object, font_merge_old_spec): Extern them.
21948
21949 2008-02-01 Kenichi Handa <handa@m17n.org>
21950
21951 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
21952 (syms_of_font): Initialize them.
21953 (font_pixel_size): Allow float value in dpi.
21954 (font_prop_validate_type): Delete.
21955 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
21956 Change caller.
21957 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
21958 (font_prop_validate_extra): Delete.
21959 (font_prop_validate_spacing): New function.
21960 (font_property_table): Add elements for all known properties.
21961 (get_font_prop_index): Rename from check_font_prop_name.
21962 New argument FROM. Change caller.
21963 (font_prop_validate): Validate all known properties.
21964 (font_put_extra): Delete argument force. Change caller.
21965 (font_expand_wildcards): Make it static. Fix the way of shrinking
21966 the possible range.
21967 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
21968 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
21969 Change caller.
21970 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21971 (font_parse_fcname): Delete argument merge. Fix parsing of point
21972 size. Don't validate properties values here. Change caller.
21973 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21974 (font_open_by_name): Delete unused variable.
21975 (Ffont_spec): Likewise. Validate property values.
21976 (Ffont_match_p): New function.
21977
21978 * font.h (QCscalable): Extern it.
21979 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21980
21981 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21982
21983 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21984 (xfont_list_pattern): New function.
21985 (xfont_list): Use xfont_list_pattern.
21986
21987 2008-02-01 Kenichi Handa <handa@m17n.org>
21988
21989 * font.h (Flist_fonts): EXFUN it.
21990
21991 2008-02-01 Jason Rumney <jasonr@gnu.org>
21992
21993 * w32term.c (w32_initialize): Add back smoothing_type and
21994 smoothing_enabled definitions.
21995
21996 2008-02-01 Kenichi Handa <handa@m17n.org>
21997
21998 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21999 s->face->font on determining underline position.
22000
22001 2008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
22004 (font_has_char): Accept font-object too.
22005 (font_find_for_lface): Try at first with a size specified in face.
22006
22007 2008-02-01 Kenichi Handa <handa@m17n.org>
22008
22009 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
22010 font_open_by_name.
22011
22012 2008-02-01 Kenichi Handa <handa@m17n.org>
22013
22014 * font.h (QCspacing, QCdpi): Extern them.
22015 (enum font_spacing): New enum.
22016 (FONT_PIXEL_SIZE_QUANTUM): New macro.
22017
22018 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
22019 (QCspacing, QCdpi): New variables.
22020 (syms_of_font): Initialize them.
22021 (font_pixel_size): New function.
22022 (font_put_extra): New function.
22023 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
22024 in FONT_EXTRA.
22025 (font_parse_fcname): Handle enumerated values (e.g. bold).
22026 Fix handling font size. Add QCname property that contains only
22027 unknown properties.
22028 (font_score): Change argument. Change caller. Pay attention to
22029 FONT_PIXEL_SIZE_QUANTUM.
22030 (font_sort_entites, font_list_entities, font_find_for_lface)
22031 (font_open_for_lface, font_open_by_name): Fix handling of font size.
22032 (Ffont_spec): Add QCname property that contains only unknown properties.
22033
22034 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
22035 Don't include weight in listing pattern, instead check weight of each
22036 listed font. Don't include scalable in pattern. Pay attention to
22037 FONT_PIXEL_SIZE_QUANTUM.
22038
22039 2008-02-01 Kenichi Handa <handa@m17n.org>
22040
22041 * font.c (font_parse_fcname): Fix parsing of point-size.
22042 (font_unparse_fcname): Produce symbolic names for style properties.
22043 (font_list_entities): Handle float size correctly.
22044 (font_open_by_name): Prefer `normal' property values if the name
22045 doesn't specify them.
22046
22047 * fontset.c (Finternal_char_font): Use font_get_name, not
22048 Ffont_xlfd_name.
22049
22050 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
22051 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
22052 pattern. Don't force scalable.
22053
22054 * xftfont.c (xftfont_open): For generating a name, start from
22055 96-byte buffer.
22056
22057 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22058
22059 * frame.h (x_new_fontset2): Fix prototype.
22060
22061 2008-02-01 Kenichi Handa <handa@m17n.org>
22062
22063 * font.h (struct font_driver): Delete member parse_name.
22064 (font_match_p, font_get_spec, font_parse_fcname)
22065 (font_unparse_fcname): Extern them.
22066 (font_get_name): Adjust prototype.
22067
22068 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
22069 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
22070 (font_expand_wildcards): Fix handling ENCODING field.
22071 Avoid unnecessary checks for weight, slant, and swidth.
22072 (font_parse_fcname): New function.
22073 (font_unparse_fcname): New function.
22074 (font_parse_name): New function.
22075 (font_match_p): New function.
22076 (font_get_name): Change return value to Lisp string.
22077 (font_get_spec): New function.
22078 (Qunspecified, Qignore_defface): Don't extern them.
22079 (font_find_for_lface): Assume that LFACE is fully specified.
22080 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
22081 object, use it for FACE.
22082 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
22083 driver->parse_name.
22084 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
22085
22086 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
22087 prototype.
22088
22089 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
22090 argument F. Don't call Fnew_fontset. Instead, directly call
22091 make_fontset.
22092
22093 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
22094
22095 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
22096 of x_new_fontset2.
22097
22098 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
22099 (Qsans__serif): New variables.
22100 (ftfont_generic_family_list): New variable.
22101 (syms_of_ftfont): Initialize the above variables.
22102 (ftfont_pattern_entity): Delete argument NAME.
22103 (ftfont_list_generic_family): New function.
22104 (ftfont_parse_name): Delete this function.
22105 (ftfont_list): Try generic family only when FcFontList found no font.
22106 (ftfont_list_family): Fix args to FcObjectSetBuild.
22107
22108 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
22109 object in attrs[LFACE_FONT_INDEX].
22110 (set_lface_from_font_name): Cancel all changes for font-backend.
22111 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
22112 function.
22113 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
22114 font object in QCfont attribute.
22115 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
22116 (realize_default_face) [USE_FONT_BACKEND]: Call
22117 set_lface_from_font_and_fontset.
22118
22119 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
22120 "fixed", and signal error here if no suitable font was found.
22121
22122 * xfont.c (xfont_parse_name): Delete this function.
22123
22124 * xftfont.c (xftfont_open): Change coding style of error
22125 handling. Generate fontconfig's fontname pattern.
22126
22127 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
22128 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
22129
22130 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
22131 Both args FONTSET and FONT_OBJECT must be existing ones.
22132
22133 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22134
22135 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
22136
22137 2008-02-01 Kenichi Handa <handa@m17n.org>
22138
22139 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
22140
22141 * font.h (struct font): Fix typo.
22142
22143 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
22144 XLFD_XXX_INDEX.
22145 (enum xlfd_field_mask): New enum.
22146 (intern_font_field): Changed argument. Change caller. If digits
22147 are followed by non-digits, return a symbol.
22148 (font_expand_wildcards): New function.
22149 (font_parse_xlfd): Fix wildcard handling.
22150 (Ffont_spec): If :name is specified, reflect the info in the other
22151 properties.
22152
22153 * ftfont.c (ftfont_pattern_entity): Fix typo.
22154 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
22155 locale.
22156
22157 2008-02-01 Kenichi Handa <handa@m17n.org>
22158
22159 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
22160
22161 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
22162 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
22163 registry doesn't specify encoding part.
22164 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
22165 (font_open_by_name): At first try parsing the name.
22166 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
22167 as Lisp symbols.
22168
22169 * fontset.c (reorder_font_vector): Pay attention to the case that
22170 the 3rd element of font_def is nil.
22171 (fontset_font): For the default fontset, append one more fontset
22172 elements for a script-based font specification. Don't add script
22173 attribute on finding a font.
22174 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
22175 font name.
22176 (fontset_ascii_font): If a font can't be opened, return nil.
22177
22178 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
22179 (ftfont_pattern_entity): New function.
22180 (ftfont_get_cache): Assume that freetype_font_cache is already
22181 initialized.
22182 (ftfont_list): Handle the case that a file is specified in font
22183 name. Use ftfont_pattern_entity to generate entities.
22184 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
22185 (syms_of_ftfont): Initialize freetype_font_cache.
22186
22187 * xftfont.c (xftfont_open): Make the font name fontconfig's
22188 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
22189 (xftfont_close): Free font->font.name if not NULL.
22190
22191 * xfont.c (xfont_list): If script is specified for a font, return
22192 null_vector.
22193 (xfont_list_family): Declare argument type.
22194
22195 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
22196 name, set LFACE_FONT (lface) to nil.
22197
22198 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
22199 return Qnil.
22200
22201 2008-02-01 Kenichi Handa <handa@m17n.org>
22202
22203 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
22204 (standard_args): Add "-enable-font-backend".
22205
22206 2008-02-01 Kenichi Handa <handa@m17n.org>
22207
22208 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
22209 (struct xftdraw_list, xftdraw_list): Delete them.
22210 (register_xftdraw, check_xftdraw): Delete them.
22211 (xftfont_prepare_face): Don't call register_xftdraw.
22212 (xftfont_done_face): Don't call check_xftdraw.
22213 (xftfont_draw): Get background color only when with_background is
22214 nonzero.
22215
22216 * xfont.c (xfont_encode_char): Fix calculation of char2b.
22217
22218 2008-02-01 Kenichi Handa <handa@m17n.org>
22219
22220 These changes are for the new font handling codes.
22221
22222 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
22223 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
22224 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
22225 (FONTSRC, FONTOBJ): New variables.
22226 (obj): Add $(FONTOBJ).
22227 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
22228 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
22229 @LIBOTF_LIBS@.
22230 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
22231 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
22232
22233 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
22234
22235 * character.h (Vscript_representative_chars): Extern it.
22236
22237 * character.c (Vscript_representative_chars): New variable.
22238 (syms_of_character): Declare it as a Lisp variable.
22239
22240 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
22241 enable_font_backend is nonzero, accept the composition method
22242 COMPOSITION_WITH_GLYPH_STRING.
22243
22244 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
22245 enumeration COMPOSITION_WITH_GLYPH_STRING.
22246
22247 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
22248 members clip_x, clip_y, clip_width, and clip_height.
22249 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
22250
22251 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
22252 --enable-font-backend. Call syms_of_font.
22253
22254 * fns.c (assoc_no_quit): New function.
22255
22256 * fontset.h (FONT_INFO_FROM_FACE): New macro.
22257 (face_for_font, new_fontset_from_font)
22258 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
22259
22260 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
22261 (fontset_font, fontset_ascii, face_for_char)
22262 (make_fontset_for_ascii_face, Ffont_info)
22263 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
22264 is nonzero, use font-backend mechanism.
22265 (find_font_encoding): Make it non-static.
22266 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
22267 New functions.
22268
22269 * frame.h (struct frame): New members resx and resy.
22270 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
22271 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
22272
22273 * frame.c [USE_FONT_BACKEND]: Include "font.h".
22274 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
22275
22276 * lisp.h (assoc_no_quit): Extern it.
22277
22278 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
22279 Through out the file, use FONT_INFO_FROM_FACE instead of
22280 FONT_INFO_FROM_ID, use get_per_char_metric instead of
22281 rif->per_char_metric.
22282 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
22283 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
22284 (get_glyph_face_and_encoding, fill_composite_glyph_string)
22285 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22286 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
22287 nonzero, use font-backend mechanism.
22288 (get_per_char_metric): New function.
22289
22290 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
22291 (set_lface_from_font_name)
22292 (set_font_frame_param, free_realized_face)
22293 (prepare_face_for_display, clear_face_gcs)
22294 (Finternal_set_font_selection_order, realize_x_face)
22295 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
22296 font-backend mechanism.
22297 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
22298 (load_face_font) [USE_FONT_BACKEND]: Abort.
22299 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
22300 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
22301
22302 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
22303 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
22304 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
22305 nonzero, register all available font drivers.
22306 Call x_default_font_parameter for deciding a font.
22307 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
22308
22309 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
22310 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
22311 (x_set_glyph_string_clipping_exactly)
22312 (x_compute_glyph_string_overhangs)
22313 (x_draw_glyph_string_foreground)
22314 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
22315 (x_free_frame_resources) [USE_FONT_BACKEND]: If
22316 enable_font_backend is nonzero, use font-backend mechanism.
22317 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
22318
22319 2008-02-01 Kenichi Handa <handa@m17n.org>
22320
22321 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
22322 system_eol_type.
22323 (syms_of_coding): Initialize system_eol_type.
22324
22325 * process.c (Fset_process_coding_system): Inherit system's eol
22326 format if necessary.
22327
22328 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22329
22330 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
22331
22332 2008-02-01 Kenichi Handa <handa@m17n.org>
22333
22334 * coding.c (decode_eol): Pay attention to buffer relocation in
22335 del_range_2.
22336 (decode_coding): Call decode_eol before restoring undo_list.
22337
22338 2008-02-01 Kenichi Handa <handa@m17n.org>
22339
22340 * charset.c (Fdefine_charset_internal): Fix setting of
22341 emacs_mule_bytes.
22342
22343 2008-02-01 Kenichi Handa <handa@m17n.org>
22344
22345 * keyboard.c (read_char): Check if C is a character or not before
22346 looking up Vkeyboard_translate_table.
22347
22348 2008-02-01 Kenichi Handa <handa@m17n.org>
22349
22350 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
22351 Fix condition to terminate the loop.
22352
22353 2008-02-01 Kenichi Handa <handa@m17n.org>
22354
22355 * coding.c (produce_composition): Compare charbuf[i] instead of
22356 args[i] against 0.
22357 (Fterminal_coding_system): Use EQ to compare Lisp objects.
22358
22359 2008-02-01 Kenichi Handa <handa@m17n.org>
22360
22361 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
22362 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
22363 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
22364 detect_coding.
22365 (emacs_mule_char): Handle old style (Emacs 20) component character
22366 of a composition.
22367 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
22368 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
22369 composition rule.
22370 (decode_coding_emacs_mule): Handle invalid bytes correctly.
22371
22372 2008-02-01 Kenichi Handa <handa@m17n.org>
22373
22374 * coding.c (encode_coding_ccl): Allocate destination dynamically
22375 when necessary.
22376
22377 2008-02-01 Kenichi Handa <handa@m17n.org>
22378
22379 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
22380 the loop. When quitted, show a proper error message.
22381
22382 2008-02-01 Kenichi Handa <handa@m17n.org>
22383
22384 * xterm.c (x_set_glyph_string_clipping_exactly):
22385 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
22386
22387 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
22388 character sequence.
22389 (Fccl_execute_on_string): Use ASET, not XSET.
22390
22391 2008-02-01 Kenichi Handa <handa@m17n.org>
22392
22393 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
22394
22395 2008-02-01 Kenichi Handa <handa@m17n.org>
22396
22397 * coding.c (decode_coding): Fix the condition of terminating the
22398 decoding loop.
22399
22400 2008-02-01 Kenichi Handa <handa@m17n.org>
22401
22402 * data.c (Faset): On setting a character bigger than 255 in a
22403 unibyte string, signal an error instead of make the string multibyte.
22404
22405 2008-02-01 Kenichi Handa <handa@m17n.org>
22406
22407 * charset.c (map_charset_chars): Fix for ascii-compatible charset
22408 made by a mapping table.
22409
22410 2008-02-01 Kenichi Handa <handa@m17n.org>
22411
22412 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
22413 not.
22414 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
22415 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
22416
22417 * xterm.c (x_draw_composite_glyph_string_foreground):
22418 Check s->face is NULL or not.
22419
22420 2008-02-01 Kenichi Handa <handa@m17n.org>
22421
22422 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
22423 (x_draw_glyph_string): Fix drawing of right_overhang and
22424 left_overhang around/on cursor.
22425
22426 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
22427
22428 2008-02-01 Kenichi Handa <handa@m17n.org>
22429
22430 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
22431
22432 2008-02-01 Kenichi Handa <handa@m17n.org>
22433
22434 * coding.c (Fdefine_coding_system_internal)
22435 (Fdefine_coding_system_alias): Avoid a duplicated element in
22436 Vcoding_system_alist.
22437
22438 2008-02-01 Kenichi Handa <handa@m17n.org>
22439
22440 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
22441
22442 * coding.c (Qcoding_system_define_form): New variable.
22443 (syms_of_coding): Intern and staticpro it.
22444 (Fcoding_system_p): Check Qcoding_system_define_form.
22445 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
22446
22447 * coding.h (CODING_SYSTEM_P): If ID is not available, call
22448 Fcoding_system_p.
22449 (CHECK_CODING_SYSTEM): If ID is not available, call
22450 Fcheck_coding_system.
22451 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
22452 Try also Fcheck_coding_system.
22453
22454 2008-02-01 Kenichi Handa <handa@m17n.org>
22455
22456 * coding.c (code_conversion_restore): GCPRO arg.
22457
22458 2008-02-01 Kenichi Handa <handa@m17n.org>
22459
22460 * character.c (lisp_string_width): Check multibyteness of STRING.
22461
22462 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22463
22464 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
22465 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
22466 (decode_mac_font_name): Use decode_coding_c_string instead of
22467 decode_coding.
22468 (x_load_font): Initialize fontp->fontset to -1.
22469 Set fontp->encoding_type.
22470
22471 2008-02-01 Kenichi Handa <handa@m17n.org>
22472
22473 * search.c (search_buffer): Give up BM search on case-fold-search
22474 if one of a target character has a case-equivalence of different
22475 byte length even if that target character is an ASCII.
22476 (simple_search): Fix calculation of byte length of matched text.
22477 (boyer_moore): Fix handling of case-equivalent multibyte characters.
22478
22479 2008-02-01 Kenichi Handa <handa@m17n.org>
22480
22481 * coding.c (decode_coding): Fix handling of invalid bytes.
22482
22483 2008-02-01 Kenichi Handa <handa@m17n.org>
22484
22485 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
22486 Unicode characters.
22487
22488 2008-02-01 Kenichi Handa <handa@m17n.org>
22489
22490 * coding.c (encode_coding_object): If a pre-write-conversion
22491 function makes a new buffer, kill it.
22492
22493 2008-02-01 Kenichi Handa <handa@m17n.org>
22494
22495 * coding.c (QCascii_compatible_p): New variable.
22496 (syms_of_coding): Initialize it.
22497 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
22498 calling string_char.
22499 (record_conversion_result): Add `default:' case.
22500 (coding_charset_list): Delete unused variable `coding_type'.
22501 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
22502 property in the plist of the coding system.
22503 (Fcoding_system_put): Check QCascii_compatible_p.
22504
22505 2008-02-01 Miles Bader <miles@gnu.org>
22506
22507 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
22508 removed calculation of frame `f', as it's now used.
22509
22510 2008-02-01 Kenichi Handa <handa@m17n.org>
22511
22512 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
22513 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
22514 (UNIDATA): New variable.
22515 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
22516 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
22517 Run $(RUN_TEMACS) unconditionally.
22518
22519 2008-02-01 Kenichi Handa <handa@m17n.org>
22520
22521 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
22522 (admindir): New variable.
22523 ($(lispsource)international/charprop.el): New target.
22524
22525 2008-02-01 Miles Bader <miles@gnu.org>
22526
22527 * character.c (chars-in-region): Remove obsolete function.
22528 (syms_of_character): Remove its initialization.
22529
22530 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
22531
22532 * w32select.c (validate_coding_system)
22533 (setup_windows_coding_system): New functions.
22534 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
22535 Use setup_windows_coding_system.
22536 (setup_config, Fw32_get_clipboard_data):
22537 Use validate_coding_system.
22538 (Fx_selection_exists): Move call to setup_config to a place
22539 where signals are allowed.
22540
22541 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
22542 (Fcheck_coding_system): Add declarations.
22543
22544 2008-02-01 Kenichi Handa <handa@m17n.org>
22545
22546 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
22547
22548 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22549
22550 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
22551 string as the second argument for x_new_fontset.
22552
22553 2008-02-01 Kenichi Handa <handa@m17n.org>
22554
22555 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
22556 (encode_coding_object): Use safe_call instead of call2.
22557
22558 2008-02-01 Kenichi Handa <handa@m17n.org>
22559
22560 * fontset.c (Fset_fontset_font): Check family element of a given vector.
22561
22562 * Makefile.in (lisp): Include charprop.el.
22563
22564 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22565
22566 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
22567 Not sure if it's unnecessary.
22568
22569 2008-02-01 Steven Tamm <steventamm@mac.com>
22570
22571 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
22572 some possibly unnecessary fontset checking code that crashed
22573 when creating a new frame.
22574
22575 2008-02-01 Kenichi Handa <handa@m17n.org>
22576
22577 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
22578 lookup_face.
22579
22580 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
22581
22582 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
22583
22584 2008-02-01 Kenichi Handa <handa@m17n.org>
22585
22586 * coding.c: Cancel the change done in HEAD on 2008-02-01.
22587 (coding_charset_list): New function.
22588
22589 * coding.h (coding_charset_list): Extern it.
22590
22591 2008-02-01 Kenichi Handa <handa@m17n.org>
22592
22593 * fontset.c (Fset_fontset_font): Call find_font_encoding with
22594 concatenation of family and registry.
22595
22596 2008-02-01 Kenichi Handa <handa@m17n.org>
22597
22598 * character.h (BYTE8_STRING): Fix typo.
22599
22600 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
22601 string to multibyte (sync to HEAD).
22602
22603 * casefiddle.c (casify_region): Handle changes in byte-length
22604 using replace_range_2 (sync to HEAD).
22605
22606 2008-02-01 Andreas Schwab <schwab@suse.de>
22607
22608 * chartab.c (map_char_table): GCPRO table and arg.
22609
22610 2008-02-01 Kenichi Handa <handa@m17n.org>
22611
22612 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
22613 already at limit.
22614
22615 2008-02-01 Kenichi Handa <handa@m17n.org>
22616
22617 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
22618 instead of fast_c_string_match_ignore_case.
22619 (find_font_encoding): Change argument to Lisp_Object.
22620 Use fast_string_match_ignore_case instead of
22621 fast_c_string_match_ignore_case. Change caller.
22622
22623 2008-02-01 Kenichi Handa <handa@m17n.org>
22624
22625 * xdisp.c (get_next_display_element): In unibyte case, decide to
22626 display in octal form by checking a character by
22627 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
22628
22629 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
22630
22631 * character.c (unibyte_has_multibyte_table): New variable.
22632
22633 * character.h (unibyte_has_multibyte_table): Extern it.
22634 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
22635
22636 2008-02-01 Kenichi Handa <handa@m17n.org>
22637
22638 * coding.c (encode_coding_iso_2022): Fix handling of charset
22639 annotation.
22640
22641 2008-02-01 Kenichi Handa <handa@m17n.org>
22642
22643 * coding.c (setup_coding_system): If coding_system is nil, use
22644 Qundecided.
22645 (Fterminal_coding_system): Return nil if terminal coding system is
22646 `undecided'.
22647 (syms_of_coding): Define coding-system `undecided' here.
22648 Setup terminal_coding as `undecided'.
22649
22650 2008-02-01 Kenichi Handa <handa@m17n.org>
22651
22652 * xdisp.c (message_dolog, set_message_1):
22653 Call unibyte_char_to_multibyte with arg type int.
22654
22655 * lread.c (read1): Fix reading of a char-table.
22656
22657 * print.c (print_object): Include sub char-table in circularities
22658 detection.
22659
22660 2008-02-01 Kenichi Handa <handa@m17n.org>
22661
22662 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
22663 Append the found sequences in car of ARGS instead of prepending.
22664
22665 2008-02-01 Kenichi Handa <handa@m17n.org>
22666
22667 * fileio.c (report_file_error): Make a unibyte string from
22668 strerror (errorno).
22669 (Fsubstitute_in_file_name): Fix the arg to
22670 unibyte_char_to_multibyte. It is evaluated twice.
22671
22672 2008-02-01 Kenichi Handa <handa@m17n.org>
22673
22674 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
22675
22676 2008-02-01 Kenichi Handa <handa@m17n.org>
22677
22678 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
22679 BOM is not found.
22680 (detect_coding, detect_coding_system): Optimization for ISO-2022
22681 when no 8-bit data is found.
22682
22683 2008-02-01 Jason Rumney <jasonr@gnu.org>
22684
22685 * w32fns.c (x_to_w32_font): Update to use new coding struct.
22686
22687 2008-02-01 Kenichi Handa <handa@m17n.org>
22688
22689 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
22690 CHARS.
22691
22692 2008-02-01 Steven Tamm <steventamm@mac.com>
22693
22694 * macterm.c (mac_encode_char): Add charset argument and update
22695 to use encoding_type.
22696 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
22697 switch to pure fontset.
22698 (decode_mac_font_name): Temporarily remove decoding.
22699 (x_font_name_to_mac_font_name): Temporarily remove encoding.
22700 (x_load_font): Temporarily remove encoding.
22701
22702 2008-02-01 Kenichi Handa <handa@m17n.org>
22703
22704 * xfaces.c (Fface_font): If frame is not on a window system,
22705 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
22706 refer to face->font.
22707 (split_font_name_into_vector, build_font_name_from_vector)
22708 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
22709 when HAVE_WINDOW_SYSTEM is defined.
22710
22711 2008-02-01 Kenichi Handa <handa@m17n.org>
22712
22713 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
22714 (x_produce_glyphs): Fix setting of members of cmp in case
22715 cmp->glyph_len is zero.
22716
22717 * fontset.c (Fset_fontset_font): Fix docstring.
22718 (Ffontset_info): Make it backward compatible. New arg ALL.
22719
22720 2008-02-01 Kim F. Storm <storm@cua.dk>
22721
22722 * process.c (read_process_output): Grow decoding_buf when needed;
22723 this could cause a crash in allocate_string and compact_small_strings.
22724
22725 2008-02-01 Kenichi Handa <handa@m17n.org>
22726
22727 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
22728
22729 2008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * coding.c (setup_coding_system): Set coding->common_flags
22732 correctly for raw-text.
22733 (consume_chars): On encoding unibyte text by raw-text, don't check
22734 multibyte form.
22735 (encode_coding): On encoding by raw-text, never use translation tables.
22736
22737 * fileio.c (e_write): Short cut for the case of no encoding.
22738
22739 2008-02-01 Kenichi Handa <handa@m17n.org>
22740
22741 * coding.c (detect_coding, detect_coding_system): Delete unused
22742 variables.
22743
22744 2008-02-01 Kenichi Handa <handa@m17n.org>
22745
22746 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
22747 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
22748
22749 2008-02-01 Kenichi Handa <handa@m17n.org>
22750
22751 * coding.c (Ffind_coding_systems_region_internal):
22752 Include raw-text and no-conversion in the result.
22753
22754 2008-02-01 Kenichi Handa <handa@m17n.org>
22755
22756 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
22757 (load_font_get_repertory): Delete unnecessary check of ENCODING of
22758 FONT_DEF.
22759 (font_def_arg, add_arg, from_arg, to_arg): New args.
22760 (set_fontset_font): Change argument.
22761 (Fset_fontset_font): Fix for the case that TARGET is a script
22762 name and charset name.
22763 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
22764
22765 2008-02-01 Kenichi Handa <handa@m17n.org>
22766
22767 * fontset.c (fontset_font): Rename from fontset_face. Change return
22768 value.
22769 (face_suitable_for_char_p, face_for_char): Adjust for the change
22770 of fontset_font.
22771 (make_fontset_for_ascii_face): Fix setting of the fontset element
22772 for ASCII.
22773 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
22774 to get a font name.
22775 (Ffontset_info): Adjust for the change of fontset_font.
22776
22777 * coding.c (emacs_mule_char): Check invalid code more rigidly.
22778
22779 * character.h (LEADING_CODE_LATIN_1_MIN)
22780 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
22781
22782 2008-02-01 Kenichi Handa <handa@m17n.org>
22783
22784 * editfns.c (check_translation): New function.
22785 (Ftranslate_region_internal): Handle M:N mapping.
22786
22787 2008-02-01 Kenichi Handa <handa@m17n.org>
22788
22789 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
22790
22791 2008-02-01 Kenichi Handa <handa@m17n.org>
22792
22793 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
22794 goto invalid_code.
22795 (decode_coding_iso_2022): Fix handling of invalid designation.
22796
22797 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
22798 after calling code_conversion_save.
22799
22800 2008-02-01 Kenichi Handa <handa@m17n.org>
22801
22802 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
22803
22804 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
22805
22806 * fontset.c: Include "intervals.h".
22807 (fontset_face): Fix comparing of Lisp_Objects.
22808 (free_face_fontset, new_fontset_from_font_name):
22809 Fix Lisp_Object/int mixup.
22810
22811 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
22812
22813 * coding.c: Add many prototypes for static functions.
22814 (get_translation_table): Allow max_lookup to be NULL.
22815 (decode_coding, Ffind_coding_systems_region_internal)
22816 (Funencodable_char_position, Fcheck_coding_systems_region):
22817 Call get_translation_table with max_lookup NULL.
22818
22819 2008-02-01 Kenichi Handa <handa@m17n.org>
22820
22821 * coding.c (get_translation_table): Declare it as Lisp_Object.
22822 (LOOKUP_TRANSLATION_TABLE): New macro.
22823 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
22824 instead of CHAR_TABLE_REF.
22825
22826 2008-02-01 Kenichi Handa <handa@m17n.org>
22827
22828 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
22829 annotation data format.
22830 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
22831 Change arguments FROM and TO to single argument NCHARS. Change caller.
22832 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
22833 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22834 (decode_coding_ccl, decode_coding_charset): Pay attention to
22835 coding->charbuf_used.
22836 (get_translation): New function.
22837 (produce_chars): New arguments translation_table and last_block.
22838 Translate characters here. Return number of carryover chars.
22839 Change caller.
22840 (produce_composition): New argument pos. Change caller.
22841 Adjust for the change of annotation data format.
22842 (produce_charset, produce_annotation): Likewise.
22843 (decode_coding, encode_coding): Don't call translate_chars.
22844 (consume_chars): New arg translation_table. Change caller.
22845 (translate_chars): Delete.
22846 (syms_of_coding): Make translation-table's number of extra slots 2.
22847
22848 2008-02-01 Kenichi Handa <handa@m17n.org>
22849
22850 * search.c (simple_search): Fix setting this_pos_byte in backward
22851 search.
22852
22853 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
22854 byte sequence.
22855 (detect_coding_ccl): Fix setting of the variable valids.
22856
22857 2008-02-01 Kenichi Handa <handa@m17n.org>
22858
22859 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
22860
22861 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
22862
22863 * editfns.c (Ftranslate_region_internal): Rename from
22864 Ftranslate_region. Accept a char-table in TABLE.
22865 (syms_of_editfns): Defsubr Stranslate_region_internal.
22866
22867 * xfaces.c (set_lface_from_font_name): If a font is specified for
22868 a frame, generate a fontset from the font.
22869 (build_scalable_font_name): If the scalable font is requested for
22870 a specific size, don't change that size.
22871 (try_font_list): Try a scalable font also in the case that a
22872 pattern string is specified.
22873
22874 2008-02-01 Kenichi Handa <handa@m17n.org>
22875
22876 * xfaces.c (Fface_font): New optional arg CHARACTER.
22877
22878 2008-02-01 Kenichi Handa <handa@m17n.org>
22879
22880 * charset.h (CHARSET_OFFSET): New macro.
22881
22882 2008-02-01 Kenichi Handa <handa@m17n.org>
22883
22884 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
22885
22886 * fontset.c (fontset_face): Handle the case that repertory is a
22887 char-table.
22888 (find_font_encoding): Return nil for unknown encoding.
22889 (Fset_fontset_font): Ignore a font of unknown encoding.
22890
22891 2008-02-01 Kenichi Handa <handa@m17n.org>
22892
22893 * keymap.c (describe_vector): Handle default value of a char table.
22894
22895 * fontset.c (fontset_face): Handle fallback fonts correctly.
22896 (Ffontset_info): Return infomation about fallback fonts.
22897
22898 2008-02-01 Kenichi Handa <handa@m17n.org>
22899
22900 * fontset.c (FONTSET_DEFAULT): New macro.
22901 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
22902 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
22903 the case that it is nil.
22904 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
22905 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
22906
22907 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
22908 subset or superset.
22909
22910 2008-02-01 Kenichi Handa <handa@m17n.org>
22911
22912 * emacs.c (main): Call init_charset after syms_of_XXX.
22913
22914 * charset.c (Vcharset_map_directory): Delete.
22915 (Vcharset_map_path): New variable.
22916 (load_charset_map_from_file): Use Vcharset_map_path instead.
22917 (init_charset): Initialize Vcharset_map_path.
22918 (syms_of_charset): Delete declaration of "charset-map-directory",
22919 add declaration of "charset-map-path".
22920
22921 2008-02-01 Kenichi Handa <handa@m17n.org>
22922
22923 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
22924 ASCII only string.
22925
22926 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
22927
22928 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
22929 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
22930
22931 2008-02-01 Kenichi Handa <handa@m17n.org>
22932
22933 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
22934
22935 * coding.c (QCmnemonic, QCdefalut_char)
22936 (QCdecode_translation_table, QCencode_translation_table)
22937 (QCpost_read_conversion, QCpre_write_conversion): New variables.
22938 (get_translation_table): Return a list of translation tables if
22939 necessary.
22940 (decode_coding): Call get_translation_table with ENCODEP 0.
22941 (char_encodable_p): If translation_table is non-nil, always call
22942 translate_char.
22943 (Fdefine_coding_system_internal): Accept list of translation
22944 tables as :encode-translation-table and :decode-translation-table.
22945 (Fcoding_system_put): New function.
22946 (syms_of_coding): Declare new symbols.
22947 Defsubr Scoding_system_put.
22948 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
22949 typically JISX0212.
22950
22951 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
22952 when the charset is superset type.
22953
22954 * character.c (translate_char): Accept list of translation tables.
22955
22956 2008-02-01 Kenichi Handa <handa@m17n.org>
22957
22958 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
22959 (CODING_ATTR_TRANS_TBL): New macro.
22960
22961 * coding.c (get_translation_table): New function.
22962 (translate_chars): Fix the bug of skipping annotation data.
22963 (decode_coding, encode_coding): Utilize get_translation_table.
22964 (char_encodable_p, Funencodable_char_position): Translate char if
22965 necessary.
22966 (Ffind_coding_systems_region_internal)
22967 (Fcheck_coding_systems_region): Setup translation table for encode
22968 in a coding system attribute vector in advance.
22969 (Fdefine_coding_system_internal): Allow a symbol as translation
22970 table. For shift-jis type coding system, allow 4th charset.
22971
22972 2008-02-01 Kenichi Handa <handa@m17n.org>
22973
22974 * coding.c (decode_coding_sjis): Check the first byte rigidly.
22975
22976 * xdisp.c (get_next_display_element): Pass -1 as POS to
22977 FACE_FOR_CHAR if displaying a C-string.
22978
22979 2008-02-01 Kenichi Handa <handa@m17n.org>
22980
22981 * composite.c (get_composition_id): Handle xoff and yoff in a
22982 composition rule.
22983
22984 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22985 (struct composition): New member lbearing and rbearing.
22986
22987 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22988 (x_get_glyph_overhangs): Handle a composition glyph.
22989 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22990
22991 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22992 composition glyph.
22993
22994 2008-02-01 Kenichi Handa <handa@m17n.org>
22995
22996 * print.c: Include charset.h.
22997 (Vprint_charset_text_property): New variable.
22998 (Qdefault): Extern it.
22999 (PRINT_STRING_NON_CHARSET_FOUND)
23000 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
23001 (print_check_string_result): New variable.
23002 (print_check_string_charset_prop): New function.
23003 (print_prune_charset_plist): New variable.
23004 (print_prune_string_charset): New function.
23005 (print_object): Call print_prune_string_charset if
23006 Vprint_charset_text_property is not t.
23007 (print_interval): Print nothing if interval->plist is nil.
23008 (syms_of_print): Declare Vprint_charset_text_property as a lisp
23009 variable. Init and staticpro print_prune_charset_plist.
23010
23011 2008-02-01 Kenichi Handa <handa@m17n.org>
23012
23013 * fontset.c (new_fontset_from_font_name): Use the specified font
23014 for all characters in the new fontset.
23015
23016 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23017 OBJECT args.
23018
23019 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
23020 OBJECT args for composition too.
23021
23022 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23023 OBJECT args.
23024
23025 2008-02-01 Kenichi Handa <handa@m17n.org>
23026
23027 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
23028
23029 * fontset.c (reorder_font_vector): Adjust for the change of
23030 FONT_DEF format.
23031 (fontset_face): New arg id. Change caller.
23032 (face_for_char): New args pos and object.
23033 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
23034 (fs_query_fontset): Check NAME by Fassoc too.
23035 (Fset_fontset_font): Allow non-XLFD font name.
23036 (Ffontset_info): Adjust for the change of FONT_DEF format.
23037
23038 * fontset.h (face_for_char): Adjust prototype.
23039
23040 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
23041 (append_space, extend_face_to_end_of_line)
23042 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23043 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
23044
23045 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
23046 POS and OBJECT args.
23047
23048 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
23049 POS and OBJECT args.
23050
23051 2008-02-01 Jason Rumney <jasonr@gnu.org>
23052
23053 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
23054 of GlobalAlloc'ed memory.
23055
23056 2008-02-01 Kenichi Handa <handa@m17n.org>
23057
23058 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
23059
23060 * charset.h (charset_table_used): Delete extern.
23061
23062 * charset.c (charset_table_used): Make it static.
23063 (map_charset_chars): Fix args to c_function with.
23064
23065 * chartab.c (map_sub_char_table_for_charset): Fix args to
23066 c_function with.
23067
23068 * coding.h (enum coding_result_code):
23069 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
23070
23071 * coding.c (Qinsufficient_source, Qinconsistent_eol)
23072 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
23073 (Vlast_code_conversion_error): New variables.
23074 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
23075 (ONE_MORE_BYTE): Record error if any instead of signaling an
23076 error. If non-ASCII multibyte char is found, return the negative
23077 value of the code. All callers changed to check it.
23078 (ONE_MORE_BYTE_NO_CHECK): Likewise.
23079 (record_conversion_result): New function. Change all codes setting
23080 coding->result to call this function.
23081 (detect_coding_utf_8, decode_coding_utf_8)
23082 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
23083 Don't use the local variable incomplete.
23084 (emacs_mule_char): Change the second arg to `const'.
23085 (decode_coding): Fix of flushing out unprocessed data.
23086 (make_conversion_work_buffer): Fix making of a work buffer.
23087 (decode_coding_object): Return coding->dst_object.
23088
23089 * fontset.c (set_fontset_font): Fix args.
23090
23091 * lisp.h (CHARACTERBITS): Define as 22.
23092
23093 * process.c (send_process): Be sure to set coding->src_multibyte.
23094
23095 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
23096
23097 2008-02-01 Kenichi Handa <handa@m17n.org>
23098
23099 * xdisp.c (handle_auto_composed_prop): Give limit to
23100 Fnext_single_char_property_change.
23101
23102 2008-02-01 Kenichi Handa <handa@m17n.org>
23103
23104 * composite.c (syms_of_composite): Don't make the composition hash
23105 table weak.
23106
23107 * fontset.c (Fset_fontset_font): Fix docstring.
23108
23109 * lisp.h (detect_coding_system): Adjust prototype.
23110
23111 * fileio.c (kill_workbuf_unwind): Delete this function.
23112 (Finsert_file_contents): Adjust the call of detect_coding_system.
23113 Get conversion_buffer by code_conversion_save. Use the macro
23114 CODING_MAY_REQUIRE_DECODING. After decoding, update
23115 coding_system.
23116
23117 * coding.h (make_conversion_work_buffer): Delete extern.
23118 (code_conversion_save): Extern it.
23119
23120 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
23121 (CODING_GET_INFO): Delete argument eol_type. Change callers.
23122 (decode_coding_utf_8): Don't do eol converion.
23123 (detect_coding_utf_16): Check coding->src_chars, not
23124 coding->src_bytes. Add heuristics for those that have no signature.
23125 (decode_coding_emacs_mule, decode_coding_iso_2022)
23126 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23127 Don't do eol converion.
23128 (adjust_coding_eol_type): Return a new coding system.
23129 (detect_coding): Don't detect eol. Fix for utf-16 detection.
23130 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
23131 each change.
23132 (decode_coding): Pay attention to undo_list. Do eol conversion for
23133 all types of coding-systems (if necessary).
23134 (Vcode_conversion_work_buf_list): Delete it.
23135 (Vcode_conversion_reused_workbuf): Rename from
23136 Vcode_conversion_reused_work_buf.
23137 (Vcode_conversion_workbuf_name): New variable.
23138 (reused_workbuf_in_use): New variable.
23139 (make_conversion_work_buffer): Delete the arg DEPTH.
23140 (code_conversion_restore): Change argument to cons.
23141 (code_conversion_save): Delete the argument BUFFER. Change callers.
23142 (detect_coding_system): New argument src_chars. Change callers.
23143 Fix for utf-16 detection.
23144 (init_coding_once): Don't use ISO_carriage_return.
23145 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
23146 reused_workbuf_in_use.
23147
23148 2008-02-01 Kenichi Handa <handa@m17n.org>
23149
23150 * keymap.c (store_in_keymap): Pay attention to the case that idx
23151 is a cons specifying a character range.
23152
23153 2008-02-01 Kenichi Handa <handa@m17n.org>
23154
23155 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
23156 HANDLED_RECOMPUTE_PROPS.
23157
23158 * coding.c (Fdefine_coding_system_internal): Fix checking of
23159 ascii compatibility.
23160
23161 2008-02-01 Kenichi Handa <handa@m17n.org>
23162
23163 * charset.c (find_charsets_in_text): Delete unused locale variable.
23164 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
23165
23166 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
23167 Resync charset_list to Vemacs_mule_charset_list.
23168
23169 * keymap.c (store_in_keymap): Pay attention to the case that idx
23170 is a cons specifying a character range.
23171
23172 2008-02-01 Kenichi Handa <handa@m17n.org>
23173
23174 * composite.c (update_compositions): Bind inhibit-read-only, etc
23175 to t before calling remove-list-of-text-properties.
23176
23177 * print.c (print_object): Always print ASCII chars as is.
23178
23179 2008-02-01 Kenichi Handa <handa@m17n.org>
23180
23181 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
23182
23183 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
23184 is a char table.
23185
23186 2008-02-01 Kenichi Handa <handa@m17n.org>
23187
23188 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
23189
23190 2008-02-01 Kenichi Handa <handa@m17n.org>
23191
23192 * xfaces.c (set_lface_from_font_name): Fix for the case that
23193 FONTNAME is not fontset name.
23194
23195 2008-02-01 Kenichi Handa <handa@m17n.org>
23196
23197 * fns.c (base64_encode_1): Fix previous change.
23198
23199 2008-02-01 Kenichi Handa <handa@m17n.org>
23200
23201 * fontset.c (set_fontset_font): New function.
23202 (Fset_fontset_font): If a font is specified for a charset, use
23203 map_charset_chars to store the font spec in a fontset.
23204
23205 2008-02-01 Kenichi Handa <handa@m17n.org>
23206
23207 * fontset.c (fontset_face): Create a fallback fontset on demand.
23208 (make_fontset): Don't create a fallback fontset here.
23209 (free_face_fontset): Free a fallback fontset (if any) too.
23210 (n_auto_fontsets): Delete this variable.
23211 (auto_fontset_alist): New variable.
23212 (new_fontset_from_font_name): Check auto_fontset_alist.
23213 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
23214 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
23215 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
23216 Defsubr Sfontset_list_all.
23217
23218 2008-02-01 Kenichi Handa <handa@m17n.org>
23219
23220 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
23221
23222 2008-02-01 Kenichi Handa <handa@m17n.org>
23223
23224 * fontset.c (Fnew_fontset): Check NAME more rigidly.
23225
23226 2008-02-01 Kenichi Handa <handa@m17n.org>
23227
23228 * editfns.c (Fgoto_char): Fix docstring.
23229
23230 2008-02-01 Kenichi Handa <handa@m17n.org>
23231
23232 * insdel.c (insert_from_gap): Adjust intervals correctly.
23233
23234 2008-02-01 Jason Rumney <jasonr@gnu.org>
23235
23236 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
23237 (pfnGetFontUnicodeRanges): New dynamically loaded function.
23238 (w32_initialize): Try to load it.
23239 (x_get_font_repertory): Use it if available.
23240 (w32_encode_char): Add shortcut for unicode output.
23241
23242 * w32fns.c (w32_load_system_font): Default charset to -1.
23243 (x_to_w32_charset): Match all fonts for unicode.
23244 (w32_to_x_charset): New parameter matching. Don't return partial
23245 or wildcard charsets.
23246 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
23247 (w32_codepage_for_font): Return CP_UNICODE for unicode.
23248 (w32_to_x_font): Match charset to real charset.
23249 (enum_font_cb2): Always list unicode versions.
23250
23251 * makefile.w32-in (temacs): Increase EMHEAP.
23252
23253 2008-02-01 Jason Rumney <jasonr@gnu.org>
23254
23255 * w32term.c (w32_encode_char): New charset parameter.
23256 font_info.encoding becomes encoding_type.
23257 (x_get_font_repertory): New function. Warning: stub only!
23258 (x_new_font): Return quickly if font already set.
23259 (x_new_fontset): fontsetname parameter is Lisp_Object.
23260 Use new fs_query_fontset. Try new_fontset_from_font_name.
23261 Use fontset_name for return value.
23262
23263 * w32term.h: Declare x_get_font_repertory.
23264
23265 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
23266 place of find_charset_in_text. Use encode_coding_object in place
23267 of encode_coding.
23268 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
23269 decode_coding.
23270
23271 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
23272 of x_new_fontset.
23273 (w32_load_system_font): Initialize charset as unicode.
23274 font_info.encoding becomes encoding_type.
23275 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
23276 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
23277 (syms_of_w32fns): Set get_font_repertory_func.
23278
23279 * w32console.c: Include character.h. Use terminal_encode_buffer
23280 from term.c.
23281 (write_glyphs): Use new version of encode_terminal_code.
23282 Use encode_coding_object in place of encode_coding.
23283
23284 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
23285 encoding becomes encoding_type.
23286
23287 * term.c (terminal_encode_buffer): Make externally visible.
23288
23289 * makefile.w32-in: Add character.h dependancies.
23290 (character.o, chartab.o): New targets.
23291
23292 2008-02-01 Kenichi Handa <handa@m17n.org>
23293
23294 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
23295 CODING_ID_EOL_TYPE.
23296
23297 2008-02-01 Andreas Schwab <schwab@suse.de>
23298
23299 * coding.c (produce_chars): Revert last change.
23300
23301 2008-02-01 Kenichi Handa <handa@m17n.org>
23302
23303 * charset.h (charset_unicode): Extern it.
23304
23305 * charset.c (string_xstring_p): Check by (C >= 0x100).
23306 (find_charsets_in_text): Change format of the arc CHARSETS.
23307 New arg MULTIBYTE.
23308 (Ffind_charset_region, Ffind_charset_string): Adjust for the
23309 change of find_charsets_in_text.
23310 (Fsplit_char): Fix doc. Never return unknown.
23311
23312 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
23313
23314 * coding.c (Fdefine_coding_system_alias):
23315 Update Vcoding_system_list.
23316
23317 * fontset.c (load_font_get_repertory): Pay attention to the case
23318 that ENCODING of a font is specified by a char-table.
23319
23320 * xterm.c (x_get_font_repertory): Handle the case that the
23321 encoding of font is other than Unicode.
23322
23323 2008-02-01 Kenichi Handa <handa@m17n.org>
23324
23325 * term.c (encode_terminal_code): Don't handle glyph-table.
23326 Check if a character is encodable by the terminal coding system.
23327 If not, produces proper number of `?'s. Update
23328 terminal_encode_buffer and terminal_encode_buf_size if necessary.
23329 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
23330
23331 2008-02-01 Kenichi Handa <handa@m17n.org>
23332
23333 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
23334 New variables.
23335 (encode_terminal_code): Change argument. Encode multiple
23336 characters at once. Store the result of encoding in
23337 terminal_encode_buffer.
23338 (write_glyphs, insert_glyphs): Adjust for the change of
23339 encode_terminal_code.
23340 (term_init): Initialize terminal_encode_buffer and
23341 terminal_encode_buf_size.
23342
23343 * coding.c (consume_chars): If coding->src_object is nil, don't
23344 check annotation.
23345
23346 2008-02-01 Kenichi Handa <handa@m17n.org>
23347
23348 * character.c (char_string): Use ASCII_CHAR_P instead of
23349 SINGLE_BYTE_CHAR_P.
23350
23351 2008-02-01 Kenichi Handa <handa@m17n.org>
23352
23353 * xdisp.c (handle_auto_composed_prop): Check if the last
23354 characters of auto-composed region is newly composed with the
23355 following characters.
23356 (handle_composition_prop): Fix checking of point being inside
23357 composition.
23358
23359 2008-02-01 Kenichi Handa <handa@m17n.org>
23360
23361 * fns.c (concat): Don't change multibyteness of the result by
23362 concatenating an 8-bit character.
23363
23364 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
23365 multibyteness of the result when newelt is an 8-bit character.
23366
23367 2008-02-01 Dave Love <fx@gnu.org>
23368
23369 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
23370 EMACS_INT.
23371
23372 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
23373
23374 * xfaces.c (face_numeric_value): Declare dim size_t.
23375 (Finternal_lisp_face_equal_p): Remove unused f.
23376
23377 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
23378 (MATRIX_ROW): Remove unused vars.
23379 (draw_glyphs, x_insert_glyphs, fast_find_position)
23380 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
23381 byte/char counts.
23382
23383 * regex.c (regex_compile): Remove unused var.
23384
23385 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23386
23387 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
23388 (Faccessible_keymaps, where_is_internal): Remove unused vars.
23389
23390 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
23391
23392 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
23393
23394 * fileio.c (Fwrite_region): Remove unused var.
23395
23396 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
23397 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
23398
23399 * composite.c (Fremove_list_of_text_properties): Declare.
23400
23401 * coding.c (inhibit_pre_post_conversion): Remove (unused).
23402 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
23403 (coding_inherit_eol_type): Remove unused attrs.
23404 (detect_coding): Cast arg of detect_eol.
23405
23406 * charset.c (syms_of_charset): Remove unused var p.
23407 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
23408 byte/char counts.
23409
23410 * casetab.c (set_case_table): Remove unused var.
23411
23412 * window.c (Fdisplay_buffer, Fframe_selected_window):
23413 Remove unused vars.
23414
23415 2008-02-01 Dave Love <fx@gnu.org>
23416
23417 * xterm.c (x_bitmap_mask): Declare.
23418
23419 2008-02-01 Dave Love <fx@gnu.org>
23420
23421 * xterm.c (x_term_init): Fix type error.
23422
23423 * lisp.h: Add Funibyte_char_to_multibyte.
23424
23425 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
23426 (Fset_coding_system_priority): Doc fix.
23427
23428 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
23429
23430 * indent.c (check_composition): Make start and end EMACS_INT.
23431
23432 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
23433
23434 * xdisp.c (handle_composition_prop, check_point_in_composition):
23435 Make buffer positions EMACS_INT.
23436
23437 * composite.c (find_composition, run_composition_function)
23438 (update_compositions, Ffind_composition_internal): Make buffer
23439 positions EMACS_INT.
23440
23441 * composite.h (find_composition, update_compositions):
23442 Make position args EMACS_INT.
23443
23444 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
23445
23446 * intervals.c (get_property_and_range):
23447 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
23448
23449 * unexalpha.c: Don't include varargs.h.
23450
23451 2008-02-01 Dave Love <fx@gnu.org>
23452
23453 * coding.h (ENCODE_UTF_8): New.
23454
23455 * Makefile.in (gtkutil.o): Depend on coding.h.
23456
23457 * coding.c (Fset_coding_system_priority): Doc fix.
23458
23459 2008-02-01 Kenichi Handa <handa@m17n.org>
23460
23461 * fileio.c (Finsert_file_contents): Call setup_coding_system in
23462 the case of auto saving.
23463
23464 2008-02-01 Andreas Schwab <schwab@suse.de>
23465
23466 * chartab.c (map_char_table, map_char_table_for_charset):
23467 Protect `range' from GC.
23468
23469 2008-02-01 Kenichi Handa <handa@m17n.org>
23470
23471 * coding.c (decode_coding_sjis): Check bytes more rigidly.
23472
23473 2008-02-01 Kenichi Handa <handa@m17n.org>
23474
23475 * fileio.c (choose_write_coding_system): Return a decided coding system.
23476 (Fwrite_region): Set Vlast_coding_system_used to the return value
23477 of choose_write_coding_system.
23478
23479 2008-02-01 Kenichi Handa <handa@m17n.org>
23480
23481 * charset.c (Fset_charset_priority): Pay attention to duplicated
23482 arguments.
23483
23484 * coding.c (QCcategory): New variable.
23485 (syms_of_coding): Defsym it. Set all elements of
23486 Vcoding_category_table and their symbol values.
23487 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
23488 coding-category-XXX, and coding-category-list.
23489 (Fdefine_coding_system_internal): Add category in the plist.
23490
23491 2008-02-01 Kenichi Handa <handa@m17n.org>
23492
23493 * callproc.c (Fcall_process): Handle carryover correctly.
23494
23495 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
23496 (raw_text_coding_system): Check NILP (coding_system).
23497 (coding_inherit_eol_type): Check NILP (coding_system) and
23498 NILP (parent).
23499 (consume_chars): Fix for the case of raw-text.
23500
23501 * process.c (read_process_output): Handle carryover correctly.
23502
23503 2008-02-01 Dave Love <fx@gnu.org>
23504
23505 * regex.c (re_search_2): Fix last change.
23506
23507 2008-02-01 Kenichi Handa <handa@m17n.org>
23508
23509 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
23510 target_multibyte. Even in a unibyte case, return a converted
23511 multibyte char.
23512 (GET_CHAR_AFTER): New macro.
23513 (PATFETCH): Translate via multibyte char.
23514 (HANDLE_UNIBYTE_RANGE): Delete this macro.
23515 (SETUP_MULTIBYTE_RANGE): New macro.
23516 (regex_compile): Setup compiled code so that its multibyteness
23517 matches that of a target. Fix the handling of "[X-YZ]" using
23518 SETUP_MULTIBYTE_RANGE.
23519 (analyse_first) <charset>: For filling fastmap for all multibyte
23520 characters, don't check by BASE_LEADING_CODE_P.
23521 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
23522 the same as RE_MULTIBYTE_P (bufp) now.
23523 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
23524 (TARGET_CHAR_AND_LENGTH): Delete this macro.
23525 (TRANSLATE_VIA_MULTIBYTE): New macro.
23526 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
23527 It is the same as RE_MULTIBYTE_P (bufp) now.
23528 <exactn>: Translate via multibyte.
23529 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
23530 Don't translate it.
23531 <charset, charset_not>: Fetch a character by
23532 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
23533 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
23534 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
23535 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
23536 by GET_CHAR_AFTER.
23537 (bcmp_translate): Likewise.
23538
23539 * search.c (compile_pattern): Check the member target_multibyte,
23540 not the member multibyte of buf.
23541
23542 * lread.c (read1): While reading a string, set force_singlebyte
23543 and force_multibyte correctly.
23544
23545 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
23546 up of unibyte_to_multibyte_table.
23547
23548 2008-02-01 Kenichi Handa <handa@m17n.org>
23549
23550 * coding.c (setup_coding_system): If coding has
23551 post-read-conversion or pre-write-conversion, set
23552 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
23553 respectively.
23554 (decode_coding_gap): Run post-read-conversion if any.
23555
23556 * fileio.c (Finsert_file_contents): Even if we read into a
23557 unibyte buffer, check if we must decode the result or not.
23558
23559 2008-02-01 Kenichi Handa <handa@m17n.org>
23560
23561 * coding.c (make_conversion_work_buffer): Change the work buffer
23562 name to the same one as that of Emacs 21.
23563
23564 2008-02-01 Kenichi Handa <handa@m17n.org>
23565
23566 * coding.h (make_conversion_work_buffer): Adjust prototype.
23567 (code_conversion_restore): Don't extern it.
23568
23569 * coding.c (detected_mask): Delete unused variable.
23570 (decode_coding_iso_2022): Pay attention to the byte sequence of
23571 CTEXT extended segment, and retain those bytes as is.
23572 (decode_coding_ccl): Delete unused variable `valids'.
23573 (setup_coding_system): Delete unused variable `category'.
23574 (consume_chars): Delete unused variable `category'. Make it work
23575 for non-multibyte case.
23576 (make_conversion_work_buffer): Change argument.
23577 (saved_coding): Delete unused variable.
23578 (code_conversion_restore): Don't check saved_coding->destination.
23579 (code_conversion_save): New function.
23580 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
23581 instead of record_unwind_protect.
23582 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
23583 (detect_coding_system): Delete unused variable `mask'.
23584 (Fdefine_coding_system_internal): Delete unused variable id.
23585
23586 * fileio.c (kill_workbuf_unwind): New function.
23587 (Finsert_file_contents): On replacing, call
23588 make_conversion_work_buffer with correct args, and call
23589 record_unwind_protect with the first arg kill_workbuf_unwind.
23590
23591 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
23592
23593 2008-02-01 Kenichi Handa <handa@m17n.org>
23594
23595 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
23596 (fontset_add): Fix for the case that TO is less than TO1.
23597 (Ffontset_info): Don't use fallback fontset on checking the
23598 default fontset.
23599 (dump_fontset): New function for debugging.
23600
23601 * coding.c (Fdefine_coding_system_internal): Fix for the case that
23602 coding_type is Qcharset.
23603
23604 2008-02-01 Kenichi Handa <handa@m17n.org>
23605
23606 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
23607 (map_char_table): Don't inherit the value from the parent on
23608 initializing VAL. Adjust for the above change.
23609
23610 2008-02-01 Kenichi Handa <handa@m17n.org>
23611
23612 * coding.c (Qsignature, Qendian): Delete these variables.
23613 (syms_of_coding): Don't initialize them.
23614 (CATEGORY_MASK_UTF_16_AUTO): New macro.
23615 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
23616 detect_info->found.
23617 (decode_coding_utf_16): Don't detect BOM here.
23618 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
23619 is NOT utf_16_without_bom.
23620 (setup_coding_system): For a coding system of type utf-16, check
23621 if the attribute :endian is Qbig or not (not nil or not), and set
23622 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
23623 (detect_coding): If coding type is utf-16 and BOM detection is
23624 required, detect it.
23625 (Fdefine_coding_system_internal): For a coding system of type
23626 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
23627
23628 2008-02-01 Kenichi Handa <handa@m17n.org>
23629
23630 * coding.c (coding_set_source): Fix for the case that the current
23631 buffer is different from coding->src_object.
23632 (decode_coding_object): Don't use the conversion work buffer if
23633 DST_OBJECT is a buffer.
23634
23635 2008-02-01 Dave Love <fx@gnu.org>
23636
23637 * lread.c (read_emacs_mule_char) [len==2]: Index
23638 emacs_mule_charset correctly.
23639
23640 2008-02-01 Dave Love <fx@gnu.org>
23641
23642 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
23643 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
23644 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
23645 treated specially.)
23646 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
23647 (detected_mask): Remove Big5 bits.
23648
23649 2008-02-01 Kenichi Handa <handa@m17n.org>
23650
23651 The following changes are to make the font rescaling facility
23652 compatible with Emacs 21.
23653
23654 * xfaces.c (Vface_font_rescale_alist): Rename from
23655 Vface_resizing_fonts.
23656 (struct font_name): Rename member resizing_ratio to rescale_ratio.
23657 (font_rescale_ratio): Rename from font_resizing_ratio.
23658 (split_font_name): Set font->rescale_ratio.
23659 (better_font_p): Pay attention to font->rescale_ratio.
23660 (build_scalable_font_name): Likewise. Change RESX, and RESY
23661 fields.
23662 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
23663
23664 2008-02-01 Kenichi Handa <handa@m17n.org>
23665
23666 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
23667 (Qutf_16_le): Remove these variables.
23668 (syms_of_coding): Don't DEFSYM them.
23669 (decode_coding_utf_16): Fix handling of BOM.
23670 (encode_coding_utf_16): Fix handling of BOM.
23671
23672 2008-02-01 Kenichi Handa <handa@m17n.org>
23673
23674 * fileio.c (Finsert_file_contents): On replacing, before decoding
23675 the file into the work buffer, set point of the work buffer to the end.
23676
23677 2008-02-01 Dave Love <fx@gnu.org>
23678
23679 * coding.c (Fcheck_coding_systems_region): Fix type errors.
23680
23681 2008-02-01 Dave Love <fx@gnu.org>
23682
23683 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23684 and fix C types.
23685
23686 2008-02-01 Kenichi Handa <handa@m17n.org>
23687
23688 * xdisp.c (SKIP_GLYPHS): New macro.
23689 (set_cursor_from_row): Pay attention to string display properties.
23690
23691 * category.c (copy_category_entry): Fix for the case that RANGE
23692 is an integer.
23693
23694 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
23695
23696 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
23697
23698 2008-02-01 Kenichi Handa <handa@m17n.org>
23699
23700 * charset.c (Fcharset_id_internal): New function.
23701 (syms_of_charset): Defsubr it.
23702
23703 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
23704 with the last arg charset_list acquired from coding.
23705 (Fdefine_coding_system_internal): For ccl-based coding system, fix
23706 the attribute coding_attr_ccl_valids.
23707
23708 * coding.h (enum define_coding_ccl_arg_index): Set the first
23709 member coding_arg_ccl_decoder to coding_arg_max.
23710
23711 * ccl.h (ccl_driver): Adjust prototype.
23712
23713 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
23714 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
23715 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
23716 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
23717 last arg Qnil.
23718
23719 2008-02-01 Kenichi Handa <handa@m17n.org>
23720
23721 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
23722 call encode_char.
23723
23724 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
23725
23726 2008-02-01 Dave Love <fx@gnu.org>
23727
23728 * composite.c (syms_of_composite): Make composition_hash_table weak.
23729
23730 2008-02-01 Kenichi Handa <handa@m17n.org>
23731
23732 * dispextern.h (check_face_attributes, generate_ascii_font_name)
23733 (font_name_registry): Don't extern them.
23734 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
23735
23736 * fontset.h (Qfontset): Don't extern it.
23737 (new_fontset_from_font_name): Extern it.
23738
23739 * fontset.c: Give 8 extra slots to fontset objects.
23740 (Qfontset_info): New variable.
23741 (syms_of_fontset): Defsym it.
23742 (FONTSET_FALLBACK): New macro.
23743 (fontset_face): Try also the default fontset.
23744 (make_fontset): Realize a fallback fontset from the default fontset.
23745 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
23746 using split_font_name_into_vector and build_font_name_from_vector.
23747 (Fset_fontset_font): Access the elements of font_spec by enum
23748 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
23749 name by using split_font_name_into_vector.
23750 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
23751 generate a proper font name from the fontset name.
23752 Update Vfontset_alias_alist.
23753 (n_auto_fontsets): New variable.
23754 (new_fontset_from_font_name): New function.
23755 (Ffont_info): Store the information about fonts generated from the
23756 default fontset in the first extra slot of the returned char-table.
23757
23758 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
23759 (font_name_registry): Delete function.
23760 (split_font_name_into_vector): New function.
23761 (build_font_name_from_vector): New function.
23762 (font_list): The argument REGISTRY is now a list of registry names.
23763 (choose_face_font): If we are choosing an ASCII font, and ATTRS
23764 specifies an explicit font name, return the name as is. Make a
23765 list of registy names.
23766
23767 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
23768 of x_new_fontset.
23769 (Fx_create_frame): Don't call x_new_fontset here. Just use
23770 x_list_fonts to check the existence of fonts.
23771
23772 * xterm.h (x_new_fontset): Adjust prototype.
23773
23774 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
23775 string. Use new_fontset_from_font_name to create a fontset from a
23776 font name.
23777
23778 2008-02-01 Kenichi Handa <handa@m17n.org>
23779
23780 * syntax.c (Vfind_word_boundary_function_table): New name for
23781 Vnext_word_boundary_function_table.
23782 (find-word-boundary-function-table): New name for
23783 next-word-boundary-function-table.
23784
23785 2008-02-01 Dave Love <fx@gnu.org>
23786
23787 * Makefile.in: Fix some dependencies.
23788
23789 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
23790 set it to nil before returning.
23791
23792 * composite.c (update_compositions): Fix type error.
23793
23794 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
23795
23796 2008-02-01 Kenichi Handa <handa@m17n.org>
23797
23798 * xterm.c (x_new_font): Optimize for the case that the font is
23799 already set for the frame.
23800
23801 2008-02-01 Kenichi Handa <handa@m17n.org>
23802
23803 * chartab.c (char_table_ascii): Check if the char table contents
23804 is sub-char-table or not.
23805 (char_table_set, char_table_set_range): Fix argument to
23806 char_table_ascii.
23807
23808 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
23809 (detect_coding_utf_8, detect_coding_utf_16)
23810 (detect_coding_emacs_mule, detect_coding_iso_2022)
23811 (detect_coding_sjis, detect_coding_big5)
23812 (detect_coding_ccl, detect_coding_charset): Change argument MASK
23813 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
23814 sequence is valid in this coding system. Change callers.
23815 (MAX_ANNOTATION_LENGTH): New macro.
23816 (ADD_ANNOTATION_DATA): New macro.
23817 (ADD_COMPOSITION_DATA): Change argument. Change callers.
23818 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
23819 (ADD_CHARSET_DATA): New macro.
23820 (emacs_mule_char): New argument ID. Change callers.
23821 (decode_coding_emacs_mule, decode_coding_iso_2022)
23822 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23823 Produce charset annotation data in coding->charbuf.
23824 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
23825 to charset annotation data in coding->charbuf.
23826 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
23827 coding->common_flags if the coding system is iso-2022 based and
23828 uses designation.
23829 (produce_composition): Adjust for the new annotation data format.
23830 (produce_charset): New function.
23831 (produce_annotation): Handle charset annotation.
23832 (handle_composition_annotation, handle_charset_annotation):
23833 New functions.
23834 (consume_chars): Handle charset annotation. Utilize the above two
23835 functions.
23836 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
23837 buffer, get the deleted text as a string and set
23838 coding->src_object to that string.
23839 (detect_coding, detect_coding_system): Use the new struct
23840 coding_detection_info.
23841
23842 * coding.h (struct coding_detection_info): New structure.
23843 (struct coding_system): Adjust prototype of the member `detector'.
23844 (CODING_ANNOTATE_CHARSET_MASK): New macro.
23845
23846 2008-02-01 Kenichi Handa <handa@m17n.org>
23847
23848 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
23849
23850 2008-02-01 Dave Love <fx@gnu.org>
23851
23852 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
23853 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
23854 to new local and nullify apropos_accumulate before returning.
23855 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
23856
23857 2008-02-01 Kenichi Handa <handa@m17n.org>
23858
23859 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
23860 correctly.
23861
23862 2008-02-01 Dave Love <fx@gnu.org>
23863
23864 * fns.c (Flanginfo): Call synchronize_system_time_locale.
23865
23866 2008-02-01 Kenichi Handa <handa@m17n.org>
23867
23868 The following changes are to make character composition happen
23869 automatically on displaying.
23870
23871 * Makefile.in (lisp, shortlisp): Add composite.elc.
23872
23873 * composite.h (Qauto_composed, Vauto_composition_function)
23874 (Qauto_composition_function): Extern them.
23875
23876 * composite.c (Vcomposition_function_table)
23877 (Qcomposition_function_table): Delete variables.
23878 (Qauto_composed, Vauto_composition_function)
23879 (Qauto_composition_function): New variables.
23880 (run_composition_function): Don't call
23881 compose-chars-after-function.
23882 (update_compositions): Clear `auto-composed' text property.
23883 (compose_chars_in_text): Delete this function.
23884 (syms_of_composite): Staticpro Qauto_composed and
23885 Qauto_composition_function. Declare Vauto_composition_function as
23886 a Lisp variable.
23887
23888 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
23889
23890 * xdisp.c (it_props): Add an entry for Qauto_composed.
23891 (handle_auto_composed_prop): New function.
23892
23893 * xselect.c (selection_data_to_lisp_data): Don't call
23894 compose_chars_in_text.
23895
23896 2008-02-01 Dave Love <fx@gnu.org>
23897
23898 * keyboard.c (read_char): Modify checking around use of
23899 Vkeyboard_translate_table.
23900
23901 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23902 and fix C types.
23903
23904 2008-02-01 Kenichi Handa <handa@m17n.org>
23905
23906 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
23907 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23908 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
23909 the case that the last byte is '\r' correctly.
23910 (decode_coding): Flush out the unprocessed data correctly.
23911 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
23912
23913 2008-02-01 Dave Love <fx@gnu.org>
23914
23915 * xterm.c (XTread_socket): Fix changes for defined keysyms.
23916 Add XK_ISO... case.
23917 (xaw_scroll_callback): Revert last change.
23918
23919 2008-02-01 Kenichi Handa <handa@m17n.org>
23920
23921 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
23922
23923 2008-02-01 Kenichi Handa <handa@m17n.org>
23924
23925 * xfaces.c (Vface_resizing_fonts): New variable.
23926 (struct font_name): New member `resizing_ratio'.
23927 (font_resizing_ratio): New function.
23928 (split_font_name): Set font->resizing_ratio.
23929 (better_font_p): Pay attention to font->resizing_ratio.
23930 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
23931 RESX, and RESY fields.
23932 (try_alternative_families): Try scalable fonts if
23933 Vscalable_fonts_allowed is not Qt.
23934 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
23935
23936 2008-02-01 Dave Love <fx@gnu.org>
23937
23938 * xterm.c (xaw_scroll_callback): Cast correctly.
23939
23940 2008-02-01 Dave Love <fx@gnu.org>
23941
23942 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
23943 (lispy_kana_keys): Comment out.
23944 (make_lispy_event) [XK_kana_A]: Comment out.
23945
23946 * xterm.c (xaw_scroll_callback): Cast call_data.
23947 (XTread_socket): Deal with ASCII keysyms.
23948 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
23949
23950 2008-02-01 Dave Love <fx@gnu.org>
23951
23952 * xterm.c (Vx_keysym_table): New.
23953 (syms_of_xterm): Initialize it.
23954 (XTread_socket): Use it.
23955 From head: Eliminate incorrect optimization that tried to avoid
23956 decoding the output of X*LookupString.
23957 (x_get_font_repertory): Delete charset declaration.
23958
23959 2008-02-01 Kenichi Handa <handa@m17n.org>
23960
23961 * coding.c (detect_coding_charset): If only ASCII bytes are found,
23962 return 0.
23963 (Fdefine_coding_system_internal):
23964 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23965
23966 2008-02-01 Dave Love <fx@gnu.org>
23967
23968 * coding.c (Fcheck_coding_system): Doc fix.
23969
23970 * editfns.c (Finsert_byte): Return a proper value.
23971
23972 2008-02-01 Kenichi Handa <handa@m17n.org>
23973
23974 * coding.c (decode_coding): Fix args to translate_chars.
23975 Pay attention to Vstandard_translation_table_for_decode.
23976 (encode_coding): Fix args to translate_chars. Pay attention to
23977 Vstandard_translation_table_for_encode.
23978
23979 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23980 SINGLE_BYTE_CHAR_P.
23981
23982 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23983 not by SINGLE_BYTE_CHAR_P.
23984
23985 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23986 SINGLE_BYTE_CHAR_P.
23987
23988 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23989 SINGLE_BYTE_CHAR_P.
23990
23991 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23992 by SINGLE_BYTE_CHAR_P.
23993
23994 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23995 SINGLE_BYTE_CHAR_P.
23996
23997 2008-02-01 Dave Love <fx@gnu.org>
23998
23999 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
24000
24001 2008-02-01 Dave Love <fx@gnu.org>
24002
24003 * fns.c (Flanginfo): Fix typo.
24004
24005 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
24006
24007 2008-02-01 Kenichi Handa <handa@m17n.org>
24008
24009 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
24010 (detect_coding_emacs_mule, detect_coding_iso_2022)
24011 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
24012 incomplete byte sequence. Don't update *mask when correctly detected.
24013 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
24014 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
24015 (detect_coding, detect_coding_system): Adjust for the changes above.
24016
24017 2008-02-01 Kenichi Handa <handa@m17n.org>
24018
24019 * character.c (char_string): Rename from
24020 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
24021 (string_char): Rename from string_char.
24022
24023 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
24024 if C is greater than MAX_3_BYTE_CHAR.
24025 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
24026 Call string_char instead of string_char_with_unification.
24027
24028 2008-02-01 Dave Love <fx@gnu.org>
24029
24030 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
24031
24032 2008-02-01 Kenichi Handa <handa@m17n.org>
24033
24034 * keymap.c (push_key_description): Pay attention to force_multibyte.
24035
24036 * regex.c (re_search_2): Fix for the case of unibyte buffer.
24037
24038 2008-02-01 Dave Love <fx@gnu.org>
24039
24040 * charset.c (define_charset_internal): Rename `supprementary'.
24041
24042 * Makefile.in (lisp, shortlisp): Remove latin-N.
24043
24044 2008-02-01 Dave Love <fx@gnu.org>
24045
24046 * xfns.c (x_window, x_window): Use use_xim.
24047
24048 * xterm.c (use_xim): Initialize.
24049 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
24050 (x_term_init): Maybe set use_xim.
24051
24052 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
24053
24054 2008-02-01 Kenichi Handa <handa@m17n.org>
24055
24056 * search.c (search_buffer): Fix case-fold-search of multibyte
24057 characters.
24058 (boyer_moore): Rename the last argument to char_high_bits.
24059
24060 2008-02-01 Kenichi Handa <handa@m17n.org>
24061
24062 * xdisp.c (display_string): Fix for the case of zero width glyph.
24063
24064 * xfns.c (x_set_font): Change the error message of the case that
24065 x_new_fontset returns Qt.
24066
24067 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
24068 (Finternal_set_lisp_face_attribute): Use signal_error for the
24069 error of invalid fontset.
24070
24071 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
24072 fontset, return Qt.
24073
24074 2008-02-01 Dave Love <fx@gnu.org>
24075
24076 * unexelf.c (unexec): Make .got handling not SGI-specific.
24077
24078 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
24079
24080 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
24081
24082 * keyboard.c (read_key_sequence): Fix type error.
24083
24084 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
24085 Fix type error.
24086
24087 * fontset.c (fontset_add): Return Lisp_Object.
24088
24089 2008-02-01 Dave Love <fx@gnu.org>
24090
24091 * charset.h (charset_ordered_list_tick): Declare extern.
24092
24093 2008-02-01 Kenichi Handa <handa@m17n.org>
24094
24095 The following changes (and some of 2008-02-01 changes of mine) are
24096 for handling syntax, category, and case conversion for unibyte
24097 characters by converting them to multibyte on the fly. With these
24098 changes, we don't have to setup syntax and case tables for unibyte
24099 characters in each language environment.
24100
24101 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
24102 multibyte if necessary.
24103
24104 * bytecode.c (Fbyte_code): Likewise.
24105
24106 * character.h (LEADING_CODE_LATIN_1_MIN)
24107 (LEADING_CODE_LATIN_1_MAX): New macros.
24108 (unibyte_to_multibyte_table): Extern it.
24109 (unibyte_char_to_multibyte): New macro.
24110 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
24111 (CHAR_LEADING_CODE): New macro.
24112 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
24113
24114 * character.c (unibyte_to_multibyte_table): New variable.
24115 (unibyte_char_to_multibyte): Move to character.h and define as macro.
24116 (multibyte_char_to_unibyte): If C is an eight-bit character,
24117 convert it to the corresponding byte value.
24118
24119 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
24120 not 1, signals an error. Update the elements of
24121 unibyte_to_multibyte_table.
24122 (init_charset_once): Initialize unibyte_to_multibyte_table.
24123 (syms_of_charset): Define the charset `iso-8859-1'.
24124
24125 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
24126 as is without converting it to unibyte. In a unibyte buffer,
24127 convert C to multibyte before checking the syntax.
24128
24129 * lisp.h (unibyte_char_to_multibyte): Delete extern.
24130
24131 * minibuf.c (Fminibuffer_complete_word): Use the macro
24132 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
24133
24134 * regex.h (struct re_pattern_buffer): New member target_multibyte.
24135
24136 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
24137 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
24138 If that is zero, convert an eight-bit char to multibyte.
24139 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
24140 non-emacs case.
24141 (PATFETCH): Convert an eight-bit char to multibyte.
24142 (HANDLE_UNIBYTE_RANGE): New macro.
24143 (regex_compile): Setup the compiled pattern for multibyte chars
24144 even if the given regex string is unibyte. Use PATFETCH_RAW
24145 instead of PATFETCH in many places. To handle `charset'
24146 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
24147 only for ASCII chars.
24148 (analyse_first) <exactn>: Simplify because the compiled pattern
24149 is multibyte.
24150 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
24151 <charset>: Use CHAR_LEADING_CODE to get leading codes.
24152 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
24153 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
24154 multibyte always 1.
24155 (re_search_2): In emacs, set the locale variable multibyte to 1,
24156 otherwise to 0. New local variable target_multibyte. Check it
24157 to decide the multibyteness of STR1 and STR2.
24158 If target_multibyte is zero, convert unibyte chars to multibyte
24159 before translating and checking fastmap.
24160 (TARGET_CHAR_AND_LENGTH): New macro.
24161 (re_match_2_internal): In emacs, set the locale variable multibyte
24162 to 1, otherwise to 0. New local variable target_multibyte.
24163 Check it to decide the multibyteness of STR1 and STR2.
24164 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
24165 <charset, charset_not>: If multibyte is nonzero, check fastmap
24166 only for ASCII chars. Call bcmp_translate with
24167 target_multibyte, not with multibyte.
24168 <begline>: Declare the local variable C as `unsigned'.
24169 (bcmp_translate): Change the last arg name to target_multibyte.
24170
24171 * search.c (compile_pattern_1): Don't adjust the multibyteness of
24172 the regexp pattern and the matching target. Set cp->buf.multibyte
24173 to the multibyteness of the regexp pattern. Set
24174 cp->but.target_multibyte to the multibyteness of the matching target.
24175 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
24176 FETCH_STRING_CHAR_ADVANCE.
24177 (Freplace_match): Convert unibyte chars to multibyte.
24178
24179 * syntax.c (char_quoted, back_comment, scan_words)
24180 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
24181 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
24182 unibyte chars to multibyte.
24183 (skip_chars): Delete the arg syntaxp, and move the code for
24184 handling syntaxes to skip_syntaxes. Change callers.
24185 Fix the case that the multibyteness of STRING and the current
24186 buffer doesn't match.
24187 (skip_syntaxes): New function.
24188 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
24189 SINGLE_BYTE_CHAR_P.
24190
24191 2008-02-01 Kenichi Handa <handa@m17n.org>
24192
24193 * xfaces.c (QCfontset): New variable.
24194 (LFACE_FONTSET): New macro.
24195 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
24196 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
24197 (Finternal_set_lisp_face_attribute)
24198 (Finternal_get_lisp_face_attribute): Handle QCfontset.
24199 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
24200 check also LFACE_FONTSET_INDEX.
24201 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
24202 attrs[LFACE_FONT_INDEX].
24203 (syms_of_xfaces): Intern and staticpro QCfontset.
24204
24205 * dispextern.h (enum lface_attribute_index): New member
24206 LFACE_FONTSET_INDEX.
24207
24208 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
24209
24210 2008-02-01 Kenichi Handa <handa@m17n.org>
24211
24212 * coding.c (coding_set_destination): Fix coding->destination for
24213 the case converting a region.
24214 (encode_coding_utf_8): Encode eight-bit chars as single byte.
24215 (encode_coding_object): Fix coding->dst_pos and
24216 coding->dst_pos_byte for the case converting a region.
24217
24218 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
24219
24220 * character.h (BYTE8_STRING): New macro.
24221
24222 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
24223
24224 2008-02-01 Kenichi Handa <handa@m17n.org>
24225
24226 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
24227 characters by octal form.
24228
24229 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
24230
24231 * buffer.h (_fetch_multibyte_char_len): Delete extern.
24232 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
24233 _fetch_multibyte_char_len.
24234 (FETCH_CHAR_AS_MULTIBYTE): New macro.
24235
24236 * casetab.c (set_canon, set_identity, shuffle): Simplify.
24237
24238 * casefiddle.c (casify_object): Simplify. Handle the case that
24239 the case conversion change the byte length.
24240 (casify_region): Likewise.
24241
24242 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
24243
24244 * character.c (_fetch_multibyte_char_len): Delete this variable.
24245 (syms_of_character): Setup Vprintable_chars.
24246
24247 * editfns.c (Fchar_equal): Fix for the unibyte case.
24248 (Finsert_byte): New function.
24249 (syms_of_editfns): Defsubr it.
24250
24251 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
24252 of direct code 0x3ffff.
24253
24254 * search.c (Freplace_match): Fix for the unibyte case.
24255
24256 2008-02-01 Kenichi Handa <handa@m17n.org>
24257
24258 * lread.c (safe_to_load_p): Fix the logic.
24259
24260 * syntax.c (scan_words): Don't treat characters belonging to
24261 different scripts as constituting a word.
24262
24263 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24264
24265 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
24266
24267 * emacs.c (main): In the case of --unibyte, instead of aborting on
24268 finding non-empty buffer, make it unibyte.
24269
24270 2008-02-01 Kenichi Handa <handa@m17n.org>
24271
24272 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
24273 to create a fontset.
24274
24275 2008-02-01 Dave Love <fx@gnu.org>
24276
24277 * character.c (Funibyte_char_to_multibyte): Doc fix.
24278
24279 * xfns.c [HAVE_STDLIB_H]: Fix last change.
24280
24281 2008-02-01 Kenichi Handa <handa@m17n.org>
24282
24283 * fontset.c (fontset_add): Make the type `int'.
24284 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
24285
24286 * character.c (unibyte_char_to_multibyte)
24287 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
24288 charset_unibyte, not charset_primary.
24289
24290 * charset.h (charset_unibyte): Extern it instead of charset_primary.
24291
24292 * charset.c (charset_unibyte): Rename from charset_primary.
24293 (Funibyte_charset): Rename from Fprimary_charset.
24294 (Fset_unibyte_charset): Rename from Fset_primary_charset.
24295 (syms_of_charset): Adjust for the above changes.
24296
24297 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24298 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24299 it->multibyte_p is zero.
24300
24301 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
24302 Delete extern.
24303
24304 2008-02-01 Kenichi Handa <handa@m17n.org>
24305
24306 * coding.c (Fdefine_coding_system_internal): Fix category setting
24307 for a coding system of type iso-2022.
24308
24309 2008-02-01 Kenichi Handa <handa@m17n.org>
24310
24311 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
24312
24313 2008-02-01 Kenichi Handa <handa@m17n.org>
24314
24315 * syntax.c (Vnext_word_boundary_function_table): New variable.
24316 (next-word-boundary-function-table): Declare it as a Lisp variable
24317 in syms_of_syntax.
24318 (scan_words): Call functions in Vnext_word_boundary_function_table
24319 if any.
24320
24321 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
24322
24323 * fontset.c (fs_load_font): If fontp->charset is not negative,
24324 return fontp without setting its members.
24325
24326 2008-02-01 Dave Love <fx@gnu.org>
24327
24328 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
24329
24330 * m/sparc.h (HAVE_ALLOCA): Delete.
24331
24332 * s/irix6-5.h: Don't include strings.h.
24333 (bcopy, bzero, bcmp): Don't undef.
24334
24335 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
24336
24337 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
24338 (TIOCSIGSEND): Don't test IRIX6.
24339 (bcopy, bzero, bcmp): Define conditionally.
24340
24341 2008-02-01 Kenichi Handa <handa@m17n.org>
24342
24343 * buffer.c (Qas, Qmake, Qto): New variables.
24344 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
24345 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
24346
24347 * callproc.c (Fcall_process): Don't call insert_1_both directly if
24348 we are inserting a process output into a multibyte buffer.
24349
24350 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
24351 multibyte_char_to_unibyte.
24352
24353 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
24354 by the primary charset, make it eight-bit char.
24355 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
24356
24357 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
24358 (charset_8_bit__control, charset_8_bit_graphic)
24359 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
24360 (define_charset_internal): New function.
24361 (syms_of_charset): Call define_charset_internal for pre-defined
24362 charsets.
24363
24364 * charset.h (charset_8_bit): Extern it.
24365
24366 * coding.c (make_conversion_work_buffer): Adjust for the change
24367 of Fset_buffer_multibyte.
24368 (encode_coding_raw_text): Increment p0 in the loop.
24369
24370 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
24371
24372 * xdisp.c (setup_echo_area_for_printing, set_message_1):
24373 Adjust for the change of Fset_buffer_multibyte.
24374
24375 * fns.c (Fstring_to_multibyte): New function.
24376 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
24377
24378 2008-02-01 Dave Love <fx@gnu.org>
24379
24380 * xfns.c (x_put_x_image): Declare args.
24381
24382 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
24383 (try_font_list): Declare an arg.
24384
24385 * xdisp.c (message2_nolog, set_message): Declare an arg.
24386
24387 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
24388
24389 * syntax.c (scan_sexps_forward): Declare an arg.
24390
24391 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
24392 Declare an arg.
24393
24394 * lisp.h (Fnew_fontset): Declare.
24395
24396 * keymap.c (push_key_description): Call CHARACTERP correctly.
24397
24398 * fontset.c (fontset_add): Declare args. Call make_number correctly.
24399 (face_for_char): Delete unused vars.
24400 (Fset_fontset_font): Doc fix. Delete unused vars.
24401
24402 * doc.c (Fsubstitute_command_keys): Delete unused vars.
24403
24404 * composite.c (update_compositions): Declare arg.
24405
24406 * cm.c (calccost, cmgoto): Declare args.
24407
24408 * charset.c: Remove `emacs' conditional. Doc fixes.
24409 (map_char_table_for_charset): Declare.
24410
24411 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
24412
24413 * ccl.c: Remove `emacs' conditional.
24414
24415 2008-02-01 Kenichi Handa <handa@m17n.org>
24416
24417 The following changes are to allow specifying multiple font
24418 patterns for a character range (specified by script or charset).
24419
24420 * Makefile.in (abbrev.o): Depend on syntax.h.
24421 (xfaces.o): Depend on charset.h.
24422
24423 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
24424 SINGLE_BYTE_CHAR_P.
24425
24426 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
24427
24428 * character.h (Vchar_script_table): Extern it.
24429
24430 * character.c (Vscript_alist): Delete.
24431 (Vchar_script_table, Qchar_script_table): New variable.
24432 (syms_of_character): Declare Vchar_script_table as a lisp variable
24433 and initialize it.
24434
24435 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
24436 have property char-table-extra-slots, make no extra slot.
24437
24438 * dispextern.h (struct face): Delete member `charset'.
24439 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
24440 SINGLE_BYTE_CHAR_P.
24441 (choose_face_font, lookup_non_ascii_face, font_name_registry):
24442 Add prototypes.
24443 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
24444 (generate_ascii_font_name): Rename from generate_ascii_font.
24445
24446 * fontset.h (get_font_repertory_func): New prototype.
24447 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
24448 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
24449
24450 * fontset.c (Qprepend, Qappend): New variables.
24451 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
24452 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
24453 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
24454 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
24455 (fontset_ref_and_range, fontset_add, reorder_font_vector)
24456 (load_font_get_repertory): New functions.
24457 (fontset_set): Delete.
24458 (fontset_face): New arg FACE. Return face ID, not face.
24459 Complete re-write to handle new fontset structure. Change caller.
24460 (free_face_fontset): Use ASET istead of AREF (X) = Y.
24461 (face_for_char): Don't call lookup_face.
24462 (make_fontset_for_ascii_face): New arg FACE.
24463 (fs_load_font): New arg CHARSET_ID. Don't check
24464 Vfont_encoding_alist here.
24465 (find_font_encoding): New function.
24466 (list_fontsets): Use STRINGP, not ! NILP.
24467 (accumulate_script_ranges): New function.
24468 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
24469 Completely re-written to handle new fontset structure.
24470 (Ffontset_font): Return a copy of element.
24471 (syms_of_fontset): Define symbols Qprepend and Qappend.
24472 Fix docstring of font-encoding-alist.
24473
24474 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
24475 (Fset_fotset_font): Fix arguments to 5.
24476
24477 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
24478
24479 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
24480 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24481 (highlight_trailing_whitespace): Adjust for the change of
24482 lookup_named_face.
24483
24484 * xfaces.c: Include charset.h.
24485 (load_face_font): Delete argument C. Change caller.
24486 (generate_ascii_font_name): Rename from generate_ascii_font.
24487 (font_name_registry): New function.
24488 (cache_face): Store ascii faces before non-ascii faces in buckets.
24489 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
24490 Lookup only ascii faces.
24491 (lookup_non_ascii_face): New function.
24492 (lookup_named_face): Delete argument C. Change caller.
24493 (lookup_derived_face): Delete argument C. Change caller.
24494 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
24495 a string, just call font_list with it.
24496 (choose_face_font): Delete arguments FACE and C. New arg
24497 FONT_SPEC. Change caller.
24498 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
24499 Change caller.
24500 (realize_non_ascii_face): New function.
24501 (realize_x_face): Call load_face_font here.
24502 (realize_tty_face): Delete argument C. Change caller.
24503 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
24504 get a face ID.
24505 (dump_realized_face): Don't print charset of FACE.
24506
24507 * xfns.c (x_set_font): Always call x_new_fontset and
24508 store_frame_parameter.
24509 (Fx_create_frame): Call x_new_fontset, not x_new_font.
24510 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
24511
24512 * xterm.h (x_get_font_repertory): Extern it.
24513
24514 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24515 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24516 it->multibyte_p is zero.
24517 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24518 (x_new_fontset): If FONTSETNAME doesn't match any existing
24519 fontsets, create a new one.
24520 (x_get_font_repertory): New function.
24521
24522 2008-02-01 Kenichi Handa <handa@m17n.org>
24523
24524 * coding.c (Ffind_coding_systems_region_internal): Detect an
24525 ASCII only string correctly.
24526
24527 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
24528 version is 0.
24529
24530 2008-02-01 Kenichi Handa <handa@m17n.org>
24531
24532 * lread.c: Include "coding.h".
24533 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
24534 (load_each_byte, unread_char): New variables.
24535 (readchar_backlog): Delete.
24536 (readchar): Return a character unless load_each_byte is nonzero.
24537 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
24538 cons. If unread_char is not -1, simply return it.
24539 (unreadchar): Handle the case that readcharfun is
24540 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
24541 (read_multibyte): Delete.
24542 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
24543 (read_emacs_mule_char): New functions.
24544 (Fload): Even if the file doesn't have the extension ".elc", if
24545 safe_to_load_p returns a positive version number, assume that the
24546 file contains bytecompiled code. If the version is less than 22,
24547 load the file while decoding multibyte sequences by emacs-mule.
24548 (readevalloop): Don't use readchar_backlog.
24549 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
24550 (Fread_from_string): Pay attention to the case that STREAM is a cons.
24551 (read_escape): Delete the arg BYTEREP.
24552 (read1): Set load_each_byte to 1 temporarily while handling
24553 #@NUMBER. Don't call read_multibyte.
24554 (read_vector): Call Fread with a cons. If readcharfun is
24555 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
24556 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
24557 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
24558 and Qload_force_doc_strings.
24559
24560 2008-02-01 Kenichi Handa <handa@m17n.org>
24561
24562 * xdisp.c (face_before_or_after_it_pos):
24563 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
24564
24565 2008-02-01 Kenichi Handa <handa@m17n.org>
24566
24567 * character.h (TRAILING_CODE_P): New macro.
24568 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
24569 (string_char_with_unification): Fix prototype.
24570 (Vscript_alist): Extern it.
24571
24572 * character.c (Vscript_alist): New variable.
24573 (string_char_with_unification, str_as_unibyte)
24574 (string_escape_byte8): Add `const' to local variables.
24575 (syms_of_character): Declare script-alist as a Lisp variable.
24576
24577 * charset.h (Vcharset_ordered_list): Extern it.
24578 (charset_ordered_list_tick): Extern it.
24579 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
24580 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
24581 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
24582 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
24583 (Funify_charset): Adjust for the change of Funify_charset.
24584
24585 * charset.c (charset_ordered_list_tick): New variable.
24586 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
24587 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
24588 deunify instead of unify a charset.
24589 (string_xstring_p): Add `const' to local variables.
24590 (find_charsets_in_text): Add `const' to arguments and local variables.
24591 (encode_char): Adjust for the change of Funify_charset.
24592 Fix detecting of invalid code.
24593 (Fset_charset_priority): Increment charset_ordered_list_tick.
24594 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
24595 and TO_CODE.
24596
24597 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
24598 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
24599 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
24600 (decode_coding_ccl, consume_chars)
24601 (Ffind_coding_systems_region_internal)
24602 (Fcheck_coding_systems_region): Add `const' to local variables.
24603
24604 * print.c (print_object): Use octal form for printing the
24605 contents of a bool vector.
24606
24607 2008-02-01 Dave Love <fx@gnu.org>
24608
24609 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
24610 <version == 20>: Refuse to load.
24611
24612 2008-02-01 Dave Love <fx@gnu.org>
24613
24614 * fns.c: Move coding.h.
24615 (Qcodeset, Qdays, Qmonths): New.
24616 (concat): Use CHARACTERP instead of INTEGERP.
24617 (Flocale_codeset): Delete.
24618 (Flanginfo): New function.
24619 (syms_of_fns): Change accordingly.
24620
24621 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
24622
24623 2008-02-01 Dave Love <fx@gnu.org>
24624
24625 * casetab.c (init_casetab_once, init_casetab_once):
24626 Fix CHAR_TABLE_SET call.
24627
24628 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
24629
24630 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
24631
24632 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
24633 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
24634 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
24635
24636 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
24637
24638 * coding.c (ENCODE_DESIGNATION, decode_eol)
24639 (make_conversion_work_buffer, code_conversion_restore)
24640 (Fdefine_coding_system_internal): Convert Lisp types.
24641 (code_conversion_restore): Use EQ, not ==.
24642 (Fencode_coding_string): Fix code_convert_string call.
24643
24644 * coding.h (code_convert_region): Fix prototype.
24645
24646 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
24647
24648 * fontset.c (fontset_ref, fontset_set, fs_load_font)
24649 (Ffontset_info): Convert Lisp types.
24650
24651 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
24652
24653 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
24654
24655 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
24656
24657 * chartab.c: Include "...h", not <...h> in some cases.
24658
24659 * callproc.c (Fcall_process): Remove unused variables.
24660
24661 2008-02-01 Dave Love <fx@gnu.org>
24662
24663 * coding.c (Fset_coding_system_priority): Allow null arg list.
24664
24665 2008-02-01 Dave Love <fx@gnu.org>
24666
24667 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24668 (Fself_insert_and_exit): Use CHARACTERP.
24669
24670 * callproc.c (Fcall_process): Remove unused vars.
24671
24672 * xterm.c (XTread_socket): Add extra dead keysyms.
24673
24674 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
24675
24676 * dispextern.h: Remove prototypes for redraw_frame,
24677 redraw_garbaged_frames.
24678
24679 * cmds.c (Fself_insert_command): Use CHARACTERP.
24680
24681 * chartab.c (make_sub_char_table): Remove unused var.
24682 (Fset_char_table_default, Fmap_char_table): Doc fix.
24683
24684 * keymap.c (access_keymap): Remove generic char code.
24685 (push_key_description): Use CHARACTERP.
24686
24687 2008-02-01 Dave Love <fx@gnu.org>
24688
24689 * charset.c: Doc fixes.
24690 (Funify_charset): Extra checking.
24691
24692 2008-02-01 Dave Love <fx@gnu.org>
24693
24694 * lread.c: Remove some unused variables.
24695 (safe_to_load_p): If safe, return the magic number version byte.
24696 (Fload): Maybe use load-with-code-conversion.
24697
24698 2008-02-01 Kenichi Handa <handa@m17n.org>
24699
24700 * category.c (Fmodify_category_entry): Don't modify the contents
24701 of category_set for characters out of the range.
24702 Avoid unnecessary modification.
24703
24704 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
24705 Vchar_unify_table. The default value of the table is now nil.
24706
24707 * character.c (syms_of_character): Setup Vchar_width_table for
24708 eight-bit-control and raw-byte chars.
24709
24710 * charset.h (enum define_charset_arg_index):
24711 Delete charset_arg_parents and add charset_arg_subset and
24712 charset_arg_superset.
24713 (enum charset_attr_index): Delete charset_parents and add
24714 charset_subset and charset_superset.
24715 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
24716 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
24717 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
24718 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
24719 (CHARSET_SUPERSET): New macros.
24720 (charset_work): Extern it.
24721 (ENCODE_CHAR): Use charset_work.
24722 (CHAR_CHARSET_P): Adjust for the change of encoder format.
24723 (map_charset_chars): Extern it.
24724
24725 * charset.c (load_charset_map): Set the default value of encoder
24726 and deunifier char-tables to nil.
24727 (map_charset_chars): Change argument. Change callers.
24728 Use map_char_table_for_charset instead of map_char_table.
24729 (Fmap_charset_chars): New optional args from_code and to_code.
24730 (Fdefine_charset_internal): Adjust for the change of
24731 `define-charset' (:parents -> :subset or :superset).
24732 (charset_work): New variable.
24733 (encode_char, syms_of_charset): Adjust for the change of
24734 Fdefine_charset_internal.
24735 (Ffind_charset_string): Setup the vector `charsets' correctly.
24736
24737 * chartab.c (sub_char_table_ref_and_range): New arg default.
24738 Fix the previous change.
24739 (char_table_ref_and_range): Adjust for the above change.
24740 (map_sub_char_table_for_charset): New function.
24741 (map_char_table_for_charset): New function.
24742
24743 * keymap.c (describe_vector): Handle a char-table directly here.
24744 (describe_char_table): Delete.
24745
24746 * lisp.h (map_charset_chars): Delete.
24747
24748 2008-02-01 Dave Love <fx@gnu.org>
24749
24750 * fns.c (count_combining): Comment out (unused).
24751 (Flocale_codeset): New.
24752 (syms_of_fns): Defsubr it.
24753
24754 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
24755 (size_t): Remove.
24756
24757 2008-02-01 Dave Love <fx@gnu.org>
24758
24759 * Makefile.in (chartab.o): Depend on charset.h.
24760
24761 2008-02-01 Kenichi Handa <handa@m17n.org>
24762
24763 * character.c (syms_of_character): Set the default value of
24764 Vprintable_chars to Qnil.
24765
24766 2008-02-01 Dave Love <fx@gnu.org>
24767
24768 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
24769
24770 2008-02-01 Kenichi Handa <handa@m17n.org>
24771
24772 * charset.c (load_charset_map): Handle the case that from < to
24773 correctly.
24774
24775 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
24776 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
24777 Pay attention to raw-8-bit chars.
24778
24779 2008-02-01 Kenichi Handa <handa@m17n.org>
24780
24781 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
24782 It is not bytecompiled now.
24783
24784 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
24785 (charset_jisx0208): New variables.
24786 (Fdefine_charset_internal): Setup them if appropriate.
24787 (init_charset_once): Initialize them to -1.
24788
24789 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
24790 (charset_jisx0208): Extern them.
24791
24792 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
24793 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
24794 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
24795 (setup_iso_safe_charsets): Fix arguments to Fassq.
24796 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
24797 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
24798 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
24799 (encode_coding_iso_2022): Change the 1st arg to
24800 ENCODE_ISO_CHARACTER to a variable.
24801
24802 2008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * charset.h (enum define_charset_arg_index): New enums
24805 charset_arg_min_code and charset_arg_max_code.
24806 (struct charset): New member char_index_offset.
24807
24808 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
24809 Take charset->char_index_offset into account.
24810 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
24811 args[charset_arg_max_code]. Setup charset.char_index_offset.
24812 (syms_of_charset): Fix args to Fdefine_charset_internal.
24813
24814 2008-02-01 Dave Love <fx@gnu.org>
24815
24816 * coding.c (decode_coding_utf_8): Reject overlong sequences.
24817
24818 2008-02-01 Dave Love <fx@gnu.org>
24819
24820 * coding.c: Doc fixes.
24821 (Fcoding_system_aliases): Fix return value.
24822 (Qmac): Remove (duplicated) definition.
24823
24824 2008-02-01 Dave Love <fx@gnu.org>
24825
24826 * charset.c (Fcharset_priority_list, Fset_charset_priority):
24827 New functions.
24828
24829 * character.c (Fstring): Doc fix.
24830
24831 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
24832
24833 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
24834 (font-encoding-alist): Doc fix.
24835
24836 2008-02-01 Dave Love <fx@gnu.org>
24837
24838 * term.c (costs_set): Declare static, non-initialized for pcc.
24839 (encode_terminal_code): Remove unused var.
24840
24841 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24842 for K&R.
24843
24844 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
24845
24846 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
24847 (suffixes): Move out of make_subsidiaries for K&R.
24848
24849 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
24850
24851 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
24852
24853 2008-02-01 Dave Love <fx@gnu.org>
24854
24855 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
24856
24857 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
24858
24859 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
24860
24861 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
24862
24863 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
24864
24865 2008-02-01 Kenichi Handa <handa@m17n.org>
24866
24867 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
24868 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
24869
24870 2008-02-01 Kenichi Handa <handa@m17n.org>
24871
24872 * coding.c (decode_coding_charset): Adjust for the change of
24873 Fdefine_coding_system_internal.
24874 (Fdefine_coding_system_internal): For a coding system of
24875 `charset' type, store a list of charset IDs in
24876 `charset_attr_charset_valids' element of coding attributes.
24877
24878 2008-02-01 Kenichi Handa <handa@m17n.org>
24879
24880 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
24881 (emacs_mule_char): New arg src. Delete arg `composition'.
24882 Change caller. Handle 2-byte and 3-byte charsets correctly.
24883 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
24884 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
24885 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
24886 (DECODE_EMACS_MULE_21_COMPOSITION): Call
24887 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
24888 sequence.
24889 (decode_coding_emacs_mule): Handle composition correctly. Rewind
24890 `src' and `consumed_chars' correctly before calling emacs_mule_char.
24891 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
24892 and alt&rule composition.
24893 (decode_coding_iso_2022): Handle composition correctly.
24894 (init_coding_once): Setup emacs_mule_bytes for private charsets.
24895
24896 * charset.c (Fdefine_charset_internal): Fix bug for the case of
24897 re-defining a charset. If the charset has :emacs-mule-id, setup
24898 emacs_mule_bytes.
24899 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
24900
24901 2008-02-01 Kenichi Handa <handa@m17n.org>
24902
24903 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
24904 (encode_coding_big5, encode_coding_charset): If coding requires safe
24905 encoding, produce a character specified by
24906 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
24907
24908 2008-02-01 Dave Love <fx@gnu.org>
24909
24910 * xterm.c (XSetIMValues): Declare.
24911
24912 * process.c: Conditionally include sys/wait.h, pty.h.
24913
24914 * print.c (print_object): Fix print format for 64-bit systems.
24915
24916 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
24917
24918 * buffer.c (emacs_strerror): Declare.
24919
24920 * fontset.c (Fclear_face_cache): Declare.
24921 (accumulate_font_info): Comment-out (unused).
24922 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
24923 variables.
24924
24925 * character.h (string_escape_byte8): Declare.
24926
24927 * charset.c (load_charset_map, load_charset_map_from_file):
24928 Remove unused vars.
24929 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
24930 (Fmap_charset_chars): Doc fix.
24931
24932 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
24933 (Fset_coding_system_priority, Fset_coding_system_priority)
24934 (Fdefine_coding_system_internal): Doc fix.
24935
24936 2008-02-01 Dave Love <fx@gnu.org>
24937
24938 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
24939
24940 2008-02-01 Kenichi Handa <handa@m17n.org>
24941
24942 * character.c (string_escape_byte8): Make multibyte string with
24943 correct size.
24944
24945 * charset.c (Fmake_char): Delete unnecessary code.
24946
24947 2008-02-01 Kenichi Handa <handa@m17n.org>
24948
24949 * xfns.c (x_encode_text): Allocate coding.destination here, and
24950 call encode_coding_object with dst_object Qnil.
24951
24952 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
24953 multibyte form correctly.
24954
24955 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
24956 against Vfont_encoding_alist.
24957
24958 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
24959 handling of charset list.
24960 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
24961 (decode_coding_object): Move point to coding->dst_pos before
24962 calling post-read-conversion function.
24963 (encode_coding_object): Give correct arguments to
24964 pre-write-conversion. Ignore the return value of
24965 pre-write-conversion function. Pay attention to the case that
24966 pre-write-conversion changes the current buffer. If dst_object is
24967 Qt, even if coding->src_bytes is zero, allocate at least one byte
24968 to coding->destination.
24969
24970 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24971
24972 * charset.c (Fmake_char): Make it more backward compatible.
24973 (Fmap_charset_chars): Fix docstring.
24974
24975 2008-02-01 Dave Love <fx@gnu.org>
24976
24977 * coding.c: Doc fixes.
24978 (Fdefine_coding_system_alias): Use names, not symbols, in
24979 coding-system-alist.
24980
24981 2008-02-01 Kenichi Handa <handa@m17n.org>
24982
24983 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24984 of calling free_realized_face.
24985
24986 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
24987
24988 * charset.c (read_hex): Don't treat SPC as a comment starter.
24989 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24990 (Fdecode_char): Fix typo.
24991
24992 2008-02-01 Kenichi Handa <handa@m17n.org>
24993
24994 * charset.h (struct charset): New member `code_space_mask'.
24995
24996 * coding.c (coding_set_source): Delete the local variable beg_byte.
24997 (encode_coding_charset, Fdefine_coding_system_internal):
24998 Delete the local variable charset.
24999 (Fdefine_coding_system_internal):
25000 Setup attrs[coding_attr_charset_valids] correctly.
25001
25002 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
25003 member to check if CODE is valid or not.
25004 (Fdefine_charset_internal): Initialize `code_space_mask' member.
25005 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
25006 is within the range of charset->min_code and carset->max_code.
25007
25008 2008-02-01 Dave Love <fx@gnu.org>
25009
25010 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
25011
25012 * dispextern.h (generate_ascii_font): Fix return type.
25013
25014 * xfaces.c (generate_ascii_font): Fix arg declaration.
25015
25016 * coding.c (coding_inherit_eol_type)
25017 (Fset_terminal_coding_system_internal)
25018 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
25019
25020 2008-02-01 Kenichi Handa <handa@m17n.org>
25021
25022 * coding.c (decode_coding_charset, encode_coding_charset):
25023 Handle multiple charsets correctly.
25024
25025 2008-02-01 Kenichi Handa <handa@m17n.org>
25026
25027 * search.c (boyer_moore): Fix handling of multibyte character
25028 translation.
25029
25030 * xdisp.c (display_mode_element): When the variable `elt' is
25031 changed, update `this' and `lisp_string'.
25032
25033 2008-02-01 Kenichi Handa <handa@m17n.org>
25034
25035 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
25036
25037 * callproc.c (Fcall_process): Be sure to give the current buffer
25038 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
25039
25040 * charset.c (struct charset_map_entries): New struct.
25041 (load_charset_map): Rename from parse_charset_map. New args
25042 entries and n_entries. Change caller.
25043 (load_charset_map_from_file): Rename from load_charset_map.
25044 Change caller. New arg control_flag. Call load_charset_map at
25045 the tail.
25046 (load_charset_map_from_vector): New function.
25047 (Fdefine_charset_internal): Setup charset.compact_codes_p.
25048 (encode_char): If the charset is compact, change a character index
25049 to a code point.
25050
25051 * coding.c (coding_alloc_by_making_gap): Check the case that the
25052 source and destination are the same correctly.
25053 (decode_coding_raw_text): Set coding->consumed_char and
25054 coding->consumed to 0.
25055 (produce_chars): If coding->chars_at_source is nonzero, update
25056 coding->consumed_char and coding->consumed before calling
25057 alloc_destination.
25058 (Fdefine_coding_system_alias): Register ALIAS in
25059 Vcoding_system_alist.
25060 (syms_of_coding): Define `no-conversion' coding system at the tail.
25061
25062 * fileio.c (Finsert_file_contents): Set coding_system instead of
25063 val. If the current buffer is multibyte, always call
25064 decode_coding_gap.
25065
25066 * xfaces.c (try_font_list): Give higher priority to fontset's
25067 family than face's family.
25068
25069 2008-02-01 Kenichi Handa <handa@m17n.org>
25070
25071 * callproc.c (Fcall_process): Be sure to give the current buffer
25072 to decode_coding_c_string.
25073
25074 * xfaces.c (try_font_list): Give a family specified in a fontset
25075 higher priority than a family specified in a face.
25076
25077 2008-02-01 Kenichi Handa <handa@m17n.org>
25078
25079 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
25080 Fix arguments to insert_from_buffer.
25081
25082 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
25083
25084 2008-02-01 Kenichi Handa <handa@m17n.org>
25085
25086 * coding.c (produce_chars): Set the variable `multibytep' correctly.
25087 (decode_coding_gap): Set coding->dst_multibyte correctly.
25088
25089 2008-02-01 Kenichi Handa <handa@m17n.org>
25090
25091 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
25092 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
25093 (encode_coding_utf_16): Substitute coding->default_char for
25094 non-Unicode characters.
25095 (decode_coding): Don't call record_insert here.
25096 (setup_coding_system): Initialize `surrogate' of
25097 coding->spec.utf_16 to 0.
25098 (EMIT_ONE_BYTE): Fix for multibyte case.
25099
25100 * insdel.c (insert_from_gap): Call record_insert.
25101
25102 2008-02-01 Kenichi Handa <handa@m17n.org>
25103
25104 * casefiddle.c (casify_region): Fix multibyte case.
25105
25106 * character.c (c_string_width): Add return type `int'.
25107 (char_string_with_unification): Delete arg ADVANCED.
25108
25109 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
25110 (CHAR_STRING): Adjust for the change of char_string_with_unification.
25111 (CHAR_STRING_ADVANCE): Make it do-while statement.
25112
25113 * chartab.c (sub_char_table_set_range): Optimize for the case
25114 DEPTH == 3. Add workaround code for a GCC optimization bug.
25115
25116 * charset.c (parse_charset_map): Remove an unused variable.
25117
25118 * coding.c: Delete unused variables.
25119
25120 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
25121 earlier. If inserted is zero and the coding system doesn't
25122 require flushing, don't call decode_coding_gap.
25123
25124 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
25125
25126 2008-02-01 Kenichi Handa <handa@m17n.org>
25127
25128 The following changes are for using Unicode as an internal
25129 character model, and use UTF-8 format for buffer/string
25130 representation.
25131
25132 * .gdbinit (xchartable): Adjust for the change of char table structure.
25133 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
25134
25135 * Makefile.in (obj): Add character.o and chartab.o.
25136 (lisp, shortlisp): Remove utf-8.elc.
25137 (*.o): For many files, change dependency on charset.h to
25138 character.h, and add dependency on character.h.
25139 (character.o, chartab.o): New targets.
25140
25141 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
25142 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
25143 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
25144 of "charset.h".
25145
25146 * dired.c, filelock.c: Include "character.h".
25147
25148 * alloc.c: Include "character.h" instead of "charset.h".
25149 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
25150 (syms_of_alloc): Remove defsubr for Smake_char_table.
25151
25152 * buffer.c: Include "character.h" instead of "charset.h", don't
25153 include "coding.h".
25154 (Fset_buffer_multibyte): Adjust for UTF-8.
25155
25156 * buffer.h: EXFUN Fbuffer_live_p.
25157
25158 * callproc.c: Include "character.h" instead of "charset.h".
25159 (Fcall_process): Big change for the new code-conversion APIs.
25160
25161 * casetab.c: Include "character.h" instead of "charset.h".
25162 (set_canon, set_identity, shuffle): Adjust for the new
25163 map_char_table spec.
25164 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
25165 accessing the char table structure.
25166
25167 * chartab.c: New file that implements char table.
25168
25169 * category.c: Include "character.h".
25170 (copy_category_entry): New function.
25171 (copy_category_table): Call map_char_table and copy_category_entry.
25172 (Fmake_category_table): Initialize all top-level slots.
25173 (char_category_set): New function.
25174 (modify_lower_category_set): Delete.
25175 (Fmodify_category_entry): Call char_table_ref_and_range.
25176
25177 * category.h (CATEGORY_SET): Just call char_category_set.
25178
25179 * ccl.c: Include "character.h".
25180 (Qccl, Qcclp): New variables.
25181 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
25182 it's less than 256.
25183 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
25184 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
25185 and DST type.
25186 (ccl_driver): Change types of argument, adjust code accordingly.
25187 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
25188 ccl_driver.
25189 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
25190
25191 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
25192 New members src_multibyte, dst_multibyte, consumed, and produced.
25193 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
25194 (CODING_SPEC_CCL_PROGRAM): New macro.
25195 (ccl_driver): Update prototype.
25196 (Qccl, Qcclp, Fccl_program_p): Extern them.
25197 (CHECK_CCL_PROGRAM): New macro.
25198
25199 * character.c, character.h, chartab.c: New files.
25200
25201 * charset.c: Mostly re-written. Move character and multibyte sequence
25202 handling codes to character.c.
25203
25204 * charset.h: Mostly re-written. Move character and multibyte sequence
25205 handling codes to character.h.
25206
25207 * coding.c, coding.h: Mostly re-written.
25208
25209 * composite.c: Include "character.h" instead of "charset.h".
25210 (CHAR_WIDTH): Move to character.h.
25211 (HASH_KEY, HASH_VALUE): Delete.
25212
25213 * composite.h (enum composition_method): Change order of enumeration
25214 symbols.
25215
25216 * data.c: Include "character.h" instead of "charset.h".
25217 (Faref): Call CHAR_TABLE_REF for a char table.
25218 (Faset): Call CHAR_TABLE_SET for a char table.
25219
25220 * dispextern.h (free_realized_face, check_face_attribytes)
25221 (generate_ascii_font): Extern them.
25222 (free_realized_multibyte_face): Delete extern.
25223
25224 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
25225 table structure.
25226
25227 * editfns.c: Include "character.h" instead of "charset.h".
25228 (Fchar_to_string): Always call CHAR_STRING.
25229
25230 * emacs.c (main): Call init_charset_once, init_charset,
25231 syms_of_chartab, and syms_of_character.
25232
25233 * fileio.c: Include "character.h" instead of "charset.h".
25234 (Finsert_file_contents): Big change for the new code-conversion API.
25235 (choose_write_coding_system, Fwrite_region): Likewise.
25236 (build_annotations_2): Delete.
25237 (e_write): Big change for the new code-conversion API.
25238
25239 * fns.c: Include "character.h" instead of "charset.h".
25240 (copy_sub_char_table): Move to chartab.c.
25241 (Fcopy_sequence): Call copy_char_table for a char table.
25242 (concat): Delete codes calling count_multibyte.
25243 (string_char_to_byte, string_byte_to_char): Adjust for the new
25244 multibyte form.
25245 (internal_equal): Adjust for the change of char table structure.
25246 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
25247 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
25248 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
25249 (char_table_translate, optimize_sub_char_table)
25250 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
25251 chartab.c.
25252 (char_table_ref_and_index): Delete.
25253 (HASH_KEY, HASH_VALUE): Move to lisp.h.
25254 (Fmd5): Call preferred_coding_system instead of accessing
25255 Vcoding_category_list. Adjust for the new code-conversion API.
25256 (syms_of_fns): Move defsubr for char table related functions to
25257 chartab.c.
25258
25259 * fontset.c: Mostly re-written.
25260
25261 * fontset.h (struct font_info): Change type of the member encoding_type.
25262 (enum FONT_SPEC_INDEX): New enum.
25263 (fontset_font_pattern, fs_load_font): Update prototype.
25264 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
25265
25266 * indent.c: Include "character.h" instead of "charset.h".
25267 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
25268
25269 * insdel.c: Include "character.h" instead of "charset.h".
25270 (copy_text): Don't refer to Vnonascii_translation_table.
25271 (insert_from_gap): New function.
25272
25273 * keyboard.c: Include "character.h" instead of "charset.h".
25274 (command_loop_1): Never call direct_output_forward_char before
25275 a non-ASCII character.
25276 (read_char): If Vkeyboard_translate_table is a char table, always
25277 translate a character.
25278
25279 * keymap.c: Include "character.h".
25280 (store_in_keymap): Handle the case that IDX is a cons.
25281 (Fdefine_key): Handle the case that KEY is a cons and the car part
25282 is also a cons (range).
25283 (push_key_description): Adjust for the new character code.
25284 (describe_vector): Call describe_char_table for a char table.
25285 (describe_char_table): New function.
25286
25287 * keymap.h (describe_char_table): Extern it.
25288
25289 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
25290 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
25291 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
25292 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
25293 Delete.
25294 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
25295 structure.
25296 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
25297 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
25298 (CHARTAB_SIZE_BITS_3): New macros.
25299 (chartab_size): Extern it.
25300 (struct Lisp_Char_Table): Re-design.
25301 (struct Lisp_Sub_Char_Table): New structure.
25302 (HASH_KEY, HASH_VALUE): Move from fns.c.
25303 (CHARACTERBITS): Define as 22.
25304 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
25305 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
25306 (GC_SUB_CHAR_TABLE_P): New macro.
25307 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
25308 (code_convert_string_norecord): Deleted extern.
25309 (init_character_once, syms_of_character, init_charset)
25310 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
25311
25312 * lread.c: Include "character.h".
25313 (read_multibyte): New arg NBYTES.
25314 (read_escape): Change the meaning of returned *BYTEREP.
25315 (to_multibyte): Delete.
25316 (read1): Adjust the handling of char table and string.
25317
25318 * print.c: Include "character.h" instead of "charset.h".
25319 (print_string): Convert 8-bit raw bytes to octal form by
25320 string_escape_byte8.
25321 (print_object): Adjust for the new multibyte form. Print 8-bit
25322 raw bytes always in octal form. Handle sub char table correctly.
25323
25324 * process.c: Include "character.h" instead of "charset.h".
25325 (read_process_output, send_process): Adjust for the new
25326 code-conversion API.
25327
25328 * puresize.h (BASE_PURESIZE): Increase.
25329
25330 * regex.c: Include "character.h" instead of "charset.h".
25331 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
25332 (regex_compile): Accept a range whose starting and ending
25333 character have different leading bytes.
25334 (analyse_first): Adjust for the above change.
25335
25336 * search.c: Include "character.h" instead of "charset.h".
25337 (search_buffer, boyer_moore): Adjust for the new multibyte form.
25338 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
25339
25340 * syntax.c: Include "character.h" instead of "charset.h".
25341 (syntax_parent_lookup): Delete.
25342 (Fmodify_syntax_entry): Accept a cons as CHAR.
25343 (skip_chars): Adjust for the new multibyte form.
25344 (init_syntax_once): Call char_table_set_range instead of directly
25345 accessing the structure of a char table.
25346
25347 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
25348 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
25349 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
25350 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
25351
25352 * term.c: Include "buffer.h" and "character.h".
25353 (encode_terminal_code, write_glyphs): Adjust for the new
25354 code-conversion API.
25355 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
25356
25357 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
25358
25359 * xdisp.c: Include "character.h".
25360 (get_next_display_element): Adjust for the new multibyte form.
25361 (disp_char_vector): Adjust for the new char table structure.
25362 (decode_mode_spec_coding): Adjust for the new structure of
25363 coding system.
25364 (decode_mode_spec): Adjust for the new code-conversion API.
25365
25366 * xfaces.c: Include "character.h" instead of "charset.h".
25367 (load_face_font): Adjust for the change of choose_face_font and
25368 FS_LOAD_FONT.
25369 (generate_ascii_font): New function.
25370 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
25371 (set_font_frame_param): Adjust for the change of choose_face_font.
25372 (free_realized_face): Make it public.
25373 (free_realized_faces_for_fontset): Rename from
25374 free_realized_multibyte_face. Free also faces realized for ASCII.
25375 (choose_face_font): Change arguments. Adjust for the change of
25376 fontset_font_pattern and FS_LOAD_FONT.
25377
25378 * xfns.c: Include "character.h".
25379 (x_encode_text): Adjust for the new code-conversion API.
25380
25381 * xselect.c: Don't include "charset.h".
25382 (selection_data_to_lisp_data): Adjust for the new code conversion API.
25383
25384 * xterm.c: Include "character.h".
25385 (x_encode_char): New argument CHARSET. Change caller.
25386 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
25387 Call ENCODE_CHAR instead of SPLIT_CHAR.
25388 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
25389 CHAR_WIDTH instead of CHARSET_WIDTH.
25390 (XTread_socket): Adjust for the new code-conversion API.
25391 (x_new_font): Adjust for the change of FS_LOAD_FONT.
25392 (x_load_font): Adjust for the change of struct font.
25393
25394 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
25395
25396 * xfaces.c (face_at_buffer_position): Remove unused vars.
25397
25398 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
25399
25400 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
25401 Fix overflow checking.
25402
25403 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
25404
25405 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
25406 Cancel previous change.
25407
25408 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
25409
25410 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
25411 ccl->eight_bit_control. Fix check for buffer overflow.
25412 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
25413 (ccl_driver): Initialize extra_bytes to 0.
25414
25415 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
25416
25417 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
25418 return it ORed with ctrl_modifier.
25419
25420 2008-01-29 Miles Bader <miles@gnu.org>
25421
25422 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
25423
25424 2008-01-28 Jason Rumney <jasonr@gnu.org>
25425
25426 * w32.c (stat): Don't double check for networked drive.
25427
25428 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
25429
25430 * window.c (run_window_configuration_change_hook): New function.
25431 Code extracted from set_window_buffer. Set the selected frame.
25432 (set_window_buffer): Use it.
25433 * window.h (run_window_configuration_change_hook): Declare.
25434 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
25435
25436 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
25437
25438 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
25439
25440 * Makefile.in: Remove references to unused macros.
25441
25442 2008-01-26 Eli Zaretskii <eliz@gnu.org>
25443
25444 * w32.c (g_b_init_get_sid_sub_authority)
25445 (g_b_init_get_sid_sub_authority_count): New static variables.
25446 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
25447 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
25448 (init_user_info): Use them to retrieve uid and gid.
25449 Use 500/513, the Windows defaults, as Administrator's uid/gid.
25450 (fstat): Use pw_uid and pw_gid from the_passwd structure for
25451 st_uid and st_gid of the file.
25452
25453 2008-01-26 Jason Rumney <jasonr@gnu.org>
25454
25455 * w32.c (logon_network_drive): New function.
25456 (stat): Use it.
25457
25458 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
25459
25460 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
25461 invisible text covered with an ellipsis.
25462
25463 2008-01-25 Richard Stallman <rms@gnu.org>
25464
25465 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
25466 jump back to beginning. Move some other initializations after that.
25467 (Qwindow_text_change_functions, Vwindow_text_change_functions):
25468 New variables.
25469 (syms_of_xdisp): Init them.
25470
25471 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
25472
25473 * buffer.c (reset_buffer_local_variables):
25474 Implement `permanent-local-hook'.
25475 (Qpermanent_local_hook): New variable.
25476 (syms_of_buffer): Init and staticpro it.
25477
25478 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
25479
25480 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
25481
25482 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
25483
25484 * fns.c (Fclrhash): Return TABLE.
25485
25486 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25487
25488 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
25489 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
25490 is set even without positional changes.
25491 (x_scroll_bar_clear): Set bar->redraw_needed_p.
25492
25493 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
25494
25495 2008-01-23 Jason Rumney <jasonr@gnu.org>
25496
25497 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
25498
25499 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
25500 the unicode range available in MULE by locale-coding-system.
25501 Improve dbcs lead byte detection. Set event timestamp and modifiers
25502 earlier.
25503
25504 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25505
25506 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
25507 [MAC_OSX] (init_mac_osx_environment): Initialize it.
25508 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
25509 when used on child processes.
25510
25511 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
25512
25513 * dbusbind.c (Fdbus_method_return_internal): Rename from
25514 Fdbus_method_return.
25515 (Fdbus_unregister_object): Move to dbus.el.
25516 (Fdbus_call_method, Fdbus_method_return_internal)
25517 (Fdbus_send_signal): Improve debug messages.
25518
25519 2008-01-20 Martin Rudalics <rudalics@gmx.at>
25520
25521 * undo.c (undo_inhibit_record_point): New variable.
25522 (syms_of_undo): Initialize it.
25523 (record_point): Don't record point when undo_inhibit_record_point
25524 is set.
25525
25526 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
25527
25528 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
25529
25530 * xdisp.c (Qauto_hscroll_mode): New var.
25531 (syms_of_xdisp): Initialize it.
25532 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
25533 window's buffer.
25534 (hscroll_windows): Don't check automatic_hscrolling_p here.
25535
25536 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
25537 vscroll if we're setting window-buffer to the value it already has.
25538
25539 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
25540
25541 * m/intel386.h: Remove references to XENIX.
25542
25543 2008-01-17 Andreas Schwab <schwab@suse.de>
25544
25545 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
25546 instead of HAVE_X86_64_LIB64_DIR.
25547 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
25548
25549 2008-01-17 Glenn Morris <rgm@gnu.org>
25550
25551 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
25552 to HAVE_X86_64_LIB64_DIR.
25553
25554 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
25555
25556 * s/irix3-3.h:
25557 * s/irix4-0.h:
25558 * s/386-ix.h:
25559 * s/domain.h:
25560 * s/hpux9-x11r4.h:
25561 * s/hpux9shxr4.h: Remove files for systems no longer supported.
25562
25563 * sysdep.c: Remove code containing references to symbols defined
25564 by unsupported systems.
25565
25566 2008-01-16 Glenn Morris <rgm@gnu.org>
25567
25568 * coding.c (select-safe-coding-system-function): Doc fix.
25569
25570 2008-01-15 Glenn Morris <rgm@gnu.org>
25571
25572 * config.in: Revert 2008-01-13 change: this is a generated file.
25573
25574 2008-01-13 Tom Tromey <tromey@redhat.com>
25575
25576 * lisp.h: Fix typo.
25577
25578 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25579
25580 * m/sequent-ptx.h:
25581 * m/sequent.h:
25582 * s/ptx.h:
25583 * s/ptx4-2.h:
25584 * s/ptx4.h: Remove files for systems no longer supported.
25585
25586 * callproc.c (Fcall_process): Fix previous change.
25587
25588 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25589
25590 * unexsunos4.c: Remove file, system not supported anymore.
25591
25592 * m/mips.h:
25593 * m/intel386.h:
25594 * callproc.c:
25595 * config.in:
25596 * ecrt0.c:
25597 * emacs.c:
25598 * fileio.c:
25599 * frame.c:
25600 * getpagesize.h:
25601 * keyboard.c:
25602 * lread.c:
25603 * process.c:
25604 * puresize.h:
25605 * sysdep.c:
25606 * systty.h:
25607 * syswait.h:
25608 * unexec.c:
25609 * xdisp.c:
25610 * alloc.c: Remove code containing references to symbols defined by
25611 unsupported systems.
25612
25613 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
25614
25615 * coding.c (detect_coding_mask): Fix previous change.
25616
25617 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
25618
25619 * coding.c (detect_coding_iso2022): New arg
25620 latin_extra_code_state. Allow Latin extra codes only
25621 when *latin_extra_code_state is nonzero.
25622 (detect_coding_mask): If there is a NULL byte, detect the encoding
25623 as UTF-16 or binary. If Latin extra codes exist, detect the
25624 encoding as ISO-2022 only when there's no other proper encoding is
25625 found.
25626
25627 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25628
25629 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
25630 #ifdef MAC_OS.
25631
25632 2008-01-08 Richard Stallman <rms@gnu.org>
25633
25634 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
25635
25636 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
25637
25638 * keyboard.c (parse_menu_item): Don't enclose key bindings on
25639 menu bar in parentheses.
25640
25641 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
25642
25643 * m/7300.h:
25644 * m/acorn.h:
25645 * m/alliant-2800.h:
25646 * m/alliant.h:
25647 * m/alliant1.h:
25648 * m/alliant4.h:
25649 * m/altos.h:
25650 * m/amdahl.h:
25651 * m/apollo.h:
25652 * m/att3b.h:
25653 * m/aviion-intel.h:
25654 * m/aviion.h:
25655 * m/celerity.h:
25656 * m/clipper.h:
25657 * m/cnvrgnt.h:
25658 * m/convex.h:
25659 * m/cydra5.h:
25660 * m/delta88k.h:
25661 * m/dpx2.h:
25662 * m/dual.h:
25663 * m/elxsi.h:
25664 * m/f301.h:
25665 * m/gould-np1.h:
25666 * m/gould.h:
25667 * m/i860.h:
25668 * m/ibmps2-aix.h:
25669 * m/ibmrt-aix.h:
25670 * m/ibmrt.h:
25671 * m/irist.h:
25672 * m/is386.h:
25673 * m/isi-ov.h:
25674 * m/mega68.h:
25675 * m/mg1.h:
25676 * m/news-r6.h:
25677 * m/news-risc.h:
25678 * m/news.h:
25679 * m/nh3000.h:
25680 * m/nh4000.h:
25681 * m/ns16000.h:
25682 * m/ns32000.h:
25683 * m/nu.h:
25684 * m/orion.h:
25685 * m/orion105.h:
25686 * m/paragon.h:
25687 * m/pfa50.h:
25688 * m/plexus.h:
25689 * m/pyramid.h:
25690 * m/pyrmips.h:
25691 * m/sh3el.h:
25692 * m/sps7.h:
25693 * m/sr2k.h:
25694 * m/stride.h:
25695 * m/sun1.h:
25696 * m/sun2.h:
25697 * m/sun3-68881.h:
25698 * m/sun3-fpa.h:
25699 * m/sun3-soft.h:
25700 * m/sun3.h:
25701 * m/sun386.h:
25702 * m/symmetry.h:
25703 * m/tad68k.h:
25704 * m/tahoe.h:
25705 * m/targon31.h:
25706 * m/tek4300.h:
25707 * m/tekxd88.h:
25708 * m/tower32.h:
25709 * m/tower32v3.h:
25710 * m/ustation.h:
25711 * m/wicat.h:
25712 * m/xps100.h:
25713 * s/cxux.h:
25714 * s/cxux7.h:
25715 * s/dgux.h:
25716 * s/dgux4.h:
25717 * s/dgux5-4-3.h:
25718 * s/dgux5-4r2.h:
25719 * s/esix.h:
25720 * s/esix5r4.h:
25721 * s/hiuxmpp.h:
25722 * s/hiuxwe2.h:
25723 * s/iris3-5.h:
25724 * s/iris3-6.h:
25725 * s/isc2-2.h:
25726 * s/isc3-0.h:
25727 * s/isc4-0.h:
25728 * s/isc4-1.h:
25729 * s/newsos5.h:
25730 * s/newsos6.h:
25731 * s/osf1.h:
25732 * s/osf5-0.h:
25733 * s/riscix1-1.h:
25734 * s/riscix12.h:
25735 * s/sco4.h:
25736 * s/sco5.h:
25737 * s/sunos4-0.h:
25738 * s/sunos4-1.h:
25739 * s/sunos413.h:
25740 * s/sunos4shr.h:
25741 * s/umax.h:
25742 * s/unipl5-2.h:
25743 * s/xenix.h:
25744 * cxux-crt0.s:
25745 * unexapollo.c:
25746 * unexconvex.c:
25747 * unexenix.c:
25748 * unexsni.c: Remove files for systems no longer supported.
25749
25750 * m/intel386.h: Remove references to unsupported systems.
25751
25752 * w32.c (get_emacs_configuration): Remove reference to i860.
25753
25754 * sysdep.c: Remove dead code.
25755
25756 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
25757
25758 * s/rtu.h:
25759 * m/masscomp.h: Remove files. Platform is obsolete.
25760
25761 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
25762
25763 * dbusbind.c (Fdbus_method_return): New function.
25764 (xd_read_message): Add the serial number to the event.
25765 (Fdbus_register_method): Activate the function.
25766
25767 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
25768
25769 * keyboard.c (read_key_sequence): Fix typo.
25770
25771 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
25772
25773 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
25774 (xd_signature, xd_append_arg): Handle element type detection for
25775 empty arrays.
25776 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
25777 SDATA () calls; this must be solved more general.
25778 (Fdbus_register_signal): Use SBYTES instead of strlen.
25779
25780 2008-01-03 Magnus Henoch <magnus@zemdatav>
25781
25782 * dbusbind.c (xd_append_arg): Use unsigned char instead of
25783 unsigned int for byte values (necessary for big-endian platform).
25784 (Fdbus_call_method): Handle the case of no returned arguments.
25785
25786 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
25787
25788 * dbusbind.c (xd_read_message): Use non-static input_event struct.
25789
25790 2007-12-31 Magnus Henoch <mange@freemail.hu>
25791
25792 * dbusbind.c (xd_signature): Signature of variant is just "v".
25793
25794 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
25795
25796 * dbusbind.c: Fix several errors and compiler warnings.
25797 Reported by Tom Tromey <tromey@redhat.com>.
25798 (XD_ERROR, XD_DEBUG_MESSAGE)
25799 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
25800 (xd_append_arg): Part for basic D-Bus types rewritten.
25801 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
25802 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
25803 appropriate.
25804 (xd_read_message): Return Qnil. Don't signal an error; it is not
25805 useful during event reading.
25806 (Fdbus_register_signal): Signal an error if the check for
25807 FUNCTIONP fails.
25808 (Fdbus_register_method): New function. The implementation is not
25809 complete, the call of the function signals an error therefore.
25810 (Fdbus_unregister_object): New function, renamed from
25811 Fdbus_unregister_signal. The initial check signals an error, if
25812 the object is not well formed.
25813
25814 2007-12-30 Richard Stallman <rms@gnu.org>
25815
25816 * textprop.c (get_char_property_and_overlay):
25817 Signal error if POSITION is out of range in a buffer.
25818
25819 2007-12-29 Martin Rudalics <rudalics@gmx.at>
25820
25821 * w32fns.c (Fx_create_frame): Make copy of frame parameters
25822 because the original parameters are in pure storage now.
25823
25824 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25825
25826 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
25827
25828 2007-12-22 Eli Zaretskii <eliz@gnu.org>
25829
25830 * callint.c (syms_of_callint) <command-history>: Add reference to
25831 history-length in the doc string.
25832
25833 2007-12-17 Jason Rumney <jasonr@gnu.org>
25834
25835 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
25836 before passing as wParam.
25837
25838 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
25839
25840 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
25841 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
25842 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
25843 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
25844 as number.
25845 (Fdbus_call_method): Fix docstring.
25846
25847 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
25848
25849 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
25850 New macros.
25851 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
25852 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
25853 Simplify.
25854 (xd_signature): New function.
25855 (xd_append_arg): Compute also signatures. Major rewrite.
25856 (xd_retrieve_arg): Make debug messages friendly.
25857 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
25858 Check for signatures of arguments.
25859
25860 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
25861
25862 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
25863 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
25864 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
25865 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
25866 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
25867 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
25868 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
25869 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
25870 (xd_retrieve_value): Remove. Functionality included in ...
25871 (xd_append_arg): New function.
25872 (Fdbus_call_method, Fdbus_send_signal): Apply it.
25873
25874 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
25875
25876 * dbusbind.c (top): Include <stdio.h>.
25877 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
25878 dbus_message_new_method_call and dbus_message_new_signal.
25879 (Fdbus_register_signal): Rename unique_name to uname.
25880 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
25881 non-existing unique name. Fix typos in matching rule. Return an
25882 object which is useful in Fdbus_unregister_signal.
25883 (Fdbus_unregister_signal): Reimplementation, in order to remove
25884 only the corresponding entry.
25885 (Vdbus_registered_functions_table): Change the order of entries.
25886 Apply these changes in xd_read_message and Fdbus_register_signal.
25887
25888 2007-12-16 Andreas Schwab <schwab@suse.de>
25889
25890 * fileio.c (Finsert_file_contents): Fix overflow check to not
25891 depend on undefined integer overflow.
25892
25893 2007-12-14 Jason Rumney <jasonr@gnu.org>
25894
25895 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
25896 for characters above 127.
25897
25898 2007-12-13 Jason Rumney <jasonr@gnu.org>
25899
25900 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
25901 before dereferencing array.
25902 (lookup_vk_code): Remove zero comparison.
25903
25904 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
25905
25906 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
25907 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
25908 Use `unsigned int' instead of `uint'.
25909 (xd_read_message, Fdbus_register_signal): Split expressions into
25910 multiple lines before operators "&&" and "||", according to the
25911 GNU Coding Standards.
25912
25913 2007-12-14 Eli Zaretskii <eliz@gnu.org>
25914
25915 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
25916
25917 2007-12-12 Juri Linkov <juri@jurta.org>
25918
25919 * buffer.c (Frename_buffer): In interactive spec replace
25920 `read-buffer' with `read-string' that uses `buffer-name-history'
25921 as history, and the current buffer's name as default.
25922
25923 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
25924
25925 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
25926 manipulating the backtrace manually.
25927 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
25928 (struct backtrace, backtrace_list): Remove.
25929 (command_loop_1): Remove dead var `no_direct'.
25930
25931 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
25932 preserve non-built-in buffer-local variables.
25933 (Fkill_all_local_variables): Don't re-create&re-set permanent
25934 buffer-local variables.
25935
25936 2007-12-09 Juri Linkov <juri@jurta.org>
25937
25938 * buffer.c (Frename_buffer): Change interactive spec from "s" to
25939 Lisp code that uses `read-buffer' with current buffer as default.
25940
25941 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
25942
25943 * dbusbind.c (xd_read_message): Generate an event for every
25944 registered handler. There might be several handlers registered
25945 for the same signal.
25946 (Fdbus_register_signal): Don't overwrite a registration for the
25947 same signal. Add a new registration if handlers are different.
25948 (Vdbus_registered_functions_table): Rework doc string.
25949
25950 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
25951
25952 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
25953 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
25954 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
25955 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
25956 Unify argument lists.
25957 (xd_read_message, Fdbus_register_signal): Reorder and extend event
25958 arguments and hash table keys. Use unique name for service.
25959 (Fdbus_unregister_signal): Remove checks.
25960 (Vdbus_registered_functions_table): Fix doc string.
25961
25962 2007-12-05 Magnus Henoch <mange@freemail.hu>
25963
25964 * process.c (make_process): Initialize pty_flag to 0.
25965
25966 2007-12-05 Jason Rumney <jasonr@gnu.org>
25967
25968 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25969 specified XBMs.
25970
25971 2007-12-05 Richard Stallman <rms@gnu.org>
25972
25973 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25974
25975 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25976
25977 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25978 New variable.
25979 (mac_try_close_socket) [MAC_OSX]: New function.
25980 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25981 Update cfsockets_for_select. Replace invalid CFRunLoop source.
25982
25983 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25984 Use mac_try_close_socket.
25985
25986 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25987
25988 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
25989 reloc_base.
25990 (copy_dysymtab): Compute relocation base here.
25991 (rebase_reloc_address) [__ppc64__]: New function.
25992 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25993 changed.
25994
25995 2007-12-05 Jason Rumney <jasonr@gnu.org>
25996
25997 * w32proc.c (sys_spawnve): Quote args with wildcards.
25998
25999 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26000
26001 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
26002 __objc_* sections.
26003 (unrelocate) [_LP64]: Set relocation base to address of data segment.
26004
26005 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
26006
26007 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
26008 Move check for Vdbus_registered_functions_table to
26009 xd_read_queued_messages.
26010 (xd_read_queued_messages): Protect xd_read_message calls by
26011 internal_condition_case_1.
26012
26013 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
26014
26015 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
26016 Qdbus_system_bus and Qdbus_session_bus, respectively.
26017 (Vdbus_intern_symbols): Remove.
26018 (Vdbus_registered_functions_table): New hash table.
26019 (XD_SYMBOL_INTERN_SYMBOL): Remove.
26020 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
26021 Rewrite in order to manage registered functions by hash table
26022 Vdbus_registered_functions_table.
26023
26024 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
26025
26026 * xterm.c: Update URL to Window Manager Specification in comment.
26027
26028 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
26029
26030 * config.in (HAVE_DBUS): Add.
26031
26032 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
26033 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
26034 (obj): Add $(DBUS_OBJ).
26035 (LIBES): Add $(DBUS_LIBS).
26036 (dbusbind.o): New target.
26037
26038 * dbusbind.c: New file.
26039
26040 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
26041
26042 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
26043 (Qdbus_event): New Lisp symbol.
26044 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
26045 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
26046 (keys_of_keyboard): Define dbus-event.
26047
26048 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
26049
26050 2007-12-01 Richard Stallman <rms@gnu.org>
26051
26052 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
26053
26054 2007-11-30 Jason Rumney <jasonr@gnu.org>
26055
26056 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
26057 (w32con_reset_terminal_modes): Clear screen buffer.
26058 (w32_face_attributes): Don't use color indexes that are out of range.
26059 Only reverse the default colors.
26060
26061 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
26062 WINDOWSNT.
26063
26064 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
26065
26066 2007-11-29 Jason Rumney <jasonr@gnu.org>
26067
26068 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
26069 (w32_face_attributes): Use Vtty_defined_color_alist to determine
26070 if the terminal colors are initialized.
26071 (unspecified_fg, unspecified_bg): Remove unused declarations.
26072
26073 2007-11-29 Andreas Schwab <schwab@suse.de>
26074
26075 * keyboard.c (apply_modifiers): Fix typo.
26076
26077 2007-11-29 Richard Stallman <rms@gnu.org>
26078
26079 * keymap.c (Fcurrent_local_map): Doc fix.
26080
26081 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
26082
26083 * s/gnu-kfreebsd.h: New file.
26084
26085 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
26086
26087 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
26088 Don't cast redundantly.
26089
26090 * keyboard.c (KEY_TO_CHAR): New macro.
26091 (parse_modifiers, apply_modifiers): Accept integer arguments.
26092 (read_key_sequence): Use them to unify the "shift->unshift" mapping
26093 for chars and symbol keys.
26094 After doing such remapping, apply function-key-map again.
26095
26096 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
26097
26098 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
26099 compiled anymore.
26100
26101 2007-11-26 Andreas Schwab <schwab@suse.de>
26102
26103 * process.c (list_processes_1): Fix indentation level of the
26104 command column.
26105
26106 2007-11-23 Andreas Schwab <schwab@suse.de>
26107
26108 * editfns.c (Fformat): Handle %c specially since it requires the
26109 argument to be of type int.
26110
26111 2007-11-23 Markus Triska <markus.triska@gmx.at>
26112
26113 * emacs.c (main): Call init_editfns before init_process, since
26114 init_process sets Vprocess_connection_type depending on OS release.
26115
26116 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
26117
26118 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
26119 (find_symbol_value): Use do_symval_forwarding.
26120
26121 * data.c (set_internal): Set the value in the `cons-cell' (for
26122 Buffer_Local_values) not only for frame-local variables.
26123
26124 2007-11-22 Andreas Schwab <schwab@suse.de>
26125
26126 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
26127 values to sprintf.
26128 * keymap.c (Fsingle_key_description): Likewise.
26129 * print.c (print_object): Likewise.
26130
26131 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
26132
26133 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
26134 file for image is nil.
26135
26136 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
26137
26138 * term.c: Include stdarg.h.
26139 (fatal): Implement using varargs.
26140 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
26141
26142 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
26143
26144 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
26145 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
26146 Update call to buffer_slot_type_mismatch.
26147 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
26148 (buffer_slot_type_mismatch): Update.
26149 * buffer.c (buffer_local_types): Remove.
26150 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
26151 (defvar_per_buffer): Set the type in the buffer_objfwd.
26152
26153 2007-11-21 Jason Rumney <jasonr@gnu.org>
26154
26155 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
26156 CreateFileMapping returns NULL on failure.
26157
26158 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
26159
26160 * search.c (Fset_match_data): Remove the `evaporate' feature.
26161 (unwind_set_match_data): Don't use the `evaporate' feature.
26162
26163 2007-11-21 Jason Rumney <jasonr@gnu.org>
26164
26165 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
26166
26167 * w32console.c (w32con_write_glyphs): Remove unused variables.
26168
26169 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
26170
26171 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
26172
26173 * s/darwin.h (MULTI_KBOARD): Remove.
26174
26175 * macfns.c (x_create_tip_frame, Fx_create_frame)
26176 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
26177
26178 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
26179
26180 * buffer.c (Fbuffer_local_value): Remove redundant test.
26181 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
26182 than in `current-buffer' to match the comment.
26183 Do the swap using swap_in_global_binding.
26184
26185 * data.c (store_symval_forwarding, set_internal):
26186 * eval.c (specbind): Remove dead code.
26187
26188 * coding.c (detect_coding, Fupdate_coding_systems_internal):
26189 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
26190 Since we do not want to see internal Lisp_*fwd objects here.
26191
26192 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
26193
26194 * sysdep.c (init_system_name): Use getaddrinfo if available.
26195
26196 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
26197 (x_scroll_bar_note_movement): start, end, with, height in struct
26198 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
26199
26200 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
26201
26202 * puresize.h (BASE_PURESIZE): Increase to 1190000.
26203
26204 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
26205
26206 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
26207 This undoes Richard's change of 14-Oct-2002.
26208
26209 * alloc.c (allocate_other_vector):
26210 * lisp.h (allocate_other_vector): Remove.
26211
26212 * window.c (struct save_window_data): Move non-lisp data to the end
26213 and make it `int' rather than Lisp_Object.
26214 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
26215 Done wrap/unwrap integer values.
26216 (Fset_window_configuration, compare_window_configurations):
26217 Update use of fields to their new types.
26218
26219 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
26220 Turn integer fields into `int'. Merge x_window_low and x_window_high.
26221 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
26222 (SET_SCROLL_BAR_X_WINDOW): Remove.
26223 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
26224 Access the new x_window field directly.
26225 * xterm.c (x_scroll_bar_create): Use a pseudovector.
26226 Don't wrap/unwrap integers into Lisp_Objects.
26227 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
26228 (x_scroll_bar_report_motion):
26229 Don't wrap/unwrap integers into Lisp_Objects.
26230 (x_term_init): Use SDATA.
26231 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
26232 (x_scroll_bar_set_handle, x_scroll_bar_remove)
26233 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
26234 (x_scroll_bar_report_motion, x_scroll_bar_clear):
26235 * xfns.c (x_set_background_color):
26236 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
26237 Access the new x_window field directly.
26238
26239 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
26240 (allocate_pseudovector): Make non-static.
26241
26242 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
26243 (allocate_pseudovector): Declare.
26244 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
26245
26246 2007-11-15 Andreas Schwab <schwab@suse.de>
26247
26248 * editfns.c (Fformat): Correctly format EMACS_INT values.
26249 Also take precision into account when formatting an integer.
26250
26251 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
26252
26253 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
26254
26255 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
26256 (syms_of_keyboard): Defsubr it.
26257
26258 * data.c (swap_in_global_binding): Fix longstanding bug where
26259 store_symval_forwarding was not called with the right second argument,
26260 thus causing objfwd-ing from being dropped.
26261
26262 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
26263
26264 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
26265 (Fx_display_pixel_height, Fx_display_planes)
26266 (Fx_display_color_cells, Fx_server_max_request_size)
26267 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26268 (Fx_display_visual_class, Fx_display_save_under):
26269 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
26270 (Fx_display_pixel_height, Fx_display_planes)
26271 (Fx_display_color_cells, Fx_server_max_request_size)
26272 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
26273 (Fx_display_mm_height, Fx_display_mm_width)
26274 (Fx_display_backing_store, Fx_display_visual_class)
26275 (Fw32_select_font, Fx_display_save_under):
26276 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
26277 (Fx_display_pixel_height, Fx_display_planes)
26278 (Fx_display_color_cells, Fx_server_max_request_size)
26279 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26280 (Fx_display_save_under): Fix typos in docstrings.
26281
26282 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
26283
26284 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
26285 corresponding to deleted entries; they are an implementation detail.
26286 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
26287 Remove variables.
26288 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
26289 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
26290 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
26291 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
26292 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
26293 (Fw32_define_rgb_color, Fw32_load_color_file)
26294 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
26295 Fix typos in docstrings.
26296 (Fx_server_version): Reflow docstring.
26297 (Fw32_shell_execute): Doc fixes.
26298
26299 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
26300
26301 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
26302 if w32_parse_hot_key returned nil.
26303
26304 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
26305
26306 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
26307
26308 2007-11-09 Jason Rumney <jasonr@gnu.org>
26309
26310 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
26311
26312 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
26313
26314 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
26315 Remove W32_SCROLL_BAR_CLICK_EVENT.
26316
26317 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
26318 Add MULTIMEDIA_KEY_EVENT.
26319
26320 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
26321 (lispy_multimedia_keys) [WINDOWSNT]: New array.
26322 (make_lispy_event) [WINDOWSNT]: Use it to translate
26323 MULTIMEDIA_KEY_EVENT.
26324
26325 * w32term.h (WM_APPCOMMAND): Define if not already.
26326 (GET_APPCOMMAND_LPARAM): Likewise.
26327
26328 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
26329 WM_APPCOMMAND.
26330
26331 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
26332 (syms_of_w32fns): Export and initialize it.
26333 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
26334
26335 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
26336
26337 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
26338 twice.
26339
26340 * xdisp.c (handle_face_prop): Fix last change.
26341
26342 2007-11-09 Richard Stallman <rms@gnu.org>
26343
26344 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
26345 not just for after-strings and before-strings.
26346 Call face_for_overlay_string and pass the overlay to it.
26347 (handle_display_prop): Determine whether property came from an overlay.
26348 Pass OVERLAY arg to handle_single_display_spec.
26349 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
26350 (load_overlay_strings): Fill in it->string_overlays.
26351 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
26352
26353 * xfaces.c (face_for_overlay_string): Function renamed from
26354 face_at_buffer_position_no_overlays, and add arg OVERLAY.
26355
26356 * dispextern.h (struct it): New elt string_overlays.
26357 New elt from_overlay, also in stack.
26358 Rearrange a few elements.
26359 (face_for_overlay_string): Decl renamed from
26360 face_at_buffer_position_no_overlays, and add argument.
26361
26362 2007-11-09 Richard Stallman <rms@gnu.org>
26363
26364 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
26365 to get the base face for an overlay string.
26366
26367 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
26368
26369 * xfaces.c (face_at_buffer_position_no_overlays): New function.
26370
26371 * xdisp.c (handle_stop): Move some code out of loop.
26372
26373 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26374
26375 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
26376 Fix conversion from Lisp object to ATSUFontID.
26377
26378 2007-11-09 Jason Rumney <jasonr@gnu.org>
26379
26380 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
26381
26382 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26383
26384 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
26385 Don't assume regions are aligned to page boundary.
26386 (print_load_command_name): Add LC_UUID if defined.
26387
26388 2007-11-09 Richard Stallman <rms@gnu.org>
26389
26390 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
26391
26392 2007-11-07 Jason Rumney <jasonr@gnu.org>
26393
26394 * s/windows95.h: Remove.
26395
26396 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
26397
26398 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
26399 abort with a message on unhandled store_type values.
26400
26401 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
26402
26403 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
26404 Remove HAVE_X11R5 and HAVE_X11R4.
26405
26406 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
26407
26408 * Makefile.in: Remove references to sunfns.c and sunfns.o.
26409
26410 2007-11-01 Johan Bockgård <bojohan@gnu.org>
26411
26412 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
26413 Don't set s->stippled_p here, since it has already been set by
26414 x_set_glyph_string_gc from x_draw_glyph_string.
26415
26416 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
26417
26418 * sunfns.c: Remove file.
26419
26420 * m/sun386.h:
26421 * m/sun2.h:
26422 * m/sparc.h: Remove Sun windows code.
26423
26424 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
26425
26426 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
26427 (init_keyboard): Set current_kboard's window-system to nil.
26428 (tty_read_avail_input): Typo.
26429 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
26430
26431 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
26432
26433 * s/usg5-4.h:
26434 * s/usg5-3.h:
26435 * s/ptx.h:
26436 * m/is386.h:
26437 * m/ibmps2-aix.h:
26438 * Makefile.in: Remove all mentions of X10.
26439
26440 * dispnew.c (syms_of_display): Don't mention version 10.
26441
26442 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
26443
26444 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
26445 ($(BLD)/abbrev.$(O)): Remove.
26446
26447 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
26448
26449 Rewrite abbrev.c in Elisp.
26450 * image.c (Qcount): Don't declare as extern.
26451 (syms_of_image): Initialize and staticpro `Qcount'.
26452 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
26453 * emacs.c (main): Don't call syms_of_abbrev.
26454 * Makefile.in (obj): Remove abbrev.o.
26455 (abbrev.o): Remove.
26456 * abbrev.c: Remove.
26457
26458 2007-10-26 Martin Rudalics <rudalics@gmx.at>
26459
26460 * window.c (window_min_size_2): Don't count header-line.
26461
26462 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
26463
26464 * frame.h (struct frame): Move all bit fields after the first bit
26465 field to take advantage of the available space. Group all the
26466 chars together to reduce wasted space due to padding.
26467
26468 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
26469
26470 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
26471
26472 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
26473 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
26474 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
26475 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
26476 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
26477 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
26478 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
26479 (last_marked, mark_object_loop_halt): Make static.
26480
26481 * frame.c (syms_of_frame) <delete-frame-functions>:
26482 Fix typo in docstring.
26483
26484 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
26485
26486 * w32.c (init_environment): Fix tiny memory leak.
26487 (w32_get_resource): Remove unused variable `ok'.
26488
26489 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
26490
26491 Make `window-system' into a keyboard-local variable (rather than
26492 frame-local as done originally by multi-tty).
26493
26494 * keyboard.h (struct kboard): Add Vwindow_system.
26495 * keyboard.c (init_kboard): Set a default for Vwindow_system.
26496 (mark_kboards): Mark Vwindow_system.
26497
26498 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
26499 (init_display): Don't set the obsolete `window-system' frame-param.
26500
26501 * xterm.c (x_term_init):
26502 * w32term.c (w32_create_terminal):
26503 * term.c (init_tty): Set Vwindow_system.
26504 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
26505 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
26506
26507 * xfns.c (Fx_create_frame, x_create_tip_frame):
26508 * w32fns.c (Fx_create_frame, x_create_tip_frame):
26509 * macfns.c (Fx_create_frame):
26510 Don't set the obsolete `window-system' frame-param.
26511
26512 * frame.h (Qwindow_system): Remove.
26513 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
26514 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
26515
26516 2007-10-24 Richard Stallman <rms@gnu.org>
26517
26518 * frame.c (x_figure_window_size): For fullscreen case,
26519 set USPosition | PPosition without clobbering rest of window_prompting.
26520
26521 * keyboard.c (Fcurrent_idle_time): Doc fix.
26522
26523 * print.c (Fwith_output_to_temp_buffer): Doc fix.
26524
26525 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
26526
26527 * process.c (unwind_request_sigio): Only define if __ultrix__.
26528
26529 * callproc.c (child_setup): Remove spurious *.
26530
26531 * lisp.h (Fget_text_property): Declare.
26532 (have_menus_p): Declare it here rather than in sys-dep header files.
26533 * macterm.h (have_menus_p):
26534 * msdos.h (have_menus_p):
26535 * xterm.h (have_menus_p): Remove.
26536
26537 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
26538 (Fmake_variable_frame_local): Just check the variable's const-ness
26539 rather than checking nil or t.
26540
26541 2007-10-22 Jason Rumney <jasonr@gnu.org>
26542
26543 * w32fns.c: Include math.h.
26544 (w32_abort): Declaration moved to nt/config.nt.
26545
26546 * s/ms-w32.h (HAVE_STDLIB_H): Define.
26547 (abort): Redefinition moved to nt/config.nt.
26548
26549 * m/windowsnt.h: Remove.
26550
26551 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
26552
26553 * emacs.c (Fdump_emacs): Fix typo in message.
26554 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
26555 <installation-directory>: Reflow docstring.
26556
26557 2007-10-22 Juri Linkov <juri@jurta.org>
26558
26559 * minibuf.c: Allow minibuffer default to be a list of default values.
26560 With empty input use the first element of this list as returned default.
26561 (string_to_object)
26562 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
26563 (read_minibuf): If defalt is cons, set histstring to its car.
26564 (Fread_string): If default_value is cons, set val to its car.
26565 (Fread_buffer): If def is cons, use its car.
26566 (Fcompleting_read): If defalt is cons, set val to its car.
26567
26568 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
26569
26570 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
26571
26572 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
26573
26574 * doc.c (Fdocumentation): Check for advice in all cases.
26575
26576 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
26577
26578 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
26579
26580 2007-10-19 Richard Stallman <rms@gnu.org>
26581
26582 * doc.c (Fdocumentation): Check for and handle an advised function.
26583
26584 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
26585
26586 * process.c (Fset_process_filter): Doc fix.
26587
26588 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
26589
26590 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
26591 which caused key-translation-map to applied repeatedly (thus breaking
26592 double-mode).
26593
26594 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26595
26596 * xselect.c (x_own_selection, x_handle_selection_clear)
26597 (x_clear_frame_selections):
26598 * w32menu.c (list_of_panes, list_of_items):
26599 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
26600 * textprop.c (validate_plist, interval_has_all_properties)
26601 (interval_has_some_properties, interval_has_some_properties_list)
26602 (add_properties, text_property_list):
26603 * process.c (Fget_buffer_process, list_processes_1, status_notify):
26604 * minibuf.c (Fassoc_string):
26605 * macselect.c (x_own_selection, x_clear_frame_selections)
26606 (Fx_disown_selection_internal):
26607 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
26608 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
26609
26610 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
26611
26612 * process.c: Link to libs for calling res_init() if available.
26613 (Fmake_network_process): Call res_init() before getaddrinfo or
26614 gethostbyname, if possible.
26615
26616 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26617
26618 * lread.c (read1): Set pvectype for char_tables.
26619
26620 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
26621 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
26622 Add type checks.
26623 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
26624
26625 * alloc.c (free_misc): Use XMISCTYPE.
26626 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
26627
26628 2007-10-17 Glenn Morris <rgm@gnu.org>
26629
26630 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
26631 (syms_of_minibuf): Add Qcompletion_ignore_case.
26632 * dired.c (Qcompletion_ignore_case): Change to external.
26633 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
26634 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
26635 (Fread_file_name): Use it rather than intern'ing.
26636
26637 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
26638 (Fread_coding_system): Ignore case of user input.
26639
26640 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26641
26642 * xdisp.c (handle_display_prop): Ignore display specs after
26643 replacing one when string text is being replaced.
26644 (handle_single_display_spec): Pretend as if characters with display
26645 property haven't been consumed only when buffer text is being replaced.
26646
26647 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
26648
26649 * xfns.c (Fx_create_frame, Fx_display_list):
26650 * window.c (window_fixed_size_p, enlarge_window)
26651 (shrink_window_lowest_first):
26652 * macterm.c (init_font_name_table):
26653 * macfns.c (Fx_create_frame, Fx_display_list):
26654 * lread.c (close_load_descs):
26655 * keyboard.c (read_char_x_menu_prompt):
26656 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
26657 * coding.c (code_convert_region_unwind): Test the type of an object
26658 rather than just !NILP before extracting data from it.
26659
26660 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
26661
26662 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
26663 (XMISCANY): New macro.
26664 (XMISCTYPE): Use it.
26665 (struct Lisp_Misc_Any): New type.
26666 (union Lisp_Misc): Use it.
26667 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
26668 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
26669 (find_symbol_value, set_internal, default_value, Fset_default)
26670 (Fmake_variable_buffer_local, Fmake_local_variable)
26671 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
26672 (Flocal_variable_if_set_p, Fvariable_binding_locus):
26673 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
26674 * alloc.c (allocate_buffer): Set the size and tag.
26675 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
26676 Use XMISCANY.
26677 (die): Follow the GNU convention for error messages.
26678 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
26679 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
26680 tag any more.
26681 (set_buffer_internal_1):
26682 * frame.c (store_frame_param):
26683 * eval.c (specbind):
26684 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
26685
26686 * doc.c (Fsnarf_documentation): Simplify.
26687
26688 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
26689
26690 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
26691 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
26692
26693 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
26694
26695 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
26696
26697 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
26698
26699 * eval.c (do_autoload): Don't save autoloads.
26700
26701 * data.c (Ffset): Save autoload of the function being set.
26702
26703 2007-10-07 John Paul Wallington <jpw@pobox.com>
26704
26705 * xfns.c (x_create_tip_frame): Set the `display-type' frame
26706 parameter before setting up faces.
26707
26708 2007-10-13 Eli Zaretskii <eliz@gnu.org>
26709
26710 * ccl.c (Fregister_code_conversion_map):
26711 * keyboard.c (append_tool_bar_item): Reformat last change.
26712
26713 * lisp.h (eabs): Rename from `abs'. All callers changed.
26714
26715 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
26716
26717 * buffer.c (add_overlay_mod_hooklist):
26718 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
26719 * fontset.c (make_fontset):
26720 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
26721 (append_tool_bar_item):
26722 * macmenu.c (grow_menu_items):
26723 * w32menu.c (grow_menu_items):
26724 * xmenu.c (grow_menu_items): Use larger_vector.
26725
26726 2007-10-13 Eli Zaretskii <eliz@gnu.org>
26727
26728 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
26729 selected frame'' on MSDOS).
26730
26731 2007-10-12 Martin Rudalics <rudalics@gmx.at>
26732
26733 * frame.c (Qexplicit_name): New variable.
26734 (x_report_frame_params): Report it in parameter alist.
26735 (syms_of_frame): Intern and staticpro it.
26736
26737 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
26738
26739 * macfns.c (x_create_tip_frame): Set terminal for frame.
26740
26741 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
26742
26743 * frame.c (Qenvironment): Remove.
26744 (syms_of_frame) <Qenvironment>: Don't initialize.
26745 (Fdelete_frame): Don't treat the `environment' param specially.
26746 * frame.h (Qenvironment): Don't declare.
26747 * callproc.c (set_initial_environment): Don't set unused frame param.
26748
26749 * frame.c (Fframe_with_environment): Remove.
26750 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26751
26752 * lisp.h (Fframe_with_environment): Don't declare.
26753
26754 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
26755
26756 * indent.c (indent_tabs_mode, last_known_column)
26757 (last_known_column_modified): Make static.
26758 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
26759
26760 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
26761
26762 * puresize.h (BASE_PURESIZE): Increase to 1170000.
26763
26764 2007-10-09 Jason Rumney <jasonr@gnu.org>
26765
26766 * w32term.c (x_set_window_size): Disable code that attempts to tell
26767 Lisp code about a size change before it actually happens.
26768
26769 2007-10-09 Richard Stallman <rms@gnu.org>
26770
26771 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
26772 return HANDLED_RETURN.
26773
26774 2007-10-08 Martin Rudalics <rudalics@gmx.at>
26775
26776 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
26777 when there's an unread command event.
26778
26779 * frame.c (focus_follows_mouse): Move here from frame.el to allow
26780 window autoselection act appropriately when leaving selected frame.
26781 (syms_of_frame): Initialize focus_follows_mouse.
26782 * frame.h (focus_follows_mouse): Extern it.
26783 * macterm.c (XTread_socket): When focus_follows_mouse is nil
26784 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
26785 * msdos.c (dos_rawgetc): Likewise.
26786 * w32term.c (w32_read_socket): Likewise.
26787 * xterm.c (handle_one_xevent): Likewise.
26788 * xdisp.c (syms_of_xdisp): In doc-string of
26789 mouse-autoselect-window mention focus-follows-mouse.
26790
26791 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26792
26793 * macterm.c (mac_load_query_font): Fix missing return value.
26794 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
26795 Add BLOCK_INPUT.
26796
26797 2007-10-08 Richard Stallman <rms@gnu.org>
26798
26799 * xdisp.c (get_window_cursor_type): Implement documented behavior
26800 for cursor-in-non-selected-windows = t.
26801
26802 2007-10-08 Jason Rumney <jasonr@gnu.org>
26803
26804 * w32.c (w32_get_resource): Always close registry keys.
26805
26806 2007-10-08 Jason Rumney <jasonr@gnu.org>
26807
26808 * makefile.w32-in (LIBS): Add COMCTL32.
26809
26810 * w32fns.c (globals_of_w32fns): Init common controls.
26811
26812 2007-10-08 Richard Stallman <rms@gnu.org>
26813
26814 * image.c (our_memory_buffer): Rename from omfib_buffer.
26815
26816 2007-10-08 Richard Stallman <rms@gnu.org>
26817
26818 * buffer.c (Foverlays_at): Doc fix.
26819
26820 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
26821
26822 * fns.c (Fplist_put): Preserve uneven tail data.
26823
26824 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
26825
26826 * termhooks.h (enum event_kind): Remove trailing comma.
26827
26828 * frame.h (enum): Remove trailing comma.
26829
26830 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
26831
26832 * w32proc.c (delete_child): Don't terminate threads of zombies.
26833
26834 2007-10-08 Martin Rudalics <rudalics@gmx.at>
26835
26836 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
26837
26838 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
26839 last-repeatable-command.
26840 (init_kboard): Initialize Vlast_repeatable_command.
26841 (command_loop_1): Set it to real_this_command unless that was
26842 bound to an input event.
26843 (mark_kboards): Mark it.
26844
26845 2007-10-08 Richard Stallman <rms@gnu.org>
26846
26847 * eval.c (condition-case): Doc fix.
26848
26849 2007-10-08 Masatake YAMATO <jet@gyve.org>
26850
26851 * xfaces.c (tty_supports_face_attributes_p): Fix code
26852 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
26853 was copied and not edited.
26854
26855 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
26856
26857 Add new `input-decode-map' keymap and use it for terminal
26858 escape sequences.
26859 * keyboard.h (struct kboard): Add Vinput_decode_map.
26860 Remove Vlocal_key_translation_map.
26861 * keyboard.c (read_key_sequence): Add support for input-decode-map.
26862 (init_kboard): Init input-decode-map.
26863 Replace local-key-translation-map back with key-translation-map.
26864 (syms_of_keyboard): Declare input-decode-map.
26865 Remove local-key-translation-map. Update docstrings.
26866 (mark_kboards): Mark Vinput_decode_map.
26867 Don't mark Vlocal_key_translation_map.
26868 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
26869 Replace local-key-translation-map back with key-translation-map.
26870 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
26871 Bind in input-decode-map rather than function-key-map.
26872
26873 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
26874 This was made redundant by the previous introduction of XSETPVECTYPE.
26875
26876 2007-10-09 Richard Stallman <rms@gnu.org>
26877
26878 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
26879
26880 2007-09-29 Richard Stallman <rms@gnu.org>
26881
26882 * eval.c (internal_condition_case_2, internal_condition_case_1)
26883 (internal_condition_case): Reenable abort if x_catching_errors ()
26884 to see if that really happens and why.
26885
26886 2007-10-06 Andreas Schwab <schwab@suse.de>
26887
26888 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
26889
26890 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
26891
26892 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
26893
26894 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
26895
26896 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
26897
26898 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
26899
26900 * window.h (struct window):
26901 * window.c (struct save_window_data, struct saved_window):
26902 * termhooks.h (struct terminal):
26903 * process.h (struct Lisp_Process):
26904 * frame.h (struct frame):
26905 * buffer.h (struct buffer):
26906 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
26907 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
26908 The size field of (pseudo)vectors is now unsigned.
26909 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
26910
26911 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
26912 Turn `count' into an integer.
26913
26914 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
26915 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
26916 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
26917 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
26918 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
26919
26920 * alloc.c (allocate_pseudovector): New fun.
26921 (ALLOCATE_PSEUDOVECTOR): New macro.
26922 (allocate_window, allocate_terminal, allocate_frame)
26923 (allocate_process): Use it.
26924 (mark_vectorlike): New function.
26925 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
26926 (mark_terminals): Use it.
26927 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
26928 (Fmake_byte_code): Use XSETPVECTYPE.
26929
26930 * frame.c (Fframe_parameters): Minor simplification.
26931
26932 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
26933
26934 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
26935
26936 * buffer.c (Fget_buffer_create, init_buffer_once):
26937 * lread.c (defsubr):
26938 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
26939
26940 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
26941 defined differently in the m/*.h files.
26942 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
26943 (XSETPVECTYPE): New macro.
26944 (XSETPSEUDOVECTOR): Use it.
26945
26946 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
26947 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
26948
26949 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
26950 * lread.c (defvar_per_buffer):
26951 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
26952
26953 * window.c (candidate_window_p): Only consider as visible frames that
26954 are on the same terminal.
26955
26956 * m/ibms390x.h (MARKBIT): Remove unused macro.
26957
26958 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
26959
26960 * lread.c (Fload): Fix typo in docstring.
26961
26962 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
26963
26964 * floatfns.c (Fexpt): Manually check for overflows, so that a power
26965 of a non-zero value can't yield zero.
26966
26967 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
26968
26969 * term.c (term_clear_mouse_face, term_mouse_highlight)
26970 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26971
26972 * print.c (safe_debug_print): Use XHASH.
26973
26974 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26975 Lisp elements such as tags.
26976 (XHASH): New macro.
26977 (EQ): Use it.
26978 (SREF, SSET, STRING_COPYIN): Use SDATA.
26979 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26980
26981 * alloc.c (mark_terminal): Remove left-over declaration.
26982 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26983 (allocate_vectorlike): Remove type argument. Adjust callers.
26984 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26985 Only handle the one remaining MEM_TYPE_VECTORLIKE.
26986
26987 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26988 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26989 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26990 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26991 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26992 Use them.
26993
26994 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26995 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26996 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26997
26998 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26999
27000 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
27001 loaded by default.
27002
27003 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
27004
27005 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
27006 on this tty.
27007 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
27008
27009 * term.c (mouse_face_window): Rename from Qmouse_face_window.
27010 Update all users.
27011 (handle_one_term_event): Use Gpm_DrawPointer.
27012 (Fgpm_mouse_start): Rename from Fterm_open_connection.
27013 Signal errors instead of returning nil. Always return nil.
27014 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
27015 Make it a noop if gpm-mouse was not activated.
27016 (syms_of_term): Update names.
27017
27018 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
27019
27020 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
27021 (init_sys_modes): Check that gpm_tty is the current tty.
27022
27023 * alloc.c (allocate_terminal): Set the vector size to only count the
27024 lisp fields. Initialize those to nil.
27025 (mark_object): Don't treat terminals specially.
27026 (mark_terminal): Remove.
27027 (mark_terminals): Use mark_object instead.
27028
27029 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
27030 the GC to the beginning.
27031
27032 * indent.h:
27033 * indent.c: Use EMACS_INT for ints coming from Elisp data.
27034
27035 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
27036
27037 2007-09-25 Jason Rumney <jasonr@gnu.org>
27038
27039 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
27040
27041 * w32console.c (create_w32cons_output): Remove.
27042
27043 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
27044
27045 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
27046 (reset_sys_modes): Use reset_terminal_modes_hook.
27047
27048 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
27049
27050 * eval.c (do_autoload): Don't output any message.
27051
27052 2007-09-24 Juri Linkov <juri@jurta.org>
27053
27054 * emacs.c (standard_args): Change priority of "--no-splash"
27055 from 40 to 3. Add "--no-desktop" with the same priority.
27056
27057 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
27058
27059 * alloc.c (gc_sweep): Check cons cell mark bits word by word
27060 and optimize the case where they are all 1.
27061
27062 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
27063
27064 * lisp.h (abs): Define if not defined.
27065 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
27066 Don't define `abs', since it's defined in lisp.h.
27067
27068 2007-09-22 Eli Zaretskii <eliz@gnu.org>
27069
27070 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
27071 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
27072 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
27073 (init_tty): Use DEV_TTY instead of "/dev/tty".
27074 [WINDOWSNT]: No need to protect from NAME arg being null.
27075
27076 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
27077
27078 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
27079 up the tty state.
27080
27081 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
27082
27083 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
27084 (gpm_tty): Change its type.
27085 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
27086 (gpm_tty): Change its type and initialize it.
27087 (Fterm_open_connection): Check the frame is indeed a tty.
27088 Use the new gpm_tty.
27089 (Fterm_close_connection): Use the new gpm_tty.
27090 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
27091 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
27092
27093 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
27094
27095 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
27096 underline_color, to draw strike-through.
27097
27098 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
27099
27100 * lisp.h (allocate_terminal): Declare.
27101
27102 * window.c (candidate_window_p): Consider frames that are being placed
27103 by the user as somewhere between visible and iconified.
27104 (window_loop): Prefer windows on the current frame.
27105 (Fselect_window): Move the use of select-frame to the beginning so we
27106 can just delegate all the work (it'll call us back anyway).
27107
27108 * frame.c (Qdisplay_environment_variable):
27109 * frame.h (Qdisplay_environment_variable): Delete.
27110
27111 * .gdbinit (xbacktrace): Print the arg's address rather than the value
27112 of the first arg, since that value may be a union.
27113
27114 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
27115 parameter rather than Qdisplay_environment_variable. If all else
27116 fails, look for DISPLAY in initial-environment.
27117
27118 2007-09-21 Glenn Morris <rgm@gnu.org>
27119
27120 * Makefile.in (emacstool): Remove target.
27121 (lisp, shortlisp): Remove termdev.elc.
27122
27123 2007-09-21 Markus Triska <markus.triska@gmx.at>
27124
27125 * xterm.c (x_delete_display): Compile session management conditionally.
27126
27127 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
27128
27129 * callproc.c (getenv_internal_1): New function.
27130 (getenv_internal): Use it.
27131 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
27132
27133 * terminal.c (get_terminal): Don't accept ints to represent terminals.
27134 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
27135 (Fset_terminal_parameter): Work with dead terminals as well.
27136 (Fmodify_terminal_parameters): Remove.
27137
27138 * terminal.c (get_terminal): Handle terminals.
27139 Make sure the terminal returned is live.
27140 (create_terminal): Use allocate_terminal.
27141 (mark_terminals): Move to alloc.c.
27142 (delete_terminal): Use terminal->name as liveness status.
27143 NULL out fields after freeing their contents.
27144 Don't deallocate the object.
27145 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
27146 rather than an int.
27147 (Fterminal_live_p): Accept non-integer arguments.
27148 (Fterminal_list): Return terminal objects rather than an ints.
27149
27150 * alloc.c (enum mem_type): New member for `terminal' objects.
27151 (allocate_terminal): New function.
27152 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
27153 Handle terminals.
27154 (mark_terminal): New fun.
27155 (mark_terminals): Move from terminal.c.
27156
27157 * term.c (get_tty_terminal): Don't treat output_initial specially.
27158 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
27159 (delete_tty): Use terminal->name as liveness status.
27160
27161 * termhooks.h (struct terminal): Make it into a pseudovector.
27162 Remove `deleted' replaced by checking `name's nullness.
27163
27164 * print.c (print_object): Handle terminals.
27165
27166 * lisp.h (enum pvec_type): New `terminal' pseudovector.
27167 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
27168
27169 * frame.c (make_terminal_frame):
27170 * keyboard.c (tty_read_avail_input):
27171 * w32term.c (x_delete_terminal):
27172 * xfns.c (Fx_create_frame, x_create_tip_frame):
27173 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
27174
27175 2007-09-20 Glenn Morris <rgm@gnu.org>
27176
27177 * process.c (Fmake_network_process): Doc fix.
27178
27179 2007-09-19 Jason Rumney <jasonr@gnu.org>
27180
27181 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
27182
27183 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
27184
27185 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
27186 Fix a C warning regarding variable constness.
27187
27188 * xterm.c (handle_one_xevent): Fix a C warning.
27189
27190 2007-09-18 Jason Rumney <jasonr@gnu.org>
27191
27192 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
27193
27194 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
27195
27196 * gtkutil.c (gdpy_def): New variable.
27197 (xg_initialize): Initialize gdpy_def.
27198 (xg_display_close): If no other display exists, set gdpy_def to a
27199 new connection.
27200
27201 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
27202
27203 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
27204 when we have no file name for the icon.
27205 (xg_tool_bar_expose_callback): Remove.
27206 (xg_create_tool_bar): Don't connect expose signal to
27207 xg_tool_bar_expose_callback.
27208 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
27209
27210 2007-09-16 Andreas Schwab <schwab@suse.de>
27211
27212 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
27213 values instead of zapping them.
27214
27215 2007-09-14 Glenn Morris <rgm@gnu.org>
27216
27217 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
27218 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
27219 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
27220 scope and rename to omfib_buffer for clarity.
27221 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
27222
27223 2007-09-14 Kenichi Handa <handa@m17n.org>
27224
27225 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
27226
27227 2007-09-13 Jason Rumney <jasonr@gnu.org>
27228
27229 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
27230
27231 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
27232
27233 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
27234 (mac_term_init): Call here instead, passing rif.
27235
27236 2007-09-13 Glenn Morris <rgm@gnu.org>
27237
27238 * s/hpux.h: No longer define `static' as nothing.
27239
27240 2007-09-13 Johan Bockgård <bojohan@gnu.org>
27241
27242 * callint.c (Fcall_interactively): Remove unused var `fun'.
27243
27244 2007-09-12 Romain Francoise <romain@orebokech.com>
27245
27246 * window.c (prefer_window_split_horizontally, display_buffer):
27247 Revert 2007-09-08 change.
27248
27249 2007-09-12 Glenn Morris <rgm@gnu.org>
27250
27251 * alloca.c: Remove file.
27252 * Makefile.in (alloca): Do not undef.
27253 (allocaobj, alloca.o): Remove.
27254 (otherobj): Remove allocaobj.
27255 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
27256 * regex.c (C_ALLOCA): Remove all references and code that was only
27257 used when this was defined.
27258 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
27259 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
27260 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
27261
27262 * Makefile.in (SOURCES, unlock, relock): Delete.
27263
27264 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
27265 (menu_grab_callback): All uses changed.
27266
27267 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
27268 (x_reply_selection_request): All uses changed.
27269
27270 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
27271
27272 * lread.c (load_warn_old_style_backquotes): Change message to look
27273 better when it appears in the middle of byte-compiler messages.
27274
27275 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
27276
27277 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
27278
27279 * xterm.c (x_create_terminal): Add comment.
27280
27281 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
27282
27283 2007-09-10 Richard Stallman <rms@gnu.org>
27284
27285 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
27286
27287 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
27288
27289 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
27290 (DEFUN): Document `intspec', use it instead of `prompt'.
27291
27292 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
27293
27294 * data.c (Finteractive_form): If the interactive specification starts
27295 with a `(', use it as a Lisp form.
27296
27297 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
27298 name and file modes.
27299
27300 * callint.c (Fcall_interactively): Comment fixes.
27301
27302 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
27303
27304 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
27305 and compiled functions.
27306
27307 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
27308
27309 * window.c (prefer_window_split_horizontally): New variable.
27310 (display_buffer): Consider splitting window horizontally depending
27311 on prefer_window_split_horizontally.
27312
27313 2007-09-08 Eli Zaretskii <eliz@gnu.org>
27314
27315 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
27316
27317 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
27318
27319 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
27320
27321 * frame.c (x_set_frame_parameters): Check number is positive before
27322 using XFASTINT.
27323
27324 * window.c (freeze_window_start): Don't presume selected_window holds
27325 a window object.
27326 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
27327
27328 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
27329
27330 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
27331
27332 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
27333
27334 * window.c (Vsplit_window_preferred_function): New var.
27335 (Fdisplay_buffer): Use it.
27336 (syms_of_window): Export, and initialize it.
27337
27338 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
27339
27340 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
27341
27342 2007-09-06 Glenn Morris <rgm@gnu.org>
27343
27344 * gtkutil.c (menu_grab_callback) <cnt>:
27345 * xselect.c (x_reply_selection_request) <cnt>: Move static
27346 variable to file scope.
27347
27348 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
27349
27350 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
27351 consistent values of selected_frame and selected_window.
27352
27353 2007-09-04 Jason Rumney <jasonr@gnu.org>
27354
27355 * w32console.c (initialize_w32_display): Zero unused hooks.
27356
27357 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
27358
27359 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
27360 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
27361
27362 2007-09-04 Jason Rumney <jasonr@gnu.org>
27363
27364 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
27365 in w32console.c. Set up input. Remove XXX comments that have been
27366 confirmed as correct.
27367
27368 * s/ms-w32.h (MULTI_KBOARD): Define.
27369
27370 * w32console.c (one_and_only_w32cons): Remove.
27371 (initialize_w32_display): Take terminal argument.
27372
27373 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
27374 initialize_w32_display.
27375 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
27376
27377 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
27378
27379 * keyboard.c (discard_mouse_events): Discard it.
27380 (make_lispy_event): Translate it to a lisp event.
27381 (lispy_wheel_names): Add wheel-left and right events.
27382 (syms_of_keyboard): Enlarge wheel_syms.
27383
27384 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
27385 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
27386
27387 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
27388
27389 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
27390 from WM_MOUSEHWHEEL.
27391 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
27392
27393 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
27394 terminal.
27395
27396 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
27397 keyboard for the terminal.
27398
27399 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
27400
27401 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
27402 (Vresume_tty_hook): Rename from Vresume_tty_functions.
27403 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
27404 and resume-tty-function to resume-tty-hook.
27405 (Fsuspend_tty, Fresume_tty): Use new names.
27406
27407 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
27408
27409 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
27410 if it starts with "n:".
27411
27412 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
27413
27414 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
27415
27416 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
27417
27418 * frame.h:
27419 * frame.c (Qterm_environment_variable): Remove.
27420 (syms_of_frame): Don't init and staticpro it.
27421
27422 * callproc.c (getenv_internal): Remove special case for $TERM.
27423
27424 * callproc.c (Vinitial_environment): New variable.
27425 (set_initial_environment): Initialize it.
27426 (syms_of_callproc): Declare it.
27427 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
27428 TERM under which a process runs is never related to the TERM in which
27429 Emacs is running.
27430
27431 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
27432
27433 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
27434 * s/darwin.h: ... do it here.
27435
27436 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
27437
27438 * lisp.h (set_initial_environment): Rename from set_global_environment.
27439
27440 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
27441 removed by mistake on the multi-tty branch.
27442
27443 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
27444 (Fmodify_frame_parameters): Return a value.
27445
27446 * image.c (png_load): Comment-out var only used in commented-out code.
27447
27448 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
27449 before passing it to mark_object.
27450
27451 * xfaces.c (internal_resolve_face_name): Return a value.
27452 (internal_resolve_face_name, resolve_face_name_error): Comment out.
27453
27454 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
27455 (x_icon): Comment-out var only used in commented-out code.
27456
27457 2007-08-29 Romain Francoise <romain@orebokech.com>
27458
27459 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
27460 QUIT hasn't been provided.
27461
27462 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
27463
27464 * callproc.c (child_setup, getenv_internal): Use the
27465 display-environment-variable and term-environment-variable frame params.
27466 (set_initial_environment): Initialise Vprocess_environment.
27467
27468 * config.in: Disable multi-keyboard support on a mac.
27469
27470 * frame.c (Qterm_environment_variable)
27471 (Qdisplay_environment_variable): New variables.
27472 (syms_of_frame): Intern and staticpro them.
27473 (Fmake_terminal_frame): Disable output method test.
27474
27475 * frame.h: Declare them here.
27476
27477 * macfns.c (x_set_mouse_color): Get rif from the frame.
27478 (x_set_tool_bar_lines): Don't use updating_frame.
27479 (mac_window): Add 2 new parameters for consistency with other systems.
27480 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
27481 frame parameters following what is done in X11 and w32. Don't use
27482 FRAME_MAC_DISPLAY_INFO.
27483 (Fx_open_connection, start_hourglass): Remove window-system check.
27484 (x_create_tip_frame): Get the keyboard from the terminal.
27485
27486 * macmenu.c: Reorder includes.
27487 (Fx_popup_menu): Use terminal specific mouse_position_hook.
27488
27489 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
27490 terminal parameter.
27491 (x_clear_frame): Add a frame parameter.
27492 (note_mouse_movement): Get rif from the frame.
27493 (mac_term_init): Initialize the terminal.
27494 (mac_initialize): Make static and move terminal initialization ...
27495 (mac_create_terminal): ... to this new function.
27496
27497 * macterm.h (struct mac_display_info): Add terminal.
27498 (mac_initialize): Delete declaration.
27499
27500 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
27501
27502 * sysdep.c: Comment out text after #endif.
27503
27504 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
27505 is defined. Better initialize ttys in windows. Use terminal
27506 specific mouse_position_hook.
27507
27508 * termhooks.h (union display_info): Add mac_display_info.
27509
27510 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
27511 Set the default minibuffer frame, window_system and the rest of the
27512 frame parameters following what is done in X11.
27513
27514 * w32term.c (w32_initialize): Make static.
27515
27516 * xselect.c (x_handle_selection_clear): Only access
27517 terminal->kboard when MULTI_KBOARD is defined.
27518
27519 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
27520 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
27521
27522 2007-08-29 Jason Rumney <jasonr@gnu.org>
27523
27524 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
27525 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
27526
27527 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
27528 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
27529
27530 * keyboard.c (restore_kboard_configuration): Only define when
27531 MULTI_KBOARD defined.
27532
27533 * makefile.w32-in: Update dependancies from Makefile.in.
27534 (OBJ1): Add terminal.$(O)
27535
27536 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
27537 Don't define function body.
27538 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
27539
27540 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
27541
27542 * w32.c (request_sigio, unrequest_sigio): Remove.
27543
27544 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
27545 (w32con_clear_frame, w32con_clear_end_of_line)
27546 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
27547 (w32con_delete_glyphs, w32con_set_terminal_window)
27548 (scroll_line, w32_sys_ring_bell): Add frame arg.
27549 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
27550 Add terminal arg.
27551 (PICK_FRAME): Remove.
27552 (w32con_write_glyphs): Use frame specific terminal coding.
27553 (one_and_only_w32cons): New global variable.
27554 (initialize_w32_display): Use it for storing hooks.
27555 (create_w32cons_output): New function.
27556
27557 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
27558 arg a frame.
27559
27560 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
27561 Set window_system.
27562 (x_set_tool_bar_lines): Don't use updating_frame.
27563 (Fx_create_frame): Set terminal and ref count.
27564 (Fx_open_connection): Remove window-system check.
27565
27566 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
27567
27568 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
27569 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
27570 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
27571 Add frame arg.
27572 (x_delete_terminal, w32_create_terminal): New functions.
27573 (w32_term_init): Create a terminal.
27574 (w32_initialize): Move terminal specific initialization to
27575 w32_create_terminal.
27576
27577 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
27578 (w32_clear_rect, w32_clear_area): Use background from frame.
27579 (w32_display_info): Add terminal.
27580 (w32_sys_ring_bell, x_delete_display): Declare here.
27581
27582 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
27583
27584 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
27585
27586 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
27587
27588 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
27589 Fix get_named_tty calls for the controlling tty.
27590
27591 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
27592
27593 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
27594
27595 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
27596
27597 * term.c (tty_insert_glyphs): Add missing first parameter.
27598
27599 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
27600
27601 * buffer.c (Fbuffer_list, Fbury_buffer):
27602 Take frame->buried_buffer_list into account.
27603
27604 * cm.c (current_tty): New variable, for cmputc().
27605 (cmputc): Use it.
27606 (cmcheckmagic): Add tty parameter, look up terminal streams there.
27607 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
27608 (cmgoto): Add tty parameter. Pass it on to calccost().
27609 Use emacs_tputs() instead of tputs().
27610
27611 * cm.h (emacs_tputs): New macro to set current_tty, and then call
27612 tputs().
27613 (current_tty): New variable, for cmputc().
27614 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
27615
27616 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
27617 (internal_condition_case, internal_condition_case_1)
27618 (internal_condition_case_2): Don't abort when x_catching_errors.
27619
27620 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
27621 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
27622 prevent crashes caused by bogus longjmps in read_char.
27623
27624 * keymap.h (Fset_keymap_parent): Add EXFUN.
27625
27626 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
27627 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27628 Remove redundant definition.
27629
27630 * macfns.c (x_set_mouse_color, x_make_gc):
27631 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27632
27633 * w32term.c (x_free_frame_resources):
27634 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27635 (w32_initialize): Use the accessor macros for terminal characteristics.
27636
27637 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
27638 Use the accessor macros for terminal characteristics.
27639 * msdos.c (internal_terminal_init): Use the accessor macros for
27640 terminal characteristics.
27641 (ScreenVisualBell, internal_terminal_init):
27642 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27643
27644 * termopts.h (no_redraw_on_reenter): Declare.
27645
27646 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
27647 (mark_terminals, mark_ttys): Declare.
27648 (Fgarbage_collect): Call them.
27649 (mark_object): Mark buried_buffer_list.
27650
27651 * prefix-args.c: Include stdlib.h for exit.
27652
27653 * syssignal.h: Add comment.
27654
27655 * indent.c: Include stdio.h.
27656
27657 * window.h (Vinitial_window_system): Declare.
27658 (Vwindow_system): Delete declaration.
27659
27660 * fontset.c (Finternal_char_font): Use FRAME_RIF.
27661
27662 * image.c (lookup_image): Don't initialize `c' until the xasserts
27663 have been run.
27664
27665 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
27666 FRAME_FOREGROUND_PIXEL.
27667
27668 * print.c (print_preprocess): Don't lose print_depth levels while
27669 iterating.
27670
27671 * widget.c (update_from_various_frame_slots):
27672 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27673
27674 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
27675 frames.
27676 (window_internal_height): Remove bogus make_number call.
27677 (init_window_once): Call make_terminal_frame with two zero parameters.
27678
27679 * fileio.c (Fread_file_name): Update comment.
27680
27681 * callint.c (Fcall_interactively):
27682 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
27683 Make sure it is correctly unwound.
27684
27685 * xsmfns.c (x_session_close): New function.
27686
27687 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
27688 Delete declarations.
27689
27690 * xterm.h: Remove declaration for x_fully_uncatch_errors.
27691 (x_output): Remove background_pixel and foreground_pixel fields.
27692 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
27693 (x_delete_device, x_session_close): Declare.
27694
27695 * lread.c: Include setjmp.h. Update declaration of `read_char'.
27696 (read_filtered_event): Call `read_char' with a local
27697 `wrong_kboard_jmpbuf'.
27698
27699 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
27700 Don't call single_kboard_state. Use FRAME_RIF.
27701
27702 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
27703 systems.
27704
27705 * lisp.h (set_process_environment): Rename to `set_global_environment'.
27706 (Fframe_with_environment, Fset_input_meta_mode)
27707 (Fset_quit_char): EXFUN.
27708 (x_create_device, tty_output, terminal, tty_display_info): Declare.
27709 (init_sys_modes, reset_sys_modes): Update prototypes.
27710 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
27711
27712 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
27713 Vlocal_key_translation_map, and Vkeyboard_translate_table.
27714 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
27715 Delete declarations.
27716 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
27717 (temporarily_switch_to_single_kboard, tty_read_avail_input):
27718 New declarations.
27719
27720 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
27721 already does that during init_display(). Call syms_of_keymap
27722 before syms_of_keyboard. Call `syms_of_terminal'.
27723 Call set_initial_environment, not set_process_environment.
27724 (shut_down_emacs): Call reset_all_sys_modes() instead of
27725 reset_sys_modes().
27726
27727 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
27728 (internal_resolve_face_name, resolve_face_name_error): New functions.
27729 (resolve_face_name): Protect against loops and errors thrown by Fget.
27730 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
27731 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
27732
27733 * scroll.c: Replace CURTTY() with local variables throughout the
27734 file (where applicable).
27735 (calculate_scrolling, calculate_direct_scrolling)
27736 (scrolling_1, scroll_cost): Use the accessor macros for terminal
27737 characteristics.
27738
27739 * keymap.c (Vfunction_key_map): Remove.
27740 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
27741 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
27742 (Vkey_translation_map): Remove.
27743 (syms_of_keymap): Remove DEFVAR for key-translation-map.
27744 (Fdescribe_buffer_bindings)
27745 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
27746 Update for terminal-local key-translation-map.
27747
27748 * Makefile.in (callproc.o): Update dependencies.
27749 (lisp, shortlisp): Add termdev.elc.
27750 (obj): Add terminal.o.
27751 (terminal.o): Add dependencies.
27752 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
27753 (data.o, fns.o): Add termhooks.h dependency.
27754 (SOME_MACHINE_LISP): Add dnd.elc.
27755 (minibuf.o): Fix typo.
27756 Update dependencies.
27757
27758 * data.c (do_symval_forwarding, store_symval_forwarding)
27759 (find_symbol_value): Use the selected frame's keyboard, not
27760 current_kboard.
27761
27762 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
27763 Vwindow_system.
27764
27765 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
27766 Fmenu_bar_open.
27767 (syms_of_xmenu): Update defsubr.
27768 (mouse_position_for_popup, Fx_popup_menu)
27769 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
27770 (set_frame_menubar, free_frame_menubar)
27771 (create_and_show_popup_menu, xmenu_show)
27772 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
27773 an X frame.
27774
27775 * xselect.c (x_own_selection): Abort if not an X frame.
27776 (some_frame_on_display): Check if it is an X frame.
27777 (x_handle_selection_clear): Deal with MULTI_KBOARD.
27778
27779 * coding.c: Include frame.h and termhooks.h.
27780 (terminal_coding, keyboard_coding): Delete.
27781 (Fset_terminal_coding_system_internal)
27782 (Fset_keyboard_coding_system_internal)
27783 (Fkeyboard_coding_system)
27784 (Fterminal_coding_system): Add a terminal parameter.
27785 Get terminal_coding from the terminal.
27786 (init_coding_once): Don't call setup_coding_system here.
27787
27788 * dispextern.h (set_scroll_region, turn_off_insert)
27789 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
27790 (tty_clear_end_of_line, tty_setup_colors)
27791 (delete_tty, updating_frame)
27792 (produce_special_glyphs, produce_glyphs, write_glyphs)
27793 (insert_glyphs): Remove.
27794 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
27795 (tty_turn_off_highlight, get_tty_size): Add declaration.
27796 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
27797
27798 * frame.h (enum output_method): Add output_initial.
27799 (struct x_output): Delete.
27800 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27801 Access foreground_pixel and background_pixel directly from the frame.
27802 (tty_display): Delete.
27803 (struct frame): Add buried_buffer_list, foreground_pixel,
27804 background_pixel and terminal. Delete kboard.
27805 (union output_data): Add tty.
27806 (FRAME_KBOARD): Get the kboard from the terminal.
27807 (FRAME_INITIAL_P): New macro.
27808 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
27809 (Qterm_environment_variable, Qdisplay_environment_variable)
27810 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
27811 New declarations.
27812
27813 * termchar.h (tty_output, tty_display_info): New structures.
27814 (tty_list): Declare.
27815 (FRAME_TTY, CURTTY): New macros.
27816 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
27817 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
27818 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
27819 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
27820
27821 * callproc.c: Include frame.h and termhooks.h, for terminal
27822 parameters.
27823 (add_env): New function.
27824 (child_setup): Use it.
27825 (child_setup, getenv_internal): Handle the new Vprocess_environment.
27826 (getenv_internal): Fix get_terminal_param call.
27827 (Fgetenv_internal, egetenv): Update doc.
27828 (syms_of_callproc): Initialize Vprocess_environment to nil.
27829 Register and initialize them. Remove obsolete defvars. Update doc
27830 strings.
27831 (child_setup): Handle Vlocal_environment_variables.
27832 (getenv_internal): Add terminal parameter.
27833 Handle Vlocal_environment_variables.
27834 (Fgetenv_internal): Add terminal parameter.
27835 (child_setup, getenv_internal, Fgetenv_internal): Store the local
27836 environment in a frame (not terminal) parameter. Update doc strings.
27837 (set_initial_environment): Rename from set_global_environment.
27838 Store Emacs environment in initial frame parameter.
27839
27840 * xdisp.c (redisplay_internal): Update references to
27841 `previous_terminal_frame'.
27842 (display_mode_line, Fformat_mode_line): Replace calls to
27843 `push_frame_kboard' with `push_kboard'.
27844 (get_glyph_string_clip_rects): Add extra parentheses and
27845 braces to prevent compiler warnings.
27846 (calc_pixel_width_or_height): Add xassert to check that the
27847 frame is alive. Don't call `lookup_image' on a termcap frame.
27848 (message2_nolog, message3_nolog, redisplay_internal)
27849 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
27850 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
27851 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
27852 (Fx_display_pixel_width, Fx_display_pixel_height)
27853 (Fx_display_planes, Fx_display_color_cells)
27854 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
27855 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
27856 (Fx_display_backing_store, Fx_display_visual_class)
27857 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
27858 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
27859
27860 * xfns.c (x_set_foreground_color x_set_background_color)
27861 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
27862 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27863 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
27864 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
27865 terminal that is being deleted.
27866 (Fx_create_frame): Use `store_frame_param' to set `window-system'
27867 frame parameter, and make sure it overrides any user-supplied setting.
27868 (Fx_close_connection, Fx_synchronize): Unify argument names with
27869 the rest of the DEFUNs.
27870
27871 * dispnew.c (Fsend_string_to_terminal): Update call to
27872 `get_tty_terminal'.
27873 (Fredraw_frame, Fsend_string_to_terminal)
27874 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
27875 FRAME_TERMCAP_P and FRAME_TTY.
27876 (window_change_signal): Don't believe width/height values that are
27877 impossibly small.
27878 (Vinitial_window_system): Rename from Vwindow_system.
27879 (termscript, Wcm, rif): Delete.
27880
27881 * termhooks.h (struct terminal): New struct containing the
27882 previously global text display hooks and new members NAME,
27883 DELETED and PARAM_ALIST.
27884 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
27885 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
27886 (FRAME_RIF): New macros.
27887 (get_terminal_param, get_device): New declarations.
27888 (termscript): Delete declaration.
27889
27890 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
27891 (XTflash, x_free_frame_resources, x_scroll_bar_create)
27892 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
27893 FRAME_FOREGROUND_PIXEL.
27894 (x_fully_uncatch_errors): Disable definition.
27895 (x_scroll_bar_expose): Fix reference to foreground pixel.
27896 (XTread_socket): Disable loop on all X displays.
27897 (x_delete_terminal): Don't set terminal->deleted and let
27898 delete_terminal delete the frames on the terminal.
27899 (x_delete_display): Doc update to reflect changes in
27900 delete_terminal.
27901 (x_display_info) <terminal>: Move member earlier in the struct.
27902 (deleting_tty): Remove old variable.
27903 (Fsuspend_tty): Call clear_tty_hooks.
27904 (Fresume_tty, init_tty): Call set_tty_hooks.
27905 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
27906 errors on X frames.
27907 (x_catch_errors_unwind): Abort if x_error_message is NULL.
27908 (handle_one_xevent): Initialize `f' to NULL.
27909 (x_delete_terminal, x_create_terminal): New functions.
27910 (XTset_terminal_modes, XTreset_terminal_modes)
27911 (XTread_socket, x_connection_closed, x_term_init)
27912 (x_term_init, x_delete_display): Add terminal parameter.
27913 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
27914 X connections.
27915
27916 * frame.c: Include termchar.h.
27917 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
27918 (Qwindow_system, Qenvironment, Qterm_environment_variable)
27919 (Qdisplay_environment_variable): New vars.
27920 (Fframep): Deal with output_initial.
27921 (Fframe-live-p): Doc fix.
27922 (Fwindow-system): New function.
27923 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
27924 (make_terminal_frame): Don't create frames on a terminal that is
27925 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27926 (store_frame_param): Check for found_for_frame before calling XFRAME.
27927 (Fmake_terminal_frame): Handle NULL tty names correctly.
27928 (syms_of_frame): Enhance doc string of `default-frame-alist'.
27929 (Fdelete_frame): Remove unused variable `count'. Don't allow other
27930 frames to refer to a deleted frame in their 'environment parameter.
27931 (Fframe_with_environment): New function.
27932 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
27933 (get_future_frame_param): New function.
27934 (Fmake_terminal_frame): Use it.
27935 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
27936
27937 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
27938 * sysdep.c (reset_sys_modes): Update for renames.
27939
27940 * keyboard.c (tty_read_avail_input): New function.
27941 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
27942 (syms_of_keyboard): Defsubr them.
27943 (Fset_input_meta_mode, Fset_quit_char): New functions.
27944 (Fset_input_mode): Split to above functions.
27945 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
27946 parameter. Use it in call to `read_char'.
27947 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
27948 Set wrong_kboard_jmpbuf correctly in recursive calls.
27949 Use current_kboard to access Vkeyboard_translate_table.
27950 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
27951 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
27952 Update longjmp invocations. Remember the original current_kboard,
27953 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
27954 changes it. Comment out unnecessary calls to
27955 `record_single_kboard_state' and `any_kboard_state'.
27956 Update recursive calls.
27957 (wrong_kboard_jmpbuf): Remove global variable.
27958 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
27959 Handle deleted interrupted_kboards correctly; that is a legal
27960 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
27961 and read_char calls. Abort if interrupted_kboard died in read_char.
27962 (any_kboard_state, single_kboard_state)
27963 (push_frame_kboard): Remove function.
27964 (pop_kboard): Switch out of single_kboard mode if the kboard has
27965 been deleted. Remove unused variable. Help debugging by not
27966 changing current_kboard unnecessarily. Set current_kboard to the
27967 kboard of the selected frame when the stored kboard object has
27968 been deleted before pop_kboard.
27969 (temporarily_switch_to_single_kboard): Change first parameter to a
27970 frame pointer. Throw an error when caller wants to change kboards
27971 while in single_kboard mode. Don't push_kboard if we weren't in
27972 single kboard state. Don't pop_kboard if we popped into any
27973 kboard state.
27974 (restore_kboard_configuration): Abort if pop_kboard changed the
27975 kboard in single_kboard mode. Call pop_kboard only after setting
27976 up single_kboard mode.
27977 (Frecursive_edit): Switch to single_kboard mode only in nested
27978 command loops.
27979 (cmd_error, command_loop, command_loop_1, timer_check):
27980 Comment out unnecessary call to `any_kboard_state' and
27981 `record_single_kboard_state'.
27982 (delete_kboard): Exit single_kboard mode if we have just deleted
27983 that kboard. Use FRAME_KBOARD.
27984 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27985 `fatal_error_signal'.
27986 (record_single_kboard_state): Don't push_kboard if we weren't in
27987 single kboard state. Don't pop_kboard if we popped into any
27988 kboard state.
27989 (push_frame_kboard): Rename to push_kboard.
27990 (kbd_buffer_get_event): Use FRAME_TERMINAL.
27991 (read_avail_input): Read input from all terminals.
27992 (mark_kboards): Also mark Vkeyboard_translate_table.
27993 (kbd_buffer_store_event_hold): Simplify condition.
27994 (read_key_sequence): Reinitialize fkey and keytran at each replay.
27995 (Vkeyboard_translate_table): Move to struct kboard.
27996 (init_kboard): Initialize Vkeyboard_translate_table.
27997 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27998 Vkeyboard_translate_table. Update doc strings. Update docs of
27999 local-function-key-map and function-key-map.
28000
28001 * terminal.c: New file.
28002
28003 * term.c: Include errno.h.
28004 (Vring_bell_function, device_list, initial_device)
28005 (next_device_id, ring_bell, update_begin, update_end)
28006 (set_terminal_window, cursor_to, raw_cursor_to)
28007 (clear_to_end, clear_frame, clear_end_of_line)
28008 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
28009 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
28010 (syms_of_term): Move their initialization to terminal.c.
28011 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
28012 (Ftty_display_color_cells)
28013 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
28014 (clear_tty_hooks, set_tty_hooks)
28015 (init_tty, maybe_fatal): New functions.
28016 (Ftty_type): Return nil if terminal is not on a tty instead of
28017 throwing an error. Doc update.
28018 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
28019 Doc update. Initialize new subrs and variables.
28020 (delete_tty): Use terminal->deleted.
28021 (tty_set_terminal_modes): Rename from set_terminal_modes.
28022 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
28023 (set_scroll_region): Rename to `tty_set_scroll_region'.
28024 (turn_on_insert): Rename to `tty_turn_on_insert'.
28025 (turn_off_insert): Rename to `tty_turn_off_insert'.
28026 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
28027 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
28028 (toggle_highligh): Rename to `tty_toggle_highlight'.
28029 (background_highlight): Rename to `tty_background_highlight'.
28030 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
28031 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
28032 (tty_set_scroll_region, tty_background_highlight)
28033 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
28034 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
28035 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
28036 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
28037 Add static modifier.
28038 (tty_reset_terminal_modes, tty_set_terminal_window)
28039 (tty_set_scroll_region, tty_background_highlight)
28040 (tty_highlight_if_desired, tty_cursor_to)
28041 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
28042 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
28043 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
28044 renames.
28045
28046 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
28047
28048 * keyboard.c: Qrtl is new.
28049 (parse_tool_bar_item): Handle :rtl keyword.
28050 (syms_of_keyboard): Intern :rtl keyword.
28051
28052 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
28053
28054 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
28055 so no Lisp code is executed.
28056 (file_for_image, find_rtl_image): New functions.
28057 (xg_get_image_for_pixmap): Use file_for_image.
28058 (update_frame_tool_bar): If direction is RTL, use RTL image if
28059 defined. Use Gtk stock images if defined.
28060
28061 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28062
28063 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
28064 for nonexistent or zero-width glyph in composition glyph.
28065
28066 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
28067
28068 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
28069
28070 * xdisp.c (Finvisible_p): New function.
28071 (syms_of_xdisp): defsubr it.
28072
28073 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
28074
28075 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
28076 Doc fixes.
28077
28078 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28079
28080 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
28081
28082 2007-08-24 Martin Rudalics <rudalics@gmx.at>
28083
28084 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
28085 whether decoding has modified buffer contents.
28086
28087 2007-08-24 Jason Rumney <jasonr@gnu.org>
28088
28089 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
28090 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
28091 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
28092 (init_svg_functions) [HAVE_NTGUI]: New function.
28093 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
28094 (svg_load_image): Use them.
28095 (svg_load_image) [HAVE_NTGUI]: Implement background.
28096
28097 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28098
28099 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
28100 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
28101 (LIBX): Remove @RSVG_LIBS@.
28102 (LIBES): Add $(RSVG_LIBS).
28103
28104 * image.c (svg_load_image): Blend with specified background if exists.
28105 Use IMAGE_BACKGROUND. Add Mac OS Support.
28106
28107 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
28108 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
28109 Remove macros.
28110 [MAC_OSX] (socket_callback): Do nothing.
28111 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
28112 ReceiveNextEvent.
28113 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
28114 socket_callback.
28115 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
28116
28117 2007-08-22 Glenn Morris <rgm@gnu.org>
28118
28119 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
28120
28121 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
28122
28123 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
28124
28125 * image.c: Add support for SVG images. Some additional comments
28126 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
28127 (svg_image_p): New function to test for SVG image.
28128 (svg_load): New function to load SVG image.
28129 (svg_load_image): New function, helper for svg_load.
28130 (Qsvg): New Lisp_object.
28131 (svg_keyword_index): New enum.
28132 (svg_format): New static `image_keyword' struct.
28133 (svg_type): New static `image_type' struct.
28134 (librsvg/rsvg.h): Include it.
28135
28136 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
28137
28138 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
28139
28140 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
28141
28142 * lread.c (Qold_style_backquotes): New var.
28143 (syms_of_lread): Init and staticpro it.
28144 (load_warn_old_style_backquotes): New fun.
28145 (Fload): Use them to warn about old style backquotes.
28146 (end_of_file_error, Fload): Remove unused vars.
28147
28148 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
28149
28150 * lread.c (Vold_style_backquotes): New var.
28151 (syms_of_lread): Init and export it to Elisp.
28152 (read1): Set it when we find an old-style (back)quote.
28153
28154 2007-08-22 Jason Rumney <jasonr@gnu.org>
28155
28156 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
28157
28158 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
28159
28160 * puresize.h (BASE_PURESIZE): Increase to 1140000.
28161
28162 2007-08-19 Richard Stallman <rms@gnu.org>
28163
28164 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
28165
28166 2007-08-19 Andreas Schwab <schwab@suse.de>
28167
28168 * alloc.c (pure): Round PURESIZE up.
28169
28170 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
28171
28172 * xterm.c (handle_one_xevent): Remove check that mouse click is in
28173 active frame.
28174
28175 2007-08-16 Richard Stallman <rms@gnu.org>
28176
28177 * eval.c (Fcommandp): Add parens to clarify.
28178
28179 * minibuf.c (Fall_completions): Use enum for type of table.
28180
28181 * emacs.c (USAGE2): Improve text.
28182
28183 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
28184
28185 * term.c (tty_default_color_capabilities): Declare static
28186 variables in file scope, to avoid HPUX compiler problem.
28187
28188 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
28189
28190 * gtkutil.c (update_frame_tool_bar): Use -1 as index
28191 to gtk_toolbar_insert.
28192
28193 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
28194
28195 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
28196
28197 * insdel.c (reset_var_on_error): New fun.
28198 (signal_before_change, signal_after_change):
28199 Use it to reset (after|before)-change-functions to nil in case of error.
28200 Bind inhibit-modification-hooks to t.
28201 Don't bind (after|before)-change-functions to nil while they run.
28202
28203 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28204
28205 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
28206 filling pixmap with stippled background.
28207
28208 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28209
28210 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
28211 Don't use invisible frame as parent window for repositioning.
28212
28213 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
28214
28215 * print.c (new_backquote_output): Rename from old_backquote_output.
28216 (print): Inverse its logic (according to its name) so as to match the
28217 behavior of new_backquote_flag in lread.c.
28218
28219 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28220
28221 * gmalloc.c (posix_memalign): New function.
28222
28223 * macterm.c (frame_highlight, frame_unhighlight): Don't call
28224 ActivateControl/DeactivateControl here.
28225 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
28226 frame-notice-user-settings is non-nil.
28227 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
28228 for kEventParamFMFontStyle.
28229 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
28230 mac_pass_command_to_system and mac_pass_control_to_system here.
28231 (XTread_socket): Call ActivateControl/DeactivateControl here.
28232 (XTread_socket) [TARGET_API_MAC_CARBON]:
28233 Check mac_pass_command_to_system and mac_pass_control_to_system here.
28234 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
28235 for window repositioning.
28236
28237 2007-08-08 Glenn Morris <rgm@gnu.org>
28238
28239 * Replace `iff' in doc-strings and comments.
28240
28241 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
28242
28243 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
28244
28245 2007-08-07 Martin Rudalics <rudalics@gmx.at>
28246
28247 * fileio.c (Finsert_file_contents): Run format-decode and
28248 after_insert_file_functions on entire buffer when REPLACE is
28249 non-nil and inhibit modification_hooks and point_motion_hooks.
28250 For consistency, run after_insert_file_functions iff something
28251 got inserted. Move signal_after_change and update_compositions
28252 after code running after_insert_file_functions. Make sure that
28253 undo_list doesn't record intermediate steps of the decoding process.
28254
28255 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28256
28257 * emacs.c (main)
28258 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
28259 Call malloc_enable_thread on interactive startup.
28260
28261 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
28262 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
28263 [USE_PTHREAD]: Conditionalize with it.
28264 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
28265 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
28266 New functions.
28267
28268 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
28269
28270 * xdisp.c (redisplay_window): When restoring original buffer
28271 position, make sure it is still valid.
28272
28273 * image.c (png_load): Ignore png-supplied background color.
28274
28275 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28276
28277 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
28278 Use kCFAbsoluteTimeIntervalSince1970.
28279
28280 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
28281 New variable.
28282 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
28283 event loop should be quit.
28284 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
28285 Quit dialog event loop if quit_dialog_event_loop is set.
28286
28287 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
28288 (Selection): New typedef. Use instead of ScrapRef.
28289 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
28290 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
28291 (mac_clear_selection): Rename from clear_scrap.
28292 (get_flavor_type_from_symbol): New argument SEL and subsume function of
28293 scrap_has_target_type. All uses changed.
28294 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
28295 (mac_selection_has_target_p): New functions.
28296 (mac_put_selection_value): Rename from put_scrap_string.
28297 (mac_get_selection_value): Rename from get_scrap_string.
28298 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
28299 (put_scrap_private_timestamp, scrap_has_target_type)
28300 (get_scrap_private_timestamp): Remove functions.
28301 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
28302 (x_own_selection, x_get_local_selection):
28303 Use mac_valid_selection_value_p.
28304 (x_own_selection): Don't use put_scrap_private_timestamp.
28305 Record OWNERSHIP-INFO into Vselection_alist instead.
28306 (x_get_local_selection): Don't check type if request is local.
28307 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
28308 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
28309
28310 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
28311
28312 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
28313 add comment explaining why.
28314
28315 2007-08-03 Richard Stallman <rms@gnu.org>
28316
28317 * fileio.c (Fvisited_file_modtime): Use make_time.
28318
28319 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
28320
28321 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
28322 build.
28323
28324 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
28325
28326 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
28327
28328 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
28329
28330 * puresize.h (BASE_PURESIZE): Increase to 1130000.
28331
28332 2007-07-30 Richard Stallman <rms@gnu.org>
28333
28334 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
28335
28336 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
28337
28338 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
28339
28340 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
28341
28342 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
28343 remote default-directory.
28344
28345 * buffer.c (mode-line-format): Update doc string.
28346
28347 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28348
28349 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
28350 scroll bar gap.
28351 (x_scroll_bar_create): Set bar->fringe_extended_p.
28352 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
28353 on frame edge. Check fringe background extension. Don't clear
28354 extended fringe background area.
28355
28356 * w32term.h (struct scroll_bar): New member fringe_extended_p.
28357 (w32_fill_area): Enclose multiple statements with do ... while (0).
28358
28359 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
28360 Extend fringe background to scroll bar gap.
28361 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
28362 Set bar->fringe_extended_p.
28363 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28364 Put leftmost/rightmost scroll bars on frame edge. Check fringe
28365 background extension. Don't clear extended fringe background area.
28366
28367 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28368 New member fringe_extended_p.
28369
28370 2007-07-25 Glenn Morris <rgm@gnu.org>
28371
28372 * Relicense all FSF files to GPLv3 or later.
28373
28374 * COPYING: Switch to GPLv3.
28375
28376 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
28377
28378 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
28379
28380 * data.c (Finteractive_form): Check for the presence of an
28381 `interactive-form' symbol property more thoroughly.
28382
28383 * data.c (Finteractive_form): Use an `interactive-form' property if
28384 present, analogous to the function-documentation property.
28385
28386 2007-07-24 Jason Rumney <jasonr@gnu.org>
28387
28388 * w32fns.c (x_real_positions): Get real position from OS instead of
28389 calculating it.
28390
28391 2007-07-23 Jason Rumney <jasonr@gnu.org>
28392
28393 * filelock.c (current_lock_owner): Allow for @ sign in username.
28394
28395 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
28396
28397 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
28398 remote default-directory.
28399
28400 * buffer.c (mode-line-format): Describe above case in doc string.
28401
28402 2007-07-20 Eli Zaretskii <eliz@gnu.org>
28403
28404 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
28405 Define if not defined.
28406
28407 2007-07-18 Jason Rumney <jasonr@gnu.org>
28408
28409 * w32proc.c (w32_executable_type): Handle 64 bit executables.
28410
28411 2007-07-18 Richard Stallman <rms@gnu.org>
28412
28413 * data.c (Fsetq_default): Doc fix.
28414
28415 * eval.c (Fsetq): Doc fix.
28416
28417 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
28418
28419 * coding.c (Ffind_operation_coding_system):
28420 * eval.c (For, Fand): Doc fixes.
28421 Reported by Johan Bockgård.
28422
28423 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
28424
28425 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
28426
28427 * xterm.h: Declare x_ewmh_activate_frame.
28428
28429 * xterm.c (x_ewmh_activate_frame): New function.
28430 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
28431
28432 2007-07-17 Martin Rudalics <rudalics@gmx.at>
28433
28434 * window.c (Fdisplay_buffer): If largest or LRU window is the
28435 only window, split it even if it is not eligible for splitting.
28436 This restores the original behavior broken by the 2007-07-15
28437 change.
28438
28439 2007-07-17 Glenn Morris <rgm@gnu.org>
28440
28441 * abbrev.c (abbrev_check_chars): New function.
28442 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
28443 Call abbrev_check_chars to check abbrev characters are word
28444 constituents. Doc fix.
28445
28446 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
28447
28448 * process.c (Fstart_process, Fmake_network_process)
28449 (read_process_output): Fix up last changes.
28450
28451 2007-07-16 Eli Zaretskii <eliz@gnu.org>
28452
28453 * makefile.w32-in (clean): Don't delete *~.
28454
28455 2007-07-16 Andreas Schwab <schwab@suse.de>
28456
28457 * window.c (Fdisplay_buffer): Use NILP.
28458 (Fset_window_scroll_bars): Likewise.
28459
28460 2007-07-15 Martin Rudalics <rudalics@gmx.at>
28461
28462 * window.c (window_min_size_2): New function.
28463 (window_min_size_1, size_window, Fdisplay_buffer)
28464 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
28465 windows without mode- or header-lines when window-min-height is
28466 too small.
28467 (size_window): Reset nodelete_p after testing it, following an
28468 earlier note by Kim F. Storm.
28469 (display_buffer): Do not set split_height_threshold to twice the
28470 value of window_min_height to avoid changing the value of a
28471 customizable variable. Rather explicitly check whether the
28472 height of the window that shall be splitted is at least as large
28473 as split_height_threshold.
28474 (Fwindow_full_width_p): New defun.
28475 (syms_of_window): Defsubr it.
28476
28477 * window.h: Add EXFUN for Fwindow_full_width_p.
28478
28479 2007-07-14 Jason Rumney <jasonr@gnu.org>
28480
28481 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
28482
28483 2007-07-14 Richard Stallman <rms@gnu.org>
28484
28485 * eval.c (maybe_call_debugger): New function.
28486 (find_handler_clause): Use maybe_call_debugger.
28487 Call it when the handler says `debug'.
28488 Eliminate DEBUGGER_VALUE_PTR.
28489 (Fsignal): Eliminate debugger_value.
28490 (Qdebug): New variable.
28491 (syms_of_eval): Initialize it.
28492
28493 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
28494
28495 * eval.c (Fprogn):
28496 * keyboard.c (Ftrack_mouse):
28497 * print.c (Fwith_output_to_temp_buffer):
28498 * window.c (Fsave_window_excursion): Doc fix.
28499
28500 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
28501
28502 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
28503
28504 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
28505
28506 * process.h (struct Lisp_Process): Turn slots infd, outfd,
28507 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
28508 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
28509 read_output_delay, and read_output_skip from Lisp_Objects to ints.
28510 Remove unused encoding_carryover.
28511 * process.c: Adjust all functions accordingly.
28512
28513 2007-07-12 Richard Stallman <rms@gnu.org>
28514
28515 * term.c: Include unistd.h only if HAVE_UNISTD_H.
28516
28517 2007-07-11 Jason Rumney <jasonr@gnu.org>
28518
28519 * makefile.w32-in (LIBS): Include OLE32.
28520
28521 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
28522 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
28523
28524 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
28525
28526 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
28527 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
28528 from a Lisp_Object into a bare pointer.
28529 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
28530 Adjust the code correspondingly.
28531
28532 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
28533
28534 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
28535 (term_show_mouse_face): Remove unused var `j'.
28536 (handle_one_term_event): Remove unused vars `i' and `j'.
28537 Don't cast return value of ttyname since it's not necessary.
28538
28539 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
28540
28541 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
28542 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
28543
28544 * fns.c (map_char_table): Use an array of int for `indices' rather than
28545 an array of Lisp_Objects (which are only ever integers anyway).
28546 (Fmap_char_table): Update caller.
28547 * lisp.h: Update prototype.
28548 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
28549 * fontset.c (Ffontset_info):
28550 * casetab.c (set_case_table): Update callers.
28551
28552 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
28553
28554 * keymap.c (struct accessible_keymaps_data)
28555 (struct where_is_internal_data): New structures.
28556 (accessible_keymaps_1, where_is_internal_1): Use them to change
28557 interface to adhere to the one used by map_keymap.
28558 (Faccessible_keymaps, where_is_internal): Use map_keymap.
28559 (accessible_keymaps_char_table, where_is_internal_2): Remove.
28560
28561 * keymap.h (map_keymap_function_t): More informative prototype.
28562
28563 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
28564
28565 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
28566 (looking_at_1): Don't change search_regs and last_thing_searched
28567 if `inhibit-changing-match-data' is non-nil.
28568 (string_match_1, search_buffer, set_search_regs): Likewise.
28569 (syms_of_search): Add Lisp level definition for
28570 `inhibit-changing-match-data' and set it to nil.
28571 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
28572 start and end of the match, instead of using values in search_regs.
28573
28574 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
28575
28576 * minibuf.c (Fcompleting_read): New value `confirm-only'
28577 for `require-match'.
28578
28579 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
28580
28581 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
28582 part of the 2007-06-27 change to syms_of_fileio.
28583
28584 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28585
28586 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
28587 Check WINDOWP before using XWINDOW. Consolidate return statements.
28588
28589 2007-06-27 Richard Stallman <rms@gnu.org>
28590
28591 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
28592
28593 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
28594
28595 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
28596
28597 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28598
28599 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
28600 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
28601 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
28602 (_free_internal, memalign): Use them.
28603 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
28604 Initialize to PTHREAD_MUTEX_INITIALIZER.
28605 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
28606 (morecore_nolock): Rename from morecore. All uses changed.
28607 Use only nolock versions of internal allocation functions.
28608 (_malloc_internal_nolock, _realloc_internal_nolock)
28609 (_free_internal_nolock): New functions created from
28610 _malloc_internal, _realloc_internal, and _free_internal.
28611 (_malloc_internal, _realloc_internal, _free_internal): Use them.
28612 Copy hook value to automatic variable before its use.
28613 (memalign): Copy hook value to automatic variable before its use.
28614
28615 2007-06-26 Kenichi Handa <handa@m17n.org>
28616
28617 * coding.c (Ffind_operation_coding_system): Docstring improved.
28618 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
28619
28620 2007-06-25 David Kastrup <dak@gnu.org>
28621
28622 * keymap.c (Fcurrent_active_maps): Add `position' argument.
28623 (Fwhere_is_internal): Adjust call to `current-active-maps' to
28624 cater for additional parameter.
28625
28626 * keymap.h: Adjust number of parameters to `current-active-maps'.
28627
28628 * doc.c (Fsubstitute_command_keys): Adjust call of
28629 `current-active-maps'.
28630
28631 2007-06-25 David Kastrup <dak@gnu.org>
28632
28633 * callint.c (Fcall_interactively): Make the parsing of interactive
28634 specs somewhat more readable.
28635
28636 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28637
28638 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
28639 to scroll bar gap also when bitmap fills fringe. Draw only foreground
28640 if extended background has already been filled.
28641
28642 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28643
28644 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
28645 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
28646
28647 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
28648 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
28649 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
28650 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
28651 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
28652 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
28653 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
28654 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
28655 Run timers during dialog popup.
28656 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
28657
28658 2007-06-21 Jason Rumney <jasonr@gnu.org>
28659
28660 * image.c (convert_mono_to_color_image): Swap fore and background.
28661
28662 2007-06-20 Jason Rumney <jasonr@gnu.org>
28663
28664 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
28665 (w32_free_bdf_font): Unmap memory not handle.
28666
28667 2007-06-20 Sam Steingold <sds@gnu.org>
28668
28669 * gmalloc.c (__morecore): Fix the declaration to comply with the
28670 definition.
28671
28672 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
28673
28674 * w32term.c (w32_delete_display): Remove leftover declaration.
28675 (w32_define_cursor, w32_initialize): Make static.
28676
28677 * w32.c (_wsa_errlist): Fix typo in error message.
28678 (init_environment): Ignore any environment variable from the
28679 registry having a null value.
28680
28681 2007-06-20 Glenn Morris <rgm@gnu.org>
28682
28683 * Makefile.in (LIBGIF): Default to -lgif.
28684
28685 2007-06-17 Jason Rumney <jasonr@gnu.org>
28686
28687 * w32menu.c (add_menu_item): Don't use multibyte string functions on
28688 unicode strings.
28689
28690 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
28691
28692 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
28693 Fix typo in docstring.
28694
28695 2007-06-16 Eli Zaretskii <eliz@gnu.org>
28696
28697 * w32menu.c (add_menu_item): Escape `&' characters in menu items
28698 and their keybindings.
28699
28700 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
28701
28702 * composite.c (update_compositions): Fix last fix.
28703
28704 2007-06-14 Jason Rumney <jasonr@gnu.org>
28705
28706 * w32.c (get_process_times_fn): New function pointer.
28707 (globals_of_w32): Intialize it if present in kernel32.dll.
28708 (w32_get_internal_run_time): New function.
28709
28710 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
28711
28712 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
28713
28714 * composite.c (update_compositions): Check the validness of
28715 compositions.
28716
28717 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28718
28719 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
28720 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
28721
28722 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
28723 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
28724
28725 * macgui.h (USE_MAC_TOOLBAR): New define.
28726
28727 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28728 Return immediately unless popup is activated.
28729
28730 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
28731 background to scroll bar gap.
28732 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
28733 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
28734 scroll bars on frame edge. Check fringe background extension.
28735 Don't clear extended fringe background area.
28736 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
28737 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
28738 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
28739 [USE_MAC_TOOLBAR]: New macros.
28740 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
28741 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
28742 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
28743 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
28744 [USE_MAC_TOOLBAR]: New functions.
28745 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
28746 manually if previous repositioning has failed.
28747 (mac_handle_keyboard_event): Use precomputed event kind.
28748 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
28749 as tool bar item click. Handle mouse movement over tool bar items.
28750
28751 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
28752 toolbar_win_gravity.
28753 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
28754 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
28755 Add externs.
28756
28757 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
28758 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
28759
28760 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
28761
28762 * image.c (search_image_cache): Remove unused variable.
28763
28764 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
28765
28766 * xfns.c, xmenu.c: Link to xaw3d if available.
28767
28768 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28769
28770 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
28771 frame_foreground and frame_background.
28772
28773 * image.c (lookup_image): Save frame foreground and background colors.
28774 (search_image_cache): Check if saved and current frame colors match.
28775
28776 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
28777
28778 * regex.c (regex_compile): Remove the `regnum' counter.
28779 Use bufp->re_nsub instead. Add support for \(?N:RE\).
28780
28781 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
28782
28783 * term.c: Include intervals.h to declare Fget_text_property.
28784
28785 2007-06-10 Jason Rumney <jasonr@gnu.org>
28786
28787 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
28788
28789 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
28790
28791 * callint.c (Fcall_interactively):
28792 * editfns.c (Fdelete_and_extract_region):
28793 * fileio.c (Fread_file_name):
28794 * fns.c (Fmapconcat):
28795 * keyboard.c (cmd_error_internal):
28796 * keymap.c (Fkey_description):
28797 * lread.c (openp):
28798 * minibuf.c (read_minibuf):
28799 * search.c (wordify):
28800 * sunfns.c (sel_read):
28801 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
28802 * xfns.c (x_default_scroll_bar_color_parameter):
28803 * xmenu.c (menu_help_callback):
28804 * xselect.c (Fx_get_atom_name):
28805 * xterm.c (x_term_init): Use empty_unibyte_string.
28806
28807 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
28808
28809 * alloc.c (init_strings): Initialize canonical empty strings.
28810 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
28811 canonical empty string when the requested size is 0.
28812
28813 * emacs.c (empty_unibyte_string): Rename from empty_string.
28814 (empty_multibyte_string): New canonical empty string.
28815 (syms_of_emacs): Don't initialize empty_string.
28816
28817 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
28818 string, if appropriate.
28819 (empty_unibyte_string, empty_multibyte_string): New externs.
28820 (empty_string): Remove extern.
28821
28822 * lread.c (syms_of_lread): Use empty_unibyte_string.
28823
28824 2007-06-07 Jason Rumney <jasonr@gnu.org>
28825
28826 * s/ms-w32.h: Don't define HAVE_TZNAME.
28827
28828 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
28829
28830 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28831
28832 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
28833
28834 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
28835 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
28836
28837 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28838 Don't call next handler.
28839 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
28840 Remove argument. Install handler to application.
28841 (set_frame_menubar): Don't change deep_p.
28842 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
28843 FRAME_OUTER_TO_INNER_DIFF_Y.
28844 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
28845 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
28846 [HAVE_DIALOGS]: New macros.
28847 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
28848 Use them.
28849 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
28850
28851 * macselect.c [MAC_OSX] (install_service_handler): Rename from
28852 init_service_handler. All callers changed. Return OSStatus value.
28853
28854 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
28855 All callers changed so as not to call SetPortWindowPort.
28856 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
28857 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
28858 mac_draw_string_common.
28859 (mac_draw_image_string_qd): Likewise.
28860 (mac_draw_string_common): Use them. Add INLINE.
28861 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
28862 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
28863 GetGlobalMouse.
28864 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
28865 and FRAME_OUTER_TO_INNER_DIFF_Y.
28866 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
28867 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
28868 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
28869 repositioning window to mac_handle_window_event.
28870 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
28871 saving window location to mac_handle_window_event
28872 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
28873 (install_menu_target_item_handler): Remove argument in extern.
28874 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
28875 Also accept command events.
28876 (do_keystroke): New function created from XTread_socket.
28877 (init_command_handler): Remove functions.
28878 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
28879 and save window location by kEventWindowShowing and kEventWindowHiding
28880 handlers here. Don't call next handler for window state change and
28881 focus events.
28882 (mac_handle_application_event, mac_handle_keyboard_event)
28883 [TARGET_API_MAC_CARBON]: New functions.
28884 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
28885 kEventWindowShowing and kEventWindowHiding events. Move installation
28886 of mouse, font, text input and menu target item handlers to
28887 install_application_handler.
28888 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
28889 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28890 New function.
28891 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28892 Register it.
28893 (XTread_socket) [TARGET_API_MAC_CARBON]:
28894 Consolidate SendEventToEventTarget calls.
28895 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
28896 Move application activation handler to mac_handle_application_event.
28897 Move keyboard handler to mac_handle_keyboard_event.
28898 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
28899 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28900 init_command_handler. Call install_application_handler.
28901
28902 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
28903 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
28904
28905 2007-06-07 Glenn Morris <rgm@gnu.org>
28906
28907 * emacs.c (main): Use `emacs-copyright' in --version output.
28908
28909 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
28910
28911 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
28912
28913 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28914
28915 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
28916
28917 * macgui.h: Replace WindowPtr with WindowRef.
28918
28919 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28920 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28921 Replace ControlHandle with ControlRef.
28922 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
28923
28924 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28925 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28926 Replace ControlHandle with ControlRef.
28927 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
28928 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
28929
28930 * macterm.h (struct scroll_bar): Rename member control_handle_low
28931 and control_handle_high to control_ref_low and control_ref_high.
28932 All uses changed.
28933 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
28934 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
28935 respectively. All uses changed.
28936 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
28937 (install_window_handler, remove_window_handler): Replace WindowPtr
28938 with WindowRef in externs.
28939
28940 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
28941
28942 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
28943
28944 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
28945
28946 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
28947
28948 * frame.c (Fmouse_position, Fmouse_pixel_position):
28949 Condition on HAVE_GPM too.
28950
28951 * term.c (term_mouse_highlight): Remove unused variables.
28952 (Fterm_open_connection): Set gpm_zerobased to 1.
28953 (term_mouse_movement, term_mouse_click, handle_one_term_event):
28954 Use zero based co-ordinates.
28955 (handle_one_term_event): Report a drag as mouse movement too.
28956
28957 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
28958
28959 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
28960
28961 * image.c (search_image_cache): New function. Require background
28962 color match if background color is unspecified in the image spec.
28963 (uncache_image, lookup_image): Use it.
28964
28965 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
28966
28967 * window.c (Fshrink_window): Reflow docstring.
28968
28969 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
28970
28971 * Version 22.1 released.
28972
28973 2007-06-01 Richard Stallman <rms@gnu.org>
28974
28975 * xfns.c (x_encode_text): Add GCPRO.
28976
28977 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28978
28979 * xfns.c (x_set_name_internal): Save encoded name before
28980 x_encode_text in case string data is relocated.
28981
28982 2007-05-31 Richard Stallman <rms@gnu.org>
28983
28984 * buffer.c (syms_of_buffer): Doc fix.
28985
28986 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
28987
28988 * sysdep.c (init_sys_modes): Add rather than replace with
28989 O_NONBLOCK.
28990
28991 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28992 term_mouse_moveto.
28993
28994 * termhooks.h (term_mouse_moveto): New extern.
28995
28996 * term.c (mouse_face_window): Rename...
28997 (Qmouse_face_window): ...to this.
28998 (term_show_mouse_face, term_clear_mouse_face)
28999 (term_mouse_highlight): Use Qmouse_face_window.
29000 (term_mouse_moveto): New function.
29001 (term_mouse_position): Make it work.
29002 (syms_of_term): Uncomment assignment to mouse_position_hook.
29003 Staticpro Qmouse_face_window.
29004
29005 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29006
29007 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
29008 around current_column call.
29009
29010 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
29011
29012 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
29013 * xdisp.c (next_element_from_buffer):
29014 * window.c (delete_window):
29015 * term.c (term_mouse_highlight):
29016 * msdos.c (getdefdir):
29017 * macterm.c (mac_create_bitmap_from_bitmap_data)
29018 (init_font_name_table):
29019 * fns.c (Fsxhash):
29020 * data.c (Fmake_local_variable):
29021 * ccl.c (ccl_driver): Likewise.
29022
29023 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29024
29025 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
29026 Call mac_wakeup_from_rne on window size change.
29027
29028 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
29029
29030 * image.c (uncache_image): Fix typo.
29031
29032 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
29033
29034 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
29035
29036 2007-05-22 Richard Stallman <rms@gnu.org>
29037
29038 * xterm.c (x_connection_closed): Remove NO_RETURN.
29039
29040 2007-05-22 Martin Rudalics <rudalics@gmx.at>
29041
29042 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
29043
29044 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
29045
29046 * image.c (uncache_image): New function.
29047 (Fimage_refresh): New function.
29048
29049 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
29050
29051 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
29052
29053 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
29054
29055 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
29056 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
29057
29058 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
29059
29060 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
29061 conditional on [HAVE_GPM_H].
29062
29063 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
29064
29065 * syntax.c (skip_chars): Update syntax-table only after we checked that
29066 the new location is valid.
29067
29068 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29069
29070 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
29071 mac_get_window_bounds.
29072
29073 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
29074
29075 * Makefile.in (LIBGPM): Allow it to be set from configure.
29076 If set then link Emacs with it.
29077
29078 * config.in: Regenerate.
29079
29080 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
29081 New externs.
29082
29083 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
29084 Include gpm.h.
29085 (handle_one_term_event, term_gpm): New externs.
29086
29087 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
29088 and allow it to be interrupted by SIGIO.
29089
29090 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
29091 (wait_reading_process_output): Wait on gpm_fd too.
29092 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
29093 (add_gpm_wait_descriptor_called_flag): New variable.
29094 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
29095
29096 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
29097 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
29098 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
29099 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
29100 (make_lispy_event): Add case GPM_CLICK_EVENT.
29101 (read_avail_input): Handle mouse input.
29102
29103 * term.c (write_glyphs_with_face): New function.
29104 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
29105 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
29106 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
29107 (mouse_face_face_id, term_gpm, pos_x, pos_y)
29108 (last_mouse_x, last_mouse_y): New variables.
29109 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
29110 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
29111 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
29112 (Fterm_close_connection): New functions.
29113 (term_init): Initialise mouse_face_window.
29114
29115 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
29116
29117 * xdisp.c (redisplay_window): If first window line is a
29118 continuation line, recompute the new window start instead of
29119 recentering.
29120
29121 2007-05-18 Glenn Morris <rgm@gnu.org>
29122
29123 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
29124 Suggested by Alfred M. Szmidt <ams@gnu.org>.
29125
29126 2007-05-17 Glenn Morris <rgm@gnu.org>
29127
29128 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
29129
29130 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29131
29132 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
29133 dead key repeat and up events.
29134
29135 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
29136
29137 * image.c (pbm_load): Check image size for monochrome pbm.
29138
29139 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
29140
29141 * xterm.c (XTread_socket): Revert last change.
29142
29143 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
29144
29145 * image.c (pbm_load): Correctly check image size for greyscale pbm.
29146
29147 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
29148
29149 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
29150
29151 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
29152 mixup (YAILOM).
29153
29154 2007-05-07 Andreas Schwab <schwab@suse.de>
29155
29156 * keymap.c (Flookup_key): Fix typo in last change.
29157
29158 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
29159
29160 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
29161 mapping for unibyte strings.
29162
29163 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29164
29165 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
29166 (Fx_popup_dialog) [MAC_OSX]: Likewise.
29167
29168 2007-04-29 Richard Stallman <rms@gnu.org>
29169
29170 * insdel.c (replace_range): For undo, record insertion first.
29171
29172 2007-04-29 Andreas Schwab <schwab@suse.de>
29173
29174 * lisp.h (VECSIZE): Use OFFSETOF.
29175
29176 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29177
29178 * xdisp.c (try_window_reusing_current_matrix): Fix number of
29179 disabled lines.
29180
29181 2007-04-28 Richard Stallman <rms@gnu.org>
29182
29183 * lread.c (read_escape): In a string, \s is always space.
29184
29185 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
29186
29187 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
29188
29189 * gtkutil.c (xg_update_menubar, create_menus): Create empty
29190 submenu for menu bar items.
29191
29192 See ChangeLog.10 for earlier changes.
29193
29194 ;; Local Variables:
29195 ;; coding: utf-8
29196 ;; End:
29197
29198 Copyright (C) 2007, 2008, 2009, 2010
29199 Free Software Foundation, Inc.
29200
29201 This file is part of GNU Emacs.
29202
29203 GNU Emacs is free software: you can redistribute it and/or modify
29204 it under the terms of the GNU General Public License as published by
29205 the Free Software Foundation, either version 3 of the License, or
29206 (at your option) any later version.
29207
29208 GNU Emacs is distributed in the hope that it will be useful,
29209 but WITHOUT ANY WARRANTY; without even the implied warranty of
29210 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29211 GNU General Public License for more details.
29212
29213 You should have received a copy of the GNU General Public License
29214 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
29215