* image.c (imagemagick_clear_image): Remove debugging output.
[bpt/emacs.git] / src / ChangeLog
1 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
2
3 * image.c (imagemagick_clear_image): Remove debugging output.
4
5 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
8 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
9 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
10 self-insert-face.
11 (syms_of_cmds): Initialize the new vars.
12
13 2010-08-19 Jason Rumney <jasonr@gnu.org>
14
15 * w32menu.c (set_frame_menubar): Remove call to undefined function.
16
17 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
18
19 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
20
21 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
22
23 2010-08-18 Eli Zaretskii <eliz@gnu.org>
24
25 * xterm.c (x_draw_bar_cursor):
26 * w32term.c (x_draw_bar_cursor): If the character under cursor is
27 R2L, draw the bar cursor on its right rather than on its left.
28
29 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
30
31 * eval.c (Fdefmacro): Only obey one declaration.
32
33 * casefiddle.c (casify_region): Setup gl_state.
34
35 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
36
37 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
38
39 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
40
41 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
42
43 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
44
45 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
46 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
47 QPRIMARY => NXPrimaryPboard.
48 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
49 NXPrimaryPboard => QPRIMARY.
50 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
51 NXSecondaryPboard = SecondarySelection.
52 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
53
54 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
55
56 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
57 is a string.
58
59 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
60
61 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
62 x_set_tool_bar_position handler.
63
64 2010-08-17 Eli Zaretskii <eliz@gnu.org>
65
66 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
67 x_set_tool_bar_position handler, needed to support changes from
68 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
69
70 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
71
72 * nsselect.m: include keyboard.h for QPRIMARY, remove its
73 declaration (Bug#6863).
74 (syms_of_nsselect): Don't intern QPRIMARY.
75
76 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
77
78 * keyboard.h (QPRIMARY): Declare (Bug#6864).
79
80 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
81
82 * keyboard.c (command_loop_1): Avoid setting selection twice,
83 since it's done in deactivate-mark as well.
84 (Vselect_active_regions): Change default to t. Replace `lazy'
85 with non-default value `only', meaning only set PRIMARY for
86 temporarily active regions.
87
88 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
89 select-active-regions.
90
91 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
92
93 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
94 isn't a string.
95
96 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
97
98 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
99
100 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
101
102 * keyboard.c (parse_tool_bar_item): malloc buf.
103 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
104 new_lbl (Bug#6855).
105
106 2010-08-14 Eli Zaretskii <eliz@gnu.org>
107
108 * xterm.c (x_draw_stretch_glyph_string):
109 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
110 the cursor on the right edge of the stretch glyph.
111
112 * xdisp.c (window_box_right_offset, window_box_right):
113 Fix commentary.
114
115 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
116 direction when point is inside a run of whitespace characters.
117
118 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
119
120 2010-08-14 Jason Rumney <jasonr@gnu.org>
121
122 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
123
124 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
125
126 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
127
128 2010-08-13 Jason Rumney <jasonr@gnu.org>
129
130 * w32menu.c (simple_dialog_show): Use unicode message box if available.
131 (MessageBoxW_Proc): New function typedef.
132 (unicode-message-box): New function pointer.
133 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
134
135 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
136
137 * frame.h (Qtool_bar_position): Declare.
138
139 * xfns.c (Fx_create_frame): Call x_default_parameter for
140 Qtool_bar_position.
141
142 2010-08-13 Eli Zaretskii <eliz@gnu.org>
143
144 * unexcoff.c: Remove the parts used when "emacs" is not defined.
145 (report_error, report_error_1): Ditto.
146 (write_segment): Remove "#if 0" unused code.
147 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
148 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
149 (start_of_text): Remove unused function (was used only if NO_REMAP
150 was NOT defined).
151
152 * msdos.c (IT_set_face): Fix format string to match argument
153 types.
154 (IT_write_glyphs, IT_note_mode_line_highlight)
155 (IT_set_frame_parameters): Remove unused variables.
156 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
157 (IT_set_terminal_modes): Disambiguate expression in if clause.
158 (Fmsdos_remember_default_colors): Return Qnil.
159 (IT_set_frame_parameters): Add parens to disambiguate boolean
160 expression for logging the cursor type to termscript.
161 (keyboard_layout_list, keypad_translate_map)
162 (grey_key_translate_map): Add braces in inner initializers.
163 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
164 (dos_rawgetc): Remove unused label.
165 (XMenuActivate): Add braces to remove ambiguous `else'.
166 (dos_ttraw): Always return a value.
167 (spawnve): Declare.
168 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
169
170 * dosfns.h (x_set_title): Declare.
171
172 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
173 Remove unused variables.
174
175 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
176 variables.
177 (init_dosfns): Declare get_lim_data.
178 (system_process_attributes): Declare Fget_internal_run_time.
179
180 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
181 list to be consistent with menu.h.
182
183 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
184 warnings due to mixing of "char *" and "const char *".
185
186 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
187
188 Introduce a new comment style "c" flag.
189 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
190 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
191 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
192 (syntax_prefix_flag_p): New function.
193 (Fstring_to_syntax): Understand new "c" flag.
194 (Finternal_describe_syntax_value): Recognize new flag; use the
195 SYNTAX_FLAGS_* macros.
196 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
197 comment style to accomodate the new styles.
198 (back_comment, forw_comment, Fforward_comment, scan_lists)
199 (scan_sexps_forward): Update code to obey the new comment style flag.
200
201 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
202
203 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
204
205 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
206
207 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
208 first.
209 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
210
211 * gtkutil.h (xg_check_special_colors): Declare.
212
213 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
214 (xg_create_frame_widgets): Connect theme name changes to
215 style_changed_cb.
216
217 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
218 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
219 (x_term_init): Use char[] display_opt and name_opt instead of
220 string literal. file is const char*.
221
222 * xsmfns.c (NOSPLASH_OPT): Change to char[].
223 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
224 props. Free them at the end.
225
226 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
227
228 * xrdb.c (get_system_app): Make path const and use char *p for
229 non-const char.
230
231 * xmenu.c (Fx_popup_dialog): error_name is const char*.
232 (xmenu_show): error parameter is const char **. pane_string is const
233 char *.
234 (button_names): Is const char *.
235 (xdialog_show): error_name and pane_string is const.
236
237 * process.h (synch_process_death): Is const char*.
238
239 * w32menu.c (w32_menu_show):
240 * nsmenu.m (ns_menu_show): error parameter is const char **.
241
242 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
243 is const char **.
244
245 * menu.c (Fx_popup_menu): error_name is const.
246
247 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
248 with unsigned char and XtPointer with void *.
249
250 * gtkutil.h: Replace widget_value with struct _widget_value.
251 (enum button_type, struct _widget_value): Remove and use the one from
252 keyboard.h.
253
254 * gtkutil.c (get_utf8_string): Always return an allocated string.
255 Parameter is const.
256 (create_dialog, xg_create_one_menuitem, create_menus)
257 (xg_item_label_same_p, xg_update_menu_item): Free result from
258 get_utf8_string.
259 (xg_separator_p, xg_item_label_same_p): label is const.
260
261 * font.h (font_open_by_name): Make name const.
262
263 * font.c (font_open_by_name): Make name const.
264
265 * floatfns.c (matherr): Use a const char* variable for x->name.
266
267 * emacs.c (main): Pass char[] to putenv instead of literal.
268
269 * callproc.c (synch_process_death): Make const.
270 (Fcall_process): Make signame const.
271
272 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
273 (addDisplayItemWithImage): Use const char*.
274
275 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
276 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
277
278 * nsfont.m (ns_descriptor_to_entity): Use const char*.
279
280 * keyboard.h (_widget_value): name, value and key are const char*.
281
282 * unexmacosx.c (unexec_error): Use const char *.
283
284 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
285
286 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
287 (font_parse_name, font_open_by_name):
288 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
289 (font_parse_name, font_open_by_name): Remove const.
290
291 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
292
293 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
294 definition.
295
296 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
297 * m/amdx86-64.h: Likewise.
298 * m/arm.h: Likewise.
299 * m/hp800.h: Likewise.
300 * m/ia64.h: Likewise.
301 * m/ibmrs6000.h: Likewise.
302 * m/ibms390.h: Likewise.
303 * m/intel386.h: Likewise.
304 * m/iris4d.h: Likewise.
305 * m/m68k.h: Likewise.
306 * m/macppc.h: Likewise.
307 * m/mips.h: Likewise.
308 * m/sh3.h: Likewise.
309 * m/sparc.h: Likewise.
310 * m/template.h: Likewise.
311 * m/vax.h: Likewise.
312 * m/xtensa.h: Likewise.
313 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
314 WORDS_BIG_ENDIAN.
315 * lisp.h: Likewise.
316 * md5.c: Likewise.
317 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
318
319 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
320
321 Use const char* instead of char*.
322 Reduce the number of warnings with -Wwrite-strings.
323 * xrdb.c (get_environ_db, get_system_name):
324 * unexelf.c (find_section):
325 * term.c (string_cost, string_cost_one_line, per_line_cost)
326 (get_named_tty, init_tty):
327 * sysdep.c (sys_subshell):
328 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
329 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
330 * search.c (Freplace_match):
331 * process.c (Fmake_network_process, send_process, init_process):
332 * lread.c (Fload, init_lread):
333 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
334 * keyboard.c (parse_tool_bar_item, struct event_head):
335 * gtkutil.h (xg_get_font_name):
336 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
337 (make_widget_for_menu_item, make_menu_item, create_menus)
338 (xg_make_tool_item):
339 * font.c (parse_matrix, font_parse_name):
340 * floatfns.c (rounding_driver, float_error_fn_name):
341 * filelock.c (get_boot_time_1, lock_file_1):
342 * fileio.c (barf_or_query_if_file_exists, check_writable):
343 * editfns.c (get_system_name, get_operating_system_release)
344 (Fencode_time, Fset_time_zone_rule):
345 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
346 * buffer.c (defvar_per_buffer): Use const.
347
348 2010-08-08 Kenichi Handa <handa@m17n.org>
349
350 * charset.c: Include <stdlib.h>
351 (struct charset_sort_data): New struct.
352 (charset_compare): New function.
353 (Fsort_charsets): New funciton.
354 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
355
356 * coding.c (decode_coding_iso_2022): Fix checking of dimension
357 number in CTEXT extended segment.
358
359 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
360
361 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
362 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
363
364 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
365
366 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
367 (Fhash_table_size): Fix typos in docstrings.
368 (Fmake_hash_table): Doc fix.
369
370 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
371
372 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
373 Doc fix (bug#5625).
374
375 2010-08-08 Ken Brown <kbrown@cornell.edu>
376
377 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
378 the MSDOS definition.
379
380 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
381
382 Use const char* instead of char*.
383 * xterm.c (x_create_toolkit_scroll_bar):
384 * xfont.c (xfont_list_pattern):
385 * xfns.c (x_default_scroll_bar_color_parameter)
386 (xic_create_fontsetname, x_default_font_parameter)
387 (x_screen_planes):
388 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
389 (store_mode_line_string, decode_mode_spec, display_string):
390 * menu.c (digest_single_submenu):
391 * keymap.h (initial_define_key, initial_define_lispy_key):
392 * keymap.c (initial_define_key, initial_define_lispy_key):
393 * image.c (image_error, image_keyword):
394 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
395 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
396 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
397 (ftfont_list, ftfont_match):
398 * frame.c (frame_parm_table):
399 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
400 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
401 (font_add_log, font_deferred_log):
402 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
403 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
404 (font_add_log, font_deferred_log):
405 * emacs.c (argmatch):
406 * dispextern.h (struct it):
407 * coding.c (ENCODE_DESIGNATION):
408 * charset.c (define_charset_internal): Use const.
409
410 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
411
412 * xrdb.c: Remove include guard.
413 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
414 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
415 realloc->xrealloc instead of using #defines.
416
417 2010-08-08 Eli Zaretskii <eliz@gnu.org>
418
419 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
420 * editfns.c (Fline_beginning_position, Fline_end_position):
421 State in the doc strings that start and end of line are in the
422 logical order.
423
424 * xdisp.c (display_line): Move the handling of overlay arrow after
425 the call to find_row_edges. (Bug#6699)
426
427 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
428
429 * keyboard.c (command_loop_1):
430 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
431
432 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
433
434 * insdel.c (prepare_to_modify_buffer): Save active region text to
435 Vsaved_region_selection.
436
437 * xselect.c (QPRIMARY): Move to keyboard.c.
438
439 * keyboard.c (Vselect_active_regions): Move from simple.el.
440 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
441 (command_loop_1): Set window selection prior to deactivating the mark.
442
443 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
444
445 * alloc.c (lisp_malloc):
446 * buffer.c (set_buffer_internal, set_buffer_internal_1):
447 * charset.h (emacs_mule_charset):
448 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
449 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
450 (bitch_at_user):
451 * lisp.h (Fcheck_coding_system, Fget_text_property)
452 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
453 Remove duplicate declarations.
454
455 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
456
457 * process.c: Simplify include logic.
458
459 * keyboard.h (quit_char): Add declaration.
460 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
461 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
462 Add declarations.
463 * sysdep.c:
464 * w32.c: Remove the above declarations.
465
466 Remove extern declarations in .c files, .h files have them.
467 * xterm.c:
468 * xdisp.c:
469 * msdos.c:
470 * image.c:
471 * gtkutil.c:
472 * fileio.c:
473 * eval.c: Remove declarations.
474
475 * frame.c (frame_params): Make const.
476
477 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
478
479 * emacs.c (emacs_copyright, emacs_version): Make static.
480 (Vinitial_window_system, Vauto_save_list_file_name)
481 (Vinhibit_redisplay): Remove declarations.
482 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
483 for AIX.
484
485 Use const for some arrays and functions.
486 * xterm.h (xg_set_icon_from_xpm_data):
487 * xfns.c (xg_set_icon_from_xpm_data):
488 * term.c (fkeys):
489 * keyboard.c (lispy_accent_keys, lispy_function_keys)
490 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
491 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
492 (frame.c frame_parms):
493 * emacs-icon.h (gnu_xpm_bits):
494 * callint.c (callint_argfuns): Use const.
495
496 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
497
498 * sysdep.c: Move include term.h last of includes (Bug#6812).
499
500 2010-08-06 Eli Zaretskii <eliz@gnu.org>
501
502 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
503
504 * msdos.c (IT_display_cursor): Log cursor position on termscript.
505
506 * .gdbinit (pgx): Display the avoid_cursor_p flag.
507
508 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
509
510 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
511
512 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
513
514 * xterm.h (x_get_focus_frame): Declare.
515
516 * keyboard.h (poll_for_input_1): Unconditionally declare.
517
518 * nsterm.h (x_set_menu_bar_lines): Declare.
519
520 * window.c: Don't include menu.h, it depends on lots of other .h-files.
521
522 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
523
524 * window.c: Include menu.h.
525
526 * unexmacosx.c (print_region_list, print_regions)
527 (build_region_list, find_emacs_zone_regions)
528 (unexec_regions_merge, read_load_commands, dump_it)
529 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
530
531 * term.c: Check HAVE_SYS_IOCTL_H.
532
533 * sysdep.c: Check HAVE_TERM_H.
534
535 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
536
537 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
538 (ns_ring_bell, ns_defined_color, hide_hourglass)
539 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
540 Convert to ANSI C prototypes.
541 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
542 before code.
543
544 * nsterm.h : Include sysselect.h.
545 (x_sync, x_get_focus_frame, x_set_mouse_position)
546 (x_set_mouse_pixel_position, x_make_frame_visible)
547 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
548 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
549 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
550 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
551 Declare.
552
553 * nsmenu.m (popup_activated, name_is_separator)
554 (syms_of_nsmenu): Convert to ANSI C prototypes.
555 (runMenuAt): Prototypes and move declarations before code.
556
557 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
558
559 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
560 prototypes.
561
562 * nsfns.m (have_menus_p, ns_display_info_for_name)
563 (x_set_cursor_type, ns_appkit_version_str)
564 (ns_appkit_version_int, ns_do_applescript)
565 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
566 (syms_of_nsfns): Convert to ANSI C prototypes.
567
568 * menu.h (x_set_menu_bar_line): Declare.
569 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
570
571 * lisp.h (fmod_float): Declare.
572
573 * image.c (xpm_scan, xpm_make_color_table_v)
574 (xpm_put_color_table_v, xpm_get_color_table_v)
575 (xpm_make_color_table_h, xpm_put_color_table_h)
576 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
577 (xpm_load): Convert to ANSI C prototypes.
578
579 * emacs.c: Include nsterm.h if HAVE_NS.
580
581 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
582
583 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
584
585 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
586 subprocesses, only MSDOS does not define HAVE_SOCKETS.
587 (socket_options): Use const char* for name.
588
589 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
590
591 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
592
593 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
594 Don't declare xmalloc_widget_value and digest_single_submenu.
595
596 * w32font.c (Qlatin): Remove declaration.
597
598 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
599
600 * dired.c (compile_pattern): Restore declaration.
601
602 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
603
604 Remove extern declarations in .c files, .h files have them.
605 * data.c:
606 * dired.c:
607 * editfns.c:
608 * filelock.c:
609 * fns.c:
610 * font.c:
611 * fontset.c:
612 * frame.c:
613 * fringe.c:
614 * ftfont.c:
615 * gtkutil.c:
616 * indent.c:
617 * keyboard.c:
618 * keymap.c:
619 * lread.c:
620 * menu.c:
621 * print.c:
622 * search.c:
623 * sound.c:
624 * window.c:
625 * xdisp.c:
626 * xfaces.c:
627 * xfns.c:
628 * xfont.c:
629 * xftfont.c:
630 * xmenu.c:
631 * xterm.c: Remove declarations.
632
633 Cleanup syssignal.h.
634 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
635 (main_thread): Move down to remove #ifdef.
636 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
637 Remove conditional definition following unconditional ones.
638
639 * lisp.h: Remove HAVE_SHM code, unused.
640 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
641 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
642 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
643 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
644 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
645 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
646 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
647 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
648 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
649 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
650 (Qwindow_scroll_functions, Vafter_load_alist)
651 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
652 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
653 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
654 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
655 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
656 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
657 (initial_argv, last_nonmenu_event, load_in_progress)
658 (noninteractive_need_newline, scroll_margin): Add declarations.
659
660 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
661 declarations, menu.h has them.
662 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
663 (Vinput_method_function, Qinput_method_function)
664 (Qevent_symbol_element_mask, last_event_timestamp):
665 * dispextern.h (Voverflow_newline_into_fringe):
666 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
667 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
668 (syms_of_w32font, syms_of_nsfont):
669 * fontset.h (find_font_encoding, Qlatin):
670 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
671 (Vtool_bar_mode, set_frame_menubar):
672 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
673 * xterm.h (Qx_gtk_map_stock):
674 * keymap.h (meta_prefix_char): Add declarations.
675
676 * term.c: Remove dead code.
677
678 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
679 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
680 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
681 which is what was there before BSD_PGRPS was removed.
682
683 2010-08-05 Eli Zaretskii <eliz@gnu.org>
684
685 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
686
687 * unexcoff.c: Renamed from unexec.c.
688
689 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
692
693 2010-08-03 Johan Bockgård <bojohan@gnu.org>
694
695 * data.c (Flocal_variable_p): Handle variable aliases correctly.
696 (Bug#6744)
697
698 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
699
700 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
701 to TRUE if depth of screen is < 16.
702
703 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
704 USE_GTK_TOOLTIP.
705 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
706 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
707 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
708 USE_GTK_TOOLTIP.
709 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
710
711 * xterm.h (USE_GTK_TOOLTIP): New define.
712 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
713
714 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
715 to Control-D (Bug#6771).
716
717 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
718
719 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
720 Wording by Drew Adams <drew.adams@oracle.com>.
721
722 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
723
724 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
725 ttip_lbl.
726
727 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
728 calling gtk_widget_queue_draw.
729 (x_free_frame_resources): Call xg_free_frame_widgets.
730
731 * xfns.c (x_gtk_use_system_tooltips): New variable.
732 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
733 new gtkutil tooltip functions to show the tooltip.
734 (Fx_hide_tip): Call xg_hide_tooltip.
735 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
736
737 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
738 (xg_show_tooltip, xg_hide_tooltip): Declare.
739
740 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
741 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
742 New functions.
743 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
744 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
745 Remove code that is commented out.
746
747 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
748
749 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
750
751 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
752
753 * xselect.c (x_own_selection): Use list4.
754
755 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
756
757 * buffer.c (Qwindow): Do not define, already defined in data.c.
758 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
759
760 2010-07-29 Chad Brown <yandros@mit.edu>
761
762 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
763 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
764 * config.in: Undef HAVE_DIRENT_H.
765 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
766 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
767
768 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
769
770 Rename s/usg5-4.h -> s/usg5-4-common.h.
771 * s/usg5-4.h: Rename file to ...
772 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
773 * s/unixware.h:
774 * s/sol2-6.h:
775 * s/irix6-5.h: Update includes accordingly.
776
777 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
778
779 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
780
781 * xterm.h (struct x_output): Add toolbar_top_height,
782 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
783 Remove toolbar_height.
784 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
785 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
786 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
787 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
788
789 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
790
791 * xfns.c (x_set_tool_bar_position): New function.
792 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
793 (x_frame_parm_handlers): Add x_set_tool_bar_position.
794 (syms_of_xfns): If USE_GTK, provide move-toolbar.
795
796 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
797 and FRAME_TOOLBAR_LEFT_WIDTH.
798
799 * gtkutil.h (xg_change_toolbar_position): Declare.
800
801 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
802 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
803 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
804 (xg_create_frame_widgets): Create a hobox for placing widgets
805 vertically. Use gtk_box_pack_start.
806 (xg_height_or_width_changed): Renamed from xg_height_changed.
807 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
808 (xg_update_frame_menubar, free_frame_menubar): Change to
809 xg_height_or_width_changed.
810 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
811 size correctly. Remove hardcoded 4, instead use handlebox size -
812 toolbar size.
813 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
814 size correctly. Use handlebox size + toolbar size as additional size.
815 (xg_pack_tool_bar): POS is a new parameter.
816 Set orientation of tool bar based on pos.
817 Only make handlebox_widget if NULL.
818 Check if tool bar goes to vbox or hbox depending on pos.
819 (xg_update_tool_bar_sizes): New function.
820 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
821 height, call xg_update_tool_bar_sizes instead.
822 (free_frame_tool_bar): Remove from hbox or vbox depending on
823 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
824 (xg_change_toolbar_position): New function.
825
826 * frame.h (struct frame): Add tool_bar_position.
827 (Qbottom): Declare.
828
829 * frame.c (Qtool_bar_position): New variable.
830 (make_frame): Set tool_bar_position to Qtop.
831 (frame_parms): Add tool-bar-position.
832 (x_report_frame_params): Store tool_bar_position.
833 (x_set_fringe_width): Reset wm size hint after fringe changes.
834
835 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
836
837 Make lisp_time_argument declaration work on all systems.
838 * lisp.h (lisp_time_argument): Move declaration ...
839 * systime.h (lisp_time_argument): ... here
840 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
841
842 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
843
844 * vm-limit.c (POINTER): Add typedef for it.
845 (start_of_data): Change return type from POINTER to char *.
846
847 * frame.h (Qtty_color_mode): Move declaration out of ifdef
848 HAVE_WINDOW_SYSTEM.
849
850 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
851
852 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
853 Remove reference to __osf__, unused.
854
855 * mem-limits.h: Remove duplicated includes.
856 (NULL): Remove definition, unused.
857 (POINTER): Remove definition.
858 (start_of_data): Use char* in prototype, as the function
859 definition does.
860
861 Remove extern declarations from .c files, and them to .h files.
862 * keyboard.h (Qhelp_echo, waiting_for_input)
863 (input_available_clear_time, ignore_mouse_drag_p)
864 (Vdouble_click_time, real_this_command, Vthis_original_command):
865 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
866 (Voverriding_local_map_menu_flag):
867 * lisp.h (Qinteractive_form, use_file_dialog)
868 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
869 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
870 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
871 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
872 (Qfunction, debug_on_next_call, Qfield)
873 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
874 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
875 (Qfile_directory_p, Qinsert_file_contents)
876 (Qcompletion_ignore_case, Qcompletion_ignore_case)
877 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
878 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
879 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
880 (Qminibuffer_prompt)
881 (Vtemporary_file_directory,char_ins_del_vector, Qface):
882 * xterm.h (gray_bitmap_width, gray_bitmap_height)
883 (gray_bitmap_bits, xic_create_fontsetname):
884 * coding.h (Vtranslation_table_for_input): Add extern declarations.
885
886 * xsmfns.c (Vuser_login_name):
887 * xrdb.c (Vdouble_click_time):
888 * xfaces.c (xic_create_fontsetname):
889 * w32select.c (waiting_for_input):
890 * print.c (minibuffer_auto_raise):
891 * msdos.c (Qhelp_echo):
892 * macros.c (real_this_command):
893 * keymap.c (Voverriding_local_map):
894 * xterm.c (poll_for_input_1, gray_bitmap_width)
895 (gray_bitmap_height, gray_bitmap_bits;
896 * xmenu.c ( Voverriding_local_map)
897 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
898 (use_file_dialog, Xt_app_con):
899 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
900 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
901 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
902 (Qtool_bar_lines, ignore_mouse_drag_p):
903 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
904 (Qrear_nonsticky, nconc2):
905 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
906 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
907 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
908 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
909 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
910 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
911 (gc_in_progress):
912 * doc.c (Voverriding_local_map, Qremap):
913 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
914 (Vcompletion_regexp_list):
915 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
916 (Qcompletion_ignore_case):
917 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
918 (Vhistory_length, Vthis_original_command, real_this_command)
919 (Qface, Qminibuffer_prompt, history_delete_duplicates):
920 * image.c (Qrisky_local_variable):
921 * fontset.c (QCname):
922 * fns.c (minibuffer_auto_raise, QCname):
923 * dispnew.c (char_ins_del_cost):
924 * composite.c (font_fill_lglyph_metrics):
925 * cmds.c (Qface, Vtranslation_table_for_input):
926 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
927 * ccl.c (charset_unicode):
928 * callproc.c (Vtemporary_file_directory):
929 * buffer.c (emacs_strerror): Remove extern declarations.
930
931 * data.c (Qwindow): Make non-static, used from other files too.
932 * frame.c (validate_x_resource_name): Remove shadow definition for i.
933
934 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
935 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
936 * s/usg5-4.h (COFF):
937 * s/template.h:
938 * s/msdos.h (COFF, NO_REMAP):
939 * s/ms-w32.h (NO_REMAP):
940 * s/hpux10-20.h (NO_REMAP):
941 * m/sparc.h (SEGMENT_MASK):
942 * m/m68k.h (NO_REMAP):
943 * m/intel386.h (SEGMENT_MASK):
944 * m/arm.h (NO_REMAP):
945 * m/alpha.h (COFF):
946 * m/template.h: Remove references to unused defines.
947
948 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
949
950 * xsettings.c (Ftool_bar_get_system_style): Also check for
951 Qtext_image_horiz.
952
953 * xdisp.c (Qtext_image_horiz): Define.
954 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
955 to documentation of tool-bar-style.
956
957 * lisp.h (Qtext_image_horiz): Declare.
958
959 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
960 style text_image_horiz.
961
962 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
963
964 * emacs.c (Fkill_emacs): Remove return statement.
965
966 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
967 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
968 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
969 local extern declarations.
970
971 * xmenu.c: Do not included lwlib.h, not needed.
972
973 * m/iris4d.h (XUINT, XSET): Remove, not needed.
974
975 * process.c: Move definitions earlier to minimize #ifdefs.
976
977 * xterm.h (x_get_customization_string, x_load_resources)
978 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
979 (x_check_errors, x_property_data_to_lisp, defined_color)
980 (xic_set_xfontset, x_defined_color): Use const.
981
982 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
983 (x_text_icon, x_check_errors, x_connection_closed): Use const.
984
985 * xselect.c (selection_data_to_lisp_data)
986 (x_property_data_to_lisp):
987 * xrdb.c (x_get_string_resource, file_p)
988 (x_get_customization_string, magic_file_p, search_magic_path)
989 (get_system_app, get_user_app, x_load_resources, x_get_resource)
990 (x_get_string_resource): Use const.
991
992 * xfns.c: Include xlwmenu.h when USE_LUCID.
993 (x_defined_color, xic_set_xfontset): Use const.
994 (Fx_hide_tip): Remove local extern declaration.
995
996 * xfaces.c (Qmouse_face): Remove declaration.
997 (face_color_gray_p, tty_defined_color, defined_color)
998 (face_color_gray_p, face_color_supported_p): Add const.
999
1000 * xdisp.c (do_mouse_tracking): Remove declaration.
1001 (add_to_log): Use const.
1002
1003 * minibuf.c (Qmouse_face): Remove declaration.
1004
1005 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1006
1007 * keyboard.h (do_mouse_tracking): Add declaration.
1008
1009 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1010 (QCdata, QCtype, Qcenter): Remove declarations.
1011
1012 * frame.c (x_get_resource_string, x_get_string_resource)
1013 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1014 (x_default_parameter): Use const.
1015
1016 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1017 (QCheight, QCsize, QCname): Remove declarations.
1018
1019 * emacs.c (main): Remove local extern declaration.
1020
1021 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1022 declarations.
1023
1024 * dispnew.c: Remove duplicate #include <unistd.h>.
1025 (update_window, update_frame_1, init_display): Remove local extern
1026 declarations.
1027
1028 * dispextern.h (add_to_log): Remove declaration.
1029 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1030 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1031
1032 * dired.c (scmp): Add const.
1033 (directory_files_internal): Remove local extern declaration.
1034
1035 * data.c (Finteractive_form): Use const.
1036
1037 * composite.c (syms_of_composite): Remove local extern declarations.
1038
1039 * charset.c (add_to_log): Remove declaration.
1040
1041 * character.c (strwidth, parse_str_to_multibyte): Add const.
1042
1043 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1044
1045 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1046
1047 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1048 (Lisp_Subr): Make doc and intspec constant.
1049 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1050 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1051 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1052 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1053 (display_arg): Add declarations.
1054
1055 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1056
1057 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1058
1059 * window.c (Fwindow_height): Doc fix (bug#6518).
1060
1061 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
1062
1063 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1064
1065 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1066
1067 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1068 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1069 functions.
1070
1071 * frame.h (Qtty_color_mode): Add declaration.
1072
1073 * lisp.h (Ftop_level, Fexit_recursive_edit)
1074 (Fabort_recursive_edit): Mark as NO_RETURN.
1075
1076 2010-07-26 Kenichi Handa <handa@m17n.org>
1077
1078 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1079 number of glyphs gets smaller than the original length. (Bug#6621)
1080
1081 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
1082
1083 * lread.c (unreadpure, mapatoms_1): Make static.
1084
1085 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1086
1087 * terminfo.c (tparam): Fix prototype of tparm.
1088
1089 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1090
1091 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1092 find start of text segment.
1093 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1094 is defined.
1095
1096 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1097
1098 2010-07-25 Ken Brown <kbrown@cornell.edu>
1099
1100 * vm-limit.c (check_memory_limits): Fix previous change;
1101 accidentally reverted an earlier change.
1102
1103 2010-07-25 Ken Brown <kbrown@cornell.edu>
1104
1105 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1106 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1107
1108 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1109
1110 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1111 * dired.c (opendir, readdir): Fix prototypes.
1112 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1113 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1114 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1115 (telldir): Remove declaration.
1116 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1117 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1118 * syssignal.h (strsignal): Fix prototype.
1119 * term.c (tparam): Fix prototype.
1120 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1121 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1122 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1123 and __morecore.
1124 * w32gui.h (XParseGeometry): Fix prototype.
1125 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1126 * w32term.c (my_set_focus): Declare inside #if 0.
1127 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1128 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1129 (drain_message_queue, get_next_msg, post_msg, parse_button)
1130 (ClipboardSequence_Proc): Fix prototypes.
1131 (wait_for_sync): Remove declaration.
1132
1133 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
1134
1135 * w32fns.c (w32_to_x_color): Remove, unused.
1136
1137 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1138
1139 * lisp.h: Remove leftover P_.
1140
1141 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1142
1143 * ecrt0.c, unexalpha.c: Remove files, unused.
1144
1145 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1146
1147 * cmds.c (internal_self_insert): Make static.
1148 * lisp.h (internal_self_insert): Remove declaration.
1149
1150 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1151
1152 * alloc.c (free_float):
1153 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1154 * frame.c (delete_frame_handler):
1155 * ralloc.c (reorder_bloc):
1156 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1157 Remove unused static functions.
1158
1159 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1160 it is called only from NS code.
1161
1162 * w32term.c (my_set_focus): #ifdef away; it is called only from
1163 "#ifdef 0" code.
1164
1165 * w32fns.c (x_edge_detection):
1166 * xfaces.c (may_use_scalable_font_p):
1167 Remove obsolete static declarations.
1168
1169 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1170
1171 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1172 (emacs_blocked_realloc, uninterrupt_malloc):
1173 * fringe.c (w32_reset_fringes):
1174 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1175 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1176 * sound.c (be2hs, do_play_sound):
1177 * vm-limit.c (get_lim_data, ret_lim_data):
1178 * w32term.c (x_free_frame_resources):
1179 * xfaces.c (x_create_gc, x_free_gc):
1180 Convert definitions to standard C.
1181
1182 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1183
1184 * eval.c (Feval, Ffuncall): Use the new names.
1185
1186 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1187 (DEFUN): Add braces around the union initialisation and use ## to
1188 specify the right union alternative and avoid a cast.
1189
1190 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1191
1192 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1193
1194 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1195
1196 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1197
1198 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1199
1200 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1201 is related to the menu bar (Bug#6499).
1202 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1203
1204 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1205
1206 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1207
1208 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1209
1210 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1211 i.e. don't put back ButtonRelease (Bug#6608).
1212
1213 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1214 instead of Window. Call xg_event_is_for_menubar when
1215 USE_GTK (Bug#6499).
1216
1217 * gtkutil.h (xg_event_is_for_menubar): Declare.
1218
1219 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1220
1221 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1222
1223 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1224 when it's the same as the old foreground. (Bug#6609)
1225
1226 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1227
1228 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1229 widget is non-null (Bug#6645).
1230
1231 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1232
1233 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1234 Convert old-style definition.
1235
1236 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1237 timestamp argument.
1238
1239 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1240
1241 * fringe.c (update_window_fringes): Restore mistakenly reverted
1242 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1243
1244 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1245
1246 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1247 (SET_SAVED_KEY_EVENT): Remove (not used).
1248 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1249 remove size parameter.
1250 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1251 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1252 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1253 ButtonRelease.
1254 (x_set_window_size_1): scroll_bar_actual_width is always
1255 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1256
1257 * xdisp.c (pending_menu_activation): Remove extern declaration.
1258 (prepare_menu_bars): Remove setting of pending_menu_activation.
1259
1260 * xmenu.c (pending_menu_activation): Remove.
1261 (x_activate_menubar): Set popup_activated_flag for Xt also.
1262 Remove setting of pending_menu_activation.
1263 (set_frame_menubar): Remove check of pending_menu_activation.
1264 Declare menubar_size before code. Correct spelling in comment.
1265
1266 2010-07-14 Kenichi Handa <handa@m17n.org>
1267
1268 * font.c (font_open_entity): Cancel previous change.
1269 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1270
1271 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1272
1273 Remove subprocesses #ifdefs.
1274 * process.c <inhibit_sentinels>: Move to the common part.
1275 (Fwaiting_for_user_input_p): Move to the common part; return nil
1276 if async subprocesses aren't supported.
1277 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1278 MS-DOS. Remove "#ifdef subprocesses".
1279 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1280 (gettimeofday): Remove "#ifdef subprocesses".
1281 (wait_without_blocking): Remove function.
1282 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1283 Remove "#ifdef subprocesses".
1284 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1285 compiled on MS-DOS.
1286 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1287 wait_for_termination on MS-DOS.
1288 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1289 initialization of inhibit_sentinels.
1290 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1291 subprocesses" conditional.
1292 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1293 wait_for_termination, since `buffer' cannot be an integer when
1294 async subprocesses are not supported
1295 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1296 for ifdefing away the call to Fprocess_status.
1297
1298 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1299 away the entire body of the function.
1300
1301 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1302
1303 Remove subprocesses #ifdefs from term.c.
1304 * process.c (add_keyboard_wait_descriptor)
1305 (delete_keyboard_wait_descriptor): Move to common section, do
1306 nothing when subprocesses is not defined.
1307 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1308 Remove subprocesses #ifdefs.
1309
1310 Convert maybe_fatal to standard C.
1311 * lisp.h (verror): Declare.
1312 * eval.c (verror): New function containing the code from ...
1313 (error): ... this. Call verror.
1314 * term.c (vfatal): New function containing the code from ...
1315 (fatal): ... this. Call vfatal.
1316 (maybe_fatal): Convert to standard C, use variable number of
1317 arguments. Declare as non-return.
1318 (init_tty): Fix maybe_fatal call.
1319
1320 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1321
1322 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1323 (_scroll_bar_note_movement): Convert definitions to standard C.
1324 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1325 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1326
1327 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1328
1329 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1330 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1331 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1332 (xaw_jump_callback, xaw_scroll_callback)
1333 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1334 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1335 definitions to standard C.
1336 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1337 (popup_activate_callback, popup_deactivate_callback)
1338 (menu_highlight_callback, menubar_selection_callback)
1339 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1340 (free_frame_menubar, popup_selection_callback, as)
1341 (create_and_show_popup_menu, dialog_selection_callback)
1342 (create_and_show_dialog):
1343 * xfns.c (hack_wm_protocols, x_window):
1344 * xfaces.c (x_update_menu_appearance):
1345 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1346 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1347 (set_frame_size, update_wm_hints, setup_frame_gcs)
1348 (update_various_frame_slots, update_from_various_frame_slots)
1349 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1350 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1351 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1352
1353 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1354
1355 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
1356
1357 2010-07-12 Eli Zaretskii <eliz@gnu.org>
1358
1359 * process.c (setup_process_coding_systems): Move to the part
1360 shared by non-subprocesses systems, and make its body empty when
1361 subprocesses is not defined.
1362 (close_process_descs): Move to the part shared by non-subprocesses
1363 systems.
1364 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1365 ANSI C.
1366
1367 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1368
1369 * editfns.c (transpose_markers): Convert old-style definition.
1370 * emacs.c (abort, shut_down_emacs, fixup_locale)
1371 (synchronize_system_time_locale)
1372 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1373 * floatfns.c (extract_float, matherr, init_floatfns)
1374 (syms_of_floatfns): Likewise.
1375 * fns.c (make_hash_table): Likewise.
1376 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1377 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1378 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1379 (ftfont_variation_glyphs): Likewise.
1380 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1381 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1382 * lread.c (read_filtered_event): Likewise.
1383 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1384 * process.c (wait_reading_process_output): Likewise.
1385 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1386 * search.c (search_buffer, boyer_moore): Likewise.
1387 * syntax.c (scan_sexps_forward): Likewise.
1388 * xdisp.c (try_scrolling): Likewise.
1389 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1390 (face_at_string_position): Likewise.
1391 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1392 * xselect.c (x_get_window_property, receive_incremental_selection)
1393 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1394 Likewise.
1395 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1396
1397 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1398
1399 * callproc.c (child_setup): Remove subprocesses conditional.
1400 Remove code dealing with SET_EMACS_PRIORITY, unused.
1401
1402 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
1403 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1404
1405 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1406 (__do_global_dtors, __main): Use void in definition.
1407 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1408 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1409 the only users from ...
1410 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1411 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1412 (HAVE_VOLATILE): Remove, unused.
1413
1414 Convert more function definitions to standard C.
1415 * xdisp.c (window_box_edges, handle_single_display_spec)
1416 (display_string): Convert definition to standard C.
1417 * scroll.c (do_direct_scrolling, scrolling_1):
1418 * dispnew.c (allocate_matrices_for_frame_redisplay)
1419 (mirrored_line_dance):
1420 * coding.c (code_convert_string):
1421 * charset.c (map_charset_chars):
1422 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1423 (Fregister_ccl_program, Fregister_code_conversion_map):
1424 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1425 (head_table): Make static and const.
1426
1427 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1428
1429 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1430 (PROFILING_LDFLAGS): Set from substitution.
1431 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1432 CFLAGS last.
1433
1434 2010-07-12 Kenichi Handa <handa@m17n.org>
1435
1436 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1437 (shortlisp): Likewise.
1438
1439 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1440
1441 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1442 of FONT_ENTITY_INDEX.
1443 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1444 property, get the property value dynamically.
1445 (Ffont_put): Accept font-entity and font-object too.
1446 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1447 return value changed.
1448 (syms_of_font): Adjusted for the above change.
1449
1450 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1451
1452 * blockinput.h: Remove obsolete comment.
1453
1454 * lisp.h: Include <stddef.h>.
1455 (OFFSETOF): Don't define.
1456 (VECSIZE): Use offsetof instead of OFFSETOF.
1457 (PSEUDOVECSIZE): Likewise.
1458 * process.c (conv_sockaddr_to_lisp): Likewise.
1459 * alloc.c: Don't include <stddef.h>.
1460 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1461
1462 * process.c: Remove obsolete comment.
1463
1464 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1465
1466 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1467
1468 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1469
1470 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1471 index, rindex.
1472 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1473 * editfns.c (Fuser_full_name, Fformat): Likewise.
1474 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1475 * fileio.c (Ffile_symlink_p): Likewise.
1476 * filelock.c (current_lock_owner): Likewise.
1477 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1478 * fontset.c (fontset_pattern_regexp): Likewise.
1479 * lread.c (read1): Likewise.
1480 * sysdep.c (init_system_name): Likewise.
1481 * xfns.c (select_visual): Likewise.
1482 * s/hpux10-20.h (index, rindex): Don't define.
1483 * s/ms-w32.h (index): Likewise.
1484 * s/usg5-4.h: Likewise.
1485
1486 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1487
1488 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1489 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1490 (egetenv): Likewise.
1491 * doprnt.c (doprnt): Likewise.
1492 * editfns.c (set_time_zone_rule, format2): Likewise.
1493 * emacs.c (decode_env_path): Likewise.
1494 * eval.c (signal_error, error): Likewise.
1495 * insdel.c (replace_range_2): Likewise.
1496 * keyboard.c (cmd_error_internal): Likewise.
1497 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1498 * print.c (write_string, write_string_1, print_error_message):
1499 Likewise.
1500 * vm-limit.c (warn_function, memory_warnings): Likewise.
1501 * xdisp.c (message1, message1_nolog, message_with_string)
1502 (vmessage, message, message_nolog): Likewise.
1503 * emacs.c: Remove duplicate declaration.
1504 * keyboard.h: Likewise.
1505 * lisp.h: Update prototypes.
1506
1507 * eval.c: Fix indentation problem.
1508
1509 * keyboard.c: Include "process.h"
1510
1511 * eval.c: Remove obsolete noinline declaration.
1512 * fns.c: Likewise.
1513
1514 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1515
1516 * doprnt.c (doprnt): Take a va_list argument instead of count and
1517 pointer.
1518 * eval.c (error): Change to a standard-C variadic function.
1519 * xdisp.c (vmessage): Renamed from message, made static, and
1520 changed to take a va_list argument.
1521 (message): New variadic wrapper.
1522 (message_nolog): Now a variadic function, calling vmessage.
1523 * lisp.h: Include stdarg.h for va_list.
1524 (doprnt, error, message, message_nolog): Decls updated.
1525
1526 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1527
1528 * process.c (syms_of_process) <delete-exited-processes>: Define
1529 even if !subprocesses.
1530 (delete_exited_processes): Ditto.
1531
1532 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1533 (delete_exited_processes): Don't define.
1534
1535 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1536
1537 * frame.c (make_frame): Initialize menu_bar_lines and
1538 tool_bar_lines members.
1539 (make_initial_frame, make_terminal_frame): Initialize
1540 menu_bar_lines using value of menu-bar-mode.
1541
1542 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1543
1544 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1545
1546 * process.c: Reshuffle #include's. Condition some of the global
1547 and static variables on `subprocesses'.
1548 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1549 Leave only one implementation.
1550 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1551 (kill_buffer_processes, Flist_system_processes)
1552 (Fprocess_attributes, init_process, syms_of_process): Unify the
1553 implementations for with subprocesses and without them.
1554
1555 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1556
1557 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1558 correct size for Motif.
1559 (free_frame_menubar): Call x_set_window_size to update frame size.
1560
1561 * xfns.c (x_window): Set borderWidth to 0 for pane and
1562 EmacsFrame. Frame size calculation is wrong otherwise.
1563
1564 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1565
1566 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1567 allows to suppress errors when polling in Emacs' main loop.
1568 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1569 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1570 (Fdbus_method_error_internal, Fdbus_send_signal)
1571 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1572 (Fdbus_register_method): Use it. (Bug#6579)
1573
1574 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1575
1576 * alloc.c: Convert DEFUNs to standard C.
1577 * buffer.c:
1578 * bytecode.c:
1579 * callint.c:
1580 * callproc.c:
1581 * casefiddle.c:
1582 * casetab.c:
1583 * category.c:
1584 * character.c:
1585 * charset.c:
1586 * chartab.c:
1587 * cmds.c:
1588 * coding.c:
1589 * composite.c:
1590 * data.c:
1591 * dbusbind.c:
1592 * dired.c:
1593 * dispnew.c:
1594 * doc.c:
1595 * dosfns.c:
1596 * editfns.c:
1597 * emacs.c:
1598 * eval.c:
1599 * fileio.c:
1600 * filelock.c:
1601 * floatfns.c:
1602 * fns.c:
1603 * font.c:
1604 * fontset.c:
1605 * frame.c:
1606 * fringe.c:
1607 * image.c:
1608 * indent.c:
1609 * insdel.c:
1610 * keyboard.c:
1611 * keymap.c:
1612 * lread.c:
1613 * macros.c:
1614 * marker.c:
1615 * menu.c:
1616 * minibuf.c:
1617 * msdos.c:
1618 * nsfns.m:
1619 * nsmenu.m:
1620 * nsselect.m:
1621 * print.c:
1622 * process.c:
1623 * search.c:
1624 * sound.c:
1625 * syntax.c:
1626 * term.c:
1627 * terminal.c:
1628 * textprop.c:
1629 * undo.c:
1630 * w16select.c:
1631 * w32console.c:
1632 * w32fns.c:
1633 * w32font.c:
1634 * w32menu.c:
1635 * w32proc.c:
1636 * w32select.c:
1637 * window.c:
1638 * xdisp.c:
1639 * xfaces.c:
1640 * xfns.c:
1641 * xmenu.c:
1642 * xselect.c:
1643 * xsettings.c:
1644 * xsmfns.c: Likewise.
1645
1646 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1647
1648 * process.c (kbd_is_on_hold, hold_keyboard_input)
1649 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1650
1651 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1652
1653 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1654 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1655 unless USE_LUCID.
1656
1657 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1658
1659 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1660 declaration.
1661
1662 Clean up include guards.
1663 * tparam.c: Remove include guards for config.h, string.h and code
1664 that assumes #ifndef emacs.
1665 * termcap.c:
1666 * unexalpha.c:
1667 * sysdep.c:
1668 * filemode.c:
1669 * filelock.c:
1670 * bidi.c: Likewise.
1671
1672 Remove prefix-args.c
1673 * prefix-args.c: Remove file.
1674 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1675 * Makefile.in (temacs${EXEEXT}): Remove references to
1676 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1677 (mostlyclean): Remove reference to prefix-args.
1678 (prefix-args): Remove.
1679
1680 Simplify cstart_of_data, start_of_code and related code.
1681 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1682 (start_of_data): Merge into start_of_data function.
1683 * sysdep.c (start_of_text): Remove. Move simplified versions of
1684 it in the only users: unexaix.c and unexec.c.
1685 (read_input_waiting): Remove local declaration of quit_char.
1686 (start, etext): Remove declarations.
1687 (start_of_data): Merge with the version in mem-limits.h and move
1688 to vm-limits.c.
1689 * vm-limit.c (start_of_data): Merged and simplified version of the
1690 code formerly in mem-limits.h and sysdep.c.
1691 * unexec.c (start): New declaration, moved from sysdep.c.
1692 (start_of_text): Simplified version of the code formerly in sysdep.c.
1693 * unexaix.c (start_of_text): Simplified version of the code
1694 formerly in sysdep.c.
1695 * m/alpha.h (HAVE_TEXT_START): Remove.
1696 (TEXT_START): Move ...
1697 * unexalpha.c (TEXT_START): ... here.
1698 * s/hpux10-20.h (TEXT_START): Remove.
1699 * s/darwin.h (TEXT_START):
1700 * m/mips.h (TEXT_START):
1701 * m/macppc.h (HAVE_TEXT_START):
1702 * m/m68k.h (TEXT_START):
1703 * m/iris4d.h (TEXT_START):
1704 * m/intel386.h (TEXT_START):
1705 * m/ibmrs6000.h (TEXT_START):
1706 * m/ia64.h (HAVE_TEXT_START):
1707 * s/msdos.h (TEXT_START): Likewise.
1708
1709 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1710
1711 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1712 (overrun_check_free, xstrdup, allocate_string)
1713 (allocate_string_data, compact_small_strings, Fmake_string)
1714 (make_unibyte_string, make_multibyte_string)
1715 (make_string_from_bytes, make_specified_string, make_float)
1716 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1717 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1718 memcpy, memmove, memset, memcmp.
1719 * atimer.c (start_atimer, set_alarm): Likewise.
1720 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1721 (mmap_realloc, init_buffer_once): Likewise.
1722 * callint.c (Fcall_interactively): Likewise.
1723 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1724 (getenv_internal_1): Likewise.
1725 * casefiddle.c (casify_object): Likewise.
1726 * ccl.c (ccl_driver): Likewise.
1727 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1728 * charset.c (load_charset_map_from_file)
1729 (load_charset_map_from_file, load_charset_map_from_vector)
1730 (Fdefine_charset_internal): Likewise.
1731 * cm.c (Wcm_clear): Likewise.
1732 * coding.c (decode_eol, decode_coding_object)
1733 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1734 * data.c (Faset): Likewise.
1735 * dired.c (directory_files_internal, file_name_completion_stat):
1736 Likewise.
1737 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1738 (clear_glyph_row, copy_row_except_pointers)
1739 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1740 (save_current_matrix, restore_current_matrix)
1741 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1742 (mirror_line_dance, scrolling_window): Likewise.
1743 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1744 Likewise.
1745 * doprnt.c (doprnt): Likewise.
1746 * editfns.c (Fuser_full_name, make_buffer_string_both)
1747 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1748 * emacs.c (sort_args): Likewise.
1749 * eval.c (Fapply, Ffuncall): Likewise.
1750 * fileio.c (Ffile_name_directory, make_temp_name)
1751 (Fexpand_file_name, search_embedded_absfilename)
1752 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1753 (auto_save_error): Likewise.
1754 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1755 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1756 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1757 (Fmake_hash_table): Likewise.
1758 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1759 * ftfont.c (ftfont_text_extents): Likewise.
1760 * getloadavg.c (getloadavg): Likewise.
1761 * image.c (define_image_type, make_image, make_image_cache)
1762 (x_create_x_image_and_pixmap, xbm_image_p)
1763 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1764 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1765 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1766 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1767 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1768 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1769 Likewise.
1770 * indent.c (scan_for_column, compute_motion): Likewise.
1771 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1772 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1773 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1774 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1775 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1776 (store_user_signal_events, menu_bar_items, tool_bar_items)
1777 (process_tool_bar_item, append_tool_bar_item)
1778 (read_char_minibuf_menu_prompt, read_key_sequence)
1779 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1780 Likewise.
1781 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1782 Likewise.
1783 * lisp.h (STRING_COPYIN): Likewise.
1784 * lread.c (Fload, read1, oblookup): Likewise.
1785 * msdos.c (Frecent_doskeys): Likewise.
1786 * nsfns.m (Fx_create_frame): Likewise.
1787 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1788 Likewise.
1789 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1790 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1791 Likewise.
1792 * nsmenu.m (ns_update_menubar): Likewise.
1793 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1794 * print.c (print_unwind, printchar, strout, print_string)
1795 (print_error_message): Likewise.
1796 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1797 (Fmake_network_process, Fnetwork_interface_list)
1798 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1799 (init_process): Likewise.
1800 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1801 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1802 Likewise.
1803 * scroll.c (do_scrolling, do_direct_scrolling)
1804 (scrolling_max_lines_saved): Likewise.
1805 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1806 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1807 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1808 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1809 (emacs_set_tty): Likewise.
1810 * term.c (encode_terminal_code, calculate_costs)
1811 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1812 Likewise.
1813 * termcap.c (tgetst1, gobble_line): Likewise.
1814 * termhooks.h (EVENT_INIT): Likewise.
1815 * tparam.c (tparam1): Likewise.
1816 * unexalpha.c (unexec): Likewise.
1817 * unexec.c (write_segment): Likewise.
1818 * unexmacosx.c (unexec_write_zero): Likewise.
1819 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1820 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1821 * w32font.c (w32font_list_family, w32font_text_extents)
1822 (w32font_list_internal, w32font_match_internal)
1823 (w32font_open_internal, compute_metrics, Fx_select_font):
1824 Likewise.
1825 * w32menu.c (set_frame_menubar, add_menu_item)
1826 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1827 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1828 * w32uniscribe.c (uniscribe_list_family): Likewise.
1829 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1830 * window.c (make_window, replace_window, set_window_buffer)
1831 (Fsplit_window): Likewise.
1832 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1833 (add_to_log, message3, x_consider_frame_title)
1834 (append_space_for_newline, extend_face_to_end_of_line)
1835 (decode_mode_spec_coding, init_glyph_string): Likewise.
1836 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1837 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1838 (face_attr_equal_p, make_realized_face, make_face_cache)
1839 (free_realized_faces, lookup_named_face, smaller_face)
1840 (face_with_height, lookup_derived_face)
1841 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1842 (Finternal_set_font_selection_order, realize_default_face)
1843 (compute_char_face, face_at_buffer_position)
1844 (face_for_overlay_string, face_at_string_position, merge_faces):
1845 Likewise.
1846 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1847 (Fx_window_property, x_create_tip_frame)
1848 (Fx_backspace_delete_keys_p): Likewise.
1849 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1850 (xfont_text_extents): Likewise.
1851 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1852 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1853 * xselect.c (x_queue_event, x_get_window_property)
1854 (receive_incremental_selection): Likewise.
1855 * xsmfns.c (x_session_check_input): Likewise.
1856 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1857 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1858 Likewise.
1859 * character.h (BCOPY_SHORT): Removed.
1860 * config.in: Regenerate.
1861 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1862 * emacs.c (main) [PROFILING]: Don't declare
1863 dump_opcode_frequencies.
1864 * lisp.h (safe_bcopy): Remove declaration.
1865 (memset) [!HAVE_MEMSET]: Declare.
1866 (memcpy) [!HAVE_MEMCPY]: Likewise.
1867 (memmove) [!HAVE_MEMMOVE]: Likewise.
1868 (memcmp) [!HAVE_MEMCMP]: Likewise.
1869 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1870 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1871 Don't define.
1872 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1873 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1874 (BCOPY_DOWNWARD_SAFE): Don't define.
1875 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1876 (memcpy) [!HAVE_MEMCPY]: Define.
1877 (memmove) [!HAVE_MEMMOVE]: Define.
1878 (memcmp) [!HAVE_MEMCMP]: Define.
1879
1880 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1881
1882 * process.c (kbd_is_on_hold): New variable.
1883 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1884 New functions.
1885 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1886 select on empty input mask.
1887 (init_process): Initialize kbd_is_on_hold to 0.
1888
1889 * process.h (hold_keyboard_input, unhold_keyboard_input)
1890 (kbd_on_hold_p): Declare.
1891
1892 * keyboard.c (input_available_signal): Declare.
1893 (kbd_buffer_nr_stored): New function.
1894 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1895 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1896 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1897 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1898 (tty_read_avail_input): If input is on hold, return.
1899 Don't read more that free slots in kbd_buffer (Bug#6571).
1900
1901 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1902
1903 * msdos.h:
1904 * msdos.c:
1905 * dosfns.c:
1906 * w16select.c: Convert function definitions to ANSI C.
1907
1908 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1909 Remove unused prototypes.
1910
1911 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1912
1913 * coding.c, sysdep.c: Convert some more functions to standard C.
1914
1915 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1916
1917 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1918 (encode_coding_object): Use SPECPDL_INDEX.
1919 (syms_of_coding): Use DOS_NT.
1920
1921 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1922
1923 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1924
1925 Make the function member of Lisp_Subr use standard C prototypes.
1926 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1927 (DECL_ALIGN): Add a cast for the function.
1928 * eval.c (Feval, Ffuncall): Use the proper type for each type
1929 function call.
1930
1931 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1932
1933 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1934 fringe face id, so face-remapping-alist works (Bug#6091).
1935
1936 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1937
1938 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1939 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1940 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1941
1942 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1943
1944 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1945 * lisp.h: Declare x_get_keysym_name.
1946 * keyboard.c (modify_event_symbol): Don't declare
1947 x_get_keysym_name here.
1948
1949 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1950
1951 * ecrt0.c: Revert conversion to standard C.
1952
1953 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1954
1955 * vm-limit.c (memory_warnings):
1956 * keyboard.c (modify_event_symbol):
1957 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1958 (round2, emacs_rint):
1959 * process.c (send_process, old_sigpipe): Convert function
1960 definitions and declarations to standard C.
1961
1962 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1963
1964 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1965 * xdisp.c: Convert function definitions to standard C.
1966
1967 * cm.c (cmputc): Arg C is now int, not char.
1968 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1969
1970 2010-07-05 James Cloos <cloos@jhcloos.com>
1971
1972 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1973
1974 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1975 _NET_WM_ICON_NAME atoms.
1976
1977 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1978 and _NET_WM_ICON_NAME properties, too, matching what is
1979 done in the Gtk+ case.
1980
1981 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1982
1983 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1984
1985 * xsmfns.c (SSDATA): New macro.
1986 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1987 passed to strlen/strcpy/strcat.
1988 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1989 7:th arg to XChangeProperty to (unsigned char *)
1990
1991 * xsettings.c (something_changedCB, parse_settings)
1992 (apply_xft_settings): Reformat prototype.
1993 (something_changedCB, init_gconf): Remove unused variable i.
1994 (read_settings): Remove unused variable long_len.
1995
1996 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1997 (xg_get_image_for_pixmap, create_dialog)
1998 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1999 (menuitem_highlight_callback, make_menu_item)
2000 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2001 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2002 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2003 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2004 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2005 (xg_tool_bar_item_expose_callback): Reformat prototype.
2006 (xg_update_menubar): GList *group => GSList *group.
2007 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2008 before use.
2009 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2010 to GTK_IMAGE (wimage).
2011
2012 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2013
2014 * atimer.c: Use "" instead of <> for local includes for
2015 consistency with the rest of the code.
2016
2017 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2018 * xrdb.c (get_system_name):
2019 * window.c (shrink_windows):
2020 * syntax.c (forw_comment):
2021 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2022 (ins_del_costs):
2023 * mem-limits.h (start_of_data):
2024 * lread.c (readevalloop):
2025 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2026 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2027 * frame.c (x_get_focus_frame):
2028 * floatfns.c (fmod_float):
2029 * fileio.c (choose_write_coding_system):
2030 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2031 (malloc_initialize_hook, sort_args, synchronize_locale):
2032 * doprnt.c (doprnt):
2033 * dired.c (compile_pattern):
2034 * data.c (fmod_float):
2035 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2036 (map_char_table_for_charset):
2037 * charset.c (define_charset_internal):
2038 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2039 to standard C.
2040
2041 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2042 Stefan Monnier <monnier@iro.umontreal.ca>
2043
2044 * lread.c (read1): Fix up last change to not mess up `c'.
2045
2046 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2047
2048 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2049
2050 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2051
2052 Fix prototypes.
2053
2054 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2055 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2056 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2057 arg, as required by internal_condition_case_1.
2058 * print.c (strout): Use const char* for arg PTR.
2059 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2060 (analyse_first): Fix "const const".
2061 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2062 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2063 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2064
2065 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2066
2067 * alloc.c: Convert function definitions to standard C.
2068 * atimer.c:
2069 * bidi.c:
2070 * bytecode.c:
2071 * callint.c:
2072 * callproc.c:
2073 * casefiddle.c:
2074 * casetab.c:
2075 * category.c:
2076 * ccl.c:
2077 * character.c:
2078 * charset.c:
2079 * chartab.c:
2080 * cmds.c:
2081 * coding.c:
2082 * composite.c:
2083 * data.c:
2084 * dbusbind.c:
2085 * dired.c:
2086 * dispnew.c:
2087 * doc.c:
2088 * doprnt.c:
2089 * ecrt0.c:
2090 * editfns.c:
2091 * fileio.c:
2092 * filelock.c:
2093 * filemode.c:
2094 * fns.c:
2095 * font.c:
2096 * fontset.c:
2097 * frame.c:
2098 * fringe.c:
2099 * ftfont.c:
2100 * ftxfont.c:
2101 * gtkutil.c:
2102 * indent.c:
2103 * insdel.c:
2104 * intervals.c:
2105 * keymap.c:
2106 * lread.c:
2107 * macros.c:
2108 * marker.c:
2109 * md5.c:
2110 * menu.c:
2111 * minibuf.c:
2112 * prefix-args.c:
2113 * print.c:
2114 * ralloc.c:
2115 * regex.c:
2116 * region-cache.c:
2117 * scroll.c:
2118 * search.c:
2119 * sound.c:
2120 * strftime.c:
2121 * syntax.c:
2122 * sysdep.c:
2123 * termcap.c:
2124 * terminal.c:
2125 * terminfo.c:
2126 * textprop.c:
2127 * tparam.c:
2128 * undo.c:
2129 * unexelf.c:
2130 * window.c:
2131 * xfaces.c:
2132 * xfns.c:
2133 * xfont.c:
2134 * xftfont.c:
2135 * xgselect.c:
2136 * xmenu.c:
2137 * xrdb.c:
2138 * xselect.c:
2139 * xsettings.c:
2140 * xsmfns.c:
2141 * xterm.c: Likewise.
2142
2143 2010-07-03 Eli Zaretskii <eliz@gnu.org>
2144
2145 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2146 frames other than the initial one. Fix reversal of colors when
2147 `reverse' is specified in the frame parameters. Call
2148 update_face_from_frame_parameter instead of
2149 internal-set-lisp-face-attribute. Initialize screen colors from
2150 initial_screen_colors[] when f->default_face_done_p is zero,
2151 instead of depending on being called with default-frame-alist as
2152 the alist argument.
2153
2154 * xfaces.c (update_face_from_frame_parameter): Move out of
2155 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2156 with HAVE_WINDOW_SYSTEM.
2157
2158 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2159 to menu-bar-mode, if not set in the frame parameters or in
2160 default-frame-alist.
2161
2162 * w32console.c (sys_tputs): Adjust argument list to prototype in
2163 term.c.
2164
2165 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
2166
2167 * lisp.h (memory_warnings): Fix prototype.
2168
2169 * cm.h (evalcost): Fix prototype.
2170
2171 * cm.c (evalcost): Fix arg type.
2172
2173 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2174
2175 * term.c (term_clear_mouse_face, Fidentity):
2176 * syssignal.h (signal_handler_t):
2177 * lisp.h (memory_warnings):
2178 * coding.h (preferred_coding_system):
2179 * cm.h (evalcost):
2180 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2181
2182 2010-07-02 Eli Zaretskii <eliz@gnu.org>
2183
2184 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2185 from prototypes.
2186
2187 * msdos.h (load_pixmap): Don't define away.
2188
2189 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2190
2191 * lisp.h:
2192 * atimer.h: Remove define for P_.
2193
2194 * alloc.c: Remove __P and P_ from .c and .m files.
2195 * atimer.c:
2196 * buffer.c:
2197 * callint.c:
2198 * category.c:
2199 * charset.c:
2200 * chartab.c:
2201 * cm.c:
2202 * coding.c:
2203 * composite.c:
2204 * data.c:
2205 * dired.c:
2206 * dispnew.c:
2207 * doc.c:
2208 * editfns.c:
2209 * emacs.c:
2210 * eval.c:
2211 * fileio.c:
2212 * filelock.c:
2213 * fns.c:
2214 * font.c:
2215 * fontset.c:
2216 * frame.c:
2217 * ftfont.c:
2218 * ftxfont.c:
2219 * gmalloc.c:
2220 * gtkutil.c:
2221 * image.c:
2222 * indent.c:
2223 * intervals.c:
2224 * keyboard.c:
2225 * keymap.c:
2226 * lread.c:
2227 * marker.c:
2228 * menu.c:
2229 * minibuf.c:
2230 * print.c:
2231 * process.c:
2232 * scroll.c:
2233 * search.c:
2234 * sound.c:
2235 * strftime.c:
2236 * syntax.c:
2237 * sysdep.c:
2238 * term.c:
2239 * terminal.c:
2240 * textprop.c:
2241 * unexalpha.c:
2242 * w32console.c:
2243 * w32fns.c:
2244 * w32font.c:
2245 * w32menu.c:
2246 * w32term.c:
2247 * w32uniscribe.c:
2248 * window.c:
2249 * xdisp.c:
2250 * xfaces.c:
2251 * xfns.c:
2252 * xfont.c:
2253 * xftfont.c:
2254 * xmenu.c:
2255 * xselect.c:
2256 * xterm.c: Likewise.
2257
2258 Remove P_ and __P macros.
2259 * atimer.h: Remove P_ and __P macros.
2260 * buffer.h:
2261 * category.h:
2262 * ccl.h:
2263 * character.h:
2264 * charset.h:
2265 * cm.h:
2266 * coding.h:
2267 * composite.h:
2268 * dispextern.h:
2269 * disptab.h:
2270 * dosfns.h:
2271 * font.h:
2272 * fontset.h:
2273 * frame.h:
2274 * gtkutil.h:
2275 * indent.h:
2276 * intervals.h:
2277 * keyboard.h:
2278 * keymap.h:
2279 * lisp.h:
2280 * macros.h:
2281 * md5.h:
2282 * menu.h:
2283 * msdos.h:
2284 * nsterm.h:
2285 * puresize.h:
2286 * region-cache.h:
2287 * syntax.h:
2288 * syssignal.h:
2289 * systime.h:
2290 * termhooks.h:
2291 * w32font.h:
2292 * w32term.h:
2293 * widget.h:
2294 * window.h:
2295 * xgselect.h:
2296 * xsettings.h:
2297 * xterm.h: Likewise.
2298
2299 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2300
2301 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2302
2303 Cleanup old code.
2304 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2305 * syssignal.h: Remove code for Lynx, not supported anymore.
2306 * vm-limit.c: Remove unused code the depends on emacs not being
2307 defined and NO_LIM_DATA being defined.
2308 * mem-limits.h: Remove dead code.
2309
2310 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2311
2312 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2313
2314 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2315 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2316
2317 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2318 parameters, they are already absolute.
2319
2320 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2321 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2322
2323 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2324
2325 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2326 Update FRAME_TOOLBAR_HEIGHT.
2327
2328 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2329 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2330
2331 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
2332
2333 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2334 check default-frame-alist.
2335
2336 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2337
2338 * process.c (create_process): Avoid using invalid file descriptors.
2339
2340 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2341
2342 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2343
2344 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2345 Improve documentation. Return font regardless of use_system_font.
2346 (syms_of_xsettings): Improve documentation for font-use-system-font.
2347
2348 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2349
2350 * xfaces.c (realize_face): Garbage the frame if a face is removed
2351 (Bug#6593).
2352
2353 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2354
2355 * keyboard.c: Remove duplicate <setjmp.h>.
2356 (read_key_sequence): Remove volatile qualifiers.
2357
2358 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2359
2360 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2361 (struct glyph_row): New members left_fringe_offset and
2362 right_fringe_offset.
2363
2364 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2365 specially.
2366 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2367 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2368
2369 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
2370 Take account of bitmap offset.
2371 (draw_window_fringes): Take account of window vscroll.
2372 (update_window_fringes): Likewise. Extend top-aligned top indicator
2373 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2374 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2375 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2376
2377 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2378
2379 * w32fns.c (Qtooltip): Declare.
2380 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2381
2382 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2383
2384 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2385 grab on just Press (Bug#6499).
2386
2387 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
2388
2389 * frame.c (Qtooltip): New var.
2390 (delete_frame): Use it. Fix faulty if statement. Don't update
2391 mode line for tooltip frames. Suggested by Martin Rudalics.
2392
2393 * xfns.c (x_create_tip_frame):
2394 * w32fns.c (x_create_tip_frame): Use it.
2395
2396 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
2397
2398 * xftfont.c (xftfont_open): Check font width one by one also when
2399 spacing is dual.
2400
2401 * ftfont.c (ftfont_open): Ditto.
2402
2403 2010-06-30 Glenn Morris <rgm@gnu.org>
2404
2405 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2406
2407 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2408
2409 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2410 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2411 * s/darwin.h (SYSTEM_MALLOC):
2412 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2413
2414 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2415
2416 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2417 (ns_get_screen): Don't assign integer to f.
2418 (Fx_display_color_cells): Declarations before statements.
2419
2420 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2421
2422 * xfns.c (x_default_font_parameter): Remove got_from_system
2423 (Bug#6526).
2424
2425 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2426 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2427 defines based on what configure finds.
2428
2429 * xterm.c (XTflash): Use gtk_widget_get_window.
2430 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2431 gtk_adjustment_get_page_size.
2432 (handle_one_xevent): Use gtk_widget_get_mapped.
2433 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2434 messages.
2435
2436 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2437
2438 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2439 HAVE_GTK_FILE_SELECTION_NEW.
2440
2441 * gtkutil.c (xg_display_open, xg_display_close): Remove
2442 HAVE_GTK_MULTIDISPLAY, it is always defined.
2443 (xg_display_open): Return type is void.
2444 (gtk_widget_set_has_window)
2445 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2446 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2447 (gtk_adjustment_set_page_increment)
2448 (gtk_adjustment_get_step_increment): #define these if not found
2449 by configure.
2450 (remove_submenu): New define based on Gtk+ version.
2451 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2452 gtk_widget_get_window.
2453 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2454 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2455 (create_dialog): Use gtk_dialog_get_action_area and
2456 gtk_dialog_get_content_area.
2457 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2458 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2459 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2460 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2461 g_object_ref and g_object_unref.
2462 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2463 gtk_widget_get_sensitive.
2464 (xg_update_submenu): Use remove_submenu.
2465 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2466 properties instead to get old x and y position.
2467 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2468 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2469 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2470 (xg_get_tool_bar_widgets): New function.
2471 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2472 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2473 (toolbar_set_orientation): New #define based on if configure
2474 finds gtk_orientable_set_orientation.
2475 (xg_create_tool_bar): Call toolbar_set_orientation.
2476 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2477 instead of gtk_box_pack_start_defaults.
2478
2479 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2480
2481 * cmds.c (Fdelete_backward_char): Move into Lisp.
2482
2483 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2484
2485 * s/freebsd.h (BSD4_2): Remove redundant definition.
2486 bsd-common.h defines it already.
2487
2488 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2489
2490 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2491 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2492 tool-bar-mode, which are now set using these X resources at
2493 startup, to determine the defaults (Bug#2249).
2494
2495 * w32fns.c (Fx_create_frame):
2496 * nsfns.m (Fx_create_frame): Likewise.
2497
2498 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2499
2500 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2501
2502 * gtkutil.c (xg_update_scrollbar_pos):
2503 Avoid C99 mid-block variable declaration.
2504
2505 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2506
2507 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2508
2509 * gtkutil.h (xg_show_scroll_bar): Remove.
2510
2511 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2512 if height is less than scroll bar min size.
2513 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2514
2515 * xfns.c (x_default_font_parameter): Try to open font from system
2516 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2517
2518 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2519
2520 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2521
2522 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2523
2524 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2525 most-positive-fixnum, be extra accurate when scrolling window
2526 start, to avoid missing the cursor line.
2527
2528 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2529
2530 * xdisp.c (try_scrolling): Compute the limit for searching point
2531 in forward scroll from scroll_max, instead of an arbitrary limit
2532 of 10 screen lines. See
2533 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2534 and
2535 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2536 for details.
2537
2538 2010-06-16 Glenn Morris <rgm@gnu.org>
2539
2540 * editfns.c (Fbyte_to_string): Pacify compiler.
2541
2542 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2543
2544 * lread.c (read1): Phase out old-style backquotes a bit more.
2545
2546 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2547
2548 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2549 bidimirror.h.
2550
2551 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2552
2553 * bidi.c (bidi_initialize): Remove explicit initialization of
2554 bidi_type_table; include biditype.h instead. Don't support
2555 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2556 (bidi_mirror_char): Use bidi_mirror_table.
2557
2558 * biditype.h: New file.
2559
2560 * bidimirror.h: New file.
2561
2562 * window.c (syms_of_window): Doc fix (bug#6409).
2563
2564 2010-06-12 Romain Francoise <romain@orebokech.com>
2565
2566 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2567 ediff-hook.
2568
2569 2010-06-10 Glenn Morris <rgm@gnu.org>
2570
2571 * editfns.c (Fbyte_to_string): Pacify compiler.
2572
2573 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2574
2575 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2576
2577 * alloc.c (Fmake_byte_code): Don't access undefined argument
2578 (Bug#6517).
2579
2580 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2581
2582 * xdisp.c (next_element_from_image): Ensure that after-strings are
2583 read the next time we hit handle_stop (Bug#1336).
2584
2585 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2586
2587 * lread.c (read1): Signal error if #s is not followed by paren.
2588
2589 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2590
2591 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2592
2593 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2594
2595 2010-06-15 Glenn Morris <rgm@gnu.org>
2596
2597 * editfns.c (Fbyte_to_string): Pacify compiler.
2598
2599 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2600
2601 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2602 Check `object's type before accessing its guts.
2603
2604 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2605
2606 * s/usg5-4.h: Fix previous change.
2607 Suggested by Lawrence Mitchell <wence@gmx.li>
2608
2609 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2610
2611 * minibuf.c (Fall_completions): Add more checks.
2612
2613 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2614
2615 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2616
2617 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2618
2619 * lread.c (X_OK): Remove, unused.
2620
2621 * dispnew.c: Remove obsolete comment.
2622
2623 Remove INCLUDED_FCNTL.
2624 * xterm.c (INCLUDED_FCNTL):
2625 * callproc.c (INCLUDED_FCNTL):
2626 * alloc.c (INCLUDED_FCNTL):
2627 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2628 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2629
2630 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2631
2632 * window.c (Fselect_window): Move `record_buffer' up to the
2633 beginning of this function, so the buffer gets recorded
2634 even if the selected window does not change.
2635 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2636
2637 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2638
2639 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2640 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2641
2642 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2643
2644 Remove BSTRING related code, all platforms define it.
2645 * s/usg5-4.h (BSTRING): Remove definition.
2646 * s/template.h (BSTRING):
2647 * s/msdos.h (BSTRING):
2648 * s/ms-w32.h (BSTRING):
2649 * s/hpux10-20.h (BSTRING):
2650 * s/gnu-linux.h (BSTRING):
2651 * s/darwin.h (BSTRING):
2652 * s/cygwin.h (BSTRING):
2653 * s/bsd-common.h (BSTRING):
2654 * s/aix4-2.h (BSTRING): Likewise.
2655 * sysdep.c: Remove code depending on BSTRING not being defined.
2656
2657 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2658
2659 Remove obsolete macro BASE_LEADING_CODE_P.
2660 * character.h (BASE_LEADING_CODE_P): Remove.
2661 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2662 * buffer.c (Fset_buffer_multibyte):
2663 * indent.c (scan_for_column, compute_motion):
2664 * insdel.c (count_combining_before, count_combining_after):
2665 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2666
2667 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2668
2669 Turn `directory-sep-char' into a noop.
2670
2671 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2672 (DIRECTORY_SEP): Define unconditionally.
2673
2674 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2675
2676 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2677 call dostounix_filename directly.
2678
2679 * fileio.c (CORRECT_DIR_SEPS): Remove.
2680 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2681 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2682 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2683 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2684
2685 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2686 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2687
2688 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2689
2690 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2691 (Bug#6346)
2692
2693 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2694
2695 * ccl.c (Fccl_program_p): Fix typo in docstring.
2696
2697 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2698
2699 Move UNEXEC definition to autoconf.
2700 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2701 * s/sol2-10.h (UNEXEC):
2702 * s/irix6-5.h (UNEXEC):
2703 * s/hpux10-20.h (UNEXEC):
2704 * s/gnu-linux.h (UNEXEC):
2705 * s/darwin.h (UNEXEC):
2706 * s/cygwin.h (UNEXEC):
2707 * s/bsd-common.h (UNEXEC):
2708 * s/aix4-2.h (UNEXEC):
2709 * m/alpha.h (UNEXEC): Likewise.
2710 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2711
2712 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2713
2714 Remove obsolete pre-unicode2 macros.
2715 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2716 * composite.c (composition_reseat_it):
2717 * data.c (Faset):
2718 * fns.c (Ffillarray):
2719 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2720 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2721
2722 2010-06-03 Juri Linkov <juri@jurta.org>
2723
2724 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2725 (Fswitch_to_buffer): Remove unused variable `err'.
2726
2727 2010-06-03 Glenn Morris <rgm@gnu.org>
2728
2729 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2730
2731 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2732 now that AH_BOTTOM does it.
2733
2734 * m/hp800.h (HAVE_ALLOCA):
2735 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2736
2737 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2738 Remove NOT_C_CODE tests, it is always true now.
2739
2740 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2741
2742 Fix config.h includes.
2743 * xsettings.c:
2744 * xgselect.c:
2745 * nsterm.m:
2746 * nsselect.m:
2747 * nsimage.m:
2748 * nsfont.m:
2749 * nsfns.m:
2750 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2751 other files do.
2752
2753 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2754
2755 * s/sol2-6.h: Remove obsolete comments.
2756
2757 Remove unnecessary alloca.h includes.
2758 * keymap.c: Do not include alloca.h, config.h does that.
2759 * sysdep.c: Likewise. Do not define fwrite, not used.
2760
2761 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2762
2763 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2764 the HAVE_TERMIO where it belongs (bug#6149).
2765
2766 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2767
2768 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2769 of bug#6305).
2770
2771 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2772
2773 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2774 state is always cached (bug#6306).
2775
2776 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2777
2778 Fix cursor motion in bidi-reordered continued lines.
2779 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2780 only after finding point's row. Fix the logic. Rewrite the loop
2781 over continuation lines in bidi-reordered buffers. Return
2782 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2783 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2784
2785 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2786
2787 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2788
2789 2010-05-28 Kenichi Handa <handa@m17n.org>
2790
2791 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2792 Don't sheck SPEC if it is nil.
2793 (font_list_entities): Call font_delete_unmatched if
2794 Vface_ignored_fonts is non-nil. (Bug#6287)
2795
2796 2010-05-28 Glenn Morris <rgm@gnu.org>
2797
2798 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2799
2800 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2801
2802 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2803 whether to trash.
2804 (internal_delete_file, Frename_file): Callers changed.
2805 (delete_by_moving_to_trash): Doc fix.
2806 (Fdelete_directory_internal): Don't move to trash.
2807
2808 * callproc.c (delete_temp_file):
2809 * buffer.c (Fkill_buffer): Callers changed.
2810
2811 * lisp.h: Update prototype.
2812
2813 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2814
2815 * xdisp.c (redisplay_window): After redisplay, check if point is
2816 still valid before setting it (Bug#6177).
2817
2818 2010-05-27 Glenn Morris <rgm@gnu.org>
2819
2820 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2821 Convert comments to Makefile format.
2822
2823 * Makefile.in (bootstrap-clean): No more Makefile.c.
2824
2825 2010-05-26 Glenn Morris <rgm@gnu.org>
2826
2827 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2828 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2829
2830 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2831 Remove.
2832 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2833
2834 2010-05-26 Kenichi Handa <handa@m17n.org>
2835
2836 * composite.c (composition_compute_stop_pos): Fix condition for
2837 backward scanning.
2838
2839 2010-05-25 Glenn Morris <rgm@gnu.org>
2840
2841 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2842 Move before TEMACS_LDFLAGS.
2843 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2844 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2845
2846 * Makefile.in (NOT_C_CODE): No longer define.
2847 (config.h): No longer include.
2848
2849 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2850 variables it may reference.
2851
2852 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2853 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2854
2855 2010-05-25 Kenichi Handa <handa@m17n.org>
2856
2857 * dispextern.h (struct composition_it): New members rule_idx and
2858 charpos.
2859
2860 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2861 that the character positions of IT point the last character of the
2862 current grapheme cluster.
2863 (next_element_from_composition): Don't change character positions
2864 of IT.
2865 (append_composite_glyph): Set glyph->charpos to
2866 it->cmp_it.charpos.
2867
2868 * composite.c (autocmp_chars): Change the first argument to RULE,
2869 and try composition with RULE only.
2870 (composition_compute_stop_pos): Record the index number of the
2871 composition rule in CMP_IT->rule_idx.
2872 (composition_reseat_it): Call autocmp_chars repeatedly until the
2873 correct rule of the composition is found.
2874 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2875 is at the last character of the current grapheme cluster when
2876 CMP_IT->reversed_p is nonzero.
2877
2878 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2879
2880 * editfns.c (Fbyte_to_string): New function.
2881
2882 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2883
2884 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2885 Suggested by Masatake YAMATO <yamato@redhat.com>.
2886
2887 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2888
2889 * dispextern.h (init_iterator): Sync prototype with changed definition.
2890
2891 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2892
2893 * s/netbsd.h: If terminfo is found, use it in preference to
2894 termcap. (Bug#6190) [Backport from trunk]
2895
2896 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2897
2898 Redesign and reimplement bidi-aware edge positions of glyph rows.
2899
2900 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2901 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2902 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2903 and maxpos members instead of start.pos and end.pos, respectively.
2904
2905 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2906 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2907 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2908 (try_window_reusing_current_matrix, try_window_id):
2909 Use ROW->minpos rather than ROW->start.pos.
2910 (init_from_display_pos, init_iterator): Use EMACS_INT for
2911 character and byte positions.
2912 (find_row_edges): Rename from find_row_end. Accept additional
2913 arguments for minimum and maximum buffer positions seen by
2914 display_line for this row. Don't use iterator to find the
2915 position following the maximum one; instead, increment the
2916 position found by display_line directly. Fix logic; eol_pos
2917 should be tested before the rest. Handle the case of characters
2918 delivered from display vector (bug#6036). Fix tests related to
2919 it->method. Handle the truncated_on_right_p rows.
2920 (RECORD_MAX_MIN_POS): New macro.
2921 (display_line): Use it to record the minimum and maximum buffer
2922 positions for glyphs in the row being assembled. Record the
2923 position of the newline that terminates the line. If word wrap is
2924 in effect, restore minimum and maximum positions seen up to the
2925 wrap point, when iterator returns to it.
2926 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2927 row and cursor not already at point. Restore original pre-bidi
2928 code for unidirectional buffers.
2929
2930 * dispnew.c (increment_row_positions, check_matrix_invariants):
2931 Increment and check row->start.pos and row->end.pos, in addition
2932 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2933
2934 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2935 Display truncated_on_left_p and truncated_on_right_p flags.
2936 Formatting fixes.
2937 (pmtxrows): Display the ordinal number of each row. Don't display
2938 rows beyond the last one.
2939
2940 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2941 it is not copied by bidi_copy_it.
2942
2943 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2944
2945 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2946 (Bug#6237)
2947
2948 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2949
2950 * image.c (Fimage_flush): Rename from image-refresh.
2951
2952 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2953
2954 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2955 just one window.
2956
2957 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2958 (clear_image_cache): If the number of cached images is unusually
2959 large, decrease the cache eviction delay (Bug#6230).
2960
2961 2010-05-21 Glenn Morris <rgm@gnu.org>
2962
2963 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2964 Move these rules to ns.mk.
2965 * ns.mk: New file.
2966
2967 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2968
2969 * Makefile.in (CANNOT_DUMP): New, set by configure.
2970 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2971
2972 2010-05-20 Juri Linkov <juri@jurta.org>
2973
2974 * fileio.c (Fdelete_file): Change interative spec to use
2975 `read-file-name' like in `find-file-read-args' where the default
2976 value is `default-directory' instead of `buffer-file-name'.
2977 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2978
2979 2010-05-20 Kevin Ryde <user42@zip.com.au>
2980
2981 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2982 (Voverriding_terminal_local_map, Vsystem_key_alist)
2983 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2984
2985 2010-05-20 Glenn Morris <rgm@gnu.org>
2986
2987 * Makefile.in (DEPDIR): New constant.
2988 (DEPFLAGS): Set with configure, not cpp.
2989 (MKDEPDIR): New, set by configure.
2990 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2991 (clean): Use $DEPDIR.
2992 (deps_frag): Include from configure.
2993 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2994 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2995
2996 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2997 reallocation of the cache. (Bug#6210)
2998
2999 2010-05-19 Glenn Morris <rgm@gnu.org>
3000
3001 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3002
3003 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3004 (GNULIB_VAR): Remove.
3005 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3006
3007 * m/ibms390x.h (LINKER):
3008 * m/macppc.h (LINKER) [GNU_LINUX]:
3009 * s/aix4-2.h (ORDINARY_LINK):
3010 * s/cygwin.h (LINKER):
3011 * s/darwin.h (ORDINARY_LINK):
3012 * s/gnu.h (ORDINARY_LINK):
3013 * s/netbsd.h (LINKER):
3014 * s/usg5-4.h (ORDINARY_LINK):
3015 Move to configure.
3016
3017 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3018
3019 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3022 prevent stack overflow if number of arguments is too large
3023 (Bug#6214).
3024
3025 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
3026
3027 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3028
3029 2010-05-18 Glenn Morris <rgm@gnu.org>
3030
3031 * s/gnu-linux.h: Combine two conditionals.
3032
3033 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
3034 $(POST_ALLOC_OBJ).
3035
3036 * Makefile.in (RALLOC_OBJ): New, set by configure.
3037 (rallocobj): Replace with the previous variable.
3038 (otherobj): Use $RALLOC_OBJ.
3039
3040 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3041 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3042
3043 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3044 (gmallocobj, vmlimitobj): Replace with previous two variables.
3045 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3046
3047 2010-05-17 Glenn Morris <rgm@gnu.org>
3048
3049 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3050 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3051
3052 2010-05-16 Glenn Morris <rgm@gnu.org>
3053
3054 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3055
3056 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3057
3058 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3059 trailing "/".
3060
3061 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3062 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3063
3064 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3065 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3066 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3067 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3068 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3069
3070 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3071 Remove ${STARTFLAGS}, nothing ever sets it.
3072
3073 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3074
3075 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3076
3077 2010-05-16 Glenn Morris <rgm@gnu.org>
3078
3079 * Makefile.in (LIBX_BASE): Always define.
3080
3081 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3082
3083 * Makefile.in (LIBXT): Always define.
3084
3085 2010-05-15 Glenn Morris <rgm@gnu.org>
3086
3087 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
3088
3089 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3090 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3091
3092 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
3093
3094 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
3095 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3096
3097 * emacs.c (main): Initialize initial-environment and
3098 process-environment before generating from env, not after.
3099
3100 Handle --version reasonably in CANNOT_DUMP configuration.
3101 * emacs.c (emacs_version, emacs_copyright): New string variables.
3102 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3103 (syms_of_emacs): Defvar them, and initialize them from the C
3104 string variables.
3105 (main): If initialization hasn't been done, print initial version
3106 info from the C strings, instead of starting an interactive session.
3107
3108 2010-05-15 Eli Zaretskii <eliz@gnu.org>
3109
3110 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3111 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
3112 (bidi_paragraph_init): Remove redundant assertion that we are at
3113 the beginning of a line after call to bidi_find_paragraph_start.
3114
3115 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3116 (syms_of_xdisp): Defsubr it.
3117
3118 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3119
3120 * Makefile.in: Fix MSDOS-related comments.
3121
3122 2010-05-15 Glenn Morris <rgm@gnu.org>
3123
3124 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3125 (really-lwlib, really-oldXMenu): Always define.
3126 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3127
3128 * Makefile.in: Simplify cpp conditional.
3129
3130 * Makefile.in (${ns_appdir}): Simplify using umask.
3131
3132 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3133
3134 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3135
3136 * eval.c (specbind): Remove left-over duplicate test.
3137 Disallow let-binding frame-local vars. Add comment.
3138
3139 2010-05-14 Eli Zaretskii <eliz@gnu.org>
3140
3141 Make the cache of bidi iterator states dynamically allocated.
3142 * bidi.c (bidi_cache_shrink): New function.
3143 (bidi_init_it): Call it.
3144 (bidi_cache_iterator_state): Enlarge the cache if needed.
3145
3146 * bidi.c (bidi_move_to_visually_next): Rename from
3147 bidi_get_next_char_visually. All callers changed.
3148
3149 2010-05-14 Kenichi Handa <handa@m17n.org>
3150
3151 * dispextern.h (struct composition_it): New member reversed_p.
3152
3153 * composite.c (composition_compute_stop_pos): Search backward if
3154 ENDPOS < CHARPOS.
3155 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3156 Set CMP_IT->reversed_p.
3157 (composition_update_it): Pay attention to CMP_IT->reversed_p.
3158
3159 * xdisp.c (set_iterator_to_next):
3160 Call composition_compute_stop_pos with negative ENDPOS if we are
3161 scanning backward. Call composition_compute_stop_pos if scan
3162 direction is changed.
3163 (next_element_from_buffer): Call composition_compute_stop_pos with
3164 negative ENDPOS if we are scanning backward.
3165 (next_element_from_composition): Pay attention to
3166 IT->cmp_it.reversed_p.
3167
3168 2010-05-14 Kenichi Handa <handa@m17n.org>
3169
3170 * font.c (font_range): Return the range for the font found at first.
3171
3172 2010-05-14 Glenn Morris <rgm@gnu.org>
3173
3174 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3175
3176 * Makefile.in (mktime, X11, register): Move undefs to configure.
3177
3178 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3179 (MSDOS_X_OBJ): New variable.
3180 (MSDOS_SUPPORT_REAL): New constant.
3181 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3182 (obj): Use MSDOS_X_OBJ.
3183 (lisp): Use MSDOS_SUPPORT as a variable.
3184
3185 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3186 (GPM_MOUSE_SUPPORT): Now it's a constant.
3187 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3188 not cpp.
3189
3190 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3191 (ns_appresdir): Remove, unused.
3192
3193 * Makefile.in (SHELL): Move outside cpp section.
3194
3195 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3196
3197 2010-05-13 Glenn Morris <rgm@gnu.org>
3198
3199 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3200 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3201
3202 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3203 HAVE_WINDOW_SYSTEM must be too.
3204
3205 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3206 (lisp): Remove WINNT_SUPPORT.
3207
3208 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3209 Let configure set these variables (to empty) in this case as well.
3210
3211 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3212 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3213
3214 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3215 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3216 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3217 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3218 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3219 the values output by configure.
3220 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3221
3222 2010-05-12 Glenn Morris <rgm@gnu.org>
3223
3224 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3225 (LINKER_WAS_SPECIFIED): Remove.
3226
3227 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3228 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3229 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3230 * s/cygwin.h (LIB_GCC):
3231 * s/freebsd.h (LIB_GCC):
3232 * s/gnu-linux.h (LIB_GCC):
3233 * s/msdos.h (LIB_GCC):
3234 * s/netbsd.h (LIB_GCC):
3235 Move to configure.
3236
3237 2010-05-11 Karel Klic <kklic@redhat.com>
3238
3239 * ftfont.c: Fix incorrect parentheses of #if condition for
3240 definining M17N_FLT_USE_NEW_FEATURE.
3241
3242 2010-05-11 Glenn Morris <rgm@gnu.org>
3243
3244 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3245 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3246
3247 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3248
3249 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3250 unibyte buffers. See
3251 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3252
3253 2010-05-10 Glenn Morris <rgm@gnu.org>
3254
3255 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3256 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3257 (LIBES): Use LIBS_SYSTEM as a variable.
3258 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3259 * s/aix4-2.h (LIBS_SYSTEM):
3260 * s/freebsd.h (LIBS_SYSTEM):
3261 * s/hpux10-20.h (LIBS_SYSTEM):
3262 * s/sol2-6.h (LIBS_SYSTEM):
3263 * s/unixware.h (LIBS_SYSTEM):
3264 Move to configure.
3265
3266 * s/aix4-2.h (MAIL_USE_LOCKF):
3267 * s/bsd-common.h (MAIL_USE_FLOCK):
3268 * s/darwin.h (MAIL_USE_FLOCK):
3269 * s/gnu-linux.h (MAIL_USE_FLOCK):
3270 * s/irix6-5.h (MAIL_USE_FLOCK):
3271 * s/template.h (MAIL_USE_FLOCK):
3272 Move to configure.
3273
3274 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3275
3276 * Version 23.2 released.
3277
3278 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3279
3280 * composite.c (autocmp_chars): Save point as marker before calling
3281 auto-composition-function (Bug#5984).
3282
3283 * lisp.h (restore_point_unwind): Add prototype.
3284
3285 * fileio.c (restore_point_unwind): Remove static attribute.
3286
3287 2010-05-08 Kenichi Handa <handa@m17n.org>
3288
3289 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3290 new feature of libotf and m17n-flt.
3291 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3292 Call OTF_check_features even if no specific feature is given.
3293 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3294 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3295 that OUT is NULL. Use OTF_drive_gsub_with_log and
3296 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3297 OTF_drive_gpos.
3298 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3299 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3300 Setup mflt_enable_new_feature and mflt_try_otf.
3301
3302 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3303
3304 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3305
3306 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3307 box and toolbar (Bug #6139).
3308 (xg_create_tool_bar): Remove comment (Bug #6139).
3309 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3310 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3311
3312 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3313
3314 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3315 Update dependencies.
3316
3317 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3318
3319 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3320 R2L lines.
3321
3322 2010-05-08 Glenn Morris <rgm@gnu.org>
3323
3324 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3325
3326 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3327 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3328 (termcapobj): Replace with TERMCAP_OBJ.
3329 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3330 (LIBES): Use LIBS_TERMCAP as a variable.
3331
3332 * s/freebsd.h (osreldate.h): No longer include, since this file
3333 does not use __FreeBSD_version any more.
3334
3335 * s/aix4-2.h (TERMINFO):
3336 * s/cygwin.h (TERMINFO):
3337 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3338 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3339 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3340 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3341 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3342 * s/irix6-5.h (TERMINFO):
3343 * s/netbsd.h (LIBS_TERMCAP):
3344 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3345 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3346 * s/usg5-4.h (TERMINFO):
3347 Move to configure.
3348
3349 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3350
3351 * eval.c (unbind_to): Don't unbind a local binding into the global
3352 binding when the local binding disappeared. Inversely, don't unbind
3353 a global binding into a newly created local binding.
3354 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3355 can specify the frame to use, when applicable. Adjust callers.
3356
3357 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
3358 Stefan Monnier <monnier@iro.umontreal.ca>
3359
3360 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3361
3362 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3363
3364 * w32fns.c: Include w32.h.
3365 (Fw32_shell_execute): Decode the error message before passing it
3366 to `error'. (Bug#6126)
3367
3368 * msdos.c (dos_set_window_size):
3369 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3370 instead of `XSYMBOL (foo)->value'.
3371
3372 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3373
3374 Fix the MS-DOS build, broken by autoconfiscation.
3375
3376 * Makefile.in: Don't use Make-style comments past the "start of
3377 cpp stuff" line.
3378 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3379
3380 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3381 edited directly by msdos/sed1v2.inp).
3382
3383 2010-05-07 Glenn Morris <rgm@gnu.org>
3384
3385 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3386 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3387 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3388 move out of cpp section.
3389 * s/freebsd.h (LD_SWITCH_SYSTEM):
3390 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3391 * s/netbsd.h (LD_SWITCH_SYSTEM):
3392 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3393
3394 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3395
3396 Define LIB_STANDARD and START_FILES using autoconf.
3397 * s/usg5-4.h (LIB_STANDARD):
3398 * s/netbsd.h (START_FILES):
3399 * s/irix6-5.h (LIB_STANDARD):
3400 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3401 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3402 * s/freebsd.h (START_FILES):
3403 * s/darwin.h (START_FILES):
3404 * s/cygwin.h (START_FILES):
3405 * s/aix4-2.h (LIB_STANDARD):
3406 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3407 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3408 autoconf, not cpp.
3409
3410 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3411
3412 Remove NEED_BSDTTY and NEED_UNISTD_H.
3413 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3414 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3415 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3416 <sys/ptyio.h> and <unistd.h>.
3417
3418 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3419
3420 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3421 * s/gnu.h (START_FILES): Remove empty definition.
3422
3423 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3424
3425 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3426
3427 2010-05-06 Glenn Morris <rgm@gnu.org>
3428
3429 * Makefile.in (CPP, LN_S): Remove unused variables.
3430
3431 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3432
3433 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3434
3435 2010-05-05 Lawrence Mitchell <wence@gmx.li>
3436
3437 * m/sparc.h: Fix typo in earlier change.
3438
3439 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3440
3441 Misc tweaks.
3442 * eval.c (Fdefvaralias): Remove unintended nested if.
3443 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3444
3445 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
3446
3447 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3448
3449 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3450
3451 Remove BSD_PGRPS.
3452 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3453 * s/gnu-linux.h (BSD_PGRPS): Remove.
3454 * term.c (dissociate_if_controlling_tty):
3455 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3456 (init_sys_modes, reset_sys_modes):
3457 * emacs.c (main):
3458 * callproc.c (Fcall_process, child_setup): Remove code depending
3459 on BSD_PGRPS.
3460
3461 Remove POSIX_SIGNALS.
3462 * s/usg5-4.h (POSIX_SIGNALS):
3463 * s/netbsd.h (POSIX_SIGNALS):
3464 * s/msdos.h (POSIX_SIGNALS):
3465 * s/ms-w32.h (POSIX_SIGNALS):
3466 * s/hpux11.h (POSIX_SIGNALS):
3467 * s/gnu.h (POSIX_SIGNALS):
3468 * s/gnu-linux.h (POSIX_SIGNALS):
3469 * s/freebsd.h (POSIX_SIGNALS):
3470 * s/darwin.h (POSIX_SIGNALS):
3471 * s/cygwin.h (POSIX_SIGNALS):
3472 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3473 * s/unixware.h:
3474 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3475 * process.c (create_process):
3476 * syssignal.h:
3477 * sysdep.c (wait_for_termination, init_signals):
3478 * process.c (create_process):
3479 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3480 remove all code that assumes the contrary.
3481
3482 2010-05-04 Glenn Morris <rgm@gnu.org>
3483
3484 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3485 variable.
3486 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3487 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3488 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3489 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3490 LD_SWITCH_SYSTEM_tmp.
3491 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3492 New variables, set by configure.
3493
3494 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3495 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3496 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3497 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3498 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3499
3500 * s/aix4-2.h (C_SWITCH_SYSTEM):
3501 * m/alpha.h (C_SWITCH_MACHINE):
3502 Move to configure.in.
3503 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3504 New variables, set by configure.
3505 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3506 $c_switch_machine and $c_switch_system.
3507
3508 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3509
3510 * s/hpux10-20.h (LIB_STANDARD): New definition.
3511 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3512 on it, not used anymore.
3513
3514 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3515
3516 * eval.c (internal_condition_case_n): Rename from
3517 internal_condition_case_2.
3518 (internal_condition_case_2): New function.
3519
3520 * xdisp.c (safe_call): Use internal_condition_case_n.
3521
3522 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3523 (internal_delete_file, Frename_file): Callers changed.
3524
3525 * buffer.c (Fkill_buffer):
3526 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3527
3528 * lisp.h: Update prototypes.
3529
3530 2010-05-03 Glenn Morris <rgm@gnu.org>
3531
3532 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3533 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3534 (LIBXT): Set with configure, not cpp.
3535 (LIBX): Remove.
3536 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3537
3538 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3539
3540 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3541 The FreeBSD is not needed, the default works, Solaris version is
3542 not needed, and the remaining case is not supported by configure.
3543
3544 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3545
3546 * xsmfns.c (CHDIR_OPT): New define.
3547 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3548 restarting emacs.
3549
3550 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3551 shut_down_emacs.
3552
3553 * emacs.c (USAGE1): Mention --chdir.
3554 (main): Handle --chdir.
3555 (standard_args): Add --chdir.
3556 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3557 #5552).
3558
3559 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3560
3561 Remove LD_SWITCH_MACHINE.
3562 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3563 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3564
3565 Clean up IRIX code.
3566 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3567 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3568
3569 Clean up AIX code.
3570 * m/ibmrs6000.inp: Remove file, unused.
3571 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3572 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3573 definition ...
3574 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3575
3576 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3577 unused.
3578
3579 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3580
3581 Emulate POSIX_SIGNALS on MS-Windows.
3582
3583 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3584 (SIG_SETMASK, SIG_UNBLOCK): Define.
3585
3586 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3587 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3588 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3589
3590 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3591 New stubs.
3592
3593 Miscellaneous fixes of bidi display.
3594
3595 * xdisp.c (find_row_end): New function, refactored from display_line.
3596 (display_line): Use it.
3597 (extend_face_to_end_of_line): In almost-filled rows, extend only
3598 if the row is R2L and not continued.
3599 (display_line): Fix prepending of truncation glyphs to R2L rows.
3600 Preserve overlay and string info in row->end.
3601 (insert_left_trunc_glyphs): Support addition of left truncation
3602 glyphs to R2L rows.
3603 (set_cursor_from_row): Don't place cursor on the vertical border
3604 glyph between adjacent windows. Fix a crash when a display string
3605 is continued to the next line. Don't return zero if cursor was
3606 found by `cursor' property of a display string.
3607 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3608 test for that explicitly.
3609
3610 2010-05-01 Glenn Morris <rgm@gnu.org>
3611
3612 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3613 for clarity.
3614 (OTHER_OBJ): Remove.
3615 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3616 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3617
3618 2010-05-01 Karel Klíč <kklic@redhat.com>
3619
3620 * fileio.c (Ffile_selinux_context): Context functions may return null.
3621
3622 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3623
3624 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3625
3626 2010-04-30 Glenn Morris <rgm@gnu.org>
3627
3628 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3629 (OTHER_OBJ): Define as a separate variable, for clarity.
3630
3631 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3632
3633 * xsettings.c: include limits.h and update file comment.
3634
3635 2010-04-30 Glenn Morris <rgm@gnu.org>
3636
3637 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3638 Set with configure, not cpp.
3639 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3640
3641 * Makefile.in (mallocobj): Remove.
3642 (otherobj): Simplify using @OTHER_OBJ@.
3643
3644 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3645 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3646 Don't bother making nsgui.h dependency platform-specific.
3647
3648 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3649
3650 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3651
3652 * process.c (read_process_output, exec_sentinel): Don't burp if the
3653 sentinel/filter kills the current buffer (bug#6060).
3654
3655 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3656 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3657 Remove unused var `args'.
3658 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3659 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3660 * doc.c (store_function_docstring): Use XSETCAR.
3661
3662 2010-04-28 Glenn Morris <rgm@gnu.org>
3663
3664 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3665 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3666
3667 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3668
3669 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3670 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3671
3672 * Makefile.in (FONT_OBJ): New, set by configure.
3673 (FONT_DRIVERS): Use $FONT_OBJ.
3674
3675 * Makefile.in (LIBXMU): Set with configure, not cpp.
3676 * s/aix4-2.h (LIBXMU):
3677 * s/hpux10-20.h (LIBXMU):
3678 Remove definition, now set in configure.
3679
3680 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3681
3682 * m/amdx86-64.h [i386]: Move this test to configure.in.
3683
3684 2010-04-27 Glenn Morris <rgm@gnu.org>
3685
3686 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3687 * s/unixware.h (NEED_LIBW): Remove definition.
3688
3689 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3690 (TOOLKIT_LIBW): New, set by configure.
3691 (@X_TOOLKIT_TYPE@): No longer define it.
3692
3693 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3694 (MOTIF_LIBW): Set with configure, not cpp.
3695 * s/aix4-2.h (LIB_MOTIF):
3696 * s/gnu-linux.h (LIB_MOTIF):
3697 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3698
3699 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3700
3701 Reduce CPP usage.
3702 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3703 (obj): Use autoconf for unexec instead of cpp.
3704 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3705 definitions and undefs. Inline definitions in the only user.
3706 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3707
3708 2010-04-27 Glenn Morris <rgm@gnu.org>
3709
3710 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3711 since the defaults (set by the system file) are fine in most cases.
3712 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3713 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3714 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3715 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3716 Remove definitions, since they are set correctly in s/gnu-linux.h.
3717 * s/freebsd.h (START_FILES, LIB_STANDARD):
3718 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3719 * s/hpux10-20.h (START_FILES):
3720 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3721 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3722
3723 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3724 (MOTIF_LIBW): Use $LIBXP.
3725 (otherobj): Use $WIDGET_OBJ.
3726
3727 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3728
3729 * Makefile.in (LIBS_MACHINE): Remove, unused.
3730
3731 Use autoconf instead of cpp for LIB_MATH.
3732 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3733 * s/cygwin.h (LIB_MATH): Likewise.
3734 * Makefile.in (LIB_MATH): Do not define with cpp.
3735 (LIBES): Use autoconf for LIB_MATH.
3736
3737 2010-04-26 Kenichi Handa <handa@m17n.org>
3738
3739 * composite.c (Ffind_composition_internal): Fix the return value
3740 for an automatic composition.
3741
3742 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3743
3744 Remove all NO_ARG_ARRAY uses.
3745 * fns.c (concat2, concat3, nconc2):
3746 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3747 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3748 * m/xtensa.h (NO_ARG_ARRAY):
3749 * m/template.h (NO_ARG_ARRAY):
3750 * m/sparc.h (NO_ARG_ARRAY):
3751 * m/sh3.h (NO_ARG_ARRAY):
3752 * m/mips.h (NO_ARG_ARRAY):
3753 * m/macppc.h (NO_ARG_ARRAY):
3754 * m/iris4d.h (NO_ARG_ARRAY):
3755 * m/intel386.h (NO_ARG_ARRAY):
3756 * m/ibms390x.h (NO_ARG_ARRAY):
3757 * m/ibms390.h (NO_ARG_ARRAY):
3758 * m/ibmrs6000.h (NO_ARG_ARRAY):
3759 * m/ia64.h (NO_ARG_ARRAY):
3760 * m/hp800.h (NO_ARG_ARRAY):
3761 * m/arm.h (NO_ARG_ARRAY):
3762 * m/amdx86-64.h (NO_ARG_ARRAY):
3763 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3764
3765 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3766
3767 * xdisp.c (display_line): Don't assume 2nd call to
3768 get_next_display_element cannot return zero. (Bug#6030)
3769 (iterate_out_of_display_property): New function, body from pop_it.
3770 (pop_it): Use it.
3771
3772 2010-04-24 Glenn Morris <rgm@gnu.org>
3773
3774 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3775 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3776 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3777 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3778
3779 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3780
3781 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3782 use `get_next_display_element' and `set_iterator_to_next' to
3783 advance to the next character, when looking for the character that
3784 begins the next row.
3785
3786 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3787 definition of "struct Lisp_Symbol".
3788
3789 2010-04-24 Glenn Morris <rgm@gnu.org>
3790
3791 * Makefile.in (CRT_DIR): New variable, set by configure.
3792 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3793 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3794
3795 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3796
3797 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3798
3799 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3800
3801 Remove redundant flags.
3802 * s/freebsd.h (C_SWITCH_SYSTEM):
3803 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3804 * s/netbsd.h (C_SWITCH_SYSTEM):
3805 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3806 of these.
3807
3808 Simplify m/intel386.h.
3809 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3810 user: ecrt0.c.
3811 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3812 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3813 the only user: s/unixware.h.
3814 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3815 from m/intel386.h.
3816 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3817 moved here from m/intel386.h.
3818
3819 * m/mips.h: Remove #if 0 code.
3820
3821 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3822
3823 Fix display of composed characters from L2R scripts in bidi buffers.
3824 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3825 After advancing IT past the composition, resync the bidi iterator
3826 with IT's position. (Bug#5977)
3827
3828 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3829
3830 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3831 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3832
3833 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3834
3835 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3836
3837 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3838
3839 Support `display' text properties and overlay strings in bidi buffers.
3840 * xdisp.c (pop_it): When the stack is popped after displaying
3841 from a string, bidi-iterate to exit from the text portion covered
3842 by the `display' property or overlay. (Bug#5988, bug#5920)
3843
3844 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3845
3846 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3847 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3848
3849 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3850 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3851
3852 Simplify STARTFILES definition.
3853 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3854 relying on Makefile.in to define it.
3855 * s/cygwin.h (START_FILES): Likewise.
3856 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3857
3858 Clean up Solaris code.
3859 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3860 (LIB_MOTIF): Remove, configure takes care of this.
3861 (NOT_USING_MOTIF): Remove, unused.
3862 * xrdb.c: Remove #if 0-ed #include.
3863 (SYSV): Remove conditional for old SysV.
3864 * sysdep.c (closedir): Remove conditional code for Solaris,
3865 Solaris has closedir.
3866
3867 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3868
3869 * xsettings.c (read_and_apply_settings): Check if current_font is
3870 NULL before strcmp (Bug#6001).
3871
3872 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3873
3874 Clean up HP-UX files.
3875 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3876 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3877 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3878 * s/hpux10-20.h: ... to the only user, here.
3879
3880 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3881
3882 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3883 use buffer-local values of paragraph-start and paragraph-separate.
3884 <paragraph_start_re, paragraph_separate_re>: Rename from
3885 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3886 (Bug#5992)
3887
3888 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3889
3890 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3891 current_tool_bar_style are new.
3892 (store_config_changed_event): Rename from store_font_changed_event.
3893 (XSETTINGS_TOOL_BAR_STYLE): New define.
3894 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3895 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3896 HAVE_XFT.
3897 (something_changedCB): store_font_changed_event is now
3898 store_config_changed_event.
3899 (parse_settings): Rename from parse_xft_settings. Read
3900 non-xft xsettings outside #ifdef HAVE_XFT.
3901 (read_settings): Renamed from read_xft_settings.
3902 (apply_xft_settings): Take current settings as parameter. Do not
3903 call read_(xft)_settings.
3904 (read_and_apply_settings): New function.
3905 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3906 read_and_apply_settings if there are settings to be read.
3907 (init_xsettings): Renamed from init_xfd_settings.
3908 Call read_and_apply_settings unconditionally.
3909 (xsettings_initialize): Call init_xsettings.
3910 (Ftool_bar_get_system_style): New function.
3911 (syms_of_xsettings): Define Qmonospace_font_name and
3912 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3913 defsubr Stool_bar_get_system_style. Fprovide on
3914 dynamic-setting.
3915 Move misplaced HAVE_GCONF
3916
3917 * xsettings.h (Ftool_bar_get_system_style): Declare.
3918
3919 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3920 Qtext, Qboth, Qboth_horiz are new.
3921 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3922 Vtool_bar_style, tool_bar_max_label_size.
3923
3924 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3925
3926 * keyboard.c: QClabel is new.
3927 (parse_tool_bar_item): Take out QClabel from tool bar items.
3928 Try to construct a label if ther is no QClabel.
3929 (syms_of_keyboard): Intern :label as QClabel.
3930
3931 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3932 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3933 New.
3934
3935 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3936 dynamic-setting.el.
3937
3938 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3939 (xg_make_tool_item, xg_show_toolbar_item): New function.
3940 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3941 Call xg_make_tool_item to make a tool bar item.
3942 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3943
3944 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3945 into account for toolbars.
3946
3947 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3948
3949 * data.c (make_blv): Declarations before code (Bug#5993).
3950
3951 2010-04-21 Glenn Morris <rgm@gnu.org>
3952
3953 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3954 Define using autoconf, not cpp.
3955 (LIBXSM): New variable, set by autoconf.
3956 (LIBXT): Use $LIBXSM.
3957
3958 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3959
3960 Remove NOMULTIPLEJOBS, unused.
3961 * s/template.h (NOMULTIPLEJOBS):
3962 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3963
3964 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3965 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3966 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3967 detects -znocombreloc and passes it to the linker
3968 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3969
3970 2010-04-21 Glenn Morris <rgm@gnu.org>
3971
3972 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3973
3974 2010-04-21 Karel Klíč <kklic@redhat.com>
3975
3976 * Makefile.in (LIBSELINUX_LIBS): New.
3977 (LIBES): Add $LIBSELINUX_LIBS.
3978 * eval.c, lisp.h (call7): New function.
3979 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3980 (Ffile_selinux_context, Fset_file_selinux_context):
3981 New functions.
3982 (Fcopy_file): New parameter preserve-selinux-context.
3983 (Frename_file): Preserve selinux context when renaming by copy-file.
3984
3985 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3986 Eli Zaretskii <eliz@gnu.org>
3987
3988 Don't depend on cm.c or termcap.c on Windows, use stubs.
3989 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3990 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3991 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3992 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3993 (sys_tputs, sys_tgetstr): New stubs.
3994 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3995 (tputs, tgetstr): New; define to sys_*.
3996
3997 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3998
3999 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4000
4001 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4002
4003 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4004 Just signal a warning rather than an error when inside a let.
4005 (Fmake_variable_frame_local): Add the same test.
4006
4007 * font.c (syms_of_font): Make the style table vars read-only.
4008
4009 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4010 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4011
4012 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4013
4014 2010-04-20 Eli Zaretskii <eliz@gnu.org>
4015
4016 Fix R2L paragraph display on TTY.
4017
4018 * xdisp.c (unproduce_glyphs): New function.
4019 (display_line): Use it when produced glyphs are discarded from R2L
4020 glyph rows.
4021 (append_composite_glyph): In R2L rows, prepend the glyph rather
4022 than appending it.
4023
4024 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4025 rather than append it. Set up the resolved_level and bidi_type
4026 attributes of the appended glyph.
4027 (produce_special_glyphs): Mirror the backslash continuation
4028 character in R2L lines.
4029
4030 Implement display of R2L paragraphs in GUI sessions.
4031
4032 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4033 append_stretch_glyph.
4034 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4035 off-by-one error in computing x at end of text in the row.
4036 (append_stretch_glyph): In reversed row, prepend the glyph rather
4037 than append it. Set resolved_level and bidi_type of the glyph.
4038 (extend_face_to_end_of_line): If the row is reversed, prepend a
4039 stretch glyph whose width is such that the rightmost glyph will be
4040 drawn at the right margin of the window. Fix off-by-one error on
4041 TTY frames in testing whether a line needs face extension. Fix
4042 face extension at ZV. If this is the last glyph row, use
4043 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4044 region face.
4045 (set_cursor_from_row, display_line): Use
4046 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4047 row->continuation_lines_width.
4048 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4049 are at ZV. Fixes a crash when reseated to ZV by
4050 try_window_reusing_current_matrix.
4051 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4052 which happens with R2L glyph rows. Fixes a crash when inserting a
4053 character at end of an R2L line.
4054 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4055 treat them as having zero-width characters. Improve comments.
4056 Don't reverse pos_before and pos_after for reversed glyph rows.
4057 Set cursor.x to negative value when the cursor might be on the
4058 left fringe.
4059 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4060 left fringe, not the right one.
4061 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4062 (erase_phys_cursor): For reversed cursor_row, support cursor on
4063 the left fringe.
4064
4065 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4066 of continuation indicators on the fringes.
4067 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4068 left fringe.
4069
4070 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4071 draw cursor on the left fringe.
4072
4073 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4074 cursor on the left fringe.
4075
4076 * dispnew.c (update_text_area): Handle reversed desired rows when
4077 the cursor is on the left fringe.
4078 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4079 below, not by 0, for when the cursor is on the left fringe.
4080
4081 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4082
4083 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4084 widget is a scrollbar.
4085
4086 2010-04-20 Kenichi Handa <handa@m17n.org>
4087
4088 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4089 only when the arg CHARSET_LIST is nil.
4090
4091 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4092
4093 Make variable forwarding explicit rather the using special values.
4094 Basically, this makes the structure of buffer-local values and object
4095 forwarding explicit in the type of Lisp_Symbols rather than use
4096 special Lisp_Objects for that. This tends to lead to slightly more
4097 verbose code, but is more C-like, simpler, and makes it easier to make
4098 sure we handled all cases, among other things by letting the compiler
4099 help us check it.
4100 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4101 Removing forwarding objects.
4102 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4103 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4104 explicit rather than hiding them inside Lisp_Object "values".
4105 (XFWDTYPE): New macro.
4106 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4107 (XBUFFER_LOCAL_VALUE): Remove.
4108 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4109 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4110 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4111 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4112 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4113 Remove the Lisp_Misc_* header.
4114 (struct Lisp_Buffer_Local_Value): Redefine.
4115 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4116 (struct Lisp_Misc_Any): Add filler to get the right size.
4117 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4118 Lisp_Intfwd.
4119 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4120 (DEFVAR_KBOARD): Allocate a forwarding object.
4121 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4122 (let_shadows_global_binding_p): New function.
4123 (union Lisp_Val_Fwd): New type.
4124 (make_blv): New function.
4125 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4126 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4127 (swap_in_symval_forwarding, find_symbol_value, Fset)
4128 (let_shadows_buffer_binding_p, set_internal, default_value)
4129 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4130 (Fkill_local_variable, Fmake_variable_frame_local)
4131 (Flocal_variable_p, Flocal_variable_if_set_p)
4132 (Fvariable_binding_locus):
4133 * xdisp.c (select_frame_for_redisplay):
4134 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4135 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4136 * frame.c (store_frame_param):
4137 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4138 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4139 value structure.
4140 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4141 (clone_per_buffer_values): Only adjust markers into the current buffer.
4142 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4143 (Fbuffer_local_value, set_buffer_internal_1)
4144 (swap_out_buffer_local_variables):
4145 Adapt to the new symbol value structure.
4146 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4147 (defvar_per_buffer): Take a new arg for the fwd object.
4148 (buffer_lisp_local_variables): Return a proper alist (different fix
4149 for bug#4138).
4150 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4151 (Fgarbage_collect): Don't handle buffer_defaults specially.
4152 (mark_object): Handle new symbol value structure rather than the old
4153 special Lisp_Misc_* objects.
4154 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4155 * term.c (set_tty_color_mode):
4156 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4157 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4158 a buffer_local_flags.
4159 * print.c (print_object): Get rid of impossible forwarding objects.
4160
4161 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4162
4163 * bidi.c (bidi_get_type, bidi_get_category)
4164 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
4165 (bidi_type_of_next_char, bidi_level_of_next_char):
4166 Declare static. Use `INLINE' rather than `inline'.
4167
4168 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
4169
4170 * dired.c (Ffile_attributes): Fix typo in docstring.
4171
4172 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4173
4174 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4175 NSInteger (Bug#5811).
4176
4177 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4178
4179 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4180 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4181
4182 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4183
4184 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4185
4186 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4187
4188 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4189 terminal frames (Bug#5837).
4190
4191 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4192
4193 * .gdbinit (xsubchartable): New command.
4194
4195 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4196
4197 * xdisp.c (display_line): Don't write beyond the last glyph row in
4198 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4199 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4200 and
4201 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4202
4203 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4204
4205 * alloc.c (Fpurecopy): Hash-cons if requested.
4206 (syms_of_alloc): Update purify-flag docstring.
4207
4208 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4209
4210 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4211 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4212
4213 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4214
4215 Fix a crash when an NSM character is inserted at BEGV.
4216
4217 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4218 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4219 NEUTRAL_B or UNKNOWN_BT.
4220
4221 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4222
4223 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4224 other rows with cursor unless they are different from this row and
4225 this row is part of a continued line. (Bug#5943)
4226
4227 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4228
4229 * s/freebsd.h: Restore osreldate.h include.
4230 Suggested by Naohiro Aota.
4231
4232 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4233
4234 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4235
4236 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4237
4238 * s/cygwin.h: Avoid linking against static libgcc.
4239
4240 2010-04-15 Juri Linkov <juri@jurta.org>
4241
4242 * window.c: Add Qscroll_command.
4243 Remove Vscroll_preserve_screen_position_commands.
4244 (window_scroll_pixel_based, window_scroll_line_based): Check the
4245 `scroll-command' property on the last command instead of searching
4246 the last command in Vscroll_preserve_screen_position_commands.
4247 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4248 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4249 (scroll-preserve-screen-position): Doc fix.
4250 (Vscroll_preserve_screen_position_commands): Remove variable.
4251
4252 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4253
4254 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4255
4256 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4257
4258 Reduce cpp use in Makefile.in.
4259 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4260 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4261 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4262 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4263 (CRT0_COMPILE): Remove, inline it in the only user.
4264
4265 2010-04-14 Juri Linkov <juri@jurta.org>
4266
4267 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4268 `scroll-up-command' and `M-v' from `scroll-down' to
4269 `scroll-down-command'.
4270
4271 2010-04-14 Juri Linkov <juri@jurta.org>
4272
4273 * window.c (Vscroll_preserve_screen_position_commands): New variable
4274 with the default value as the list of Qscroll_down and Qscroll_up.
4275 (window_scroll_pixel_based, window_scroll_line_based): Search the
4276 last command in the list Vscroll_preserve_screen_position_commands
4277 instead of comparing with Qscroll_up and Qscroll_down.
4278
4279 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4280
4281 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4282 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4283 does that.
4284
4285 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4286 to zero.
4287
4288 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4289
4290 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4291
4292 Try to solve the problem of spurious EOF chars in long lines of text
4293 sent to interactive subprocesses.
4294 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4295 (system_process_attributes): Remove unused var `ttotal'.
4296 * process.c (send_process): Don't bother breaking long line with EOF
4297 chars when talking to ttys any more.
4298 (wait_reading_process_output): Output a warning when called in such
4299 a way that it could block without being interruptible.
4300
4301 Try to detect file modification within the same second.
4302 * buffer.h (struct buffer): New field modtime_size.
4303 * buffer.c (reset_buffer): Initialize it.
4304 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4305 (Fverify_visited_file_modtime): Check it.
4306 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4307 (Fset_visited_file_modtime): Set (or clear) it.
4308
4309 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4310
4311 * process.c (status_notify): Remove unused var `ro'.
4312
4313 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4314
4315 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4316 more than one visual (Bug#5938).
4317
4318 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4319
4320 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4321 Undefine.
4322
4323 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4324
4325 Remove C_SWITCH_SYSTEM_TEMACS.
4326 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4327 (malloc, realloc, free): Use emacs, not temacs for conditional
4328 definition.
4329
4330 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4331 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4332
4333 Use autoconf, not cpp for some variables.
4334 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4335 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4336 (ALL_CFLAGS): Use them as make variables.
4337 (really-lwlib, really-oldXMenu): Do not pass them.
4338
4339 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4340
4341 * xmenu.c (apply_systemfont_to_dialog): New.
4342 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4343
4344 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4345
4346 * process.c (exec_sentinel): Preserve current-buffer.
4347
4348 * process.c (read_process_output): Move the save-current-buffer to
4349 apply to both the filter and the non-filter branches.
4350
4351 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4352
4353 * s/msdos.h (UNEXEC): New definition.
4354
4355 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4356
4357 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4358 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4359
4360 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4361 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4362 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4363 TRY_WINDOW_CHECK_MARGINS.
4364
4365 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
4366 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4367 width only when it is for padding.
4368
4369 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4370
4371 * xfns.c (Fx_show_tip): Call try_window in a loop until
4372 fonts_changed_p is zero (Bug#2423).
4373
4374 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4375
4376 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4377 the end of TEXT_AREA. (Bug#5856)
4378
4379 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4380
4381 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4382 HAVE_GCONF.
4383
4384 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4385
4386 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4387 prev.orig_type, for resolving type of NSM. (Bug#5858)
4388
4389 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4390
4391 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4392 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4393 in current_font.
4394 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
4395 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4396 New functions.
4397 (syms_of_xsettings): Initialize current_font.
4398 defsubr Sfont_get_system_normal_font.
4399
4400 * xsettings.h (Ffont_get_system_normal_font)
4401 (xsettings_get_system_normal_font): Declare.
4402
4403 * xfns.c (extern xlwmenu_default_font): Remove.
4404 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4405 to xlwmenu.c.
4406
4407 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4408 menu items in UTF-8.
4409
4410 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4411 (apply_systemfont_to_menu): New function.
4412 (set_frame_menubar, create_and_show_popup_menu): Call
4413 apply_systemfont_to_menu.
4414
4415 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4416
4417 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4418 FRAME_LINE_TO_PIXEL_Y.
4419
4420 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4421 pixelwidth/height.
4422
4423 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4424
4425 Simplify code for HP machines.
4426 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4427 for GNU_LINUX, not needed.
4428 (UNEXEC, NEED_BSDTTY): Move definitions...
4429 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4430
4431 * m/iris4d.h (UNEXEC): Move definition ...
4432 * s/irix6-5.h (UNEXEC): ... here.
4433
4434 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4435
4436 * xfns.c (set_machine_and_pid_properties): New function.
4437 (Fx_create_frame): Call set_machine_and_pid_properties.
4438
4439 2010-04-03 Eli Zaretskii <eliz@gnu.org>
4440
4441 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4442 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4443 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4444
4445 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4446 in this function. (Bug#5703)
4447
4448 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
4449
4450 * nsterm.h: Fix last change.
4451
4452 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4453
4454 * m/intel386.h (NO_REMAP): Move definition ...
4455 * s/msdos.h (NO_REMAP): ... here.
4456
4457 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4458
4459 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4460 used on those platforms.
4461
4462 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4463
4464 Remove extern errno declarations.
4465 * xterm.c:
4466 * xrdb.c:
4467 * w32term.c:
4468 * unexec.c:
4469 * unexaix.c:
4470 * sysdep.c:
4471 * process.c:
4472 * lread.c:
4473 * keyboard.c:
4474 * floatfns.c:
4475 * filelock.c:
4476 * fileio.c:
4477 * emacs.c (main):
4478 * ecrt0.c:
4479 * dispnew.c:
4480 * callproc.c:
4481 * buffer.c: Remove errno extern declarations.
4482 * s/netbsd.h (NEED_ERRNO): Remove.
4483
4484 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4485
4486 Remove all uses of LIBX11_SYSTEM.
4487 * Makefile.in (LIBX11_SYSTEM): Remove.
4488 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4489 instead.
4490
4491 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4492
4493 Remove support for DJGPP v1.x (bug#5813).
4494
4495 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4496 * s/msdos.h:
4497 * unexec.c (make_hdr, copy_text_and_data):
4498 * sysdep.c (wait_for_termination, sys_subshell):
4499 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4500 (IT_set_terminal_modes, __write, _rename, gethostname)
4501 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4502 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4503 the value of __DJGPP__.
4504 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4505 compatibility code.
4506 * lread.c:
4507 * gmalloc.c (memalign):
4508 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4509 * emacs.c (main):
4510 * dosfns.c (init_dosfns):
4511 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4512
4513 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4514
4515 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4516 string with `cursor' property comes from an `after-string'
4517 overlay. (Bug#5816)
4518
4519 2010-04-01 Glenn Morris <rgm@gnu.org>
4520
4521 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4522 Define as Makefile variables.
4523 (LIBX): Use above variables rather than directly using autoconf.
4524
4525 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4526
4527 Clean up BSD_SYSTEM use.
4528 * xterm.c:
4529 * process.c:
4530 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4531 for including <sys/ioctl.h>.
4532 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4533 code is only used for MSDOS.
4534
4535 2010-03-31 Juri Linkov <juri@jurta.org>
4536
4537 * image.c: Add `Qextension_data'.
4538 (syms_of_image): Initialize and staticpro `Qextension_data'.
4539 (Fimage_metadata): Rename from `Fimage_extension_data'.
4540 (gif_load): Put GIF extension data to the property
4541 `Qextension_data'.
4542
4543 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4544
4545 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4546 * nsterm.h: Fix prototype.
4547
4548 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4549
4550 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4551 trailing whitespace in right-to-left rows.
4552
4553 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4554
4555 Get rid of the direct_output optimizations.
4556 * keyboard.c (nonundocount): Remove extern declaration.
4557 (command_loop_1): Remove brittle optimisation for cheap and
4558 common operations.
4559 * xdisp.c (redisplay_internal): Don't bother checking
4560 redisplay_performed_directly_p any more.
4561 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4562 any more.
4563 * dispnew.c (redisplay_performed_directly_p)
4564 (direct_output_for_insert, direct_output_forward_char):
4565 * dispextern.h (redisplay_performed_directly_p)
4566 (direct_output_for_insert, direct_output_forward_char): Remove.
4567 * cmds.c (nonundocount): Make it static.
4568
4569 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4570
4571 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4572
4573 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4574
4575 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4576 invisible (Bug#5766).
4577
4578 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4579
4580 * xdisp.c (x_consider_frame_title, update_window_cursor):
4581 Remove HAVE_NS conditionals.
4582 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4583
4584 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4585 filename for the title.
4586 (ns_set_doc_edited): Do nothing if the selected window is a
4587 minibuffer window.
4588
4589 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4590 ns_set_doc_edited.
4591
4592 * nsterm.m: Remove unneeded prototype.
4593
4594 2010-03-31 Glenn Morris <rgm@gnu.org>
4595
4596 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4597 in the DOC file. (Bug#5336)
4598
4599 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4600
4601 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4602
4603 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4604
4605 * window.c (keys_of_window): Remove redundant/overridden bindings.
4606
4607 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4608
4609 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4610 Restore original behavior when the iterator is not bidi_p.
4611
4612 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4613
4614 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4615
4616 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4617
4618 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4619 are outside the range of cached character positions.
4620
4621 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4622
4623 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4624
4625 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4626
4627 Initial support for bidirectional editing.
4628
4629 * Makefile.in (obj): Include bidi.o.
4630 (bidi.o): New target.
4631
4632 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4633 ($(BLD)/bidi.$(O)): New target.
4634
4635 * bidi.c: New file.
4636
4637 * buffer.h (struct buffer): New members bidi_display_reordering
4638 and bidi_paragraph_direction.
4639
4640 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4641 and bidi_paragraph_direction.
4642 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4643 and bidi-paragraph-direction.
4644 (Fbuffer_swap_text): Swap the values of
4645 bidi_display_reordering and bidi_paragraph_direction.
4646
4647 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4648 (bidi_type_t, bidi_dir_t): New types.
4649 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4650 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4651 prev_stop, base_level_stop, and eol_pos.
4652 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4653 (IT_STACK_SIZE): Enlarge to 5.
4654 (struct glyph_row): New member reversed_p.
4655 <string_buffer_position>: Update prototype.
4656 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4657 glyph_row if bidi_it.paragraph_dir == R2L.
4658 (struct glyph): New members resolved_level and bidi_type.
4659
4660 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4661 processing or buffer's direction is right-to-left.
4662 (prepare_desired_row): Preserve the reversed_p flag.
4663 (row_equal_p): Compare the reversed_p attributes as well.
4664
4665 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4666 bidi_init_it and set it->paragraph_embedding from the current
4667 buffer's value of bidi_paragraph_direction.
4668 (reseat_1): Initialize bidi_it.first_elt.
4669 (set_iterator_to_next, next_element_from_buffer): Use the value of
4670 paragraph_embedding to determine the paragraph direction.
4671 (set_iterator_to_next): Under bidi reordering, call
4672 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4673 new_paragraph flag is set in the bidi iterator.
4674 (next_element_from_buffer): If bidi_it.first_elt is set,
4675 initialize paragraph direction and find the first character to
4676 display in the visual order. If reseated to a middle of a line,
4677 prime the bidi iterator starting at the line's beginning. Handle
4678 the situation where we overstepped stop_charpos due to
4679 non-linearity of the bidi iteration. Likewise for when we back up
4680 beyond the previous stop_charpos. When moving across stop_charpos,
4681 record it in prev_stop.
4682 (display_line): Set row->end and it->start for the next row to the
4683 next character in logical order. Always extend reversed_p rows to
4684 the end of line, even if they end at ZV. Copy the reversed_p flag
4685 to the next glyph row. Keep calling set_cursor_from_row for
4686 bidi-reordered rows even if we already have a possible candidate
4687 for cursor position. Set row_end after all the row's glyphs have
4688 been produced, by looping over the glyphs. Record the position
4689 after EOL in it->eol_pos, and use it to set end_pos of the last
4690 row produced for a continued line.
4691 <Qright_to_left, Qleft_to_right>: New variables.
4692 (syms_of_xdisp): Initialize and staticpro them.
4693 (string_buffer_position_lim): New function.
4694 (string_buffer_position): Most of code moved to
4695 string_buffer_position_lim. Last argument and return value are
4696 now EMACS_INT; all callers changed.
4697 (set_cursor_from_row): Rewritten to support bidirectional text and
4698 reversed glyph rows.
4699 (text_outside_line_unchanged_p, try_window_id): Disable
4700 optimizations if we are reordering bidirectional text and the
4701 paragraph direction can be affected by the change.
4702 (append_glyph, append_composite_glyph)
4703 (produce_image_glyph, append_stretch_glyph): Set the
4704 resolved_level and bidi_type members of each glyph.
4705 (append_glyph): If the glyph row is reversed, prepend the glyph
4706 rather than appending it.
4707 (handle_stop_backwards): New function.
4708 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4709 (reseat): call handle_stop_backwards to recompute prev_stop and
4710 base_level_stop for the new position.
4711 (handle_invisible_prop): Under bidi iteration, skip invisible text
4712 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4713 paragraph direction. Update IT->prev_stop after skipping
4714 invisible text.
4715 (move_it_in_display_line_to): New variables prev_method
4716 and prev_pos. Compare for strict equality in
4717 BUFFER_POS_REACHED_P.
4718 (try_cursor_movement): Examine all the candidate rows that occlude
4719 point, to return the best match. If rows are bidi-reordered
4720 and point moved backwards, back up to the row that is not a
4721 continuation line, and start looking for a suitable row from
4722 there.
4723
4724 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4725 rather than appending, if the glyph_row's reversed_p flag is set.
4726 Set the resolved_level and bidi_type members of each glyph.
4727
4728 * .gdbinit (pbiditype): New command.
4729 (pgx): Use it to display bidi level and type of the glyph.
4730 (pitx): Display some bidi information about the iterator.
4731 (prowlims, pmtxrows): New commands.
4732
4733 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4734
4735 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4736 * s/usg5-4.h (LIBS_DEBUG):
4737 * s/irix6-5.h (C_DEBUG_SWITCH):
4738 * s/gnu-linux.h (LIBS_DEBUG):
4739 * s/darwin.h (LIBS_DEBUG):
4740 * s/bsd-common.h (LIBS_DEBUG):
4741 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4742 * m/iris4d.h (LIBS_DEBUG):
4743 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4744
4745 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4746 (LIBS_DEBUG): Remove definition.
4747
4748 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4749
4750 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4751 Windows.
4752
4753 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4754
4755 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4756 `connect' (Bug#5723).
4757
4758 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4759
4760 * process.c (Fmake_network_process): Call `select' for interrupted
4761 `connect' rather than creating new socket (Bug#5173).
4762
4763 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4764
4765 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4766
4767 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4768
4769 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4770
4771 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4772
4773 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4774 XLoadQueryFont.
4775
4776 2010-03-24 Kenichi Handa <handa@m17n.org>
4777
4778 * coding.c (decode_coding_ccl): Fix previous change for the
4779 multibyte case.
4780 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4781 case that the output buffer is fullfilled.
4782 (encode_coding): Setup ccl program here.
4783
4784 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4785
4786 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4787
4788 Simplify LIBS_MACHINE definitions.
4789 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4790 * m/iris4d.h (LIBS_MACHINE): Likewise.
4791 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4792 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4793 * s/netbsd.h: Remove commented out code.
4794
4795 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4796
4797 Remove dead code dealing with POSIX_SIGNALS.
4798 * atimer.c (set_alarm): Remove dead code, all USG systems define
4799 POSIX_SIGNALS.
4800 * data.c (arith_error): Likewise.
4801 * keyboard.c (input_available_signal, handle_user_signal)
4802 (interrupt_signal): Likewise.
4803 * process.c (sigchld_handler): Likewise.
4804 (create_process): Remove if 0 code. Remove HPUX conditional when
4805 !defined (POSIX_SIGNALS), it cannot be true.
4806 * syssignal.h: Remove USG5_4 and USG conditionals when
4807 !POSIX_SIGNALS, they cannot be true.
4808
4809 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4810 NO_SOCK_SIGIO, not used anymore.
4811
4812 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4813
4814 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4815 support vax on BSDs.
4816
4817 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4818 * s/aix4-2.h (ORDINARY_LINK): ... here.
4819
4820 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4821
4822 * Makefile.in (abs_builddir): Define.
4823 (bootstrap_exe): Use it.
4824 (VPATH): Use $(srcdir) instead of @srcdir@.
4825
4826 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4827
4828 * Makefile.in (bootstrap_exe): Use an absolute name.
4829
4830 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4831
4832 Remove support for old GNU/Linux using libc version 5.
4833 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4834 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4835
4836 Consolidate redundant definitions in s/bsd-common.h.
4837 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4838 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4839 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4840 doing it in all files that include this one.
4841 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4842 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4843 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4844 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4845 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4846 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4847 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4848 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4849 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4850
4851 Consolidate redundant definitions.
4852 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4853 it's undefined in all files that include this one.
4854 (POSIX_SIGNALS): Define here instead of doing it in all files that
4855 include this one.
4856 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4857 (POSIX_SIGNALS): Do not define.
4858 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4859 (POSIX_SIGNALS): Do not define.
4860 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4861 (POSIX_SIGNALS): Do not define.
4862
4863 Remove support for old UNIX System V systems.
4864 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4865 * s/usg-5-4-2.h: Remove.
4866
4867 Remove support for Solaris on PPC and for old versions.
4868 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4869 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4870 that cancel each other.
4871 * s/sol2-3.h:
4872 * s/sol2-4.h:
4873 * s/sol2-5.h: Remove.
4874 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4875 (NO_REMAP): Remove, unused.
4876 (UNEXEC): Move definition ...
4877 * s/aix4-2.h (UNEXEC): ... here.
4878
4879 * s/openbsd.h: Remove support for non-ELF and for systems that do
4880 not support shared libraries.
4881 * s/netbsd.h:
4882 * s/freebsd.h: Likewise.
4883
4884 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4885
4886 Remove non-working support for lynxos 3.0.
4887 * s/lynxos.h: Remove file.
4888
4889 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4890 COFF_BSD_SYMBOLS, nothing defines it anymore.
4891
4892 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4893
4894 Remove obsolete uses of HAVE_SHM.
4895 * emacs.c (standard_args):
4896 (Fdump_emacs):
4897 (syms_of_emacs): Remove code depending on HAVE_SHM.
4898
4899 * alloc.c: Remove HAVE_SHM dependent definition.
4900
4901 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4902
4903 2010-03-18 Glenn Morris <rgm@gnu.org>
4904
4905 * emacs.c (USAGE4): Hard-code bug address.
4906 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4907 (bug_reporting_address): Remove.
4908 (main): Don't call bug_reporting_address.
4909
4910 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4911 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4912
4913 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4914
4915 * xfns.c (Fx_create_frame):
4916 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4917 on left.
4918
4919 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4920
4921 * editfns.c (Fformat): Account for string precision when computing
4922 field width (Bug#5710).
4923
4924 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4925
4926 * xfns.c (Fx_create_frame): Set default to Qright.
4927
4928 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4929 all window systems.
4930
4931 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4932
4933 These changes remove termcap.c from the build on Posix platforms.
4934 * Makefile.in (termcapobj): Move termcap.o from here...
4935 (MSDOS_OBJ): ...to here.
4936 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4937 now identical to when LIBS_TERMCAP is defined.
4938
4939 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4940
4941 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4942
4943 * config.in: Regenerated. (See top-level ChangeLog.)
4944
4945 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4946
4947 * Branch for 23.2.
4948
4949 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4950
4951 Cleanup setup of gl_state in various parts of the code.
4952 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4953 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4954 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4955 (skip_chars):
4956 * regex.c (regex_compile): Use it.
4957 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4958 it's now set in regex_compile when/if we need it.
4959
4960 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4961
4962 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4963 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4964 (QUIT): Use it to consolidate code and remove redundancy.
4965 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4966
4967 * regex.c (regex_compile): Setup gl_state as well.
4968
4969 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4970 (in_classes): Use CONSP before XCAR/XCDR.
4971
4972 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4973
4974 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4975 definitions, so that keyboard macros are correctly handled
4976 (Bug#5481).
4977
4978 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4979
4980 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4981 text that could be relocated inside the call to emacs_mule_char.
4982 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4983 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4984
4985 2010-03-02 Kenichi Handa <handa@m17n.org>
4986
4987 * character.c (parse_str_as_multibyte): Fix handling of the
4988 multibyte form of raw-bytes.
4989 (str_as_multibyte): Likewise.
4990
4991 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4992 form of raw-bytes.
4993
4994 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4995
4996 * charset.c (load_charset_map_from_file)
4997 (load_charset_map_from_vector): Zero out allocated
4998 charset_map_entries before using them.
4999
5000 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5001
5002 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5003
5004 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
5005
5006 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5007 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
5008
5009 2010-02-26 Kenichi Handa <handa@m17n.org>
5010
5011 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5012
5013 * xdisp.c (reseat_to_string): Fix previous change.
5014
5015 2010-02-26 David Reitter <david.reitter@gmail.com>
5016
5017 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5018 Lisp_Object (Bug#4736).
5019
5020 2010-02-25 Kenichi Handa <handa@m17n.org>
5021
5022 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5023
5024 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5025
5026 * xterm.c (XTflash): Move declarations before statements.
5027
5028 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5029 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5030 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5031 (xg_create_tool_bar): Remove unused variables.
5032 (x_wm_set_size_hint): Move declarations before statements.
5033 (xg_create_frame_widgets): Remove variable grav.
5034
5035 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
5036
5037 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5038
5039 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5040
5041 * term.c (fatal): Add a final \n if needed (bug#5596).
5042
5043 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
5044
5045 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5046
5047 2010-02-18 Glenn Morris <rgm@gnu.org>
5048
5049 * callint.c (Finteractive): Doc fix.
5050
5051 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5052
5053 * coding.c (record_conversion_result):
5054 Handle CODING_RESULT_INSUFFICIENT_DST.
5055 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5056 memory allocation error.
5057
5058 2010-02-17 Kenichi Handa <handa@m17n.org>
5059
5060 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5061 Fix for the case that the output buffer is fullfilled.
5062 (decode_coding): Setup ccl program here. Keep looping when the
5063 decoder stopped because the output buffer is
5064 fullfilled (bug#5534).
5065
5066 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5067
5068 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5069
5070 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
5071 bug #5571.
5072 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
5073 overdrawn.
5074
5075 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5076
5077 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5078 doing_interact here.
5079 (ice_connection_closed): New function.
5080 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5081 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5082 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5083 returns I/O error.
5084 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5085 bug #5512.
5086
5087 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
5088
5089 * nsfont.m (nsfont_open): The system's value for the font descent
5090 is negative, so round it down to avoid clipping.
5091
5092 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
5093
5094 * charset.c (load_charset_map_from_file)
5095 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
5096 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
5097
5098 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
5099
5100 * charset.c (load_charset_map_from_file): Allocate large
5101 charset_map_entries structure on the heap rather than the stack.
5102 (Bug#5526).
5103
5104 2010-01-31 Kenichi Handa <handa@m17n.org>
5105
5106 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
5107 size in NAME is invalid, return -1 (Bug#5396).
5108
5109 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
5110
5111 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5112 <deactivated@gmail.com> (Bug#3605).
5113
5114 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
5115
5116 * fileio.c (Frename_file): Correctly rename symlinks to
5117 directories (Bug#5496).
5118
5119 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5120
5121 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5122
5123 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5124
5125 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5126
5127 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
5128
5129 * frame.c (DEFAULT_ROWS): Change default to 35.
5130
5131 * xfns.c (x_default_font_parameter): Change default XFT font to
5132 monospace-10 (Bug#3643).
5133
5134 2010-01-29 Eli Zaretskii <eliz@gnu.org>
5135
5136 * w32inevt.c (key_event): Remove unnecessary comparison of
5137 event->uChar.AsciiChar with 128.
5138
5139 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
5140
5141 * fileio.c (Frename_file): Fix last change (Bug#5487).
5142
5143 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5144
5145 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5146
5147 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5148
5149 * xfns.c (Fx_create_frame): Remove window size matching code from
5150 2010-01-15.
5151 (x_get_current_desktop, x_get_desktop_workarea): Remove.
5152
5153 2010-01-27 Jason Rumney <jasonr@gnu.org>
5154
5155 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
5156 (key_event): Use unicode for characters 128 and higher (Bug#4567).
5157
5158 2010-01-27 Kenichi Handa <handa@m17n.org>
5159
5160 * regex.c (analyse_first): Fix setting of fastmap for unibyte
5161 pattern string (Bug#4209).
5162
5163 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
5164
5165 * fileio.c (Frename_file): Call copy-directory and
5166 delete-directory for directories, in order to handle cross-device
5167 renaming (Bug#3353).
5168
5169 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5170
5171 * xfns.c (Fx_create_frame): If frame height is too big, try
5172 sizes 24 and 10. Bug #3643.
5173
5174 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5175
5176 Try and fix bug#788, hopefully for real this time.
5177 * keymap.c (shadow_lookup): Add `remap' arg.
5178 (describe_map, describe_vector): Update calls to shadow_lookup.
5179 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5180 `remapped' so this flag is applicable to `sequence'. Be careful to
5181 perform remapping during shadow_lookup check of remapped_sequences.
5182
5183 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5184
5185 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5186 png_check_sig, which has been removed in libpng 1.4.
5187
5188 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5189
5190 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5191 lacks this header file).
5192
5193 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5194
5195 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5196 as in Emacs 22.
5197
5198 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5199
5200 * lisp.h (make_pure_string): String pointer arg now points to const.
5201
5202 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5203 args now point to const.
5204
5205 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5206
5207 * lread.c (Fload): Don't treat files without .elc extension as
5208 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5209 them. (bug#5303)
5210
5211 2010-01-20 Kenichi Handa <handa@m17n.org>
5212
5213 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5214 treat the source as actual byte sequence.
5215
5216 2010-01-19 Alan Mackenzie <acm@muc.de>
5217
5218 Fix spurious before-change-functions invocation from (insert ?\n).
5219 * textprop.c (set_text_properties): Rename parameter
5220 `signal_after_change_p' to `coherent_change_p', and make the
5221 invocation of `modify_region' conditional on it.
5222
5223 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5224
5225 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5226 for debug purpose.
5227 (syms_of_xsettings): Declare xft-settings.
5228
5229 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5230
5231 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5232
5233 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5234
5235 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5236
5237 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5238
5239 * emacs.c (standard_args): Adjust arg priorities to reflect how
5240 they are processed in startup.el.
5241
5242 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5243
5244 * Makefile.in (lisp, shortlisp): Update.
5245
5246 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5247
5248 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5249 code, link the new kboard into all_kboard before running Lisp code,
5250 and protect the new terminal with GCPRO (Bug#5365).
5251 (x_term_init): Remove unused var `atom'.
5252 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5253
5254 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5255
5256 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5257 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5258 to find out usable size of the desktop. Don't make frames larger than
5259 this. Bug #3643.
5260
5261 2010-01-15 Kenichi Handa <handa@m17n.org>
5262
5263 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5264
5265 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5266
5267 * nsterm.m (Qnone): Define.
5268
5269 * nsfns.m (Qnone): Move definition to nsterm.m.
5270
5271 2010-01-14 Kenichi Handa <handa@m17n.org>
5272
5273 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5274 systems.
5275
5276 2010-01-14 Kenichi Handa <handa@m17n.org>
5277
5278 Make auto-composition work on all buffers even if they are
5279 fundamental mode.
5280
5281 * composite.c (Vauto_composition_mode): New variable.
5282 (composition_compute_stop_pos): Check Vauto_composition_mode
5283 instead of Vauto_composition_function.
5284 (composition_adjust_point, Ffind_composition_internal): Likewise.
5285 (syms_of_composite): Declare Lisp variable
5286 "auto-composition-mode" here.
5287
5288 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5289
5290 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5291 during call to vendor-specific-keysyms (Bug#5365).
5292
5293 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5294
5295 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5296 Call SIGNAL_THREAD_CHECK (Bug#5333).
5297
5298 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5299 Call SIGNAL_THREAD_CHECK.
5300
5301 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5302
5303 Try to fix bug#5314. This is probably not the final word, tho.
5304 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5305 recent-auto-save-p as a side-effect.
5306 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5307 * buffer.c (Fkill_buffer, reset_buffer):
5308 * editfns.c (Fsubst_char_in_region):
5309 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5310 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5311
5312 2010-01-13 Kenichi Handa <handa@m17n.org>
5313
5314 Display buffer name, etc. in mode line by composing correctly.
5315
5316 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5317 STRING is not nil.
5318 (display_mode_element): Adjust for the change of
5319 decode_mode_spec and display_line.
5320 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5321 (display_string): Handle the case that STRING is non-null and
5322 LISP_STRING is not nil.
5323
5324 * xterm.c (x_draw_composite_glyph_string_foreground):
5325 Pay attention to s->face->overstrike.
5326
5327 * composite.c (composition_reseat_it): Don't check PT if STRING is
5328 non nil.
5329
5330 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5331
5332 * keyboard.c (read_char): Don't apply previous change when current
5333 buffer is unchanged by command execution.
5334
5335 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5336
5337 * keyboard.c (read_char): Return after executing from special map.
5338
5339 2010-01-12 Glenn Morris <rgm@gnu.org>
5340
5341 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5342 bug-gnu-emacs rather than emacs-pretest-bug.
5343
5344 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
5345
5346 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5347 initializing the Lisp variables that depend on them.
5348
5349 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5350
5351 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5352 Clear areas that will not be updated after change of menu bar lines.
5353 Clear the menu bar window's current matrix when the window gets empty.
5354
5355 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
5356
5357 * intervals.h, textprop.c (extend_property_ranges): Return value
5358 and args changed. Discard properties that begin at or after the
5359 new end (Bug#5306).
5360
5361 * editfns.c (Fformat): Caller changed.
5362
5363 * nsterm.m (ns_set_default_prefs): Delete function.
5364 (syms_of_nsterm): Initialize ns_command_modifier,
5365 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5366 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5367
5368 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5369 position (Bug#4040).
5370
5371 2010-01-09 Eli Zaretskii <eliz@gnu.org>
5372
5373 * editfns.c (Ffloat_time): Doc fix.
5374
5375 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5376
5377 * xfns.c (Fx_create_frame): Don't create frame larger than display
5378 by default bug#3643.
5379
5380 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5381
5382 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5383 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5384 windows above internal border.
5385
5386 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5387 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5388 windows above internal border.
5389
5390 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5391 tool bar windows specially.
5392
5393 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5394
5395 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5396 specially.
5397 (XTflash): Take account of menu bar height.
5398
5399 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5400 specially.
5401
5402 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5403
5404 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5405 also be true before we can return early (bug #5339).
5406
5407 2010-01-06 David Reitter <david.reitter@gmail.com>
5408
5409 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5410 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5411 (Bug#3233).
5412
5413 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5414
5415 * font.c (font_open_entity): Enable chache and call cached_font_ok
5416 for the driver if defined.
5417 (QCuser_spec): New symbol.
5418 (font_spec_from_name): Save name as user-spec.
5419 (font_load_for_lface): Keep user-spec instead of name.
5420 (font_open_by_name): Save name as user-spec.
5421 (syms_of_font): Initialize QCuser_spec.
5422 (font_clear_prop): Clear name if it exists in font (bug#5157).
5423
5424 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5425 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5426 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5427
5428 * font.h (struct font_driver): Add cached_font_ok.
5429
5430 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5431
5432 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5433
5434 * xterm.c (x_new_font): Move code for setting rows/cols before
5435 resizing ...
5436 (x_set_window_size): ... to here. Bug #2568.
5437
5438 * gtkutil.c (xg_clear_under_internal_border): New function.
5439 (xg_frame_resized, xg_frame_set_char_size):
5440 Call xg_clear_under_internal_border.
5441 (xg_update_scrollbar_pos): Clear under old scroll bar position.
5442
5443 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
5444
5445 * keyboard.c (read_key_sequence): Catch keyboard switch after
5446 making a new tty frame (Bug#5095).
5447
5448 2010-01-05 Kenichi Handa <handa@m17n.org>
5449
5450 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5451
5452 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5453
5454 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5455 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5456 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5457
5458 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
5459
5460 * dbusbind.c (xd_add_watch): Improve debug message.
5461 (xd_remove_watch): Improve debug message. If DATA is the session
5462 bus, unset D-Bus session environment.
5463 (Fdbus_init_bus): Pass the bus as argument to
5464 dbus_connection_set_watch_functions. (Bug#5283)
5465
5466 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5467
5468 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5469
5470 * lread.c (syms_of_lread): Make it clearer that these are the
5471 names of loaded files (Bug#5068).
5472
5473 * eval.c (run_hook_with_args): Handle the case where the global
5474 value has the obsolete single-function form (Bug#5026).
5475
5476 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5477
5478 * minibuf.c (Fall_completions): Minor optimization.
5479
5480 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5481
5482 * .gdbinit (pgx): Fix display of composite glyphs.
5483 Display cmp.from and cmp.to as well.
5484 (pitx): Fix last change.
5485
5486 2009-12-25 Kenichi Handa <handa@m17n.org>
5487
5488 * composite.h (composition_adjust_point): Update prototype.
5489
5490 * composite.c (composition_reseat_it): Don't make a composition
5491 spanning over point.
5492 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5493 composable characters.
5494 (composition_adjust_point): New arg NEW_PT. Callers changed.
5495
5496 * keyboard.c (command_loop_1): Force redisplay if the last point
5497 was within a composition.
5498 (adjust_point_for_property): Don't adjust point for automatic
5499 composition when called after buffer modification.
5500
5501 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5502
5503 * .gdbinit (pitx): Don't use enum names, use their values.
5504 Remove reference to non-existing value GET_FROM_COMPOSITION.
5505 (pgx): Don't use enum names, use their values.
5506 (pitmethod): New helper command.
5507 (pitx): Use it to display iteration method.
5508 (pgrowit): New command.
5509
5510 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5511
5512 Update dependencies in Makefile.in.
5513
5514 * Makefile.in (alloc.o): Depend on termhooks.h.
5515 (atimer.o): Depend on blockinput.h.
5516 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5517 and frame.h.
5518 (callint.o): Depend on systime.h, coding.h, and composite.h.
5519 (callproc.o): Depend on buffer.h.
5520 (casefiddle.o): Don't depend on charset.h.
5521 (casetab.o): Depend on character.h.
5522 (ccl.o): Depend on composite.h.
5523 (chartab.o): Depend on ccl.h.
5524 (cm.o): Depend on dispextern.h.
5525 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5526 (coding.o): Don't depend on $(INTERVALS_H).
5527 (composite.o): Don't depend on dispextern.h explicitly (it's in
5528 $(INTERVALS_H)). Depend on ccl.h.
5529 (data.o): Depend on systime.h, coding.h, composite.h,
5530 dispextern.h, font.h, and ccl.h.
5531 (dired.o): Depend on composite.h.
5532 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5533 composite.h (it's in $(INTERVALS_H)).
5534 (doc.o): Depend on systime.h, coding.h, and composite.h.
5535 (editfns.o): Don't depend explicitly on dispextern.h.
5536 (emacs.o): Depend on frame.h and coding.h.
5537 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5538 (fileio.o): Depend on frame.h and commands.h. Don't depend
5539 explicitly on dispextern.h.
5540 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5541 composite.h.
5542 (fns.o): Don't depend on termhooks.h.
5543 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5544 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5545 coding.h, $(INTERVALS_H), window.h, xterm.h.
5546 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5547 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5548 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5549 fontset.h, ccl.h, and ftfont.h.
5550 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5551 (gtkutil.o): Depend on dispextern.h and composite.h.
5552 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5553 termhooks.h, and ccl.h.
5554 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5555 (intervals.o): Depend on systime.h and coding.h.
5556 (keyboard.o): Depend on composite.h and coding.h.
5557 (keymap.o): Depend on coding.h and frame.h.
5558 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5559 (macros.o): Depend on systime.h, coding.h, and composite.h.
5560 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5561 and atimer.h.
5562 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5563 dispextern.h explicitly.
5564 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5565 Don't depend explicitly on dispextern.h and composite.h.
5566 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5567 (regex.o): Don't depend on charset.h.
5568 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5569 (search.o): Don't depend explicitly on composite.h.
5570 (sound.o): Depend on atimer.h and systime.h.
5571 (syntax.o): Don't depend explicitly on composite.h.
5572 (sysdep.o): Depend on coding.h and composite.h.
5573 (term.o): Depend on xterm.h and buffer.h.
5574 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5575 (textprop.o): Don't depend on dispextern.h explicitly.
5576 (undo.o): Depend on dispextern.h.
5577 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5578 dispextern.h and composite.h explicitly.
5579 (xdisp.o): Depend on ccl.h.
5580 (xfaces.o): Depend on coding.h and ccl.h.
5581 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5582 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5583 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5584 ftfont.h.
5585 (xgselect.o): New dependency.
5586 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5587 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5588 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5589 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5590 (xsmfns.o): Depend on frame.h and dispextern.h.
5591 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5592 sysselect.h.
5593
5594 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5595
5596 * font.c (Fclear_font_cache): Pass correct cache argument to
5597 font_clear_cache.
5598
5599 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5600
5601 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5602 twice.
5603
5604 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5605
5606 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5607 calling file-remote-p. Reported by Jim Meyering.
5608
5609 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5610
5611 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5612 avoid compiler warnings. (Bug #5217)
5613
5614 2009-12-14 Kenichi Handa <handa@m17n.org>
5615
5616 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5617 in 8-bit encoding.
5618
5619 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5620
5621 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5622 tooltip windows.
5623
5624 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5625
5626 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5627 Xatom_net_window_type.
5628
5629 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5630 Xatom_net_window_type.
5631
5632 * xterm.c (my_log_handler): New function.
5633 (x_term_init): Set my_log_handler as log handler during gtk_init
5634 so we can filter out buggy messages. (Bug #5120).
5635
5636 * xterm.c (xg_scroll_callback): Parameter list changed,
5637 use parameter GtkScrollType to determine scroll/line/page.
5638 Only allow dragging if a button < 4 is grabbed (bug #5177).
5639 (xg_end_scroll_callback): New function.
5640 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5641 xg_create_scroll_bar.
5642
5643 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5644 (scroll_end_callback): Remove.
5645 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5646 button-release-event. Replace value-changed event with change-value,
5647 bug #5177.
5648 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5649 bug #5177.
5650
5651 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5652 (xg_create_scroll_bar): Add GCallback end_callback.
5653
5654 * xftfont.c (QClcdfilter): New variable.
5655 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5656 (syms_of_xftfont): Initialize QClcdfilter.
5657
5658 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5659
5660 * xsettings.c (struct xsettings): Add member seen.
5661 (parse_xft_settings): Update member seen with what we have read.
5662 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5663 (apply_xft_settings): Only update Xft settings with what member seen
5664 indicates as new.
5665
5666 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5667
5668 * dispextern.h (struct text_pos): Use EMACS_INT.
5669 (struct glyph): Use EMACS_INT for charpos.
5670 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5671 region_beg_charpos, region_end_charpos,
5672 redisplay_end_trigger_charpos, and also for
5673 iterator_stack_entry.end_charpos and
5674 iterator_stack_entry.stop_charpos.
5675
5676 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5677
5678 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5679 (xg_create_scroll_bar): Call scroll_end_callback on button release
5680 event (bug #5177).
5681 (xg_event_is_for_scrollbar): != replaced with ==.
5682
5683 2009-12-12 Kenichi Handa <handa@m17n.org>
5684
5685 * ftfont.c (struct ftfont_info): New member matrix.
5686 (ftfont_open): Setup xftfont_info->matrix.
5687 (MFLTFontFT): New member matrix.
5688 (FLOOR, CEIL, ROUND): New macros.
5689 (ftfont_get_metrics): Handle matrix transformation.
5690 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5691
5692 * xftfont.c (struct xftfont_info): New member matrix.
5693 (xftfont_open): Setup xftfont_info->matrix.
5694
5695 2009-12-10 Kenichi Handa <handa@m17n.org>
5696
5697 * xdisp.c (append_space_for_newline): Consider face-remapping.
5698
5699 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5700
5701 * xsettings.c: Include "keyboard.h".
5702
5703 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5704
5705 Fix implicit function declarations.
5706 * cmds.c: Include "frame.h".
5707 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5708 * frame.h: Move declaration of delete_frame outside of
5709 HAVE_WINDOW_SYSTEM.
5710
5711 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5712
5713 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5714
5715 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5716 GTK builds.
5717
5718 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5719
5720 * unexelf.c (unexec): Don't search for .data twice.
5721
5722 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5723
5724 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5725 if push failed.
5726 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5727 of push_display_prop (Bug#5000).
5728
5729 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5730 value of font_list_entities (Bug#5085).
5731
5732 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5733
5734 Fix `string-to-number' to deal consistently with integers and floats.
5735 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5736 trailing characters, not just whitespace.
5737 (read1): Pass new arg 0 to keep old behavior.
5738 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5739 trailing chars, as it is already done for integers. Doc fixes.
5740 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5741
5742 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5743
5744 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5745 Delete unused enumeration value.
5746
5747 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5748
5749 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5750
5751 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5752
5753 * process.c (Fmake_network_process): Fix up the tests for
5754 "connectionless socket", so they DTRT for seqpacket sockets as well.
5755
5756 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5757
5758 * process.c (Qseqpacket): New symbol.
5759 (HAVE_SEQPACKET): New macro.
5760 (Fmake_network_process): Accept new :type `seqpacket'.
5761 (init_process): Add `seqpacket' feature when applicable.
5762 (syms_of_process): Initialize Qseqpacket.
5763
5764 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5765
5766 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5767 if entity is Qnil.
5768
5769 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5770
5771 * print.c (print_preprocess): Preprocess the key_and_value table of
5772 hashtables, even tho they're "hidden" (bug#5082).
5773
5774 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5775
5776 * frame.c (frame_make_pointer_invisible)
5777 (frame_make_pointer_visible): Declare f before statements.
5778
5779 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5780
5781 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5782 omitted dependencies on lisp.h.
5783
5784 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5785
5786 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5787 is NULL.
5788
5789 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5790
5791 * frame.c (frame_make_pointer_invisible)
5792 (frame_make_pointer_visible): Just return if there isn't any selected
5793 frame.
5794
5795 * search.c (simple_search): Remove warning by making *p const.
5796
5797 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5798
5799 * xdisp.c (power_letter): Remove duplicate const.
5800
5801 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5802
5803 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5804
5805 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5806 defaults (bug #5025).
5807
5808 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5809
5810 * insdel.c (adjust_markers_for_delete): Move it in the
5811 right direction! (bug#4803)
5812
5813 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5814
5815 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5816
5817 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5818
5819 2009-11-24 Glenn Morris <rgm@gnu.org>
5820
5821 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5822
5823 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5824
5825 * Makefile.in: Must create deps for ecrt0.o in its rule.
5826
5827 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5828 because that is what Gtk+ font dialog understands.
5829
5830 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5831 of Fcopy_sequence.
5832 (font_open_by_name): Put name given into QCname for font-object returned.
5833
5834 * frame.c (x_set_font): Save original font name as frame parameter
5835 font-parameter.
5836
5837 * xsettings.c (set_default_xft_settings): New function.
5838 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5839 is found.
5840
5841 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5842
5843 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5844 searching backwards through multibyte buffer.
5845
5846 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5847
5848 * xterm.c: #include xgselect.h.
5849 (x_initialize): Call xgselect_initialize.
5850
5851 * xsettings.c (something_changedCB): C++ comments => C comments.
5852 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5853 does that now.
5854
5855 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5856 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5857 (scroll_bar_button_cb): Remove.
5858 (create_menus): C++ comments => C comments. Don't bind grab-notify
5859 event.
5860 (xg_create_scroll_bar): Don't bind button-press-event and
5861 button-release-event.
5862
5863 * process.c: Include xgselect.h if defined (USE_GTK) ||
5864 defined (HAVE_GCONF).
5865 (wait_reading_process_output): Call xg_select for the same condition.
5866
5867 * xgselect.c (xg_select): New function to better integrate with
5868 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5869
5870 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5871
5872 * Makefile.in (XOBJ): Add xgselect.o.
5873
5874 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5875
5876 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5877 Remove ignored second argument. All callers changed.
5878 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5879 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5880 * xdisp.c (string_char_and_length): Likewise.
5881
5882 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5883
5884 * xterm.c (x_new_font):
5885 * print.c (print_object):
5886 * cmds.c (Fself_insert_command): Move declarations before statements.
5887
5888 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5889
5890 * s/cygwin.h: Remove unneeded linker flags.
5891
5892 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5893
5894 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5895
5896 * xsettings.h: Declare xsettings_get_system_font.
5897
5898 * xsettings.c (xsettings_get_system_font): New function.
5899 (init_gconf): No use initiating gconf unless we have Xft also.
5900 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5901 HAVE_GCONF.
5902
5903 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5904 add a blank entry so it doesn't collapse into nothing.
5905
5906 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5907
5908 * lread.c (Funintern): Comment out last change.
5909
5910 2009-11-19 Richard Stallman <rms@gnu.org>
5911
5912 * lread.c (Funintern): Error if symbol is t or nil.
5913
5914 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5915
5916 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5917 representation of Lisp integers.
5918 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5919
5920 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5921
5922 * lisp.h: Remove declaration of Ffont_get_system_font.
5923 * xfns.c: Move include of "xsettings.h".
5924 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5925
5926 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5927
5928 * xsettings.c (something_changedCB, Ffont_get_system_font):
5929 Check use_system_font.
5930 (syms_of_xsettings): DEFVAR font-use-system-font.
5931
5932 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5933
5934 * xfns.c (x_default_font_parameter): Remove dead assignment.
5935
5936 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5937
5938 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5939
5940 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5941 not have FC_LCD_*. #define them if not there.
5942
5943 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5944
5945 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5946
5947 * xterm.c (handle_one_xevent): Call xft_settings_event for
5948 ClientMessage, PropertyNotify and DestroyNotify.
5949 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5950 Call xsettings_initialize.
5951
5952 * xftfont.c (xftfont_fix_match): New function.
5953 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5954 Call xftfont_fix_match after XftFontMatch.
5955
5956 * xfont.c (xfont_driver): Initialize all members.
5957
5958 * xfns.c (x_default_font_parameter):
5959 Try font from Ffont_get_system_font.
5960 Do not get font from x_default_parameter if we got one from
5961 Ffont_get_system_font.
5962 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5963
5964 * w32font.c (w32font_driver): Initialize all members.
5965
5966 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5967
5968 * lisp.h: Declare syms_of_xsettings.
5969
5970 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5971 Handle CONFIG_CHANGED_EVENT.
5972
5973 * ftfont.c (ftfont_filter_properties): New function.
5974
5975 * frame.c (x_set_font): Remove unused variable lval.
5976
5977 * font.h (struct font_driver): Add filter_properties.
5978
5979 * font.c (font_put_extra): Don't return if val is nil, it means
5980 boolean option is off.
5981 (font_parse_fcname): Collect all extra properties in extra_props
5982 and call filter_properties for all drivers with extra_props and
5983 font as parameter.
5984 (font_open_entity): Do not use cache, it does not pick up new
5985 fontconfig settings like hinting.
5986 (font_load_for_lface): If spec had a name in it, store it in entity.
5987
5988 * emacs.c (main): Call syms_of_xsettings.
5989
5990 * config.in: HAVE_GCONF is new.
5991
5992 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5993 xsettings.o is new.
5994
5995 2009-11-17 Kenichi Handa <handa@m17n.org>
5996
5997 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5998 back to the default font in case that no suitable font is found.
5999
6000 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6001
6002 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6003 Suggested by Chad Brown <yandros@mit.edu>.
6004 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6005
6006 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6007
6008 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6009
6010 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6011
6012 * Makefile.in: Ignore errors from mkdir when creating deps directory.
6013
6014 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6015
6016 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6017 has a parent.
6018
6019 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
6020 dependency files in deps/. Include those files into Makefile.
6021
6022 * config.in: Generated (AUTO_DEPEND).
6023
6024 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
6025
6026 * dbusbind.c (Vdbus_registered_objects_table): Rename from
6027 Vdbus_registered_functions_table, because it contains also
6028 properties. Fix docstring.
6029 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
6030
6031 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6032
6033 * alloc.c (mark_object): Don't reprocess marked strings.
6034 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6035 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6036
6037 2009-11-13 Kenichi Handa <handa@m17n.org>
6038
6039 * category.c (word_boundary_p): Adjust for the change of the
6040 semantics of Vword_combining_categories.
6041 (Vword_combining_categories): Describe the slight change of the
6042 semantics.
6043
6044 2009-11-13 Eli Zaretskii <eliz@gnu.org>
6045
6046 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6047
6048 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6049
6050 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6051
6052 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6053
6054 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
6055
6056 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6057
6058 2009-11-11 David Reitter <david.reitter@gmail.com>
6059
6060 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6061 variables to fix 2009-11-09 change.
6062
6063 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6064
6065 * process.c (ifflag_def): Make flag_sym constant.
6066 (Fnetwork_interface_info): Use a constant pointer.
6067 (ifflag_table):
6068 * xfns.c (cursor_bits):
6069 * xdisp.c (power_letter):
6070 * termcap.c (speeds, esctab):
6071 * sysdep.c (baud_convert):
6072 * keyboard.c (lispy_accent_codes, modifier_names):
6073 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6074 (jpeg_format, tiff_format, gif_format, svg_format)
6075 (interlace_start, interlace_increment, gs_format):
6076 * gtkutil.c (separator_names):
6077 * fringe.c (swap_nibble):
6078 * fns.c (base64_value_to_char, base64_char_to_value):
6079 * fileio.c (make_temp_name_tbl):
6080 * coding.c (suffixes): Make constant.
6081
6082 * frame.c (make_initial_frame):
6083 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6084 build_string.
6085 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6086
6087 * s/freebsd.h:
6088 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6089
6090 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6091 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6092
6093 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6094 * xterm.c (syms_of_xterm):
6095 * xfaces.c (syms_of_xfaces):
6096 * xdisp.c (syms_of_xdisp):
6097 * lread.c (syms_of_lread):
6098 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6099 build_string.
6100
6101 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6102
6103 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6104
6105 * fns.c (Fplist_get): Merge the active and the commented out code.
6106
6107 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6108
6109 * keyboard.h: Declare timer_check.
6110
6111 * keyboard.c (timer_check_2): New function that does what the old
6112 timer_check did.
6113 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6114 returned, i.e. don't return -1 with timers pending.
6115
6116 * process.c: Remove extern declaration of timer_check.
6117
6118 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6119 even if timer_check returned -1.
6120
6121 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6122 xg_dialog_data.
6123 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6124 the event loop.
6125 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6126 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6127 Destroy the dialog after xg_dialog_run.
6128
6129 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6130
6131 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6132
6133 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6134
6135 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6136
6137 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
6138
6139 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6140
6141 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6142
6143 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6144 w32menu.c, and nsmenu.m.
6145 Simplify the obsolete case where position is nil.
6146 (cleanup_popup_menu): New function, moved from nsmenu.m.
6147 (struct skp): Remove slot `notreal'.
6148 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6149 adjust callers.
6150 (single_menu_item): Adjust call to parse_menu_item.
6151 (syms_of_menu): Defsubr x-popup-menu.
6152 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6153 (keymap_panes): Don't export any more.
6154 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6155 (xmenu_show): Declare.
6156 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6157 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6158 * keyboard.h (parse_menu_item): Update declaration.
6159 * xmenu.c (Fx_popup_menu): Remove.
6160 (syms_of_xmenu): Don't defsubr x-popup-menu.
6161 * w32menu.c (Fx_popup_menu): Remove.
6162 (syms_of_w32menu): Don't defsubr x-popup-menu.
6163 * nsmenu.m (cleanup_popup_menu): Remove.
6164 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6165 moved to menu.c's Fx_popup_menu.
6166 (Fx_popup_menu): Remove.
6167 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6168 menu_items (it's done in menu.c already).
6169
6170 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6171
6172 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6173 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6174
6175 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
6178 xmenu_show. Hide any tooltip before opening a menu.
6179 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6180 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6181
6182 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6183
6184 Let integers use up 2 tags to give them one extra bit and thus double
6185 their range.
6186 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6187 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6188 New macros.
6189 (enum Lisp_Type): Use them. Give explicit values.
6190 (Lisp_Type_Limit): Remove.
6191 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6192 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6193 Pay attention to USE_2_TAGS_FOR_INTS.
6194 (INTEGERP): Use LISP_INT_TAG_P.
6195 * fns.c (internal_equal): Simplify the default case.
6196 (sxhash): Use case_Lisp_Int.
6197 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6198 any more.
6199 (Ftype_of): Use case_Lisp_Int.
6200 (store_symval_forwarding): Take into account the fact that Ints can
6201 now have more than one tag.
6202 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6203 (buffer_slot_type_mismatch):
6204 * xfaces.c (face_attr_equal_p):
6205 * print.c (print_object):
6206 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6207 Use case_Lisp_Int.
6208
6209 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6210
6211 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6212
6213 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6214 warning.
6215
6216 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6217
6218 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6219
6220 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6221
6222 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6223 ButtonPressRelease and MotionNotify (bug#4870).
6224
6225 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6226
6227 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6228
6229 * xterm.c (syms_of_xterm):
6230 * xselect.c (syms_of_xselect):
6231 * xmenu.c (syms_of_xmenu):
6232 * xfns.c (syms_of_xfns):
6233 * xfaces.c (syms_of_xfaces):
6234 * xdisp.c (syms_of_xdisp):
6235 * window.c (syms_of_window):
6236 * w32fns.c (syms_of_w32fns):
6237 * undo.c (syms_of_undo):
6238 * textprop.c (syms_of_textprop):
6239 * terminal.c (syms_of_terminal):
6240 * syntax.c (syms_of_syntax):
6241 * sound.c (syms_of_sound):
6242 * search.c (syms_of_search):
6243 * print.c (syms_of_print):
6244 * minibuf.c (syms_of_minibuf):
6245 * macros.c (syms_of_macros):
6246 * keymap.c (syms_of_keymap, initial_define_key)
6247 (initial_define_lispy_key):
6248 * keyboard.c (syms_of_keyboard):
6249 * insdel.c (syms_of_insdel):
6250 * image.c (syms_of_image):
6251 * fringe.c (syms_of_fringe):
6252 * frame.c (syms_of_frame):
6253 * fontset.c (syms_of_fontset):
6254 * fns.c (syms_of_fns):
6255 * fns.c (syms_of_fns):
6256 * fileio.c (syms_of_fileio):
6257 * fileio.c (syms_of_fileio):
6258 * eval.c (syms_of_eval):
6259 * doc.c (syms_of_doc):
6260 * dispnew.c (syms_of_display):
6261 * dired.c (syms_of_dired):
6262 * dbusbind.c (syms_of_dbusbind):
6263 * data.c (syms_of_data):
6264 * composite.c (syms_of_composite):
6265 * coding.c (syms_of_coding):
6266 * cmds.c (syms_of_cmds):
6267 * charset.c (define_charset_internal, syms_of_character):
6268 * ccl.c (syms_of_ccl):
6269 * category.c (syms_of_category, init_category_once):
6270 * casetab.c (syms_of_casetab):
6271 * casefiddle.c (syms_of_casefiddle):
6272 * callint.c (syms_of_callint):
6273 * bytecode.c (syms_of_bytecode):
6274 * buffer.c (keys_of_buffer, syms_of_buffer):
6275 * alloc.c (syms_of_alloc):
6276 * process.c (syms_of_process, init_process):
6277 * lread.c (syms_of_lread, init_obarray):
6278 * font.c (build_style_table):
6279 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6280 intern_c_string, calls to make_pure_string with
6281 make_pure_c_string. Use pure_cons instead of Fcons.
6282
6283 * process.c (socket_options): Make it const.
6284 (set_socket_option, init_process): Use a const pointer.
6285
6286 * lread.c (intern_c_string): New function.
6287 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6288 (defvar_int): Uset it. Make the name const char*.
6289
6290 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6291 (defvar_int): Update prototypes.
6292 (DEFUN, EXFUN): Support for prototypes is now required.
6293 (intern_c_string): New prototype.
6294 (struct Lisp_Subr): Make symbol_name constant.
6295
6296 * font.c (struct table_entry): Remove unused member. Make NAMES
6297 constant.
6298 (weight_table, slant_table, width_table): Make constant.
6299
6300 * emacs.c (struct standard_args): Make name and longname constant.
6301
6302 * character.h (DEFSYM): Use intern_c_string.
6303
6304 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6305
6306 * alloc.c (make_pure_c_string): New function.
6307
6308 * eval.c (Fautoload): Purecopy all arguments.
6309
6310 2009-11-05 Kenichi Handa <handa@m17n.org>
6311
6312 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6313 the buffer in case of replace.
6314
6315 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6316
6317 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6318
6319 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6320
6321 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6322 when applicable (bug#4851).
6323
6324 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6325 (P_): Support for prototypes is now required.
6326
6327 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
6328
6329 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6330 (Bug#4827).
6331
6332 2009-10-30 Eli Zaretskii <eliz@gnu.org>
6333
6334 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
6335
6336 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6337
6338 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6339
6340 * lread.c (Fload): Purecopy the file name when building
6341 Vpreloaded_file_list.
6342
6343 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6344
6345 * w32fns.c (syms_of_w32fns): Change default value of
6346 w32-scroll-lock-modifier to nil. (Bug#2827)
6347
6348 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6349
6350 * minibuf.c (Fall_completions): Fix typos in docstring.
6351
6352 2009-10-26 Andreas Schwab <schwab@redhat.com>
6353
6354 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6355
6356 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6357
6358 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6359 For delta < 0, skip check that only makes sense when the mini-window
6360 is going to be enlarged. (Bug#4534)
6361
6362 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
6363
6364 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6365 string in menu maps (Bug#4471).
6366
6367 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
6368
6369 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6370 FRAME_NS_VIEW on terminal frames (Bug#4765).
6371
6372 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6373
6374 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6375 DBUS_TYPE_UINTnn separately to get proper sign extension.
6376
6377 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6378 can properly handle unsigned types.
6379 (make_uid, make_gid): Remove.
6380
6381 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6382 types again.
6383
6384 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
6385 (system_process_attributes): Likewise.
6386
6387 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6388
6389 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6390
6391 * eval.c (Fautoload): Purecopy the filename. Simplify.
6392
6393 * category.c (Fdefine_category): Purecopy docstring.
6394
6395 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6396
6397 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6398
6399 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6400
6401 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
6402
6403 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6404 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6405 (Bug#4775).
6406
6407 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6408
6409 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6410 (init_fileio_once):
6411 * lisp.h (init_fileio_once): Remove.
6412 * emacs.c (main): Don't call init_fileio_once.
6413
6414 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6415
6416 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6417
6418 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6419
6420 * doprnt.c (doprnt): Fix overflow check.
6421
6422 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6423
6424 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6425
6426 * xterm.h (x_wait_for_event): Declare it.
6427
6428 * xterm.c (pending_event_wait): New variable.
6429 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6430 see pending_event_wait.eventtype.
6431 (handle_one_xevent): Don't change gravity when parent changes.
6432 (x_new_font): Call change_frame_size with new rows/columns before we
6433 try to resize the frame.
6434 (x_wait_for_event): New function.
6435 (x_set_window_size_1): Don't change gravity unless change_gravity
6436 is set.
6437 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6438 don't change frame size, instead wait for the ConfigureNotify.
6439 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6440 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6441 (x_initialize): Initialize pending_event_wait.
6442
6443 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6444 size.
6445
6446 * widget.c (EmacsFrameSetValues): Add comment.
6447 (EmacsFrameSetCharSize): Just call x_set_window_size.
6448
6449 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6450 x_wait_for_event.
6451 (flush_and_sync): Remove again.
6452 (xg_get_font_name): Suggest monospace if no previous font is known.
6453
6454 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6455
6456 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
6457 8th bit, since that only made sense in the ASCII world (bug#4751).
6458
6459 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6460
6461 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6462 processing pending events when event is filtered for input method.
6463 (Bug#3681)
6464
6465 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6466
6467 * fns.c: Add #endif accidentally removed in previous change.
6468
6469 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6470
6471 * fns.c: Remove code for unsupported system: MAC_OS.
6472 * image.c: Likewise. Include setjmp.h.
6473
6474 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6475
6476 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6477 pixel -1 (bug #4742).
6478
6479 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6480
6481 * process.c (create_pty): Remove conditionals for no longer
6482 supported systems: UNIPLUS and RTU.
6483
6484 * xterm.c:
6485 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6486
6487 * alloc.c: Do not define struct catchtag.
6488 * eval.c: Move struct catchtag definition ...
6489 * lisp.h: ... here.
6490
6491 * image.c: Move png.h #include earlier to avoid warnings.
6492
6493 * xterm.c:
6494 * xsmfns.c:
6495 * xselect.c:
6496 * xrdb.c:
6497 * xmenu.c:
6498 * xftfont.c:
6499 * xfont.c:
6500 * xfns.c:
6501 * xfaces.c:
6502 * xdisp.c:
6503 * window.c:
6504 * widget.c:
6505 * w32xfns.c:
6506 * w32uniscribe.c:
6507 * w32term.c:
6508 * w32select.c:
6509 * w32reg.c:
6510 * w32proc.c:
6511 * w32menu.c:
6512 * w32inevt.c:
6513 * w32heap.c:
6514 * w32font.c:
6515 * w32fns.c:
6516 * w32console.c:
6517 * w32.c:
6518 * w16select.c:
6519 * vm-limit.c:
6520 * unexsol.c:
6521 * unexec.c:
6522 * unexcw.c:
6523 * unexaix.c:
6524 * undo.c:
6525 * tparam.c:
6526 * textprop.c:
6527 * terminfo.c:
6528 * terminal.c:
6529 * termcap.c:
6530 * term.c:
6531 * syntax.c:
6532 * sound.c:
6533 * sheap.c:
6534 * search.c:
6535 * scroll.c:
6536 * region-cache.c:
6537 * regex.c:
6538 * ralloc.c:
6539 * process.c:
6540 * print.c:
6541 * nsterm.m:
6542 * nsselect.m:
6543 * nsmenu.m:
6544 * nsimage.m:
6545 * nsfont.m:
6546 * nsfns.m:
6547 * msdos.c:
6548 * minibuf.c:
6549 * menu.c:
6550 * marker.c:
6551 * macros.c:
6552 * keymap.c:
6553 * keyboard.c:
6554 * intervals.c:
6555 * insdel.c:
6556 * indent.c:
6557 * gtkutil.c:
6558 * ftxfont.c:
6559 * ftfont.c:
6560 * fringe.c:
6561 * frame.c:
6562 * fontset.c:
6563 * font.c:
6564 * fns.c:
6565 * floatfns.c:
6566 * filelock.c:
6567 * fileio.c:
6568 * emacs.c:
6569 * editfns.c:
6570 * dosfns.c:
6571 * doprnt.c:
6572 * doc.c:
6573 * dispnew.c:
6574 * dired.c:
6575 * dbusbind.c:
6576 * data.c:
6577 * composite.c:
6578 * coding.c:
6579 * cmds.c:
6580 * cm.c:
6581 * chartab.c:
6582 * charset.c:
6583 * character.c:
6584 * ccl.c:
6585 * category.c:
6586 * casetab.c:
6587 * casefiddle.c:
6588 * callproc.c:
6589 * callint.c:
6590 * bytecode.c:
6591 * buffer.c:
6592 * atimer.c: Include setjmp.h. (Bug#4643)
6593
6594 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6595
6596 Remove leftover table unibyte_to_multibyte_table.
6597 * character.c (unibyte_to_multibyte_table): Remove.
6598 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6599 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6600 * character.h (UNIBYTE_TO_CHAR): New macro.
6601 (MAKE_CHAR_MULTIBYTE): Use it.
6602 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6603 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6604 (message_dolog, set_message_1):
6605 * search.c (Freplace_match):
6606 * editfns.c (Fcompare_buffer_substrings):
6607 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6608 (concat):
6609 * insdel.c (copy_text, count_size_as_multibyte):
6610 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6611 * term.c (produce_glyphs):
6612 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6613 * regex.c (RE_CHAR_TO_MULTIBYTE):
6614 * cmds.c (internal_self_insert):
6615 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6616
6617 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6618
6619 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6620
6621 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6622
6623 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6624
6625 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6626
6627 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6628
6629 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6630 still needed under Tiger.
6631
6632 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6633
6634 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6635 __Apple__.
6636
6637 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6638
6639 2009-10-15 Kenichi Handa <handa@m17n.org>
6640
6641 * print.c (print_object): Escape a symbol like "2E10" too.
6642
6643 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6644
6645 Cleanups and changes for 64-bit compile under Snow Leopard.
6646 Based on suggestions by Erik Charlebois.
6647
6648 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6649
6650 * nsfont.m (ns_char_width): Replace deprecated call.
6651 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6652 cast argument.
6653 (nsfont_open): Use ns_char_width() everywhere.
6654 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6655
6656 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6657
6658 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6659 where appropriate.
6660
6661 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6662 where appropriate.
6663 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6664 Use stringWithUTF8String.
6665 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6666
6667 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6668 Add formal protocol mention to inheritance.
6669 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6670
6671 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6672 Fix printf format.
6673 (ns_query_color): Use CGFloat where appropriate.
6674 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6675 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6676 argument.
6677
6678 * config.in (NS_HAVE_NSINTEGER): Drop.
6679
6680 * dbusbind.c (dbus-method-return-internal)
6681 (dbus-method-error-internal): Use long format in printf, and cast
6682 argument.
6683
6684 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6685 in printf, and cast argument.
6686
6687 * process.c (list_processes_1): Use long format in printf, and
6688 cast argument.
6689
6690 2009-10-11 Glenn Morris <rgm@gnu.org>
6691
6692 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6693
6694 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6695
6696 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6697 menu bar with a small width so it doesn't enlarge the frame.
6698
6699 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6700
6701 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6702
6703 2009-10-06 Glenn Morris <rgm@gnu.org>
6704
6705 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6706 SOME_MACHINE_LISP (this enters indirectly via DOC).
6707
6708 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6709
6710 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6711
6712 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6713
6714 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6715 Doc fix.
6716
6717 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6718
6719 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6720
6721 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6722
6723 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6724 used anymore outside fileio.c.
6725
6726 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6727
6728 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6729
6730 * lisp.h (Qdelete_directory_internal):
6731 Declare, instead of Qdelete_directory.
6732
6733 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6734
6735 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6736
6737 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6738
6739 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6740
6741 * fileio.c (Fdelete_directory_internal): Rename from
6742 Fdelete_directory. It is not a command anymore. It has no file
6743 name handler.
6744
6745 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6746
6747 * xdisp.c (get_next_display_element): Use an enum in last change.
6748
6749 2009-09-28 Kenichi Handa <handa@m17n.org>
6750
6751 * xdisp.c (get_next_display_element): Pay attention to
6752 unibyte_display_via_language_environment in handling
6753 Vnobreak_char_display.
6754
6755 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6756
6757 * nsterm.h (ns_app_name): New extern variable.
6758
6759 * nsterm.m (ns_app_name): New variable.
6760 (ns_term_init): Set and use it.
6761 (ns_term_shutdown): Use it.
6762
6763 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6764 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6765
6766 * nsfns.m (ns_set_name_iconic, ns_set_name)
6767 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6768 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6769
6770 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6771 Remove double-casting in client_data comparison.
6772
6773 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6774
6775 * keyboard.c (make_lispy_event): Remember last wheel direction.
6776 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6777
6778 2009-09-26 Glenn Morris <rgm@gnu.org>
6779
6780 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6781 internal.elc. Add term/pc-win.elc.
6782 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6783 term/x-win.elc.
6784 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6785 term/w32-win.elc.
6786 (NS_SUPPORT): New.
6787 (lisp): Add NS_SUPPORT.
6788 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6789
6790 2009-09-25 David Reitter <david.reitter@gmail.com>
6791
6792 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6793 on Mac OS X 10.6+ (bug#4513).
6794
6795 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6796
6797 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6798 some parts of Emacs code (like font selection) don't grok them.
6799 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6800
6801 2009-09-24 Andreas Schwab <schwab@redhat.com>
6802
6803 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6804
6805 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6806
6807 * dired.c (Fdirectory_files): Fix typo in docstring.
6808
6809 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6810
6811 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6812 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6813 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6814 under GNUstep.
6815 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6816
6817 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6818 glyph advancement.
6819
6820 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6821
6822 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6823 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6824
6825 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6826 deleted (bug #4492).
6827
6828 * nsfont.m (Vns_reg_to_script): New lisp variable.
6829 (syms_of_nsfont): Declare it.
6830 (ns_registry_to_script): New function.
6831 (ns_get_req_script): Call it.
6832 (ns_findfonts): Don't give up on non-unicode registry.
6833
6834 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6835
6836 2009-09-20 Tom Tromey <tromey@redhat.com>
6837
6838 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6839 batch mode (bug#4228).
6840
6841 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6842
6843 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6844 carefully. (Bug #4339)
6845
6846 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6847
6848 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6849
6850 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6851
6852 * emacs.c (inhibit_x_resources): Update doc string for NS.
6853 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6854 legacy code for -NXHost. Fix error printf in daemon case.
6855
6856 * nsterm.h (ns_no_defaults): Remove.
6857
6858 * nsterm.m (ns_no_defaults): Remove.
6859 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6860 (ns_use_qd_smoothing): Remove legacy variable.
6861 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6862 don't update the NSWindow itself.
6863 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6864 state detection and store user rect ourselves. (Bug #3581)
6865
6866 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6867 ns_use_qd_smoothing.
6868
6869 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6870 platform versions. Drop support for emacs-20-style face specs.
6871 (x-close-connection): Drop PSFlush() under OS X.
6872 (x-focus-frame): Activate the app first. (Bug #4180)
6873
6874 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6875
6876 * emacs.c (inhibit_x_resources): New variable.
6877 (main) [HAVE_NS]: Don't process --quick command line option.
6878 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6879
6880 * lisp.h (inhibit_x_resources): Declare it extern.
6881
6882 * w32reg.c (x_get_string_resource):
6883 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6884
6885 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6886
6887 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6888 Add lisp/term/internal.elc.
6889
6890 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6891
6892 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6893 (bug#4461).
6894
6895 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6896
6897 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6898
6899 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6900 (OBJECTS_MACHINE): Remove, unused.
6901
6902 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6903
6904 * frame.c (x_get_resource_string): Remove unused.
6905
6906 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6907
6908 * xterm.c (x_new_font): Call change_frame_size before calling
6909 x_set_window_size, in case frame size won't change.
6910
6911 * frame.c (x_set_font): Remove dead code.
6912
6913 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6914
6915 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6916
6917 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6918
6919 * lread.c (Fload): Don't output a message after loading an obsolete
6920 package any more (done in Lisp now).
6921
6922 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6923
6924 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6925
6926 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6927
6928 * keymap.c (Fwhere_is_internal): Use nconc2.
6929
6930 2009-09-11 Alan Mackenzie <acm@muc.de>
6931
6932 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6933 batch mode.
6934
6935 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6936
6937 * xdisp.c (display_mode_element): Detect cycles.
6938
6939 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6940
6941 * keymap.c (where_is_internal): Don't erroneously return nil right after
6942 filling the cache.
6943 (where_is_internal_1): Fix up typo.
6944
6945 2009-09-11 Glenn Morris <rgm@gnu.org>
6946
6947 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6948 share a common doc-string.
6949
6950 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6951
6952 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6953 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6954
6955 * keymap.c (QCadvertised_binding): New constant.
6956 (syms_of_keymap): Initialize it.
6957 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6958 if applicable.
6959
6960 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6961
6962 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6963 (parse_menu_item): Streamline since bindings are recomputed all the
6964 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6965 more and don't support lmenu's menu-alias any more either.
6966
6967 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6968 (where_is_internal): Strip it down to only traverse the keymaps.
6969 Move the cache handling from Fwhere_is_internal to here.
6970 (Fwhere_is_internal): Move the handling of remapping and the choice of
6971 the best binding from where_is_internal to here.
6972 Unify the cached/noncached paths, so remapping is also handled
6973 correctly when the cache is used, and so the cache can be used to
6974 speed up remap-handling when applicable.
6975 Give preference to non-remapped bindings.
6976 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6977 non-remapped bindings.
6978 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6979 command remapping.
6980
6981 * xdisp.c (display_mode_element): Move list length limit from 50 to
6982 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6983
6984 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6985
6986 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6987
6988 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6989
6990 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6991 (Bug#4334)
6992
6993 * keymap.c (where_is_internal): Filter out shadowed remappings.
6994 Assume that where_is_internal returns unshadowed bindings to simplify
6995 the code and get rid of the gotos. Use ASIZE.
6996
6997 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6998
6999 * xterm.c (x_focus_changed): If we get a focusout and pointer
7000 is invisible, make it visible.
7001
7002 * xterm.h: Remove condition for declaration of
7003 x_*_window_to_frame.
7004
7005 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7006
7007 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7008 initial terminal as well.
7009
7010 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7011
7012 * xterm.h: Rename x_non_menubar_window_to_frame to
7013 x_menubar_window_to_frame.
7014
7015 * xterm.c: Remove declarations also in xterm.h.
7016 (XTmouse_position): Do not return valid positions
7017 for clicks in the menubar and the toolbar for Gtk+.
7018
7019 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7020 if the widget for the event has the same top level as a frame,
7021 return the frame.
7022 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7023 internal windows, bug #4122.
7024 (x_non_menubar_window_to_frame): Remove.
7025
7026 2009-09-02 Glenn Morris <rgm@gnu.org>
7027
7028 * buffer.c (default-major-mode): Move most of the doc from here...
7029 (major-mode): ... to here.
7030
7031 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
7032
7033 * process.c (wait_reading_process_output): Keep the descriptor
7034 when pty is used by a non-child process, e.g., in I/O buffer of
7035 GDB this allows inferior to be restarted.
7036
7037 2009-08-29 Eli Zaretskii <eliz@gnu.org>
7038
7039 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7040 both branches into one.
7041
7042 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7043
7044 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7045 (main): Use enable-multibyte-characters rather than
7046 default-enable-multibyte-characters. Output a warning message when
7047 running a unibyte session.
7048
7049 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7050
7051 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7052 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7053 (copy_data_segment): Also copy __program_vars section.
7054 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7055 (dump_it) [LC_DYLD_INFO]: Use it.
7056
7057 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7058
7059 2009-08-28 Eli Zaretskii <eliz@gnu.org>
7060
7061 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7062 $(SRC)/buildobj.h.
7063 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7064 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7065 $(SRC)/buildobj.h.
7066 (clean): Add buildobj.h.
7067
7068 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7069
7070 * print.c (print_object): Set escapeflag to 1 when printing
7071 hashtable keys and values.
7072
7073 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7074
7075 * lread.c (read_integer): Use doubles (and potentially return a float
7076 number) as we do in string-to-number.
7077 (read1): Use strtol to read integers, signal errors on strtol's
7078 overflow and use floats if strtol's output is too large for
7079 Elisp integers.
7080
7081 2009-08-27 Eli Zaretskii <eliz@gnu.org>
7082
7083 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7084 (make-buildobj-SH): Fix last change.
7085 (SRC): Move to before where it's first used.
7086
7087 2009-08-27 Kenichi Handa <handa@m17n.org>
7088
7089 * process.c (send_process): Use encode_coding_object instead of
7090 encode_coding_string to perform eol-conversion even if the string
7091 is unibyte.
7092
7093 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7094 character.
7095
7096 * cmds.c (Fself_insert_command): Avoid unnecessay
7097 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
7098
7099 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7100
7101 * callproc.c (Fcall_process): Remove always true #if.
7102
7103 * lisp.h: Replace #if 0 code for checking with text pointing to
7104 the --enable-checking configure flag.
7105
7106 * emacs.c (main): Mention the --enable-profiling configure flag
7107 instead of using CFLAGS.
7108
7109 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
7110
7111 * Makefile.in (buildobj.h): New target.
7112 (doc.o): Depend on it.
7113 (temacs${EXEEXT}): Don't generate buildobj.lst.
7114 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7115 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7116 ($(BLD)/doc.$(O)): Depend on it.
7117 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7118 provided by Eli Zaretskii.)
7119 ($(TEMACS)): Don't generate buildobj.lst.
7120 * doc.c: Include buildobj.h.
7121 (buildobj): New static variable.
7122 (Fsnarf_documentation): Use it, instead of opening and reading
7123 buildobj.lst.
7124
7125 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
7126
7127 * dbusbind.c (Fdbus_call_method)
7128 (Fdbus_call_method_asynchronously): Use English numeric format for
7129 timeout values in doc string.
7130
7131 2009-08-25 Kenichi Handa <handa@m17n.org>
7132
7133 * alloc.c (mark_char_table): New function.
7134 (mark_object): Use mark_char_table for a char-table.
7135
7136 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7137 (CHAR_TABLE_REF): Use it.
7138
7139 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
7140
7141 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7142 before invoking the newly build emacs to check for load-path
7143 shadowing.
7144
7145 2009-08-22 Glenn Morris <rgm@gnu.org>
7146
7147 * Makefile.in (bootstrap_exe): New variable.
7148 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7149 Use ${bootstrap_exe}.
7150
7151 2009-08-22 Eli Zaretskii <eliz@gnu.org>
7152
7153 * coding.h (encode_coding_string): Don't encode unibyte strings.
7154 (Bug#4047)
7155
7156 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
7157
7158 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7159
7160 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7161 intended as hotfix only.
7162 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7163
7164 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7165
7166 * nsterm.m (ns_get_color): Update documentation properly for last
7167 change, and clean up loose ends in the code left by it. Fix
7168 longstanding bug with 16-bit hex parsing, and add support for
7169 yet another X11 format (rgb:r/g/b) for compatibility.
7170 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7171 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7172
7173 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7174
7175 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7176
7177 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
7178
7179 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7180 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7181 (xd_initialize, xd_pending_messages): Check, whether
7182 $DBUS_SESSION_BUS_ADDRESS is set.
7183
7184 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7185
7186 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7187
7188 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7189
7190 2009-08-20 Glenn Morris <rgm@gnu.org>
7191
7192 * emacs.c (system-type): Doc fix.
7193
7194 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7195
7196 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7197 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7198
7199 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7200
7201 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7202 New functions.
7203 (xd_initialize): Revert change from 2009-08-16.
7204
7205 2009-08-18 Kenichi Handa <handa@m17n.org>
7206
7207 * fontset.c (Ffontset_font): If a nil element is found in a
7208 font-group vector, return nil.
7209
7210 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7211
7212 * process.c (status_notify): Don't perform redisplay.
7213 (Fdelete_process, list_processes_1, process_send_signal):
7214 Expliticly perform redisplay.
7215 (wait_reading_process_output): Always check process status, but
7216 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7217
7218 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7219
7220 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7221 (XFLOAT_INIT): New macro for storing a float value.
7222 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7223 * fns.c (sxhash): Copy out the value of a float in order to
7224 examine its bytes.
7225 * dbusbind.c (xd_append_arg): Likewise.
7226
7227 * emacs.c (main): Don't call syms_of_data twice.
7228
7229 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7230
7231 * dbusbind.c (xd_initialize): Add connection file descriptor to
7232 input_wait_mask, in order to let select() detect, whether a new
7233 message has been arrived.
7234 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7235
7236 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7237
7238 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7239 New functions.
7240
7241 * lisp.h (xd_pending_messages): Declare.
7242
7243 * keyboard.c (readable_events): Call xd_pending_messages.
7244
7245 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7246
7247 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7248
7249 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7250
7251 * buffer.c (set_buffer_internal_1)
7252 (swap_out_buffer_local_variables): Check for unbound local
7253 variables (Bug#4138).
7254
7255 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7256
7257 * process.c (create_pty): Fix last change.
7258
7259 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7260
7261 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7262 (xbm_load_image): Caller changed.
7263 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7264
7265 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7266
7267 * process.c (create_pty): New function.
7268 (Fstart_process): Use it to allow Emacs to just associate a pty
7269 with the buffer. See associated change in gdb-mi.el.
7270 (list_processes_1): Deal with no program name.
7271 (start_process_unwind): Use pid == -2 to mean no process.
7272
7273 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7274
7275 * cmds.c (nonundocount): New global variable.
7276 (keys_of_cmds): Initialize it.
7277 (Fself_insert_command): Use it to combine upto 20 sequential chars
7278 into a single undo entry, just like the Qself_insert_command code in
7279 keyboard.c does.
7280 Call frame_make_pointer_invisible, also like the Qself_insert_command
7281 code in keyboard.c does.
7282 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7283 than its own local replacement for it.
7284
7285 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7286
7287 * fns.c (concat): Don't re-set string length to its current value.
7288
7289 * coding.h (decode_coding_string, encode_coding_string):
7290 Use SBYTES macro.
7291
7292 * doprnt.c (doprnt_lisp): Delete unused function.
7293 (doprnt): Merge with doprnt1, discarding lispstrings code.
7294 * lisp.h (doprnt_lisp): Don't declare.
7295
7296 2009-08-07 Juri Linkov <juri@jurta.org>
7297
7298 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7299
7300 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7301
7302 * print.c (syms_of_print): Undo previous change.
7303
7304 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7305
7306 * lread.c (read1, syms_of_lread): Read hashtables back from the
7307 readable format.
7308
7309 * print.c (print_preprocess, print_object): Print hashtables fully
7310 and readably.
7311 (syms_of_print): Provide 'hashtable-print-readable.
7312
7313 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7314
7315 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7316 no family set.
7317 (nsfont_open): Handle case when entity has no family.
7318
7319 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7320
7321 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7322 element, not a list, for match case.
7323
7324 2009-07-28 Kenichi Handa <handa@m17n.org>
7325
7326 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7327 rigidly.
7328
7329 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7330 font_parse_xlfd. Check font properties more rigidly.
7331
7332 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7333
7334 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7335 bsd-common.h.
7336
7337 2009-07-27 Kenichi Handa <handa@m17n.org>
7338
7339 * xfaces.c (face_with_height): Call font_clear_prop.
7340
7341 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
7342
7343 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7344
7345 * xterm.c (x_term_init): Use Qx.
7346
7347 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7348
7349 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
7350 (ns_get_color): Revert 2009-07-16 change.
7351
7352 2009-07-25 Eli Zaretskii <eliz@gnu.org>
7353
7354 * lread.c (syms_of_lread) <force_load_messages>: New variable.
7355 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
7356
7357 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
7358
7359 * coding.h (decode_coding_string, encode_coding_string):
7360 Use SCHARS macro.
7361
7362 * lread.c: Rewrite 2009-07-21 changes.
7363 (load_depth): Delete.
7364 (Qload_in_progress): New variable.
7365 (load_unwind): Don't reference load_depth or load_in_progress.
7366 (Fload): Likewise; specbind Qload_in_progress instead.
7367 (init_lread): Don't initialize load_depth.
7368 (syms_of_lread): Initialize and protect Qload_in_progress.
7369
7370 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7371
7372 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7373
7374 2009-07-23 Yavor Doganov <yavor@gnu.org>
7375
7376 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7377
7378 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7379
7380 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7381 Bugs 3792, 3720, 2402.
7382 (ns_lookup_indexed_color): Check for bad index.
7383 (ns_index_color): Init unused slot to 0.
7384 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7385 Bug 3714, possibly 3082.
7386
7387 2009-07-22 Jason Rumney <jasonr@gnu.org>
7388
7389 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7390 Position IME window at cursor (Bug#2570).
7391 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7392 (globals_of_w32fns): Dynamically load functions required above.
7393
7394 * w32term.c (w32_draw_window_cursor): Send message to reposition
7395 any IME window.
7396
7397 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7398
7399 * fileio.c: Revert 2009-07-16 changes.
7400 (Vauto_save_include_big_deletions): New variable.
7401 (Fdo_auto_save): Disable auto-save only if
7402 auto-save-include-big-deletions is nil.
7403
7404 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7405
7406 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7407 the overflowed pixels into account (Bug#3879).
7408
7409 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
7410
7411 * lread.c (load_depth): New variable.
7412 (Fload, load_unwind, init_lread): Set it to the load recursion
7413 depth; set load_in_progress as a simple boolean based on the
7414 current load_depth. (Bug#3892)
7415
7416 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7417
7418 * nsfont.m (ns_has_attribute): Remove.
7419 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7420
7421 2009-07-18 Juri Linkov <juri@jurta.org>
7422
7423 * process.c (Fset_process_query_on_exit_flag): Mention killing
7424 a buffer in docstring.
7425
7426 2009-07-17 Kenichi Handa <handa@m17n.org>
7427
7428 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7429
7430 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7431
7432 * nsfns.m (Fns_set_alpha): Remove function.
7433 (syms_of_nsfns): Don't defsubr it.
7434
7435 * nsterm.m (ns_get_color): Remove incompatible color formats.
7436 (ns_color_to_lisp): Generate #rrggbb color format string.
7437
7438 2009-07-16 Richard Stallman <rms@gnu.org>
7439
7440 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7441 (Fset_buffer_auto_saved): Handle save_length = -2.
7442
7443 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
7444
7445 * xterm.c (Qx_gtk_map_stock): New var.
7446
7447 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7448 of calling intern each time.
7449
7450 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7451
7452 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7453 does tiling.
7454
7455 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7456
7457 2009-07-14 Kenichi Handa <handa@m17n.org>
7458
7459 * font.c (font_vconcat_entity_vectors): New function.
7460 (struct font_sort_data): New member font_driver_preference.
7461 (font_compare): Check font_driver_preference.
7462 (font_sort_entities): The format of the first argument changed.
7463 (font_delete_unmatched): Likewise.
7464 (font_list_entities): The return type changed.
7465 (font_select_entity): The format of the second argument changed.
7466 (font_find_for_lface): Adjuste for the above changes.
7467 Don't suppress the checking of C even if the repertory supports it.
7468 (Flist_fonts): Adjust for the above changes.
7469
7470 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7471 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7472 Reject a font who has adstyle property that is different from a
7473 langname derived from registry property.
7474 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7475
7476 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7477
7478 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7479 local copy of dirfilename.
7480
7481 2009-07-13 Kenichi Handa <handa@m17n.org>
7482
7483 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7484 against max_char.
7485
7486 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7487 calling XSYMBOL (sym).
7488
7489 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7490
7491 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7492 New function.
7493 (directory_files_internal) [WINDOWSNT]:
7494 Bind w32-get-true-file-attributes to either t or nil, depending whether
7495 the filesystem of the directory is fast or slow.
7496
7497 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7498 file name.
7499 (is_slow_fs): New function.
7500 (stat): Use it to determine whether to issue more system calls to
7501 get accurate file attributes, when w32-get-true-file-attributes is
7502 `local'.
7503
7504 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7505
7506 * xfns.c (Fx_select_font): Remember last font selected in
7507 x_last_font_name and use that the next time. Also try the frame
7508 parameter font-parameter as default to the font dialog.
7509
7510 2009-07-10 Kenichi Handa <handa@m17n.org>
7511
7512 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7513
7514 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7515
7516 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7517
7518 * w32.c (stat): Treat UNC file names as residing on remote
7519 drives. (Bug#3542)
7520
7521 2009-07-09 Kenichi Handa <handa@m17n.org>
7522
7523 * fontset.c (fontset_find_font): Fix previous change.
7524
7525 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7526
7527 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7528 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7529 error flag.
7530
7531 2009-07-08 Kenichi Handa <handa@m17n.org>
7532
7533 * fontset.c (fontset_find_font): Fix the logic of handling
7534 charset_matched.
7535 (font_for_char): Delete unused var.
7536 (generate_ascii_font_name): Delete it.
7537
7538 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7539
7540 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7541 (encode_coding_sjis): Fix the code range check.
7542
7543 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7546 (Fexpand_file_name): Copy string data properly (Bug#3772).
7547
7548 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7549
7550 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7551 first MapNotify.
7552
7553 2009-07-07 Kenichi Handa <handa@m17n.org>
7554
7555 * character.h (unibyte_has_multibyte_table): Delete extern.
7556 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7557
7558 * charset.c (Fset_charset_priority): Update charset_unibyte.
7559 (syms_of_charset): Initialize charset_unibyte.
7560
7561 * character.c (unibyte_has_multibyte_table): Delete it.
7562 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7563 charset_unibyte.
7564 (multibyte_char_to_unibyte_safe): Likewise.
7565 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7566
7567 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7568 (x_produce_glyphs): Likewise.
7569
7570 * .gdbinit (xcharset): Fix the treating $arg0.
7571
7572 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7573
7574 Emulation of `getloadavg' on MS-Windows.
7575 * w32.c: Include float.h.
7576 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7577 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7578 (get_native_system_info, get_system_times): New functions.
7579 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7580 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7581 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7582 g_b_init_get_system_times, and num_of_processors.
7583
7584 2009-07-03 Jason Rumney <jasonr@gnu.org>
7585
7586 * w32term.c (w32_initialize): Use standard types.
7587
7588 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7589
7590 * dired.c (Ffile_attributes): Decode user and group names by the
7591 locale's encoding. (Bug#3443)
7592
7593 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7594
7595 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7596 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7597
7598 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7599
7600 * term.c (init_tty): Remove spurious #ifdef.
7601
7602 * m/mips.h: Mention this file is also used for netbsd.
7603 * m/pmax.h: Remove file.
7604
7605 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7606
7607 * xterm.h (struct x_display_info): Add invisible_cursor.
7608 (struct x_output): Add current_cursor.
7609
7610 * xterm.c (XTtoggle_invisible_pointer): New function.
7611 (x_define_frame_cursor): Don't define cursor if invisible or the
7612 same as before. Set current_cursor.
7613 (x_create_terminal): Set toggle_invisible_pointer_hook.
7614
7615 * xfns.c (make_invisible_cursor): New function.
7616 (x_set_mouse_color): Call make_invisible_cursor.
7617 Set current_cursor.
7618 (x_window): Set current_cursor.
7619
7620 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7621
7622 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7623 inserting a character.
7624 (read_avail_input): Call frame_make_pointer_visible.
7625
7626 * frame.c (Vmake_pointer_invisible): New variable.
7627 (frame_make_pointer_invisible, frame_make_pointer_visible):
7628 New functions.
7629 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7630
7631 * frame.h: Declare frame_make_pointer_invisible and
7632 frame_make_pointer_visible.
7633 (struct frame): Add pointer_invisible.
7634
7635 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7636
7637 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7638 frame isn't visible.
7639 (xg_frame_resized): If width/height is -1, get size of window
7640 from X server.
7641
7642 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7643 for MapNotify.
7644
7645 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7646 here or call change_frame_size. Just call flush_and_sync.
7647 (flush_and_sync): Reintroduce.
7648
7649 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7650
7651 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7652
7653 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7654 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7655
7656 * frame.h: Declare Qsticky.
7657
7658 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7659
7660 * nsfns.m (ns_frame_parm_handlers): Ditto.
7661
7662 * frame.c: Declare Qsticky.
7663 (frame_parms): Add sticky.
7664
7665 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7666
7667 * xterm.h: Declare x_set_sticky.
7668
7669 * xterm.c (x_set_sticky): New function.
7670
7671 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7672 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7673 xg_tool_bar_proxy_help_callback.
7674
7675 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7676
7677 * frame.c: Qmaximized is new.
7678 (x_set_frame_parameters): Do not handle fullscreen specially.
7679 Only set width and height if explicitly set.
7680 (x_set_fullscreen): Handle Qmaximized.
7681 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7682 (syms_of_frame): Initialize Qmaximized.
7683
7684 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7685 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7686
7687 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7688 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7689 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7690 set gravity to NorthWestGravity when USE_GTK.
7691 (set_wm_state): New function.
7692 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7693 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7694 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7695 or the case when no window manager is running. That means remove calls
7696 to x_real_positions and x_fullscreen_adjust.
7697
7698 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7699 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7700 flush_and_sync.
7701 (xg_height_changed): New function.
7702 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7703 and gtk_window_set_policy. Set frame gravity after parsing the
7704 geometry string.
7705 (xg_update_frame_menubar, free_frame_menubar)
7706 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7707 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7708 Remove calls to xg_frame_set_char_size.
7709
7710 2009-07-01 Kenichi Handa <handa@m17n.org>
7711
7712 * keyboard.c (decode_keyboard_code): New function.
7713 (tty_read_avail_input): Decode the input bytes if necessary.
7714
7715 * coding.c (setup_coding_system):
7716 Initialize coding->carryover_bytes to 0.
7717 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7718 use Qno_conversion.
7719
7720 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7721
7722 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7723
7724 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7725
7726 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7727
7728 2009-06-30 Jason Rumney <jasonr@gnu.org>
7729
7730 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7731 is already loaded.
7732 Set user model ID if supported (bug#1849).
7733
7734 2009-06-29 Jim Meyering <meyering@redhat.com>
7735
7736 Remove useless if-before-xfree test.
7737 * nsfont.m (nsfont_close): Remove useless test.
7738 * term.c (delete_tty): Likewise.
7739 * w32.c (system_process_attributes): Likewise.
7740 * w32font.c (w32font_close): Likewise.
7741 * xfaces.c (x_free_gc): Likewise.
7742 * xselect.c (buffer): Likewise.
7743
7744 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7745
7746 * process.c (send_process): Keep decoded string in a local
7747 variable and protect it from GC. (Bug#3521)
7748
7749 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7750
7751 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7752 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7753
7754 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7755
7756 * xdisp.c (start_display, handle_face_prop)
7757 (move_it_vertically_backward, cursor_row_fully_visible_p)
7758 (redisplay_window, try_window_id, produce_image_glyph):
7759 Delete some #ifdef-ed out code chunks that are now obsolete.
7760
7761 * xterm.c (x_update_window_begin, x_new_focus_frame)
7762 (x_scroll_bar_handle_click, handle_one_xevent)
7763 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7764 (x_make_frame_visible, x_make_frame_invisible)
7765 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7766 code chunks that are now obsolete.
7767
7768 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7769
7770 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7771 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7772 for hours, when optimzation is enabled.
7773 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7774 (xd_read_message): Make them static.
7775
7776 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7777
7778 * term.c (turn_on_face): Allow simultaneously bold and dim
7779 terminal faces (Bug#3530).
7780
7781 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7782
7783 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7784
7785 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7786 truncation glyphs (Bug#3686).
7787
7788 2009-06-27 Glenn Morris <rgm@gnu.org>
7789
7790 * m/pmax.h: Restore file, with only netbsd portions.
7791
7792 2009-06-26 David Reitter <david.reitter@gmail.com>
7793
7794 * nsterm.m (keydown): Avoid infinite loop.
7795
7796 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7797
7798 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7799 the arg FORCE_SYMBOL.
7800
7801 2009-06-25 Kenichi Handa <handa@m17n.org>
7802
7803 * fontset.c (fontset_find_font): When a usable rfont_def is found
7804 in a fallback font-group, make it the first element of the group.
7805
7806 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7807
7808 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7809
7810 2009-06-24 Kenichi Handa <handa@m17n.org>
7811
7812 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7813 set for C.
7814 (fontset_font): Record the availability of a font for C both in
7815 the realized fontsets of the current one and the default one.
7816
7817 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7818
7819 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7820 conditional, it is always defined on AIX.
7821
7822 2009-06-23 Miles Bader <miles@gnu.org>
7823
7824 * window.c (Vrecenter_redisplay): New variable.
7825 (syms_of_window): Initialize it.
7826 (Qtty): New extern declaration.
7827 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7828
7829 2009-06-23 Jim Meyering <meyering@redhat.com>
7830
7831 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7832 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7833 pointer dereferences are guaranteed to be valid.
7834
7835 2009-06-23 Kenichi Handa <handa@m17n.org>
7836
7837 * emacs.c (main): Call init_font ().
7838
7839 * font.h (Vfont_log): Extern it.
7840 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7841
7842 * font.c (font_sort_entities, font_list_entities)
7843 (font_matching_entity, font_open_entity)
7844 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7845 (Vfont_log): Delete static.
7846 (font_log_env_checked): Delete this variable.
7847 (font_add_log): Don't check font_log_env_checked.
7848 (font_deferred_log): Check Vfont_log.
7849 (init_font): New function.
7850
7851 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7852
7853 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7854
7855 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7856
7857 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7858
7859 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7860 (face_for_char): Don't call font_deferred_log here.
7861 (font_for_char): Likewise.
7862
7863 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7864
7865 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7866 rather than its background_width for drawing the overline and
7867 underline (Bug#489).
7868
7869 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7870 rather than its background_width for drawing the overline and
7871 underline (Bug#489).
7872 (xg_default_icon_file): New variable.
7873 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7874 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7875
7876 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7877 (load_overlay_strings): Remove externs.
7878 (fast_find_position): Function deleted.
7879 (mouse_face_from_buffer_pos): New function, based on
7880 fast_find_position. Correctly handle before-strings,
7881 display-strings, and after-strings (Bug#1220).
7882 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7883
7884 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7885
7886 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7887 (move_it_in_display_line_to, move_it_in_display_line_to)
7888 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7889
7890 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7891
7892 * Branch for 23.1.
7893
7894 2009-06-21 Jason Rumney <jasonr@gnu.org>
7895
7896 * w32term.c (keyboard_codepage): New static variable.
7897 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7898 (w32_read_socket) [WM_CHAR]: Use it to decode character
7899 input (bug#3237).
7900 (w32_initialize): Initialize it.
7901 (codepage_for_locale): New function.
7902
7903 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7904
7905 * process.c (status_message): Pass Faset index argument as a lisp
7906 object, so as to work with USE_LISP_UNION_TYPE.
7907
7908 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7909
7910 * coding.c (Ffind_coding_systems_region_internal):
7911 Cache checked characters.
7912
7913 2009-06-18 Kenichi Handa <handa@m17n.org>
7914
7915 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7916
7917 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7918
7919 * xdisp.c (redisplay_internal): Check that the frame is still
7920 live after redisplay of its windows.
7921 (redisplay_windows): Check that the window is still live.
7922
7923 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7924
7925 * coding.c (detect_coding_utf_16): Fix previous change.
7926
7927 2009-06-16 Kenichi Handa <handa@m17n.org>
7928
7929 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7930 UTF-16 by checking the dispersion of Eth and Oth bytes.
7931
7932 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7933
7934 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7935
7936 2009-06-15 Kenichi Handa <handa@m17n.org>
7937
7938 * process.c (status_message): Fix previous change. Be sure to
7939 decode a localized string.
7940
7941 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7942
7943 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7944 add comment explaining why.
7945
7946 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7947
7948 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7949
7950 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7951
7952 * nsfont.m (ns_attribute_value): Remove.
7953 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7954 (ns_has_attribute): Shrink the normal range.
7955 (ns_findfonts): Don't worry about requested spec in determining
7956 need for synthItal.
7957 (ns_get_covering_families): Retain scriptToFamilies.
7958
7959 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7960
7961 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7962
7963 2009-06-11 Kenichi Handa <handa@m17n.org>
7964
7965 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7966 overhang for the static composition case.
7967
7968 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7969
7970 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7971 overhang for the automatic composition case.
7972
7973 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7974 composition case.
7975
7976 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7977
7978 * xdisp.c (get_next_display_element): When handling wrap-prefix
7979 and line-prefix, treat \n as a control character (bug#3502).
7980
7981 2009-06-10 Kenichi Handa <handa@m17n.org>
7982
7983 * font.c (font_parse_family_registry): Fix for one-char foundry.
7984 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7985
7986 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7987
7988 * process.c (status_message): Fix handling of multibyte signal
7989 string (Bug#3499).
7990
7991 2009-06-09 Jim Meyering <meyering@redhat.com>
7992
7993 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7994 color name is missing.
7995
7996 2009-06-09 Kenichi Handa <handa@m17n.org>
7997
7998 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7999 FROM-CODE and TO-CODE are codepoints of CHARSET.
8000
8001 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8002
8003 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8004
8005 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8006
8007 Changes to support :script/:lang/:otf in NS font driver.
8008 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8009 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8010 indicate not part of font driver interface, and change callers.
8011 (ns_get_family): Remove pointless null check.
8012 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8013 ns_spec_to_descriptor, ns_descriptor_to_entity.
8014 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8015 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8016 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8017 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8018 (ns_get_req_script, ns_accumulate_script_ranges)
8019 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8020 New functions.
8021 (nsfont_list, nsfont_match): Use ns_findfonts.
8022 (nsfont_open): Use font descriptor instead of traits.
8023 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8024 (dump_glyphstring): Rename to ns_dump_glyphstring.
8025
8026 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8027
8028 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8029
8030 * fontset.c (fontset_from_font): Remove NS-specific code.
8031
8032 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
8033
8034 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8035 nonactive windows.
8036
8037 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
8038
8039 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
8040
8041 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8042
8043 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8044
8045 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
8046
8047 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8048 account for the overflowing of newlines into the last glyph on the
8049 display line (Bug#3482).
8050
8051 2009-06-05 David Reitter <david.reitter@gmail.com>
8052
8053 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8054 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
8055 Fns_selection_exists_p, Fns_selection_owner_p.
8056
8057 2009-06-03 Jason Rumney <jasonr@gnu.org>
8058
8059 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8060 available. (Bug#3379)
8061
8062 2009-05-29 Kenichi Handa <handa@m17n.org>
8063
8064 * coding.c (get_translation_table):
8065 Check Venable_character_translation.
8066
8067 2009-05-26 David Reitter <david.reitter@gmail.com>
8068
8069 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8070 (x_make_frame_visible): Move frame to front rather than calling
8071 ns_raise_frame().
8072 (keyDown:): Do not swallow events that aren't re-sent if frame
8073 isn't key window.
8074 (drawRect:): Do not set visibility/iconified flags because
8075 drawRect may be called by NSView even if the frame is hidden.
8076
8077 * nsfns.m (Fx_create_frame): Follow other ports in
8078 determining visibility; default to t. Ensure async_visible is set.
8079
8080 2009-05-23 Eli Zaretskii <eliz@gnu.org>
8081
8082 * dired.c (Ffile_attributes): Doc fix.
8083
8084 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
8085
8086 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8087
8088 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8089
8090 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8091 and xfont_scratch_props.
8092 (syms_of_xfont): Do it here instead.
8093 (xfont_find_ccl_program): Delete, unused.
8094 (xfont_open): Delete unused var `i'.
8095
8096 2009-05-21 Kenichi Handa <handa@m17n.org>
8097
8098 * fontset.c (Qlatin): Don't make it static.
8099
8100 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8101 New functions.
8102 (xfont_scripts_cache, xfont_scratch_props): New variables.
8103 (Qlatin, Vscalable_fonts_allowed): Extern it.
8104 (xfont_list_pattern): Argument changed. Callers changed.
8105 Check Vscalable_fonts_allowed. Check the support of a script.
8106 (xfont_list): Don't reject a font spec with :script property.
8107 (xfont_has_char): Fix setting of encoding.
8108 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8109 xfont_scratch_props.
8110
8111 2009-05-19 Kenichi Handa <handa@m17n.org>
8112
8113 * font.c (font_sort_entities): Rename from font_sort_entites.
8114 Callers changed.
8115
8116 2009-05-18 Kenichi Handa <handa@m17n.org>
8117
8118 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8119
8120 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8121
8122 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8123 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8124
8125 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8126
8127 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8128 (x_delete_terminal): Dissociate resource database from display and
8129 then call XrmDestroyDatabase before closing display.
8130
8131 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8132
8133 * nsterm.m (ns_read_socket): Remove unused variable.
8134 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8135 whether selected frame is viable before raising it (based on patch
8136 by David Reitter), and improve commentary.
8137 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
8138
8139 2009-05-15 Kenichi Handa <handa@m17n.org>
8140
8141 * font.c (Ffont_spec): Check arguments.
8142
8143 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
8144
8145 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8146 weight when testing attributes (Bug#3282).
8147
8148 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8149
8150 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8151 what we expect to get in the next ConfigureNotify event.
8152
8153 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8154 before Xft one (Bug#1696).
8155
8156 2009-05-07 David Reitter <david.reitter@gmail.com>
8157
8158 * nsfns.m (Fx_display_planes): Compute bitplanes using
8159 NSBitsPerPixelFromDepth (Bug#3207).
8160
8161 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
8162
8163 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8164
8165 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
8166
8167 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8168
8169 2009-05-07 David Reitter <david.reitter@gmail.com>
8170
8171 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8172 Respect mouse face background.
8173
8174 2009-05-07 David Reitter <david.reitter@gmail.com>
8175
8176 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8177 Mouse movement/highlight: bracket drawing operations
8178 in ns_update_begin and ns_update_end.
8179
8180 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8181
8182 * nsfns.m (ns_get_screen): Rewrite.
8183 Don't presume selected-frame is of type `ns'.
8184
8185 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8186 all drivers.
8187
8188 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8189
8190 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8191
8192 * keyboard.h (add_user_signal): Fix typo in extern.
8193
8194 * lisp.h (add_user_signal): Remove extern.
8195
8196 * unexelf.c (unexec): Consider a section to precede the .bss section
8197 if its addresses overlap that of .bss.
8198 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8199 instead of dumping process.
8200
8201 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8202
8203 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8204
8205 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8206
8207 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8208
8209 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8210
8211 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8212 any statements.
8213
8214 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8215
8216 * process.c (read_process_output): Make sure the current buffer is
8217 always restored.
8218
8219 * coding.c (record_conversion_result): Don't modify
8220 Vlast_code_conversion_error for successful result.
8221 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8222
8223 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8224
8225 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8226 (load_charset_map): Remove unnecessary code.
8227
8228 2009-04-30 David Reitter <david.reitter@gmail.com>
8229
8230 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8231 through f24.
8232
8233 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8236
8237 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8238 face_at_buffer_position.
8239 (face_before_or_after_it_pos, get_next_display_element)
8240 (note_mouse_highlight): Update face_at_buffer_position call.
8241
8242 * term.c (term_mouse_highlight):
8243 * msdos.c (IT_note_mouse_highlight):
8244 * fontset.c (Finternal_char_font):
8245 * font.c (font_at, font_range): Update face_at_buffer_position call.
8246
8247 * dispextern.h (face_at_buffer_position): Update prototype.
8248
8249 2009-04-30 Kenichi Handa <handa@m17n.org>
8250
8251 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8252
8253 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8254
8255 * callproc.c (Fcall_process): Fix GC protection. Make sure
8256 current buffer is always restored.
8257
8258 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8259
8260 * atimer.c (init_atimer): Also clear stopped_atimers.
8261
8262 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8263
8264 * process.c (create_process): Clean up merger residues of
8265 2008-07-17 change.
8266
8267 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8268
8269 * lread.c (Vread_circle): New variable.
8270 (read1): Disable recursive read if Vread_circle is nil.
8271
8272 2009-04-29 Kenichi Handa <handa@m17n.org>
8273
8274 * fontset.h (set_default_ascii_font): Delete extern.
8275
8276 * fontset.c (set_default_ascii_font): Delete this unused function.
8277
8278 * frame.c (x_set_font): When ARG is a font-object, check if the
8279 font-object matches with the ASCII font-spec of the frame's
8280 fontset. If not, create a new fontset for the frame. (Bug #3075)
8281
8282 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8283
8284 * fns.c (Flocale_info): Protect vector from GC during decoding.
8285
8286 * process.c (Fstart_process): Protect argv strings from GC during
8287 encoding.
8288
8289 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8290
8291 * sysdep.c: Include <ctype.h>.
8292
8293 2009-04-27 David Reitter <david.reitter@gmail.com>
8294
8295 * nsfont.m (nsfont_open): Remove unused variable shrink.
8296 Remove commented-out code.
8297
8298 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8299
8300 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8301
8302 2009-04-25 Jason Rumney <jasonr@gnu.org>
8303
8304 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8305
8306 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8307
8308 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8309 Swap bytes in short integer if fringe bitmap width > 8.
8310
8311 2009-04-23 Kenichi Handa <handa@m17n.org>
8312
8313 * xfaces.c (Fx_list_fonts): If a font size is specified in
8314 PATTERN, set it in returned scalable fonts.
8315
8316 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8317
8318 * keyboard.c (Fset_input_meta_mode): Doc fix.
8319
8320 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8321
8322 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
8323
8324 * coding.c (Fterminal_coding_system): Doc fix.
8325
8326 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8327 (Fx_display_pixel_height, Fx_display_planes)
8328 (Fx_display_color_cells, Fx_server_max_request_size)
8329 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8330 (Fx_display_mm_height, Fx_display_mm_width)
8331 (Fx_display_backing_store, Fx_display_visual_class)
8332 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8333 Doc fixes, replacing "terminal id" with "terminal object".
8334 (check_x_display_info): Handle terminal objects instead of
8335 terminal ids.
8336
8337 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8338 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
8339 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8340 Doc fixes, replacing "terminal id" with "terminal object".
8341
8342 2009-04-21 Kenichi Handa <handa@m17n.org>
8343
8344 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
8345 (font_score): Check AVGWIDTH too.
8346
8347 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8348 worst case.
8349 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8350 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
8351
8352 2009-04-19 Jason Rumney <jasonr@gnu.org>
8353
8354 The following changes fix Bug#3005 for wide glyphs on each platform,
8355 without reintroducing Bug#1258 for stretch glyphs.
8356
8357 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8358 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8359 get_phys_cursor_geometry.
8360
8361 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
8362 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8363 using get_phys_cursor_geometry.
8364
8365 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8366 correctly calculated.
8367
8368 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8369
8370 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8371 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
8372 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8373 is deprecated.
8374
8375 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8376
8377 * font.c (font_put_frame_data): Use xfree instead of free.
8378
8379 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
8380
8381 * w32font.c (Qja, Qko): Remove declarations.
8382 (syms_of_w32font): Don't DEFSYM them.
8383
8384 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
8385
8386 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8387
8388 * font.h (Qja, Qko): Extern them.
8389
8390 * ftfont.c (Qja, Qko): Remove declarations.
8391
8392 * xfont.c (Qja, Qko): Remove declarations.
8393
8394 2009-04-17 Kenichi Handa <handa@m17n.org>
8395
8396 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8397 string from a vector to handle Latin-1 characters correctly.
8398
8399 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8400 entity even if the cache hits.
8401
8402 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8403
8404 * search.c (boyer_moore): Use zero as marker value for a possible
8405 match instead of depending on overflow behavior. (Bug#2844)
8406
8407 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8408 * lisp.h: Adjust prototypes.
8409
8410 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
8411
8412 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8413 change (Bug#3003).
8414
8415 2009-04-16 Kenichi Handa <handa@m17n.org>
8416
8417 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
8418
8419 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8420 adstyle.
8421
8422 * ftfont.c (Qja, Qko): Don't make them static.
8423 (enum ftfont_cache_for): New enum.
8424 (fc_charset_table): Undo the previous change.
8425 (ftfont_get_latin1_charset): Delete it.
8426 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8427 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
8428 non-scarable font, try to get AVERAGE_WIDTH.
8429 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8430 Change ft_face_cache from a list of a hash-table. Don't check
8431 `ja' and `ko' adstyle here.
8432 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8433 FTFONT_CACHE_FOR_CHARET.
8434 (ftfont_get_charset): Undo the previous change.
8435 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
8436 (ftfont_close): Likewise.
8437 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8438
8439 * font.c (font_sort_entites): Change the meaning of the arg
8440 BEST-ONLY. Don't optimize for VEC of lenght 1.
8441 (font_select_entity): Just return the value of font_sort_entites.
8442
8443 * xfaces.c (merge_face_vectors): Reflect font properties in
8444 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8445 font_clear_prop if a face attribute doesn't change.
8446
8447 * charset.h (charset_ksc5601): Extern it.
8448
8449 * charset.c (charset_ksc5601): New variable.
8450 (Fdefine_charset_internal): Set charset_ksc5601.
8451 (init_charset_once): Initialize charset_ksc5601 to -1.
8452
8453 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8454
8455 * fileio.c (history_delete_duplicates): Remove unused declaration.
8456
8457 * callint.c (history_delete_duplicates): New declaration.
8458 (Fcall_interactively): Remove command history duplicates when
8459 history_delete_duplicates is true.
8460
8461 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8462
8463 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8464
8465 2009-04-14 Kenichi Handa <handa@m17n.org>
8466
8467 * font.c (Ffont_info): Fix docstring. Fix the second element of
8468 the returned value (bug#2949).
8469
8470 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8471
8472 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8473
8474 2009-04-14 Kenichi Handa <handa@m17n.org>
8475
8476 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8477 encoding charset is ascii_compatible.
8478
8479 * charset.c (Fdefine_charset_internal): Make charset
8480 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8481 code_offset is 0, and covers all ASCII characters.
8482
8483 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8484
8485 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8486 (ns_string_to_pasteboard_internal):
8487 * nsmenu.m (process_dialog):
8488 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8489 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8490 * lisp.h (Fx_load_color_file): Declare.
8491
8492 2009-04-13 Kenichi Handa <handa@m17n.org>
8493
8494 * font.c (font_delete_unmatched): Preserve the order of list elements.
8495 (font_select_entity): Suppress the code to optimize for the same
8496 kind of fonts.
8497 (font_load_for_lface): Get a font that supports at least ASCII
8498 characters.
8499
8500 * ftfont.c (Qja, Qko): New variables.
8501 (fc_charset_table): Delete uniquifier data for iso8859-1.
8502 (ftfont_get_latin1_charset): New function.
8503 (get_adstyle_property): New function.
8504 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8505 bitmap fonts.
8506 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8507 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8508 `ko' or `ja'.
8509 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8510 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8511 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8512 property.
8513 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8514 (syms_of_ftfont): DEFSYM Qja and Qko.
8515
8516 2009-04-09 Kenichi Handa <handa@m17n.org>
8517
8518 * charset.c (map_charset_chars): For a charset of `superset'
8519 method, fix calculation of code range.
8520
8521 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8522 from the list of extra properties.
8523 (font_clear_prop): Be sure to delete `:name' font property.
8524
8525 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8526
8527 * dispnew.c (redraw_overlapping_rows): Fix detection of
8528 overlapping for topmost and bottommost rows.
8529
8530 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8531
8532 2009-04-06 Jason Rumney <jasonr@gnu.org>
8533
8534 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8535
8536 2009-04-06 Kenichi Handa <handa@m17n.org>
8537
8538 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8539
8540 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8541
8542 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8543
8544 * ftfont.c (ftfont_open): Fix checking of the return value of
8545 FT_Load_Char. Fix setting font->underline_thickness.
8546
8547 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8548
8549 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8550 (Fterminal_parameters, Fterminal_parameter)
8551 (Fset_terminal_parameter): In doc string, refer to terminal
8552 objects rather than terminal ids.
8553
8554 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8555
8556 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8557 ret_lim_data. (Bug#2867)
8558
8559 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8560
8561 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8562 so they don't get wider than the window, matching 2006-01-23
8563 change to the partner function in xdisp.c (Bug#2800).
8564
8565 2009-04-03 Kenichi Handa <handa@m17n.org>
8566
8567 * print.c (print_object): Make each lowest sub_char_table start a
8568 new line (Bug#2866).
8569
8570 2009-04-02 Kenichi Handa <handa@m17n.org>
8571
8572 * fontset.c (fontset_font): Record no-font when a fontset
8573 explicitly tells not to try another font-specs.
8574
8575 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8576
8577 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8578
8579 2009-03-30 Kenichi Handa <handa@m17n.org>
8580
8581 * fontset.c (fontset_from_font): Specify only registry in a
8582 font-spec for all characters supported by that registry.
8583
8584 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8585 even if HAVE_M17N_FLT is not defined.
8586
8587 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8588
8589 * ftfont.c: Conditionalize prototyping and use of
8590 ftfont_variation_glyphs.
8591
8592 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8593
8594 * frame.c (delete_frame): Work around compiler bug.
8595
8596 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8597 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8598 Some more EMACS_INT.
8599 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8600
8601 * xdisp.c (dump_glyph): Fix typo.
8602
8603 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8604 (adjust_markers_gap_motion, adjust_markers_for_delete)
8605 (adjust_markers_for_insert, adjust_point)
8606 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8607 (make_gap, copy_text, count_size_as_multibyte, insert)
8608 (insert_and_inherit, insert_before_markers)
8609 (insert_before_markers_and_inherit, insert_1)
8610 (count_combining_before, count_combining_after, insert_1_both)
8611 (insert_from_string, insert_from_string_before_markers)
8612 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8613 (insert_from_buffer_1, adjust_after_replace)
8614 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8615 (replace_range_2, del_range, del_range_1, del_range_byte)
8616 (del_range_both, del_range_2, modify_region)
8617 (prepare_to_modify_buffer, signal_before_change)
8618 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8619 for buffer positions and sizes.
8620 * lisp.h: Adjust prototypes accordingly.
8621
8622 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8623 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8624 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8625
8626 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8627
8628 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8629
8630 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8631 lines and columns so we keep the same pixel height and width.
8632
8633 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8634 the property _NET_WM_STATE has changed.
8635 (x_handle_net_wm_state): New function to update frame parameter
8636 fullscreen.
8637 (x_term_init): Initialize atoms for _NET_WM_STATE.
8638
8639 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8640
8641 2009-03-27 Kevin Ryde <user42@zip.com.au>
8642
8643 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8644 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8645 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8646 (Fgpm_mouse_stop): Pass that new parameter.
8647 * termhooks.h (close_gpm): Adjust prototype.
8648
8649 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8650
8651 * lisp.h (Fx_focus_frame): Declare.
8652
8653 * callint.c (Fcall_interactively): For '^' just delegate the work to
8654 handle-shift-selection.
8655 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8656
8657 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8658
8659 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8660
8661 * data.c (Qinteractive_form): New variable.
8662 (Finteractive_form): Use it.
8663
8664 * eval.c (Fcommandp): Use Qinteractive_form.
8665
8666 2009-03-24 Jason Rumney <jasonr@gnu.org>
8667
8668 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8669 Calculate total size precisely. Decode environment variables
8670 before substituting. (Bug#38)
8671
8672 2009-03-24 Kenichi Handa <handa@m17n.org>
8673
8674 * font.c (find_font_encoding): Return Qnil for unsupported
8675 encoding (Bug#2722).
8676
8677 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8678
8679 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8680 that gdpy is set.
8681
8682 2009-03-22 Alan Mackenzie <acm@muc.de>
8683
8684 * callint.c (Finteractive): Clarify the doc string - even
8685 promptless elements need \n separators.
8686
8687 2009-03-22 Jason Rumney <jasonr@gnu.org>
8688
8689 * w32term.c (syms_of_w32term): Doc fix for
8690 x-use-underline-position-properties.
8691
8692 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8693
8694 * w32.c (getpwuid): Change argument type to unsigned.
8695 (struct w32_id): Change type of `rid' member to unsigned.
8696 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8697 argument ID to unsigned. All callers changed.
8698 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8699
8700 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8701
8702 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8703 negative, produce a float value.
8704
8705 * dired.c (make_uid, make_gid): New functions.
8706 (Ffile_attributes): Use them to avoid negative UID and GID.
8707
8708 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8709
8710 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8711 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8712 Fix typos in docstrings.
8713
8714 2009-03-19 Kenichi Handa <handa@m17n.org>
8715
8716 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8717 changed, use font_load_for_lface to get a new font object.
8718 Call free_realized_fontset after handling ASCII font change.
8719
8720 * frame.c (x_set_font): Handle the case that ARG is a cons.
8721
8722 2009-03-19 Glenn Morris <rgm@gnu.org>
8723
8724 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8725
8726 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8727
8728 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8729
8730 2009-03-19 Kenichi Handa <handa@m17n.org>
8731
8732 * charset.c (load_charset_map_from_file): When a mapfile can't be
8733 loaded, signal an error.
8734
8735 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8736
8737 * dired.c (Ffile_attributes): Make sure UID and GID are always
8738 positive, even if the value is too large for a positive EMACS_INT.
8739 Doc fix.
8740
8741 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8742
8743 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8744
8745 * xmenu.c (xdialog_show): Move Fredisplay call ...
8746 (Fx_popup_dialog): ... here.
8747
8748 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8749
8750 * dired.c (file_name_completion): Disable the first optimization just
8751 installed, since it is not implemented correctly.
8752
8753 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8754
8755 * dired.c (file_name_completion): Check completion-ignored-extensions
8756 only if the entry can affect bestmatch.
8757 Stop the search early, as Ftry_completion already does.
8758
8759 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8760
8761 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8762
8763 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8764
8765 * keyboard.c (parse_menu_item): Don't display remappings as menu
8766 equivalent bindings (Bug#788).
8767
8768 2009-03-15 Jason Rumney <jasonr@gnu.org>
8769
8770 * w32term.h (WM_EMACS_PAINT): New message.
8771 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8772 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8773 before passing to lisp thread. (Bug#950)
8774
8775 2009-03-14 David Reitter <david.reitter@gmail.com>
8776
8777 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8778 variable as it was never reset.
8779 (ns_term_init): Remove initialization of Lisp-settable defaults
8780 and ns_expand_space.
8781 (-setPanelFromDefaultValues): Remove ns_expand_space.
8782 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8783 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8784 i.e. no additional spacing, similar to Carbon port.
8785
8786 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8787 * nsfns.m (ns-popup-prefs-panel): Remove.
8788
8789 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8790
8791 * sound.c (alsa_configure): Remove call to deprecated
8792 snd_pcm_sw_params_set_xfer_align.
8793
8794 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8795
8796 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8797 after clicking in a detached tool bar.
8798 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8799
8800 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8801
8802 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8803 int/Lisp_Object mixup).
8804
8805 2009-03-13 Kenichi Handa <handa@m17n.org>
8806
8807 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8808 Handle NAME nil and t correctly. Callers changed.
8809 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8810 (set_fontset_font): Change ARG to a vector. Handle range_list in
8811 ARG correctly.
8812 (Fset_fontset_font): Fix the case that TARGET is both a script
8813 name and charset name. Adjust the arg to set_fontset_font for
8814 the above change.
8815 (fontset_from_font): Fix previous change.
8816 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8817 entry. If FONTSET is the default fontset, don't set the extra
8818 slot of the returning char-table.
8819
8820 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8821
8822 * nsfns.m (Fx_close_connection): Doc fix.
8823 (Fns_do_applescript): Reflow docstring.
8824 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8825 (Fx_display_pixel_width, Fx_display_pixel_height)
8826 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8827 Fix typos in docstrings.
8828 (Fns_set_alpha): Fix typos in error messages.
8829
8830 2009-03-12 David Reitter <david.reitter@gmail.com>
8831
8832 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8833 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8834 were used for such events.
8835
8836 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8837 (toggleToolbar, performDragOperation, runHelp): Use it.
8838
8839 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8840 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8841
8842 2009-03-11 Kenichi Handa <handa@m17n.org>
8843
8844 * font.h (font_open_by_spec): Extern it.
8845
8846 * font.c (font_open_by_spec): New function.
8847 (font_open_by_name): Use font_open_by_spec.
8848
8849 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8850 fontset of the frame.
8851
8852 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8853 modify the default font of frames that use this fontset.
8854 (num_auto_fontsets): New variable.
8855 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8856 name. Be sure to set FONTSET_ASCII to the correct font name.
8857 (update_auto_fontset_alist): New function.
8858
8859 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8860
8861 * makefile.w32-in: Update dependencies.
8862
8863 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8864
8865 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8866
8867 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8868
8869 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8870
8871 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8872
8873 * lread.c (Feval_buffer): Doc fix.
8874
8875 2009-03-09 Kenichi Handa <handa@m17n.org>
8876
8877 * charset.c (Qfile_name_handler_alist): Extern it.
8878 (load_charset_map_from_file): Temporarily bind
8879 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8880
8881 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8882
8883 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8884 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8885
8886 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8887
8888 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8889 (x_set_window_size): Change back to calculated method of setting
8890 toolbar height under Cocoa. (Bug#2546)
8891 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8892 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8893
8894 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8895
8896 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8897 accelerator in parens under GNUstep.
8898
8899 2009-03-06 Kenichi Handa <handa@m17n.org>
8900
8901 These changes are to detect incorrect composition sequence without
8902 looking ahead the source. (Bug#2370)
8903
8904 * coding.h: Include "composite.h".
8905 (enum compisition_state): New enum.
8906 (struct compisition_status): New struct.
8907 (struct iso_2022_spec): New member cmp_status.
8908 (struct emacs_mule_spec): New struct.
8909 (struct coding_system): New members ctext_extended_segment_len and
8910 embedded_utf_8. Change the union member
8911 spec.emacs_mule_full_support to spec.emacs_mule.
8912
8913 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8914 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8915 (MAX_ANNOTATION_LENGTH): Define to 5.
8916 (ADD_COMPOSITION_DATA): New arg nbytes.
8917 (emacs_mule_char): New arg cmp_status.
8918 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8919 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8920 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8921 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8922 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8923 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8924 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8925 (EMACS_MULE_COMPOSITION_END): New macro.
8926 (emacs_mule_finish_composition): New function.
8927 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8928 (decode_coding_emacs_mule): Avoid long looking ahead while
8929 handling composition.
8930 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8931 (ENCODE_COMPOSITION_RULE): New macro.
8932 (finish_composition): New function.
8933 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8934 (DECODE_COMPOSITION_START): New implementation.
8935 (DECODE_COMPOSITION_END): Likewise.
8936 (STORE_COMPOSITION_RULE): New macro.
8937 (decode_coding_iso_2022): Avoid long looking ahead while handling
8938 composition, CTEXT extended segment, and embedded UTF-8.
8939 (setup_coding_system): For a coding of type iso-2022, reset
8940 CODING_ISO_EXTSEGMENT_LEN (coding) and
8941 CODING_ISO_EMBEDDED_UTF_8 (coding).
8942 (get_translation): Delete arguments last_block, from_nchars,
8943 to_nchars. Callers changed.
8944 (produce_chars): Don't modify charbuf. Adjusted for the change of
8945 get_translation.
8946 (produce_composition): Adjust for the new annotation sequence.
8947 (handle_composition_annotation): Likewise.
8948 (consume_chars): Adjust for the change of get_translation.
8949
8950 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8951
8952 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8953
8954 2009-03-05 Kenichi Handa <handa@m17n.org>
8955
8956 * font.c (font_select_entity): New function.
8957 (font_find_for_lface): Use font_select_entity to select a font.
8958
8959 * fontset.c (fontset_find_font): If a font found without
8960 restricting to the characters C doesn't support C, try to find a
8961 font with C restriction.
8962
8963 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8964
8965 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8966
8967 2009-03-04 Jason Rumney <jasonr@gnu.org>
8968
8969 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8970 characters that have already been read. (Bug#2569)
8971
8972 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8973 Log an error message if check_image_size failed.
8974 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8975 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8976
8977 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8978
8979 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8980 when decoding process output.
8981
8982 2009-03-01 Richard M Stallman <rms@gnu.org>
8983
8984 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8985
8986 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8987
8988 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8989
8990 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8991 (decode_coding_emacs_mule, decode_coding_iso_2022)
8992 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8993 (decode_coding_raw_text, decode_coding_charset)
8994 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8995 Honor inhibit-eol-conversion. (Bug #2186)
8996
8997 2009-02-28 Jason Rumney <jasonr@gnu.org>
8998
8999 * coding.c (detect_coding_charset): If not checking latin extra,
9000 fail on characters between 0x80 and 0xA0. (Bug#2354)
9001
9002 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9003
9004 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
9005 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
9006
9007 2009-02-27 Glenn Morris <rgm@gnu.org>
9008
9009 * callint.c (Finteractive): Doc fix.
9010
9011 2009-02-27 Kenichi Handa <handa@m17n.org>
9012
9013 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9014
9015 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
9016
9017 * font.c (font_style_to_value): Set value for unknown symbols to
9018 100 instead of 255.
9019 (weight_table, slant_table, width_table): Treat "unspecified" as
9020 the default value.
9021
9022 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
9023
9024 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9025
9026 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
9027
9028 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9029 error as soon as a recursive load is detected.
9030
9031 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9032
9033 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9034 before caching.
9035
9036 2009-02-24 Kenichi Handa <handa@m17n.org>
9037
9038 * fontset.c (fontset_find_font): Fix the condition for checking
9039 unavailable font.
9040
9041 2009-02-24 Glenn Morris <rgm@gnu.org>
9042
9043 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9044 whitespace that confuses documentation.
9045
9046 2009-02-23 Miles Bader <miles@gnu.org>
9047
9048 * process.c (Flist_system_processes, Fprocess_attributes)
9049 (syms_of_process): Rename `system-process-attributes' to
9050 `process-attributes'.
9051
9052 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9053
9054 * coding.h (struct coding_system): Make safe_charsets a pointer to
9055 unsigned char.
9056 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9057 being 255.
9058 (SAFE_CHARSET_P): Likewise.
9059 (setup_iso_safe_charsets): Properly setup safe_charsets.
9060 (Fdefine_coding_system_internal): Likewise.
9061 (setup_coding_system): Likewise. Remove unneeded casts.
9062 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9063 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9064 unneeded casts.
9065
9066 * insdel.c (del_range_2): Don't modify gap contents when called
9067 from decode_coding_object. (Bug#1809)
9068
9069 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
9070
9071 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9072 Qfont_object.
9073 (Ftype_of): Recognize font objects.
9074
9075 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9076
9077 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9078 moved to data.c.
9079
9080 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9081
9082 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9083 async_iconified. Based on a patch by Christian Lynbech
9084 <christian.lynbech@tieto.com>.
9085 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9086
9087 2009-02-20 Glenn Morris <rgm@gnu.org>
9088
9089 * syntax.c (Fskip_chars_forward): Fix doc typo.
9090
9091 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
9092
9093 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9094
9095 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
9096
9097 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9098
9099 2009-02-19 Kenichi Handa <handa@m17n.org>
9100
9101 * coding.c (detect_coding): Preserve coding->mode.
9102 Don't overflow coding->carryover. (Bug#2370)
9103
9104 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9105
9106 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9107
9108 2009-02-18 Kenichi Handa <handa@m17n.org>
9109
9110 * font.c (font_check_otf_features): Fix handling of `nil' element.
9111 (Ffont_spec): Describe :lang and :otf in the docstring.
9112
9113 2009-02-16 Andreas Schwab <schwab@suse.de>
9114
9115 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9116 string.
9117
9118 2009-02-16 Kenichi Handa <handa@m17n.org>
9119
9120 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
9121 (Bug#1723)
9122
9123 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
9124
9125 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
9126
9127 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9128 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9129
9130 2009-02-14 Eli Zaretskii <eliz@gnu.org>
9131
9132 * msdos.c (MAX_SCREEN_BUF): New macro.
9133 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9134 Encode the entire run of glyphs sharing the same face, instead of
9135 doing that one glyph at a time (fixes a bug with displaying
9136 double-size characters).
9137
9138 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9139
9140 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9141
9142 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9143 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
9144 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
9145
9146 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
9147 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
9148
9149 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9150
9151 * keyboard.c (adjust_point_for_property): Allow stopping between two
9152 invisible areas.
9153
9154 2009-02-12 Jason Rumney <jasonr@gnu.org>
9155
9156 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9157 (add_font_entity_to_list): Call check_face_name even when family
9158 is unspecified.
9159
9160 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9161 Release DC when finished. Use NULL window to refer to desktop.
9162 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
9163
9164 * w32font.c (add_font_entity_to_list): Fix check for substituted
9165 raster fonts. (Bug#2219)
9166
9167 2009-02-12 Kenichi Handa <handa@m17n.org>
9168
9169 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9170 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9171 (autocmp_chars): Use fast_looking_at. Don't compose more
9172 characters than MAX_COMPOSITION_COMPONENTS.
9173 (find_automatic_composition): While looking forward and backward,
9174 check static composition. Fix where to stop looking forward.
9175 (composition_adjust_point): Fix checking of static composition.
9176 (Fcomposition_get_gstring): Pay attention to
9177 MAX_COMPOSITION_COMPONENTS.
9178
9179 * lisp.h (fast_looking_at): Extern it.
9180
9181 * search.c (fast_looking_at): New function.
9182
9183 * term.c (encode_terminal_code): Adjust for the change of
9184 <struct glyph>.u.cmp.to.
9185 (append_composite_glyph): Likewise.
9186
9187 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9188 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9189 composition.
9190 (append_composite_glyph): Adjust for the change of
9191 <strcut glyph>.u.cmp.to.
9192
9193 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9194
9195 * casetab.c (init_casetab_once):
9196 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9197 * font.c (font_update_lface):
9198 * fontset.c (Fnew_fontset):
9199 * ftfont.c (ftfont_drive_otf):
9200 * xfont.c (xfont_open):
9201 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9202
9203 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9204
9205 * fileio.c (Fwrite_region): !NILP -> CONSP.
9206
9207 2009-02-10 Andreas Schwab <schwab@suse.de>
9208
9209 * process.c (send_process): Properly relocate pointer into data
9210 when using encoded data. (Bug#2272)
9211
9212 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9213
9214 * coding.c (detect_coding_charset): Fix previous change.
9215
9216 2009-02-08 Jason Rumney <jasonr@gnu.org>
9217
9218 * w32fns.c (w32_hide_hourglass): Handle case where frame
9219 disappeared while hourglass was displayed. (Bug #2193)
9220
9221 2009-02-07 Andreas Schwab <schwab@suse.de>
9222
9223 * unexelf.c (unexec): Fix error message.
9224
9225 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9226
9227 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9228 when modal window is active. (Bug #2152)
9229 (applicationShouldTerminate:): Remove now-unneeded while loop
9230 around NSRunAlertPanel.
9231
9232 * nsmenu.m (popupSession): New file-global variable.
9233 (pop_down_menu): End the popupSession before closing dialog.
9234 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9235 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9236 don't query NSApp for events (just sleep instead).
9237
9238 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9239
9240 * coding.c (syms_of_coding) <translation-table-for-input>:
9241 Modify doc string to discourage use for character code unification.
9242
9243 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9244
9245 * atimer.c (run_timers): Update pending_atimers.
9246
9247 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9248
9249 * image.c (svg_load_image): Fix last change.
9250
9251 * xfns.c (Fx_create_frame): Signal an error if no font is
9252 found (Bug#2147).
9253
9254 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9255
9256 * character.c (syms_of_character) <script-representative-chars>:
9257 Fix typo in docstring.
9258
9259 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9260
9261 * nsmenu.m (pop_down_menu): New function.
9262 (ns_popup_dialog): Call it on unwind.
9263 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9264 call timer_check() (Bug#2154).
9265 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9266 handling_signal is set.
9267 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9268
9269 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9270
9271 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9272
9273 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9274
9275 * keyboard.c (poll_for_input_1, handle_async_input):
9276 Set handling_signal under HAVE_NS.
9277
9278 2009-02-04 Glenn Morris <rgm@gnu.org>
9279
9280 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9281
9282 2009-02-04 Kenichi Handa <handa@m17n.org>
9283
9284 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9285
9286 * charset.c (Fchar_charset): New optional arg restriction.
9287
9288 * coding.h (coding_system_charset_list): Extern it.
9289
9290 * coding.c (coding_system_charset_list): New function.
9291
9292 * composite.c: Include coding.h and termhooks.h.
9293 (composition_gstring_p): Fix for the terminal case.
9294 (composition_gstring_width): Likewise.
9295 (fill_gstring_body): Likewise.
9296 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9297 the frame.
9298 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9299 is within a composition.
9300 (Fcomposition_get_gstring): Fix the terminal case.
9301
9302 * term.c (encode_terminal_code): Fix handling of composition.
9303 (produce_composite_glyph): For static composition, get pixel_width
9304 from struct composition.
9305
9306 2009-02-02 Andreas Schwab <schwab@suse.de>
9307
9308 * unexelf.c (unexec): Handle unaligned bss offset.
9309
9310 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9311
9312 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9313 XT,w32read_socket changes to ns_read_socket.
9314
9315 * keyboard.c (handle_interrupt): Don't call
9316 quit_throw_to_read_char() under NS.
9317
9318 * blockinput.h: Remove NS-specific code.
9319
9320 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9321
9322 * dispnew.c (window_change_signal): Don't try to get the size of a
9323 suspended tty frame.
9324 * term.c (Fresume_tty): Resize if the size has changed while the
9325 tty was suspended.
9326
9327 * alloc.c (mark_stack): Properly conditionalize previous change.
9328
9329 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9330
9331 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9332 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9333 Remove; this code is not used on Windows.
9334
9335 2009-01-30 Eli Zaretskii <eliz@gnu.org>
9336
9337 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9338 EOLs that also has stray ^M characters.
9339
9340 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9341
9342 * atimer.c (run_timers, alarm_signal_handler):
9343 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9344 * w32inevt.c (w32_console_read_socket):
9345 * w32term.c (w32_read_socket):
9346 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9347
9348 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
9349
9350 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9351 Initialize it as a relative filename pattern.
9352 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9353 (Fcall_process_region): Simplify temp file creation using
9354 temporary-file-directory.
9355
9356 2009-01-29 Eli Zaretskii <eliz@gnu.org>
9357
9358 * msdos.c: Rename pending_signals to msdos_pending_signals.
9359 (sig_suspender, sigprocmask): Adjust.
9360
9361 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
9362
9363 * keyboard.c (pending_signals): New var.
9364 (poll_for_input, input_available_signal, init_keyboard): Set it.
9365 (process_pending_signals): New function.
9366
9367 * lisp.h (QUIT): Check pending_signals instead of
9368 interrupt_input_pending. Use process_pending_signals.
9369
9370 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
9371
9372 * process.c (wait_reading_process_output): Use process_pending_signals.
9373
9374 * sysdep.c (emacs_write): Use process_pending_signals.
9375
9376 * xterm.c (XTread_socket): Update pending_signals.
9377
9378 * w32term.c (w32_read_socket): Update pending_signals.
9379
9380 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9381
9382 2009-01-29 Kenichi Handa <handa@m17n.org>
9383
9384 * xftfont.c (xftfont_has_char): New function.
9385 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9386
9387 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9388
9389 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9390 under GNUstep.
9391 (ns_query_color): New declaration.
9392
9393 * nsterm.m (ns_confirm_quit): New variable.
9394 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9395 (EmacsApp-applicationShouldTerminate:): Use it.
9396 (EmacsPrefsController): Let user set it.
9397 (ns_query_color): New function.
9398 (ns_defined_color): Use it.
9399 (ns_initialize): Drop.
9400 (ns_term_init): Add two lines from ns_initialize(), and set
9401 input_interrupt_mode to nil.
9402
9403 * image.c (svg_load_image): Don't right-shift background RGB when
9404 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
9405
9406 2009-01-28 Kenichi Handa <handa@m17n.org>
9407
9408 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9409 (fontset_get_font_group): Remember that no font-group is specified
9410 for C.
9411
9412 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
9413
9414 * fns.c (concat): Check for string overflow (bug#1787).
9415
9416 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9417 Quadruple undo limits (bug#1501).
9418
9419 2009-01-27 Kenichi Handa <handa@m17n.org>
9420
9421 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9422 directly use GT_Get_Char_index.
9423
9424 * xftfont.c (struct xftfont_info): New member `index'.
9425
9426 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9427 (Ffontset_font): Adjust for the change of fontset entry.
9428
9429 2009-01-26 Kenichi Handa <handa@m17n.org>
9430
9431 * fontset.c (fontset_find_font): Fix handling of non-cons return
9432 value of fontset_get_font_group.
9433 (fontset_font): Revert last change.
9434
9435 2009-01-26 Jason Rumney <jasonr@gnu.org>
9436
9437 * w32font.c (w32font_list_internal): Return quickly if registry is
9438 unknown. Simplify final return.
9439 (add_font_entity_to_list): Break complex logic down into more
9440 manageable chunks. Move unknown registry check to
9441 w32font_list_internal.
9442
9443 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9444
9445 Changes to remove Feval calls from GUI under NS.
9446
9447 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9448 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
9449 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9450
9451 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9452 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9453 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9454 instead of NON_ASCII_KEYSTROKE_EVENT.
9455 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9456 (EmacsApp-applicationShouldTerminate:): Query user.
9457 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9458 instead of Feval.
9459
9460 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9461
9462 * keyboard.c (kbd_buffer_get_event): Check for it.
9463 (keys_of_keyboard): Define lispy keys for
9464 ns-put/unput-working-text.
9465
9466 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9467 versions.
9468 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9469
9470 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9471
9472 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9473 setting current_buffer directly. (Bug#2044)
9474
9475 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9476
9477 * fontset.c (fontset_font): If we know there is no font, don't do
9478 any work. (Bug#1952, bug#1990).
9479
9480 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9481
9482 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9483
9484 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9485 (ns_no_defaults): New declaration.
9486 (main): Use it.
9487
9488 * nsterm.h (ns_no_defaults): New declaration.
9489
9490 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9491
9492 * nsterm.m (ns_no_defaults): New variable.
9493 (ns_initialize): Don't read defaults when ns_no_defaults.
9494 (EmacsView-readSelectionFromPasteboard:)
9495 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9496 NSServicesRequests protocol. (Bug#1435)
9497 (ns_dumpglyphs_stretch): New function.
9498 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9499 of 2008-11-15 to other terms. (Bug#615)
9500
9501 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9502
9503 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9504
9505 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9506 call for Sparc64.
9507
9508 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9509
9510 * nsfns.m:
9511 * nsgui.h:
9512 * nsmenu.m:
9513 * nsselect.m:
9514 * nsterm.h:
9515 * nsterm.m: Remove '23' comments that indicated code added during
9516 update from emacs-20 -> emacs-23.
9517
9518 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9519
9520 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9521 ns_alternate_modifier. (Bug#1217)
9522
9523 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9524 Display all shortcuts, including those w/o super modifier.
9525
9526 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9527
9528 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9529
9530 * fileio.c (Vwrite_region_post_annotation_function)
9531 (Vwrite_region_annotation_buffers): New vars.
9532 (build_annotations_unwind): Just reset
9533 Vwrite_region_annotation_buffers.
9534 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9535 Call write-region-post-annotation-function.
9536 (build_annotations): Add to Vwrite_region_annotation_buffers if
9537 buffer changes.
9538
9539 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9540
9541 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9542 Tiger.
9543 * nsfns.m (ns_do_applescript):
9544 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9545
9546 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9547
9548 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9549
9550 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9551
9552 * nsmenu.m (NSMENUPROFILE): Change #if style.
9553
9554 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9555
9556 * nsterm.m (x_set_frame_alpha): Add prototype.
9557 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9558 handle Ctrl-tab. (Bug#1841)
9559 (ns_get_color): Use unsigned long long for scanned hex string value.
9560 (ns_term_shutdown): Abort on non SIGTERM signals.
9561 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9562 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9563 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9564 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9565 (ns_defined_color): Fix settings of the XColor variable fields:
9566 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9567
9568 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9569 DPI. (Bug#1316)
9570 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9571 values in onTiger section.
9572
9573 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9574
9575 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9576 Check return value of font_spec_from_name.
9577 (Fx_list_fonts): Doc fix. (Bug#1951)
9578
9579 * font.c (font_spec_from_name): Return Qnil if font name could not
9580 be parsed.
9581 (font_parse_name): Treat a `?' character as part of an XLFD.
9582
9583 * fns.c (Fsubstring): Doc fix.
9584
9585 2009-01-19 Kenichi Handa <handa@m17n.org>
9586
9587 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9588 (ftfont_list): Likewise.
9589
9590 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9591
9592 * dbusbind.c (Fdbus_register_signal):
9593 * process.c (conv_sockaddr_to_lisp):
9594 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9595
9596 * callproc.c (Fgetenv_internal): Doc fix.
9597
9598 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9599
9600 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9601 it is not even used.
9602
9603 2009-01-16 Glenn Morris <rgm@gnu.org>
9604
9605 * font.c (Ffont_variation_glyphs): Silence compiler.
9606
9607 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9608
9609 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9610 Reported by David Robinow <drobinow@gmail.com>.
9611
9612 2009-01-15 Kenichi Handa <handa@m17n.org>
9613
9614 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9615
9616 2009-01-14 Jason Rumney <jasonr@gnu.org>
9617
9618 * frame.c (x_set_font): Always store a font to the font parameter,
9619 never a fontset. (Bug#1562)
9620
9621 2009-01-14 Kenichi Handa <handa@m17n.org>
9622
9623 * coding.c (TWO_MORE_BYTES): New macro.
9624 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9625
9626 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9627
9628 * font.c (font_clear_prop): If clearing the family, clear the font
9629 width index too.
9630
9631 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9632
9633 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9634
9635 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9636 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9637 functions, use sizeof.
9638
9639 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9640
9641 * keyboard.c (read_char): Fix case where last_nonmenu_event
9642 returned a bad value with submenus. (Bug#447)
9643
9644 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9645
9646 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9647 family, clear the font width index too.
9648
9649 2009-01-11 Jason Rumney <jasonr@gnu.org>
9650
9651 * keyboard.c (cmd_error_internal): Exit when errors occur before
9652 frame creation and not in daemon mode. (Bug#1836)
9653
9654 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9655
9656 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9657 of a display vector, backtrack.
9658 (try_window_reusing_current_matrix): Check glyph type before
9659 referencing charpos member.
9660
9661 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9662
9663 Fix Bug #876:
9664
9665 * coding.c (inhibit_null_byte_detection): New variable.
9666 (detect_coding, detect_coding_system): Don't pay attention to null
9667 bytes if inhibit_null_byte_detection is non-zero.
9668 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9669 <inhibit-iso-escape-detection>: Doc fix.
9670
9671 2009-01-09 Jason Rumney <jasonr@gnu.org>
9672
9673 * w32font.c (add_font_entity_to_list): Don't report unknown
9674 Windows charset as any unrecognized registry. (Bug#1548)
9675 Only report Unicode Plane 2 fonts as unicode-sip.
9676
9677 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9678
9679 * xfaces.c (Fx_font_family_list): Delete function.
9680 Move compatibility version to faces.el.
9681
9682 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9683
9684 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9685
9686 * frame.c (x_set_frame_parameters): Remember requested value for
9687 fullscreen before it's reset by the parameter handler.
9688
9689 2009-01-09 Glenn Morris <rgm@gnu.org>
9690
9691 * keyboard.c (last_command_char): For clarity, rename to...
9692 (last_command_event): ... and update all users.
9693 (last_input_char): For clarity, rename to...
9694 (last_input_event): ... and update all users.
9695 (last-command-char, last-input-char): Move to subr.el as aliases.
9696 * cmds.c, commands.h: Update for last_command_char rename.
9697
9698 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9699
9700 * font.c (font_open_for_lface): Handle unspecified height attribute.
9701
9702 2009-01-08 Jason Rumney <jasonr@gnu.org>
9703
9704 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9705 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9706 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9707 Don't declare.
9708 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9709 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9710
9711 2009-01-07 Kenichi Handa <handa@m17n.org>
9712
9713 * fileio.c (Finsert_file_contents): In the case of replace,
9714 remember the coding system used for decoding in
9715 coding_system (Bug#1039).
9716
9717 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9718 breaking the loop. (Bug#870)
9719 (decode_coding_utf_16, decode_coding_emacs_mule)
9720 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9721 (decode_coding_charset): Likewise.
9722
9723 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9724
9725 * frame.c (x_set_frame_parameters): Make sure height (width) get
9726 applied when fullwidth (fullheight) is set. (Bug#1522)
9727
9728 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9729
9730 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9731 (utc_base): Declare as ULONGLONG, not long double.
9732 (convert_time_raw): Delete.
9733 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9734 (initialize_utc_base): New function.
9735 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9736 (convert_from_time_t): Use initialize_utc_base; compute result with
9737 64-bit arithmetic.
9738 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9739
9740 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9741
9742 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9743 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9744 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9745 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9746 [!subprocesses]: Define.
9747 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9748 (Flist_system_processes, Fsystem_process_attributes)
9749 [!subprocesses]: Call list_system_processes and
9750 system_process_attributes instead of returning Qnil.
9751
9752 * dosfns.c (system_process_attributes, list_system_processes):
9753 New functions.
9754
9755 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9756
9757 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9758 Don't use the default (no-op) implementation.
9759
9760 2009-01-03 Jason Rumney <jasonr@gnu.org>
9761
9762 * keyboard.c (parse_modifiers_uncached): Wheel events are
9763 clicks (bug#687).
9764
9765 * w32term.c (x_query_colors, x_query_color): New functions.
9766
9767 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9768 (svg_load_image): Cast returned pointers from dynamically loaded
9769 functions. Eliminate W32 specific code.
9770
9771 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9772
9773 * nsfns.m (x_set_foreground_color, x_set_background_color)
9774 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9775 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9776 x_ prefix instead of ns_. Update references.
9777 (syms_of_nsfns): Add a FIXME comment.
9778
9779 * nsterm.m (x_set_cursor_type): New prototype.
9780 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9781
9782 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9783 for Solaris instead of incorrectly providing Qutime and Qcutime.
9784
9785 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9786
9787 * w32.c (process_times): Compute sum of utime and stime.
9788 (system_process_attributes): Add Qtime to the alist.
9789
9790 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9791 and add them to the alist.
9792
9793 * process.c (top level) <Qtime, Qctime>: New variables.
9794 (syms_of_process): staticpro them.
9795 (Fsystem_process_attributes): Add their documentation to the doc
9796 string.
9797
9798 * process.h: Declare Qtime and Qctime.
9799
9800 2009-01-02 Jason Rumney <jasonr@gnu.org>
9801
9802 * image.c (Qgobject): New symbol.
9803 (syms_of_image): Initialize it.
9804 (init_svg_functions): Load some functions from gobject library.
9805
9806 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9807
9808 * frame.c (make_terminal_frame): Remove redundant code and useless
9809 block.
9810
9811 2009-01-01 Andreas Schwab <schwab@suse.de>
9812
9813 * process.c (conv_sockaddr_to_lisp): Add workaround for
9814 getsockname bug on BSD.
9815
9816 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9817
9818 * xfns.c (x_create_tip_frame): Set border width of the X window.
9819
9820 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9821
9822 2009-01-01 Jason Rumney <jasonr@gnu.org>
9823
9824 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9825 Don't block input, as per earlier xterm.c changes.
9826
9827 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9828
9829 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9830 (ns_appkit_version_int): New function.
9831 (x-server-version): Use ns_appkit_version_int and follow 21+
9832 convention of returning 3 integers.
9833
9834 2008-12-30 Kenichi Handa <handa@m17n.org>
9835
9836 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9837 (CHAR_SURROGATE_PAIR_P): New macro.
9838
9839 * font.h (struct font_driver): New member get_variation_glyphs.
9840
9841 * font.c (font_range): Don't require a font for a variation selector.
9842 (Ffont_variation_glyphs): New function.
9843 (syms_of_font): Defsubr it.
9844
9845 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9846 ftfont_variation_glyphs.
9847 (setup_otf_gstring): New function.
9848 (ftfont_drive_otf): Use it.
9849 (ftfont_shape_by_flt): Handle variation selector.
9850 (ftfont_variation_glyphs): New function.
9851
9852 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9853
9854 * frame.c (Vemacs_iconified): Remove.
9855
9856 2008-12-30 Jason Rumney <jasonr@gnu.org>
9857
9858 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9859 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9860
9861 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9862
9863 * indent.c (Fvertical_motion): Don't advance iterator if we have
9864 reseated to the desired position.
9865
9866 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9867 checking for pos match.
9868
9869 2008-12-30 Kenichi Handa <handa@m17n.org>
9870
9871 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9872 just get the low 8-bit of the code.
9873
9874 * font.c (font_intern_prop): Validate str as multibyte.
9875
9876 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9877
9878 * dispextern.h (struct face): Move lface and hash from the middle
9879 of bitfields.
9880
9881 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9882
9883 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9884
9885 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9886 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9887 instead of intervals.h.
9888
9889 2008-12-26 Andreas Schwab <schwab@suse.de>
9890
9891 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9892 cons.
9893
9894 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9895
9896 * textprop.c (Qminibuffer_prompt): New variable.
9897 (syms_of_textprop): Initialize it.
9898 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9899 in minibuffer-prompt face. (Bug#1662)
9900
9901 2008-12-25 Jason Rumney <jasonr@gnu.org>
9902
9903 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9904
9905 2008-12-24 Jason Rumney <jasonr@gnu.org>
9906
9907 * ralloc.c (r_alloc_reset_variable): New function.
9908
9909 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9910 record of what points where. (Bug#716)
9911
9912 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9913
9914 * minibuf.c (read_minibuf): Follow the non-interactive case when
9915 running as a daemon, before detaching.
9916
9917 2008-12-22 Andreas Schwab <schwab@suse.de>
9918
9919 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9920 * gtkutil.c (free_widget_value): Use xfree instead of free.
9921
9922 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9923
9924 * frame.c (delete_frame): New function derived from
9925 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9926 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9927 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9928 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9929 * frame.h: Extern delete_frame.
9930 * window.c (window_loop):
9931 * terminal.c (delete_terminal):
9932 * xterm.c (x_connection_closed):
9933 * xfns.c (Fx_hide_tip):
9934 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9935
9936 2008-12-21 Jason Rumney <jasonr@gnu.org>
9937
9938 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9939 when character maps to .notdef character.
9940
9941 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9942
9943 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9944
9945 2008-12-20 Jason Rumney <jasonr@gnu.org>
9946
9947 * frame.c (Fmake_terminal_frame): Raise an error when called from
9948 a graphical frame on Windows. (Bug#1325)
9949
9950 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9951
9952 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9953
9954 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9955
9956 * minibuf.c (Fread_buffer): Doc fix.
9957
9958 2008-12-20 Jason Rumney <jasonr@gnu.org>
9959
9960 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9961 server name in UNC paths. (Bug#719)
9962
9963 * coding.c (decode_coding): Clear chars_at_source flag when using
9964 charbuf. (Bug#1035)
9965
9966 2008-12-19 Daniel Engeler <engeler@gmail.com>
9967
9968 * sysdep.c (serial_configure): Fix typo.
9969
9970 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9971
9972 * sysdep.c: Include alloca.h.
9973 (system_process_attributes): Add implementation for Solaris.
9974
9975 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9976
9977 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9978
9979 Reorganize implementation of Flist_system_processes and
9980 Fsystem_process_attributes. No functional changes.
9981 * process.c: Don't #include pwd.h, grp.h and limits.h.
9982 (Flist_system_processes): Just call list_system_processes.
9983 (Fsystem_process_attributes): Just call system_process_attributes.
9984 (procfs_list_system_processes, time_from_jiffies)
9985 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9986 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9987
9988 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9989 (list_system_processes): Rename from
9990 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9991 Provide a do nothing implementation.
9992 (system_process_attributes): Rename from
9993 procfs_list_system_processes.
9994 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9995 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9996
9997 * w32.c (list_system_processes): Rename from
9998 w32_list_system_processes.
9999 (system_process_attributes): Rename from
10000 w32_system_process_attributes.
10001
10002 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10003
10004 * process.h (w32_list_system_processes)
10005 (w32_system_process_attributes): Remove.
10006 (list_system_processes, system_process_attributes):
10007 New prototypes.
10008
10009 2008-12-19 Kenichi Handa <handa@m17n.org>
10010
10011 * xfont.c (xfont_decode_coding_xlfd): New function.
10012 (xfont_encode_coding_xlfd): New function.
10013 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10014 (xfont_list): Decode and encode XLFD by iso-8859-1.
10015 (xfont_match): Likewise.
10016 (xfont_list_family): Likewise.
10017 (xfont_open): Likewise.
10018
10019 * ftfont.c (ftfont_open): Generate a multibyte string if given
10020 names are utf-8.
10021
10022 * xftfont.c (xftfont_open): Generate a multibyte string if given
10023 names are utf-8.
10024
10025 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10026
10027 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10028 changed.
10029 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10030 clicked on a detached tool bar button.
10031
10032 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10033
10034 * emacs.c (main): Print and error and exit when no data is read
10035 from the pipe.
10036
10037 2008-12-17 Jason Rumney <jasonr@gnu.org>
10038
10039 * w32font.c (w32font_has_char): Always return -1.
10040
10041 2008-12-16 Kenichi Handa <handa@m17n.org>
10042
10043 * font.c (font_open_entity): Fix previous change.
10044
10045 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10046
10047 * process.c: Include <limits.h>.
10048
10049 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
10050
10051 * font.c (font_update_drivers): Fix mistake in reconstructing the
10052 driver list.
10053
10054 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
10055
10056 * font.c (font_clear_cache): Fix format of font cache data.
10057
10058 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
10059
10060 * xftfont.c (xftfont_open): Free Xft font pattern if
10061 XftFontOpenPattern fails.
10062
10063 * xterm.c (x_free_frame_resources): Remove extraneous call to
10064 free_frame_faces.
10065
10066 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10067
10068 * xterm.c (x_delete_display): Move xim_close_dpy call to
10069 x_delete_terminal.
10070 (x_delete_terminal): Call xim_close_dpy.
10071
10072 2008-12-13 Jason Rumney <jasonr@gnu.org>
10073
10074 * w32font.c (intern_font_name): New function.
10075 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10076 (w32font_open_internal, Fx_select_font): Decode font name.
10077 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10078
10079 * w32font.h (intern_font_name): Declare new function.
10080
10081 * w32uniscribe.c (add_opentype_font_name_to_list):
10082 Use intern_font_name.
10083
10084 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10085
10086 * frame.c (Fdelete_frame): Call free_font_driver_list.
10087
10088 * font.c (free_font_driver_list): Implement missing function.
10089
10090 * w32term.c (w32_term_init): Don't initialize the image cache
10091 here; it will be done in init_frame_faces.
10092
10093 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10094 (struct x_display_info): Remove unused member null_pixel. New
10095 member xim_callback_data.
10096
10097 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10098 (xim_initialize): Save pointer to callback function data.
10099 (xim_close_dpy): Free callback function data. Call XCloseIM,
10100 reverting 2008-11-04 change by David Smith.
10101 (x_term_init): Don't initialize the image cache here; it will be
10102 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10103 (x_delete_display): Free x_dnd_atoms member.
10104
10105 2008-12-13 Kenichi Handa <handa@m17n.org>
10106
10107 * font.c (font_rescale_ratio): Moved from xfaces.c.
10108 Argument type changed. Handle a font-spec too.
10109 (font_score): Check Vface_font_rescale_alist.
10110 (font_open_entity): Likewise. (Bug#1547)
10111
10112 * xfaces.c (font_rescale_ratio): Moved to font.c.
10113
10114 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10115
10116 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10117
10118 2008-12-12 Jason Rumney <jasonr@gnu.org>
10119
10120 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10121 Vwindow_system_version to the real w32 major version.
10122
10123 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10124
10125 * term.c (init_tty): Move setting the terminal name before the
10126 potential user: maybe_fatal.
10127
10128 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
10129
10130 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10131 all callers changed. Call free_frame_faces to free the face cache.
10132
10133 2008-12-11 Jason Rumney <jasonr@gnu.org>
10134
10135 * w32font.c (fill_in_logfont): Don't assume symbol script means
10136 SYMBOL_CHARSET. (Bug#547)
10137
10138 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
10139 size for surrogates. (Bug#1096, bug#872)
10140
10141 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10142
10143 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10144
10145 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10146
10147 * process.c (Fsystem_process_attributes, syms_of_process):
10148 Fix typo in name of Ssystem_process_attributes.
10149 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10150
10151 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10152
10153 * syntax.c (Fmodify_syntax_entry): Doc fix.
10154
10155 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10156
10157 * font.c (Ffont_spec): Move usage to end of docstring.
10158
10159 2008-12-10 Jason Rumney <jasonr@gnu.org>
10160
10161 * w32font.c (Qcham): New symbol.
10162 (font_supported_scripts): Add cham, and comments for other new
10163 scripts in bitfield from OpenType spec.
10164 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10165 contain characters beyond the bmp.
10166
10167 2008-12-10 Kenichi Handa <handa@m17n.org>
10168
10169 * ftfont.c (fc_charset_table): Add "unicode-sip".
10170 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
10171 Qunicode_sip.
10172
10173 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10174
10175 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10176 (Fcoding_system_put): Use QCdefault_char.
10177 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10178
10179 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
10180
10181 * xftfont.c (syms_of_xftfont): Fix typo.
10182
10183 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10184
10185 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10186
10187 * emacs.c (main): Close daemon_pipe on exec.
10188
10189 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10190
10191 * termchar.h (struct tty): New members termcap_term_buffer and
10192 termcap_strings_buffer.
10193
10194 * term.c (encode_terminal_code): Free any previous memory blocks
10195 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10196 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10197 All callers changed.
10198 (init_tty): Store termcap data and string buffers in new struct
10199 tty members termcap_term_buffer and termcap_strings_buffer.
10200 (delete_tty): Free them.
10201 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10202
10203 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10204
10205 * nsfns.m (ns_set_background_color): Remove code duplication.
10206 It was a substitute for face-transparency on OS X 10.3.
10207
10208 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10209
10210 * coding.c (make_conversion_work_buffer): Disable buffer
10211 modification hooks in the work buffer.
10212
10213 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10214
10215 * process.c (procfs_system_process_attributes): If `nread' has a
10216 negative value, assign zero to it.
10217
10218 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10219
10220 * eval.c (Vdebug_on_error): Doc fix.
10221
10222 2008-12-05 Kenichi Handa <handa@m17n.org>
10223
10224 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10225 second character is a combining character.
10226
10227 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10228
10229 * process.c (procfs_system_process_attributes): Don't use cmd,
10230 cmdsize, and q without initializing them first.
10231
10232 2008-12-04 Jason Rumney <jasonr@gnu.org>
10233
10234 * w32font.c (w32font_draw): Initialize orig_clip before getting
10235 it, and delete it when finished.
10236
10237 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10238
10239 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10240 case when running as a daemon before detaching.
10241
10242 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10243
10244 * w32.c (init_environment): Don't unload library shell32.dll.
10245
10246 2008-12-03 Kenichi Handa <handa@m17n.org>
10247
10248 * font.c (font_at): Set `multibyte' at first.
10249
10250 * coding.c (decode_coding_charset): Check type of an element of
10251 vector VALIDS.
10252 (encode_coding_emacs_mule): Be sure to set `code'.
10253
10254 * fontset.c (face_for_char): Handle invalid charset property correctly.
10255 (font_for_char): Likewise.
10256
10257 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10258
10259 * font.c (Fopen_font): Compute pixel size correctly.
10260 (font_update_lface): Handle fonts with corrupted size specs,
10261 i.e. non-int and non-float.
10262
10263 * ftfont.c (ftfont_match): Initialize entity variable.
10264 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10265 (ftfont_list_family): Initialize list var earlier.
10266
10267 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10268
10269 * xterm.c (x_draw_glyph_string): Fall back on
10270 underline_minimum_offset for underline position.
10271
10272 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10273
10274 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10275
10276 * character.c (c_string_width): Specify the type for LEN.
10277
10278 2008-12-03 Kenichi Handa <handa@m17n.org>
10279
10280 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10281 (decode_coding_utf_8): Likewise.
10282 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10283 (produce_chars): Initialize consumed_chars to 0.
10284
10285 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10286
10287 * keyboard.c (make_lispy_position): Only use PT if the selected
10288 window is current.
10289
10290 2008-12-02 Andreas Schwab <schwab@suse.de>
10291
10292 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10293
10294 * doprnt.c (doprnt1): Fix size of charbuf.
10295
10296 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10297
10298 * keyboard.c (timer_check): Revert last change.
10299
10300 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10301
10302 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10303
10304 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10305
10306 * makefile.w32-in: Update dependencies.
10307 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10308
10309 2008-12-01 Andreas Schwab <schwab@suse.de>
10310
10311 * font.c (register_font_driver): Use xmalloc.
10312 (font_put_frame_data): Likewise.
10313
10314 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10315
10316 * xfaces.c (realize_x_face): Make abort condition clearer.
10317
10318 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10319
10320 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10321
10322 * keyboard.c (timer_check): After a timer runs, ensure that the
10323 selected window's buffer is current.
10324
10325 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
10326
10327 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10328 It was accidentally restored by the Unicode merge.
10329
10330 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10331
10332 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
10333
10334 * w32proc.c: Include "coding.h".
10335 (Fw32_short_file_name): Encode filename passed to Windows API.
10336 (Fw32_long_file_name): Encode filename passed to Windows API and
10337 decode back the result. (Bug#1433)
10338
10339 2008-11-29 Kenichi Handa <handa@m17n.org>
10340
10341 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10342 not before accessing it.
10343
10344 * charset.c (Fdefine_charset_internal): After calculating
10345 min_char, max_char, and fastmap, copy the charset structure again.
10346 (encode_char): Fix the previous change.
10347
10348 2008-11-28 Seiji Zenitani <zenitani@mac.com>
10349
10350 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10351
10352 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10353
10354 * nsterm.m (x_set_frame_alpha): New function.
10355
10356 2008-11-27 Eli Zaretskii <eliz@gnu.org>
10357
10358 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10359
10360 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
10361
10362 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10363 pointer to check_face_name.
10364
10365 2008-11-27 Kenichi Handa <handa@m17n.org>
10366
10367 * category.h (SET_CATEGORY_SET): Call set_category_set.
10368 (set_category_set): Extern it.
10369
10370 * category.c (hash_get_category_set): New function.
10371 (Fmodify_category_entry): Adjusted for the change of
10372 char_table_ref_and_range. Call hash_get_category_set to get a
10373 category set to store in the table.
10374
10375 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10376 Funify_charset.
10377
10378 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
10379 (DECODE_CHAR): Check if the decoder vector is ready.
10380 (ENCODE_CHAR): Check if the encoder char-table is ready.
10381 (maybe_unify_char): Extern it.
10382
10383 * charset.c (Vchar_unified_charset_table): Delete it.
10384 (inhibit_load_charset_map): New variable.
10385 (temp_charset_work): New variable.
10386 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10387 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10388 New macros.
10389 (load_charset_map): Meaning of control_flag changed. If
10390 inhibit_load_charset_map is nonzero, setup a table in
10391 temp_charset_work.
10392 (load_charset): New argument control_flag.
10393 (map_charset_for_dump): New function.
10394 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10395 map_charset_for_dump.
10396 (Fdefine_charset_internal): If the charset method is MAP, load
10397 mapping tables by calling load_charset.
10398 (Funify_charset): Don't load a mapping table but directly set
10399 Vchar_unify_table.
10400 (maybe_unify_char): New function.
10401 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10402 Handle the case of inhibit_load_charset_map being nonzero.
10403 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10404 Handle the case of inhibit_load_charset_map being nonzero.
10405 (Fclear_charset_maps): Just free temp_charset_work.
10406 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10407 variable.
10408
10409 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10410 change of char_table_ref_and_range.
10411 (char_table_ref_and_range): Change the meaning of argument FROM
10412 and TO. Now the caller must provide initial values for *FROM
10413 and *TO.
10414
10415 * fontset.c (fontset_add): Adjusted for the change of
10416 char_table_ref_and_range.
10417 (fontset_get_font_group): Likewise.
10418 (Ffontset_info): Likewise.
10419
10420 * keymap.c (describe_vector): Adjusted for the change of
10421 char_table_ref_and_range. For char-table, put boundary between
10422 non-ASCII and 8-bit characters.
10423
10424 * print.c (print_object): For bool-vector, delete unnecessary
10425 check of ASCII_BYTE_P.
10426
10427 2008-11-26 Jason Rumney <jasonr@gnu.org>
10428
10429 * w32font.c (w32font_open_internal): Don't include external
10430 leading in font height. (Bug#879)
10431
10432 2008-11-26 Glenn Morris <rgm@gnu.org>
10433
10434 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10435 redefinition with ifdef. (Bug#1383)
10436
10437 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10438
10439 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10440
10441 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10442
10443 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10444 New EmacsView methods.
10445 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10446 Fixes bug #1048,1357,1414.
10447
10448 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10449
10450 Fix bug #1362.
10451 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10452 is not an indexed color.
10453 * nsterm.m (free_indexed_color): Add argument checking.
10454 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10455
10456 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
10457
10458 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10459 Document confirm-after-completion value for
10460 minibuffer-completion-confirm.
10461
10462 2008-11-24 Jason Rumney <jasonr@gnu.org>
10463
10464 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10465 warning.
10466
10467 2008-11-23 Jason Rumney <jasonr@gnu.org>
10468
10469 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10470 restored before returning.
10471
10472 * w32font.c (check_face_name): New function.
10473 (add_font_entity_to_list): Use it to filter out common substituted
10474 fonts. (Bug#642)
10475
10476 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10477
10478 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10479 confirm-nonexistent-file-or-buffer in doc-string.
10480
10481 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10482
10483 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10484 Fix copy/paste typo. Add checks.
10485
10486 2008-11-21 Kenichi Handa <handa@m17n.org>
10487
10488 * coding.c (detect_coding_iso_2022): Reject invalid composition
10489 sequence.
10490 (DECODE_COMPOSITION_START): If the current source is the last
10491 block, and the current composition doesn't end, regard this
10492 sequence as invalid.
10493 (decode_coding_iso_2022): Handle invalid composition sequence.
10494
10495 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10496
10497 * window.c (coordinates_in_window): Don't return
10498 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10499 line when the window is not the rightmost one. (Bug#1372)
10500
10501 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10502
10503 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10504
10505 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10506
10507 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10508 and bright_bg if noninteractive is non-zero.
10509
10510 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10511
10512 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10513 x_draw_glyph_string_background.
10514
10515 * w32term.c (x_draw_glyph_string): Likewise.
10516
10517 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10518
10519 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10520 the next glyph string once past the overhang width.
10521
10522 * nsterm.m (ns_draw_glyph_string): Likewise.
10523
10524 * w32term.c (x_draw_glyph_string): Likewise.
10525
10526 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10527
10528 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10529 double file close.
10530
10531 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10532
10533 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10534 dedicated status of window before attempting to display another
10535 buffer in it.
10536
10537 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10538
10539 * msdos.c (Fmsdos_long_file_names):
10540 (syms_of_msdos) <dos-unsupported-char-glyph>:
10541 * dosfns.c (Fint86): Fix typos in docstrings.
10542
10543 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10544
10545 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10546
10547 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10548
10549 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10550
10551 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10552
10553 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10554
10555 * frame.h: Negative alpha means "don't touch".
10556
10557 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10558
10559 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10560
10561 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10562
10563 * hftctl.c:
10564 * chpdef.h:
10565 * acldef.h: Remove files used only for systems no longer supported.
10566
10567 * Makefile.in: Fix .o alphabetical ordering.
10568 (hftctl.o): Remove dependency, file removed.
10569 (keymap.o, print.o): Depend on charset.h.
10570
10571 2008-11-10 Kenichi Handa <handa@m17n.org>
10572
10573 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10574
10575 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10576
10577 * dired.c (file_name_completion): If completion_ignore_case is
10578 enabled, ignore case when checking completion-regexp-list.
10579
10580 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10581
10582 * vm-limit.c (get_lim_data): Fix last change.
10583
10584 2008-11-08 Kenichi Handa <handa@m17n.org>
10585
10586 * character.c (Fget_byte): New function.
10587 (syms_of_character): Defsubr Fget_byte.
10588
10589 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10590
10591 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10592 cursor position is valid after scrolling.
10593
10594 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10595
10596 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10597
10598 2008-11-06 Glenn Morris <rgm@gnu.org>
10599
10600 * xterm.c (handle_one_xevent): Don't let popup menus cause
10601 mouse-autoselect-window related window switching. (Bug#1261)
10602
10603 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10604
10605 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10606
10607 2008-11-04 Andreas Schwab <schwab@suse.de>
10608
10609 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10610
10611 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10612
10613 * xfns.c (Fx_wm_set_size_hint): New function.
10614
10615 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10616
10617 * textprop.c (Fprevious_single_char_property_change): Return 0
10618 when there's no change in a string. (Bug#1301)
10619
10620 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10621
10622 * frame.c (do_switch_frame): New argument NORECORD passed to
10623 Fselect_window.
10624 (Fselect_frame): New argument NORECORD passed to
10625 do_switch_frame.
10626 (Fset_frame_selected_window): New argument NORECORD passed to
10627 Fselect_frame.
10628 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10629 in call of do_switch_frame.
10630 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10631 Handle NORECORD argument in call of Fselect_frame.
10632 * lisp.h (do_switch_frame, Fselect_frame)
10633 (Fset_frame_selected_window): Adjust declarations.
10634 * window.c (select_frame_norecord): New function.
10635 (run_window_configuration_change_hook): Use it and call
10636 Fselect_frame with NORECORD set.
10637 (Fselect_window): Pass NORECORD to Fselect_frame.
10638 (Fset_window_configuration): Handle NORECORD argument in call of
10639 do_switch_frame.
10640 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10641 Fset_frame_selected_window.
10642 * keyboard.c (command_loop_1): Handle NORECORD in call of
10643 Fselect_frame (currently ifdefd).
10644
10645 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10646
10647 * emacs.c (USAGE2): Untabify.
10648
10649 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10650
10651 * composite.c (fill_gstring_header): Fix copy/paste typo.
10652
10653 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10654
10655 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10656 (Fother_window): Rename argument and rewrite doc-string.
10657 (select_window_norecord): Fix return value. (Bug#1276)
10658
10659 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10660
10661 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10662 new frames overriding foreground for tooltips. Based on similar patch
10663 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10664
10665 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10666
10667 * emacs.c (Fdaemon_initialized): Initialize nfd.
10668
10669 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10670
10671 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10672 (Fwindow_text_height): Clarify doc-strings.
10673 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10674 doc-string of window-scroll-functions.
10675
10676 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10677
10678 * category.c (syms_of_category): Fix typo in docstring.
10679
10680 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10681
10682 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10683 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10684 Fix typos in docstrings.
10685
10686 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10687
10688 * emacs.c (daemon_pipe): Make non-static.
10689 (IS_DAEMON): Move definition ...
10690 * lisp.h (IS_DAEMON): ... here.
10691 (daemon_pipe): Declare.
10692 (is_daemon): Remove.
10693 * dispnew.c (init_display): Use IS_DAEMON.
10694
10695 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10696
10697 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10698 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10699
10700 * emacs.c (is_daemon): Remove.
10701 (main): Don't set is_daemon.
10702 (IS_DAEMON): New macro.
10703 (Fdaemonp, Fdaemon_initialized): Use it.
10704 (Fdaemon_initialized): Write a char into the pipe to make sure the
10705 parent exits.
10706 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10707
10708 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10709
10710 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10711 over-sized glyph, draw it with the default glyph width.
10712
10713 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10714 glyph, draw it with the default glyph width.
10715
10716 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10717 glyph, draw it with the default glyph width.
10718
10719 * xdisp.c (try_scrolling): When computing the distance from the
10720 scroll margin to PT, try moving some distance past the window
10721 bottom before giving up.
10722
10723 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10724
10725 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10726 (Fset_window_buffer): Explain in doc-string that a window can be
10727 "strongly" dedicated to its buffer.
10728
10729 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10730
10731 * emacs.c (daemon_name): New variable.
10732 (main): Deal with --daemon=SERVER_NAME.
10733 (Fdaemonp): Return a name if one was passed to --daemon.
10734
10735 2008-10-26 Romain Francoise <romain@orebokech.com>
10736
10737 * emacs.c (daemon_pipe): New variable.
10738 (main): Create a pipe before forking, make the parent exit only after
10739 the child has closed its end of the pipe. Move closing the
10740 descriptors ...
10741 (Fdaemon_initialized): ... here. New function.
10742
10743 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10744
10745 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10746 the previous unoptimized table.
10747
10748 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10749 the distinction between non-nil and non-t value of `dedicated'.
10750
10751 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10752
10753 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10754 read_char_minibuf_menu_text is large enough to hold the menu string.
10755
10756 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10757
10758 * window.c (Fget_buffer_window, Fdelete_windows_on)
10759 (Freplace_buffer_in_windows): Make buffer argument optional and
10760 rename to buffer_or_name.
10761
10762 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10763
10764 * xdisp.c (handle_single_display_spec, handle_display_prop):
10765 Undo 2005-05-16 change.
10766 (handle_stop): Pop iterator if it's loaded with an empty string.
10767 (get_overlay_strings_1): Don't save iterator if it's loaded with
10768 an empty string (bug#1201).
10769
10770 2008-10-24 Kenichi Handa <handa@m17n.org>
10771
10772 * ftfont.c (ftfont_otf_features): Fix previous change.
10773 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10774 calling ftfont_otf_features.
10775
10776 2008-10-24 Kenichi Handa <handa@m17n.org>
10777
10778 * font.c (font_match_p): Fix for the case that a vector of
10779 characters is in script-representative-chars.
10780
10781 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10782
10783 * dbusbind.c (xd_in_read_queued_messages): New variable.
10784 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10785 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10786 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10787 macro. (Bug#1186)
10788
10789 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10790
10791 * s/sol2-10.h: New file.
10792
10793 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10794
10795 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10796 poor beast has survived 9+ years and the jump from xterm.c!).
10797
10798 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10799
10800 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10801 Reword doc-string.
10802 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10803
10804 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10805
10806 * character.c (syms_of_character) <script-representative-chars>:
10807 <unicode-category-table>: Doc fixes.
10808
10809 2008-10-23 Noah Friedman <friedman@splode.com>
10810
10811 * coding.c (make_conversion_work_buffer): Check that
10812 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10813 Fget_buffer_create.
10814
10815 2008-10-23 Kenichi Handa <handa@m17n.org>
10816
10817 * font.c (font_add_log): Check the values of extra properties.
10818
10819 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10820
10821 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10822 Reword doc-string.
10823 (Fset_window_parameter): Use NILP.
10824 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10825 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10826
10827 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10828
10829 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10830
10831 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10832
10833 * nsfns.m (ns_appkit_version): New function.
10834 (x-server-version): Use it.
10835 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10836 (x-server-vendor): Don't check_ns().
10837
10838 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10839
10840 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10841
10842 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10843 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10844
10845 2008-10-22 Kenichi Handa <handa@m17n.org>
10846
10847 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10848 scripts.
10849
10850 * category.c (word_boundary_p): Check scripts instead of charset.
10851 Handle nil value in word-separating-categories and
10852 word-combining-categories.
10853 (syms_of_category): Fix docstrings of word-separating-categories
10854 and word-combining-categories.
10855
10856 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10857
10858 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10859 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10860
10861 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10862
10863 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10864 Rename arg "buffer" to "buffer_or_name".
10865 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10866 it optional.
10867 (no_switch_window): Remove since the return value is not used.
10868 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10869 Consider window as dedicated when Fwindow_dedicated_p returns a
10870 non-nil value.
10871 * lisp.h: Remove prototype for no_switch_window.
10872
10873 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10874
10875 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10876 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10877
10878 2008-10-21 Kenichi Handa <handa@m17n.org>
10879
10880 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10881 check Vlatin_extra_code_table.
10882
10883 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10884
10885 * fileio.c (Fset_file_modes): Doc fix.
10886
10887 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10888
10889 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10890 in arrays.
10891
10892 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10893
10894 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10895 Mention kill-buffer in doc-string.
10896 (Fset_window_buffer): Reinsert tem check removed in last commit.
10897 (Fenlarge_window, Fshrink_window): Have argument names and
10898 doc-string follow Elisp manual more closely.
10899
10900 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10901
10902 * fileio.c (Fset_file_modes): Doc fix.
10903
10904 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10905
10906 * window.c (Fwindow_width, Fset_window_start)
10907 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10908 (Fdelete_windows_on, Freplace_buffer_in_windows):
10909 Make doc-strings follow code and Elisp manual more closely.
10910 (Fwindow_dedicated_p): Make window argument optional.
10911 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10912 (Fset_window_buffer): Respect any non-nil dedicated value for
10913 window. Rename "buffer" argument to "buffer_or_name".
10914
10915 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10916
10917 * m/sh3.h: New file, machine description for SuperH.
10918
10919 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10920
10921 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10922
10923 2008-10-17 Kenichi Handa <handa@m17n.org>
10924
10925 * ftfont.c (ftfont_otf_features): Fix indexing
10926 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10927
10928 2008-10-16 Magnus Henoch <mange@freemail.hu>
10929
10930 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10931 (Fdbus_call_method_asynchronously): Ditto.
10932 This change makes C-h f display the argument list.
10933
10934 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * fileio.c (Fexpand_file_name): Doc fix.
10937
10938 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10939 of :foreground and :background equivalent to unspecified (20.x
10940 compatibility).
10941
10942 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10943
10944 * buffer.c (syms_of_buffer): Doc fix.
10945
10946 2008-10-14 Kenichi Handa <handa@m17n.org>
10947
10948 * font.c (font_clear_prop): When clearing font width, clear the
10949 average width field too.
10950
10951 2008-10-12 Andreas Schwab <schwab@suse.de>
10952
10953 * ftfont.c (ftfont_shape_by_flt): Make static.
10954 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10955
10956 * font.c: Don't include <m17n-flt.h>.
10957
10958 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10959
10960 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10961
10962 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10963
10964 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10965 away code.
10966
10967 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10968
10969 * dispnew.c (update_text_area): Avoid looping due to large glyph
10970 overhangs (bug#1070).
10971
10972 2008-10-09 Kenichi Handa <handa@m17n.org>
10973
10974 * fontset.c (face_for_char): If face->fontset is negative, just
10975 return ascii_face.
10976
10977 * font.c (font_delete_unmatched): Fix previous change.
10978 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10979
10980 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10981
10982 * frame.c (Fraise_frame): On text-only terminals select frame in
10983 order to make it visible. (Bug#1061)
10984
10985 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10986
10987 * fontset.c (fontset_find_font): Check frame validity.
10988
10989 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10990
10991 * gtkutil.c (xg_display_open): Reset default display if none exists.
10992 (xg_display_close): Allow Emacs to close all displays (bug#985).
10993
10994 2008-10-06 Andreas Schwab <schwab@suse.de>
10995
10996 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10997
10998 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10999
11000 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
11001
11002 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
11003
11004 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11005 during initialization.
11006
11007 2008-10-04 Eli Zaretskii <eliz@gnu.org>
11008
11009 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11010 whole thing on MSDOS frames as well as on a TTY.
11011
11012 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11013 well as for TTY.
11014 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11015 well as on a TTY.
11016
11017 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11018 as well as for TTY.
11019
11020 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11021
11022 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11023 MSDOS frames as well.
11024
11025 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11026
11027 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11028 correct arguments.
11029 * menu.c (find_and_return_menu_selection): Add cast.
11030
11031 2008-10-03 Glenn Morris <rgm@gnu.org>
11032
11033 * emacs.c (USAGE1): Add --daemon.
11034
11035 2008-10-02 Eli Zaretskii <eliz@gnu.org>
11036
11037 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11038 100, so it's in percents as advertised.
11039
11040 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11041
11042 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11043 (ns_output.current_cursor, ns_output.desired_cursor)
11044 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11045 (FRAME_NEW_CURSOR_COLOR): Remove.
11046
11047 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
11048 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
11049 enumeration (HOLLOW_BOX_CURSOR, etc.).
11050
11051 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11052 (draw_window_cursor): Simplify code.
11053 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11054 Don't change cursor type. In latter, call rehighlight instead of doing
11055 updates manually.
11056 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11057 Use core Emacs cursor types.
11058
11059 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
11060
11061 2008-10-02 Martin Rudalics <rudalics@gmx.at>
11062
11063 * process.c (Faccept_process_output): Fix doc-string.
11064
11065 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11066
11067 * gmalloc.c (__sbrk): Also define for uClibc.
11068
11069 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11070 for uClibc.
11071
11072 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11073
11074 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11075 styles.
11076 (nsfont_open): Reenable the cache.
11077
11078 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11079
11080 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11081 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11082
11083 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11084
11085 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11086 a suspended terminal.
11087
11088 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
11089
11090 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11091
11092 2008-09-30 Eli Zaretskii <eliz@gnu.org>
11093
11094 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11095
11096 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
11097
11098 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11099 in a continued line coincides with a line beginning.
11100
11101 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11102
11103 * nsfont.m (nsfont_trait_distance): Fix bug.
11104 (nsfont_list): Return a list rather than a vector (syncs with Handa
11105 changes of 2008-05-14).
11106 (nsfont_open): Improve logging.
11107
11108 2008-09-29 Andreas Schwab <schwab@suse.de>
11109
11110 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11111
11112 2008-09-28 Martin Rudalics <rudalics@gmx.at>
11113
11114 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11115 name as char-resolve-modifiers.
11116 Reported by: Markus Triska <markus.triska@gmx.at>
11117
11118 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11119
11120 * dispnew.c (init_display): Return earlier when running as a daemon.
11121
11122 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11123
11124 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11125
11126 2008-09-27 Eli Zaretskii <eliz@gnu.org>
11127
11128 * composite.c (Fcomposition_get_gstring)
11129 (Fcompose_region_internal, Fcompose_string_internal)
11130 (Ffind_composition_internal): Doc fix.
11131 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11132 (syms_of_composite) <auto-composition-function>: Doc fix.
11133 (syms_of_composite) <composition-function-table>: Doc fix.
11134
11135 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
11136
11137 * search.c (wordify): New argument for lax word-ends.
11138 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11139
11140 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11141
11142 * lisp.h (is_daemon): Declare.
11143 * dispnew.c (init_display): Do not try to initialize the terminal
11144 when running as a daemon.
11145
11146 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
11147
11148 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11149 x_display_pixel_height.
11150
11151 2008-09-22 Martin Rudalics <rudalics@gmx.at>
11152
11153 * undo.c (record_point): Don't call Fundo_boundary for first
11154 change. (Bug#731)
11155
11156 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
11157
11158 * emacs.c (Fdaemonp): Doc fix.
11159
11160 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11161
11162 * emacs.c (main): Place #ifdef in the proper place.
11163
11164 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11165
11166 * emacs.c (standard_args): Add --daemon.
11167 (main): Disconnect from the terminal when --daemon is passed.
11168 (is_daemon): New variable.
11169 (Fdaemonp): New function.
11170 (syms_of_emacs): Defsubr it.
11171
11172 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
11173
11174 * xdisp.c (get_next_display_element): Handle string display
11175 correctly when checking for the end of a box run.
11176
11177 2008-09-20 Glenn Morris <rgm@gnu.org>
11178
11179 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11180 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11181 (Frename_file): Avoid copying to trash if a rename involves
11182 a delete. (Bug#964).
11183
11184 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11185
11186 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11187 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11188 frames as well as termcap frames.
11189 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11190 get_named_tty.
11191
11192 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11193
11194 * process.c (procfs_system_process_attributes): Fix cmdline in
11195 case /proc/PID/cmdline is empty.
11196
11197 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11198 x_display_pixel_height.
11199
11200 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11201
11202 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11203
11204 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11205 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11206
11207 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11208
11209 * dispextern.h (struct it): Move line_wrap away from the middle of
11210 bitfields. Move voffset in struct iterator_stack_entry after the
11211 bitfields. Move tab_width near after another short.
11212
11213 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11214
11215 * frame.h (struct frame): Move alpha from the middle of bitfields.
11216
11217 * window.h (struct window): Move frozen_window_start_p after the
11218 rest of the bitfields to reduce padding.
11219
11220 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11221
11222 * xterm.h (x_display_info): Remove `height' and `width' members.
11223
11224 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11225
11226 * w32term.h (w32_display_info): Remove `height', `width',
11227 `height_in', and `width_in' members.
11228
11229 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11230 New functions.
11231 (x_calc_absolute_position): Use them.
11232 (x_term_init): Omit removed `height' and `width' members.
11233
11234 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11235 New functions.
11236 (w32_read_socket, x_calc_absolute_position): Use them.
11237 (w32_initialize_display_info, w32_term_init): Omit removed members
11238 of w32_display_info.
11239
11240 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11241 New functions.
11242 (ns_initialize_display_info): Omit removed members of ns_display_info.
11243
11244 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11245 New functions.
11246 (x_calc_absolute_position): Use them.
11247 (x_term_init): Omit removed `height' and `width' members.
11248
11249 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11250 (compute_tip_xy):
11251 * frame.c (x_fullscreen_adjust):
11252 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11253 x_display_pixel_width.
11254
11255 2008-09-18 Kenichi Handa <handa@m17n.org>
11256
11257 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11258 (composition_compute_stop_pos): Fix handling of static composition.
11259 (Fcomposition_get_gstring): Check FROM and TO at first.
11260
11261 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11262
11263 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11264 mixup (YAILOM).
11265
11266 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11267
11268 * indent.c (Fvertical_motion): Use position reported by iterator
11269 instead of PT for determining screen motion (bug#943).
11270
11271 2008-09-17 Romain Francoise <romain@orebokech.com>
11272
11273 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11274
11275 2008-09-17 Kenichi Handa <handa@m17n.org>
11276
11277 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11278
11279 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11280 if necessary.
11281
11282 2008-09-16 Kenichi Handa <handa@m17n.org>
11283
11284 * coding.c (make_conversion_work_buffer): Avoid calling
11285 Fget_buffer_create if it is not necessary.
11286
11287 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11288
11289 * window.c (Fselect_window): Don't update window_select_count and
11290 use_time when norecord is not nil.
11291
11292 2008-09-14 Kenichi Handa <handa@m17n.org>
11293
11294 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11295 specpdl_ptr.
11296
11297 2008-09-12 Kenichi Handa <handa@m17n.org>
11298
11299 * indent.c (scan_for_column): Don't handle automatic composition
11300 if the current buffer is not associated with a window.
11301
11302 * composite.c (composition_reseat_it): If the current buffer is
11303 not associated with a window, ignore the automatic composition.
11304 (find_automatic_composition): Likewise.
11305
11306 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11307
11308 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11309 (Fgpm_mouse_stop): Use it.
11310 * termhooks.h (close_gpm): Declare.
11311 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11312 connection if Gpm_GetEvent fails.
11313
11314 * window.c (set_window_buffer): Always preserve current-buffer.
11315
11316 2008-09-12 Glenn Morris <rgm@gnu.org>
11317
11318 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11319
11320 2008-09-11 Glenn Morris <rgm@gnu.org>
11321
11322 * charset.c (charset-map-path): Doc fix.
11323
11324 2008-09-10 Kenichi Handa <handa@m17n.org>
11325
11326 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11327
11328 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11329 compose a grapheme cluster with the preceding base glyph.
11330
11331 * composite.c (composition_compute_stop_pos): Fix previous change.
11332 Reset cmp_it->id to -1 at first.
11333
11334 2008-09-10 Glenn Morris <rgm@gnu.org>
11335
11336 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11337
11338 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
11339
11340 * keyboard.c (read_key_sequence): Reapply translation maps when
11341 switching keyboards.
11342
11343 2008-09-09 Kenichi Handa <handa@m17n.org>
11344
11345 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11346 characters.
11347
11348 * composite.c (FORWARD_CHAR): Fix calculation
11349 of (POSITION).pos_byte.
11350 (composition_compute_stop_pos): Limit the search of composition to
11351 at most 500 characters ahead. If we reach the limit or find a
11352 newline, set cmp_it->ch to -2 and return 0.
11353 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11354
11355 2008-09-08 Kenichi Handa <handa@m17n.org>
11356
11357 * indent.c (Fvertical_motion): Be sure to set
11358 it_overshoot_expected if it.cmp_it.id is non-negative.
11359
11360 2008-09-07 Andreas Schwab <schwab@suse.de>
11361
11362 * callproc.c (Fcall_process): Don't hold references to string data
11363 across garbage collection. Move initialisation of new_argv down
11364 to avoid compiler bug.
11365
11366 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11367
11368 * process.c (Fsystem_process_attributes): Doc fix.
11369
11370 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
11371
11372 * callproc.c (Fcall_process): Canonicalize current directory name.
11373
11374 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11375 iterator advances to the next line if the current line ends in a
11376 continued tab.
11377
11378 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11379
11380 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11381 member to point to cmp_from.
11382
11383 * xdisp.c: Doc fix for references to gidx data member.
11384
11385 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11386
11387 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11388
11389 2008-09-07 Kenichi Handa <handa@m17n.org>
11390
11391 * composite.c (FORWARD_CHAR): Check STOP after
11392 incrementing (POSITION).pos.
11393
11394 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11395
11396 * process.c (Fsystem_process_attributes): Doc fix.
11397
11398 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
11399
11400 * keyboard.c (Ftop_level): Doc fix.
11401
11402 2008-09-06 Eli Zaretskii <eliz@gnu.org>
11403
11404 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11405 minibuffer, don't let lower part of menu invade the echo area.
11406
11407 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11408 "char *q" to access menu text and advance through it. Revert the
11409 change that displayed ">" instead of ASCII character 0x10.
11410
11411 2008-09-05 Eli Zaretskii <eliz@gnu.org>
11412
11413 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11414 toggle boxes and radio buttons on MS-DOS as well.
11415
11416 2008-09-05 Kenichi Handa <handa@m17n.org>
11417
11418 * composite.c (autocmp_chars): Check lookback count.
11419 (composition_compute_stop_pos): Set cmp_it->lookback.
11420 (composition_reseat_it): Check lookback count.
11421 (struct position_record): New struct.
11422 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11423 (find_automatic_composition): New function.
11424 (composition_adjust_point): Use find_automatic_composition.
11425
11426 * dispextern.h (struct composition_it): New member lookback.
11427
11428 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
11429
11430 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11431 if moving by a single line.
11432
11433 2008-09-02 Andreas Schwab <schwab@suse.de>
11434
11435 * xterm.c (x_delete_display): Fix merge error.
11436
11437 * fileio.c (Fexpand_file_name): Remove unused variables.
11438
11439 2008-09-02 Eli Zaretskii <eliz@gnu.org>
11440
11441 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11442 storage on all platforms, not just on DOS_NT.
11443
11444 2008-09-02 Jason Rumney <jasonr@gnu.org>
11445
11446 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11447 Ensure mouse is not grabbed after menu is finished.
11448
11449 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
11450
11451 * xfaces.c (Finternal_set_alternative_font_family_alist)
11452 (Finternal_set_alternative_font_registry_alist): Properly copy
11453 entire alist structure.
11454
11455 2008-09-01 Kenichi Handa <handa@m17n.org>
11456
11457 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
11458 representative chars of the script is a vector.
11459 (ftfont_list): Handle the case where the representative chars of
11460 the script is a vector.
11461
11462 * character.c (syms_of_character): Docstring of
11463 script-representative-chars fixed.
11464
11465 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11466
11467 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11468 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11469 the menu. Allocate larger buffer for `text', to account for
11470 possible ^C characters.
11471
11472 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11473
11474 * xdisp.c (prepare_menu_bars): Don't call
11475 Vwindow_size_change_functions with arg Qt.
11476
11477 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11478
11479 * font.h (font_range):
11480 * fileio.c (report_file_error):
11481 * composite.c (composition_update_it): Yet another int/Lisp_Object
11482 mixup (YAILOM).
11483
11484 2008-08-30 Glenn Morris <rgm@gnu.org>
11485
11486 * data.c (Fmake_variable_frame_local): Doc fix.
11487
11488 * frame.c (Fmodify_frame_parameters): Doc fix.
11489
11490 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11491
11492 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11493 needed by GetTokenInformation.
11494 (w32_system_process_attributes): Check return values of all system
11495 APIs.
11496
11497 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11498 only when the state changes.
11499 (IT_update_begin, IT_update_end): Add termscript trace.
11500
11501 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11502 clipboard is unavailable. Set dst to NULL if it doesn't point to
11503 malloc'ed data.
11504 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11505 passing random values to xfree.
11506
11507 * dispnew.c (init_display): Set `tty's association in frame's
11508 parameters alist to the name of the terminal device, if that is known.
11509
11510 2008-08-29 Jason Rumney <jasonr@gnu.org>
11511
11512 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11513
11514 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11515
11516 * composite.c (fill_gstring_body): Avoid compiler warnings.
11517
11518 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11519 LGLYPH_SET_CODE to avoid compiler warnings.
11520
11521 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11522
11523 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11524
11525 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11526 LGLYPH_SET_CODE.
11527
11528 2008-08-29 Kenichi Handa <handa@m17n.org>
11529
11530 * fileio.c (report_file_error): Don't downcase the first character
11531 of errstring if it is still unibyte.
11532
11533 2008-08-29 Kenichi Handa <handa@m17n.org>
11534
11535 These changes are to re-implement the automatic composition so
11536 that it doesn't use text properties.
11537
11538 * Makefile.in (ftfont.o): Depend on composite.h.
11539 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11540
11541 * character.h (Vunicode_category_table): Extern it.
11542
11543 * character.c (Vunicode_category_table): New variable.
11544 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11545
11546 * chartab.c (optimize_sub_char_table): Perform more greedy
11547 optimization.
11548
11549 * composite.h (enum composition_method):
11550 Delete COMPOSITION_WITH_GLYPH_STRING.
11551 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11552 (Vcomposition_function_table): Extern it.
11553 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11554 (composition_gstring_put_cache, composition_gstring_from_id)
11555 (composition_gstring_p, composition_gstring_width)
11556 (composition_compute_stop_pos, composition_reseat_it)
11557 (composition_update_it, composition_adjust_point): Extern them.
11558 (Fcomposition_get_gstring): EXFUN it.
11559
11560 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11561 (Vcomposition_function_table)
11562 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11563 (gstring_hash_table, gstring_work, gstring_work_headers):
11564 New variables.
11565 (gstring_lookup_cache, composition_gstring_put_cache)
11566 (composition_gstring_from_id, composition_gstring_p)
11567 (composition_gstring_width, fill_gstring_header)
11568 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11569 (composition_reseat_it, composition_update_it)
11570 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11571 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11572 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11573 Defsubr composition_get_gstring.
11574
11575 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11576 cmp_id.
11577 (struct glyph_string): Delete the member gidx. New members
11578 cmp_id, cmp_from, and cmp_to.
11579 (enum it_method): Delete GET_FROM_COMPOSITION.
11580 (struct composition_it): New struct.
11581 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11582 Delete c, len, cmp_id, cmp_len in u.comp.
11583
11584 * font.h (enum lgstring_indices): Delete it.
11585 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11586 (enum lglyph_indices): Likewise.
11587 (font_range): Adjust extern.
11588 (font_fill_lglyph_metrics): Extern it.
11589
11590 * font.c (QCf): New variable.
11591 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11592 (font_prepare_composition): Delete this function.
11593 (font_range): Type and arguments changed.
11594 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11595 (font_fill_lglyph_metrics): New function.
11596 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11597 (syms_of_font): DEFSYM QCf. Delete defsubr for
11598 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11599 Defsubr Sfont_shape_gstring.
11600
11601 * fontset.h (font_for_char): Extern it.
11602
11603 * fontset.c (font_for_char): New function.
11604
11605 * ftfont.c: Include composite.h.
11606 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11607 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11608
11609 * indent.c: Include composite.h and dispextern.h.
11610 (check_composition): Delete this function.
11611 (scan_for_column): Handle composition by
11612 composition_compute_stop_pos, composition_reseat_it, and
11613 composition_update_it.
11614 (compute_motion): Likewise.
11615 (Fvertical_motion): Fix checking of composition.
11616
11617 * keyboard.c (adjust_point_for_property): Check composition by
11618 composition_adjust_point.
11619
11620 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11621 struct glyph_string.
11622
11623 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11624 (append_composite_glyph): Adjust for the change of struct it and
11625 struct glyph.
11626 (produce_composite_glyph): Likewise.
11627
11628 * w32term.c (x_draw_composite_glyph_string_foreground):
11629 Adjust for the change of struct glyph_string.
11630 (x_draw_glyph_string): Likewise.
11631
11632 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11633 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11634
11635 * xdisp.c: Include font.h.
11636 (it_props): Delete the entry for Qauto_composed.
11637 (init_iterator): Initialize it->cmp_it.id to -1.
11638 (compute_stop_pos): Call composition_compute_stop_pos.
11639 (face_before_or_after_it_pos): Adjust for the change of struct it.
11640 (handle_auto_composed_prop): Delete it.
11641 (handle_composition_prop): Handle only static composition.
11642 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11643 from xassert. Initialize it->cmp_it.stop_pos.
11644 (push_it): Adjust for the change of struct it.
11645 (pop_it): Likewise.
11646 (get_next_element): Delete next_element_from_composition.
11647 (CHAR_COMPOSED_P): New macro.
11648 (get_next_display_element): For automatic composition, get a face
11649 from the font in the glyph-string.
11650 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11651 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11652 (next_element_from_string): Check if the character at the current
11653 position is composed by CHAR_COMPOSED_P.
11654 (next_element_from_buffer): Likewise.
11655 (next_element_from_composition): Adjust for the change of struct it.
11656 Update it->cmp_it.
11657 (dump_glyph): Adjust for the change of struct glyph.
11658 (fill_composite_glyph_string): Adjust for the change of struct
11659 it and struct glyph. Don't handle automatic composition here.
11660 (fill_gstring_glyph_string): New function.
11661 (x_get_glyph_overhangs): Handle automatic composition.
11662 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11663 (BUILD_GSTRING_GLYPH_STRING): New macro.
11664 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11665 automatic composition.
11666 (append_composite_glyph): Adjust for the change of struct it and
11667 struct glyph.
11668 (x_produce_glyphs): Adjust for the change of struct it.
11669
11670 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11671 the change of struct glyph_string.
11672 (x_draw_glyph_string): Likewise.
11673
11674 2008-08-29 Glenn Morris <rgm@gnu.org>
11675
11676 * buffer.c (word-wrap): Doc fix.
11677 * xdisp.c (truncate-partial-width-windows): Doc fix.
11678 Increase default to 50.
11679
11680 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11681
11682 * xdisp.c (update_tool_bar_unwind): New function.
11683 (update_tool_bar): Temporarily set selected frame before building
11684 tool-bar items.
11685
11686 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11687
11688 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11689 snprintf, respectively.
11690 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11691
11692 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11693
11694 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11695 LDFLAGS to GNUstep CC invocation.
11696
11697 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11698
11699 * indent.c (Fvertical_motion): Revert last change. Handle the
11700 general case where we are moving forward, and PT spans multiple
11701 screen lines.
11702
11703 * eval.c (find_handler_clause): Temporarily increase
11704 max-lisp-eval-depth while printing the backtrace buffer, to
11705 guarantee that help-mode code can run.
11706
11707 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11708
11709 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11710 colors under -rv.
11711 (IT_set_frame_parameters): Don't swap foreground and background
11712 colors if `(reverse . t)' is present in the frame properties.
11713 (internal_terminal_init): Call init_frame_faces only for the
11714 initial frame.
11715
11716 2008-08-27 Andreas Schwab <schwab@suse.de>
11717
11718 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11719
11720 2008-08-27 Andreas Schwab <schwab@suse.de>
11721
11722 * search.c (search_buffer): Set char_base to zero only at the end.
11723
11724 2008-08-27 Kenichi Handa <handa@m17n.org>
11725
11726 * fileio.c (report_file_error): Fix handling of multibyte error string.
11727
11728 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11729
11730 * xterm.c (x_term_init): Temporarily hide the partially
11731 initialized terminal while calling vendor-specific-keysyms.
11732
11733 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11734
11735 * msdos.c (internal_terminal_init): Most initializations done only
11736 once, especially initial_screen_colors[] and termscript open.
11737
11738 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * eval.c (Fcondition_case): Doc fix.
11741
11742 * widgetprv.h (EmacsFramePart): Change font member to the new font
11743 struct.
11744
11745 * widget.c: Include character.h and font.h for XSETFONT.
11746 (setup_frame_gcs): Compute X font id from font struct, just once.
11747
11748 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11749
11750 * term.c (get_named_tty): Fix last change.
11751
11752 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11753
11754 * indent.c (Fvertical_motion): If moving forward starting from a
11755 multi-line string, move the iterator to the last line of that string.
11756
11757 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11758
11759 * frame.c (do_switch_frame): Mark previously displayed frame as
11760 obscured for FRAME_MSDOS_P frames as well.
11761
11762 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11763
11764 * frame.c (make_terminal_frame): Initialize f->terminal,
11765 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11766 Set the top frame to newly created frame.
11767 (Fmake_terminal_frame): Reuse the_only_display_info.
11768
11769 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11770 estimating available memory.
11771
11772 2008-08-23 David Reitter <david.reitter@gmail.com>
11773
11774 * nsterm.m (ns_draw_window_cursor): Don't call
11775 NSDisableScreenUpdates and NSEnableScreenUpdates on
11776 non-NS_IMPL_COCOA systems.
11777
11778 2008-08-23 Andreas Schwab <schwab@suse.de>
11779
11780 * process.c (procfs_system_process_attributes): Fix use of
11781 uninitialized variables.
11782
11783 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11784
11785 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11786
11787 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11788 calling tty-set-up-initial-frame-faces.
11789
11790 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11791 Allow MSDOS frames along with X frames.
11792
11793 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11794 addition to output_termcap.
11795
11796 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11797
11798 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11799 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11800 highlight.
11801
11802 * process.c [!subprocesses]: Define QCname.
11803 (syms_of_process): Intern and staticpro it.
11804
11805 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11806 Adjust for changes in encoding/decoding routines.
11807 Use encode_coding_object and decode_coding_object instead of
11808 encode_coding and decode_coding.
11809
11810 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11811
11812 * dosfns.c: Include frame.h before termhooks.h.
11813 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11814 variable termscript.
11815
11816 * s/msdos.h (USER_FULL_NAME): Define.
11817 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11818
11819 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11820 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11821 pw->pw_gecos.
11822
11823 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11824 SELECTED_FRAME as additional (1st) argument.
11825 (tty_read_avail_input): Handle output_msdos_raw in
11826 addition to output_termcap.
11827
11828 * msdos.c: Include frame.h before termhooks.h.
11829 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11830 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11831 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11832 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11833 (IT_set_terminal_modes, IT_reset_terminal_modes)
11834 (IT_set_frame_parameters): Use tty->termscript instead of a global
11835 variable termscript.
11836 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11837 global variable terminal_coding. Don't refer to
11838 Vnonascii_translation_table.
11839 (internal_terminal_init): Set Vwindow_system in current_kboard.
11840 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11841 Announce date and time of session start, if termscript is open.
11842 Don't zero out the_only_display_info (it is done in
11843 term.c:init_tty). Open termscript only of not already open.
11844 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11845 here instead of dos_ttraw. Don't initialize display if this is an
11846 initial tty. Don't set FRAME_FONT.
11847 (Vwindow_system_version): Bump to 23.
11848 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11849 is available, set up mouse_position_hook.
11850 (dos_ttraw, IT_set_terminal_modes): If called with initial
11851 terminal, do nothing.
11852 (IT_set_frame_parameters): Handle the Qtty_type frame
11853 parameter by calling internal_terminal_init.
11854 (dos_set_window_size, show_mouse_face)
11855 (clear_mouse_face, IT_note_mode_line_highlight)
11856 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11857 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11858 (initialize_msdos_display): New function.
11859 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11860 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11861 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11862 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11863 Accept additional argument: a pointer to a frame. Update all callers.
11864 (request_sigio, unrequest_sigio): Don't define, now defined on
11865 sysdep.c.
11866 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11867
11868 * term.c [MSDOS]: Include msdos.h.
11869 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11870 conditional to DOS_NT. Allow only one call to this function in a
11871 session. Don't allocate a new struct tty_display_info; instead,
11872 reuse the_only_display_info. Call get_tty_size to get screen
11873 dimensions. Call init_baud_rate to set bad_rate.
11874 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11875 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11876 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11877 (get_tty_terminal, get_named_tty, Ftty_type)
11878 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11879 output_termcap.
11880 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11881 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11882 only when subprocesses are supported.
11883
11884 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11885 f->output_data.x.
11886 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11887 terminal devices.
11888
11889 * msdos.h: Remove definition of struct x_display_info and struct
11890 x_output.
11891 (FRAME_FONT): Use output_data.tty.
11892 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11893 (struct x_display_info): Rename from display_info. Update all users in
11894 msdos.c.
11895 (struct x_output): Remove background_pixel and foreground_pixel.
11896 (the_only_display_info): Rename from the_only_x_display.
11897 (dos_ttraw): Update prototype.
11898
11899 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11900 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11901
11902 2008-08-23 Jason Rumney <jasonr@gnu.org>
11903
11904 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11905 (fn_TIFFSetDirectory): New library function used.
11906 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11907 (tiff_load): Use :index to select among multiple images. Set count
11908 property when multiple images exist.
11909 (gif_format): Use :index, not :image.
11910
11911 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11912
11913 * xdisp.c (try_scrolling): Check INT_MAX instead of
11914 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11915 to obtain INT_MAX.
11916
11917 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11918
11919 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11920
11921 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11922
11923 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11924 GNUstep library location.
11925
11926 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11927
11928 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11929 before using it.
11930
11931 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11932
11933 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11934
11935 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11936 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11937 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11938 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11939 (EmacsApp-cursor_blink_handler): Remove declaration.
11940 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11941 match 01 Feb 2008 changes in xterm.c.
11942 (ns_read_socket): Add cast to avoid warning.
11943 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11944 GNUstep.
11945
11946 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11947
11948 * xselect.c (x_get_foreign_selection): Return nil if desired
11949 selection could not be obtained, instead of signalling an error.
11950
11951 2008-08-20 David Reitter <david.reitter@gmail.com>
11952
11953 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11954 * nsterm.m: Remove ns-specific code for cursor blinking.
11955 (ns_draw_window_cursor): Clear cursor properly rather than
11956 redrawing the area. Respect width of bar cursors.
11957 These changes enable the use of generic blink-cursor-mode and
11958 generic cursor types in NS and support smooth cursor movements (do
11959 not blink off after command).
11960 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11961 Nextstep, too.
11962
11963 2008-08-19 Kenichi Handa <handa@m17n.org>
11964
11965 * font.c (Vfont_log_deferred): New variable.
11966 (font_add_log): Check Vfont_log_deferred.
11967 (font_deferred_log): New function.
11968
11969 * font.h (font_deferred_log): Extern it.
11970
11971 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11972 for sorting.
11973 (face_for_char): Use deferred log.
11974
11975 2008-08-18 Kenichi Handa <handa@m17n.org>
11976
11977 * fontset.c (face_for_char): Add font log.
11978
11979 * font.c (font_add_log): Add the font properties :script, :lang,
11980 and :otf in the log.
11981
11982 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11983
11984 * xdisp.c: Remove dead code.
11985 (handle_invisible_prop, next_overlay_string): Defer call to
11986 setup_for_ellipsis.
11987 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11988
11989 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11990
11991 * xfaces.c (lookup_derived_face): Properly handle possible zero
11992 return value of get_lface_attributes.
11993 (merge_faces): Don't tell lookup_derived_face to signal an error
11994 if face is not found.
11995
11996 * dired.c (Fdirectory_files): Doc fix.
11997
11998 * process.c (make_process): Initialize kill_without_query struct
11999 member.
12000
12001 2008-08-15 Eli Zaretskii <eliz@gnu.org>
12002
12003 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12004 Alternative calculation of totphys for Visual Studio 6.
12005
12006 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12007
12008 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12009 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12010 All users changed.
12011 (stat): Only root directory passed to GetDriveType. Allow RAM
12012 disk as well as local fixed disk when w32-get-true-file-attributes
12013 is set to `local'.
12014 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12015 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12016 (w32_cached_id, w32_add_to_cache): New functions.
12017 (get_name_and_id): Look account names in the cache before calling
12018 lookup_account_sid.
12019 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12020 New initialization flags.
12021 (globals_of_w32): Initialize them to zero.
12022 (w32_system_process_attributes): Use w32_cached_id and
12023 w32_add_to_cache.
12024
12025 2008-08-14 Lawrence Mitchell <wence@gmx.li>
12026
12027 * lread.c (Fread_char, Fread_char_exclusive): If no character
12028 event is read before timeout is reached, return nil, rather than
12029 converting to a number.
12030
12031 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
12032
12033 * fns.c (use_dialog_box): Doc fix.
12034
12035 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12036 on OS X.
12037
12038 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
12039
12040 * frame.c (Qns_parse_geometry): New var.
12041 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12042
12043 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
12044
12045 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12046 space character in calculating tabs.
12047
12048 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12049
12050 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12051
12052 2008-08-10 Glenn Morris <rgm@gnu.org>
12053
12054 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12055 silence gcc "limited range of data type" warnings in some
12056 make_fixnum_or_float calls.
12057
12058 2008-08-09 Eli Zaretskii <eliz@gnu.org>
12059
12060 * w32.c (w32_system_process_attributes): If the process does not
12061 exist, return nil.
12062
12063 * w32.c: Include thelp32.h, psapi.h and coding.h.
12064 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12065 declarations.
12066 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12067 (Process32Next_Proc): New typedefs.
12068 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12069 (g_b_init_process32_next, g_b_init_open_thread_token)
12070 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12071 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12072 (g_b_init_get_process_working_set_size)
12073 (g_b_init_global_memory_status_ex): New static variables.
12074 (globals_of_w32): Initialize them.
12075 (create_toolhelp32_snapshot, process32_first, process32_next)
12076 (open_thread_token, impersonate_self, revert_to_self)
12077 (get_process_memory_info, get_process_working_set_size)
12078 (global_memory_status, global_memory_status_ex): New wrapper
12079 functions.
12080 (w32_list_system_processes, w32_system_process_attributes)
12081 (enable_privilege, restore_privilege, ltime, process_times):
12082 New functions.
12083 (convert_time_raw): New function.
12084 (convert_time): Remove conversion of FILETIME into time in 100
12085 nsec units, call convert_time_raw instead.
12086
12087 * process.h (w32_list_system_processes, w32_system_process_attributes):
12088 Add prototypes.
12089 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12090 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12091 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12092 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12093
12094 * process.c (Fsystem_process_attributes): Doc fix.
12095
12096 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
12097
12098 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12099 a continued multi-char glyph; if so, advance to the actual glyph.
12100
12101 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12102
12103 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12104
12105 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12106 (.m.o): Use it.
12107 * config.in: Regenerate.
12108
12109 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
12110
12111 * xdisp.c (redisplay_window): Revert last change.
12112 (try_window): Check bottom scroll margin too.
12113
12114 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12115
12116 * config.in: Regenerate.
12117
12118 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12119 -list-load-path-shadows'.
12120 (nsgui.h): Reduce number of things depending on it.
12121
12122 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
12123
12124 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12125 instead of window-end which does the wrong thing at eob.
12126 (try_cursor_movement): Minor optimization.
12127 (redisplay_window): If scroll margin is defined, don't assume
12128 window doesn't need scrolling.
12129
12130 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12131
12132 * config.in: Regenerate.
12133
12134 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12135 (mostlyclean): Don't delete *.d under NS.
12136
12137 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12138
12139 2008-08-06 Kenichi Handa <handa@m17n.org>
12140
12141 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12142
12143 2008-08-06 Andreas Schwab <schwab@suse.de>
12144
12145 * config.in: Regenerate.
12146
12147 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
12148
12149 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12150 forcing a window start.
12151
12152 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12153 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12154
12155 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12156
12157 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12158 argument.
12159
12160 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
12161
12162 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12163 <scroll-down-aggressively, before-change-functions>:
12164 <after-change-functions>: Reflow docstrings.
12165
12166 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12167 Ken Raeburn <raeburn@gnu.org>
12168
12169 Dock menu customization, based on a patch by Ken Raeburn, plus some
12170 other fixes.
12171 * nsmenu.m (dockMenu): New variable.
12172 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12173
12174 * nsterm.h (dockMenu): Declare.
12175
12176 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12177 (ns_term_init): Initialize dockMenu.
12178 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12179 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12180 left.
12181
12182 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12183
12184 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12185
12186 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12187
12188 * config.in: Regenerate.
12189
12190 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12191
12192 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12193
12194 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12195
12196 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12197
12198 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12199
12200 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12201
12202 * keyboard.h: Comment an #endif.
12203
12204 * lisp.h (have_menus_p): Adjust comment.
12205
12206 * menu.c (find_and_return_menu_selection): Fix comparison with
12207 client_data.
12208
12209 * nsmenu.m (popup_activated_flag): New variable.
12210 (popup_activated): New function.
12211 (menu-or-popup-active-p): New exported lisp definition.
12212 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12213 when popup done.
12214 (ns_popup_dialog): Set popup_activated_flag.
12215
12216 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12217 version for GNUstep (handled by conditional typedef in nsterm.m).
12218 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12219 in rgb.txt).
12220
12221 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12222
12223 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12224
12225 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12226
12227 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12228 shortcircuit if popup_activated like GTK and X toolkit.
12229
12230 * m/inter386.h: Change DARWIN to DARWIN_OS.
12231
12232 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12233 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12234 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12235 comment on NO_SOCK_SIGIO.
12236
12237 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12238
12239 * nsterm.m (windowDidResize): Remove stopModal call.
12240
12241 2008-08-03 Andreas Schwab <schwab@suse.de>
12242
12243 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12244 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12245
12246 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12247
12248 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12249 Don't use uninitialized pointer variable when using getrlimit.
12250
12251 2008-08-02 Jason Rumney <jasonr@gnu.org>
12252
12253 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12254
12255 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12256
12257 * alloc.c (NSTATICS): Bump to 0x640.
12258
12259 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12260
12261 * lisp.h: Add prototype for directory_files_internal.
12262
12263 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12264 New functions.
12265 (syms_of_process): Defsubr them. Add initializations for various
12266 Q* symbols used in procfs_system_process_attributes.
12267 (procfs_list_system_processes, procfs_system_process_attributes)
12268 [HAVE_PROCFS]: New functions.
12269 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12270 (procfs_get_total_memory): New functions.
12271
12272 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12273
12274 * xfaces.c (Fx_load_color_file): Fix previous change;
12275 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12276
12277 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12278
12279 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12280
12281 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12282
12283 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12284
12285 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12286
12287 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12288
12289 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12290 define NSApplicationDelegateReplySuccess.
12291 (EmacsView -converstationIdentifier): Use long instead of
12292 NSInteger for GNUstep, since it doesn't have NSInteger.
12293
12294 * xmenu.c: Revert last change.
12295
12296 * keyboard.h: Fix last change.
12297
12298 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12299
12300 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12301 on Windows.
12302
12303 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12304
12305 Warning clearing and clean-up in NS port.
12306 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12307 Add prototypes.
12308 * nsgui.h (FACE_DEFAULT): Remove, unused.
12309 (XGCValues): Change colors to unsigned long.
12310 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12311 nsterm.m.
12312 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12313 (ns_list_fonts): Remove, unused.
12314 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12315 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12316 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12317 (nsfont_draw): Compare face colors to 0, not nil.
12318 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12319 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12320 (-addSubmenuWithTitle:): Use NSMenuItem class.
12321 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12322 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12323 (ns_clip_to_row): Make gc arg a BOOL.
12324 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12325 ns_clip_to_row() call.
12326 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12327 used). Cast FRAME_FONT assignments.
12328 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12329 (ns_string_to_lispmod): Change arg to const char.
12330 (ns_term_init): Use NSMenuItem class.
12331 (EmacsApp -openFile:): Move to different section of file.
12332 (EmacsApp -application:openFiles:): Don't return a value, call
12333 -replyToOpenOrPrint:.
12334 (EmacsView -keyDown:): Fix up cast.
12335 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12336 (EmacsView -menuDown:): Cast tag in call to
12337 find_and_call_menu_selection().
12338 (ns_list_fonts): Remove, unused.
12339 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12340 (ns_fontname_to_xlfd): Make static.
12341 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12342 Remove prototypes (now in keyboard.h).
12343 (next_menubar_widget_id): Remove, unused.
12344 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12345 Remove prototypes (now in keyboard.h).
12346 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12347
12348 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12349
12350 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12351 (floatfns.o): Depend on syssignal.h.
12352 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12353
12354 * systty.h: Fix previous change that removed BSD_TERMIOS.
12355 Add comments to #ifdefs.
12356
12357 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12358
12359 * w32fns.c (w32-load-color-file): Remove.
12360 (x-open-connection): Use renamed Fx_load_color_file.
12361 * xfaces.c (x-load-color-file): Add.
12362 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12363 Emacs.clr.
12364 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12365
12366 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
12367
12368 * dbusbind.c (Fdbus_call_method_asynchronously)
12369 (Fdbus_method_error_internal): New defuns.
12370 (xd_read_message): Handle also reply messages.
12371 (Vdbus_registered_functions_table): Extend docstring.
12372
12373 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
12374
12375 * keyboard.c (gobble_input): Fix previous change.
12376
12377 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12378
12379 * bitmaps/README:
12380 * xfns.c:
12381 * termcap.c:
12382 * term.c:
12383 * syswait.h:
12384 * systty.h:
12385 * systime.h:
12386 * syssignal.h:
12387 * sysdep.c:
12388 * process.h:
12389 * process.c:
12390 * print.c:
12391 * ndir.h:
12392 * lread.c:
12393 * keyboard.c:
12394 * getpagesize.h:
12395 * floatfns.c:
12396 * fileio.c:
12397 * emacs.c:
12398 * doc.c:
12399 * dispnew.c:
12400 * dired.c:
12401 * data.c:
12402 * callproc.c:
12403 * buffer.c:
12404 * README:
12405 * Makefile.in:
12406 * s/template.h:
12407 * s/msdos.h:
12408 * m/vax.h: Remove VMS support.
12409 * s/vms.h:
12410 * vlimit.h:
12411 * uaf.h:
12412 * temacs.opt:
12413 * param.h:
12414 * ioctl.h: Remove file.
12415
12416 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12417
12418 * s/ms-w32.h (MULTI_KBOARD): Remove.
12419 * xterm.c:
12420 * xselect.c:
12421 * xfns.c:
12422 * window.c:
12423 * w32term.c:
12424 * w32fns.c:
12425 * terminal.c:
12426 * termhooks.h:
12427 * term.c:
12428 * sysdep.c:
12429 * keyboard.h:
12430 * keyboard.c:
12431 * frame.h:
12432 * frame.c:
12433 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12434 * config.in: Regenerate.
12435
12436 2008-07-30 Jason Rumney <jasonr@gnu.org>
12437
12438 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12439
12440 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12441 (w32font_open_internal): Get unicode version of textmetrics.
12442 Don't enable or disable glyph indices here.
12443 (w32font_open): Disable use of glyph indices.
12444
12445 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12446
12447 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
12448
12449 * minibuf.c (Vread_buffer_function): Doc fix.
12450
12451 2008-07-30 John Paul Wallington <jpw@pobox.com>
12452
12453 * minibuf.c (read_buffer_completion_ignore_case): New var.
12454 (Fread_buffer): Use it.
12455
12456 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12457
12458 * systty.h (sensemode): Remove empty #if. Remove reference to
12459 BSD_TERMIOS, unused.
12460
12461 * sysdep.c: Remove reference to DGUX.
12462 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12463
12464 * config.in: Regenerate.
12465
12466 2008-07-30 Jason Rumney <jasonr@gnu.org>
12467
12468 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12469
12470 2008-07-29 Jason Rumney <jasonr@gnu.org>
12471
12472 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12473 is populated.
12474 (uniscribe_encode_char): Always use uniscribe.
12475 Avoid using context if cache is populated.
12476
12477 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12478
12479 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12480 open menu.
12481
12482 * gtkutil.c (menu_nav_ended): Remove.
12483 (create_menus): Remove signal connect for menu_nav_ended.
12484
12485 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12486
12487 * xdisp.c (redisplay_window): Check return value of
12488 compute_window_start_on_continuation_line before forcing a window
12489 start.
12490
12491 2008-07-28 Jason Rumney <jasonr@gnu.org>
12492
12493 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12494
12495 * w32term.c (w32_enable_unicode_output, cleartype_active):
12496 Remove obsolete display options.
12497 (x_draw_glyph_string_background): Don't use old cleartype_active
12498 workaround.
12499 (w32_initialize): Remove cleartype_active initialization.
12500 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12501
12502 2008-07-28 Andreas Schwab <schwab@suse.de>
12503
12504 * lisp.h (init_weak_hash_tables, syms_of_font)
12505 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12506 (remove_hash_entry): Don't declare.
12507 * eval.c (maybe_call_debugger): Make static and move before use.
12508 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12509 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12510 * xterm.h (x_set_frame_alpha): Declare.
12511
12512 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12513
12514 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12515 (create_menus): Connect selection-done to menu_nav_ended.
12516
12517 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12518
12519 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12520 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12521 parameter with read of 'alpha' one.
12522 (Qns_frame_parameter): Remove.
12523 * nsselect.m (selection-coding-system)
12524 (next-selection-coding-system, Vselection_coding_system)
12525 (Vnext_selection_coding_system): Drop.
12526
12527 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12528
12529 * nsfns.m (do-applescript, do_applescript): Rename to
12530 ns-do-applescript, ns_do_applescript, and move within file.
12531
12532 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12533
12534 Remove support for Mac Carbon.
12535 * mactoolbox.c:
12536 * macterm.h:
12537 * macterm.c:
12538 * macselect.c:
12539 * macmenu.c:
12540 * macgui.h:
12541 * macfns.c:
12542 * mac.c: Remove file.
12543 * s/darwin.h:
12544 * m/intel386.h:
12545 * xfaces.c:
12546 * xdisp.c:
12547 * window.c:
12548 * tparam.c:
12549 * termhooks.h:
12550 * termcap.c:
12551 * term.c:
12552 * syssignal.h:
12553 * sysselect.h:
12554 * sysdep.c:
12555 * process.c:
12556 * lread.c:
12557 * lisp.h:
12558 * keyboard.c:
12559 * image.c:
12560 * fringe.c:
12561 * frame.h:
12562 * frame.c:
12563 * fontset.c:
12564 * font.h:
12565 * font.c:
12566 * fns.c:
12567 * fileio.c:
12568 * emacs.c:
12569 * dispnew.c:
12570 * dispextern.h:
12571 * config.in:
12572 * atimer.c:
12573 * Makefile.in: Remove code for Carbon.
12574
12575 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12576
12577 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12578
12579 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12580
12581 * macterm.h (kCGBitmapByteOrder32Host): New define for
12582 non-universal SDKs.
12583
12584 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12585 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12586
12587 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12588 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12589
12590 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12591
12592 * w32inevt.c: Include dispextern.h.
12593
12594 2008-07-26 Andreas Schwab <schwab@suse.de>
12595
12596 * print.c (print_object): Fix off-by-one in last change.
12597
12598 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12599
12600 * term.c (syms_of_term): Don't initialize default_orig_pair,
12601 default_set_foreground and default_set_background on Windows.
12602
12603 2008-07-25 Jason Rumney <jasonr@gnu.org>
12604
12605 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12606 ScriptItemize. Clean up return value checking. Remove unused
12607 variables.
12608 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12609 shaping engine.
12610
12611 * w32font.c (w32font_has_char): Handle the case where we can't
12612 determine the script for a character.
12613
12614 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12615
12616 * term.c (syms_of_term): Initialize default_orig_pair,
12617 default_set_foreground, and default_set_background.
12618
12619 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12620 clash (bug#86).
12621 (getloadavg): Callers changed.
12622
12623 * image.c (svg_load_image): Fix last change.
12624 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12625 image size is valid. Use g_object_unref instead of deprecated
12626 rsvg_handle_free to free rsvg handle.
12627 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12628
12629 2008-07-25 Jason Rumney <jasonr@gnu.org>
12630
12631 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12632 surrogates before looking up glyph index.
12633 (w32font_text_extents): Encode as surrogates if falling back to
12634 functions that need UTF-16 wide chars.
12635
12636 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12637 BMP as surrogates before looking up glyph index.
12638
12639 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12640
12641 * image.c (svg_load_image): Check for failure in return value of
12642 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12643
12644 2008-07-25 Jason Rumney <jasonr@gnu.org>
12645
12646 * w32font.c (Fx_select_font): Reverse sense of second arg.
12647
12648 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12649
12650 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12651 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12652
12653 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12654 (PURESIZE): Use it.
12655
12656 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12657
12658 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12659 * m/alpha.h (TEXT_END):
12660 * m/ibmrs6000.h (TEXT_END):
12661 * m/macppc.h (TEXT_END):
12662 * s/darwin.h (TEXT_END):
12663 * s/msdos.h (TEXT_END): Remove, unused.
12664 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12665 * s/cygwin.h: Remove comment.
12666
12667 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12668 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12669 * m/intel386.h (DOT_GLOBAL_START):
12670 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12671 (USG): Remove, file not used on USG platforms.
12672
12673 * Makefile.in (HAVE_X11): Remove empty #else.
12674
12675 2008-07-24 Andreas Schwab <schwab@suse.de>
12676
12677 * fileio.c (Finsert_file_contents): Properly adjust undo list
12678 after format conversion.
12679
12680 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12681
12682 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12683 (menu_nav_ended): Remove.
12684 (create_menus): Remove signal connect for menu_nav_ended.
12685 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12686 create_menus.
12687 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12688
12689 2008-07-23 Jason Rumney <jasonr@gnu.org>
12690
12691 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12692 with opened font.
12693 (w32font_open): Set font type to gdi.
12694
12695 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12696
12697 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12698
12699 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12700 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12701 defines it.
12702 * unexec.c (ADDR_CORRECT): Define unconditionally.
12703
12704 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12705
12706 * unexec.c: Remove code depending on !COFF and USG, the file is
12707 not used for such systems.
12708
12709 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12710 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12711 (LD_SWITCH_SYSTEM_1): Remove, update users.
12712
12713 * s/darwin.h (DATA_END):
12714 * m/intel386.h (DATA_END):
12715 * m/ibmrs6000.h (DATA_END):
12716 * m/alpha.h (DATA_END): Remove, unused.
12717
12718 * config.in: Regenerate.
12719 * s/ms-w32.h (subprocesses): Define unconditionally.
12720 * s/template.h (subprocesses): Update comment.
12721 * s/vms.h (subprocesses):
12722 * s/usg5-4.h (subprocesses):
12723 * s/hpux10-20.h (subprocesses):
12724 * s/gnu-linux.h (subprocesses):
12725 * s/cygwin.h (subprocesses):
12726 * s/bsd-common.h (subprocesses):
12727 * s/aix4-2.h (subprocesses):
12728 * s/darwin.h (subprocesses): Do not define, defined by default now.
12729
12730 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12731 Remove all references.
12732 (temacs): Add GNUstep specific ld flags.
12733
12734 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12735 similarly to what X does.
12736
12737 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12738
12739 * nsfns.m (x-list-fonts): Remove.
12740 (syms_of_nsfns): Drop the x-list-fonts declaration.
12741 * nsterm.m: Get rid of remaining "//" comments.
12742
12743 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12744
12745 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12746
12747 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12748 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12749 (Fns_own_selection_internal, Fx_disown_selection_internal)
12750 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12751
12752 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12753 ... */' style of docstrings. Doc fixes.
12754
12755 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12756
12757 * terminfo.c (UP, BC, PC): Undo previous change.
12758
12759 * nsfns.m: Rename ns prefixed functions/variables to the
12760 corresponding x versions. Update references.
12761
12762 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12763
12764 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12765
12766 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12767
12768 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12769 Remove forwarding functions.
12770 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12771 non-static.
12772 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12773 non-static.
12774 (ns_frame_parm_handlers): Use the new names.
12775 (syms_of_nsfns): Move to the end of file.
12776
12777 * nsterm.m (syms_of_nsterm): Move to the end of file.
12778
12779 * dispnew.c (init_display): Remove code for X10.
12780
12781 2008-07-22 Jason Rumney <jasonr@gnu.org>
12782
12783 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12784 bare drive.
12785
12786 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12787
12788 * nsterm.m (syms_of_nsterm): Remove debugging println.
12789
12790 2008-07-22 David Reitter <david.reitter@gmail.com>
12791
12792 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12793 Carbon implementation of the same functionality: execute arbitrary
12794 AppleScript code.
12795
12796 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12797
12798 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12799 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12800 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12801 (Fx_display_mm_height, Fx_display_mm_width)
12802 (Fx_display_backing_store, Fx_display_visual_class)
12803 (Fx_display_save_under, Fx_open_connection)
12804 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12805 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12806 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12807 (Fx_display_pixel_width, Fx_display_pixel_height)
12808 (Fx_display_usable_bounds, Fx_display_planes)
12809 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12810 ... */' style of docstrings.
12811
12812 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12813
12814 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12815 on this platform.
12816 (mips):
12817 * m/iris4d.h (mips): Do not define.
12818 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12819
12820 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12821
12822 * image.c:
12823 * nsfns.m:
12824 * nsselect.m:
12825 * nsterm.h:
12826 * nsterm.m: Rename ns prefixed functions/variables to the
12827 corresponding x versions. Update references.
12828
12829 * m/ibms390x.h (NO_REMAP): Do not undefine.
12830
12831 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12832
12833 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12834
12835 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12836 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12837 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12838 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12839 (Fns_display_mm_height, Fns_display_mm_width)
12840 (Fns_display_backing_store, Fns_display_visual_class)
12841 (Fns_display_save_under, Fns_open_connection)
12842 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12843 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12844 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12845 (Fns_display_pixel_width, Fns_display_pixel_height)
12846 (Fns_display_usable_bounds, Fx_display_planes)
12847 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12848
12849 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12850
12851 * print.c (print_object): Check print_depth before searching for
12852 circularities.
12853
12854 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12855
12856 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12857 only sprintf.
12858
12859 2008-07-21 Kenichi Handa <handa@m17n.org>
12860
12861 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12862
12863 2008-07-20 Andreas Schwab <schwab@suse.de>
12864
12865 * syntax.c (find_start_pos, find_start_value)
12866 (find_start_value_byte, find_start_begv, find_defun_start)
12867 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12868
12869 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12870
12871 * s/sol2-3.h: Insert contents of s/sol2.h.
12872 (LD_SWITCH_SYSTEM): Remove redundant definition.
12873 * s/sol2.h: Remove, unused.
12874
12875 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12876
12877 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12878
12879 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12880
12881 * Makefile.in (ns_appdir): Fix typo in find command.
12882
12883 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12884
12885 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12886
12887 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12888 added not supported anymore.
12889
12890 * s/usg5-4-2.h (LIBS_SYSTEM):
12891 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12892
12893 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12894 * s/lynxos.h (GETPGRP_NO_ARG):
12895 * s/hpux10-20.h (NO_SIOCTL_H):
12896 * s/gnu.h (GETPGRP_NO_ARG):
12897 * s/gnu-linux.h (NO_SIOCTL_H):
12898 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12899 * s/cygwin.h (GETPGRP_NO_ARG):
12900 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12901 (C_DEBUG_SWITCH): Remove duplicate definition.
12902
12903 * m/ibms390.h: Remove boilerplate comments.
12904
12905 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12906
12907 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12908 (wait_reading_process_output): Remove code for SunOS, platform not
12909 supported anymore. Use SOLARIS2 instead of sun.
12910
12911 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12912
12913 * font.c (font_open_by_name): Under NS, default lface height to zero.
12914 (font_open_for_lface): Under NS, set size based on frame fontsize.
12915 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12916 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12917
12918 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12919
12920 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12921 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12922 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12923 YES/NO.
12924 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12925 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12926 * Makefile.in (clean): Clear out build destination dir.
12927
12928 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12929
12930 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12931 xterm, xselect.
12932 * lisp.h: Remove declaration of hash_remove.
12933 * nsgui.h: Remove redefinitions of hash_remove.
12934 * fns.c (hash_remove): Rename to hash_remove_from_table.
12935
12936 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12937
12938 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12939 strdup() the family UTF8String before modifying it.
12940
12941 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12942
12943 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12944 NS_FACE_BACKGROUND with 0 instead of nil.
12945 * nsfont.m (nsfont_draw): Same.
12946
12947 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12948
12949 * nsfns.m (ns_set_background_color): Fix crash.
12950
12951 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12952
12953 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12954
12955 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12956
12957 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12958
12959 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12960
12961 * gtkutil.c: Include <config.h> instead of "config.h".
12962
12963 * lisp.h (Foverlay_buffer): Add EXFUN.
12964
12965 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12966 child process to complete child_setup. Undo 2005-09-21 change.
12967
12968 * s/darwin.h: Mention setsid after vfork.
12969
12970 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12971
12972 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12973 Depend on macgui.h.
12974
12975 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12976 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12977
12978 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12979 and f19.
12980 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12981
12982 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12983 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12984 Remove enumerators.
12985
12986 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12987 Check if FACE_FROM_ID returns NULL.
12988
12989 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12990
12991 * w32inevt.c (change_frame_size): Remove extern declaration.
12992 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12993 change_frame_size.
12994
12995 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12996
12997 * getloadavg.c: Revert last change (2008-07-15).
12998
12999 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13000
13001 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
13002 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
13003 from configure.
13004
13005 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13006
13007 * s/sol2.h:
13008 * s/sol2-4.h: Reorganize conditionals.
13009
13010 * ecrt0.c: Remove code depending on m68000, not used anymore.
13011
13012 * fns.c (hash_remove): Make static.
13013 * lisp.h (hash_remove): Don't prototype.
13014
13015 * m/ibmrs6000.h:
13016 * m/ibms390x.h:
13017 * m/macppc.h: Remove boilerplate comments.
13018
13019 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13020 Solaris, which does not need them.
13021
13022 * m/vax.h: Remove comments about unsupported systems.
13023
13024 * s/darwin.h: Reorganize ifdefs.
13025
13026 2008-07-17 Andreas Schwab <schwab@suse.de>
13027
13028 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13029
13030 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13031
13032 Use SDATA. Follow coding convention of placing operators at
13033 beginning of next line rather than end of previous line, and placing
13034 spaces around infix operators.
13035
13036 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13037 in case it was defined already.
13038 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13039 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13040 ns_default.
13041 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13042 Lisp_Objects.
13043 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13044 (ns_defined_color, ns_color_to_lisp): Declare.
13045 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13046 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13047 it's accepted even with USE_LISP_UNION_TYPE.
13048 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13049 (update_frame_tool_bar): Remove apparently obsolete tests for
13050 non-integerness of f->tool_bar_lines.
13051 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13052 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13053 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13054 (nsfont_open): Don't confuse NULL for Qnil.
13055 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13056 * menu.h (find_and_call_menu_selection):
13057 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13058 (find_and_return_menu_selection): Always return something.
13059 * frame.h: Include dispextern.h for Display_Info.
13060 (display_x_get_resource): Declare.
13061
13062 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13063
13064 * syntax.c: Remove stdio.h include accidentally introduced in
13065 Emacs.app commit.
13066 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13067 NS_IMPL_COCOA.
13068 * keyboard.c (handle_async_input, input_available_signal): Remove
13069 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13070
13071 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13072
13073 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13074 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13075 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13076 Use SDATA.
13077
13078 * keymap.c: Remove all NS-specific code.
13079 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13080 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13081 where_is_preferred_modifier, return a different value depending on how
13082 preferred is the binding.
13083 (where_is_internal): Adjust accordingly.
13084 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13085 Adjust to new preferred_sequence_p.
13086 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13087 * keyboard.c (parse_solitary_modifier): Not static any more.
13088 * keyboard.h (parse_solitary_modifier): Declare.
13089
13090 2008-07-16 Andreas Schwab <schwab@suse.de>
13091
13092 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13093 of easymenu.
13094
13095 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
13096
13097 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13098 that we don't move off the line.
13099
13100 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13101
13102 * keyboard.c (Qsuper): Remove.
13103 (parse_menu_item): Don't call where_is_internal specially for NS.
13104
13105 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13106
13107 * s/gnu-linux.h: Remove boilerplate comments.
13108
13109 * m/alpha.h (__ELF__): Consolidate conditions.
13110
13111 * m/m68k.h (linux): Use GNU_LINUX instead.
13112 Remove boilerplate comments.
13113
13114 * m/intel386.h: Undo refactoring from previous change.
13115 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13116 too, remove dead code.
13117 (linux): Use GNU_LINUX instead.
13118
13119 2008-07-16 Jason Rumney <jasonr@gnu.org>
13120
13121 * w32gui.h: Repeat 26 June changes lost by last change.
13122
13123 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13124
13125 * systty.h: Remove code for Aix on 386, unsupported platform.
13126
13127 * s/ms-w32.h: Remove boilerplate comments.
13128 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13129
13130 * s/gnu-linux.h (TERM): Remove support.
13131 (HAVE_SYSVIPC): Remove, unused.
13132 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13133 for this system.
13134
13135 * process.c: Remove support for IRIS, unused.
13136 Remove support for TERM, not relevant anymore.
13137
13138 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13139 used with the definition.
13140
13141 * s/aix4-2.h (static): Do not undef.
13142
13143 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13144 only used on Aix.
13145 (HAVE_SYSVIPC): Remove, unused.
13146
13147 * m/hp800.h (CANNOT_DUMP): Do not undef.
13148
13149 * m/alpha.h: Fix comment.
13150
13151 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13152 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13153 used by this configuration.
13154 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13155 * unexec.c: Remove code depending on HPUX and
13156 USG_SHARED_LIBRARIES, not used with this file. Remove code
13157 depending on IRIS, unused. Remove if 0-ed code.
13158
13159 * s/template.h: Remove comments about static.
13160
13161 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13162 Remove if 0-ed code.
13163 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13164 were the same as the default.
13165 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13166 Remove boilerplate comments.
13167 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13168 (HAVE_SYSVIPC): Remove, unused.
13169 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13170
13171 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13172 Remove boilerplate comments.
13173 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13174 Remove boilerplate comments.
13175 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13176 Remove boilerplate comments.
13177 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13178
13179 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13180 USG systems which do not use DATA_SEG_BITS.
13181 Refactor code. Remove boilerplate comments.
13182
13183 * m/ibms390.h:
13184 * m/m68k.h:
13185 * s/bsd-common.h:
13186 * s/cygwin.h:
13187 * s/darwin.h:
13188 * s/freebsd.h:
13189 * s/gnu.h:
13190 * s/msdos.h: Remove boilerplate comments.
13191
13192 * m/iris4d.h: Remove boilerplate comments and code for systems that
13193 do not use this file.
13194 (IRIS_4D): Remove, unused.
13195
13196 * m/mips.h: Remove boilerplate comments and code for systems that
13197 do not use this file.
13198 (SIGN_EXTEND_CHAR):
13199 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13200 * unexmips.c: Remove file, unused.
13201
13202 * editfns.c (Fuser_full_name): Replace the only use of
13203 USER_FULL_NAME with its value.
13204 * config.in: Regenerate.
13205
13206 2008-07-16 David Reitter <david.reitter@gmail.com>
13207
13208 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13209 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13210
13211 2008-07-16 Glenn Morris <rgm@gnu.org>
13212
13213 * emacs.c (system-type): Doc fix.
13214
13215 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13216
13217 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13218 If the cache doesn't work, let's fix it, rather than work around it.
13219
13220 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13221
13222 * Makefile.in: Correct additions for nsfont.o in last commit.
13223 * nsfont.m: New file (forgot last commit).
13224
13225 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13226
13227 * callproc.c (set_initial_environment): Initialize
13228 Vprocess_environment under CANNOT_DUMP (fixes crash when
13229 batch-compiling for bootstrap).
13230
13231 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13232 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13233
13234 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13235 CANNOT_DUMP case -- fix crash due to different init order.
13236
13237 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13238
13239 Changes and additions for NeXTstep windowing system (Cocoa and
13240 GNUstep) support.
13241
13242 * Makefile.in:
13243 * config.in: Support defines and build commands for NS port.
13244 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13245 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13246 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13247 windowing.
13248 (struct face): Add synth_ital field.
13249 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13250 (init_display): Initialize Vinitial_window_system to "ns" when so
13251 compiled.
13252 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13253 (display_arg): Use under NS.
13254 (main): Under NS, allocate autorelease pool and handle command line
13255 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13256 (standard_args): Add NS-specific args.
13257 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13258 * font.c (DEFAULT_ENCODING): New variable.
13259 (font_find_for_lface): Use it.
13260 (syms_of_font): Load syms_of_nsfont under NS.
13261 * font.h: Declare nsfont_driver when compiled under NS.
13262 * fontset.c: When compiling under NS, include nsterm.h.
13263 (fontset_from_font): Autoconstruct fontset under NS.
13264 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13265 symbol, document and use it.
13266 (do_switch_frame): When for_deletion under Cocoa, add
13267 Fraise_frame(Qnil).
13268 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13269 (x_get_arg): Allow "yes" and "no" as boolean values.
13270 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13271 Qright under Cocoa.
13272 (focus-follows-mouse): Default to 0 under NS.
13273 * frame.h (enum output_method): Add output_ns.
13274 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13275 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13276 (FRAME_WINDOW_P): NS-specific definition.
13277 * fringe.c (max_used_fringe_bitmap): Make public.
13278 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13279 (getloadavg): Use NeXT code under descendant OS's.
13280 * image.c (includes and header section, x_create_bitmap_from_data)
13281 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13282 (image_background_transparent, x_clear_image_1)
13283 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13284 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13285 (x_to_xcolors, x_from_xcolors, x_disable_image)
13286 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13287 other GUIs, including XPM support using code originally written for
13288 Carbon GUI.
13289 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13290 using NS API.
13291 (image_ascent): Use font metrics macros instead of direct struct field
13292 access.
13293 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13294 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13295 Also, handle NS as GTK for menu bar purposes.
13296 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13297 toolkit where they differ.
13298 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13299 use cachelist, still needed under NS.
13300 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13301 (struct widget_value): Define it here for menu.c.
13302 * keymap.c (includes): Include modifier internals.
13303 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13304 NS.
13305 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13306 support for preferring sequences using certain modifiers, specified by
13307 the FIRSTONLY argument.
13308 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13309 under NS GNUstep implementation.
13310 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13311 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13312 * menu.c: Include nsterm.h under NS.
13313 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13314 (free_menubar_widget_tree_value, update_submenu_strings)
13315 (find_and_call_menu_selection): Treat NS as X and NT.
13316 (find_and_return_menu_selection): New function, used for popup menus.
13317 * nsgui.h:
13318 * nsterm.h:
13319 * nsfns.m:
13320 * nsimage.m:
13321 * nsmenu.m:
13322 * nsselect.m:
13323 * nsterm.m: New files.
13324 * process.c (wait_reading_process_output): Under NS, call ns_select()
13325 instead of plain select().
13326 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13327 beginning of buffer.
13328 * sysselect.h (init_process): Rename when compiling under Cocoa to
13329 avoid name conflict.
13330 * termhooks.h (display_info): Add ns_display_info to union.
13331 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13332 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13333 COCOA environment.
13334 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13335 unexec() signature. (Note, this will dump, but the resulting file
13336 crashes; unexosx is used instead; keeping around for reference and
13337 possible aid in getting dump working under GNUstep.)
13338 * w32gui.h (button_type, widget_value): Remove definitions (now in
13339 keyboard.h).
13340 * window.c: Include nsterm.h when compiling under NS.
13341 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13342 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13343 other GUI windowing systems.
13344 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13345 GTK.
13346 (x_consider_frame_title): Under NS, set icon type and frame
13347 modified-state indicator; use ns_set_name_as_filename() when using
13348 formatted title.
13349 (update_window_cursor): Make public when compiling under NS.
13350 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13351 (hourglass_atimer, Vhourglass_delay
13352 * xfaces.c (header section, init_frame_faces, clear_font_table)
13353 (defined_color, unload_color, x_face_list_fonts)
13354 (prepare_face_for_display): Add NS support parallel to other GUIs.
13355 Emulate GCs like other non-X GUIs.
13356 (split_font_name): Don't lowercase font name under NS.
13357 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13358 under NS.
13359 * s/darwin.h: Add support for compilation under NS.
13360
13361 2008-07-15 Jason Rumney <jasonr@gnu.org>
13362
13363 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13364 (w32_show_hourglass): Rename from show_hourglass.
13365 (w32_hide_hourglass): Rename from hide_hourglass.
13366 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13367 (Vhourglass_delay): Declare extern.
13368 (hourglass_started): Remove.
13369
13370 * xdisp.c (Vhourglass_delay): Remove static.
13371 (hourglass_started, start_hourglass, cancel_hourglass):
13372 Don't include these versions on WINDOWSNT.
13373
13374 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13375
13376 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13377 variables (formerly in xfns.c).
13378 (show_hourglass, hide_hourglass): New prototypes (same).
13379 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13380 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13381 in xfns.c).
13382 (syms_of_xdisp): Declare/initialize display-hourglass,
13383 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13384 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13385 formerly in xfns.c.
13386 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13387 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13388 (start_hourglass, cancel_hourglass): Remove.
13389 (show_hourglass, hide_hourglass): Remove prototypes and static
13390 modifiers.
13391 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13392 hourglass_atimer, hourglass_shown_p declaration/initialization.
13393 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13394 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13395 (start_hourglass, cancel_hourglass): Remove.
13396 (show_hourglass, hide_hourglass): Remove prototypes and static
13397 modifiers.
13398 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13399 hourglass_atimer, hourglass_shown_p declaration/initialization.
13400 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13401 (DEFAULT_HOURGLASS_DELAY): Remove.
13402 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13403 hourglass_shown_p declaration/initialization.
13404
13405 2008-07-14 Jason Rumney <jasonr@gnu.org>
13406
13407 * w32fns.c (w32_get_arg): Remove wrapper function.
13408 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13409 directly.
13410 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13411
13412 2008-07-14 Kenichi Handa <handa@m17n.org>
13413
13414 * xfont.c (xfont_open): Add workaround for X's bug.
13415
13416 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13417
13418 * fontset.c: Include <stdio.h> unconditionally.
13419
13420 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
13421
13422 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13423 for filtering.
13424
13425 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13426
13427 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13428
13429 * m/macppc.h:
13430 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13431
13432 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
13433 (SPECIAL_EMACS_INT):
13434 * m/ia64.h (SPECIAL_EMACS_INT):
13435 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13436 * s/gnu.h (NLIST_STRUCT):
13437 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13438 * s/gnu-linux.h (LINUX):
13439 * s/msdos.h (HAVE_FACES):
13440 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13441
13442 * systty.h:
13443 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13444 anymore.
13445
13446 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13447
13448 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13449 always defined as int.
13450
13451 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13452 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13453 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13454 * s/freebsd.h (HAVE_WAIT_HEADER):
13455 * s/bsd-common.h (HAVE_UNION_WAIT):
13456 * s/aix4-2.h (HAVE_WAIT_HEADER):
13457 * m/mips.h (HAVE_UNION_WAIT):
13458 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13459 (COFF, static): Do not define, they are undefined later in the file.
13460
13461 * process.c (update_status): Don't use a union.
13462 (status_convert):
13463 (sigchld_handler): Use int instead of WAITTYPE.
13464
13465 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13466
13467 * indent.c (Fvertical_motion): Restore hscroll before moving to
13468 goal column.
13469
13470 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13471
13472 * lisp.h: Remove left over code.
13473
13474 2008-07-11 Andreas Schwab <schwab@suse.de>
13475
13476 * lisp.h: Fix logic in last change.
13477
13478 * menu.h: New file.
13479 * menu.c: Include it.
13480 * xmenu.c: Likewise.
13481 * Makefile.in: Update dependencies.
13482
13483 2008-07-11 Kenichi Handa <handa@m17n.org>
13484
13485 * fontset.c (fontset_from_font): Cancel the previous change.
13486
13487 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13488
13489 * lisp.h:
13490 * w32heap.c:
13491 * emacs.c:
13492 * alloc.c: Replace all references of NO_UNION_TYPE with
13493 USE_LISP_UNION_TYPE.
13494
13495 * m/xtensa.h (NO_UNION_TYPE):
13496 * m/vax.h (NO_UNION_TYPE):
13497 * m/template.h (NO_UNION_TYPE):
13498 * m/sparc.h (NO_UNION_TYPE):
13499 * m/mips.h (NO_UNION_TYPE):
13500 * m/macppc.h (NO_UNION_TYPE):
13501 * m/m68k.h (NO_UNION_TYPE):
13502 * m/iris4d.h (NO_UNION_TYPE):
13503 * m/intel386.h (NO_UNION_TYPE):
13504 * m/ibms390x.h (NO_UNION_TYPE):
13505 * m/ibms390.h (NO_UNION_TYPE):
13506 * m/ibmrs6000.h (NO_UNION_TYPE):
13507 * m/ia64.h (NO_UNION_TYPE):
13508 * m/hp800.h (NO_UNION_TYPE):
13509 * m/arm.h (NO_UNION_TYPE):
13510 * m/amdx86-64.h (NO_UNION_TYPE):
13511 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13512 defining it the same.
13513
13514 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13515
13516 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13517
13518 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13519
13520 * fileio.c:
13521 * sysdep.c:
13522 * systty.h:
13523 * m/ibmrs6000.h:
13524 * m/iris4d.h:
13525 * s/aix4-2.h:
13526 * s/freebsd.h:
13527 * s/gnu-linux.h:
13528 * s/hpux10-20.h:
13529 * s/hpux11.h:
13530 * s/netbsd.h:
13531 * s/sol2-3.h:
13532 * s/sol2-4.h:
13533 * s/sol2.h:
13534 * s/usg5-4.h:
13535 * s/vms.h: Remove references to unused variables.
13536
13537 2008-07-10 Andreas Schwab <schwab@suse.de>
13538
13539 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13540 pattern before matching the generic family.
13541
13542 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13543
13544 * unexec.c:
13545 * s/vms.h:
13546 * s/usg5-4-2.h:
13547 * s/sol2-5.h:
13548 * s/freebsd.h:
13549 * s/darwin.h: Remove dead code.
13550
13551 * m/template.h:
13552 * m/sparc.h:
13553 * m/mips.h:
13554 * m/m68k.h:
13555 * m/iris4d.h:
13556 * m/intel386.h:
13557 * m/ibms390x.h:
13558 * m/ibms390.h:
13559 * m/ia64.h:
13560 * m/hp800.h:
13561 * m/arm.h:
13562 * m/amdx86-64.h: Remove dead code and references to unused
13563 and compiler defined symbols.
13564
13565 * unexmips.c:
13566 * unexelf.c: Remove references to desupported systems.
13567
13568 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13569
13570 * m/powermac.h: Remove boilerplate comments.
13571 (NO_REMAP): Remove unused definition.
13572
13573 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13574 define them.
13575
13576 2008-07-10 Kenichi Handa <handa@m17n.org>
13577
13578 * xfont.c (xfont_open): Log the reason of failure.
13579
13580 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13581
13582 * fontset.c (fontset_get_font_group):
13583 * font.c (font_check_otf): Specify argument types.
13584
13585 2008-07-09 Kenichi Handa <handa@m17n.org>
13586
13587 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13588 non-ASCII char is found.
13589
13590 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13591 (reorder_font_vector): Change the arg preferred_family to font.
13592 Prefer the spec matching with font.
13593 (fontset_get_font_group): New function.
13594 (fontset_find_font): Change the format of an element of a realized
13595 fontset. Use fontset_get_font_group.
13596 (fontset_font): Try the current fontset, the default fontset, the
13597 fallbacks of the current fontset, and the fallbacks of the default
13598 fontset in this order.
13599 (face_for_char): Delete the shortcut to use the current font.
13600 (fontset_from_font): Don't set fonts for Latin in the fontset.
13601
13602 * font.h (font_make_object, font_match_p): Adjust prototypes.
13603
13604 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13605
13606 * font.c (font_make_object): New arg entity and pixelsize.
13607 (font_check_otf_features, font_check_otf): New functions.
13608 (font_match_p): Check :lang, :script, and :otf properties.
13609
13610 * xfont.c (xfont_open): Adjust it for the change of
13611 font_make_object.
13612 (xfont_text_extents): Fix initial setting of metrics.
13613
13614 * ftfont.c (struct ftfont_info): New member index, delete member
13615 fc_charset_idx. Make the member order compatible with struct
13616 xftfont_info.
13617 (fc_charset_table): Change charset names to registry names.
13618 (ftfont_pattern_entity): Delete the args registry and
13619 fc_charset_idx. Change the value of :font-entity property
13620 to (FONTNAME . INDEX). Always set :registry property to
13621 `iso10646-1'.
13622 (struct ftfont_cache_data): New struct.
13623 (ftfont_lookup_cache): New arg for_face.
13624 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13625 (ftfont_driver): Set the member otf_capability.
13626 (ftfont_get_charset): Adjust it for the change of
13627 fc_charset_table.
13628 (OTF_TAG_SYM): New macro.
13629 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13630 for the change of fc_charset_table.
13631 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13632 ftfont_pattern_entity. Add FC_INDEX to objset.
13633 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13634 and ftfont_pattern_entity.
13635 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13636 font_make_object, struct ftfont_info.
13637 (ftfont_has_char): Use ftfont_get_fc_charset.
13638 (ftfont_otf_features, ftfont_otf_capability): New functions.
13639 (ftfont_shape): Use ftfont_get_otf.
13640 (ftfont_text_extents): Fix initial setting of metrics.
13641
13642 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13643 member order compatible with struct ftfont_info.
13644 (xftfont_open): Add FC_CHARSET to the pattern. Set
13645 xftfont_info->ft_size. Don't unlock the face. Check BDF
13646 properties if appropriate.
13647 (xftfont_close): Unlock the face.
13648 (xftfont_anchor_point, xftfont_shape): Deleted.
13649 (syms_of_xftfont): Don't set members anchor_point and shape of
13650 xftfont_driver.
13651
13652 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13653 font_make_object.
13654
13655 * w32font.c (w32font_open): Adjust it for the change of
13656 font_make_object.
13657 (w32font_open_internal): Don't set properties of font_object here.
13658
13659 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13660
13661 * macfns.c (x_create_tip_frame):
13662 * w32fns.c (x_create_tip_frame):
13663 * xfns.c (x_create_tip_frame): Pass parameter argument to
13664 face-set-after-frame-default.
13665
13666 * xfaces.c (Finternal_merge_in_global_face): Save merged
13667 attributes for the default face back into the face vector.
13668
13669 2008-07-08 Andreas Schwab <schwab@suse.de>
13670
13671 * fontset.h: Declare fontset_from_font. Don't declare
13672 new_fontset_from_font and fontset_from_font_name.
13673 * xterm.c: Include "fontset.h".
13674 * Makefile.in (xterm.o): Update dependencies.
13675
13676 2008-07-08 Glenn Morris <rgm@gnu.org>
13677
13678 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13679 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13680
13681 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13682
13683 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13684 (x_set_frame_parameters): Don't bind it.
13685
13686 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13687
13688 * w32fns.c (map_w32_filename): Declare extern.
13689
13690 2008-07-07 Jason Rumney <jasonr@gnu.org>
13691
13692 * w32term.c (WS_EX_LAYERED): Define if not already.
13693
13694 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13695
13696 * xfaces.c (set_font_frame_param): Don't try to set the font
13697 parameter if it is still unspecified in the lface.
13698
13699 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13700
13701 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13702 face if it didn't already exist.
13703
13704 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13705
13706 2008-07-05 Andreas Schwab <schwab@suse.de>
13707
13708 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13709
13710 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13711
13712 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13713 word-wrapping.
13714 (IT_DISPLAYING_WHITESPACE): New macro.
13715 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13716 when word-wrapping. Simplify word-wrapping logic. Use correct
13717 pixel positions when saving copies of the iterator.
13718 (display_line): Use proper wrap point if the last character on a
13719 line was preceded by whitespace.
13720
13721 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13722
13723 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13724
13725 2008-07-04 Kenichi Handa <handa@m17n.org>
13726
13727 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13728
13729 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13730
13731 2008-07-02 Jason Rumney <jasonr@gnu.org>
13732
13733 * xfns.c (syms_of_xfns): Only define x-select-font when both
13734 HAVE_FREETYPE and USE_GTK.
13735
13736 * xdisp.c (next_element_from_display_vector): Move assignment out
13737 of if statement.
13738
13739 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13740
13741 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13742
13743 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13744 (syms_of_fileio): Initialize and export them.
13745 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13746
13747 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13748 (Fsystem_move_file_to_trash): New function.
13749 (syms_of_w32fns): Export it to lisp.
13750
13751 2008-07-01 Jason Rumney <jasonr@gnu.org>
13752
13753 * w32font.c (w32font_text_extents): Don't count overhang as part
13754 of width.
13755
13756 2008-06-30 Miles Bader <miles@gnu.org>
13757
13758 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13759 Add `avoid_cursor_p' field.
13760
13761 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13762 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13763 (append_glyph, append_composite_glyph, produce_image_glyph)
13764 (append_stretch_glyph): Initialize avoid_cursor_p.
13765 (get_it_property): Rename from `get_line_height_property'.
13766 (x_produce_glyphs): Use get_it_property.
13767 (handle_line_prefix, push_display_prop): New functions.
13768 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13769 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13770 New variables.
13771 (syms_of_xdisp): Initialize them.
13772
13773 2008-06-30 Kenichi Handa <handa@m17n.org>
13774
13775 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13776 XftDefaultSubstitute (they are called in XftFontMatch).
13777 (xftfont_open): Fix args to ftfont_font_format.
13778
13779 * ftfont.c (fc_charset_table): New member lang.
13780 (ftfont_resolve_generic_family): New arg pattern.
13781 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13782 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13783 (ftfont_open): Fix args to ftfont_font_format.
13784 (ftfont_font_format): New arg filename.
13785
13786 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13787
13788 * xfaces.c (Finternal_merge_in_global_face): If default face was
13789 modified, realize it again. Update the font face attribute.
13790
13791 2008-06-29 Jason Rumney <jasonr@gnu.org>
13792
13793 * w32term.c (x_set_frame_alpha): Fix logic.
13794
13795 2008-06-29 Kenichi Handa <handa@m17n.org>
13796
13797 * fontset.c (Finternal_char_font): Return font-object instead of
13798 font-name.
13799
13800 * composite.c (get_composition_id): Fix the width calculation for TAB.
13801
13802 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13803
13804 * indent.c (Fvertical_motion): Properly handle float column arg.
13805
13806 2008-06-28 Jason Rumney <jasonr@gnu.org>
13807
13808 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13809 (pfnSetLayeredWindowAttributes): New function pointer.
13810 (w32_initialize): Initialize it when supported.
13811 (x_set_frame_alpha): New function.
13812
13813 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13814 (w32_frame_parm_handlers): Set alpha handler.
13815
13816 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13817
13818 2008-06-27 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13821 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13822 (w32_to_x_charset, x_to_w32_charset)
13823 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13824 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13825 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13826 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13827 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13828 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13829 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13830 (Qw32_charset_unicode): Remove.
13831 (syms_of_w32fns): Update for above changes.
13832
13833 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13834 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13835 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13836 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13837 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13838 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13839 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13840 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13841 (syms_of_w32font): Update for above changes.
13842
13843 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13844
13845 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13846 removed #if.
13847 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13848
13849 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13850 Eli Zaretskii <eliz@gnu.org>
13851
13852 * makefile.w32-in (LOCAL_FLAGS):
13853 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13854
13855 * sysdep.c (_spawnlp, _getpid):
13856 Declare with explicit _cdecl instead of _CRTAPI1.
13857
13858 * editfns.c (Fget_internal_run_time):
13859 Check for WINDOWSNT with #ifdef, not #if.
13860
13861 2008-06-26 Jason Rumney <jasonr@gnu.org>
13862
13863 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13864
13865 * w32term.c (x_draw_glyph_string_foreground)
13866 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13867 Use FONT_HANDLE macro.
13868 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13869
13870 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13871 (uniscribe_encode_char): Use FONT_HANDLE macro.
13872
13873 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13874 (w32font_text_extents): Use precast w32_font.
13875 (w32font_close): Free cached metrics.
13876 (w32font_open_internal): Allocate space for name on stack.
13877
13878 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13879
13880 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13881
13882 2008-06-26 Jason Rumney <jasonr@gnu.org>
13883
13884 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13885 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13886
13887 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13888
13889 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13890
13891 2008-06-26 Jason Rumney <jasonr@gnu.org>
13892
13893 * w32bdf.c, w32bdf.h: Remove obsolete files.
13894
13895 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13896
13897 * w32gui.h: Don't include w32bdf.h.
13898 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13899 Remove obsolete font support.
13900
13901 * w32font.h (struct w32font_info): Remove compat_w32_font.
13902 Add hfont member.
13903 (FONT_COMPAT): Remove obsolete macro.
13904
13905 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13906 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13907 (w32font_open_internal): Remove compat code. Set new hfont member.
13908 (Fx_select_font): Use new hfont member.
13909
13910 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13911 (uniscribe_encode_char): Use new hfont member.
13912
13913 * w32term.c (x_draw_glyph_string_foreground)
13914 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13915 (x_draw_glyph_string): Use metrics in w32font_info.
13916
13917 2008-06-26 Kenichi Handa <handa@m17n.org>
13918
13919 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13920
13921 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13922
13923 * unexnext.c:
13924 * m/ews4800.h:
13925 * m/hp9000s300.h:
13926 * m/ibm370aix.h:
13927 * m/mips-siemens.h:
13928 * m/ncr386.h:
13929 * m/next.h:
13930 * m/pmax.h:
13931 * m/powerpcle.h:
13932 * m/tandem-s2.h:
13933 * s/386bsd.h:
13934 * s/bsd386.h:
13935 * s/bsd4-1.h:
13936 * s/bsd4-2.h:
13937 * s/bsdos2-1.h:
13938 * s/bsdos2.h:
13939 * s/bsdos3.h:
13940 * s/bsdos4.h:
13941 * s/nextstep.h:
13942 * s/ultrix4-3.h:
13943 * s/usg5-0.h:
13944 * s/usg5-2-2.h:
13945 * s/usg5-2.h:
13946 * s/usg5-4-3.h:
13947 * s/ux4800.h:
13948 * s/uxpds.h:
13949 * s/uxpv.h: Remove support for obsolete systems.
13950 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13951 Remove, insert contents in s/hpux10-20.h.
13952 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13953 Remove, insert contents in s/aix4-2.h.
13954 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13955 * s/bsd4-3.h: Rename to ...
13956 * s/bsd-common.h: ... this.
13957 * data.c:
13958 * doc.c:
13959 * ecrt0.c:
13960 * emacs.c:
13961 * fileio.c:
13962 * floatfns.c:
13963 * keyboard.c:
13964 * mem-limits.h:
13965 * print.c:
13966 * process.c:
13967 * sysdep.c:
13968 * syssignal.h:
13969 * systty.h:
13970 * syswait.h:
13971 * term.c:
13972 * unexec.c:
13973 * unexelf.c:
13974 * unexhp9k800.c:
13975 * m/hp800.h:
13976 * m/ibmrs6000.h:
13977 * m/mips.h:
13978 * m/vax.h:
13979 * s/darwin.h:
13980 * s/freebsd.h:
13981 * s/gnu.h:
13982 * s/ms-w32.h:
13983 * s/msdos.h:
13984 * s/netbsd.h:
13985 * s/template.h: Remove references to obsolete variables.
13986
13987 * Makefile.in: Add dependencies for all unexec files.
13988 (admindir): Remove unused variable.
13989 (UNEXEC_SRC): Remove references.
13990
13991 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13992
13993 * xfns.c (x_default_font_parameter): If Xft is available, first
13994 try Monospace-12 for the default font.
13995
13996 2008-06-25 Jason Rumney <jasonr@gnu.org>
13997
13998 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13999
14000 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14001
14002 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14003
14004 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14005
14006 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
14007
14008 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14009 <scroll-conservatively>: Fix typo in docstring.
14010
14011 * xselect.c (Fx_send_client_event): Doc fix.
14012
14013 2008-06-25 Kenichi Handa <handa@m17n.org>
14014
14015 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14016
14017 * font.c (font_parse_fcname): Remove unused variables.
14018 (font_sort_entites): Delete the arg SPEC. Caller changed.
14019 Fix for the case of ! best_only.
14020 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14021
14022 * lisp.h (Fstring_to_unibyte): EXFUN it.
14023
14024 * character.h (str_to_unibyte): Extern it.
14025
14026 * character.c (str_to_unibyte): New function.
14027
14028 * fns.c (Fstring_to_unibyte): New function.
14029 (syms_of_fns): Defsubr it.
14030
14031 2008-06-24 Kenichi Handa <handa@m17n.org>
14032
14033 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14034 DPI too.
14035 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14036
14037 2008-06-24 Andreas Schwab <schwab@suse.de>
14038
14039 * Makefile.in (${lispsource}loaddefs.el): Rename from
14040 ../lisp/loaddefs.el.
14041 (bootstrap-clean): Do what distclean does but don't remove
14042 Makefile.
14043 (distclean): Depend on bootstrap-clean and remove Makefile.
14044
14045 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
14046
14047 * buffer.h (struct buffer): New member word_wrap.
14048
14049 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14050 word-wrap.
14051 (init_buffer_once): Initialize them.
14052
14053 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14054 line_wrap enum possessing three possible values.
14055
14056 * termopts.h: Replace truncate_partial_width_windows with
14057 Vtruncate_partial_width_windows.
14058
14059 * dispnew.c (direct_output_for_insert): Avoid direct output when
14060 inserting a space with word wrap on.
14061
14062 * indent.c (compute_motion): Obey integer values of
14063 truncate-partial-width-windows.
14064
14065 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14066 replacing truncate_partial_width_windows.
14067 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14068 truncate only if the window width is below that integer.
14069 (start_display, resize_mini_window, produce_stretch_glyph)
14070 (display_string, move_it_in_display_line_to): Use line_wrap.
14071 (back_to_previous_visible_line_start, reseat_1): Reset
14072 string_from_display_prop_p.
14073 (display_line): Extend default face to end of line when wrapping.
14074
14075 2008-06-24 Kim F. Storm <storm@cua.dk>
14076
14077 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14078 to wrap continued lines at word boundaries.
14079
14080 2008-06-24 Jason Rumney <jasonr@gnu.org>
14081
14082 * font.c (Ffont_face_attributes): Multiply pixel size before point
14083 conversion to avoid multiplying rounding error.
14084
14085 2008-06-23 Jason Rumney <jasonr@gnu.org>
14086
14087 * w32term.c (x_draw_glyph_string_background)
14088 (x_draw_glyph_string): Remove old bdf font code.
14089
14090 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14091
14092 2008-06-22 Kenichi Handa <handa@m17n.org>
14093
14094 * font.c (font_find_for_lface): Try the adstyle specified in
14095 the property of LFACE_FONT of LFACE (if any).
14096
14097 2008-06-21 Seiji Zenitani <zenitani@mac.com>
14098 Ryo Yoshitake <ryo@shiftmode.net>
14099
14100 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14101
14102 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14103
14104 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14105 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14106 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14107 (witness-emacs): Remove.
14108 (lisp, shortlisp): Move loaddefs.el earlier.
14109 (mostlyclean): Forget about witness-emacs.
14110
14111 2008-06-22 Glenn Morris <rgm@gnu.org>
14112
14113 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14114 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14115
14116 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14117
14118 * Makefile.in (PRECOMP): Remove.
14119 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14120 (witness-emacs): Run `compile-first'.
14121 (.el.elc): Use the new compile-onefile target.
14122
14123 2008-06-21 Kenichi Handa <handa@m17n.org>
14124
14125 * xftfont.c (xftfont_open): Handle QCembolden only when
14126 FC_EMBOLDEN is defined.
14127
14128 2008-06-21 Andreas Schwab <schwab@suse.de>
14129
14130 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14131 (.el.elc): Likewise.
14132
14133 2008-06-21 Miles Bader <miles@gnu.org>
14134
14135 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14136 build dir, not the lisp source dir.
14137
14138 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14139
14140 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14141 (bootstrapclean): Remove.
14142 (.el.elc): New rule.
14143 (PRECOMP): New var.
14144 (../lisp/subdirs.el): Remove.
14145 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14146 (witness-emacs): New target.
14147 (mostlyclean): Remove witness-emacs as well.
14148 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14149 Add witness-emacs dependency.
14150
14151 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
14152
14153 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14154 defined by the font.
14155
14156 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14157
14158 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14159 (bootstrap-clean): New target that keeps TAGS around.
14160 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14161 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14162
14163 2008-06-20 Jason Rumney <jasonr@gnu.org>
14164
14165 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14166 Remove obsolete font code.
14167
14168 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14169 to determine language support.
14170
14171 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14172
14173 * sysdep.c (cfsetspeed): New fun extracted from the code.
14174 (cfmakeraw): Move before first use.
14175
14176 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14177
14178 * sysdep.c (cfmakeraw): Provide fallback implementation.
14179 (serial_configure): Provide fallback implementation of cfsetspeed.
14180
14181 2008-06-20 Kenichi Handa <handa@m17n.org>
14182
14183 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14184 the pattern.
14185
14186 * fontset.c (fontset_from_font): Copy font_spec before changing
14187 the elements.
14188
14189 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14190
14191 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14192
14193 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14194 for explicit `font' parameters.
14195
14196 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14197
14198 2008-06-19 Kenichi Handa <handa@m17n.org>
14199
14200 * frame.c: Include <ctype.h>.
14201 (x_set_font_backend): Allow spacing characters in the X resource
14202 for FontBackend.
14203
14204 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14205
14206 * w32fns.c, xfns.c (Qfont_param): New var.
14207 (syms_of_w32fns): Initialize it.
14208 (x_default_font_parameter): Record explicit `font' into
14209 `font-parameter'.
14210
14211 2008-06-18 Kenichi Handa <handa@m17n.org>
14212
14213 * font.c (font_parse_xlfd): Fix previous change.
14214 (font_parse_fcname): Don't use :fc-unknown-spec.
14215 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14216 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14217 (font_add_log): Prepend the driver name to the resulting fonts.
14218
14219 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14220 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14221 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14222
14223 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14224 (QCembolden): New variables.
14225 (syms_of_xftfont): DEFSYM them.
14226 (xftfont_open): Call XftFontMatch. Don't trust the result of
14227 XftTextExtents8 if the pixel_size is less than 5.
14228
14229 2008-06-18 Andreas Schwab <schwab@suse.de>
14230
14231 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14232 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14233
14234 2008-06-18 Jason Rumney <jasonr@gnu.org>
14235
14236 * w32font.c (w32font_list, w32font_match): Add logging.
14237
14238 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14239
14240 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14241
14242 * font.c (font_parse_fcname): Store divider characters for
14243 unknown-spec list. For known key symbols, intern using correct
14244 symbol name.
14245
14246 2008-06-17 Kenichi Handa <handa@m17n.org>
14247
14248 * xfaces.c (realize_default_face): If the frame is not on window
14249 system, set the fontset of face to nil.
14250
14251 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14252
14253 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14254
14255 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14256
14257 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14258 (build_font_name_from_vector): Delete externs.
14259
14260 * xfaces.c (struct font_name): Don't declare.
14261
14262 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14263
14264 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14265
14266 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14267
14268 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14269
14270 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14271
14272 * font.c (Ffont_spec): Fix usage in docstring.
14273 (Ffont_face_attributes): Doc fix.
14274
14275 2008-06-16 Andreas Schwab <schwab@suse.de>
14276
14277 * font.c (Ffont_face_attributes): Fix definition.
14278
14279 2008-06-16 Jason Rumney <jasonr@gnu.org>
14280
14281 * font.h (font_style_symbolic_from_value): Remove.
14282
14283 * font.c (font_style_symbolic_from_value): Remove.
14284 (font_style_symbolic): Revert to pre 2008-06-13 version.
14285
14286 * w32font.c (w32_to_fc_weight): New function.
14287 (w32font_full_name, logfont_to_fcname): Use it.
14288
14289 2008-06-16 Kenichi Handa <handa@m17n.org>
14290
14291 * font.c (font_check_object): Delete it.
14292 (font_clear_cache): Check if a font-object is alive.
14293 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14294 font-object to nil.
14295 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14296 (font_at): Don't call font_check_object.
14297 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14298
14299 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14300
14301 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14302
14303 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14304
14305 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14306
14307 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14308
14309 * font.c (font_parse_fcname): Only one decimal point.
14310 (font_unparse_fcname): Handle data in family and foundry indices
14311 as symbols, not strings.
14312 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14313
14314 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14315
14316 * font.h (font_unparse_gtkname): Add prototype.
14317
14318 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14319
14320 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14321
14322 2008-06-15 Andreas Schwab <schwab@suse.de>
14323
14324 * font.c (font_update_drivers): Fix crash when no drivers match.
14325
14326 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14327
14328 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14329 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14330
14331 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14332
14333 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14334
14335 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14336
14337 * process.c (Fserial_process_configure, Fprocess_send_eof):
14338 Use EQ to compare Lisp_Objects.
14339
14340 2008-06-13 Jason Rumney <jasonr@gnu.org>
14341
14342 * w32fns.c (Fw32_select_font): Remove old font API function.
14343
14344 * w32font.c (logfont_to_fcname): New function.
14345 (Fx_select_font): New font dialog function compatible with
14346 GTK/fontconfig version.
14347
14348 * font.c (font_style_symbolic_from_value): New function.
14349 (font_style_symbolic): Use it.
14350
14351 * font.h (font_style_symbolic_from_value): Declare new function.
14352
14353 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
14354
14355 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14356 <font-width-table>: Fix typos in docstrings.
14357
14358 2008-06-13 Daniel Engeler <engeler@gmail.com>
14359
14360 These changes add serial port access.
14361 * process.c: Add HAVE_SERIAL.
14362 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14363 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14364 (list_processes_1, select_wrapper, Fstop_process)
14365 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14366 (status_notify): Modify to handle serial processes.
14367 [HAVE_SERIAL] (Fserial_process_configure)
14368 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14369 New functions.
14370 * process.h (struct Lisp_Process): Add `type'.
14371 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14372 New functions.
14373 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14374 serial ports.
14375 (serial_open, serial_configure): New functions.
14376 * w32.h: Add FILE_SERIAL.
14377 (struct _child_process): Add ovl_read, ovl_write.
14378
14379 2008-06-13 Kenichi Handa <handa@m17n.org>
14380
14381 * dispextern.h (enum lface_attribute_index): New member
14382 LFACE_FOUNDRY_INDEX.
14383
14384 * font.c (font_score): Delete arg alternate_families. Check only
14385 weight, slant, width, and size. Ignore the difference of alias
14386 style symbols.
14387 (font_sort_entites): Adjust for the above change. Reflect the
14388 order of font-driver to scores.
14389 (font_list_entities): Don't check alternate_familes here.
14390 (font_clear_prop): Handle foundry.
14391 (font_update_lface): Don't parse "foundry-family" form here.
14392 Handle FONT_FOUNDRY_INDEX.
14393 (font_find_for_lface): Likewise. Handle alternate families here.
14394 If registry is nil, try iso8859-1 and ascii-0.
14395 (font_open_for_lface): Pay attention to size in ENTITY.
14396 (font_open_by_name): Simplify by calling font_load_for_lface.
14397 (free_font_driver_list): Delete it.
14398 (font_update_drivers): Preserve the order of backends.
14399 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14400 of font_score and font_sort_entites.
14401 (font_update_sort_order): Likewise.
14402
14403 * xfaces.c (LFACE_FOUNDRY): New macro.
14404 (check_lface_attrs): Check foundry.
14405 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14406 (merge_face_vectors): Check foundry.
14407 (merge_face_ref): Likewise.
14408 (Finternal_set_lisp_face_attribute): Likewise.
14409 (x_update_menu_appearance): Likewise.
14410 (Finternal_get_lisp_face_attribute): Likewise.
14411 (lface_hash): Likewise.
14412 (lface_same_font_attributes_p): Likewise.
14413 (x_supports_face_attributes_p): Likewise.
14414 (tty_supports_face_attributes_p): Likewise.
14415 (Finternal_set_alternative_font_family_alist): Intern strings.
14416 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14417 (realize_default_face): Set LFACE_FOUNDRY (lface).
14418
14419 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14420 font-driver at first.
14421
14422 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14423
14424 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14425
14426 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14427
14428 2008-06-12 Jim Meyering <meyering@redhat.com>
14429
14430 Make unexec_free handle NULL the same way free does.
14431 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14432
14433 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14434
14435 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14436 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14437 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14438 (WEAK_ALIAS): Simplify.
14439 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14440 when searching a unibyte buffer.
14441
14442 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
14443
14444 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14445
14446 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
14447
14448 * w32font.c: Include ctype.h.
14449
14450 2008-06-11 Jason Rumney <jasonr@gnu.org>
14451
14452 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14453 misreported as space.
14454 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14455 as aliases for registry iso10646-1.
14456
14457 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14458
14459 * buffer.c (clone_per_buffer_values): Skip `name'.
14460
14461 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14462
14463 * font.c (font_parse_fcname): Fix last change; accept decimal
14464 points in font size.
14465
14466 2008-06-10 Jason Rumney <jasonr@gnu.org>
14467
14468 * w32uniscribe.c (add_opentype_font_name_to_list):
14469 Skip non unicode fonts.
14470
14471 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14472
14473 * xfns.c (Fx_font_dialog): New function.
14474
14475 * gtkutil.c (xg_dialog_response_cb): Rename from
14476 xg_file_response_callback.
14477 (pop_down_dialog): Rename from pop_down_file_dialog.
14478 (xg_get_file_name): Callers changed.
14479 (xg_get_font_name): New function.
14480
14481 * gtkutil.h (xg_get_font_name): Insert prototype.
14482
14483 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14484
14485 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14486 x_underline_minimum_display_offset.
14487 (syms_of_xdisp): Declare it here rather than in xterm.c.
14488 * dispextern.h (underline_minimum_offset): Declare it.
14489 * w32term.c (x_draw_glyph_string): Use it.
14490 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14491 (syms_of_xterm): Don't declare it any more.
14492 (x_draw_glyph_string): Adjust to the new name.
14493
14494 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14495
14496 * xterm.c (x_underline_minimum_display_offset): New var.
14497 (x_draw_glyph_string): Use it.
14498 (syms_of_xterm): Declare it.
14499
14500 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14501
14502 * font.c (font_parse_fcname): Accept GTK-style font names too.
14503
14504 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14505
14506 * dired.c (file_name_completion): Don't return t if the match is exact
14507 but with different capitalization.
14508 * minibuf.c (Ftry_completion): Simplify.
14509
14510 * window.c (Vwindow_point_insertion_type): New var.
14511 (set_window_buffer): Use it.
14512 (syms_of_window): Init and export it to Lisp.
14513
14514 2008-06-10 Kenichi Handa <handa@m17n.org>
14515
14516 * font.h (font_intern_prop): Prototype adjusted.
14517
14518 * font.c (font_intern_prop): New arg force_symbol.
14519 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14520 Adjust for the change of font_intern_prop.
14521
14522 * ftfont.c (ftfont_pattern_entity):
14523 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14524 (w32_registry):
14525 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14526 the change of font_intern_prop.
14527
14528 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14529
14530 * w32menu.c (digest_single_submenu): Declare extern.
14531
14532 2008-06-09 Jason Rumney <jasonr@gnu.org>
14533
14534 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14535
14536 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14537 (parse_single_submenu): Remove.
14538 (digest_single_submenu): Remove.
14539 (syms_of_w32menu): Don't initialise variables that have moved
14540 to menu.c.
14541 (set_frame_menubar): Sync with version in xmenu.c.
14542 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14543
14544 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14545 Make static again.
14546
14547 2008-06-09 Jason Rumney <jasonr@gnu.org>
14548
14549 Changes to w32 files related to the move of common menu code
14550 to menu.c on 2008-06-08 by Chong Yidong.
14551
14552 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14553 defs to w32gui.h.
14554 (single_keymap_panes, push_menu_item, push_menu_pane):
14555 Make globally visible.
14556
14557 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14558 (local_free, malloc_widget_value, free_widget_value)
14559 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14560 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14561 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14562 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14563 (menu_items, menu_items_allocated, menu_items_used)
14564 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14565 (init_menu_items, finish_menu_items, discard_menu_items)
14566 (grow_menu_items, push_submenu_start, push_submenu_end)
14567 (push_left_right_boundary, push_menu_pane, push_menu_item)
14568 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14569 (free_menubar_widget_tree_value, parse_single_submenu)
14570 (update_submenu_strings): Remove functions.
14571 (xmalloc_widget_value): Remove and declare extern.
14572
14573 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14574 (OBJ1): Build it.
14575
14576 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14577 (local_heap, local_alloc, local_free, malloc_widget_value)
14578 (free_widget_value): Define here.
14579
14580 2008-06-09 Kenichi Handa <handa@m17n.org>
14581
14582 * font.h (Qascii_0): Extern it.
14583
14584 * font.c (Qascii_0): New variable.
14585 (syms_of_font): DEFSYM it.
14586 (font_open_by_name): If the registry "iso8859-1" fails, try also
14587 "ascii-0".
14588
14589 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14590
14591 2008-06-08 Kenichi Handa <handa@m17n.org>
14592
14593 * .gdbinit (xfont): New command.
14594
14595 2008-06-08 Andreas Schwab <schwab@suse.de>
14596
14597 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14598 * Makefile.in (menu.o): Update dependencies.
14599
14600 * Makefile.in (obj): Always add menu.o.
14601 * emacs.c (main): Always call syms_of_menu.
14602 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14603
14604 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14605
14606 * Makefile.in: Compile menu.c.
14607
14608 * lisp.h: Declare syms_of_menu.
14609
14610 * emacs.c (main): Call syms_of_menu.
14611
14612 * keyboard.h: Relocate platform-independent menu definitions from
14613 xmenu.c.
14614
14615 * menu.c: New file. Relocate platform-independent menu
14616 definitions from xmenu.c. Suggested by Adrian Robert.
14617
14618 * xmenu.c: Remove platform-independent menu definitions.
14619 (menu_items, menu_items_inuse, menu_items_allocated)
14620 (menu_items_used, menu_items_n_panes)
14621 (menu_items_submenu_depth): Move to keyboard.h.
14622 (init_menu_items, finish_menu_items, unuse_menu_items)
14623 (discard_menu_items, restore_menu_items, save_menu_items)
14624 (grow_menu_items, push_submenu_start, push_submenu_end)
14625 (push_left_right_boundary, push_menu_pane, push_menu_item)
14626 (keymap_panes, single_keymap_panes, single_menu_item)
14627 (list_of_panes, list_of_items, find_and_call_menu_selection)
14628 (xmalloc_widget_value, free_menubar_widget_value_tree)
14629 (parse_single_submenu, digest_single_submenu)
14630 (update_submenu_strings): Move to menu.c.
14631
14632 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14633
14634 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14635
14636 2008-06-06 Miles Bader <miles@gnu.org>
14637
14638 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14639 face, not frame default.
14640
14641 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14642
14643 * window.c (pop_up_windows, pop_up_frames)
14644 (display_buffer_reuse_frames, Vpop_up_frame_function)
14645 (Vdisplay_buffer_function, Veven_window_heights)
14646 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14647 (Vspecial_display_function, Vsame_window_buffer_names)
14648 (Vsame_window_regexps, split_height_threshold)
14649 (Vsplit_window_preferred_function): Move those vars to window.el.
14650 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14651 (Fdisplay_buffer): Move those functions to window.el.
14652 (syms_of_window): Remove corresponding declarations.
14653 (display_buffer): New function.
14654 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14655 * dispnew.c (Flast_nonminibuf_frame): New function.
14656 * buffer.c (Fpop_to_buffer): Move to window.el.
14657
14658 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14659
14660 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14661
14662 2008-06-05 Kenichi Handa <handa@m17n.org>
14663
14664 * coding.c (detect_coding): Fix previous change.
14665 (detect_coding_system): Likewise.
14666
14667 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14670
14671 * keymap.c (Vminibuffer_local_filename_must_match_map):
14672 Rename from Vminibuffer_local_must_match_filename_map.
14673 (syms_of_keymap):
14674 * minibuf.c (Fcompleting_read): Adjust accordingly.
14675 * commands.h: Rename declaration as well.
14676
14677 2008-06-05 Kenichi Handa <handa@m17n.org>
14678
14679 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14680 family name.
14681 (Ffont_put): Likewise.
14682
14683 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14684 current font-spec.
14685
14686 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14687 is unspecified.
14688
14689 * xfaces.c (realize_x_face): If the font-related face attributes
14690 are the same as those of default face, realize a new fontset from
14691 default->fontset.
14692 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14693
14694 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14695
14696 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14697 (move_it_in_display_line): New wrapper.
14698
14699 * window.c (window_scroll_pixel_based_preserve_x)
14700 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14701 (window_scroll_pixel_based, window_scroll_line_based):
14702 Use them to preserve column positions.
14703 (syms_of_window): Initialize them.
14704
14705 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14706 (HPOS . VPOS) pair.
14707
14708 * dispextern.h (move_it_in_display_line): Declare.
14709
14710 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14711
14712 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14713 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14714 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14715
14716 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14717
14718 * window.c (Fset_window_parameter): Doc fix.
14719 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14720
14721 2008-06-04 Joakim Verona <joakim@verona.se>
14722
14723 * window.h (struct window): Add new member window_parameters.
14724
14725 * window.c (Fwindow_parameters, Fwindow_parameter)
14726 (Fset_window_parameter): New defuns.
14727 (syms_of_window): Defsubr the new defuns.
14728 (make_window): Initialize window_parameters to nil.
14729
14730 2008-06-04 John Paul Wallington <jpw@pobox.com>
14731
14732 * eval.c (Fdefmacro): Doc fix.
14733
14734 2008-06-04 Kenichi Handa <handa@m17n.org>
14735
14736 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14737 Be sure to call setup_coding_system when we find a proper coding system.
14738 (detect_coding_system): Fix handling of coding->head_ascii.
14739
14740 2008-06-03 Andreas Schwab <schwab@suse.de>
14741
14742 * font.c (font_prop_validate_spacing): Fix last change.
14743
14744 2008-06-03 Kenichi Handa <handa@m17n.org>
14745
14746 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14747 (font_parse_fcname): Fix handling of unknown key.
14748
14749 * xfont.c (xfont_list): Try an alias.
14750
14751 * charset.c (char_charset): Return NULL if the arg charset_list is
14752 specified and C doesn't belong to any of them.
14753
14754 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14755
14756 * font.c (font_pixel_size): Don't take cdr of an integer.
14757
14758 2008-06-02 Jim Meyering <meyering@redhat.com>
14759
14760 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14761 * alloc.c (xfree): Return right away for a NULL arg.
14762 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14763 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14764 * mac.c (create_apple_event_from_event_ref): Likewise.
14765 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14766 Likewise.
14767 * doprnt.c (doprnt1): Likewise.
14768 * frame.c (frame): Likewise.
14769 * keyboard.c (wipe_kboard): Likewise.
14770 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14771 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14772 * term.c (tty_default_color_capabilities, maybe_fatal)
14773 (delete_tty): Likewise.
14774 * w16select.c (string): Likewise.
14775 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14776 * w32bdf.c (w32_free_bdf_font): Likewise.
14777 * w32fns.c (w32_unload_font): Likewise.
14778 * w32font.c (w32font_close): Likewise.
14779 * window.c (size_window): Likewise.
14780 * xselect.c (receive_incremental_selection): Likewise.
14781 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14782 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14783 * w32.c (stat): Likewise.
14784
14785 Remove useless if-before-free tests.
14786 * editfns.c (Fset_time_zone_rule): Likewise.
14787 * lread.c (nosuffix): Likewise.
14788 * ralloc.c (get_bloc): Likewise.
14789 * regex.c (reg_free): Likewise.
14790 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14791 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14792 * xsmfns.c (smc_save_yourself_CB): Likewise.
14793
14794 2008-06-02 Kenichi Handa <handa@m17n.org>
14795
14796 * font.c (font_find_for_lface): Handle float font size.
14797 (font_open_for_lface): Likewise.
14798
14799 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14800 comparing the properties.
14801
14802 2008-06-01 Jason Rumney <jasonr@gnu.org>
14803
14804 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14805 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14806 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14807 Don't add empty script list.
14808 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14809
14810 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14811
14812 * Makefile.in (dot, dotdot): Remove, update users.
14813 ".." has been used elsewhere in the file for a long time.
14814 (LIBXT_STATIC): Remove conditional based on unused variable.
14815
14816 2008-06-01 Miles Bader <miles@gnu.org>
14817
14818 * xfaces.c (Vface_remapping_alist): New variable.
14819 (syms_of_xfaces): Initialize it.
14820 (enum named_merge_point_kind): New type.
14821 (struct named_merge_point): Add `named_merge_point_kind' field.
14822 (push_named_merge_point): Make cycle detection respect different
14823 named-merge-point kinds.
14824 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14825 Remove face-name alias resolution.
14826 (lface_from_face_name): New definition using
14827 `lface_from_face_name_no_resolve'.
14828 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14829 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14830 (get_lface_attributes): New definition that layers face-remapping on
14831 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14832 (lookup_basic_face): New function.
14833 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14834 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14835 `get_lface_attributes'.
14836 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14837 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14838 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14839
14840 * xdisp.c (init_iterator): Pass base_face_id through
14841 `lookup_basic_face' when we actually use it as a face-id.
14842 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14843 DEFAULT_FACE_ID.
14844
14845 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14846 lookup the initial face-id.
14847
14848 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14849
14850 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14851
14852 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14853 (Fremove_text_properties): Fix typos in docstrings.
14854
14855 2008-05-31 Kenichi Handa <handa@m17n.org>
14856
14857 * font.c (font_list_entities): Fix the car part of data to be
14858 stored in the cache.
14859
14860 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14861
14862 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14863
14864 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14865 Add a `test' argument so another predicate than `equal' can be used.
14866 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14867 (map_char_table): Remove unused vars `c' and `i'.
14868 * lisp.h (Foptimize_char_table): Adjust declaration.
14869 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14870
14871 2008-05-30 Kenichi Handa <handa@m17n.org>
14872
14873 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14874 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14875 defined.
14876
14877 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14878
14879 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14880 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14881 frame-local settings for the same variable.
14882
14883 2008-05-30 Kenichi Handa <handa@m17n.org>
14884
14885 * fontset.c (Ffont_info): Move to font.c.
14886 (syms_of_fontset): Delete defsubr of Sfont_info.
14887
14888 * font.c (font_style_to_value, font_score): Delete casting of the
14889 args to xstcasecmp.
14890 (register_font_driver): Increment num_font_drivers only when
14891 registering the driver globally.
14892 (Ffont_info): Move from fontset.c. Handle a font object too.
14893 (syms_of_font): Defsubr Sfont_info.
14894
14895 2008-05-29 Kenichi Handa <handa@m17n.org>
14896
14897 * coding.h (enum define_coding_utf8_arg_index): New enum.
14898 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14899 coding_attr_utf_bom.
14900 (enum utf_bom_type): Rename from utf_16_bom_type.
14901 (struct utf_16_spec): Adjust for the above change.
14902 (struct coding_system): Add utf_8_bom in `spec' union.
14903
14904 * coding.c (CODING_UTF_8_BOM): New macro.
14905 (enum coding_category): Delete coding_category_utf_8, add
14906 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14907 coding_category_utf_8_sig.
14908 (CATEGORY_MASK_UTF_8): Delete it.
14909 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14910 (CATEGORY_MASK_UTF_8_SIG): New macros.
14911 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14912 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14913 CATEGORY_MASK_UTF_8_SIG.
14914 (CATEGORY_MASK_UTF_8): New macro.
14915 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14916 (detect_coding_utf_8): Check BOM.
14917 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14918 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14919 (encode_coding_utf_16): Likewise.
14920 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14921 (detect_coding, detect_coding_system): Handle utf-8-auto.
14922 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14923 (syms_of_coding): Fix setting up of Vcoding_category_table.
14924
14925 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14926
14927 * process.c (Faccept_process_output): If `millisec' is non-nil,
14928 `seconds' default to 0.
14929 (wait_reading_process_output): Also return non-nil if we read output
14930 from a non-running process.
14931
14932 2008-05-29 Jason Rumney <jasonr@gnu.org>
14933
14934 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14935 `raster' specified.
14936 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14937 in the uniscribe backend, but disallow any font that has no
14938 unicode subrange support.
14939
14940 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14941
14942 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14943 Fix typos in docstrings.
14944
14945 2008-05-29 Kenichi Handa <handa@m17n.org>
14946
14947 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14948 (Fx_family_fonts): Set frame correctly.
14949
14950 2008-05-28 Jason Rumney <jasonr@gnu.org>
14951
14952 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14953
14954 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14955
14956 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14957 calling build_annotations.
14958
14959 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14960
14961 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14962 (Fencode_coding_string):
14963 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14964 <latin-extra-code-table>: Fix typos in docstrings.
14965 (syms_of_coding) <coding-system-alist>: Doc fix.
14966 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14967
14968 2008-05-28 Kenichi Handa <handa@m17n.org>
14969
14970 * fontset.c (Ffont_info): Don't call font_close_object.
14971
14972 * font.c (font_parse_family_registry): Use Ffont_put to validate
14973 foundry and family.
14974 (font_delete_unmatched): Don't check spacing.
14975 (font_list_entities): Add spacing to the spec to list fonts.
14976
14977 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14978 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14979
14980 * coding.c (encode_coding_raw_text): Fix previous change.
14981 (encode_coding_object): When the dst_object is a buffer and is
14982 different from src_object, move gap to PT.
14983
14984 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14985
14986 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14987
14988 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14989
14990 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14991 all branches. Compute it differently.
14992
14993 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14994
14995 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14996
14997 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14998 into "else if () ... else ...".
14999
15000 2008-05-27 Jason Rumney <jasonr@gnu.org>
15001
15002 * w32font.c (w32font_open_internal): Determine if glyph indices
15003 are likely to work here.
15004
15005 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15006
15007 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15008 draw overlap glyphs with appropriate highlighting.
15009
15010 2008-05-27 Kenichi Handa <handa@m17n.org>
15011
15012 * xfont.c (xfont_open): Fix calculation of font->average_width.
15013
15014 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15015
15016 * casefiddle.c (casify_object): Try to guess better whether the
15017 argument is a byte or a char.
15018
15019 2008-05-26 Andreas Schwab <schwab@suse.de>
15020
15021 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15022 Always send multiples of format size.
15023
15024 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15025
15026 2008-05-26 Jason Rumney <jasonr@gnu.org>
15027
15028 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15029 (compute_metrics): Don't set failure if we just cleared the cache.
15030 (w32_weight_table): Remove unused variable.
15031 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15032 backwards compatibility.
15033
15034 2008-05-25 Kenichi Handa <handa@m17n.org>
15035
15036 * w32term.c (x_draw_glyph_string):
15037 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15038
15039 * xfaces.c: Delete unused function prototypes.
15040 (xstrlwr, font_frame): Delete them.
15041 (clear_face_cache): Delete unused variable.
15042
15043 * xftfont.c (xftfont_open): Delete unused variable.
15044 If underline_thickness is not 1, adjust underline_position.
15045
15046 * ftxfont.c (ftxfont_open): Delete unused variable.
15047
15048 * fontset.c (face_for_char): Optimize for the case of no charset
15049 property.
15050
15051 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15052 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15053 (otf_open, font_otf_capability, generate_otf_features)
15054 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15055 Comment out by surrounding "#if 0" and "#endif" for the moment.
15056 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15057 (syms_of_font): Codes for accessing above commented out.
15058
15059 2008-05-24 Eli Zaretskii <eliz@gnu.org>
15060
15061 * w32proc.c: Include dispextern.h.
15062
15063 * w32.c: Include dispextern.h.
15064
15065 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
15066
15067 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15068 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15069 Fix typos in docstrings.
15070
15071 2008-05-23 Jason Rumney <jasonr@gnu.org>
15072
15073 * xsmfns.c: Remove includes that are already included by config.h.
15074
15075 2008-05-23 Kenichi Handa <handa@m17n.org>
15076
15077 * charset.c (Qemacs, charset_emacs): New variables.
15078 (char_charset): Fix for non-Unicode characters.
15079 (syms_of_charset): Define charset_emacs.
15080
15081 * w32term.c (x_draw_glyph_string): Be sure to update
15082 s->underline_thickness and s->underline_position. Be sure to draw
15083 underline within the current line area.
15084
15085 * xterm.c (x_draw_glyph_string): Be sure to update
15086 s->underline_thickness and s->underline_position. Be sure to draw
15087 underline within the current line area.
15088
15089 * fontset.c: Delete unused variables and add casting for char *
15090 throughout the file.
15091 (fontset_font): Try the fallback fonts of the current fontset
15092 before consulting the default fontset.
15093
15094 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15095
15096 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15097
15098 2008-05-22 Jason Rumney <jasonr@gnu.org>
15099
15100 * font.c: Don't include strings.h.
15101
15102 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15103
15104 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15105 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15106 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15107 to call xstrcasecmp.
15108
15109 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15110
15111 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15112
15113 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15114
15115 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15116
15117 2008-05-22 Kenichi Handa <handa@m17n.org>
15118
15119 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15120
15121 * font.c (font_prop_validate_style): Adjust for the format
15122 change of font_style_table.
15123
15124 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15125 two args.
15126
15127 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15128 two args.
15129
15130 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15131
15132 * minibuf.c (keys_of_minibuf): Delete.
15133 * lisp.h (keys_of_minibuf): Delete.
15134 * emacs.c (main): Don't call keys_of_minibuf.
15135
15136 2008-05-22 Kenichi Handa <handa@m17n.org>
15137
15138 * ftfont.c (ftfont_resolve_generic_family): Rename from
15139 ftfont_list_generic_family. Return a single family for each
15140 generic family.
15141 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15142 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15143 Call font_add_log.
15144 (ftfont_match): Call font_add_log.
15145
15146 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15147 (FONT_DEBUG): Define it.
15148 (font_add_log): Extern it.
15149 (font_assert): Rename from xassert.
15150
15151 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15152 (xfont_list_family): Call font_add_log.
15153 (xfont_match): Likewise.
15154 (memq_no_quit): Delete.
15155
15156 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15157 call of Ffont_xlfd_name.
15158
15159 * xfaces.c (struct table_entry, slant_table, weight_table)
15160 (swidth_table): Move to font.c.
15161
15162 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15163 xassert are changed to font_assert. Delete many unused variables.
15164 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15165 New variables.
15166 (struct table_entry): Move from xfaces.c and modified.
15167 (weight_table, slant_table, width_table): Move from xfaces.c and
15168 contents adjusted for the change of struct table_entry.
15169 (font_style_to_value, font_style_symbolic): Adjust for the
15170 format change of font_style_table.
15171 (font_parse_family_registry): Don't overwrite existing foundry and
15172 family of font_spec.
15173 (font_score): Fix calculation of diff for sizes.
15174 (font_sort_entites): Call font_add_log.
15175 (font_delete_unmatched): Return a newly created list.
15176 (font_list_entities): Fix previous change. Call font_add_log.
15177 (font_matching_entity, font_open_entity, font_close_entity):
15178 Call font_add_log.
15179 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15180 (Finternal_set_font_style_table): Delete.
15181 (BUILD_STYLE_TABLE): New macro.
15182 (build_style_table): New function.
15183 (Vfont_log, font_log_env_checked): New variables.
15184 (font_add_log): New function.
15185 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15186 Declare Lisp variables "font-weight-table", "font-slant-table",
15187 "font-width-table", and "font-log". Initialize font_style_table.
15188
15189 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15190
15191 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15192
15193 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15194 Ryo Yoshitake <ryo@shiftmode.net>
15195
15196 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15197 (Vframe_alpha_lower_limit): New variable.
15198 (x_set_alpha): New function.
15199
15200 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15201
15202 * xfns.c (x-create-frame, Qalpha):
15203 Initialize the frame parameter `alpha'.
15204 * xterm.c (OPAQUE, OPACITY): New.
15205 (x_set_frame_alpha): New function.
15206 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15207
15208 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15209 * w32fns.c (w32_frame_parm_handlers): Likewise.
15210
15211 2008-05-20 Jason Rumney <jasonr@gnu.org>
15212
15213 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15214 truetype fonts to opentype list.
15215
15216 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15217
15218 * fontset.c (Ffontset_info): Doc fix.
15219 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15220 <ignore-relative-composition>: Fix typos in docstrings.
15221
15222 * font.c (syms-of-font) <font-encoding-alist>:
15223 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15224 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15225 (Ffont_otf_alternates): Doc fixes.
15226
15227 2008-05-20 Kenichi Handa <handa@m17n.org>
15228
15229 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15230 font.h through out the file.
15231 (FONT_DRIVERS): Rename from FONTOBJ.
15232 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15233 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15234
15235 * emacs.c (main): Call syms_of_font unconditionally.
15236
15237 * font.h (find_font_encoding): Extern it.
15238
15239 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15240 fontset.c.
15241 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15242 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15243 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15244 only when HAVE_WINDOW_SYSTEM is defined.
15245 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15246 when HAVE_WINDOW_SYSTEM is defined.
15247
15248 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15249 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15250
15251 * xfaces.c: Include font.h unconditionally.
15252 (merge_face_ref, merge_face_vectors)
15253 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15254
15255 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15256
15257 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15258 indirect_variable.
15259 * eval.c (lisp_indirect_variable): New fun.
15260 (Fuser_variable_p): Use it.
15261
15262 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15263
15264 * lisp.h (indirect_variable):
15265 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15266 Use Lisp_Symbol pointers rather than Lisp_Object.
15267 Adjust callers.
15268 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15269 To this end, change calling-convention.
15270
15271 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15272 if some non-hidden buffers are selected by string&pred.
15273
15274 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15275
15276 * process.c (wait_reading_process_output): Always check status
15277 when in batch mode.
15278
15279 2008-05-19 Kenichi Handa <handa@m17n.org>
15280
15281 * font.c (font_list_entities): Fix handling of cache.
15282 (font_matching_entity): Likewise.
15283
15284 * ftfont.c (cs_iso8859_1): Delete.
15285 (ft_face_cache): New variable.
15286 (struct ftfont_info): New member fc_charset_idx.
15287 (ftfont_build_basic_charsets): Delete.
15288 (fc_charset_table): New variable.
15289 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15290 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15291 Callers changed.
15292 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15293 (ftfont_spec_pattern): New argument fc_charset_idx.
15294 Check registry more rigidly. Change callers.
15295 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15296 change of :font-entity property of the font.
15297
15298 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15299 property of the font.
15300
15301 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15302
15303 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15304 (Funencodable_char_position, Fcheck_coding_systems_region)
15305 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15306 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15307 (Ffind_operation_coding_system, Fset_coding_system_priority)
15308 (Fcoding_system_eol_type): Doc fixes.
15309
15310 2008-05-17 Glenn Morris <rgm@gnu.org>
15311
15312 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15313
15314 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15315
15316 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15317 and st_gid.
15318
15319 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15320 HAVE_WINDOW_SYSTEM is not defined.
15321
15322 * xfaces.c (merge_face_ref, merge_face_vectors)
15323 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15324 HAVE_WINDOW_SYSTEM is defined.
15325 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15326
15327 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15328
15329 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15330
15331 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15332
15333 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15334
15335 2008-05-15 Kenichi Handa <handa@m17n.org>
15336
15337 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15338 preference.
15339
15340 2008-05-15 Glenn Morris <rgm@gnu.org>
15341
15342 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15343
15344 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
15345
15346 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15347 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15348
15349 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15350
15351 2008-05-15 Kenichi Handa <handa@m17n.org>
15352
15353 * ftfont.c (ftfont_list): Downcase family name to check generic
15354 families.
15355
15356 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15357 font-spec for QCfont value.
15358
15359 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15360 buffer. Check the return value of it.
15361
15362 2008-05-14 Jason Rumney <jasonr@gnu.org>
15363
15364 * w32term.c (w32_get_glyph_overhangs): Remove.
15365 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15366
15367 2008-05-14 Kenichi Handa <handa@m17n.org>
15368
15369 * font.c (font_prop_validate): Make nil a valid value.
15370 (font_clear_cache): Check if the cached vector of entities is nil
15371 or not.
15372
15373 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15374
15375 * emacs.c (main_thread): Conditionalize on
15376 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15377 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15378
15379 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15380 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15381 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15382
15383 2008-05-14 Kenichi Handa <handa@m17n.org>
15384
15385 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15386 has no corresponding coding system.
15387
15388 2008-05-14 Jason Rumney <jasonr@gnu.org>
15389
15390 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15391
15392 * w32font.h (w32font_open_internal): Update declaration.
15393
15394 * w32font.c (w32font_open_internal): Change last argument from
15395 w32font_info struct to font object. Fill in font object from
15396 font_entity. Get Outline metrics if possible. Use them to
15397 calculate underline position and thickness. Use xlfd name as name
15398 property. Don't set codepage.
15399 (w32font_open): Pass font_object to w32font_open_internal. Don't
15400 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15401 (w32font_draw): Use s->font.
15402 (clear_cached_metrics): Don't clear non-existent blocks.
15403
15404 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15405 font was not found.
15406 (x_draw_glyph_string): Use underline position and thickness from font.
15407
15408 * w32uniscribe.c (uniscribe_open): Pass font_object to
15409 w32font_open_internal.
15410
15411 2008-05-14 Kenichi Handa <handa@m17n.org>
15412
15413 These changes are to delete all legacy font-handling codes, and
15414 make Emacs use only font-backends.
15415
15416 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15417 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15418
15419 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15420
15421 * charset.h (Vcharset_non_preferred_head)
15422 (Vcurrent_iso639_language): Extern them.
15423
15424 * charset.c (Vcharset_non_preferred_head): New variable.
15425 (Vcurrent_iso639_language): New variable.
15426 (syms_of_charset): Declare it as a Lisp variable.
15427 (char_charset): Don't check non preferred charsets. As a last
15428 resort, return charset_unicode.
15429 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15430
15431 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15432 conditionals. Don't check enable_font_backend. Delete all codes
15433 used only when USE_FONT_BACKEND is not defined.
15434
15435 * dispextern.h (struct glyph_string): Change type of `font' to
15436 `struct font *'.
15437 (struct glyph_string): New member underline_position and
15438 underline_thickness.
15439 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15440 (struct face): Change type of `font' to `struct font *'. Remove
15441 members `font_name', `font_info_id'.
15442 (per_char_metric, encode_char): Delete externs.
15443 (calc_pixel_width_or_height): Adjust the prototype.
15444
15445 * emacs.c (enable_font_backend): Delete extern.
15446 (main): Don't set enable_font_backend. Don't check the command
15447 line argument "-disable-font-backend".
15448
15449 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15450 (enum font_property_index): New members FONT_DPI_INDEX,
15451 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15452 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15453 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15454 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15455 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15456 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15457 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15458 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15459 (struct font_spec, struct font_entity): New structs.
15460 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15461 (struct font): Many members from old "struct font_info" moved to
15462 here. Members font and entity deleted.
15463 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15464 the new font-related objects.
15465 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15466 (CHECK_FONT_GET_OBJECT): Likewise.
15467 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15468 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15469 (struct font_driver): New members case_sensitive anc check. Type
15470 of the member list and open changed.
15471 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15472 (font_symbolic_width, font_find_object, font_get_spec)
15473 (font_set_lface_from_name): Delete extern.
15474 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15475
15476 * font.c: Include <strings.h>.
15477 (enable_font_backend): Delete it.
15478 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15479 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15480 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15481 (null_string): Delete it.
15482 (null_vector): Make it static.
15483 (font_family_alist): Delete it.
15484 (Qnormal): Extern it.
15485 (QCextra, QClanguage): Delete it.
15486 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15487 (font_make_spec, font_make_entity, font_make_object)
15488 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15489 the string. Callers changed.
15490 (font_pixel_size): Adjusted for the format change of font-related
15491 objects.
15492 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15493 (font_style_to_value, font_style_symbolic): New function.
15494 (build_font_family_alist): Delete it.
15495 (font_registry_charsets): Use Fassoc_string instead of
15496 assq_no_quit.
15497 (font_prop_validate_symbol): Don't return null_string.
15498 (font_prop_validate_style): Adjusted for the change of
15499 style-related values in a font vector.
15500 (font_property_table): Delete entries for QClanguage and
15501 QCantialias, add entries for QCavgwidth.
15502 (get_font_prop_index): Delete the 2nd argument FROM.
15503 (font_prop_validate): Arguments changed.
15504 (font_put_extra): Adjusted for the change of font-related objects.
15505 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15506 (font_parse_fcname, font_unparse_fcname)
15507 (font_prepare_composition): Likewise.
15508 (font_parse_family_registry): Renamed from font_merge_old_spec.
15509 (otf_open): Delete the 1st arg entity.
15510 (font_otf_capability): Adjusted for the above change.
15511 (font_score): New arg alternate_families. Adjusted for the change
15512 of font-related objects.
15513 (font_sort_entites): New arg best_only.
15514 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15515 Delete them.
15516 (font_match_p): Check alternate families.
15517 (font_find_object): Delete it.
15518 (font_check_object): New function.
15519 (font_clear_cache): Adjusted for the change of font-related objects.
15520 (font_delete_unmatched): New arg.
15521 (font_list_entities): Call font_driver->list with a spec that
15522 doesn't specify style-related properties.
15523 (font_matching_entity): Arguments changed. Caller changed.
15524 (font_open_entity): Adjusted for the change of font-related objects.
15525 (font_close_object, font_has_char, font_encode_char)
15526 (font_get_name, font_get_spec): Likewise.
15527 (font_spec_from_name, font_clear_prop, font_update_lface):
15528 New functions.
15529 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15530 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15531 (font_at): Adjusted for the change of font-related objects.
15532 (font_range): New function.
15533 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15534 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15535 (Fcopy_font_spec, Fmerge_font_spec): New function.
15536 (Ffont_family_list): Renamed from list-families.
15537 (Finternal_set_font_style_table): Arguments changed.
15538 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15539 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15540 change of font-related objects.
15541 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15542
15543 * fontset.h (struct font_info): Delete it. Most members go to
15544 struct font.
15545 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15546 (enum FONT_SPEC_INDEX): Delete it.
15547 (font_info, list_fonts_func, load_font_func, query_font_func)
15548 (set_frame_fontset_func, find_ccl_program_func)
15549 (get_font_repertory_func, new_fontset_from_font_name): Delete
15550 externs.
15551 (fontset_from_font_name): Extern it.
15552 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15553 (FONT_INFO_FROM_FACE): Deleted.
15554 (face_for_font): Adjust prototype.
15555
15556 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15557 conditionals. Don't check enable_font_backend. Delete all codes
15558 used only when USE_FONT_BACKEND is not defined.
15559 (get_font_info_func, list_font_func, load_font_func)
15560 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15561 (get_font_repertory_func): Delete them.
15562 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15563 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15564 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15565 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15566 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15567 (fontset_compare_rfontdef): New function.
15568 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15569 rfont-defs by qsort. Adjusted for the change of font-group vector.
15570 (load_font_get_repertory): Deleted.
15571 (fontset_find_font): Use new macros to ref/set elements of
15572 font-def and rfont-def.
15573 (fontset_font): Fix the timing of remembering that no font for C.
15574 (free_face_fontset): Do nothing if the face has no fontset.
15575 (face_suitable_for_char_p): Use new macros to ref/set elements of
15576 rfont-def.
15577 (face_for_char): Likewise. Call face_for_char with font_object.
15578 (fs_load_font): Delete. Delete #pragma surrounding it.
15579 (fs_query_fontset): Use strcasecmp instead of strcmp.
15580 (generate_ascii_font_name): Adjusted for the format change of
15581 font-spec.
15582 (Fset_fontset_font): Likewise. Use new macros to set elements of
15583 font-def.
15584 (Fnew_fontset): Use font_unparse_xlfd to generate
15585 FONTSET_ASCII (fontset).
15586 (new_fontset_from_font_name): Deleted.
15587 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15588 a fontset is already created for the font. FIx updating of
15589 Vfontset_alias_alist.
15590 (fontset_ascii_font): Deleted.
15591 (Ffont_info): Adjusted for the format change of font-spec.
15592 (Finternal_char_font): Likewise.
15593 (Ffontset_info): Likewise.
15594 (syms_of_fontset): Don't check load_font_func.
15595
15596 * fns.c (internal_equal): Handle PREV_FONT.
15597
15598 * frame.h: Delete USE_FONT_BACKEND conditional.
15599
15600 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15601 conditionals. Don't check enable_font_backend. Delete all codes
15602 used only when USE_FONT_BACKEND is not defined.
15603 (x_set_font): Call x_new_font, not x_new_fontset2.
15604 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15605 already set for the frame.
15606
15607 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15608 a font-entity by font_make_entity. Use font_intern_prop instead
15609 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15610 font property. If a font is scalable, set avgwidth property to 0.
15611 Set font-entity property by font_put_extra.
15612 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15613 (ffont_driver): Adjusted for the change of struct font_driver.
15614 (ftfont_spec_pattern): New function.
15615 (ftfont_list): Return a list, not vector.
15616 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15617 (ftfont_list_family): Don't downcase names.
15618 (ftfont_free_entity): Deleted.
15619 (ftfont_open): Return a font-object. Adjusted for the change of
15620 struct font. Get underline_thickness and underline_position from
15621 font property. Don't update dpyinfo->smallest_font_height and
15622 dpyinfo->smallest_char_width.
15623 (ftfont_close): Don't free `struct font'.
15624 (ftfont_has_char): Adjusted for the format change of font-entity.
15625 (ftfont_encode_char, ftfont_text_extents): Likewise.
15626
15627 * ftxfont.c (ftxfont_list): Return a list, not vector.
15628 (ftxfont_open): Return a font-object. Adjusted for the change of
15629 struct font. Get underline_thickness and underline_position from
15630 font property. Don't update dpyinfo->smallest_font_height and
15631 dpyinfo->smallest_char_width.
15632 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15633 (ftxfont_draw): Adjusted for the change of struct font.
15634
15635 * image.c (image_ascent): Don't include "charset.h". Include
15636 "character.h" and "font.h".
15637
15638 * lisp.h (enum pvec_type): New member PREV_FONT.
15639 (Fassoc_string): EXFUN it.
15640
15641 * print.c: Include font.h.
15642 (print_object): Handle font-related objects.
15643
15644 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15645 conditionals. Don't check enable_font_backend. Delete all codes
15646 used only when USE_FONT_BACKEND is not defined.
15647 (handle_auto_composed_prop): Do nothing if it->f is not on a
15648 window system. Check how many following characters can be
15649 displayed by the same font.
15650 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15651 'struct font *'.
15652 (get_char_face_and_encoding): Assign the whole encoding task to
15653 the `encode-char' method of a font driver.
15654 (fill_composite_glyph_string): Adjusted for the change of `struct
15655 face' and `struct glyph_string'.
15656 (fill_glyph_string): Likewise.
15657 (get_per_char_metric): Arguments changed.
15658 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15659 and `struct glyph_string'.
15660 (produce_stretch_glyph, calc_line_height_property)
15661 (x_produce_glyphs): Likewise.
15662
15663 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15664 conditionals. Don't check enable_font_backend. Delete all codes
15665 used only when USE_FONT_BACKEND is not defined. Use
15666 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15667 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15668 (Qp): Extern them.
15669 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15670 Deleted.
15671 (struct font_name): Deleted.
15672 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15673 (compare_fonts_by_sort_order): New function.
15674 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15675 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15676 Deleted.
15677 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15678 compare_fonts_by_sort_order.
15679 (Fx_font_family_list): Call Ffont_family_list.
15680 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15681 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15682 (face_symbolic_slant, face_symbolic_swidth)
15683 (split_font_name_into_vector, build_font_name_from_vector)
15684 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15685 (font_rescale_ratio, split_font_name, build_font_name)
15686 (free_font_names, sort_fonts, x_face_list_fonts)
15687 (face_font_available_p, sorted_font_list, cmp_font_names)
15688 (font_list_1, concat_font_list, font_list, remove_duplicates):
15689 Deleted.
15690 (Fx_list_fonts): Use Ffont_list.
15691 (LFACE_AVGWIDTH): Deleted.
15692 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15693 by FONTP.
15694 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15695 (set_lface_from_font_name): Delete it.
15696 (set_lface_from_font): Renamed from
15697 set_lface_from_font_and_fontset. Caller changed. Don't set
15698 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15699 for face.
15700 (merge_face_vectors): Copy font-spec if necessary.
15701 Clear properties of the font-spec if necessary.
15702 (merge_face_ref): Clear properties of the font-spec if necessary.
15703 (Finternal_set_lisp_face_attribute): Likewise.
15704 (set_font_frame_param): Use font_load_for_lface to load a
15705 font-object, and call Fmodify_frame_parameters with it.
15706 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15707 font name by Ffont_xlfd_name.
15708 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15709 QCslant, and QCwidth.
15710 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15711 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15712 Compare fonts by EQ.
15713 (lookup_non_ascii_face): Deleted.
15714 (face_for_font): The 2nd argument changed.
15715 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15716 Check atomic font properties by case insensitive.
15717 (realize_non_ascii_face): Set face->overstrike correctly.
15718 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15719 (dump_realized_face): Get font name from
15720 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15721
15722 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15723 conditionals. Don't check enable_font_backend. Delete all codes
15724 used only when USE_FONT_BACKEND is not defined.
15725 (xic_create_xfontset): Original code deleted and renamed from
15726 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15727 (x_make_gc): Don't set GCFont in GCs.
15728 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15729 opened by "fixed".
15730 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15731 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15732 get_font_repertory_func.
15733
15734 * xfont.c: Include <stdlib.h> and "ccl.h".
15735 (struct xfont_info): New structure.
15736 (xfont_query_font): Deleted.
15737 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15738 moved from xterm.c.
15739 (xfont_driver): Adjusted for the change of struct font_driver.
15740 (compare_font_names): New function.
15741 (xfont_list_pattern): Sort font names case insensitively. Make
15742 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15743 (xfont_list): Return a list, not vector.
15744 (xfont_match): If the font doesn't have QCname property, generate
15745 a name from the other font properties.
15746 (xfont_open): Return a font-object. Adjusted for the change of
15747 struct font. Get underline_thickness and underline_position from
15748 font property. Don't update dpyinfo->smallest_font_height and
15749 dpyinfo->smallest_char_width.
15750 (xfont_close): Don't free struct font.
15751 (xfont_prepare_face): Adjusted for the change of struct font.
15752 (xfont_done_face): Deleted.
15753 (xfont_has_char): Adjusted for the change of struct font.
15754 (xfont_encode_char, xfont_draw): Likewise.
15755 (xfont_check): New function.
15756
15757 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15758 callback function.
15759 (xftfont_match): Adjusted for the format change of font-entity.
15760 (xftfont_open): Adjusted for the format change of font-entity and
15761 font-object. Adjusted for the change of struct font. Return a
15762 font-object. Don't update dpyinfo->smallest_font_height and
15763 dpyinfo->smallest_char_width.
15764 (xftfont_close): Block input while calling XftFontClose.
15765 (xftfont_prepare_face): Don't block input while calling
15766 xftfont_get_colors. Adjusted for the change of struct font.
15767 (xftfont_shape): Return value of error case fixed.
15768
15769 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15770
15771 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15772 conditionals.
15773 (FONT_WIDTH): Return (f)->max_width.
15774 (struct x_display_info): Delete member `font'.
15775 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15776 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15777 (struct x_output): Change type of `font' to `struct font *'.
15778
15779 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15780 conditionals. Don't check enable_font_backend. Delete all codes
15781 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15782 (x_per_char_metric, x_encode_char): Deleted.
15783 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15784 (x_compute_glyph_string_overhangs): Adjusted for the change of
15785 `struct face'.
15786 (x_draw_glyph_string_foreground)
15787 (x_draw_composite_glyph_string_foreground): Likewise.
15788 (x_draw_glyph_string): Likewise. Use font->underline_position and
15789 font->underline_thickness.
15790 (x_new_font): Renamed from x_new_fontset2.
15791 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15792 (x_check_font): Call `check' method of a font driver.
15793 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15794 (x_query_font, x_get_font_repertory): Deleted.
15795 (x_find_ccl_program): Renamed and moved to xfont.c.
15796 (x_redisplay_interface): Adjusted for the change of `struct
15797 redisplay_interface'.
15798
15799 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15800 conditionals. Don't check enable_font_backend. Delete all codes
15801 used only when USE_FONT_BACKEND is not defined. Surround non-used
15802 code by "#ifdef OLD_FONT" and "endif".
15803 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15804
15805 * w32font.h (struct w32font_info): New member.
15806 (FONT_COMPAT): New macro.
15807 (w32font_open_internal): Prototype adjusted.
15808
15809 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15810 OLD_FONT" and "endif".
15811
15812 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15813 conditionals. Don't check enable_font_backend. Delete all codes
15814 used only when USE_FONT_BACKEND is not defined.
15815 (w32font_open): Return a font-object. Make a font-object by
15816 font_make_object. Adjusted for the change of struct w32font_info.
15817 (w32font_close): Don't free struct font. Adjusted for the change
15818 of struct w32font_info.
15819 (w32font_encode_char, w32font_text_extents, w32font_draw):
15820 Adjusted for the change of struct w32font_info.
15821 (w32font_draw): Likewise.
15822 (w32font_list_internal): Return a list, not vector.
15823 (w32font_open_internal): Change the 4th arg to font-object.
15824 Adjusted for the change of struct w32font_info and font-object format.
15825 (add_font_name_to_list): Don't downcase names.
15826 (w32_enumfont_pattern_entity): Make a font-entity by
15827 font_make_entity. Adjusted for the format change of font-entity.
15828 Use FONT_SET_STYLE to set a style-related font property. If a
15829 font is scalable, set avgwidth property to 0. Set font-entity
15830 property by font_put_extra.
15831 (font_matches_spec): Adjusted for the format change of font-entity.
15832 (w32_weight_table, w32_decode_weight): New variables.
15833 (w32_encode_weight): New function.
15834 (fill_in_logfont): Adjusted for the format change of font-spec.
15835 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15836 weight value.
15837 (w32font_driver): Adjusted for the change of struct font_driver.
15838
15839 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15840 conditionals. Don't check enable_font_backend. Surround non-used
15841 code by "#ifdef OLD_FONT" and "endif".
15842 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15843 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15844
15845 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15846 conditionals. Don't check enable_font_backend. Delete all codes
15847 used only when USE_FONT_BACKEND is not defined. Surround non-used
15848 code by "#ifdef OLD_FONT" and "endif".
15849
15850 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15851 (uniscribe_open): Return value changed to font-object.
15852 Adjusted for the format change of font-object.
15853 (uniscribe_otf_capability): Adjusted for the change of struct font.
15854 (add_opentype_font_name_to_list): Don't downcase names.
15855 (uniscribe_font_driver): Adjusted for the change of struct
15856 font_driver.
15857
15858 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15859
15860 * dispnew.c (update_frame_1): Check if tty output is still valid
15861 before flushing it.
15862
15863 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15864
15865 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15866 to Gtk+ menus.
15867
15868 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15869
15870 * dired.c (file_name_completion): Tweak the code so as to always do it
15871 in a single pass. Tighten the scope of some variables.
15872
15873 * dired.c (Qdefault_directory): New var.
15874 (file_name_completion): Use it instead of Fexpand_file_name.
15875 (syms_of_dired): Initialize it.
15876
15877 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15878
15879 * fileio.c (double_dollars): Remove dead code.
15880
15881 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15882
15883 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15884 Mention w32-get-true-file-attributes in doc string.
15885
15886 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15887
15888 2008-05-09 Glenn Morris <rgm@gnu.org>
15889
15890 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15891 2008-04-23.
15892
15893 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15894
15895 Support for reporting owner and group of each file on MS-Windows:
15896 * dired.c (stat_uname, stat_gname): New functions, with special
15897 implementation for w32.
15898 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15899
15900 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15901 (dflt_group_name): New static variable.
15902 (dflt_group): Rename from the_group.
15903 (init_user_info): Init dflt_group fields. Get user's group name
15904 from LookupAccountSid.
15905 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15906 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15907 New initialization states.
15908 (globals_of_w32): Initialize them to zero. Initialize the default
15909 group name to "None".
15910 (GetFileSecurity_Name): New global var, the name of the function
15911 to call for GetFileSecurity.
15912 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15913 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15914 (get_file_security, get_security_descriptor_owner)
15915 (get_security_descriptor_group, is_valid_sid)
15916 (get_file_security_desc, get_rid, get_name_and_id)
15917 (get_file_owner_and_group): New functions.
15918 (stat): Use get_file_security_desc and get_file_owner_and_group to
15919 report the owner and primary group of each file. Don't ignore the
15920 high 32 bits of file's size, now that st_size is 64-bit wide.
15921 Fix test when to get true file attributes.
15922 (init_user_info): Use get_rid instead of equivalent inline code.
15923 (fstat): Don't ignore the high 32 bits of file's size.
15924
15925 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15926
15927 * image.c (png_load): Use correct bit-depth for setting background
15928 color.
15929
15930 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15931
15932 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15933 epa-hook.elc.
15934
15935 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15936
15937 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15938
15939 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15940
15941 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15942 because the original parameters are in pure storage now.
15943 (mac_window): Remove unused params. Update callers.
15944
15945 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15946
15947 * lread.c (substitute_object_recurse): Use lower-level primitives.
15948 Don't signal errors when traversing sub-char-tables.
15949 Don't loop over all the possible characters when traversing char-tables.
15950
15951 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15952 just like we do in print.c.
15953
15954 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15955
15956 * minibuf.c (Ftry_completion): Remove code left over from when we used
15957 scmp instead of Fcompare_strings.
15958
15959 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15960
15961 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15962
15963 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15964
15965 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15966 Create bitmap context in native byte order.
15967
15968 * macterm.c (XDrawLine)
15969 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15970 context in native byte order.
15971
15972 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15973
15974 * config.in: Regenerate.
15975
15976 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15977 New definitions for Image I/O support.
15978 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15979 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15980 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15981 (mac_data_provider_release_data, image_load_image_io)
15982 [USE_MAC_IMAGE_IO]: New functions.
15983 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15984 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15985 (init_image_func_pointer) [MAC_OSX]: Remove function.
15986 (image_load_quartz2d) [MAC_OSX]: Check availability of
15987 CGImageCreateWithPNGDataProvider at compile time.
15988 Use lowercase `false' for boolean constant.
15989 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15990 Use image_load_image_io.
15991 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15992 Don't check MyCGImageCreateWithPNGDataProvider.
15993 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15994 Don't call init_image_func_pointer.
15995
15996 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15997
15998 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15999 Make variable non-static.
16000 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16001 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16002
16003 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16004 (RED_FROM_ULONG): Mask off higher bits.
16005 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16006
16007 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16008 Include AvailabilityMacros.h.
16009 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16010 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16011
16012 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16013
16014 * chartab.c (Fset_char_table_range): If range is t, really set all
16015 chars to that value.
16016
16017 2008-05-03 Eli Zaretskii <eliz@gnu.org>
16018
16019 * dired.c (Ffile_attributes): Don't allow the device number become
16020 negative.
16021
16022 2008-05-02 Daiki Ueno <ueno@unixuser.org>
16023
16024 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16025
16026 2008-05-02 Juri Linkov <juri@jurta.org>
16027
16028 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16029 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16030 DEFAULT argument as a list of default values in docstrings.
16031
16032 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
16033
16034 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16035
16036 2008-05-01 Martin Rudalics <rudalics@gmx.at>
16037
16038 * dispnew.c (change_frame_size_1): Preserve small windows when
16039 shrinking frames by calling set_window_height|width with third
16040 arg 2.
16041
16042 * window.h (struct window): Replace field too_small_ok by field
16043 resize_proportionally.
16044
16045 * window.c (make_window): Initialize resize_proportionally.
16046 (enlarge_window): Temporarily set resize_proportionally to make
16047 sure that shrink_windows does scale the window proportionally.
16048 (shrink_windows): When window has resize_proportionally set try
16049 to shrink it proportionally by stealing from other windows.
16050 (struct saved_window, Fset_window_configuration)
16051 (compare_window_configurations): Handle resize_proportionally.
16052 (WINDOW_TOTAL_SIZE): New macro.
16053 (window_min_size, shrink_windows, size_window): Use it.
16054 (check_min_window_sizes): Remove. Invalid values of
16055 window-min-height|width are handled by window_min_size_2 now.
16056 (size_window, Fsplit_window, enlarge_window)
16057 (adjust_window_trailing_edge, grow_mini_window): Don't call
16058 check_min_window_sizes.
16059 (window_min_size_2, window_min_size_1, window_min_size):
16060 New argument safe_p for retrieving "safe" minimum sizes.
16061 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16062 (adjust_window_trailing_edge, grow_mini_window):
16063 Adjust arguments of window_min_size... functions.
16064 (shrink_windows): Argument min_size removed. New argument
16065 safe_p allows shrinking windows to their safe minimum sizes.
16066 Calculate minimum size and decide whether a window shall be
16067 deleted for each window individually.
16068 (size_window): When nodelete_p equals 2, tell shrink_windows to
16069 delete windows only if their new minimum size is no more safe.
16070 (shrink_window_lowest_first): Call window_min_size_1 to make
16071 sure to preserve modeline of bottom-most window when resizing
16072 the minibuffer.
16073 (Fset_window_configuration, Fcurrent_window_configuration)
16074 (compare_window_configurations): Do not handle
16075 window-min-height|width any more.
16076 (syms_of_window): Clarify window-min-height|width doc-strings.
16077
16078 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16079
16080 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16081 some more. Copy some of the code from Ftry_completions.
16082 Remove special case code that dates back to initial revision when the
16083 slash was only added when necessary and that can't trigger nowadays.
16084
16085 2008-04-27 Kenichi Handa <handa@m17n.org>
16086
16087 * font.c (font_prop_validate): Signal `error' instead of `font'.
16088
16089 2008-04-29 Jason Rumney <jasonr@gnu.org>
16090
16091 * w32fns.c (Fw32_battery_status): New defun.
16092 (syms_of_w32fns): Defsubr it.
16093
16094 2008-04-28 Andreas Schwab <schwab@suse.de>
16095
16096 * dired.c (file_name_completion): Fix another mixing of encoded
16097 and decoded names.
16098
16099 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
16100
16101 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16102
16103 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
16104
16105 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16106
16107 2008-04-27 Andreas Schwab <schwab@suse.de>
16108
16109 * dired.c (file_name_completion): Fix inappropriate mixing of
16110 encoded and decoded names.
16111
16112 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16113
16114 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16115
16116 2008-04-26 Eli Zaretskii <eliz@gnu.org>
16117
16118 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16119 2008-03-31, it's not needed anymore with `struct stat' definition
16120 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16121 for the same reasons.
16122
16123 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16124
16125 * m/sparc.h: Additional redefinitions for GNU/Linux.
16126
16127 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16128
16129 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16130 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16131 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16132 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16133 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16134 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16135 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16136 Likewise.
16137
16138 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16139 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16140 (mac_ax_number_of_characters): Add externs.
16141 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16142 [USE_MAC_TSM]: Likewise.
16143 (mac_handle_text_input_event) [MAC_OSX]:
16144 Handle kEventTextInputOffsetToPos for no active input area case.
16145 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16146 (mac_handle_document_access_event)
16147 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16148 (install_application_handler) [MAC_OSX]: Register handlers for
16149 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16150 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16151 Register mac_handle_document_access_event.
16152
16153 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16154 Make functions non-static.
16155
16156 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16157
16158 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16159 (read_file_name_completion_ignore_case, insert_default_directory)
16160 (Qdefault_directory): Move to minibuffer.el.
16161 (Fread_file_name): Call the new `read-file-name' instead.
16162
16163 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16164
16165 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16166 Make function non-static.
16167 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16168 Remove function.
16169 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16170 Move to mactoolbox.c.
16171 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16172
16173 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16174 (mac_rect_make): New macro.
16175
16176 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16177 instead of float.
16178 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16179 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16180 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16181 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16182 CGRectMake.
16183 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16184 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16185 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16186 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16187 instead of WindowRef in argument type.
16188 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16189 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16190 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16191 instead of DISPLAY. All uses changed.
16192 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16193 (x_calc_absolute_position): Simplify so as not to use
16194 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16195
16196 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16197 instead of WindowRef in argument type.
16198 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16199 [TARGET_API_MAC_CARBON]: Remove externs.
16200 (create_apple_event, mac_event_parameters_to_lisp)
16201 [TARGET_API_MAC_CARBON]: Add externs.
16202
16203 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16204 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16205 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16206 is clicked.
16207 (x_activate_menubar): Remove extern for saved_menu_event_location.
16208 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16209 Move from mac.c.
16210
16211 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16212
16213 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16214 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16215
16216 2008-04-23 Jason Rumney <jasonr@gnu.org>
16217
16218 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16219 attributes only for local files.
16220
16221 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16222 default to Qlocal.
16223
16224 2008-04-22 Juri Linkov <juri@jurta.org>
16225
16226 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16227 read-buffer-to-switch instead of using the letter "B".
16228
16229 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16230
16231 * fileio.c (Qdefault_directory): New variable.
16232 (Fread_file_name): Use it to pass `dir' to the completion functions.
16233
16234 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16235
16236 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16237
16238 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16239
16240 * keyboard.c (Vpre_help_message): Remove.
16241 (show_help_echo): Remove default C code.
16242
16243 * dired.c (directory_files_internal, file_name_completion):
16244 Only call ENCODE_FILE if the string is indeed decoded.
16245
16246 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16247
16248 * Makefile.in (TOOLKIT_DEFINES): Remove.
16249 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16250
16251 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16252
16253 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16254 (mactoolbox.o): New target.
16255
16256 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16257 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16258
16259 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16260 Use mac_set_frame_window_background instead of XSetWindowBackground.
16261 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16262 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16263 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16264 instead of SetWindowTitleWithCFString.
16265 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16266 Move function to mactoolbox.c.
16267 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16268 Use mac_set_window_modified instead of SetWindowModified.
16269 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16270 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16271 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16272 FrontNonFloatingWindow. Use mac_activate_window instead of
16273 ActivateWindow. Use mac_active_non_floating_window instead of
16274 ActiveNonFloatingWindow.
16275 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16276 Use mac_show_hourglass and mac_hide_hourglass.
16277 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16278 instead of GetGlobalMouse.
16279 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16280 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16281 Use mac_bring_window_to_front instead of BringToFront.
16282 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16283 mactoolbox.c.
16284 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16285 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16286 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16287 mactoolbox.c.
16288
16289 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16290 (XtPointer): Move typedef from macmenu.c.
16291 (enum button_type): Move enum from macmenu.c.
16292 (widget_value): Move typedef from macmenu.c.
16293 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16294 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16295 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16296 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16297 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16298 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16299 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16300 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16301 (Selection): Move typedef from macselect.c.
16302 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16303 macterm.c.
16304 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16305 (mac_is_window_collapsed, mac_bring_window_to_front)
16306 (mac_send_window_behind, mac_hide_window, mac_show_window)
16307 (mac_collapse_window, mac_front_non_floating_window)
16308 (mac_active_non_floating_window, mac_activate_window)
16309 (mac_move_window_structure, mac_move_window, mac_size_window)
16310 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16311
16312 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16313 (enum mac_menu_kind): Move enum to mactoolbox.c.
16314 (min_menu_id): Move variable to mactoolbox.c.
16315 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16316 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16317 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16318 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16319 [TARGET_API_MAC_CARBON]: Likewise.
16320 (XtPointer): Move typedef to macgui.h.
16321 (enum button_type): Move enum to macgui.h.
16322 (widget_value): Move typedef to macgui.h.
16323 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16324 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16325 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16326 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16327 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16328 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16329 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16330 (popup_activated_flag): Make variable non-static.
16331 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16332 (add_menu_item, fill_menu, dispose_menus):
16333 Move functions to mactoolbox.c.
16334 (restore_show_help_function, menu_target_item_handler)
16335 (install_menu_target_item_handler, mac_handle_dialog_event)
16336 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16337 [TARGET_API_MAC_CARBON]: Likewise.
16338 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16339 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16340 (find_and_call_menu_selection, name_is_separator): Make function
16341 non-static.
16342 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16343 to mactoolbox.c.
16344 (set_frame_menubar): Don't call install_menu_quit_handler.
16345 (menu_item_selection): New variable.
16346 (mac_menu_show): Use create_and_show_popup_menu.
16347 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16348 selection but set variable menu_item_selection. All uses changed.
16349 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16350 Call install_menu_quit_handler. Move to mactoolbox.c.
16351
16352 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16353 (Selection): Move typedef to macgui.h.
16354 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16355 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16356 Make variables non-static.
16357 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16358 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16359 Make functions non-static.
16360 (Vmac_service_selection) [MAC_OSX]: Likewise.
16361 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16362 (mac_valid_selection_target_p, mac_clear_selection)
16363 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16364 (mac_put_selection_value, mac_selection_has_target_p)
16365 (mac_get_selection_value, mac_get_selection_target_list)
16366 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16367 Move functions to mactoolbox.c.
16368 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16369 Likewise.
16370 (copy_scrap_flavor_data, mac_handle_service_event)
16371 (install_service_handler) [MAC_OSX]: Likewise.
16372 (syms_of_macselect) <Vmac_dnd_known_types>:
16373 Use mac_dnd_default_known_types.
16374
16375 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16376 Move to mactoolbox.c.
16377 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16378 (Fx_selection_owner_p): Add EXFUN.
16379 (install_window_handler, remove_window_handler, XSetWindowBackground):
16380 Remove externs.
16381 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16382 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16383 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16384 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16385 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16386 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16387 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16388 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16389 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16390 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16391 (mac_valid_selection_target_p, mac_clear_selection)
16392 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16393 (mac_put_selection_value, mac_selection_has_target_p)
16394 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16395 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16396 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16397 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16398 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16399 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16400 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16401 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16402 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16403
16404 * mactoolbox.c: New file.
16405
16406 2008-04-18 Jason Rumney <jasonr@gnu.org>
16407
16408 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16409
16410 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16411
16412 * character.c (Fmultibyte_char_to_unibyte):
16413 Return latin1 chars unchanged.
16414
16415 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16416 relocated if it points to `name'.
16417
16418 2008-04-17 Kenichi Handa <handa@m17n.org>
16419
16420 * data.c (Faset): Allow setting a multibyte character in an
16421 ASCII-only unibyte string.
16422
16423 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16424
16425 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16426
16427 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16428 done in config.h.
16429
16430 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
16431
16432 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16433 (Fchar_direction): Add usage in the docstring.
16434
16435 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
16436
16437 * keyboard.c (read_key_sequence): Remove always-true checks.
16438
16439 2008-04-14 Jason Rumney <jasonr@gnu.org>
16440
16441 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16442 compatibility struct, for better underline positioning.
16443
16444 2008-04-13 David Hansen <david.hansen@gmx.net>
16445
16446 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16447 string.
16448
16449 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16450
16451 * m/hp800.h (XUINT, XSET): Remove.
16452
16453 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
16454
16455 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16456 previous change.
16457
16458 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16459
16460 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16461 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16462
16463 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16464
16465 * keymap.h (map_keymap_canonical): Declare.
16466 * xmenu.c (single_keymap_panes): Use it.
16467
16468 2008-04-11 Glenn Morris <rgm@gnu.org>
16469
16470 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16471 set the target's value to that of the alias.
16472
16473 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16474
16475 * term.c (set_tty_color_mode): Left over typo.
16476
16477 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16478
16479 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16480 only after check for file name handler functions. Signal, when
16481 native functionality is not supported.
16482 (syms_of_fileio): Declare it unconditionally.
16483
16484 2008-04-10 Jason Rumney <jasonr@gnu.org>
16485
16486 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16487 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16488
16489 * w32.c (logon_network_drive): Also logon to remote drives that
16490 are mapped to drive letters.
16491
16492 2008-04-10 Glenn Morris <rgm@gnu.org>
16493
16494 * xdisp.c (truncate-partial-width-windows): Doc fix.
16495
16496 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16497
16498 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16499 Move functions to minibuffer.el.
16500 (syms_of_fileio): Don't declare them.
16501
16502 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16503
16504 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16505 (syms_of_minibuf): Remove its initialization.
16506
16507 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16508
16509 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16510
16511 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16512
16513 2008-04-09 Jason Rumney <jasonr@gnu.org>
16514
16515 * makefile.w32-in (distclean): Delete makefile too.
16516 (maintainer-clean): New target.
16517
16518 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16519
16520 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16521 for new font backend and composite cases.
16522
16523 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16524
16525 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16526 Most of the code moved to run_timers.
16527 (do_pending_atimers): Call run_timers.
16528 (run_timers): New function.
16529
16530 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16531 run atimers.
16532
16533 * process.c (wait_reading_process_output): The same as above.
16534
16535 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16536
16537 * minibuf.c (last_exact_completion): Remove variable.
16538 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16539 (complete_and_exit_1, complete_and_exit_2)
16540 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16541 (Fdisplay_completion_list, display_completion_list_1)
16542 (Fminibuffer_completion_help, Fself_insert_and_exit)
16543 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16544 minibuffer.el.
16545 (syms_of_minibuf): Remove corresponding initializations.
16546
16547 * keyboard.c (Qdeactivate_mark): New var.
16548 (command_loop_1): Use it to call `deactivate-mark'.
16549 (syms_of_keyboard): Initialize it.
16550
16551 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16552 to another frame.
16553 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16554 Don't call set_tty_color_mode.
16555 (store_frame_param): Reset previous_frame rather than call
16556 set_tty_color_mode.
16557 * term.c (set_tty_color_mode): Rewrite.
16558 * dispextern.h (set_tty_color_mode): New type.
16559 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16560
16561 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16562
16563 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16564 for generic chars, which do not exist any more in emacs-unicode.
16565
16566 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16567
16568 * coding.c (detect_coding_emacs_mule)
16569 (Ffind_operation_coding_system): Fix typo.
16570
16571 2008-04-08 Jason Rumney <jasonr@gnu.org>
16572
16573 * w32uniscribe.c (SNAME): Extract only symbol name.
16574
16575 * w32font.h (struct w32_metric_cache): New struct.
16576 (w32font_info): Use it.
16577 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16578 (CACHE_BLOCKSIZE): New constants.
16579
16580 * w32font.c (Qja, Qko, Qzh): New symbols.
16581 (syms_of_w32font): Initialise them.
16582 (font_matches_spec): Use them to filter by language.
16583 (recompute_cached_metrics): Remove function.
16584 (compute_metrics, clear_cached_metrics): New functions.
16585 (w32font_encode_char): Use them to manage metric cache.
16586 (w32font_text_extents): Cache metrics for all glyphs on demand.
16587 Delay converting glyph indices to WORD until needed.
16588 (w32font_open_internal): Initialize metric cache to empty.
16589 (registry_to_w32_charset): Charset should always be a symbol.
16590 (fill_in_logfont, list_all_matching_fonts): Family should
16591 always be a symbol.
16592
16593 2008-04-06 Jason Rumney <jasonr@gnu.org>
16594
16595 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16596 Give up if glyph indices not supported. Use uniscribe obtained
16597 ABC widths for individual metrics. Map glyph clusters back to
16598 characters using fClusterStart flag. Return number of glyphs
16599 produced, not chars processed.
16600 (uniscribe_shape): Map char at FROM to current glyph.
16601
16602 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16603
16604 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16605 Use SetMenuItemHierarchicalMenu.
16606
16607 2008-04-05 Jason Rumney <jasonr@gnu.org>
16608
16609 * image.c (pbm_load): Allow color values up to 65535.
16610 Throw an error if max_color_idx is outside the supported range.
16611 Report an error when image size is invalid.
16612 Read two bytes at a time when raw images have max_color_idx above 255.
16613
16614 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16615
16616 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16617 append "CCL: Quitted" when the CCL program is quitted.
16618 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16619
16620 * ccl.h (struct ccl_program): New member quit_silently.
16621
16622 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16623
16624 * search.c (compile_pattern_1): Treat non-nil and non-string of
16625 search-spaces-regexp as nil.
16626
16627 * minibuf.c (Fassoc_string): Tweak docstring.
16628
16629 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16630
16631 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16632 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16633 2008-03-14 to force inode be positive.
16634
16635 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16636 _S_* ones, since we now use our own sys/stat.h.
16637 (stat, fstat): Don't mangle the inode number.
16638 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16639
16640 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16641
16642 * frame.h (struct frame): Give one more bit to `visible' since we use
16643 values larger than 1 to indicate obscured frames on ttys.
16644
16645 * keymap.c (Qkeymap_canonicalize): New var.
16646 (Fmap_keymap_internal): New fun.
16647 (describe_map): Use keymap-canonicalize.
16648
16649 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16650 (Fundo_boundary): Set them.
16651 (syms_of_undo): Initialize them.
16652 (record_point): Use them instead of last_point_position*.
16653 (last_undo_buffer): Change type.
16654
16655 2008-04-04 Jason Rumney <jasonr@gnu.org>
16656
16657 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16658 (recompute_cached_metrics): Don't set ascent and descent per char.
16659
16660 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16661 (uniscribe_check_otf): Add GC protection before consing.
16662 Rearrange loop for counting features.
16663
16664 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16665
16666 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16667 buffer with byte-size of source buffer.
16668
16669 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16670
16671 * callint.c (Fcall_interactively): Handle temporary region even
16672 when shift-select-mode is off.
16673
16674 2008-04-03 Jason Rumney <jasonr@gnu.org>
16675
16676 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16677
16678 2008-04-03 Kenichi Handa <handa@m17n.org>
16679
16680 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16681 (CATEGORY_MASK_UTF_16): Likewise.
16682 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16683 binary file.
16684 (detect_coding): Add null-byte detection for a binary file.
16685 (detect_coding_system): Likewise.
16686
16687 2008-04-03 Jason Rumney <jasonr@gnu.org>
16688
16689 * w32uniscribe.c: New file.
16690
16691 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16692
16693 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16694
16695 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16696 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16697 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16698 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16699 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16700 (Qphonetic): New symbols.
16701 (syms_of_w32font): Initialize them.
16702 (font_supported_scripts): Use them.
16703 (w32font_list_family): List all charsets.
16704 (w32font_text_extents, recompute_cached_metrics): Fix metric
16705 calculations.
16706 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16707 Give opentype fonts their own format.
16708 (font_matches_spec): New arguments backend and logfont.
16709 Handle :otf spec for uniscribe backend.
16710 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16711 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16712
16713 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16714 font backend.
16715 (globals_of_w32fns): Initialize uniscribe font backend.
16716
16717 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16718 dependencies.
16719 (w32uniscribe.$(O)): New file to build.
16720 (FONT_OBJ): Include w32uniscribe.$(O).
16721 (LIBS): Add uniscribe libraries.
16722
16723 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16724
16725 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16726
16727 * callint.c (Vshift_select_mode): New var.
16728 (Finteractive): Document new ^ spec.
16729 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16730 is present.
16731
16732 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16733 (command_loop_1): Avoid running the direct display versions of
16734 forward-char and backward-char if shift-selection may occur.
16735 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16736 shift-translation takes place.
16737
16738 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16739 avoid clobbering by define-minor-mode.
16740
16741 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16742 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16743
16744 * syntax.c (Fforward_word): Add ^ interactive spec.
16745
16746 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16747 (Fscroll_right): Add ^ interactive spec.
16748
16749 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16750
16751 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16752
16753 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16754
16755 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16756
16757 2008-03-31 Juri Linkov <juri@jurta.org>
16758
16759 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16760
16761 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16762
16763 * gtkutil.c (xg_set_geometry): Fix indentation.
16764 (xg_resize_outer_widget): Remove.
16765 (x_wm_size_hint_off): Fix indentation.
16766 (xg_frame_set_char_size): Call flush_and_sync after
16767 gtk_window_resize.
16768 (x_wm_set_size_hint): Pass NULL as geometry window to
16769 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16770 Add menu bar and tool bar height to base height.
16771 (xg_update_frame_menubar, free_frame_menubar)
16772 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16773 (update_frame_tool_bar, free_frame_tool_bar):
16774 Change xg_resize_outer_widget to xg_frame_set_char_size.
16775
16776 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16777
16778 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16779 (Fdbus_call_method): New parameter TIMEOUT.
16780 (dbus-send-signal): Optimize UNGCPRO call.
16781
16782 2008-03-29 Juri Linkov <juri@jurta.org>
16783
16784 * window.c (Fdisplay_buffer): Move call to
16785 Vsplit_window_preferred_function out of conditions that check
16786 if window is eligible for vertical splitting.
16787 When Vsplit_window_preferred_function is non-nil, call it and use
16788 its non-nil return value as window. Otherwise, continue doing
16789 vertical splitting using Fsplit_window with arg horflag=nil.
16790 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16791 default value from `split-window' to nil.
16792
16793 2008-03-29 Juri Linkov <juri@jurta.org>
16794
16795 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16796 for interactive code letters 'b' and 'B'.
16797
16798 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16799
16800 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16801 multibyte string.
16802
16803 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16804
16805 * keyboard.c (pending_funcalls): New var.
16806 (timer_check): Run it.
16807 (syms_of_keyboard): Initialize it.
16808 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16809 (Vdelete_terminal_functions): New vars.
16810 (syms_of_terminal): Initialize them.
16811 (Fdelete_terminal): Run delete-terminal-functions.
16812 * xdisp.c (safe_eval): Rewrite.
16813 (safe_call2): New fun.
16814 * frame.c (Qdelete_frame_functions): New var.
16815 (syms_of_frame): Initialize it.
16816 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16817 * lisp.h (safe_call2, pending_funcalls): Declare.
16818
16819 2008-03-28 Andreas Schwab <schwab@suse.de>
16820
16821 * indent.c (Fmove_to_column): Move declaration before statements.
16822
16823 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16824
16825 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16826 (struct frame): Use bit fields for boolean vars.
16827
16828 * process.c (server_accept_connection): Simplify naming.
16829 (emacs_get_tty_pgrp): Use SDATA.
16830
16831 * coding.c (decode_coding_object): Fix last change.
16832
16833 2008-03-27 Jason Rumney <jasonr@gnu.org>
16834
16835 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16836
16837 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16838
16839 * charset.c (Fdefine_charset_internal): Change the way of
16840 registering charsets in Vcharset_order_list.
16841 (syms_of_charset): Make the charset `eight-bit' supplementary.
16842
16843 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16844
16845 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16846 operations, to avoid having the difference between pointers
16847 overflow.
16848
16849 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16850
16851 * indent.c (check_display_width): New fun.
16852 (scan_for_column): Use it.
16853
16854 * data.c (syms_of_data): Mark most-positive-fixnum and
16855 most-negative-fixnum as constants.
16856
16857 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16858
16859 * indent.c (scan_for_column): Extract from current_column_1.
16860 Merge with the same code from Fmove_to_column.
16861 (current_column_1, Fmove_to_column): Use it.
16862
16863 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16864
16865 * keymap.c (map_keymap_internal): New fun.
16866 (map_keymap): Use it.
16867 (Fmap_keymap_internal): New fun.
16868 (Fmap_keymap): Remove left-out test from before make_save_value.
16869
16870 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16871
16872 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16873 Use XCAR/XCDR.
16874
16875 * process.h (struct Lisp_Process): Remove filter_multibyte.
16876 * process.c (QCfilter_multibyte): Remove.
16877 (setup_process_coding_systems): Don't use filter_multibyte.
16878 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16879 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16880 (Fset_process_filter_multibyte): Change the coding-system to
16881 approximate the previous behavior.
16882 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16883 coding-system.
16884
16885 * coding.c (decode_coding_object): When not decoding into a buffer,
16886 obey the coding system's preference of (uni|multi)byte.
16887
16888 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16889
16890 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16891 every char is changed and has a different byte-length.
16892 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16893 Fix int -> EMACS_INT.
16894
16895 2008-03-23 David Hansen <david.hansen@gmx.net>
16896
16897 * dbusbind.c (xd_read_message): Remove extra copying of message
16898 strings. Check for NULL `interface' or `member'.
16899
16900 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16901
16902 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16903 cFileName a file name that includes `?' characters, use the 8+3
16904 alias in cAlternateFileName instead.
16905
16906 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16907
16908 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16909
16910 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16911
16912 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16913 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16914 work on current_buffer only instead (that was already the case
16915 for some of the code anyway).
16916 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16917 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16918 (SET_PT, SET_PT_BOTH): Adjust.
16919 * intervals.h (set_point, temp_set_point, set_point_both)
16920 (temp_set_point_both): Remove redundant declarations.
16921
16922 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16923
16924 * fileio.c (Finsert_file_contents):
16925 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16926 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16927 when buffer != current_buffer anyway.
16928
16929 2008-03-20 Andreas Schwab <schwab@suse.de>
16930
16931 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16932 as default.
16933
16934 2008-03-19 Jason Rumney <jasonr@gnu.org>
16935
16936 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16937 (syms_of_w32fns): Initialize them.
16938 (HOURGLASS_ID): New constant.
16939 (x_window_to_frame): Don't check hourglass_window.
16940 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16941 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16942 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16943 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16944 Only change the cursor if hourglass is not active.
16945 (Fx_create_frame): Initialize frame's current_cursor.
16946 (hourglass_atimer): Remove.
16947 (hourglass_started): New function.
16948 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16949 (show_hourglass): Adapt to w32, changing argument to frame.
16950
16951 * w32term.h (struct w32_output): Remove hourglass_window.
16952 Add current_cursor.
16953
16954 * eval.c (call_debugger, Fsignal):
16955 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16956 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16957 (Fexecute_extended_command, cancel_hourglass_unwind):
16958 * minibuf.c (read_minibuf):
16959 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16960
16961 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16962
16963 * window.c (run_funs): New fun.
16964 (run_window_configuration_change_hook): Use it to run the buffer-local
16965 and the global part of the hook.
16966
16967 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16968 (unwind_format_mode_line): Restore selected window.
16969 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16970
16971 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16972
16973 * editfns.c (Fchar_equal): Check they are valid characters.
16974
16975 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16976
16977 2008-03-17 Andreas Schwab <schwab@suse.de>
16978
16979 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16980 against a charset.
16981
16982 * lisp.h (Fbuffer_list): Declare.
16983
16984 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16985
16986 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16987 handlebox_widget is != 0.
16988
16989 2008-03-16 Juri Linkov <juri@jurta.org>
16990
16991 * callint.c (Fcall_interactively): For interactive code letters
16992 'b' and 'B' put the buffer list into the list of default "future"
16993 values of the minibuffer.
16994
16995 2008-03-16 Andreas Schwab <schwab@suse.de>
16996
16997 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16998 modifiers.
16999
17000 * regex.c (re_match_2_internal): Correct matching of a charset
17001 against latin-1 characters.
17002
17003 2008-03-16 Kenichi Handa <handa@m17n.org>
17004
17005 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17006 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17007 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17008 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17009 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17010 CHAR_STRING_ADVANCE.
17011 (produce_chars): Fix for the case that the source and the
17012 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17013 instead of CHAR_STRING_ADVANCE.
17014 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17015 STRING_CHAR_ADVANCE.
17016
17017 2008-03-15 Andreas Schwab <schwab@suse.de>
17018
17019 * regex.c (re_match_2_internal): Correct matching of eight bit
17020 characters in unibyte strings.
17021
17022 2008-03-15 Martin Rudalics <rudalics@gmx.at>
17023
17024 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17025 at end of range when it coincides with the end of the buffer.
17026
17027 2008-03-14 Eli Zaretskii <eliz@gnu.org>
17028
17029 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17030
17031 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17032
17033 2008-03-14 Jason Rumney <jasonr@gnu.org>
17034
17035 * editfns.c (initial_tz): New variable.
17036 (syms_of_editfns): Initialize it.
17037 (Fset_time_zone_rule): Set it when first called.
17038 Use it when TZSTRING is nil.
17039
17040 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17041 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17042 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17043 (globals_of_w32fns): Initialize them.
17044 (compute_tip_xy): Use them to position tooltips.
17045
17046 2008-03-14 Glenn Morris <rgm@gnu.org>
17047
17048 * emacs.c (main): Revert previous change.
17049 (standard_args): Revert -internal-script back to -scriptload,
17050 and remove the long-option form.
17051
17052 2008-03-13 Glenn Morris <rgm@gnu.org>
17053
17054 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17055 Remove option -enable-font-backend.
17056
17057 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17058
17059 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17060
17061 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17062
17063 * xterm.c (x_connection_closed): For GTK: If this is the last
17064 terminal just exit without closing the display.
17065
17066 2008-03-11 Jason Rumney <jasonr@gnu.org>
17067
17068 * w32font.c (w32font_full_name): Use floor to round.
17069
17070 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17071
17072 * sound.c (alsa_configure): Declare vol at beginning of block.
17073
17074 * fontset.c (Ffontset_info): Remove extra semicolon.
17075
17076 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17077
17078 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17079 size of resulting string.
17080
17081 2008-03-10 Jason Rumney <jasonr@gnu.org>
17082
17083 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17084
17085 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17086
17087 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17088 Don't pretend as if characters with display property haven't been
17089 consumed for string-replacing-string case.
17090
17091 2008-03-08 Kim F. Storm <storm@cua.dk>
17092
17093 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17094 (get_next_display_element, next_element_from_string)
17095 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17096
17097 2008-03-08 Andreas Schwab <schwab@suse.de>
17098
17099 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17100
17101 2008-03-06 Jason Rumney <jasonr@gnu.org>
17102
17103 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17104 when charset not specified. Only translate ANSI to unicode when
17105 font_type is truetype.
17106 (w32font_coverage_ok): New function.
17107 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17108
17109 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17110
17111 * lread.c (Fread_char): Resolve modifiers.
17112 (Fread_char_exclusive): Likewise.
17113
17114 * character.c (char_resolve_modifier_mask): New function.
17115 (char_string): Use char_resolve_modifier_mask.
17116 (Fchar_resolve_modifiers): New function.
17117 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17118 function.
17119
17120 2008-03-04 Jason Rumney <jasonr@gnu.org>
17121
17122 * makefile.w32-in: Always include w32font.c in the build.
17123 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17124
17125 2008-03-04 Andreas Schwab <schwab@suse.de>
17126
17127 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17128 (versionclean): Likewise.
17129
17130 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
17131
17132 * .cvsignore: Add oo.
17133
17134 2008-03-03 Andreas Schwab <schwab@suse.de>
17135
17136 * coding.c (decode_coding_object): Inhibit gap shrinking while
17137 decoding in place.
17138
17139 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17140
17141 * w32term.c: Remove unused include "gnu.h".
17142 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17143
17144 * gnu.h: Rename to ...
17145 * emacs-icon.h: ... this.
17146 * xterm.c: Use emacs-icon.h instead of gnu.h.
17147 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17148
17149 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
17150
17151 * w32font.c: Include math.h.
17152
17153 2008-03-03 Jason Rumney <jasonr@gnu.org>
17154
17155 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17156 Compute options separately.
17157 (w32font_open_internal): Set glyph_idx before caching metrics.
17158
17159 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17160 Define if system headers don't.
17161 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17162 (w32font_encode_char): Don't declare here.
17163
17164 * w32font.c (Quniscribe, QCformat): New symbols.
17165 (syms_of_w32font): Define them.
17166 (w32font_has_char): Indicate uncertainty.
17167 (w32font_encode_char): Encode as glyph point. Make static.
17168 (recompute_cached_metrics): New function.
17169 (w32font_open_internal): Use it. Set font to use glyph points
17170 initially. Set format based on type of font.
17171 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17172 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17173 on it. Set format based on information available here.
17174 (add_font_entity_to_list): Identify backend based on opentype_only.
17175
17176 2008-03-02 Andreas Schwab <schwab@suse.de>
17177
17178 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17179
17180 * coding.c (decode_coding_big5, produce_chars):
17181 Fix typos in last change.
17182
17183 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17184
17185 * gnu.h: New icon.
17186
17187 2008-03-02 Kenichi Handa <handa@m17n.org>
17188
17189 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17190 `dos', don't decode '\r' if that is the last in the source.
17191 (decode_coding_utf_16, decode_coding_emacs_mule)
17192 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17193 (decode_coding_raw_text, decode_coding_charset): Likewise.
17194 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17195
17196 2008-03-01 Jason Rumney <jasonr@gnu.org>
17197
17198 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17199
17200 2008-03-01 Kim F. Storm <storm@cua.dk>
17201
17202 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17203
17204 2008-03-01 Jason Rumney <jasonr@gnu.org>
17205
17206 * w32font.c (w32font_full_name): New function.
17207 (w32font_open_internal): Use it.
17208
17209 2008-03-01 Kim F. Storm <storm@cua.dk>
17210
17211 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17212
17213 2008-03-01 Jason Rumney <jasonr@gnu.org>
17214
17215 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17216
17217 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17218
17219 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17220 xg_frame_resized when the event is for the edit widget.
17221
17222 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17223
17224 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17225 set_char_size.
17226 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17227 operations on widgets here. Just set frame size if needed.
17228 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17229 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17230 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17231 the whole frame.
17232 (xg_create_tool_bar): Move attachment of the tool bar to
17233 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17234 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17235
17236 2008-03-01 Jason Rumney <jasonr@gnu.org>
17237
17238 * w32fns.c (w32_msg_pump): Disable debug code.
17239
17240 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17241
17242 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17243
17244 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17245
17246 * xdisp.c (next_overlay_string): Don't set
17247 overlay_strings_at_end_processed_p if we're currently reading from
17248 a display string.
17249
17250 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17251
17252 * xdisp.c (get_overlay_strings_1): Fix typo.
17253
17254 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17255
17256 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17257
17258 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17259
17260 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17261
17262 * xdisp.c (display_mode_element): Cancel the previous change.
17263 (decode_mode_spec): Likewise.
17264 (handle_auto_composed_prop): Don't make composition if it->string
17265 is a string.
17266
17267 2008-02-27 Kim F. Storm <storm@cua.dk>
17268
17269 * lisp.h (GLYPH): Change type from int to struct with separate char
17270 and face_id members.
17271 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17272 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17273 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17274 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17275 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17276 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17277 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17278 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17279 handle new Lisp glyph code encoding, either an integer or a cons.
17280
17281 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17282 (GLYPH_ALIAS): Delete.
17283 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17284 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17285 (GLYPH_FROM_CHAR): Replace macro by ...
17286 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17287
17288 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17289 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17290 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17291 (GLYPH_INVALID_P): New macro.
17292 (spec_glyph_lookup_face): Update prototype.
17293
17294 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17295 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17296 new glyph code encoding.
17297 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17298 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17299
17300 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17301 Adapt to new glyph type and new glyph code encoding.
17302
17303 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17304
17305 * indent.c (current_column, current_column_1, Fmove_to_column)
17306 (compute_motion): Adapt to new glyph code encoding.
17307
17308 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17309
17310 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17311
17312 * process.c (wait_reading_process_output): Check for window
17313 changes caused by timers.
17314 Suggested by Johan Bockgård.
17315
17316 2008-02-27 Glenn Morris <rgm@gnu.org>
17317
17318 * emacs.c (USAGE1): Add `--disable-font-backend'.
17319
17320 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17321
17322 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17323 is made to the buffer.
17324
17325 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17326
17327 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17328 (face_at_string_position):
17329 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17330 (face_at_string_position):
17331 * xdisp.c (display_string, next_overlay_change):
17332 * buffer.h (overlays_at):
17333 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17334 Update callers.
17335
17336 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
17337
17338 * editfns.c (Fformat): Doc fix.
17339
17340 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
17341
17342 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17343 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17344 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17345
17346 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17347
17348 * buffer.c (Fbuffer_swap_text): New function.
17349 (syms_of_buffer): Defsubr it.
17350
17351 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
17352
17353 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17354
17355 2008-02-25 Jason Rumney <jasonr@gnu.org>
17356
17357 * w32font.c (w32font_draw): Draw one character at a time when padding.
17358
17359 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17360
17361 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17362 Handle a nil arg. Use run_window_configuration_change_hook.
17363 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17364 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17365 Use run_window_configuration_change_hook.
17366
17367 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17368
17369 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17370 1-pixel width.
17371
17372 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17373
17374 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17375 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17376 if the glyph in the font is zero pixel with.
17377
17378 * dispextern.h (struct glyph_string): New member padding_p.
17379
17380 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17381
17382 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17383
17384 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17385
17386 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17387
17388 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17389
17390 2008-02-25 Jason Rumney <jasonr@gnu.org>
17391
17392 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17393
17394 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17395
17396 Allow fine-grained image-cache flushing.
17397 * dispextern.h (struct image): Add `dependencies' field.
17398 (clear_image_caches): Change arg to Lisp_Object.
17399 * image.c (make_image): Initialize `dependencies' field.
17400 (clear_image_cache): Change arg to allow fine-grained flushing.
17401 Perform the flush even if image-cache-eviction-delay is nil.
17402 (clear_image_caches): Change arg to Lisp_Object.
17403 (Fclear_image_cache): Expand meaning of the argument.
17404 (mark_image): Mark `dependencies' field.
17405 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17406 (lface_hash): Use XHASH rather than XFASTINT.
17407 (face_at_buffer_position): Fix int -> EMACS_INT position.
17408 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17409 (select_frame_for_redisplay): Remove code duplication.
17410 (redisplay_internal): Adapt arg to call to clear_image_caches.
17411
17412 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17413
17414 * s/vms4-0.h:
17415 * s/vms4-2.h:
17416 * s/vms4-4.h:
17417 * s/vms5-5.h: Remove, unused.
17418
17419 * s/irix5-2.h:
17420 * s/irix6-0.h:
17421 * s/riscos5.h:
17422 * s/mach-bsd4-3.h:
17423 * m/mips4.h: Remove files for obsolete systems.
17424
17425 * Makefile.in:
17426 * filelock.c:
17427 * unexmips.c:
17428 * m/hp9000s300.h:
17429 * m/iris4d.h:
17430 * s/aix3-1.h:
17431 * s/hpux.h:
17432 * s/msdos.h:
17433 * s/usg5-0.h:
17434 * s/usg5-2-2.h:
17435 * s/usg5-2.h:
17436 * s/usg5-3.h: Remove references to obsolete variables.
17437
17438 * s/irix5-0.h: Remove, move all the contents ...
17439 * s/irix6-5.h: ... here. Simplify.
17440 * config.in: Regenerate.
17441
17442 2008-02-24 Jason Rumney <jasonr@gnu.org>
17443
17444 * w32term.c (x_draw_glyph_string_background): Clear the background
17445 manually when cleartype is in use.
17446 (x_draw_glyph_string_foreground): Draw text transparently when
17447 cleartype is in use.
17448
17449 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17450 a font into it unless we have to.
17451
17452 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17453
17454 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17455 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
17456
17457 2008-02-18 Jason Rumney <jasonr@gnu.org>
17458
17459 * w32fns.c (Fw32_shell_execute): Encode parameters.
17460
17461 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17462
17463 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17464
17465 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17466
17467 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17468
17469 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17470
17471 * xterm.c (x_set_offset): Don't change the gravity if
17472 CHANGE_GRAVITY is -1.
17473
17474 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17475
17476 * fileio.c (auto_save_error_occurred): New var.
17477 (auto_save_error): Set it.
17478 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17479 error occurred.
17480
17481 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17482
17483 * w32.c (globals_of_w32): Add initializations for
17484 g_b_init_get_sid_sub_authority and
17485 g_b_init_get_sid_sub_authority_count.
17486
17487 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17488
17489 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17490 (font_parse_xlfd): Use them for sanity check.
17491 (Finternal_set_font_style_table): Make sure the table is bijective.
17492
17493 Consolidate the image_cache to the terminal struct.
17494 * termhooks.h (P_): Remove redundant def.
17495 (struct terminal): New field `image_cache'.
17496 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17497 of FRAME_X_IMAGE_CACHE.
17498 * xterm.h (struct x_display_info): Remove image_cache field.
17499 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17500 * w32term.h (struct w32_display_info): Remove image_cache field.
17501 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17502 * macterm.h (struct mac_display_info): Remove image_cache field.
17503 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17504 * xterm.c (x_term_init):
17505 * w32term.c (w32_term_init):
17506 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17507 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17508 Remove declarations.
17509 (clear_image_caches, mark_image_cache): New declarations.
17510 * xfaces.c (clear_face_cache):
17511 * xdisp.c (redisplay_internal): Use clear_image_caches.
17512 * image.c (clear_image_cache): Don't check that a frame is on
17513 a window-system before checking if it shares the same cache.
17514 (clear_image_caches): New function.
17515 (Fclear_image_cache): Use it.
17516 (mark_image): Move from allo.c.
17517 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17518 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17519 (mark_object): Don't call mark_image_cache for frames.
17520 (mark_terminals): Call mark_image_cache.
17521
17522 * lisp.h (Fdelete_terminal): Declare.
17523
17524 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17525 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17526 wrong_type_argument.
17527
17528 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17529
17530 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17531 malayalam.el, and tamil.el. Add sinhala.el.
17532
17533 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17534
17535 * xterm.c (x_connection_closed): Consolidate identical tests.
17536 (x_delete_terminal): Don't crash if called via x_connection_closed.
17537
17538 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17539
17540 * xdisp.c (decode_mode_spec): New arg string.
17541 (display_mode_element): Adjust for the above change.
17542
17543 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17544
17545 * callint.c (Fcall_interactively): Use AREF.
17546
17547 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17548
17549 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17550
17551 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17552
17553 * xfns.c (Fx_show_tip): Set string to " " if empty.
17554
17555 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17556
17557 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17558 with Qt.
17559
17560 2008-02-17 Kenichi Handa <handa@m17n.org>
17561
17562 * ftfont.c (ftfont_shape): Return Lispy number.
17563
17564 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17565 for GCs.
17566 (Finternal_set_font_selection_order): Call font_update_sort_order
17567 only when enable_font_backend is set.
17568 (realize_x_face): Set face->font_info to that of default face only
17569 when enable_font_backend is set.
17570
17571 * xdisp.c (handle_composition_prop): Set it->c to the fist
17572 character of the composed region.
17573 (fill_composite_glyph_string): Set base_face->font_info to
17574 s->font_info. Get a face for ascii from base_face->ascii_face.
17575 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17576 with a face already decided.
17577 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17578 non-negative.
17579 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17580 call font_prepare_composition unconditionally.
17581
17582 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17583
17584 * xterm.h (struct x_display_info): New member font.
17585
17586 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17587 (x_set_mouse_face_gc, x_new_font): Likewise.
17588 (x_term_init): Setup display_info->font.
17589 (x_delete_terminal): Free display_info->font.
17590
17591 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17592
17593 * ftxfont.c (ftxfont_default_fid): Delete it.
17594 (ftxfont_open): Set xfont->fid to 0.
17595 (ftxfont_end_for_frame): Clear data specific to the frame and the
17596 font-driver.
17597
17598 * xftfont.c (xftfont_default_fid): Delete it.
17599 (xftfont_open): Set xfont->fid to 0.
17600
17601 * fontset.c (FONTSET_OBJLIST): New macro.
17602 (fontset_find_font): Update font-object list of the fontset.
17603 (free_realized_fontset): New function.
17604 (free_face_fontset): Call free_realized_fontset.
17605 (Ffont_info): Call font_close_object only when enable_font_backend
17606 is set.
17607
17608 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17609 [HAVE_NTGUI]: Include w32term.h.
17610 [MAC_OS]: Include macterm.ch.
17611 (font_otf_ValueRecord): Use make_number.
17612 (font_finish_cache): Fix handling of reference count.
17613 (font_clear_cache): Update num_fonts.
17614 (font_open_entity): Update smallest_char_width and
17615 smallest_font_height of the frame.
17616 (font_close_object): Update num_fonts.
17617 (Fclear_font_cache): Fix finding the target cache data.
17618
17619 2008-02-16 Glenn Morris <rgm@gnu.org>
17620
17621 * fontset.c (Finternal_char_font): Fix compilation warning.
17622
17623 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17624
17625 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17626 instead of char arrays. Enlarge the size of array passed to
17627 get_token_information.
17628
17629 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17630 warnings.
17631
17632 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17633
17634 * .gdbinit: Don't set `args', it breaks gdb --args.
17635
17636 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17637
17638 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17639 within a narrowed buffer.
17640
17641 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17642
17643 * coding.c (decode_coding_object, encode_coding_object):
17644 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17645
17646 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17647
17648 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17649 hardcoding 1.
17650 (detect_coding_system):
17651 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17652 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17653 * insdel.c (insert_from_gap):
17654 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17655 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17656 (string_to_multibyte):
17657 * character.c (chars_in_text, multibyte_chars_in_text):
17658 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17659
17660 * character.h (FETCH_STRING_CHAR_ADVANCE)
17661 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17662 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17663 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17664
17665 * casefiddle.c (casify_region): Only call after-change and composition
17666 functions on the part of the region that was changed.
17667
17668 * keyboard.c (read_avail_input):
17669 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17670
17671 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17672
17673 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17674 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17675
17676 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17677
17678 * w32menu.c (push_submenu_start, push_submenu_end)
17679 (push_left_right_boundary, push_menu_pane, push_menu_item):
17680 * keyboard.c (read_key_sequence): Don't pass args with side effects
17681 to AREF, it fails when compiling with -DENABLE_CHECKING.
17682
17683 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17684
17685 * Makefile.in (${lispsource}international/charprop.el):
17686 Delete this target.
17687
17688 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17689 emacs-unicode-2.
17690
17691 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17692
17693 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17694
17695 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17696
17697 * frame.c (Qnoelisp): New symbol.
17698 (syms_of_frame): Initialize it.
17699 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17700 harmless Elisp code, from a strong `force' from x_connection_closed.
17701 * frame.h (Qnoelisp): Declare.
17702 * xterm.c (x_connection_closed): Pass `noelisp'.
17703
17704 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17705 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17706 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17707 rather than `int' for the type of `type'.
17708
17709 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17710
17711 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17712
17713 * Makefile.in (GNUC): Remove support for gcc-1.x.
17714
17715 2008-02-10 Richard Stallman <rms@gnu.org>
17716
17717 * lisp.h (ASET): Use AREF, not ASLOT.
17718
17719 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17720
17721 * lisp.h (ASET): Check bounds.
17722
17723 2008-02-10 Glenn Morris <rgm@gnu.org>
17724
17725 * buffer.c (mode-name): Doc fix.
17726
17727 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17728
17729 * Makefile.in:
17730 * emacs.c:
17731 * gmalloc.c:
17732 * keyboard.c:
17733 * lisp.h:
17734 * m/ibm370aix.h:
17735 * process.c:
17736 * regex.c:
17737 * s/hpux.h:
17738 * sysdep.c:
17739 * sysselect.h:
17740 * systty.h:
17741 * unexec.c:
17742 * w32term.c:
17743 * xsmfns.c:
17744 * xterm.c: Remove code that deals with obsolete variables.
17745
17746 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17747
17748 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17749 nothing else needs it anymore.
17750
17751 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17752
17753 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17754 instead of unibyte_char_to_multibyte.
17755
17756 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17757
17758 * s/gnu-linux.h: Remove commented out code.
17759
17760 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17761
17762 * Makefile.in: Update what RMS says about using autoconf.
17763 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17764 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17765 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17766 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17767
17768 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17769
17770 * keymap.c (Fkey_description): Move side effect outside of macro call.
17771
17772 * xfaces.c (Finternal_make_lisp_face):
17773 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17774
17775 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17776 (syms_of_fontset): Use ASET.
17777
17778 * fns.c (concat): Move side effect outside of macro call.
17779 (hash_clear): Use ASET.
17780
17781 2008-02-08 Richard Stallman <rms@gnu.org>
17782
17783 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17784 If FORCE, and frame has a surrogate minibuffer for another frame,
17785 delete the other frame first.
17786
17787 2008-02-07 Timo Savola <timo.savola@iki.fi>
17788
17789 * xterm.c (x_detect_focus_change): Handle embed client message.
17790 (handle_one_xevent): Ditto.
17791 (handle_one_xevent): If embedded and we get a button press/release,
17792 request focus.
17793 (xembed_set_info, xembed_send_message): New functions.
17794 (x_make_frame_visible): Call xembed_set_info if embedded.
17795 (x_make_frame_invisible): Call xembed_set_info if embedded.
17796 (x_term_init): Initialize Xatom_XEMBED.
17797 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17798 (x_iconify_frame): Ditto.
17799
17800 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17801 (enum xembed_info, enum xembed_message, enum xembed_focus)
17802 (enum xembed_modifier, enum xembed_accelerator): New.
17803 (xembed_set_info, xembed_send_message): Declare.
17804 (FRAME_X_EMBEDDED_P): New.
17805
17806 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17807 gtk_plug_new.
17808
17809 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17810 window ID of a frame.
17811 (x_window): Reparent frame if embedded.
17812 (Fx_create_frame): Don't set border width if embedded.
17813
17814 * emacs.c (USAGE3): Add --parent-id.
17815 (standard_args): Ditto.
17816
17817 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17818
17819 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17820
17821 2008-02-07 Jim Meyering <meyering@redhat.com>
17822
17823 Use "do...while (0)", not "if (1)...else" in macro definitions.
17824 The latter provokes a warning from gcc about the empty else, when
17825 followed by ";". Also, without that trailing semicolon, it would
17826 silently swallow up any following statement.
17827 * syntax.h (SETUP_SYNTAX_TABLE)
17828 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17829 * buffer.h (DECODE_POSITION): Likewise.
17830 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17831 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17832 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17833 (FETCH_CHAR_ADVANCE): Likewise.
17834 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17835
17836 2008-02-07 Jim Meyering <meyering@redhat.com>
17837
17838 * lread.c [lint]: Don't include <sys/inode.h>.
17839
17840 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17841
17842 * xselect.c (x_handle_dnd_message):
17843 * xmenu.c (digest_single_submenu, xmenu_show):
17844 * xdisp.c (with_echo_area_buffer_unwind_data)
17845 (format_mode_line_unwind_data, unwind_format_mode_line)
17846 (display_menu_bar):
17847 * eval.c (Ffetch_bytecode):
17848 * doc.c (store_function_docstring):
17849 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17850 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17851 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17852
17853 2008-02-07 Kenichi Handa <handa@m17n.org>
17854
17855 * ftxfont.c (ftxfont_open): Don't set
17856 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17857
17858 * ftfont.c (ftfont_open): Fix previous change.
17859
17860 2008-02-06 Jason Rumney <jasonr@gnu.org>
17861
17862 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17863 Use cached metrics for ASCII characters.
17864 (w32font_open_internal): Don't set font's owning_frame.
17865 Cache metrics for ASCII characters.
17866
17867 * w32font.h (struct w32font_info): Add ascii_metrics.
17868 Remove owning_frame.
17869
17870 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17871
17872 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17873 to negative value.
17874
17875 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17876
17877 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17878
17879 * charset.c (syms_of_charset): Set QCtest and Qeq.
17880
17881 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17882
17883 * process.c (Fstart_process):
17884 * callproc.c (Fcall_process): Handle the case where
17885 Funhandled_file_name_directory returns nil.
17886
17887 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17888 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17889 * font.c (check_gstring): Use them and AREF to access the vector before
17890 we know it's really a gstring.
17891 (Ffont_shape_text): Fix typo.
17892 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17893
17894 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17895 Declare.
17896
17897 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17898
17899 2008-02-05 Jason Rumney <jasonr@gnu.org>
17900
17901 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17902 Set smallest_font_height and smallest_char_width in display info.
17903
17904 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17905
17906 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17907
17908 2008-02-05 Miles Bader <miles@gnu.org>
17909
17910 * xfaces.c (get_lface_attributes, merge_named_face)
17911 (lookup_named_face, lookup_derived_face, realize_named_face):
17912 Revert 2008-02-01 change by cyd@stupidchicken.com.
17913
17914 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17915
17916 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17917 fallback fonts.
17918 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17919
17920 2008-02-04 Jason Rumney <jasonr@gnu.org>
17921
17922 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17923 set full_name.
17924 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17925
17926 2008-02-03 Jason Rumney <jasonr@gnu.org>
17927
17928 * makefile.w32-in (OBJ1): Include font.o here.
17929 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17930
17931 2008-02-02 Jason Rumney <jasonr@gnu.org>
17932
17933 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17934
17935 2008-02-01 Jason Rumney <jasonr@gnu.org>
17936
17937 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17938
17939 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17940
17941 2008-02-01 Andreas Schwab <schwab@suse.de>
17942
17943 * Makefile.in (shortlisp, lisp): Update for rename of
17944 ../lisp/language/myanmar.el.
17945
17946 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17947
17948 * xfaces.c (get_lface_attributes): Delete function.
17949 (merge_named_face, lookup_named_face, lookup_derived_face)
17950 (realize_named_face): Call lface_from_face_name directly, and use
17951 the fact that merge_face_vectors does not alter its FROM argument.
17952
17953 2008-02-01 Jason Rumney <jasonr@gnu.org>
17954
17955 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17956 input in the default locale. Handle non-Unicode multibyte input.
17957
17958 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17959
17960 * fontset.c (reorder_font_vector): Exclude nil elements from the
17961 font group. Don't try multiple fonts.
17962 (fontset_font): Adjust for the above change.
17963 (Finternal_char_font): Return nil if the found font doesn't
17964 contain the character ch.
17965
17966 * Makefile.in (lisp, shortlisp): Add cham.el.
17967
17968 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17969
17970 * font.h (FONTP): Make it return 1 also for a font-object.
17971
17972 * .gdbinit (xfontset): New function.
17973
17974 * font.c (font_find_for_lface): Check if the character C is
17975 supported or not only for the first font.
17976
17977 * fontset.c (reorder_font_vector): Fix typo.
17978 (fontset_find_font): Don't add a font-spec specifying a script.
17979 Use 0 (not Qt) for the indication of empty font-group. Change the
17980 format of RFONT-DEF. Return Qt if no font in the font-group
17981 support the character.
17982 (fontset_font): Adjust for the above change. If no font was
17983 found the character, remember that.
17984 (face_for_char): Adjust for the change of RFONT-DEF.
17985 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17986 no font for the target.
17987 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17988
17989 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17990
17991 * font.c (font_load_for_face): Handle the case that the font in
17992 face->lface is a string.
17993
17994 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17995
17996 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17997
17998 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17999
18000 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18001 Fix previous change. If the frame is not on a window system,
18002 signal an error.
18003
18004 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18005
18006 * coding.c (decode_coding_object, encode_coding_object): Adjust
18007 marker positions after conversion.
18008
18009 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18010
18011 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18012
18013 * font.c (font_find_for_lface): Fix the handling of the return
18014 value of font_has_char.
18015 (Ffont_shape_text): Fix previous change.
18016
18017 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18018 (fontset_ref_and_range): Delete it.
18019 (fontset_find_font): Call char_table_ref_and_range instead of
18020 FONTSET_REF_AND_RANGE.
18021 (make_fontset): Don't setup font groups of Latin here.
18022 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18023 (new_fontset_from_font): Make the specified font the default for
18024 all Latin characters.
18025
18026 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18027
18028 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18029 is on a window system before accessing the fontset of the frame.
18030
18031 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18032
18033 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18034
18035 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18036 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18037
18038 * font.c (Ffont_shape_text): If the font driver doesn't have a
18039 shaper function, make zero-width glyphs to have at least one-pixel
18040 width. Fix setting of `to' field of glyphs.
18041
18042 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18043
18044 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18045 glyphs.
18046
18047 * font.h (struct font_driver): Improve docstring of member `shape'.
18048
18049 2008-02-01 Kenichi Handa <handa@m17n.org>
18050
18051 * composite.c (syms_of_composite): Fix docstring of
18052 auto-composition-function.
18053
18054 * font.h (LGLYPH_SIZE): New macro.
18055
18056 * font.c (Ffont_fill_gstring): Stop filling when a character not
18057 supported by the font is found.
18058 (Ffont_shape_text): When a shape callback function returns nil,
18059 try at most two more times with larger gstring.
18060 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18061
18062 * xdisp.c (handle_auto_composed_prop): Change the argument to
18063 auto-composition-function.
18064
18065 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18066 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18067 Lispy glyph and store it in the lgstring.
18068
18069 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18070
18071 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18072
18073 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18074
18075 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18076
18077 * fontset.c (Vfont_encoding_charset_alist): New variable.
18078 (syms_of_fontset): DEFVAR it.
18079 (reorder_font_vector, fontset_find_font): Optimize for the case of
18080 no need of reordering.
18081 (face_for_char): Map the charset property by
18082 Vfont_encoding_charset_alist.
18083
18084 2008-02-01 Jason Rumney <jasonr@gnu.org>
18085
18086 * w32font.c (logfonts_match): Don't check adstyle here.
18087 (font_matches_spec): Check here against physical font instead.
18088 (add_font_entity_to_list): Avoid some substitutions.
18089
18090 * font.c (font_parse_fcname): Default weight and slant to normal.
18091 (font_score): Prefer normal fonts if weight or slant unspecified.
18092 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18093 match freetype scores.
18094
18095 2008-02-01 Jason Rumney <jasonr@gnu.org>
18096
18097 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18098 font, as it may have been deleted.
18099 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18100 most common hyphenless variation.
18101 (logfonts_match): Check generic family.
18102 (font_matches_spec): Don't check generic family here.
18103 (fill_in_logfont): Set generic family based on adstyle.
18104
18105 * w32font.h (w32font_get_cache): Update declaration.
18106
18107 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18108
18109 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18110
18111 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18112 If none of the new drivers are available, call font_update_drivers
18113 with the old drivers.
18114
18115 * w32font.c (w32font_get_cache): Adjust the argument type.
18116
18117 * xfont.c (xfont_get_cache): Adjust the argument type.
18118
18119 * font.h (struct font_driver): Change argument type of get_cache.
18120
18121 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18122
18123 * font.c (Ffont_get): Fix arguments to Fassoc.
18124 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18125 (font_clear_cache): New function.
18126 (font_list_entities, font_matching_entity): Use font_get_cache.
18127 (font_update_drivers): Call font_clear_cache when finishing a driver.
18128
18129 * fontset.c (fontset_find_font): Fix previous change.
18130
18131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18132
18133 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18134 dpyinfo->font_table.
18135 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18136 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18137
18138 * font.c (font_at): Handle the case that the arg C is negative.
18139 Handle the unibyte case.
18140 (Ffont_at): Call font_at with the arg C -1.
18141
18142 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18143 the position here, and call font_at with the arg C -1.
18144 Don't check the range of the existing composition at the point.
18145
18146 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18147
18148 * fontset.c (fontset_add): New args charset_id and family.
18149 Change caller.
18150 (load_font_get_repertory, fontset_find_font): Assume that
18151 font_spec is always a font-spec object.
18152 (Fset_fontset_font): Always store a font-spec object in a fontset.
18153
18154 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18155 instead of get_property_and_range.
18156
18157 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18158
18159 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18160 (xftfont_open): Don't keep locking face.
18161 (xftfont_close): Don't unlock face.
18162 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18163
18164 * fontset.c (fontset_find_font): Don't prefer a font of
18165 supplementary charset.
18166
18167 2008-02-01 Kenichi Handa <handa@m17n.org>
18168
18169 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18170 script, langsys_tag to langsys, new member script.
18171 (OTF_TAG_STR): Terminate by '\0'.
18172 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
18173 listing to the script specified in that property. Fix arg to
18174 OTF_check_features.
18175
18176 2008-02-01 Jason Rumney <jasonr@gnu.org>
18177
18178 * w32font.h: New file.
18179
18180 * w32font.c: Include it.
18181 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18182 (w32font_open): Set owning_frame.
18183 (w32font_text_extents): Use owning_frame.
18184 (struct font_callback_data): Add opentype_only field.
18185 (add_font_entity_to_list): Use it to filter fonts.
18186 Don't check against full name.
18187 (w32font_list_internal): New function.
18188 (w32font_list): Use it.
18189 (w32font_match_internal): New function.
18190 (w32font_match): Use it.
18191 (w32font_open_internal): New function.
18192 (w32font_open): Use it.
18193 (w32font_get_cache, w32font_close, w32font_has_char)
18194 (w32font_encode_char, w32font_text_extents, w32font_draw):
18195 Make non-static.
18196
18197 * makefile.w32-in (w32font.o): Depend on w32font.h.
18198
18199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18200
18201 * charset.c (Fdefine_charset_internal): Record a supplementary
18202 charset at the tail of Vcharset_order_list.
18203
18204 * font.c (Ffont_shape_text): Fix the return value.
18205
18206 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18207
18208 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18209
18210 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18211
18212 * ftfont.c (struct OpenTypeSpec): New struct.
18213 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18214 (ftfont_get_open_type_spec): New function.
18215 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18216
18217 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18218
18219 2008-02-01 Jason Rumney <jasonr@gnu.org>
18220
18221 * w32font.c (add_font_entity_to_list): Compare only the beginning
18222 of full name.
18223
18224 2008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18227 Never return HANDLED_RECOMPUTE_PROPS.
18228
18229 2008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * font.c (font_gstring_produce): Delete it.
18232
18233 * composite.h (COMPOSITION_METHOD):
18234 Handle COMPOSITION_WITH_GLYPH_STRING.
18235
18236 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18237
18238 * xfont.c (Qx): Delete.
18239 (syms_of_xfont): Don't initialize Qx.
18240
18241 * composite.h (enum composition_method):
18242 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18243
18244 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18245
18246 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18247 (choose_face_font): Accept new form of font-spec.
18248
18249 * frame.h (font_driver_list): Declare it unconditionally.
18250 (struct frame): Define members font_driver_list and font_data_list
18251 unconditionally.
18252
18253 * fontset.c: Include "font.h" unconditionally.
18254 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18255 (Fset_fontset_font): Accept a font-spec object.
18256
18257 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18258 PIXEL_SIZE part a wild card.
18259
18260 * dispextern.h (struct glyph_string): Define members clip and
18261 num_clips unconditionally.
18262 (struct face): Define members font_info and extra unconditionally.
18263
18264 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18265 ftfont_info only when HAVE_LIBOTF is defined.
18266
18267 2008-02-01 Andreas Schwab <schwab@suse.de>
18268
18269 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18270 and end.
18271
18272 2008-02-01 Jason Rumney <jasonr@gnu.org>
18273
18274 * w32font.c (w32font_driver): Add new fields.
18275
18276 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18277
18278 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18279 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18280 (LIBES): Add @M17N_FLT_CFLAGS@.
18281
18282 * composite.c (compose_text): Don't treat the new style
18283 composition specially.
18284
18285 * emacs.c (main): Call syms_of_font unconditionally.
18286
18287 * font.h (FONT_ENTITY_NOT_LOADABLE)
18288 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18289 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18290 (struct font_driver): New member shape.
18291 (font_registry_charsets): Extern it.
18292 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18293 (font_otf_capability, font_drive_otf): Delete their externs.
18294
18295 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18296 (font_charset_alist, font_registry_charsets): Move from xfont.c
18297 and rename.
18298 (font_prop_validate_otf): New function.
18299 (font_property_table): Register it for QCotf.
18300 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18301 (font_drive_otf): Delete.
18302 (font_prepare_composition): New arg F. Adjust for the change of
18303 lispy gstring.
18304 (font_find_for_lface): New arg C.
18305 (font_load_for_face): Adjust for the change of font_find_for_lface.
18306 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18307 lispy gstring.
18308 (Ffont_shape_text): New function.
18309 (Fopen_font): If the font size is not given, use 12-pixel.
18310 (Ffont_at): New arg STRING.
18311 (syms_of_font): Initalize font_charset_alist.
18312 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18313 conditionally.
18314
18315 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18316 fonts of the same font-spec. Change the format of RFONT-DEF.
18317 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18318 Adjust for the change of RFONT-DEF.
18319 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18320
18321 * ftfont.h: New file.
18322
18323 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18324 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18325 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18326 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18327 font_otf_capability and font_drive_otf, set ftfont_shape.
18328 (ftfont_list): Adjust for the change of :otf property value.
18329 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18330 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18331 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18332 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18333 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18334 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18335
18336 * w32term.c (x_draw_composite_glyph_string_foreground):
18337 Adjust for the change of lispy gstring.
18338
18339 * xdisp.c (handle_composition_prop): Adjust for the change of
18340 lispy gstring. Call a function for auto-composition with the
18341 third arg it->window.
18342 (fill_composite_glyph_string): Adjust for the change of lispy string.
18343 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18344
18345 * xfaces.c (set_font_frame_param): Adjust for the change of
18346 font_find_for_lface.
18347
18348 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18349 (xfont_registry_charsets): Likewise. Change caller.
18350 (syms_of_xfont): Don't handle x_font_charset_alist.
18351
18352 * xftfont.c: Include "ftfont.h".
18353 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18354 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18355 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18356 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18357 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18358 Set xftfont_driver.shape to xftfont_shape.
18359
18360 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18361 the change of lispy gstring.
18362
18363 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18364
18365 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18366
18367 2008-02-01 Jason Rumney <jasonr@gnu.org>
18368
18369 * w32font.c (w32font_draw): Fill background manually.
18370
18371 2008-02-01 Jason Rumney <jasonr@gnu.org>
18372
18373 * font.c (Qfontp): Remove unused symbol.
18374 (QCantialias): New symbol.
18375 (syms_of_font): Define it.
18376 (font_property_table): Set a validator for QCantialias.
18377
18378 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18379 Define if not already.
18380 (QCfamily): Share with xfaces.c.
18381 (Qstandard, Qsubpixel, Qnatural): New symbols.
18382 (syms_of_w32font): Define them. Don't define QCfamily here.
18383 (w32_antialias_type, lispy_antialias_type): New functions.
18384 (w32_enumfont_pattern_entity): New arg requested_font.
18385 Set antialias parameter if non-default was requested.
18386 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18387
18388 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18389
18390 * lread.c (read1): Undo the previous change.
18391
18392 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18393
18394 * frame.c (Fdelete_frame): Call font_update_drivers only when
18395 USE_FONT_BACKEND is defined.
18396
18397 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18398
18399 * font.h (struct font_bitmap): New member bits_per_pixel.
18400 (struct font_driver): New members start_for_frame and end_for_frame.
18401 (struct font_data_list): New struct.
18402 (font_put_frame_data, font_get_frame_data): Extern them.
18403
18404 * frame.h (struct frame): New member font_data_list.
18405
18406 * font.c (font_update_drivers): Call driver->start_for_frame and
18407 driver->end_for_frame at proper timings.
18408 (font_put_frame_data, font_get_frame_data): New functions.
18409 (Ffont_spec): Add usage in the docstring.
18410
18411 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18412 (Fdelete_frame): Call font_update_drivers.
18413
18414 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18415 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18416 (xftfont_get_xft_draw): New function.
18417 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18418 (xftfont_end_for_frame): New function.
18419 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18420
18421 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18422 Change argument. Cache GCs in the per-frame data.
18423 (struct ftxfont_frame_data): New struct.
18424 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18425 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18426 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18427 (ftxfont_end_for_frame): New function.
18428 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18429
18430 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18431
18432 2008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * xselect.c (Vselection_coding_system)
18435 (Vnext_selection_coding_system): Delete them.
18436 (syms_of_xselect): Don't declare selection-coding-system and
18437 next-selection-coding-system. They are declared in select.el.
18438
18439 2008-02-01 Jason Rumney <jasonr@gnu.org>
18440
18441 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18442
18443 * w32fns.c: Include imm.h.
18444 (get_composition_string_fn, get_ime_context_fn): New optional
18445 system functions.
18446 (globals_of_w32fns): Load them from imm32.dll.
18447 (ignore_ime_char): New flag.
18448 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18449 WM_IME_ENDCOMPOSITION messages.
18450
18451 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18452 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18453
18454 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18455
18456 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18457 (READCHAR_REPORT_MULTIBYTE): New macro.
18458 (readchar): New 2nd arg MULTIBYTE.
18459 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18460 Make symbol's name multibyte according to the multibyteness of the
18461 source.
18462
18463 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18464
18465 * xfaces.c (face_for_overlay_string): Call lookup_face with
18466 correct arguments (fix of synching with the trunk).
18467
18468 2008-02-01 Kenichi Handa <handa@m17n.org>
18469
18470 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18471 (font_prop_validate_non_neg, font_prop_validate_spacing):
18472 Delete argument prop_index.
18473 (font_property_table): Change arguments to validater. Change Callers.
18474 (font_lispy_object): Delete.
18475 (font_at): Use font_find_object instead fo font_lispy_object.
18476
18477 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18478
18479 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18480 and file names.
18481
18482 2008-02-01 Jason Rumney <jasonr@gnu.org>
18483
18484 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18485 (font_matches_spec): Remove debug output.
18486 (add_font_entity_to_list): Avoid using substituted fonts.
18487
18488 2008-02-01 Jason Rumney <jasonr@gnu.org>
18489
18490 * doc.c (Fsnarf_documentation):
18491 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18492
18493 2008-02-01 Miles Bader <miles@gnu.org>
18494
18495 * dispextern.h (struct glyph_row): Only define "clip" field if
18496 HAVE_WINDOW_SYSTEM is defined.
18497
18498 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18499
18500 Fix up multi-tty merge.
18501
18502 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18503 and indentation.
18504
18505 * xfaces.c (free_realized_face, clear_face_gcs):
18506 Include font_done_for_face in the input_blocked section, just in case.
18507
18508 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18509 (get_char_face_and_encoding): Undo last change and remove the *other*
18510 duplicate definition (i.e. keep the one that's better scoped and that
18511 includes code for the font-backend).
18512
18513 * terminal.c (create_terminal): Default keyboard_coding to
18514 `no-conversion' and terminal_coding to `undecided'.
18515
18516 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18517
18518 * fontset.c (free_realized_fontsets): Check that the table entry does
18519 contain a fontset before trying to compare it to `base'.
18520
18521 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18522 syms_of_charset, and syms_of_coding earlier because init_window_once
18523 now needs Vcoding_system_hash_table to be setup.
18524
18525 * coding.h (default_buffer_file_coding): Remove.
18526
18527 * coding.c (default_buffer_file_coding): Remove.
18528 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18529 than ->symbol, and use the terminal-local coding system.
18530 (syms_of_coding): Don't setup the coding-systems that are not
18531 terminal-local.
18532 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18533
18534 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18535 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18536
18537 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18538 in chartab.c and were re-added here by mistake.
18539 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18540
18541 * doc.c (Fsnarf_documentation):
18542 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18543 src to etc.
18544
18545 * ChangeLog.10: Add mistakenly removed entry.
18546
18547 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18548
18549 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18550
18551 2008-02-01 Miles Bader <miles@gnu.org>
18552
18553 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18554 Add extra args to FACE_FOR_CHAR.
18555
18556 2008-02-01 Kenichi Handa <handa@m17n.org>
18557
18558 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18559 in sequence.
18560
18561 * chartab.c (map_sub_char_table, map_char_table): If the range
18562 contains just one character, call the function with that character
18563 even if the depth is not 3.
18564
18565 2008-02-01 Jason Rumney <jasonr@gnu.org>
18566
18567 * w32font.c (w32font_text_extents): Calculate metrics for the
18568 whole string.
18569
18570 2008-02-01 Jason Rumney <jasonr@gnu.org>
18571
18572 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18573
18574 2008-02-01 Jason Rumney <jasonr@gnu.org>
18575
18576 * w32term.c (x_set_glyph_string_clipping): Use
18577 get_glyph_string_clip_rects.
18578 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18579 Adjust for the change of struct glyph_string.
18580
18581 * w32font.c (w32font_draw): Do clipping here.
18582
18583 2008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * xftfont.c (xftfont_draw): Adjust for the change of struct
18586 glyph_string.
18587
18588 * xterm.c (x_set_glyph_string_clipping): Use
18589 get_glyph_string_clip_rects.
18590 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18591 Adjust for the change of struct glyph_string.
18592
18593 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18594 the resulting clip(s}.
18595 (expose_overlaps): Add arg r. Change callers. Set it to
18596 row->clip temporarily.
18597 (expose_window): Redraw rows overlapping the exposed area.
18598
18599 * dispextern.h (struct glyph_row): New member clip.
18600 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18601 clip_height, new member clip, and num_clips.
18602
18603 2008-02-01 Kenichi Handa <handa@m17n.org>
18604
18605 * data.c (Fchar_or_string_p): Fix docstring.
18606
18607 2008-02-01 Kenichi Handa <handa@m17n.org>
18608
18609 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18610 create a temporary XftDraw object.
18611
18612 2008-02-01 Kenichi Handa <handa@m17n.org>
18613
18614 * font.c (Ffontp): Fix docstring.
18615
18616 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18617 strong evidence of ISO-2022.
18618
18619 2008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18622 SYNTAX_ENTRY_FOLLOW_PARENT.
18623
18624 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18625
18626 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18627 its type.
18628 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18629 Update to the new type of weak_hash_tables and next_weak.
18630
18631 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18632 a plain C pointer to Lisp_Hash_Table.
18633
18634 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18635 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18636 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18637 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18638 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18639 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18640 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18641 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18642 (GC_EQ): Remove since they've been identical to their non-GC_
18643 alter-egos ever since the markbit was eradicated.
18644
18645 * alloc.c:
18646 * buffer.c:
18647 * buffer.h:
18648 * data.c:
18649 * fileio.c:
18650 * filelock.c:
18651 * fns.c:
18652 * frame.h:
18653 * lisp.h:
18654 * macterm.c:
18655 * print.c:
18656 * process.c:
18657 * w32fns.c:
18658 * w32menu.c:
18659 * w32term.c:
18660 * xfns.c:
18661 * xmenu.c:
18662 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18663
18664 2008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * chartab.c (map_sub_char_table): Make it work for the top-level
18667 char-table. Fix handling of parent char-table.
18668 (map_char_table): Adjust for the above change.
18669
18670 2008-02-01 Jason Rumney <jasonr@gnu.org>
18671
18672 * w32font.c (Qgdi): Rename from Qw32.
18673
18674 2008-02-01 Jason Rumney <jasonr@gnu.org>
18675
18676 * w32bdf.c (get_quoted_string): Make function static.
18677
18678 2008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18681 bigger ascent and descent than those of the font, use them as
18682 font's ascent and descent.
18683
18684 2008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * Makefile.in (${lispsource}international/charprop.el): Move this
18687 target within "#ifdef HAVE_UNIDATA" and "#endif".
18688
18689 2008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18692 (shortlisp): Add ../lisp/language/tai-viet.el.
18693
18694 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18695
18696 * Makefile.in (${lispsource}international/charprop.el): Depend on
18697 temacs${EXEEXT}.
18698
18699 2008-02-01 Jason Rumney <jasonr@gnu.org>
18700
18701 * w32font.c (w32font_close): Delete the GDI font object.
18702
18703 * w32menu.c: Include character.h.
18704
18705 * w32proc.c: Likewise.
18706
18707 * w32select.c: Likewise.
18708
18709 * makefile.w32-in (w32proc.o): Depend on character.h.
18710
18711 2008-02-01 Jason Rumney <jasonr@gnu.org>
18712
18713 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18714
18715 * w32menu.c (syms_of_w32menu): Likewise.
18716
18717 * w32proc.c (syms_of_ntproc): Likewise.
18718
18719 * w32select.c (syms_of_w32select): Likewise.
18720
18721 * w32term.c (syms_of_w32term): Likewise.
18722
18723 2008-02-01 Jason Rumney <jasonr@gnu.org>
18724
18725 * w32font.c (w32font_draw): Delete brush after using it.
18726
18727 2008-02-01 Jason Rumney <jasonr@gnu.org>
18728
18729 * w32font.c (w32font_open): Don't set font_idx.
18730 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18731 to font settings.
18732 (w32font_draw): Fill background explicitly.
18733
18734 2008-02-01 Jason Rumney <jasonr@gnu.org>
18735
18736 * w32term.c (w32_initialize): Don't call w32font_initialize.
18737
18738 * w32font.c (w32font_info): Remove subranges.
18739 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18740 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18741 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18742 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18743 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18744 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18745 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18746 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18747 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18748 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18749 New symbols.
18750 (font_callback_data): New struct.
18751 (w32font_list, w32font_match): Use it.
18752 (w32font_open): Don't populate subranges.
18753 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18754 (w32font_encode_char): Always return unicode code-point as-is.
18755 (w32font_text_extents): Supply a transformation matrix to
18756 GetGlyphOutline. Never look up by glyph index. Avoid looping
18757 twice. Use unicode version of GetTexExtentPoint32 instead of
18758 glyph index version.
18759 (set_fonts_frame): Remove.
18760 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18761 set frame parameter. Use backward compatible fake foundries.
18762 Save generic family in extra slot under QCfamily. Make width slot
18763 constant. Save QCspacing value. Save list of scripts instead of
18764 binary subranges.
18765 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18766 (add_font_entity_to_list): Use font_callback_data struct. Filter
18767 unwanted fonts.
18768 (add_one_font_entity_to_list): Use font_callback_data struct.
18769 (w32_registry): Default to iso10646_1.
18770 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18771 string font registries. Don't fill in font name if it is a generic
18772 family name, fill family instead. Use spacing, family and script
18773 extra info to fill pitch, family and charset fields.
18774 (list_all_matching_fonts): Use font_callback_data struct.
18775 (unicode_range_for_char): Remove.
18776 (font_supported_scripts): New function.
18777 (w32font_initialize): Remove.
18778 (syms_of_w32font): Update which symbols are defined.
18779
18780 2008-02-01 Jason Rumney <jasonr@gnu.org>
18781
18782 * font.c (font_pixel_size): Reverse assq_no_quit args.
18783
18784 * w32term.h (FONT_WIDTH): Report max width, not average.
18785 (FONT_MAX_WIDTH): Remove.
18786 (FONT_AVG_WIDTH): New macro.
18787
18788 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18789 redefinition of FONT_WIDTH.
18790
18791 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18792 (w32_cache_char_metrics): Use FONT_WIDTH.
18793
18794 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18795
18796 2008-02-01 Jason Rumney <jasonr@gnu.org>
18797
18798 * w32font.c (w32font_open): Make lfHeight negative.
18799
18800 * w32fns.c (x_default_font_parameter): Use new style font name.
18801 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18802
18803 2008-02-01 Jason Rumney <jasonr@gnu.org>
18804
18805 * w32font.c (QCsubranges): New symbol.
18806 (w32font_open, w32font_has_char): Get subranges from subproperty
18807 of extra.
18808 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18809 (syms_of_w32font): Define :subranges symbol.
18810
18811 * font.c (font_put_extra): Expose externally.
18812
18813 * font.h (font_put_extra): Move declaration from font.c.
18814
18815 * font.c (Ffont_get): Use font driver to determine otf capability.
18816 (adjust_anchor): Check if driver defines anchor_point before using.
18817
18818 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18819 (w32font_draw): Use options.
18820 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18821 Fix detection of truetype fonts.
18822 (registry_to_w32_charset): Handle charsets other than iso8859-1
18823 expressed as lisp symbols.
18824 (w32_registry): Express charset as lisp symbol.
18825 (fill_in_logfont): Reverse pixel and point height logic.
18826 Don't set width here. Set quality to default.
18827
18828 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18829 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18830
18831 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18832 Remove redundant loop and allocation.
18833
18834 * makefile.w32-in (font.o, w32font.o): New objects.
18835 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18836 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18837
18838 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18839 STORE_XCHARB a valid l-value.
18840
18841 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18842 calculations for non-Truetype fonts.
18843 (x_draw_glyph_string): Sync with xterm.c.
18844 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18845 Remove redundant code.
18846 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18847
18848 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18849 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18850
18851 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18852 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18853
18854 * w32font.c: New file for w32 font backend.
18855
18856 2008-02-01 Kenichi Handa <handa@m17n.org>
18857
18858 * term.c: Don't include "buffer.h" twice.
18859
18860 2008-02-01 Kenichi Handa <handa@m17n.org>
18861
18862 * character.c (Funibyte_string): New function.
18863 (syms_of_character): Defsubr it.
18864
18865 2008-02-01 Jason Rumney <jasonr@gnu.org>
18866
18867 * w32term.c [USE_FONT_BACKEND]:
18868 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18869 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18870 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18871 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18872 (x_free_frame_resources): Sync with xterm.c.
18873
18874 2008-02-01 Andreas Schwab <schwab@suse.de>
18875
18876 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18877 char-table size.
18878
18879 2008-02-01 Kenichi Handa <handa@m17n.org>
18880
18881 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18882
18883 2008-02-01 Kenichi Handa <handa@m17n.org>
18884
18885 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18886 font_otf_gpos, add font_drive_otf.
18887
18888 * fontset.c (fontset_find_font): Pay attention to font size
18889 specified for a font.
18890 (reorder_font_vector): Check contents of font_def.
18891
18892 * font.c (struct otf_list): Delete it.
18893 (otf_list): Make it a lisp variable.
18894 (otf_open): Use lispy otf_list.
18895 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18896 (check_otf_features): New function.
18897 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18898 New functions.
18899 (font_drive_otf): New function merging font_otf_gsub and
18900 font_otf_gpos.
18901 (font_open_for_lface): New arg spec. Change argument order.
18902 (font_load_for_face): Adjust for the change of font_open_for_lface.
18903 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18904 Ffont_otf_gpos.
18905 (syms_of_font): Staticpro otf_list. Delete defsubr of
18906 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18907
18908 * xfaces.c (set_font_frame_param): Adjust for the change of
18909 font_open_for_lface.
18910
18911 * font.h (font_open_for_lface): Adjust prototype.
18912 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18913 member otf_drive.
18914 (font_otf_gsub, font_otf_gpos): Delete externs.
18915 (font_drive_otf): Extern it.
18916
18917 2008-02-01 Kenichi Handa <handa@m17n.org>
18918
18919 * font.c (font_at): If the window W is not on a window system,
18920 return Qnil.
18921
18922 * coding.c (produce_chars, encode_coding): Don't call
18923 insert_from_gap if no characters to produce.
18924
18925 2008-02-01 Kenichi Handa <handa@m17n.org>
18926
18927 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18928 Fclear_face_cache.
18929
18930 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18931
18932 2008-02-01 Miles Bader <miles@gnu.org>
18933
18934 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18935 Parse "--disable-font-backend" option.
18936 (standard_args): Add "--disable-font-backend" option.
18937
18938 2008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * fontset.c (fontset_find_font): New function.
18941 (fontset_font): Use fontset_find_font.
18942 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18943 Register the specified font for all Latin characters.
18944 (new_fontset_from_font): Register the specified font for all Latin
18945 characters.
18946 (dump_fontset): For a realized fontset, include the base fontset
18947 name in the returned vector.
18948
18949 2008-02-01 Kenichi Handa <handa@m17n.org>
18950
18951 * character.h (CHAR_STRING): Cast C to unsigned on calling
18952 char_string.
18953
18954 * character.c (char_string): Type of arg C changed to unsigned.
18955 Signal an error if C is an invalid character code.
18956
18957 * editfns.c (general_insert_function, Fchar_to_string):
18958 Use CHARACTERP, not INTEGERP.
18959
18960 2008-02-01 Kenichi Handa <handa@m17n.org>
18961
18962 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18963 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18964
18965 * regex.c (analyse_first): Fix for multibyte characters in "case
18966 charset:" and "case categoryspec:".
18967
18968 2008-02-01 Andreas Schwab <schwab@suse.de>
18969
18970 * Makefile.in (LIBES): Move standard libraries to the end.
18971
18972 2008-02-01 Kenichi Handa <handa@m17n.org>
18973
18974 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18975 nonzero, don't shrink the buffer nextb.
18976
18977 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18978
18979 * coding.c (coding_alloc_by_making_gap): New arg offset.
18980 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18981 offset.
18982 (decode_coding_iso_2022): Update coding->safe_charsets.
18983 (decode_coding_gap): Temporarily set
18984 current_buffer->text->inhibit_shrinking to 1.
18985
18986 2008-02-01 Kenichi Handa <handa@m17n.org>
18987
18988 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18989 indexing into elements of s->cmp and s->char2b.
18990
18991 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18992
18993 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18994
18995 2008-02-01 Kenichi Handa <handa@m17n.org>
18996
18997 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18998 target_multibyte instead of multibyte.
18999 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19000 (bcmp_translate): Change the argument name from multibyte to
19001 target_multibyte.
19002
19003 2008-02-01 Kenichi Handa <handa@m17n.org>
19004
19005 These changes are to compile a regexp into a pattern that can be
19006 used both for multibyte and unibyte targets.
19007
19008 * Makefile.in (search.o): Depend on charset.h.
19009
19010 * character.c (multibyte_char_to_unibyte_safe): New function.
19011
19012 * search.c: Include "charset.h".
19013 (compile_pattern_1): Delete argument multibyte. Don't set
19014 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19015 (compile_pattern): Don't compare cp->buf.target_multibyte.
19016 Compare cp->buf.charset_unibyte.
19017 (compile_pattern): Set cp->buf.target_multibyte.
19018
19019 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19020
19021 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19022
19023 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19024 multibyte. Change callers.
19025 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19026 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19027 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19028 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19029 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19030 (regex_compile): Make the compiled pattern usable both for
19031 multibyte and unibyte targets.
19032 (analyse_first): Make the fastmap usable both for multibyte and
19033 unibyte targets.
19034 (TRANSLATE_VIA_MULTIBYTE): Delete.
19035 (re_match_2_internal): Pay attention to the case that the
19036 multibyteness of bufp and target may be different.
19037
19038 2008-02-01 Kenichi Handa <handa@m17n.org>
19039
19040 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19041 empty box occupy at least one column width.
19042
19043 2008-02-01 Miles Bader <miles@gnu.org>
19044
19045 * Makefile.in: Remove redundant HAVE_XFT clause.
19046
19047 2008-02-01 Kenichi Handa <handa@m17n.org>
19048
19049 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19050
19051 2008-02-01 Kenichi Handa <handa@m17n.org>
19052
19053 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19054 being nil.
19055
19056 2008-02-01 Kenichi Handa <handa@m17n.org>
19057
19058 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19059
19060 2008-02-01 Kenichi Handa <handa@m17n.org>
19061
19062 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19063
19064 2008-02-01 Kenichi Handa <handa@m17n.org>
19065
19066 * search.c (simple_search): Fix previous change.
19067
19068 2008-02-01 Kenichi Handa <handa@m17n.org>
19069
19070 * xftfont.c (ftfont_font_format): Extern declaration.
19071
19072 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19073
19074 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19075 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19076
19077 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19078 (ftfont_font_format): Fix previous change.
19079
19080 * font.h (Ffont_xlfd_name): EXFUN it.
19081
19082 * font.c (font_parse_xlfd): Fix the array size of `f'.
19083 (register_font_driver): Use EQ to compare driver->type.
19084
19085 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19086 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19087 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19088
19089 2008-02-01 Kenichi Handa <handa@m17n.org>
19090
19091 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19092 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19093
19094 2008-02-01 Kenichi Handa <handa@m17n.org>
19095
19096 * xfont.c (xfont_open): Set font->format.
19097
19098 * xftfont.c (xftfont_open): Set font->format.
19099
19100 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19101 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19102 (ftfont_open): Set font->format.
19103 (ftfont_font_format): New function.
19104
19105 * font.h (struct font): New member format.
19106
19107 * font.c (Qopentype): New variable.
19108 (syms_of_font): Defsym it.
19109 (Fquery_font): Change the format of the last element of the return
19110 value.
19111
19112 2008-02-01 Kenichi Handa <handa@m17n.org>
19113
19114 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19115 last resort.
19116
19117 2008-02-01 Kenichi Handa <handa@m17n.org>
19118
19119 * coding.c (detect_coding_charset): Fix detection of multi-byte
19120 charset.
19121
19122 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19123
19124 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19125
19126 2008-02-01 Kenichi Handa <handa@m17n.org>
19127
19128 * xdisp.c (get_next_display_element): Set it->face_id for the
19129 first component of a composition.
19130 (x_produce_glyphs): Check if the font is changed or not for composition.
19131
19132 2008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * fontset.c (Qlatin): New variable.
19135 (syms_of_fontset): Define it as a lisp symbol.
19136 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19137
19138 2008-02-01 Kenichi Handa <handa@m17n.org>
19139
19140 * font.c (font_unparse_fcname): Pay attention to the case that
19141 some of font property is a null string.
19142
19143 2008-02-01 Kenichi Handa <handa@m17n.org>
19144
19145 * term.c: Include "composite.h".
19146 (encode_terminal_code): Output all components of composition.
19147 Check the size of encode_terminal_src.
19148 (produce_glyphs): For composition, call produce_composite_glyph.
19149 (append_composite_glyph, produce_composite_glyph): New functions.
19150
19151 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19152 is not found, get font_info from the current ascii face.
19153
19154 2008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19157 buffer-file-name to Qnil before calling insert_from_buffer.
19158
19159 * font.c (font_unparse_fcname): Pay attention to the case that
19160 foundry is a null string.
19161
19162 2008-02-01 Kenichi Handa <handa@m17n.org>
19163
19164 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19165
19166 * font.c (Qunicode_sip): New variable.
19167 (syms_of_font): Declare it as a Lisp symbol.
19168
19169 * font.h (Qunicode_sip): Extern it.
19170
19171 2008-02-01 Kenichi Handa <handa@m17n.org>
19172
19173 * composite.c (get_composition_id): Pay attention to TAB component.
19174
19175 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19176 TAB. Adjust for the change of s->char2b which always points to
19177 the first element of allocated memory.
19178
19179 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19180
19181 * xdisp.c (handle_composition_prop): Set it->c to the first
19182 non-TAB component.
19183 (fill_composite_glyph_string): Change argument.
19184 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19185 (x_produce_glyphs): Fix handling of left/right padding.
19186
19187 2008-02-01 Kenichi Handa <handa@m17n.org>
19188
19189 * coding.c (detect_coding_system): Fix for handling off
19190 inhibit_iso_escape_detection. Fix for the case that no coding
19191 system is defined for a specific coding category.
19192
19193 2008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * font.c (font_matching_entity): Delete unused local var.
19196
19197 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19198 opening a font.
19199
19200 * fileio.c (Finsert_file_contents): On recovering a file, assume
19201 Unix-like eol.
19202 (choose_write_coding_system): On auto-saving a file, force
19203 Unix-like eol.
19204
19205 * coding.c (setup_coding_system): Fix setting of
19206 coding->common_flags based on eol_type.
19207 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19208 inherit from it.
19209
19210 2008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * alloc.c (NSTATICS): Increas to 0x600.
19213
19214 2008-02-01 Kenichi Handa <handa@m17n.org>
19215
19216 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19217 (ftfont_list): Don't check :name property.
19218 (ftfont_match): New function.
19219 (ftfont_pattern_entity): If the pattern doesn't contain
19220 FC_SPACING, don't assume FC_MONO.
19221
19222 * font.h (struct font_driver): New member `match'.
19223 (font_update_drivers): Adjust prototype.
19224
19225 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19226 property of FONT.
19227 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19228 them unconditionally.
19229 (font_matching_entity): New function.
19230 (font_open_by_name): Try font_matching_entity if exact match is
19231 not found.
19232 (font_update_drivers): Delete the arg FONT. Return a list of
19233 actually used backends. Don't free faces, font caches here.
19234 Don't store data in frame parameters. Don't call x_set_font.
19235 (Ffont_spec): Store :name property as is.
19236 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19237 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19238 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19239 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19240 Call font->driver->otf_gsub instead of font_otf_gsub.
19241
19242 * frame.c (x_set_font_backend): Do more works that were done in
19243 font_update_drivers before.
19244
19245 * xfont.c (xfont_match): New function.
19246 (xfont_driver): Set xfont_driver.match to xfont_match.
19247 (xfont_draw): Set font in GC if necessary.
19248
19249 * ftxfont.c (ftxfont_match): New function.
19250 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19251
19252 * xftfont.c (xftfont_match): New function.
19253 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19254
19255 2008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * font.h (struct font): New member scalable.
19258 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19259 (font_otf_gsub): Adjust prototype.
19260
19261 * font.c (font_otf_capability): Fix handling of the default langsys.
19262 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19263 Check the contents of SPEC.
19264 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19265 (check_gstring): New function.
19266 (REPLACEMENT_CHARACTER): New macro.
19267 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19268 glyph codes of GSTRING.
19269 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19270 (font_prepare_composition): Set cmp->glyph_len.
19271 (font_open_entity): Set font->scalable.
19272 (Ffont_get): Handle :otf property.
19273 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19274 functions.
19275 (Fquery_font): Use font->font.full_name.
19276 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19277 Sfont_otf_alternates.
19278
19279 * ftfont.c (ftfont_open): Set font->font.full_name and
19280 font->font.name properly. Fix calculation of font->font.height
19281 and font->min_width.
19282
19283 * ftxfont.c (ftxfont_create_gcs): New function.
19284 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19285 (ftxfont_draw_backgrond): Fix filling region.
19286 (ftxfont_default_fid): New function.
19287 (ftxfont_open): Set xfont->fid to the return value of
19288 ftxfont_default_fid.
19289 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19290 (ftxfont_done_face): Free only GCs that are created by
19291 ftxfont_create_gcs.
19292 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19293
19294 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19295 Clip to src->width, etc (not src->clip_XXX).
19296
19297 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19298 FontBackend frame parameter.
19299
19300 2008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * font.h (struct font_driver_list): New member `on'.
19303 (Fclear_font_cache): EXFUN it.
19304 (font_update_drivers): Extern it.
19305
19306 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19307 (font_list_entities): Check driver_list->on.
19308 (register_font_driver): Initalize `on' member to 0.
19309 (font_update_drivers): New function.
19310 (Fclear_font_cache): Check driver_list->on.
19311
19312 * frame.h (Qfont_backend): Extern it.
19313 (x_set_font_backend): Extern it.
19314
19315 * frame.c (Qfont_backend): New variable.
19316 (frame_parms): New element for font-backend.
19317 (x_set_font_backend): New function.
19318
19319 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19320 FontBackend frame parameter.
19321 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19322 x_set_font_backend.
19323
19324 * xfont.c (xfont_list): Don't try listing by :name property if the
19325 name is not for XLFD.
19326
19327 2008-02-01 Kenichi Handa <handa@m17n.org>
19328
19329 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19330 (LGLYPH_SET_TO): New macros.
19331 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19332 element of G is vector or not.
19333 (font_at): Extern it.
19334
19335 * font.c: Include window.h.
19336 (font_lispy_object): New function.
19337 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19338 end of valid glyph.
19339 (font_close_object): Fix getting (struct font *).
19340 (font_at): New function.
19341 (Ffont_get): If FONT is a font-object, get entity from it.
19342 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19343 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19344 range check.
19345 (Ffont_at): New function.
19346 (syms_of_font): Defsubr Sfont_at.
19347
19348 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19349 before the entry for Qcomposition.
19350 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19351 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19352 the font in gstring.
19353 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19354 LGLYPH_FORM (g) to detect the end of valid glyph.
19355 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19356 we are composing with gstring.
19357
19358 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19359 Check if adjustment is vector or not.
19360
19361 * Makefile.in (font.o): Make it depends on window.h.
19362
19363 2008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19366 adjustment is vector or not.
19367
19368 2008-02-01 Miles Bader <miles@gnu.org>
19369
19370 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19371
19372 2008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19375 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19376 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19377
19378 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19379 (DEVICE_DELTA): Fix typo.
19380 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19381 LGLYPH format.
19382
19383 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19384 the change of LGLYPH format.
19385
19386 2008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * ftfont.c (ftfont_list): Fix typo.
19389 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19390
19391 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19392
19393 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19394
19395 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19396 xftface_info is non-NULL.
19397
19398 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19399
19400 * ftfont.c (ftfont_list): Move misplaced #endif.
19401
19402 2008-02-01 Kenichi Handa <handa@m17n.org>
19403
19404 * ftfont.c (ftfont_list): Pay attention to the case that
19405 FC_CAPABILITY is not defined.
19406
19407 2008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 * xftfont.c (xftfont_open): Set charset related members to -1.
19410
19411 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19412 QCname.
19413 (ftfont_open): Set charset related members to -1.
19414
19415 * fontset.c (Votf_script_alist): New variable.
19416 (syms_of_fontset): Initialize it.
19417 (fontset_font): Delete unused variable.
19418
19419 * fontset.h (Votf_script_alist): Extern it.
19420
19421 * font.c (font_find_for_lface): Optimize code.
19422
19423 * font.h (font_close_object, font_merge_old_spec): Extern them.
19424
19425 2008-02-01 Kenichi Handa <handa@m17n.org>
19426
19427 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19428 (syms_of_font): Initialize them.
19429 (font_pixel_size): Allow float value in dpi.
19430 (font_prop_validate_type): Delete.
19431 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19432 Change caller.
19433 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19434 (font_prop_validate_extra): Delete.
19435 (font_prop_validate_spacing): New function.
19436 (font_property_table): Add elements for all known properties.
19437 (get_font_prop_index): Rename from check_font_prop_name. New
19438 argument FROM. Change caller.
19439 (font_prop_validate): Validate all known properties.
19440 (font_put_extra): Delete argument force. Change caller.
19441 (font_expand_wildcards): Make it static. Fix the way of shrinking
19442 the possible range.
19443 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19444 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19445 Change caller.
19446 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19447 (font_parse_fcname): Delete argument merge. Fix parsing of point
19448 size. Don't validate properties values here. Change caller.
19449 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19450 (font_open_by_name): Delete unused variable.
19451 (Ffont_spec): Likewise. Validate property values.
19452 (Ffont_match_p): New function.
19453
19454 * font.h (QCscalable): Extern it.
19455 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19456
19457 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19458
19459 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19460 (xfont_list_pattern): New function.
19461 (xfont_list): Use xfont_list_pattern.
19462
19463 2008-02-01 Kenichi Handa <handa@m17n.org>
19464
19465 * font.h (Flist_fonts): EXFUN it.
19466
19467 2008-02-01 Jason Rumney <jasonr@gnu.org>
19468
19469 * w32term.c (w32_initialize): Add back smoothing_type and
19470 smoothing_enabled definitions.
19471
19472 2008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19475 s->face->font on determining underline position.
19476
19477 2008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19480 (font_has_char): Accept font-object too.
19481 (font_find_for_lface): Try at first with a size specified in face.
19482
19483 2008-02-01 Kenichi Handa <handa@m17n.org>
19484
19485 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19486 font_open_by_name.
19487
19488 2008-02-01 Kenichi Handa <handa@m17n.org>
19489
19490 * font.h (QCspacing, QCdpi): Extern them.
19491 (enum font_spacing): New enum.
19492 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19493
19494 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19495 (QCspacing, QCdpi): New variables.
19496 (syms_of_font): Initialize them.
19497 (font_pixel_size): New function.
19498 (font_put_extra): New function.
19499 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19500 in FONT_EXTRA.
19501 (font_parse_fcname): Handle enumerated values (e.g. bold).
19502 Fix handling font size. Add QCname property that contains only
19503 unknown properties.
19504 (font_score): Change argument. Change caller. Pay attention to
19505 FONT_PIXEL_SIZE_QUANTUM.
19506 (font_sort_entites, font_list_entities, font_find_for_lface)
19507 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19508 (Ffont_spec): Add QCname property that contains only unknown properties.
19509
19510 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19511 include weight in listing pattern, instead check weight of each
19512 listed font. Don't include scalable in pattern. Pay attention to
19513 FONT_PIXEL_SIZE_QUANTUM.
19514
19515 2008-02-01 Kenichi Handa <handa@m17n.org>
19516
19517 * font.c (font_parse_fcname): Fix parsing of point-size.
19518 (font_unparse_fcname): Produce symbolic names for style properties.
19519 (font_list_entities): Handle float size correctly.
19520 (font_open_by_name): Prefer `normal' property values if the name
19521 doesn't specify them.
19522
19523 * fontset.c (Finternal_char_font): Use font_get_name, not
19524 Ffont_xlfd_name.
19525
19526 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19527 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19528 pattern. Don't force scalable.
19529
19530 * xftfont.c (xftfont_open): For generating a name, start from
19531 96-byte buffer.
19532
19533 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19534
19535 * frame.h (x_new_fontset2): Fix prototype.
19536
19537 2008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * font.h (struct font_driver): Delete member parse_name.
19540 (font_match_p, font_get_spec, font_parse_fcname)
19541 (font_unparse_fcname): Extern them.
19542 (font_get_name): Adjust prototype.
19543
19544 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19545 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19546 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19547 unnecessary checks for weight, slant, and swidth.
19548 (font_parse_fcname): New function.
19549 (font_unparse_fcname): New function.
19550 (font_parse_name): New function.
19551 (font_match_p): New function.
19552 (font_get_name): Change return value to Lisp string.
19553 (font_get_spec): New function.
19554 (Qunspecified, Qignore_defface): Don't extern them.
19555 (font_find_for_lface): Assume that LFACE is fully specified.
19556 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19557 object, use it for FACE.
19558 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19559 driver->parse_name.
19560 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19561
19562 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19563 prototype.
19564
19565 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19566 argument F. Don't call Fnew_fontset. Instead, directly call
19567 make_fontset.
19568
19569 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19570
19571 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19572 of x_new_fontset2.
19573
19574 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19575 (Qsans__serif): New variables.
19576 (ftfont_generic_family_list): New variable.
19577 (syms_of_ftfont): Initialize the above variables.
19578 (ftfont_pattern_entity): Delete argument NAME.
19579 (ftfont_list_generic_family): New function.
19580 (ftfont_parse_name): Delete this function.
19581 (ftfont_list): Try generic family only when FcFontList found no font.
19582 (ftfont_list_family): Fix args to FcObjectSetBuild.
19583
19584 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19585 object in attrs[LFACE_FONT_INDEX].
19586 (set_lface_from_font_name): Cancel all changes for font-backend.
19587 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19588 function.
19589 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19590 font object in QCfont attribute.
19591 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19592 (realize_default_face) [USE_FONT_BACKEND]: Call
19593 set_lface_from_font_and_fontset.
19594
19595 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19596 "fixed", and signal error here if no suitable font was found.
19597
19598 * xfont.c (xfont_parse_name): Delete this function.
19599
19600 * xftfont.c (xftfont_open): Change coding style of error
19601 handling. Generate fontconfig's fontname pattern.
19602
19603 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19604 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19605
19606 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19607 Both args FONTSET and FONT_OBJECT must be existing ones.
19608
19609 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19610
19611 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19612
19613 2008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19616
19617 * font.h (struct font): Fix typo.
19618
19619 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19620 XLFD_XXX_INDEX.
19621 (enum xlfd_field_mask): New enum.
19622 (intern_font_field): Changed argument. Change caller. If digits
19623 are followed by non-digits, return a symbol.
19624 (font_expand_wildcards): New function.
19625 (font_parse_xlfd): Fix wildcard handling.
19626 (Ffont_spec): If :name is specified, reflect the info in the other
19627 properties.
19628
19629 * ftfont.c (ftfont_pattern_entity): Fix typo.
19630 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19631 locale.
19632
19633 2008-02-01 Kenichi Handa <handa@m17n.org>
19634
19635 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19636
19637 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19638 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19639 registry doesn't specify encoding part.
19640 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19641 (font_open_by_name): At first try parsing the name.
19642 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19643 as Lisp symbols.
19644
19645 * fontset.c (reorder_font_vector): Pay attention to the case that
19646 the 3rd element of font_def is nil.
19647 (fontset_font): For the default fontset, append one more fontset
19648 elements for a script-based font specification. Don't add script
19649 attribute on finding a font.
19650 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19651 font name.
19652 (fontset_ascii_font): If a font can't be opened, return nil.
19653
19654 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19655 (ftfont_pattern_entity): New function.
19656 (ftfont_get_cache): Assume that freetype_font_cache is already
19657 initialized.
19658 (ftfont_list): Handle the case that a file is specified in font
19659 name. Use ftfont_pattern_entity to generate entities.
19660 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19661 (syms_of_ftfont): Initialize freetype_font_cache.
19662
19663 * xftfont.c (xftfont_open): Make the font name fontconfig's
19664 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19665 (xftfont_close): Free font->font.name if not NULL.
19666
19667 * xfont.c (xfont_list): If script is specified for a font, return
19668 null_vector.
19669 (xfont_list_family): Declare argument type.
19670
19671 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19672 name, set LFACE_FONT (lface) to nil.
19673
19674 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19675 return Qnil.
19676
19677 2008-02-01 Kenichi Handa <handa@m17n.org>
19678
19679 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19680 (standard_args): Add "-enable-font-backend".
19681
19682 2008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19685 (struct xftdraw_list, xftdraw_list): Delete them.
19686 (register_xftdraw, check_xftdraw): Delete them.
19687 (xftfont_prepare_face): Don't call register_xftdraw.
19688 (xftfont_done_face): Don't call check_xftdraw.
19689 (xftfont_draw): Get background color only when with_background is
19690 nonzero.
19691
19692 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19693
19694 2008-02-01 Kenichi Handa <handa@m17n.org>
19695
19696 These changes are for the new font handling codes.
19697
19698 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19699 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19700 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19701 (FONTSRC, FONTOBJ): New variables.
19702 (obj): Add $(FONTOBJ).
19703 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19704 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19705 @LIBOTF_LIBS@.
19706 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19707 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19708
19709 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19710
19711 * character.h (Vscript_representative_chars): Extern it.
19712
19713 * character.c (Vscript_representative_chars): New variable.
19714 (syms_of_character): Declare it as a Lisp variable.
19715
19716 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19717 enable_font_backend is nonzero, accept the composition method
19718 COMPOSITION_WITH_GLYPH_STRING.
19719
19720 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19721 enumeration COMPOSITION_WITH_GLYPH_STRING.
19722
19723 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19724 members clip_x, clip_y, clip_width, and clip_height.
19725 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19726
19727 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19728 --enable-font-backend. Call syms_of_font.
19729
19730 * fns.c (assoc_no_quit): New function.
19731
19732 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19733 (face_for_font, new_fontset_from_font)
19734 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19735
19736 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19737 (fontset_font, fontset_ascii, face_for_char)
19738 (make_fontset_for_ascii_face, Ffont_info)
19739 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19740 is nonzero, use font-backend mechanism.
19741 (find_font_encoding): Make it non-static.
19742 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19743 New functions.
19744
19745 * frame.h (struct frame): New members resx and resy.
19746 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19747 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19748
19749 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19750 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19751
19752 * lisp.h (assoc_no_quit): Extern it.
19753
19754 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19755 Through out the file, use FONT_INFO_FROM_FACE instead of
19756 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19757 rif->per_char_metric.
19758 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19759 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19760 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19761 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19762 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19763 nonzero, use font-backend mechanism.
19764 (get_per_char_metric): New function.
19765
19766 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19767 (set_lface_from_font_name)
19768 (set_font_frame_param, free_realized_face)
19769 (prepare_face_for_display, clear_face_gcs)
19770 (Finternal_set_font_selection_order, realize_x_face)
19771 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19772 font-backend mechanism.
19773 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19774 (load_face_font) [USE_FONT_BACKEND]: Abort.
19775 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19776 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19777
19778 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19779 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19780 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19781 nonzero, register all available font drivers. Call
19782 x_default_font_parameter for deciding a font.
19783 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19784
19785 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19786 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19787 (x_set_glyph_string_clipping_exactly)
19788 (x_compute_glyph_string_overhangs)
19789 (x_draw_glyph_string_foreground)
19790 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19791 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19792 enable_font_backend is nonzero, use font-backend mechanism.
19793 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19794
19795 2008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19798 system_eol_type.
19799 (syms_of_coding): Initialize system_eol_type.
19800
19801 * process.c (Fset_process_coding_system): Inherit system's eol
19802 format if necessary.
19803
19804 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19805
19806 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19807
19808 2008-02-01 Kenichi Handa <handa@m17n.org>
19809
19810 * coding.c (decode_eol): Pay attention to buffer relocation in
19811 del_range_2.
19812 (decode_coding): Call decode_eol before restoring undo_list.
19813
19814 2008-02-01 Kenichi Handa <handa@m17n.org>
19815
19816 * charset.c (Fdefine_charset_internal): Fix setting of
19817 emacs_mule_bytes.
19818
19819 2008-02-01 Kenichi Handa <handa@m17n.org>
19820
19821 * keyboard.c (read_char): Check if C is a character or not before
19822 looking up Vkeyboard_translate_table.
19823
19824 2008-02-01 Kenichi Handa <handa@m17n.org>
19825
19826 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19827 condition to terminate the loop.
19828
19829 2008-02-01 Kenichi Handa <handa@m17n.org>
19830
19831 * coding.c (produce_composition): Compare charbuf[i] instead of
19832 args[i] against 0.
19833 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19834
19835 2008-02-01 Kenichi Handa <handa@m17n.org>
19836
19837 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19838 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19839 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19840 detect_coding.
19841 (emacs_mule_char): Handle old style (Emacs 20) component character
19842 of a composition.
19843 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19844 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19845 composition rule.
19846 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19847
19848 2008-02-01 Kenichi Handa <handa@m17n.org>
19849
19850 * coding.c (encode_coding_ccl): Allocate destination dynamically
19851 when necessary.
19852
19853 2008-02-01 Kenichi Handa <handa@m17n.org>
19854
19855 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19856 the loop. When quitted, show a proper error message.
19857
19858 2008-02-01 Kenichi Handa <handa@m17n.org>
19859
19860 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19861 src->clip_head and src->clip_tail temporarily instead of src->hl.
19862
19863 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19864 character sequence.
19865 (Fccl_execute_on_string): Use ASET, not XSET.
19866
19867 2008-02-01 Kenichi Handa <handa@m17n.org>
19868
19869 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19870
19871 2008-02-01 Kenichi Handa <handa@m17n.org>
19872
19873 * coding.c (decode_coding): Fix the condition of terminating the
19874 decoding loop.
19875
19876 2008-02-01 Kenichi Handa <handa@m17n.org>
19877
19878 * data.c (Faset): On setting a character bigger than 255 in a
19879 unibyte string, signal an error instead of make the string multibyte.
19880
19881 2008-02-01 Kenichi Handa <handa@m17n.org>
19882
19883 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19884 made by a mapping table.
19885
19886 2008-02-01 Kenichi Handa <handa@m17n.org>
19887
19888 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19889 not.
19890 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19891 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19892
19893 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19894 s->face is NULL or not.
19895
19896 2008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19899 (x_draw_glyph_string): Fix drawing of right_overhang and
19900 left_overhang around/on cursor.
19901
19902 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19903
19904 2008-02-01 Kenichi Handa <handa@m17n.org>
19905
19906 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19907
19908 2008-02-01 Kenichi Handa <handa@m17n.org>
19909
19910 * coding.c (Fdefine_coding_system_internal)
19911 (Fdefine_coding_system_alias): Avoid a duplicated element in
19912 Vcoding_system_alist.
19913
19914 2008-02-01 Kenichi Handa <handa@m17n.org>
19915
19916 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19917
19918 * coding.c (Qcoding_system_define_form): New variable.
19919 (syms_of_coding): Intern and staticpro it.
19920 (Fcoding_system_p): Check Qcoding_system_define_form.
19921 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19922
19923 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19924 Fcoding_system_p.
19925 (CHECK_CODING_SYSTEM): If ID is not available, call
19926 Fcheck_coding_system.
19927 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19928 Try also Fcheck_coding_system.
19929
19930 2008-02-01 Kenichi Handa <handa@m17n.org>
19931
19932 * coding.c (code_conversion_restore): GCPRO arg.
19933
19934 2008-02-01 Kenichi Handa <handa@m17n.org>
19935
19936 * character.c (lisp_string_width): Check multibyteness of STRING.
19937
19938 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19939
19940 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19941 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19942 (decode_mac_font_name): Use decode_coding_c_string instead of
19943 decode_coding.
19944 (x_load_font): Initialize fontp->fontset to -1. Set
19945 fontp->encoding_type.
19946
19947 2008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * search.c (search_buffer): Give up BM search on case-fold-search
19950 if one of a target character has a case-equivalence of different
19951 byte length even if that target charcter is an ASCII.
19952 (simple_search): Fix calculation of byte length of matched text.
19953 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19954
19955 2008-02-01 Kenichi Handa <handa@m17n.org>
19956
19957 * coding.c (decode_coding): Fix handling of invalid bytes.
19958
19959 2008-02-01 Kenichi Handa <handa@m17n.org>
19960
19961 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19962 Unicode characters.
19963
19964 2008-02-01 Kenichi Handa <handa@m17n.org>
19965
19966 * coding.c (encode_coding_object): If a pre-write-conversion
19967 function makes a new buffer, kill it.
19968
19969 2008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * coding.c (QCascii_compatible_p): New variable.
19972 (syms_of_coding): Initialize it.
19973 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19974 calling string_char.
19975 (record_conversion_result): Add `default:' case.
19976 (coding_charset_list): Delete unused variable `coding_type'.
19977 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19978 property in the plist of the coding system.
19979 (Fcoding_system_put): Check QCascii_compatible_p.
19980
19981 2008-02-01 Miles Bader <miles@gnu.org>
19982
19983 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19984 removed calculation of frame `f', as it's now used.
19985
19986 2008-02-01 Kenichi Handa <handa@m17n.org>
19987
19988 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19989 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19990 (UNIDATA): New variable.
19991 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19992 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19993 $(RUN_TEMACS) unconditionally.
19994
19995 2008-02-01 Kenichi Handa <handa@m17n.org>
19996
19997 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19998 (admindir): New variable.
19999 ($(lispsource)international/charprop.el): New target.
20000
20001 2008-02-01 Miles Bader <miles@gnu.org>
20002
20003 * character.c (chars-in-region): Remove obsolete function.
20004 (syms_of_character): Remove its initialization.
20005
20006 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20007
20008 * w32select.c (validate_coding_system)
20009 (setup_windows_coding_system): New functions.
20010 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20011 setup_windows_coding_system.
20012 (setup_config, Fw32_get_clipboard_data): Use
20013 validate_coding_system.
20014 (Fx_selection_exists): Move call to setup_config to a place
20015 where signals are allowed.
20016
20017 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20018 (Fcheck_coding_system): Add declarations.
20019
20020 2008-02-01 Kenichi Handa <handa@m17n.org>
20021
20022 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20023
20024 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20025
20026 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20027 string as the second argument for x_new_fontset.
20028
20029 2008-02-01 Kenichi Handa <handa@m17n.org>
20030
20031 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20032 (encode_coding_object): Use safe_call instead of call2.
20033
20034 2008-02-01 Kenichi Handa <handa@m17n.org>
20035
20036 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20037
20038 * Makefile.in (lisp): Include charprop.el.
20039
20040 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20041
20042 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20043 Not sure if it's unnecessary.
20044
20045 2008-02-01 Steven Tamm <steventamm@mac.com>
20046
20047 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20048 some possibly unnecessary fontset checking code that crashed
20049 when creating a new frame.
20050
20051 2008-02-01 Kenichi Handa <handa@m17n.org>
20052
20053 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20054 lookup_face.
20055
20056 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20057
20058 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20059
20060 2008-02-01 Kenichi Handa <handa@m17n.org>
20061
20062 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20063 (coding_charset_list): New function.
20064
20065 * coding.h (coding_charset_list): Extern it.
20066
20067 2008-02-01 Kenichi Handa <handa@m17n.org>
20068
20069 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20070 concatenation of family and registry.
20071
20072 2008-02-01 Kenichi Handa <handa@m17n.org>
20073
20074 * character.h (BYTE8_STRING): Fix typo.
20075
20076 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20077 string to multibyte (sync to HEAD).
20078
20079 * casefiddle.c (casify_region): Handle changes in byte-length
20080 using replace_range_2 (sync to HEAD).
20081
20082 2008-02-01 Andreas Schwab <schwab@suse.de>
20083
20084 * chartab.c (map_char_table): GCPRO table and arg.
20085
20086 2008-02-01 Kenichi Handa <handa@m17n.org>
20087
20088 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20089 already at limit.
20090
20091 2008-02-01 Kenichi Handa <handa@m17n.org>
20092
20093 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20094 instead of fast_c_string_match_ignore_case.
20095 (find_font_encoding): Change argument to Lisp_Object. Use
20096 fast_string_match_ignore_case instead of
20097 fast_c_string_match_ignore_case. Change caller.
20098
20099 2008-02-01 Kenichi Handa <handa@m17n.org>
20100
20101 * xdisp.c (get_next_display_element): In unibyte case, decide to
20102 display in octal form by checking a character by
20103 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20104
20105 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20106
20107 * character.c (unibyte_has_multibyte_table): New variable.
20108
20109 * character.h (unibyte_has_multibyte_table): Extern it.
20110 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20111
20112 2008-02-01 Kenichi Handa <handa@m17n.org>
20113
20114 * coding.c (encode_coding_iso_2022): Fix handling of charset
20115 annotation.
20116
20117 2008-02-01 Kenichi Handa <handa@m17n.org>
20118
20119 * coding.c (setup_coding_system): If coding_system is nil, use
20120 Qundecided.
20121 (Fterminal_coding_system): Return nil if terminal coding system is
20122 `undecided'.
20123 (syms_of_coding): Define coding-system `undecided' here. Setup
20124 terminal_coding as `undecided'.
20125
20126 2008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * xdisp.c (message_dolog, set_message_1): Call
20129 unibyte_char_to_multibyte with arg type int.
20130
20131 * lread.c (read1): Fix reading of a char-table.
20132
20133 * print.c (print_object): Include sub char-table in circularities
20134 detection.
20135
20136 2008-02-01 Kenichi Handa <handa@m17n.org>
20137
20138 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20139 Append the found sequences in car of ARGS instead of prepending.
20140
20141 2008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * fileio.c (report_file_error): Make a unibyte string from
20144 strerror (errorno).
20145 (Fsubstitute_in_file_name): Fix the arg to
20146 unibyte_char_to_multibyte. It is evaluated twice.
20147
20148 2008-02-01 Kenichi Handa <handa@m17n.org>
20149
20150 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20151
20152 2008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20155 BOM is not found.
20156 (detect_coding, detect_coding_system): Optimization for ISO-2022
20157 when no 8-bit data is found.
20158
20159 2008-02-01 Jason Rumney <jasonr@gnu.org>
20160
20161 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20162
20163 2008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20166 CHARS.
20167
20168 2008-02-01 Steven Tamm <steventamm@mac.com>
20169
20170 * macterm.c (mac_encode_char): Add charset argument and update
20171 to use encoding_type.
20172 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20173 switch to pure fontset.
20174 (decode_mac_font_name): Temporarily remove decoding.
20175 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20176 (x_load_font): Temporarily remove encoding.
20177
20178 2008-02-01 Kenichi Handa <handa@m17n.org>
20179
20180 * xfaces.c (Fface_font): If frame is not on a window system,
20181 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20182 refer to face->font.
20183 (split_font_name_into_vector, build_font_name_from_vector)
20184 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20185 when HAVE_WINDOW_SYSTEM is defined.
20186
20187 2008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20190 (x_produce_glyphs): Fix setting of members of cmp in case
20191 cmp->glyph_len is zero.
20192
20193 * fontset.c (Fset_fontset_font): Fix docstring.
20194 (Ffontset_info): Make it backward compatible. New arg ALL.
20195
20196 2008-02-01 Kim F. Storm <storm@cua.dk>
20197
20198 * process.c (read_process_output): Grow decoding_buf when needed;
20199 this could cause a crash in allocate_string and compact_small_strings.
20200
20201 2008-02-01 Kenichi Handa <handa@m17n.org>
20202
20203 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20204
20205 2008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * coding.c (setup_coding_system): Set coding->common_flags
20208 correctly for raw-text.
20209 (consume_chars): On encoding unibyte text by raw-text, don't check
20210 multibyte form.
20211 (encode_coding): On encoding by raw-text, never use translation tables.
20212
20213 * fileio.c (e_write): Short cut for the case of no encoding.
20214
20215 2008-02-01 Kenichi Handa <handa@m17n.org>
20216
20217 * coding.c (detect_coding, detect_coding_system): Delete unused
20218 variables.
20219
20220 2008-02-01 Kenichi Handa <handa@m17n.org>
20221
20222 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20223 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20224
20225 2008-02-01 Kenichi Handa <handa@m17n.org>
20226
20227 * coding.c (Ffind_coding_systems_region_internal): Include
20228 raw-text and no-conversion in the result.
20229
20230 2008-02-01 Kenichi Handa <handa@m17n.org>
20231
20232 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20233 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20234 FONT_DEF.
20235 (font_def_arg, add_arg, from_arg, to_arg): New args.
20236 (set_fontset_font): Change argument.
20237 (Fset_fontset_font): Fix for the case that TARGET is a script
20238 name and charset name.
20239 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20240
20241 2008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * fontset.c (fontset_font): Rename from fontset_face. Change return
20244 value.
20245 (face_suitable_for_char_p, face_for_char): Adjust for the change
20246 of fontset_font.
20247 (make_fontset_for_ascii_face): Fix setting of the fontset element
20248 for ASCII.
20249 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20250 to get a font name.
20251 (Ffontset_info): Adjust for the change of fontset_font.
20252
20253 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20254
20255 * character.h (LEADING_CODE_LATIN_1_MIN)
20256 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20257
20258 2008-02-01 Kenichi Handa <handa@m17n.org>
20259
20260 * editfns.c (check_translation): New function.
20261 (Ftranslate_region_internal): Handle M:N mapping.
20262
20263 2008-02-01 Kenichi Handa <handa@m17n.org>
20264
20265 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20266
20267 2008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20270 goto invalid_code.
20271 (decode_coding_iso_2022): Fix handling of invalid designation.
20272
20273 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20274 after calling code_conversion_save.
20275
20276 2008-02-01 Kenichi Handa <handa@m17n.org>
20277
20278 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20279
20280 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20281
20282 * fontset.c: Include "intervals.h".
20283 (fontset_face): Fix comparing of Lisp_Objects.
20284 (free_face_fontset, new_fontset_from_font_name): Fix
20285 Lisp_Object/int mixup.
20286
20287 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20288
20289 * coding.c: Add many prototypes for static functions.
20290 (get_translation_table): Allow max_lookup to be NULL.
20291 (decode_coding, Ffind_coding_systems_region_internal)
20292 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20293 get_translation_table with max_lookup NULL.
20294
20295 2008-02-01 Kenichi Handa <handa@m17n.org>
20296
20297 * coding.c (get_translation_table): Declare it as Lisp_Object.
20298 (LOOKUP_TRANSLATION_TABLE): New macro.
20299 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20300 instead of CHAR_TABLE_REF.
20301
20302 2008-02-01 Kenichi Handa <handa@m17n.org>
20303
20304 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20305 annotation data format.
20306 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20307 Change arguments FROM and TO to single argument NCHARS. Change caller.
20308 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20309 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20310 (decode_coding_ccl, decode_coding_charset): Pay attention to
20311 coding->charbuf_used.
20312 (get_translation): New function.
20313 (produce_chars): New arguments translation_table and last_block.
20314 Translate characters here. Return number of carryover chars.
20315 Change caller.
20316 (produce_composition): New argument pos. Change caller.
20317 Adjust for the change of annotation data format.
20318 (produce_charset, produce_annotation): Likewise.
20319 (decode_coding, encode_coding): Don't call translate_chars.
20320 (consume_chars): New arg translation_table. Change caller.
20321 (translate_chars): Delete.
20322 (syms_of_coding): Make translation-table's number of extra slots 2.
20323
20324 2008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * search.c (simple_search): Fix setting this_pos_byte in backward
20327 search.
20328
20329 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20330 byte sequence.
20331 (detect_coding_ccl): Fix setting of the variable valids.
20332
20333 2008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20336
20337 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20338
20339 * editfns.c (Ftranslate_region_internal): Rename from
20340 Ftranslate_region. Accept a char-table in TABLE.
20341 (syms_of_editfns): Defsubr Stranslate_region_internal.
20342
20343 * xfaces.c (set_lface_from_font_name): If a font is specified for
20344 a frame, generate a fontset from the font.
20345 (build_scalable_font_name): If the scalable font is requested for
20346 a specific size, don't change that size.
20347 (try_font_list): Try a scalable font also in the case that a
20348 pattern string is specified.
20349
20350 2008-02-01 Kenichi Handa <handa@m17n.org>
20351
20352 * xfaces.c (Fface_font): New optional arg CHARACTER.
20353
20354 2008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * charset.h (CHARSET_OFFSET): New macro.
20357
20358 2008-02-01 Kenichi Handa <handa@m17n.org>
20359
20360 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20361
20362 * fontset.c (fontset_face): Handle the case that repertory is a
20363 char-table.
20364 (find_font_encoding): Return nil for unknown encoding.
20365 (Fset_fontset_font): Ignore a font of unknown encoding.
20366
20367 2008-02-01 Kenichi Handa <handa@m17n.org>
20368
20369 * keymap.c (describe_vector): Handle default value of a char table.
20370
20371 * fontset.c (fontset_face): Handle fallback fonts correctly.
20372 (Ffontset_info): Return infomation about fallback fonts.
20373
20374 2008-02-01 Kenichi Handa <handa@m17n.org>
20375
20376 * fontset.c (FONTSET_DEFAULT): New macro.
20377 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20378 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20379 the case that it is nil.
20380 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20381 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20382
20383 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20384 subset or superset.
20385
20386 2008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * emacs.c (main): Call init_charset after syms_of_XXX.
20389
20390 * charset.c (Vcharset_map_directory): Delete.
20391 (Vcharset_map_path): New variable.
20392 (load_charset_map_from_file): Use Vcharset_map_path instead.
20393 (init_charset): Initialize Vcharset_map_path.
20394 (syms_of_charset): Delete declaration of "charset-map-directory",
20395 add declaration of "charset-map-path".
20396
20397 2008-02-01 Kenichi Handa <handa@m17n.org>
20398
20399 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20400 ASCII only string.
20401
20402 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20403
20404 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20405 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20406
20407 2008-02-01 Kenichi Handa <handa@m17n.org>
20408
20409 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20410
20411 * coding.c (QCmnemonic, QCdefalut_char)
20412 (QCdecode_translation_table, QCencode_translation_table)
20413 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20414 (get_translation_table): Return a list of translation tables if
20415 necessary.
20416 (decode_coding): Call get_translation_table with ENCODEP 0.
20417 (char_encodable_p): If translation_table is non-nil, always call
20418 translate_char.
20419 (Fdefine_coding_system_internal): Accept list of translation
20420 tables as :encode-translation-table and :decode-translation-table.
20421 (Fcoding_system_put): New function.
20422 (syms_of_coding): Declare new symbols. Defsubr
20423 Scoding_system_put.
20424 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20425 typically JISX0212.
20426
20427 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20428 when the charset is superset type.
20429
20430 * character.c (translate_char): Accept list of translation tables.
20431
20432 2008-02-01 Kenichi Handa <handa@m17n.org>
20433
20434 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20435 (CODING_ATTR_TRANS_TBL): New macro.
20436
20437 * coding.c (get_translation_table): New function.
20438 (translate_chars): Fix the bug of skipping annotation data.
20439 (decode_coding, encode_coding): Utilize get_translation_table.
20440 (char_encodable_p, Funencodable_char_position): Translate char if
20441 necessary.
20442 (Ffind_coding_systems_region_internal)
20443 (Fcheck_coding_systems_region): Setup translation table for encode
20444 in a coding system attribute vector in advance.
20445 (Fdefine_coding_system_internal): Allow a symbol as translation
20446 table. For shift-jis type coding system, allow 4th charset.
20447
20448 2008-02-01 Kenichi Handa <handa@m17n.org>
20449
20450 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20451
20452 * xdisp.c (get_next_display_element): Pass -1 as POS to
20453 FACE_FOR_CHAR if displaying a C-string.
20454
20455 2008-02-01 Kenichi Handa <handa@m17n.org>
20456
20457 * composite.c (get_composition_id): Handle xoff and yoff in a
20458 composition rule.
20459
20460 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20461 (struct composition): New member lbearing and rbearing.
20462
20463 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20464 (x_get_glyph_overhangs): Handle a composition glyph.
20465 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20466
20467 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20468 composition glyph.
20469
20470 2008-02-01 Kenichi Handa <handa@m17n.org>
20471
20472 * print.c: Include charset.h.
20473 (Vprint_charset_text_property): New variable.
20474 (Qdefault): Extern it.
20475 (PRINT_STRING_NON_CHARSET_FOUND)
20476 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20477 (print_check_string_result): New variable.
20478 (print_check_string_charset_prop): New function.
20479 (print_prune_charset_plist): New variable.
20480 (print_prune_string_charset): New function.
20481 (print_object): Call print_prune_string_charset if
20482 Vprint_charset_text_property is not t.
20483 (print_interval): Print nothing if interval->plist is nil.
20484 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20485 variable. Init and staticpro print_prune_charset_plist.
20486
20487 2008-02-01 Kenichi Handa <handa@m17n.org>
20488
20489 * fontset.c (new_fontset_from_font_name): Use the specified font
20490 for all characters in the new fontset.
20491
20492 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20493 OBJECT args.
20494
20495 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20496 OBJECT args for composition too.
20497
20498 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20499 OBJECT args.
20500
20501 2008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20504
20505 * fontset.c (reorder_font_vector): Adjust for the change of
20506 FONT_DEF format.
20507 (fontset_face): New arg id. Change caller.
20508 (face_for_char): New args pos and object.
20509 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20510 (fs_query_fontset): Check NAME by Fassoc too.
20511 (Fset_fontset_font): Allow non-XLFD font name.
20512 (Ffontset_info): Adjust for the change of FONT_DEF format.
20513
20514 * fontset.h (face_for_char): Adjust prototype.
20515
20516 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20517 (append_space, extend_face_to_end_of_line)
20518 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20519 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20520
20521 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20522 POS and OBJECT args.
20523
20524 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20525 POS and OBJECT args.
20526
20527 2008-02-01 Jason Rumney <jasonr@gnu.org>
20528
20529 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20530 of GlobalAlloc'ed memory.
20531
20532 2008-02-01 Kenichi Handa <handa@m17n.org>
20533
20534 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20535
20536 * charset.h (charset_table_used): Delete extern.
20537
20538 * charset.c (charset_table_used): Make it static.
20539 (map_charset_chars): Fix args to c_function with.
20540
20541 * chartab.c (map_sub_char_table_for_charset): Fix args to
20542 c_function with.
20543
20544 * coding.h (enum coding_result_code): Delete
20545 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20546
20547 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20548 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20549 (Vlast_code_conversion_error): New variables.
20550 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20551 (ONE_MORE_BYTE): Record error if any instead of signaling an
20552 error. If non-ASCII multibyte char is found, return the negative
20553 value of the code. All callers changed to check it.
20554 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20555 (record_conversion_result): New function. Change all codes setting
20556 coding->result to call this function.
20557 (detect_coding_utf_8, decode_coding_utf_8)
20558 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20559 Don't use the local variable incomplete.
20560 (emacs_mule_char): Change the second arg to `const'.
20561 (decode_coding): Fix of flushing out unprocessed data.
20562 (make_conversion_work_buffer): Fix making of a work buffer.
20563 (decode_coding_object): Return coding->dst_object.
20564
20565 * fontset.c (set_fontset_font): Fix args.
20566
20567 * lisp.h (CHARACTERBITS): Define as 22.
20568
20569 * process.c (send_process): Be sure to set coding->src_multibyte.
20570
20571 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20572
20573 2008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * xdisp.c (handle_auto_composed_prop): Give limit to
20576 Fnext_single_char_property_change.
20577
20578 2008-02-01 Kenichi Handa <handa@m17n.org>
20579
20580 * composite.c (syms_of_composite): Don't make the composition hash
20581 table weak.
20582
20583 * fontset.c (Fset_fontset_font): Fix docstring.
20584
20585 * lisp.h (detect_coding_system): Adjust prototype.
20586
20587 * fileio.c (kill_workbuf_unwind): Delete this function.
20588 (Finsert_file_contents): Adjust the call of detect_coding_system.
20589 Get conversion_buffer by code_conversion_save. Use the macro
20590 CODING_MAY_REQUIRE_DECODING. After decoding, update
20591 coding_system.
20592
20593 * coding.h (make_conversion_work_buffer): Delete extern.
20594 (code_conversion_save): Extern it.
20595
20596 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20597 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20598 (decode_coding_utf_8): Don't do eol converion.
20599 (detect_coding_utf_16): Check coding->src_chars, not
20600 coding->src_bytes. Add heuristics for those that have no signature.
20601 (decode_coding_emacs_mule, decode_coding_iso_2022)
20602 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20603 Don't do eol converion.
20604 (adjust_coding_eol_type): Return a new coding system.
20605 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20606 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20607 each change.
20608 (decode_coding): Pay attention to undo_list. Do eol conversion for
20609 all types of coding-systems (if necessary).
20610 (Vcode_conversion_work_buf_list): Delete it.
20611 (Vcode_conversion_reused_workbuf): Rename from
20612 Vcode_conversion_reused_work_buf.
20613 (Vcode_conversion_workbuf_name): New variable.
20614 (reused_workbuf_in_use): New variable.
20615 (make_conversion_work_buffer): Delete the arg DEPTH.
20616 (code_conversion_restore): Change argument to cons.
20617 (code_conversion_save): Delete the argument BUFFER. Change callers.
20618 (detect_coding_system): New argument src_chars. Change callers.
20619 Fix for utf-16 detection.
20620 (init_coding_once): Don't use ISO_carriage_return.
20621 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20622 reused_workbuf_in_use.
20623
20624 2008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * keymap.c (store_in_keymap): Pay attention to the case that idx
20627 is a cons specifying a character range.
20628
20629 2008-02-01 Kenichi Handa <handa@m17n.org>
20630
20631 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20632 HANDLED_RECOMPUTE_PROPS.
20633
20634 * coding.c (Fdefine_coding_system_internal): Fix checking of
20635 ascii compatibility.
20636
20637 2008-02-01 Kenichi Handa <handa@m17n.org>
20638
20639 * charset.c (find_charsets_in_text): Delete unused locale variable.
20640 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20641
20642 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20643 Resync charset_list to Vemacs_mule_charset_list.
20644
20645 * keymap.c (store_in_keymap): Pay attention to the case that idx
20646 is a cons specifying a character range.
20647
20648 2008-02-01 Kenichi Handa <handa@m17n.org>
20649
20650 * composite.c (update_compositions): Bind inhibit-read-only, etc
20651 to t before calling remove-list-of-text-properties.
20652
20653 * print.c (print_object): Always print ASCII chars as is.
20654
20655 2008-02-01 Kenichi Handa <handa@m17n.org>
20656
20657 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20658
20659 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20660 is a char table.
20661
20662 2008-02-01 Kenichi Handa <handa@m17n.org>
20663
20664 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20665
20666 2008-02-01 Kenichi Handa <handa@m17n.org>
20667
20668 * xfaces.c (set_lface_from_font_name): Fix for the case that
20669 FONTNAME is not fontset name.
20670
20671 2008-02-01 Kenichi Handa <handa@m17n.org>
20672
20673 * fns.c (base64_encode_1): Fix previous change.
20674
20675 2008-02-01 Kenichi Handa <handa@m17n.org>
20676
20677 * fontset.c (set_fontset_font): New function.
20678 (Fset_fontset_font): If a font is specified for a charset, use
20679 map_charset_chars to store the font spec in a fontset.
20680
20681 2008-02-01 Kenichi Handa <handa@m17n.org>
20682
20683 * fontset.c (fontset_face): Create a fallback fontset on demand.
20684 (make_fontset): Don't create a fallback fontset here.
20685 (free_face_fontset): Free a fallback fontset (if any) too.
20686 (n_auto_fontsets): Delete this variable.
20687 (auto_fontset_alist): New variable.
20688 (new_fontset_from_font_name): Check auto_fontset_alist.
20689 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20690 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20691 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20692 Defsubr Sfontset_list_all.
20693
20694 2008-02-01 Kenichi Handa <handa@m17n.org>
20695
20696 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20697
20698 2008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20701
20702 2008-02-01 Kenichi Handa <handa@m17n.org>
20703
20704 * editfns.c (Fgoto_char): Fix docstring.
20705
20706 2008-02-01 Kenichi Handa <handa@m17n.org>
20707
20708 * insdel.c (insert_from_gap): Adjust intervals correctly.
20709
20710 2008-02-01 Jason Rumney <jasonr@gnu.org>
20711
20712 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20713 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20714 (w32_initialize): Try to load it.
20715 (x_get_font_repertory): Use it if available.
20716 (w32_encode_char): Add shortcut for unicode output.
20717
20718 * w32fns.c (w32_load_system_font): Default charset to -1.
20719 (x_to_w32_charset): Match all fonts for unicode.
20720 (w32_to_x_charset): New parameter matching. Don't return partial
20721 or wildcard charsets.
20722 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20723 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20724 (w32_to_x_font): Match charset to real charset.
20725 (enum_font_cb2): Always list unicode versions.
20726
20727 * makefile.w32-in (temacs): Increase EMHEAP.
20728
20729 2008-02-01 Jason Rumney <jasonr@gnu.org>
20730
20731 * w32term.c (w32_encode_char): New charset parameter.
20732 font_info.encoding becomes encoding_type.
20733 (x_get_font_repertory): New function. Warning: stub only!
20734 (x_new_font): Return quickly if font already set.
20735 (x_new_fontset): fontsetname parameter is Lisp_Object.
20736 Use new fs_query_fontset. Try new_fontset_from_font_name.
20737 Use fontset_name for return value.
20738
20739 * w32term.h: Declare x_get_font_repertory.
20740
20741 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20742 place of find_charset_in_text. Use encode_coding_object in place
20743 of encode_coding.
20744 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20745 decode_coding.
20746
20747 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20748 of x_new_fontset.
20749 (w32_load_system_font): Initialize charset as unicode.
20750 font_info.encoding becomes encoding_type.
20751 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20752 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20753 (syms_of_w32fns): Set get_font_repertory_func.
20754
20755 * w32console.c: Include character.h. Use terminal_encode_buffer
20756 from term.c.
20757 (write_glyphs): Use new version of encode_terminal_code. Use
20758 encode_coding_object in place of encode_coding.
20759
20760 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20761 encoding becomes encoding_type.
20762
20763 * term.c (terminal_encode_buffer): Make externally visible.
20764
20765 * makefile.w32-in: Add character.h dependancies.
20766 (character.o, chartab.o): New targets.
20767
20768 2008-02-01 Kenichi Handa <handa@m17n.org>
20769
20770 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20771 CODING_ID_EOL_TYPE.
20772
20773 2008-02-01 Andreas Schwab <schwab@suse.de>
20774
20775 * coding.c (produce_chars): Revert last change.
20776
20777 2008-02-01 Kenichi Handa <handa@m17n.org>
20778
20779 * charset.h (charset_unicode): Extern it.
20780
20781 * charset.c (string_xstring_p): Check by (C >= 0x100).
20782 (find_charsets_in_text): Change format of the arc CHARSETS. New
20783 arg MULTIBYTE.
20784 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20785 change of find_charsets_in_text.
20786 (Fsplit_char): Fix doc. Never return unknown.
20787
20788 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20789
20790 * coding.c (Fdefine_coding_system_alias): Update
20791 Vcoding_system_list.
20792
20793 * fontset.c (load_font_get_repertory): Pay attention to the case
20794 that ENCODING of a font is specified by a char-table.
20795
20796 * xterm.c (x_get_font_repertory): Handle the case that the
20797 encoding of font is other than Unicode.
20798
20799 2008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20802 if a character is encodable by the terminal coding system. If
20803 not, produces proper number of `?'s. Update
20804 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20805 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20806
20807 2008-02-01 Kenichi Handa <handa@m17n.org>
20808
20809 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20810 variables.
20811 (encode_terminal_code): Change argument. Encode multiple
20812 characters at once. Store the result of encoding in
20813 terminal_encode_buffer.
20814 (write_glyphs, insert_glyphs): Adjust for the change of
20815 encode_terminal_code.
20816 (term_init): Initialize terminal_encode_buffer and
20817 terminal_encode_buf_size.
20818
20819 * coding.c (consume_chars): If coding->src_object is nil, don't
20820 check annotation.
20821
20822 2008-02-01 Kenichi Handa <handa@m17n.org>
20823
20824 * character.c (char_string): Use ASCII_CHAR_P instead of
20825 SINGLE_BYTE_CHAR_P.
20826
20827 2008-02-01 Kenichi Handa <handa@m17n.org>
20828
20829 * xdisp.c (handle_auto_composed_prop): Check if the last
20830 characters of auto-composed region is newly composed with the
20831 following characters.
20832 (handle_composition_prop): Fix checking of point being inside
20833 composition.
20834
20835 2008-02-01 Kenichi Handa <handa@m17n.org>
20836
20837 * fns.c (concat): Don't change multibyteness of the result by
20838 concatenating an 8-bit character.
20839
20840 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20841 multibyteness of the result when newelt is an 8-bit character.
20842
20843 2008-02-01 Dave Love <fx@gnu.org>
20844
20845 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20846 EMACS_INT.
20847
20848 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20849
20850 * xfaces.c (face_numeric_value): Declare dim size_t.
20851 (Finternal_lisp_face_equal_p): Remove unused f.
20852
20853 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20854 (MATRIX_ROW): Remove unused vars.
20855 (draw_glyphs, x_insert_glyphs, fast_find_position)
20856 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20857 byte/char counts.
20858
20859 * regex.c (regex_compile): Remove unused var.
20860
20861 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20862
20863 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20864 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20865
20866 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20867
20868 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20869
20870 * fileio.c (Fwrite_region): Remove unused var.
20871
20872 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20873 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20874
20875 * composite.c (Fremove_list_of_text_properties): Declare.
20876
20877 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20878 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20879 (coding_inherit_eol_type): Remove unused attrs.
20880 (detect_coding): Cast arg of detect_eol.
20881
20882 * charset.c (syms_of_charset): Remove unused var p.
20883 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20884 byte/char counts.
20885
20886 * casetab.c (set_case_table): Remove unused var.
20887
20888 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20889 unused vars.
20890
20891 2008-02-01 Dave Love <fx@gnu.org>
20892
20893 * xterm.c (x_bitmap_mask): Declare.
20894
20895 2008-02-01 Dave Love <fx@gnu.org>
20896
20897 * xterm.c (x_term_init): Fix type error.
20898
20899 * lisp.h: Add Funibyte_char_to_multibyte.
20900
20901 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20902 (Fset_coding_system_priority): Doc fix.
20903
20904 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20905
20906 * indent.c (check_composition): Make start and end EMACS_INT.
20907
20908 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20909
20910 * xdisp.c (handle_composition_prop, check_point_in_composition):
20911 Make buffer positions EMACS_INT.
20912
20913 * composite.c (find_composition, run_composition_function)
20914 (update_compositions, Ffind_composition_internal): Make buffer
20915 positions EMACS_INT.
20916
20917 * composite.h (find_composition, update_compositions): Make
20918 position args EMACS_INT.
20919
20920 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20921
20922 * intervals.c (get_property_and_range):
20923 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20924
20925 * unexalpha.c: Don't include varargs.h.
20926
20927 2008-02-01 Dave Love <fx@gnu.org>
20928
20929 * coding.h (ENCODE_UTF_8): New.
20930
20931 * Makefile.in (gtkutil.o): Depend on coding.h.
20932
20933 * coding.c (Fset_coding_system_priority): Doc fix.
20934
20935 2008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20938 the case of auto saving.
20939
20940 2008-02-01 Andreas Schwab <schwab@suse.de>
20941
20942 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20943 `range' from GC.
20944
20945 2008-02-01 Kenichi Handa <handa@m17n.org>
20946
20947 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20948
20949 2008-02-01 Kenichi Handa <handa@m17n.org>
20950
20951 * fileio.c (choose_write_coding_system): Return a decided coding system.
20952 (Fwrite_region): Set Vlast_coding_system_used to the return value
20953 of choose_write_coding_system.
20954
20955 2008-02-01 Kenichi Handa <handa@m17n.org>
20956
20957 * charset.c (Fset_charset_priority): Pay attention to duplicated
20958 arguments.
20959
20960 * coding.c (QCcategory): New variable.
20961 (syms_of_coding): Defsym it. Set all elements of
20962 Vcoding_category_table and their symbol values.
20963 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20964 coding-category-XXX, and coding-category-list.
20965 (Fdefine_coding_system_internal): Add category in the plist.
20966
20967 2008-02-01 Kenichi Handa <handa@m17n.org>
20968
20969 * callproc.c (Fcall_process): Handle carryover correctly.
20970
20971 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20972 (raw_text_coding_system): Check NILP (coding_system).
20973 (coding_inherit_eol_type): Check NILP (coding_system) and
20974 NILP (parent).
20975 (consume_chars): Fix for the case of raw-text.
20976
20977 * process.c (read_process_output): Handle carryover correctly.
20978
20979 2008-02-01 Dave Love <fx@gnu.org>
20980
20981 * regex.c (re_search_2): Fix last change.
20982
20983 2008-02-01 Kenichi Handa <handa@m17n.org>
20984
20985 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20986 target_multibyte. Even in a unibyte case, return a converted
20987 multibyte char.
20988 (GET_CHAR_AFTER): New macro.
20989 (PATFETCH): Translate via multibyte char.
20990 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20991 (SETUP_MULTIBYTE_RANGE): New macro.
20992 (regex_compile): Setup compiled code so that its multibyteness
20993 matches that of a target. Fix the handling of "[X-YZ]" using
20994 SETUP_MULTIBYTE_RANGE.
20995 (analyse_first) <charset>: For filling fastmap for all multibyte
20996 characters, don't check by BASE_LEADING_CODE_P.
20997 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20998 the same as RE_MULTIBYTE_P (bufp) now.
20999 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21000 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21001 (TRANSLATE_VIA_MULTIBYTE): New macro.
21002 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21003 It is the same as RE_MULTIBYTE_P (bufp) now.
21004 <exactn>: Translate via multibyte.
21005 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21006 translate it.
21007 <charset, charset_not>: Fetch a character by
21008 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21009 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21010 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21011 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21012 by GET_CHAR_AFTER.
21013 (bcmp_translate): Likewise.
21014
21015 * search.c (compile_pattern): Check the member target_multibyte,
21016 not the member multibyte of buf.
21017
21018 * lread.c (read1): While reading a string, set force_singlebyte
21019 and force_multibyte correctly.
21020
21021 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21022 up of unibyte_to_multibyte_table.
21023
21024 2008-02-01 Kenichi Handa <handa@m17n.org>
21025
21026 * coding.c (setup_coding_system): If coding has
21027 post-read-conversion or pre-write-conversion, set
21028 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21029 respectively.
21030 (decode_coding_gap): Run post-read-conversion if any.
21031
21032 * fileio.c (Finsert_file_contents): Even if we read into a
21033 unibyte buffer, check if we must decode the result or not.
21034
21035 2008-02-01 Kenichi Handa <handa@m17n.org>
21036
21037 * coding.c (make_conversion_work_buffer): Change the work buffer
21038 name to the same one as that of Emacs 21.
21039
21040 2008-02-01 Kenichi Handa <handa@m17n.org>
21041
21042 * coding.h (make_conversion_work_buffer): Adjust prototype.
21043 (code_conversion_restore): Don't extern it.
21044
21045 * coding.c (detected_mask): Delete unused variable.
21046 (decode_coding_iso_2022): Pay attention to the byte sequence of
21047 CTEXT extended segment, and retain those bytes as is.
21048 (decode_coding_ccl): Delete unused variable `valids'.
21049 (setup_coding_system): Delete unused variable `category'.
21050 (consume_chars): Delete unused variable `category'. Make it work
21051 for non-multibyte case.
21052 (make_conversion_work_buffer): Change argument.
21053 (saved_coding): Delete unused variable.
21054 (code_conversion_restore): Don't check saved_coding->destination.
21055 (code_conversion_save): New function.
21056 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21057 instead of record_unwind_protect.
21058 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21059 (detect_coding_system): Delete unused variable `mask'.
21060 (Fdefine_coding_system_internal): Delete unused variable id.
21061
21062 * fileio.c (kill_workbuf_unwind): New function.
21063 (Finsert_file_contents): On replacing, call
21064 make_conversion_work_buffer with correct args, and call
21065 record_unwind_protect with the first arg kill_workbuf_unwind.
21066
21067 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21068
21069 2008-02-01 Kenichi Handa <handa@m17n.org>
21070
21071 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21072 (fontset_add): Fix for the case that TO is less than TO1.
21073 (Ffontset_info): Don't use fallback fontset on checking the
21074 default fontset.
21075 (dump_fontset): New function for debugging.
21076
21077 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21078 coding_type is Qcharset.
21079
21080 2008-02-01 Kenichi Handa <handa@m17n.org>
21081
21082 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21083 (map_char_table): Don't inherit the value from the parent on
21084 initializing VAL. Adjust for the above change.
21085
21086 2008-02-01 Kenichi Handa <handa@m17n.org>
21087
21088 * coding.c (Qsignature, Qendian): Delete these variables.
21089 (syms_of_coding): Don't initialize them.
21090 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21091 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21092 detect_info->found.
21093 (decode_coding_utf_16): Don't detect BOM here.
21094 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21095 is NOT utf_16_without_bom.
21096 (setup_coding_system): For a coding system of type utf-16, check
21097 if the attribute :endian is Qbig or not (not nil or not), and set
21098 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21099 (detect_coding): If coding type is utf-16 and BOM detection is
21100 required, detect it.
21101 (Fdefine_coding_system_internal): For a coding system of type
21102 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21103
21104 2008-02-01 Kenichi Handa <handa@m17n.org>
21105
21106 * coding.c (coding_set_source): Fix for the case that the current
21107 buffer is different from coding->src_object.
21108 (decode_coding_object): Don't use the conversion work buffer if
21109 DST_OBJECT is a buffer.
21110
21111 2008-02-01 Dave Love <fx@gnu.org>
21112
21113 * lread.c (read_emacs_mule_char) [len==2]: Index
21114 emacs_mule_charset correctly.
21115
21116 2008-02-01 Dave Love <fx@gnu.org>
21117
21118 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21119 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21120 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21121 treated specially.)
21122 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21123 (detected_mask): Remove Big5 bits.
21124
21125 2008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 The following changes are to make the font rescaling facility
21128 compatible with Emacs 21.
21129
21130 * xfaces.c (Vface_font_rescale_alist): Rename from
21131 Vface_resizing_fonts.
21132 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21133 (font_rescale_ratio): Rename from font_resizing_ratio.
21134 (split_font_name): Set font->rescale_ratio.
21135 (better_font_p): Pay attention to font->rescale_ratio.
21136 (build_scalable_font_name): Likewise. Change RESX, and RESY
21137 fields.
21138 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21139
21140 2008-02-01 Kenichi Handa <handa@m17n.org>
21141
21142 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21143 (Qutf_16_le): Remove these variables.
21144 (syms_of_coding): Don't DEFSYM them.
21145 (decode_coding_utf_16): Fix handling of BOM.
21146 (encode_coding_utf_16): Fix handling of BOM.
21147
21148 2008-02-01 Kenichi Handa <handa@m17n.org>
21149
21150 * fileio.c (Finsert_file_contents): On replacing, before decoding
21151 the file into the work buffer, set point of the work buffer to the end.
21152
21153 2008-02-01 Dave Love <fx@gnu.org>
21154
21155 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21156
21157 2008-02-01 Dave Love <fx@gnu.org>
21158
21159 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21160 and fix C types.
21161
21162 2008-02-01 Kenichi Handa <handa@m17n.org>
21163
21164 * xdisp.c (SKIP_GLYPHS): New macro.
21165 (set_cursor_from_row): Pay attention to string display properties.
21166
21167 * category.c (copy_category_entry): Fix for the case that RANGE
21168 is an integer.
21169
21170 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21171
21172 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21173
21174 2008-02-01 Kenichi Handa <handa@m17n.org>
21175
21176 * charset.c (Fcharset_id_internal): New function.
21177 (syms_of_charset): Defsubr it.
21178
21179 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21180 with the last arg charset_list acquired from coding.
21181 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21182 the attribute coding_attr_ccl_valids.
21183
21184 * coding.h (enum define_coding_ccl_arg_index): Set the first
21185 member coding_arg_ccl_decoder to coding_arg_max.
21186
21187 * ccl.h (ccl_driver): Adjust prototype.
21188
21189 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21190 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21191 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21192 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21193 last arg Qnil.
21194
21195 2008-02-01 Kenichi Handa <handa@m17n.org>
21196
21197 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21198 call encode_char.
21199
21200 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21201
21202 2008-02-01 Dave Love <fx@gnu.org>
21203
21204 * composite.c (syms_of_composite): Make composition_hash_table weak.
21205
21206 2008-02-01 Kenichi Handa <handa@m17n.org>
21207
21208 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21209 (font_name_registry): Don't extern them.
21210 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21211
21212 * fontset.h (Qfontset): Don't extern it.
21213 (new_fontset_from_font_name): Extern it.
21214
21215 * fontset.c: Give 8 extra slots to fontset objects.
21216 (Qfontset_info): New variable.
21217 (syms_of_fontset): Defsym it.
21218 (FONTSET_FALLBACK): New macro.
21219 (fontset_face): Try also the default fontset.
21220 (make_fontset): Realize a fallback fontset from the default fontset.
21221 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21222 using split_font_name_into_vector and build_font_name_from_vector.
21223 (Fset_fontset_font): Access the elements of font_spec by enum
21224 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21225 name by using split_font_name_into_vector.
21226 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21227 generate a proper font name from the fontset name. Update
21228 Vfontset_alias_alist.
21229 (n_auto_fontsets): New variable.
21230 (new_fontset_from_font_name): New function.
21231 (Ffont_info): Store the information about fonts generated from the
21232 default fontset in the first extra slot of the returned char-table.
21233
21234 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21235 (font_name_registry): Delete function.
21236 (split_font_name_into_vector): New function.
21237 (build_font_name_from_vector): New function.
21238 (font_list): The argument REGISTRY is now a list of registry names.
21239 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21240 specifies an explicit font name, return the name as is. Make a
21241 list of registy names.
21242
21243 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21244 of x_new_fontset.
21245 (Fx_create_frame): Don't call x_new_fontset here. Just use
21246 x_list_fonts to check the existence of fonts.
21247
21248 * xterm.h (x_new_fontset): Adjust prototype.
21249
21250 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21251 string. Use new_fontset_from_font_name to create a fontset from a
21252 font name.
21253
21254 2008-02-01 Kenichi Handa <handa@m17n.org>
21255
21256 * syntax.c (Vfind_word_boundary_function_table): New name for
21257 Vnext_word_boundary_function_table.
21258 (find-word-boundary-function-table): New name for
21259 next-word-boundary-function-table.
21260
21261 2008-02-01 Dave Love <fx@gnu.org>
21262
21263 * Makefile.in: Fix some dependencies.
21264
21265 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21266 set it to nil before returning.
21267
21268 * composite.c (update_compositions): Fix type error.
21269
21270 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21271
21272 2008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * xterm.c (x_new_font): Optimize for the case that the font is
21275 already set for the frame.
21276
21277 2008-02-01 Kenichi Handa <handa@m17n.org>
21278
21279 * chartab.c (char_table_ascii): Check if the char table contents
21280 is sub-char-table or not.
21281 (char_table_set, char_table_set_range): Fix argument to
21282 char_table_ascii.
21283
21284 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21285 (detect_coding_utf_8, detect_coding_utf_16)
21286 (detect_coding_emacs_mule, detect_coding_iso_2022)
21287 (detect_coding_sjis, detect_coding_big5)
21288 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21289 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21290 sequence is valid in this coding system. Change callers.
21291 (MAX_ANNOTATION_LENGTH): New macro.
21292 (ADD_ANNOTATION_DATA): New macro.
21293 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21294 ADD_ANNOTATION_DATA. Change the format of annotation data.
21295 (ADD_CHARSET_DATA): New macro.
21296 (emacs_mule_char): New argument ID. Change callers.
21297 (decode_coding_emacs_mule, decode_coding_iso_2022)
21298 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21299 Produce charset annotation data in coding->charbuf.
21300 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21301 to charset annotation data in coding->charbuf.
21302 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21303 coding->common_flags if the coding system is iso-2022 based and
21304 uses designation.
21305 (produce_composition): Adjust for the new annotation data format.
21306 (produce_charset): New function.
21307 (produce_annotation): Handle charset annotation.
21308 (handle_composition_annotation, handle_charset_annotation): New
21309 functions.
21310 (consume_chars): Handle charset annotation. Utilize the above two
21311 functions.
21312 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21313 buffer, get the deleted text as a string and set
21314 coding->src_object to that string.
21315 (detect_coding, detect_coding_system): Use the new struct
21316 coding_detection_info.
21317
21318 * coding.h (struct coding_detection_info): New structure.
21319 (struct coding_system): Adjust prototype of the member `detector'.
21320 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21321
21322 2008-02-01 Kenichi Handa <handa@m17n.org>
21323
21324 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21325
21326 2008-02-01 Dave Love <fx@gnu.org>
21327
21328 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21329 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21330 to new local and nullify apropos_accumulate before returning.
21331 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21332
21333 2008-02-01 Kenichi Handa <handa@m17n.org>
21334
21335 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21336 correctly.
21337
21338 2008-02-01 Dave Love <fx@gnu.org>
21339
21340 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21341
21342 2008-02-01 Kenichi Handa <handa@m17n.org>
21343
21344 The following changes are to make character composition happen
21345 automatically on displaying.
21346
21347 * Makefile.in (lisp, shortlisp): Add composite.elc.
21348
21349 * composite.h (Qauto_composed, Vauto_composition_function)
21350 (Qauto_composition_function): Extern them.
21351
21352 * composite.c (Vcomposition_function_table)
21353 (Qcomposition_function_table): Delete variables.
21354 (Qauto_composed, Vauto_composition_function)
21355 (Qauto_composition_function): New variables.
21356 (run_composition_function): Don't call
21357 compose-chars-after-function.
21358 (update_compositions): Clear `auto-composed' text property.
21359 (compose_chars_in_text): Delete this function.
21360 (syms_of_composite): Staticpro Qauto_composed and
21361 Qauto_composition_function. Declare Vauto_composition_function as
21362 a Lisp variable.
21363
21364 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21365
21366 * xdisp.c (it_props): Add an entry for Qauto_composed.
21367 (handle_auto_composed_prop): New function.
21368
21369 * xselect.c (selection_data_to_lisp_data): Don't call
21370 compose_chars_in_text.
21371
21372 2008-02-01 Dave Love <fx@gnu.org>
21373
21374 * keyboard.c (read_char): Modify checking around use of
21375 Vkeyboard_translate_table.
21376
21377 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21378 and fix C types.
21379
21380 2008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21383 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21384 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21385 the case that the last byte is '\r' correctly.
21386 (decode_coding): Flush out the unprocessed data correctly.
21387 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21388
21389 2008-02-01 Dave Love <fx@gnu.org>
21390
21391 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21392 Add XK_ISO... case.
21393 (xaw_scroll_callback): Revert last change.
21394
21395 2008-02-01 Kenichi Handa <handa@m17n.org>
21396
21397 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21398
21399 2008-02-01 Kenichi Handa <handa@m17n.org>
21400
21401 * xfaces.c (Vface_resizing_fonts): New variable.
21402 (struct font_name): New member `resizing_ratio'.
21403 (font_resizing_ratio): New function.
21404 (split_font_name): Set font->resizing_ratio.
21405 (better_font_p): Pay attention to font->resizing_ratio.
21406 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21407 RESX, and RESY fields.
21408 (try_alternative_families): Try scalable fonts if
21409 Vscalable_fonts_allowed is not Qt.
21410 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21411
21412 2008-02-01 Dave Love <fx@gnu.org>
21413
21414 * xterm.c (xaw_scroll_callback): Cast correctly.
21415
21416 2008-02-01 Dave Love <fx@gnu.org>
21417
21418 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21419 (lispy_kana_keys): Comment out.
21420 (make_lispy_event) [XK_kana_A]: Comment out.
21421
21422 * xterm.c (xaw_scroll_callback): Cast call_data.
21423 (XTread_socket): Deal with ASCII keysyms.
21424 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21425
21426 2008-02-01 Dave Love <fx@gnu.org>
21427
21428 * xterm.c (Vx_keysym_table): New.
21429 (syms_of_xterm): Initialize it.
21430 (XTread_socket): Use it.
21431 From head: Eliminate incorrect optimization that tried to avoid
21432 decoding the output of X*LookupString.
21433 (x_get_font_repertory): Delete charset declaration.
21434
21435 2008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21438 return 0.
21439 (Fdefine_coding_system_internal): Setup
21440 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21441
21442 2008-02-01 Dave Love <fx@gnu.org>
21443
21444 * coding.c (Fcheck_coding_system): Doc fix.
21445
21446 * editfns.c (Finsert_byte): Return a proper value.
21447
21448 2008-02-01 Kenichi Handa <handa@m17n.org>
21449
21450 * coding.c (decode_coding): Fix args to translate_chars. Pay
21451 attention to Vstandard_translation_table_for_decode.
21452 (encode_coding): Fix args to translate_chars. Pay attention to
21453 Vstandard_translation_table_for_encode.
21454
21455 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21456 SINGLE_BYTE_CHAR_P.
21457
21458 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21459 not by SINGLE_BYTE_CHAR_P.
21460
21461 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21462 SINGLE_BYTE_CHAR_P.
21463
21464 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21465 SINGLE_BYTE_CHAR_P.
21466
21467 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21468 by SINGLE_BYTE_CHAR_P.
21469
21470 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21471 SINGLE_BYTE_CHAR_P.
21472
21473 2008-02-01 Dave Love <fx@gnu.org>
21474
21475 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21476
21477 2008-02-01 Dave Love <fx@gnu.org>
21478
21479 * fns.c (Flanginfo): Fix typo.
21480
21481 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21482
21483 2008-02-01 Kenichi Handa <handa@m17n.org>
21484
21485 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21486 (detect_coding_emacs_mule, detect_coding_iso_2022)
21487 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21488 incomplete byte sequence. Don't update *mask when correctly detected.
21489 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21490 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21491 (detect_coding, detect_coding_system): Adjust for the changes above.
21492
21493 2008-02-01 Kenichi Handa <handa@m17n.org>
21494
21495 * character.c (char_string): Rename from
21496 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21497 (string_char): Rename from string_char.
21498
21499 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21500 if C is greater than MAX_3_BYTE_CHAR.
21501 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21502 string_char instead of string_char_with_unification.
21503
21504 2008-02-01 Dave Love <fx@gnu.org>
21505
21506 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21507
21508 2008-02-01 Kenichi Handa <handa@m17n.org>
21509
21510 * keymap.c (push_key_description): Pay attention to force_multibyte.
21511
21512 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21513
21514 2008-02-01 Dave Love <fx@gnu.org>
21515
21516 * charset.c (define_charset_internal): Rename `supprementary'.
21517
21518 * Makefile.in (lisp, shortlisp): Remove latin-N.
21519
21520 2008-02-01 Dave Love <fx@gnu.org>
21521
21522 * xfns.c (x_window, x_window): Use use_xim.
21523
21524 * xterm.c (use_xim): Initialize.
21525 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21526 (x_term_init): Maybe set use_xim.
21527
21528 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21529
21530 2008-02-01 Kenichi Handa <handa@m17n.org>
21531
21532 * search.c (search_buffer): Fix case-fold-search of multibyte
21533 characters.
21534 (boyer_moore): Rename the last argument to char_high_bits.
21535
21536 2008-02-01 Kenichi Handa <handa@m17n.org>
21537
21538 * xdisp.c (display_string): Fix for the case of zero width glyph.
21539
21540 * xfns.c (x_set_font): Change the error message of the case that
21541 x_new_fontset returns Qt.
21542
21543 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21544 (Finternal_set_lisp_face_attribute): Use signal_error for the
21545 error of invalid fontset.
21546
21547 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21548 fontset, return Qt.
21549
21550 2008-02-01 Dave Love <fx@gnu.org>
21551
21552 * unexelf.c (unexec): Make .got handling not SGI-specific.
21553
21554 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21555
21556 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21557
21558 * keyboard.c (read_key_sequence): Fix type error.
21559
21560 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21561 type error.
21562
21563 * fontset.c (fontset_add): Return Lisp_Object.
21564
21565 2008-02-01 Dave Love <fx@gnu.org>
21566
21567 * charset.h (charset_ordered_list_tick): Declare extern.
21568
21569 2008-02-01 Kenichi Handa <handa@m17n.org>
21570
21571 The following changes (and some of 2008-02-01 changes of mine) are
21572 for handling syntax, category, and case conversion for unibyte
21573 characters by converting them to multibyte on the fly. With these
21574 changes, we don't have to setup syntax and case tables for unibyte
21575 characters in each language environment.
21576
21577 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21578 multibyte if necessary.
21579
21580 * bytecode.c (Fbyte_code): Likewise.
21581
21582 * character.h (LEADING_CODE_LATIN_1_MIN)
21583 (LEADING_CODE_LATIN_1_MAX): New macros.
21584 (unibyte_to_multibyte_table): Extern it.
21585 (unibyte_char_to_multibyte): New macro.
21586 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21587 (CHAR_LEADING_CODE): New macro.
21588 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21589
21590 * character.c (unibyte_to_multibyte_table): New variable.
21591 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21592 (multibyte_char_to_unibyte): If C is an eight-bit character,
21593 convert it to the corresponding byte value.
21594
21595 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21596 not 1, signals an error. Update the elements of
21597 unibyte_to_multibyte_table.
21598 (init_charset_once): Initialize unibyte_to_multibyte_table.
21599 (syms_of_charset): Define the charset `iso-8859-1'.
21600
21601 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21602 as is without converting it to unibyte. In a unibyte buffer,
21603 convert C to multibyte before checking the syntax.
21604
21605 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21606
21607 * minibuf.c (Fminibuffer_complete_word): Use the macro
21608 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21609
21610 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21611
21612 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21613 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21614 that is zero, convert an eight-bit char to multibyte.
21615 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21616 non-emacs case.
21617 (PATFETCH): Convert an eight-bit char to multibyte.
21618 (HANDLE_UNIBYTE_RANGE): New macro.
21619 (regex_compile): Setup the compiled pattern for multibyte chars
21620 even if the given regex string is unibyte. Use PATFETCH_RAW
21621 instead of PATFETCH in many places. To handle `charset'
21622 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21623 only for ASCII chars.
21624 (analyse_first) <exactn>: Simplify because the compiled pattern
21625 is multibyte.
21626 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21627 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21628 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21629 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21630 multibyte always 1.
21631 (re_search_2): In emacs, set the locale variable multibyte to 1,
21632 otherwise to 0. New local variable target_multibyte. Check it
21633 to decide the multibyteness of STR1 and STR2. If
21634 target_multibyte is zero, convert unibyte chars to multibyte
21635 before translating and checking fastmap.
21636 (TARGET_CHAR_AND_LENGTH): New macro.
21637 (re_match_2_internal): In emacs, set the locale variable multibyte
21638 to 1, otherwise to 0. New local variable target_multibyte. Check
21639 it to decide the multibyteness of STR1 and STR2. Use
21640 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21641 <charset, charset_not>: If multibyte is nonzero, check fastmap
21642 only for ASCII chars. Call bcmp_translate with
21643 target_multibyte, not with multibyte.
21644 <begline>: Declare the local variable C as `unsigned'.
21645 (bcmp_translate): Change the last arg name to target_multibyte.
21646
21647 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21648 the regexp pattern and the matching target. Set cp->buf.multibyte
21649 to the multibyteness of the regexp pattern. Set
21650 cp->but.target_multibyte to the multibyteness of the matching target.
21651 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21652 FETCH_STRING_CHAR_ADVANCE.
21653 (Freplace_match): Convert unibyte chars to multibyte.
21654
21655 * syntax.c (char_quoted, back_comment, scan_words)
21656 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21657 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21658 unibyte chars to multibyte.
21659 (skip_chars): Delete the arg syntaxp, and move the code for
21660 handling syntaxes to skip_syntaxes. Change callers.
21661 Fix the case that the multibyteness of STRING and the current
21662 buffer doesn't match.
21663 (skip_syntaxes): New function.
21664 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21665 SINGLE_BYTE_CHAR_P.
21666
21667 2008-02-01 Kenichi Handa <handa@m17n.org>
21668
21669 * xfaces.c (QCfontset): New variable.
21670 (LFACE_FONTSET): New macro.
21671 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21672 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21673 (Finternal_set_lisp_face_attribute)
21674 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21675 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21676 check also LFACE_FONTSET_INDEX.
21677 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21678 attrs[LFACE_FONT_INDEX].
21679 (syms_of_xfaces): Intern and staticpro QCfontset.
21680
21681 * dispextern.h (enum lface_attribute_index): New member
21682 LFACE_FONTSET_INDEX.
21683
21684 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21685
21686 2008-02-01 Kenichi Handa <handa@m17n.org>
21687
21688 * coding.c (coding_set_destination): Fix coding->destination for
21689 the case converting a region.
21690 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21691 (encode_coding_object): Fix coding->dst_pos and
21692 coding->dst_pos_byte for the case converting a region.
21693
21694 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21695
21696 * character.h (BYTE8_STRING): New macro.
21697
21698 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21699
21700 2008-02-01 Kenichi Handa <handa@m17n.org>
21701
21702 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21703 characters by octal form.
21704
21705 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21706
21707 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21708 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21709 _fetch_multibyte_char_len.
21710 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21711
21712 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21713
21714 * casefiddle.c (casify_object): Simplify. Handle the case that
21715 the case conversion change the byte length.
21716 (casify_region): Likewise.
21717
21718 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21719
21720 * character.c (_fetch_multibyte_char_len): Delete this variable.
21721 (syms_of_character): Setup Vprintable_chars.
21722
21723 * editfns.c (Fchar_equal): Fix for the unibyte case.
21724 (Finsert_byte): New function.
21725 (syms_of_editfns): Defsubr it.
21726
21727 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21728 of direct code 0x3ffff.
21729
21730 * search.c (Freplace_match): Fix for the unibyte case.
21731
21732 2008-02-01 Kenichi Handa <handa@m17n.org>
21733
21734 * lread.c (safe_to_load_p): Fix the logic.
21735
21736 * syntax.c (scan_words): Don't treat characters belonging to
21737 different scripts as constituting a word.
21738
21739 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21740
21741 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21742
21743 * emacs.c (main): In the case of --unibyte, instead of aborting on
21744 finding non-empty buffer, make it unibyte.
21745
21746 2008-02-01 Kenichi Handa <handa@m17n.org>
21747
21748 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21749 to create a fontset.
21750
21751 2008-02-01 Dave Love <fx@gnu.org>
21752
21753 * character.c (Funibyte_char_to_multibyte): Doc fix.
21754
21755 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21756
21757 2008-02-01 Kenichi Handa <handa@m17n.org>
21758
21759 * fontset.c (fontset_add): Make the type `int'.
21760 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21761
21762 * character.c (unibyte_char_to_multibyte)
21763 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21764 charset_unibyte, not charset_primary.
21765
21766 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21767
21768 * charset.c (charset_unibyte): Rename from charset_primary.
21769 (Funibyte_charset): Rename from Fprimary_charset.
21770 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21771 (syms_of_charset): Adjust for the above changes.
21772
21773 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21774 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21775 it->multibyte_p is zero.
21776
21777 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21778 Delete extern.
21779
21780 2008-02-01 Kenichi Handa <handa@m17n.org>
21781
21782 * coding.c (Fdefine_coding_system_internal): Fix category setting
21783 for a coding system of type iso-2022.
21784
21785 2008-02-01 Kenichi Handa <handa@m17n.org>
21786
21787 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21788
21789 2008-02-01 Kenichi Handa <handa@m17n.org>
21790
21791 * syntax.c (Vnext_word_boundary_function_table): New variable.
21792 (next-word-boundary-function-table): Declare it as a Lisp variable
21793 in syms_of_syntax.
21794 (scan_words): Call functions in Vnext_word_boundary_function_table
21795 if any.
21796
21797 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21798
21799 * fontset.c (fs_load_font): If fontp->charset is not negative,
21800 return fontp without setting its members.
21801
21802 2008-02-01 Dave Love <fx@gnu.org>
21803
21804 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21805
21806 * m/sparc.h (HAVE_ALLOCA): Delete.
21807
21808 * s/irix6-5.h: Don't include strings.h.
21809 (bcopy, bzero, bcmp): Don't undef.
21810
21811 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21812
21813 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21814 (TIOCSIGSEND): Don't test IRIX6.
21815 (bcopy, bzero, bcmp): Define conditionally.
21816
21817 2008-02-01 Kenichi Handa <handa@m17n.org>
21818
21819 * buffer.c (Qas, Qmake, Qto): New variables.
21820 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21821 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21822
21823 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21824 we are inserting a process output into a multibyte buffer.
21825
21826 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21827 multibyte_char_to_unibyte.
21828
21829 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21830 by the primary charset, make it eight-bit char.
21831 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21832
21833 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21834 (charset_8_bit__control, charset_8_bit_graphic)
21835 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21836 (define_charset_internal): New function.
21837 (syms_of_charset): Call define_charset_internal for pre-defined
21838 charsets.
21839
21840 * charset.h (charset_8_bit): Extern it.
21841
21842 * coding.c (make_conversion_work_buffer): Adjust for the change
21843 of Fset_buffer_multibyte.
21844 (encode_coding_raw_text): Increment p0 in the loop.
21845
21846 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21847
21848 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21849 for the change of Fset_buffer_multibyte.
21850
21851 * fns.c (Fstring_to_multibyte): New function.
21852 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21853
21854 2008-02-01 Dave Love <fx@gnu.org>
21855
21856 * xfns.c (x_put_x_image): Declare args.
21857
21858 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21859 (try_font_list): Declare an arg.
21860
21861 * xdisp.c (message2_nolog, set_message): Declare an arg.
21862
21863 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21864
21865 * syntax.c (scan_sexps_forward): Declare an arg.
21866
21867 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21868 Declare an arg.
21869
21870 * lisp.h (Fnew_fontset): Declare.
21871
21872 * keymap.c (push_key_description): Call CHARACTERP correctly.
21873
21874 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21875 (face_for_char): Delete unused vars.
21876 (Fset_fontset_font): Doc fix. Delete unused vars.
21877
21878 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21879
21880 * composite.c (update_compositions): Declare arg.
21881
21882 * cm.c (calccost, cmgoto): Declare args.
21883
21884 * charset.c: Remove `emacs' conditional. Doc fixes.
21885 (map_char_table_for_charset): Declare.
21886
21887 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21888
21889 * ccl.c: Remove `emacs' conditional.
21890
21891 2008-02-01 Kenichi Handa <handa@m17n.org>
21892
21893 The following changes are to allow specifying multiple font
21894 patterns for a character range (specified by script or charset).
21895
21896 * Makefile.in (abbrev.o): Depend on syntax.h.
21897 (xfaces.o): Depend on charset.h.
21898
21899 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21900 SINGLE_BYTE_CHAR_P.
21901
21902 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21903
21904 * character.h (Vchar_script_table): Extern it.
21905
21906 * character.c (Vscript_alist): Delete.
21907 (Vchar_script_table, Qchar_script_table): New variable.
21908 (syms_of_character): Declare Vchar_script_table as a lisp variable
21909 and initialize it.
21910
21911 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21912 have property char-table-extra-slots, make no extra slot.
21913
21914 * dispextern.h (struct face): Delete member `charset'.
21915 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21916 SINGLE_BYTE_CHAR_P.
21917 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21918 Add prototypes.
21919 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21920 (generate_ascii_font_name): Rename from generate_ascii_font.
21921
21922 * fontset.h (get_font_repertory_func): New prototype.
21923 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21924 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21925
21926 * fontset.c (Qprepend, Qappend): New variables.
21927 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21928 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21929 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21930 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21931 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21932 (load_font_get_repertory): New functions.
21933 (fontset_set): Delete.
21934 (fontset_face): New arg FACE. Return face ID, not face.
21935 Complete re-write to handle new fontset structure. Change caller.
21936 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21937 (face_for_char): Don't call lookup_face.
21938 (make_fontset_for_ascii_face): New arg FACE.
21939 (fs_load_font): New arg CHARSET_ID. Don't check
21940 Vfont_encoding_alist here.
21941 (find_font_encoding): New function.
21942 (list_fontsets): Use STRINGP, not ! NILP.
21943 (accumulate_script_ranges): New function.
21944 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21945 re-written to handle new fontset structure.
21946 (Ffontset_font): Return a copy of element.
21947 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21948 docstring of font-encoding-alist.
21949
21950 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21951 (Fset_fotset_font): Fix arguments to 5.
21952
21953 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21954
21955 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21956 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21957 (highlight_trailing_whitespace): Adjust for the change of
21958 lookup_named_face.
21959
21960 * xfaces.c: Include charset.h.
21961 (load_face_font): Delete argument C. Change caller.
21962 (generate_ascii_font_name): Rename from generate_ascii_font.
21963 (font_name_registry): New function.
21964 (cache_face): Store ascii faces before non-ascii faces in buckets.
21965 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21966 Lookup only ascii faces.
21967 (lookup_non_ascii_face): New function.
21968 (lookup_named_face): Delete argument C. Change caller.
21969 (lookup_derived_face): Delete argument C. Change caller.
21970 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21971 a string, just call font_list with it.
21972 (choose_face_font): Delete arguments FACE and C. New arg
21973 FONT_SPEC. Change caller.
21974 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21975 Change caller.
21976 (realize_non_ascii_face): New function.
21977 (realize_x_face): Call load_face_font here.
21978 (realize_tty_face): Delete argument C. Change caller.
21979 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21980 get a face ID.
21981 (dump_realized_face): Don't print charset of FACE.
21982
21983 * xfns.c (x_set_font): Always call x_new_fontset and
21984 store_frame_parameter.
21985 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21986 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21987
21988 * xterm.h (x_get_font_repertory): Extern it.
21989
21990 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21991 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21992 it->multibyte_p is zero.
21993 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21994 (x_new_fontset): If FONTSETNAME doesn't match any existing
21995 fontsets, create a new one.
21996 (x_get_font_repertory): New function.
21997
21998 2008-02-01 Kenichi Handa <handa@m17n.org>
21999
22000 * coding.c (Ffind_coding_systems_region_internal): Detect an
22001 ASCII only string correctly.
22002
22003 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22004 version is 0.
22005
22006 2008-02-01 Kenichi Handa <handa@m17n.org>
22007
22008 * lread.c: Include "coding.h".
22009 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22010 (load_each_byte, unread_char): New variables.
22011 (readchar_backlog): Delete.
22012 (readchar): Return a character unless load_each_byte is nonzero.
22013 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22014 cons. If unread_char is not -1, simply return it.
22015 (unreadchar): Handle the case that readcharfun is
22016 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22017 (read_multibyte): Delete.
22018 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22019 (read_emacs_mule_char): New functions.
22020 (Fload): Even if the file doesn't have the extension ".elc", if
22021 safe_to_load_p returns a positive version number, assume that the
22022 file contains bytecompiled code. If the version is less than 22,
22023 load the file while decoding multibyte sequences by emacs-mule.
22024 (readevalloop): Don't use readchar_backlog.
22025 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22026 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22027 (read_escape): Delete the arg BYTEREP.
22028 (read1): Set load_each_byte to 1 temporarily while handling
22029 #@NUMBER. Don't call read_multibyte.
22030 (read_vector): Call Fread with a cons. If readcharfun is
22031 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22032 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22033 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22034 and Qload_force_doc_strings.
22035
22036 2008-02-01 Kenichi Handa <handa@m17n.org>
22037
22038 * xdisp.c (face_before_or_after_it_pos): Call
22039 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22040
22041 2008-02-01 Kenichi Handa <handa@m17n.org>
22042
22043 * character.h (TRAILING_CODE_P): New macro.
22044 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22045 (string_char_with_unification): Fix prototype.
22046 (Vscript_alist): Extern it.
22047
22048 * character.c (Vscript_alist): New variable.
22049 (string_char_with_unification, str_as_unibyte)
22050 (string_escape_byte8): Add `const' to local variables.
22051 (syms_of_character): Declare script-alist as a Lisp variable.
22052
22053 * charset.h (Vcharset_ordered_list): Extern it.
22054 (charset_ordered_list_tick): Extern it.
22055 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22056 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22057 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22058 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22059 (Funify_charset): Adjust for the change of Funify_charset.
22060
22061 * charset.c (charset_ordered_list_tick): New variable.
22062 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22063 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
22064 deunify instead of unify a charset.
22065 (string_xstring_p): Add `const' to local variables.
22066 (find_charsets_in_text): Add `const' to arguments and local variables.
22067 (encode_char): Adjust for the change of Funify_charset. Fix
22068 detecting of invalid code.
22069 (Fset_charset_priority): Increment charset_ordered_list_tick.
22070 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22071 and TO_CODE.
22072
22073 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22074 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22075 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22076 (decode_coding_ccl, consume_chars)
22077 (Ffind_coding_systems_region_internal)
22078 (Fcheck_coding_systems_region): Add `const' to local variables.
22079
22080 * print.c (print_object): Use octal form for printing the
22081 contents of a bool vector.
22082
22083 2008-02-01 Dave Love <fx@gnu.org>
22084
22085 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22086 <version == 20>: Refuse to load.
22087
22088 2008-02-01 Dave Love <fx@gnu.org>
22089
22090 * fns.c: Move coding.h.
22091 (Qcodeset, Qdays, Qmonths): New.
22092 (concat): Use CHARACTERP instead of INTEGERP.
22093 (Flocale_codeset): Delete.
22094 (Flanginfo): New function.
22095 (syms_of_fns): Change accordingly.
22096
22097 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22098
22099 2008-02-01 Dave Love <fx@gnu.org>
22100
22101 * casetab.c (init_casetab_once, init_casetab_once): Fix
22102 CHAR_TABLE_SET call.
22103
22104 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22105
22106 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22107
22108 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22109 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22110 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22111
22112 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22113
22114 * coding.c (ENCODE_DESIGNATION, decode_eol)
22115 (make_conversion_work_buffer, code_conversion_restore)
22116 (Fdefine_coding_system_internal): Convert Lisp types.
22117 (code_conversion_restore): Use EQ, not ==.
22118 (Fencode_coding_string): Fix code_convert_string call.
22119
22120 * coding.h (code_convert_region): Fix prototype.
22121
22122 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22123
22124 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22125 (Ffontset_info): Convert Lisp types.
22126
22127 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22128
22129 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22130
22131 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22132
22133 * chartab.c: Include "...h", not <...h> in some cases.
22134
22135 * callproc.c (Fcall_process): Remove unused variables.
22136
22137 2008-02-01 Dave Love <fx@gnu.org>
22138
22139 * coding.c (Fset_coding_system_priority): Allow null arg list.
22140
22141 2008-02-01 Dave Love <fx@gnu.org>
22142
22143 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22144 (Fself_insert_and_exit): Use CHARACTERP.
22145
22146 * callproc.c (Fcall_process): Remove unused vars.
22147
22148 * xterm.c (XTread_socket): Add extra dead keysyms.
22149
22150 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22151
22152 * dispextern.h: Remove prototypes for redraw_frame,
22153 redraw_garbaged_frames.
22154
22155 * cmds.c (Fself_insert_command): Use CHARACTERP.
22156
22157 * chartab.c (make_sub_char_table): Remove unused var.
22158 (Fset_char_table_default, Fmap_char_table): Doc fix.
22159
22160 * keymap.c (access_keymap): Remove generic char code.
22161 (push_key_description): Use CHARACTERP.
22162
22163 2008-02-01 Dave Love <fx@gnu.org>
22164
22165 * charset.c: Doc fixes.
22166 (Funify_charset): Extra checking.
22167
22168 2008-02-01 Dave Love <fx@gnu.org>
22169
22170 * lread.c: Remove some unused variables.
22171 (safe_to_load_p): If safe, return the magic number version byte.
22172 (Fload): Maybe use load-with-code-conversion.
22173
22174 2008-02-01 Kenichi Handa <handa@m17n.org>
22175
22176 * category.c (Fmodify_category_entry): Don't modify the contents
22177 of category_set for characters out of the range. Avoid
22178 unnecessary modification.
22179
22180 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22181 Vchar_unify_table. The default value of the table is now nil.
22182
22183 * character.c (syms_of_character): Setup Vchar_width_table for
22184 eight-bit-control and raw-byte chars.
22185
22186 * charset.h (enum define_charset_arg_index): Delete
22187 charset_arg_parents and add charset_arg_subset and
22188 charset_arg_superset.
22189 (enum charset_attr_index): Delete charset_parents and add
22190 charset_subset and charset_superset.
22191 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22192 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22193 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22194 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22195 (CHARSET_SUPERSET): New macros.
22196 (charset_work): Extern it.
22197 (ENCODE_CHAR): Use charset_work.
22198 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22199 (map_charset_chars): Extern it.
22200
22201 * charset.c (load_charset_map): Set the default value of encoder
22202 and deunifier char-tables to nil.
22203 (map_charset_chars): Change argument. Change callers. Use
22204 map_char_table_for_charset instead of map_char_table.
22205 (Fmap_charset_chars): New optional args from_code and to_code.
22206 (Fdefine_charset_internal): Adjust for the change of
22207 `define-charset' (:parents -> :subset or :superset).
22208 (charset_work): New variable.
22209 (encode_char, syms_of_charset): Adjust for the change of
22210 Fdefine_charset_internal.
22211 (Ffind_charset_string): Setup the vector `charsets' correctly.
22212
22213 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22214 the previous change.
22215 (char_table_ref_and_range): Adjust for the above change.
22216 (map_sub_char_table_for_charset): New function.
22217 (map_char_table_for_charset): New function.
22218
22219 * keymap.c (describe_vector): Handle a char-table directly here.
22220 (describe_char_table): Delete.
22221
22222 * lisp.h (map_charset_chars): Delete.
22223
22224 2008-02-01 Dave Love <fx@gnu.org>
22225
22226 * fns.c (count_combining): Comment out (unused).
22227 (Flocale_codeset): New.
22228 (syms_of_fns): Defsubr it.
22229
22230 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22231 (size_t): Remove.
22232
22233 2008-02-01 Dave Love <fx@gnu.org>
22234
22235 * Makefile.in (chartab.o): Depend on charset.h.
22236
22237 2008-02-01 Kenichi Handa <handa@m17n.org>
22238
22239 * character.c (syms_of_character): Set the default value of
22240 Vprintable_chars to Qnil.
22241
22242 2008-02-01 Dave Love <fx@gnu.org>
22243
22244 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22245
22246 2008-02-01 Kenichi Handa <handa@m17n.org>
22247
22248 * charset.c (load_charset_map): Handle the case that from < to
22249 correctly.
22250
22251 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22252 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22253 Pay attention to raw-8-bit chars.
22254
22255 2008-02-01 Kenichi Handa <handa@m17n.org>
22256
22257 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22258 It is not bytecompiled now.
22259
22260 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22261 (charset_jisx0208): New variables.
22262 (Fdefine_charset_internal): Setup them if appropriate.
22263 (init_charset_once): Initialize them to -1.
22264
22265 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22266 (charset_jisx0208): Extern them.
22267
22268 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22269 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22270 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22271 (setup_iso_safe_charsets): Fix arguments to Fassq.
22272 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22273 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22274 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22275 (encode_coding_iso_2022): Change the 1st arg to
22276 ENCODE_ISO_CHARACTER to a variable.
22277
22278 2008-02-01 Kenichi Handa <handa@m17n.org>
22279
22280 * charset.h (enum define_charset_arg_index): New enums
22281 charset_arg_min_code and charset_arg_max_code.
22282 (struct charset): New member char_index_offset.
22283
22284 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22285 Take charset->char_index_offset into account.
22286 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22287 args[charset_arg_max_code]. Setup charset.char_index_offset.
22288 (syms_of_charset): Fix args to Fdefine_charset_internal.
22289
22290 2008-02-01 Dave Love <fx@gnu.org>
22291
22292 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22293
22294 2008-02-01 Dave Love <fx@gnu.org>
22295
22296 * coding.c: Doc fixes.
22297 (Fcoding_system_aliases): Fix return value.
22298 (Qmac): Remove (duplicated) definition.
22299
22300 2008-02-01 Dave Love <fx@gnu.org>
22301
22302 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22303 New functions.
22304
22305 * character.c (Fstring): Doc fix.
22306
22307 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22308
22309 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22310 (font-encoding-alist): Doc fix.
22311
22312 2008-02-01 Dave Love <fx@gnu.org>
22313
22314 * term.c (costs_set): Declare static, non-initialized for pcc.
22315 (encode_terminal_code): Remove unused var.
22316
22317 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22318 for K&R.
22319
22320 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22321
22322 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22323 (suffixes): Move out of make_subsidiaries for K&R.
22324
22325 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22326
22327 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22328
22329 2008-02-01 Dave Love <fx@gnu.org>
22330
22331 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22332
22333 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22334
22335 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22336
22337 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22338
22339 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22340
22341 2008-02-01 Kenichi Handa <handa@m17n.org>
22342
22343 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22344 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22345
22346 2008-02-01 Kenichi Handa <handa@m17n.org>
22347
22348 * coding.c (decode_coding_charset): Adjust for the change of
22349 Fdefine_coding_system_internal.
22350 (Fdefine_coding_system_internal): For a coding system of
22351 `charset' type, store a list of charset IDs in
22352 `charset_attr_charset_valids' element of coding attributes.
22353
22354 2008-02-01 Kenichi Handa <handa@m17n.org>
22355
22356 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22357 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22358 caller. Handle 2-byte and 3-byte charsets correctly.
22359 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22360 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22361 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22362 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22363 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22364 sequence.
22365 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22366 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22367 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22368 and alt&rule composition.
22369 (decode_coding_iso_2022): Handle composition correctly.
22370 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22371
22372 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22373 re-defining a charset. If the charset has :emacs-mule-id, setup
22374 emacs_mule_bytes.
22375 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22376
22377 2008-02-01 Kenichi Handa <handa@m17n.org>
22378
22379 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22380 (encode_coding_big5, encode_coding_charset): If coding requires safe
22381 encoding, produce a character specified by
22382 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22383
22384 2008-02-01 Dave Love <fx@gnu.org>
22385
22386 * xterm.c (XSetIMValues): Declare.
22387
22388 * process.c: Conditionally include sys/wait.h, pty.h.
22389
22390 * print.c (print_object): Fix print format for 64-bit systems.
22391
22392 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22393
22394 * buffer.c (emacs_strerror): Declare.
22395
22396 * fontset.c (Fclear_face_cache): Declare.
22397 (accumulate_font_info): Comment-out (unused).
22398 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22399 variables.
22400
22401 * character.h (string_escape_byte8): Declare.
22402
22403 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22404 unused vars.
22405 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22406 (Fmap_charset_chars): Doc fix.
22407
22408 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22409 (Fset_coding_system_priority, Fset_coding_system_priority)
22410 (Fdefine_coding_system_internal): Doc fix.
22411
22412 2008-02-01 Dave Love <fx@gnu.org>
22413
22414 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22415
22416 2008-02-01 Kenichi Handa <handa@m17n.org>
22417
22418 * character.c (string_escape_byte8): Make multibyte string with
22419 correct size.
22420
22421 * charset.c (Fmake_char): Delete unnecessary code.
22422
22423 2008-02-01 Kenichi Handa <handa@m17n.org>
22424
22425 * xfns.c (x_encode_text): Allocate coding.destination here, and
22426 call encode_coding_object with dst_object Qnil.
22427
22428 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22429 multibyte form correctly.
22430
22431 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22432 against Vfont_encoding_alist.
22433
22434 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22435 handling of charset list.
22436 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22437 (decode_coding_object): Move point to coding->dst_pos before
22438 calling post-read-conversion function.
22439 (encode_coding_object): Give correct arguments to
22440 pre-write-conversion. Ignore the return value of
22441 pre-write-conversion function. Pay attention to the case that
22442 pre-write-conversion changes the current buffer. If dst_object is
22443 Qt, even if coding->src_bytes is zero, allocate at least one byte
22444 to coding->destination.
22445
22446 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22447
22448 * charset.c (Fmake_char): Make it more backward compatible.
22449 (Fmap_charset_chars): Fix docstring.
22450
22451 2008-02-01 Dave Love <fx@gnu.org>
22452
22453 * coding.c: Doc fixes.
22454 (Fdefine_coding_system_alias): Use names, not symbols, in
22455 coding-system-alist.
22456
22457 2008-02-01 Kenichi Handa <handa@m17n.org>
22458
22459 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22460 of calling free_realized_face.
22461
22462 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22463
22464 * charset.c (read_hex): Don't treat SPC as a comment starter.
22465 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22466 (Fdecode_char): Fix typo.
22467
22468 2008-02-01 Kenichi Handa <handa@m17n.org>
22469
22470 * charset.h (struct charset): New member `code_space_mask'.
22471
22472 * coding.c (coding_set_source): Delete the local variable beg_byte.
22473 (encode_coding_charset, Fdefine_coding_system_internal):
22474 Delete the local variable charset.
22475 (Fdefine_coding_system_internal): Setup
22476 attrs[coding_attr_charset_valids] correctly.
22477
22478 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22479 member to check if CODE is valid or not.
22480 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22481 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22482 is within the range of charset->min_code and carset->max_code.
22483
22484 2008-02-01 Dave Love <fx@gnu.org>
22485
22486 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22487
22488 * dispextern.h (generate_ascii_font): Fix return type.
22489
22490 * xfaces.c (generate_ascii_font): Fix arg declaration.
22491
22492 * coding.c (coding_inherit_eol_type)
22493 (Fset_terminal_coding_system_internal)
22494 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22495
22496 2008-02-01 Kenichi Handa <handa@m17n.org>
22497
22498 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22499 multiple charsets correctly.
22500
22501 2008-02-01 Kenichi Handa <handa@m17n.org>
22502
22503 * search.c (boyer_moore): Fix handling of multibyte character
22504 translation.
22505
22506 * xdisp.c (display_mode_element): When the variable `elt' is
22507 changed, update `this' and `lisp_string'.
22508
22509 2008-02-01 Kenichi Handa <handa@m17n.org>
22510
22511 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22512
22513 * callproc.c (Fcall_process): Be sure to give the current buffer
22514 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22515
22516 * charset.c (struct charset_map_entries): New struct.
22517 (load_charset_map): Rename from parse_charset_map. New args
22518 entries and n_entries. Change caller.
22519 (load_charset_map_from_file): Rename from load_charset_map.
22520 Change caller. New arg control_flag. Call load_charset_map at
22521 the tail.
22522 (load_charset_map_from_vector): New function.
22523 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22524 (encode_char): If the charset is compact, change a character index
22525 to a code point.
22526
22527 * coding.c (coding_alloc_by_making_gap): Check the case that the
22528 source and destination are the same correctly.
22529 (decode_coding_raw_text): Set coding->consumed_char and
22530 coding->consumed to 0.
22531 (produce_chars): If coding->chars_at_source is nonzero, update
22532 coding->consumed_char and coding->consumed before calling
22533 alloc_destination.
22534 (Fdefine_coding_system_alias): Register ALIAS in
22535 Vcoding_system_alist.
22536 (syms_of_coding): Define `no-conversion' coding system at the tail.
22537
22538 * fileio.c (Finsert_file_contents): Set coding_system instead of
22539 val. If the current buffer is multibyte, always call
22540 decode_coding_gap.
22541
22542 * xfaces.c (try_font_list): Give higher priority to fontset's
22543 family than face's family.
22544
22545 2008-02-01 Kenichi Handa <handa@m17n.org>
22546
22547 * callproc.c (Fcall_process): Be sure to give the current buffer
22548 to decode_coding_c_string.
22549
22550 * xfaces.c (try_font_list): Give a family specified in a fontset
22551 higher priority than a family specified in a face.
22552
22553 2008-02-01 Kenichi Handa <handa@m17n.org>
22554
22555 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22556 Fix arguments to insert_from_buffer.
22557
22558 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22559
22560 2008-02-01 Kenichi Handa <handa@m17n.org>
22561
22562 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22563 (decode_coding_gap): Set coding->dst_multibyte correctly.
22564
22565 2008-02-01 Kenichi Handa <handa@m17n.org>
22566
22567 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22568 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22569 (encode_coding_utf_16): Substitute coding->default_char for
22570 non-Unicode characters.
22571 (decode_coding): Don't call record_insert here.
22572 (setup_coding_system): Initialize `surrogate' of
22573 coding->spec.utf_16 to 0.
22574 (EMIT_ONE_BYTE): Fix for multibyte case.
22575
22576 * insdel.c (insert_from_gap): Call record_insert.
22577
22578 2008-02-01 Kenichi Handa <handa@m17n.org>
22579
22580 * casefiddle.c (casify_region): Fix multibyte case.
22581
22582 * character.c (c_string_width): Add return type `int'.
22583 (char_string_with_unification): Delete arg ADVANCED.
22584
22585 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22586 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22587 (CHAR_STRING_ADVANCE): Make it do-while statement.
22588
22589 * chartab.c (sub_char_table_set_range): Optimize for the case
22590 DEPTH == 3. Add workaround code for a GCC optimization bug.
22591
22592 * charset.c (parse_charset_map): Remove an unused variable.
22593
22594 * coding.c: Delete unused variables.
22595
22596 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22597 earlier. If inserted is zero and the coding system doesn't
22598 require flushing, don't call decode_coding_gap.
22599
22600 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22601
22602 2008-02-01 Kenichi Handa <handa@m17n.org>
22603
22604 The following changes are for using Unicode as an internal
22605 character model, and use UTF-8 format for buffer/string
22606 representation.
22607
22608 * .gdbinit (xchartable): Adjust for the change of char table structure.
22609 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22610
22611 * Makefile.in (obj): Add character.o and chartab.o.
22612 (lisp, shortlisp): Remove utf-8.elc.
22613 (*.o): For many files, change dependency on charset.h to
22614 character.h, and add dependency on character.h.
22615 (character.o, chartab.o): New targets.
22616
22617 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22618 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22619 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22620 of "charset.h".
22621
22622 * dired.c, filelock.c: Include "character.h".
22623
22624 * alloc.c: Include "character.h" instead of "charset.h".
22625 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22626 (syms_of_alloc): Remove defsubr for Smake_char_table.
22627
22628 * buffer.c: Include "character.h" instead of "charset.h", don't
22629 include "coding.h".
22630 (Fset_buffer_multibyte): Adjust for UTF-8.
22631
22632 * buffer.h: EXFUN Fbuffer_live_p.
22633
22634 * callproc.c: Include "character.h" instead of "charset.h".
22635 (Fcall_process): Big change for the new code-conversion APIs.
22636
22637 * casetab.c: Include "character.h" instead of "charset.h".
22638 (set_canon, set_identity, shuffle): Adjust for the new
22639 map_char_table spec.
22640 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22641 accessing the char table structure.
22642
22643 * chartab.c: New file that implements char table.
22644
22645 * category.c: Include "character.h".
22646 (copy_category_entry): New function.
22647 (copy_category_table): Call map_char_table and copy_category_entry.
22648 (Fmake_category_table): Initialize all top-level slots.
22649 (char_category_set): New function.
22650 (modify_lower_category_set): Delete.
22651 (Fmodify_category_entry): Call char_table_ref_and_range.
22652
22653 * category.h (CATEGORY_SET): Just call char_category_set.
22654
22655 * ccl.c: Include "character.h".
22656 (Qccl, Qcclp): New variables.
22657 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22658 it's less than 256.
22659 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22660 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22661 and DST type.
22662 (ccl_driver): Change types of argument, adjust code accordingly.
22663 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22664 ccl_driver.
22665 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22666
22667 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22668 New members src_multibyte, dst_multibyte, consumed, and produced.
22669 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22670 (CODING_SPEC_CCL_PROGRAM): New macro.
22671 (ccl_driver): Update prototype.
22672 (Qccl, Qcclp, Fccl_program_p): Extern them.
22673 (CHECK_CCL_PROGRAM): New macro.
22674
22675 * character.c, character.h, chartab.c: New files.
22676
22677 * charset.c: Mostly re-written. Move character and multibyte sequence
22678 handling codes to character.c.
22679
22680 * charset.h: Mostly re-written. Move character and multibyte sequence
22681 handling codes to character.h.
22682
22683 * coding.c, coding.h: Mostly re-written.
22684
22685 * composite.c: Include "character.h" instead of "charset.h".
22686 (CHAR_WIDTH): Move to character.h.
22687 (HASH_KEY, HASH_VALUE): Delete.
22688
22689 * composite.h (enum composition_method): Change order of enumeration
22690 symbols.
22691
22692 * data.c: Include "character.h" instead of "charset.h".
22693 (Faref): Call CHAR_TABLE_REF for a char table.
22694 (Faset): Call CHAR_TABLE_SET for a char table.
22695
22696 * dispextern.h (free_realized_face, check_face_attribytes)
22697 (generate_ascii_font): Extern them.
22698 (free_realized_multibyte_face): Delete extern.
22699
22700 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22701 table structure.
22702
22703 * editfns.c: Include "character.h" instead of "charset.h".
22704 (Fchar_to_string): Always call CHAR_STRING.
22705
22706 * emacs.c (main): Call init_charset_once, init_charset,
22707 syms_of_chartab, and syms_of_character.
22708
22709 * fileio.c: Include "character.h" instead of "charset.h".
22710 (Finsert_file_contents): Big change for the new code-conversion API.
22711 (choose_write_coding_system, Fwrite_region): Likewise.
22712 (build_annotations_2): Delete.
22713 (e_write): Big change for the new code-conversion API.
22714
22715 * fns.c: Include "character.h" instead of "charset.h".
22716 (copy_sub_char_table): Move to chartab.c.
22717 (Fcopy_sequence): Call copy_char_table for a char table.
22718 (concat): Delete codes calling count_multibyte.
22719 (string_char_to_byte, string_byte_to_char): Adjust for the new
22720 multibyte form.
22721 (internal_equal): Adjust for the change of char table structure.
22722 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22723 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22724 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22725 (char_table_translate, optimize_sub_char_table)
22726 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22727 chartab.c.
22728 (char_table_ref_and_index): Delete.
22729 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22730 (Fmd5): Call preferred_coding_system instead of accessing
22731 Vcoding_category_list. Adjust for the new code-conversion API.
22732 (syms_of_fns): Move defsubr for char table related functions to
22733 chartab.c.
22734
22735 * fontset.c: Mostly re-written.
22736
22737 * fontset.h (struct font_info): Change type of the member encoding_type.
22738 (enum FONT_SPEC_INDEX): New enum.
22739 (fontset_font_pattern, fs_load_font): Update prototype.
22740 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22741
22742 * indent.c: Include "character.h" instead of "charset.h".
22743 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22744
22745 * insdel.c: Include "character.h" instead of "charset.h".
22746 (copy_text): Don't refer to Vnonascii_translation_table.
22747 (insert_from_gap): New function.
22748
22749 * keyboard.c: Include "character.h" instead of "charset.h".
22750 (command_loop_1): Never call direct_output_forward_char before
22751 a non-ASCII character.
22752 (read_char): If Vkeyboard_translate_table is a char table, always
22753 translate a character.
22754
22755 * keymap.c: Include "character.h".
22756 (store_in_keymap): Handle the case that IDX is a cons.
22757 (Fdefine_key): Handle the case that KEY is a cons and the car part
22758 is also a cons (range).
22759 (push_key_description): Adjust for the new character code.
22760 (describe_vector): Call describe_char_table for a char table.
22761 (describe_char_table): New function.
22762
22763 * keymap.h (describe_char_table): Extern it.
22764
22765 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22766 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22767 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22768 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22769 Delete.
22770 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22771 structure.
22772 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22773 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22774 (CHARTAB_SIZE_BITS_3): New macros.
22775 (chartab_size): Extern it.
22776 (struct Lisp_Char_Table): Re-design.
22777 (struct Lisp_Sub_Char_Table): New structure.
22778 (HASH_KEY, HASH_VALUE): Move from fns.c.
22779 (CHARACTERBITS): Define as 22.
22780 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22781 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22782 (GC_SUB_CHAR_TABLE_P): New macro.
22783 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22784 (code_convert_string_norecord): Deleted extern.
22785 (init_character_once, syms_of_character, init_charset)
22786 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22787
22788 * lread.c: Include "character.h".
22789 (read_multibyte): New arg NBYTES.
22790 (read_escape): Change the meaning of returned *BYTEREP.
22791 (to_multibyte): Delete.
22792 (read1): Adjust the handling of char table and string.
22793
22794 * print.c: Include "character.h" instead of "charset.h".
22795 (print_string): Convert 8-bit raw bytes to octal form by
22796 string_escape_byte8.
22797 (print_object): Adjust for the new multibyte form. Print 8-bit
22798 raw bytes always in octal form. Handle sub char table correctly.
22799
22800 * process.c: Include "character.h" instead of "charset.h".
22801 (read_process_output, send_process): Adjust for the new
22802 code-conversion API.
22803
22804 * puresize.h (BASE_PURESIZE): Increase.
22805
22806 * regex.c: Include "character.h" instead of "charset.h".
22807 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22808 (regex_compile): Accept a range whose starting and ending
22809 character have different leading bytes.
22810 (analyse_first): Adjust for the above change.
22811
22812 * search.c: Include "character.h" instead of "charset.h".
22813 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22814 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22815
22816 * syntax.c: Include "character.h" instead of "charset.h".
22817 (syntax_parent_lookup): Delete.
22818 (Fmodify_syntax_entry): Accept a cons as CHAR.
22819 (skip_chars): Adjust for the new multibyte form.
22820 (init_syntax_once): Call char_table_set_range instead of directly
22821 accessing the structure of a char table.
22822
22823 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22824 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22825 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22826 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22827
22828 * term.c: Include "buffer.h" and "character.h".
22829 (encode_terminal_code, write_glyphs): Adjust for the new
22830 code-conversion API.
22831 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22832
22833 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22834
22835 * xdisp.c: Include "character.h".
22836 (get_next_display_element): Adjust for the new multibyte form.
22837 (disp_char_vector): Adjust for the new char table structure.
22838 (decode_mode_spec_coding): Adjust for the new structure of
22839 coding system.
22840 (decode_mode_spec): Adjust for the new code-conversion API.
22841
22842 * xfaces.c: Include "character.h" instead of "charset.h".
22843 (load_face_font): Adjust for the change of choose_face_font and
22844 FS_LOAD_FONT.
22845 (generate_ascii_font): New function.
22846 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22847 (set_font_frame_param): Adjust for the change of choose_face_font.
22848 (free_realized_face): Make it public.
22849 (free_realized_faces_for_fontset): Rename from
22850 free_realized_multibyte_face. Free also faces realized for ASCII.
22851 (choose_face_font): Change arguments. Adjust for the change of
22852 fontset_font_pattern and FS_LOAD_FONT.
22853
22854 * xfns.c: Include "character.h".
22855 (x_encode_text): Adjust for the new code-conversion API.
22856
22857 * xselect.c: Don't include "charset.h".
22858 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22859
22860 * xterm.c: Include "character.h".
22861 (x_encode_char): New argument CHARSET. Change caller.
22862 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22863 Call ENCODE_CHAR instead of SPLIT_CHAR.
22864 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22865 CHAR_WIDTH instead of CHARSET_WIDTH.
22866 (XTread_socket): Adjust for the new code-conversion API.
22867 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22868 (x_load_font): Adjust for the change of struct font.
22869
22870 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22871
22872 * xfaces.c (face_at_buffer_position): Remove unused vars.
22873
22874 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22875
22876 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22877 Fix overflow checking.
22878
22879 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22880
22881 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22882 Cancel previous change.
22883
22884 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22885
22886 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22887 ccl->eight_bit_control. Fix check for buffer overflow.
22888 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22889 (ccl_driver): Initialize extra_bytes to 0.
22890
22891 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22892
22893 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22894 return it ORed with ctrl_modifier.
22895
22896 2008-01-29 Miles Bader <miles@gnu.org>
22897
22898 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22899
22900 2008-01-28 Jason Rumney <jasonr@gnu.org>
22901
22902 * w32.c (stat): Don't double check for networked drive.
22903
22904 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22905
22906 * window.c (run_window_configuration_change_hook): New function.
22907 Code extracted from set_window_buffer. Set the selected frame.
22908 (set_window_buffer): Use it.
22909 * window.h (run_window_configuration_change_hook): Declare.
22910 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22911
22912 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22913
22914 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22915
22916 * Makefile.in: Remove references to unused macros.
22917
22918 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22919
22920 * w32.c (g_b_init_get_sid_sub_authority)
22921 (g_b_init_get_sid_sub_authority_count): New static variables.
22922 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22923 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22924 (init_user_info): Use them to retrieve uid and gid.
22925 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22926 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22927 st_uid and st_gid of the file.
22928
22929 2008-01-26 Jason Rumney <jasonr@gnu.org>
22930
22931 * w32.c (logon_network_drive): New function.
22932 (stat): Use it.
22933
22934 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22935
22936 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22937 invisible text covered with an ellipsis.
22938
22939 2008-01-25 Richard Stallman <rms@gnu.org>
22940
22941 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22942 jump back to beginning. Move some other initializations after that.
22943 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22944 New variables.
22945 (syms_of_xdisp): Init them.
22946
22947 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22948
22949 * buffer.c (reset_buffer_local_variables):
22950 Implement `permanent-local-hook'.
22951 (Qpermanent_local_hook): New variable.
22952 (syms_of_buffer): Init and staticpro it.
22953
22954 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22955
22956 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22957
22958 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22959
22960 * fns.c (Fclrhash): Return TABLE.
22961
22962 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22963
22964 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22965 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22966 is set even without positional changes.
22967 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22968
22969 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22970
22971 2008-01-23 Jason Rumney <jasonr@gnu.org>
22972
22973 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22974
22975 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22976 the unicode range available in MULE by locale-coding-system.
22977 Improve dbcs lead byte detection. Set event timestamp and modifiers
22978 earlier.
22979
22980 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22981
22982 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22983 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22984 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22985 when used on child processes.
22986
22987 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22988
22989 * dbusbind.c (Fdbus_method_return_internal): Rename from
22990 Fdbus_method_return.
22991 (Fdbus_unregister_object): Move to dbus.el.
22992 (Fdbus_call_method, Fdbus_method_return_internal)
22993 (Fdbus_send_signal): Improve debug messages.
22994
22995 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22996
22997 * undo.c (undo_inhibit_record_point): New variable.
22998 (syms_of_undo): Initialize it.
22999 (record_point): Don't record point when undo_inhibit_record_point
23000 is set.
23001
23002 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23003
23004 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23005
23006 * xdisp.c (Qauto_hscroll_mode): New var.
23007 (syms_of_xdisp): Initialize it.
23008 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23009 window's buffer.
23010 (hscroll_windows): Don't check automatic_hscrolling_p here.
23011
23012 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23013 vscroll if we're setting window-buffer to the value it already has.
23014
23015 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23016
23017 * m/intel386.h: Remove references to XENIX.
23018
23019 2008-01-17 Andreas Schwab <schwab@suse.de>
23020
23021 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23022 instead of HAVE_X86_64_LIB64_DIR.
23023 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23024
23025 2008-01-17 Glenn Morris <rgm@gnu.org>
23026
23027 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23028 to HAVE_X86_64_LIB64_DIR.
23029
23030 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23031
23032 * s/irix3-3.h:
23033 * s/irix4-0.h:
23034 * s/386-ix.h:
23035 * s/domain.h:
23036 * s/hpux9-x11r4.h:
23037 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23038
23039 * sysdep.c: Remove code containing references to symbols defined
23040 by unsupported systems.
23041
23042 2008-01-16 Glenn Morris <rgm@gnu.org>
23043
23044 * coding.c (select-safe-coding-system-function): Doc fix.
23045
23046 2008-01-15 Glenn Morris <rgm@gnu.org>
23047
23048 * config.in: Revert 2008-01-13 change: this is a generated file.
23049
23050 2008-01-13 Tom Tromey <tromey@redhat.com>
23051
23052 * lisp.h: Fix typo.
23053
23054 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23055
23056 * m/sequent-ptx.h:
23057 * m/sequent.h:
23058 * s/ptx.h:
23059 * s/ptx4-2.h:
23060 * s/ptx4.h: Remove files for systems no longer supported.
23061
23062 * callproc.c (Fcall_process): Fix previous change.
23063
23064 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23065
23066 * unexsunos4.c: Remove file, system not supported anymore.
23067
23068 * m/mips.h:
23069 * m/intel386.h:
23070 * callproc.c:
23071 * config.in:
23072 * ecrt0.c:
23073 * emacs.c:
23074 * fileio.c:
23075 * frame.c:
23076 * getpagesize.h:
23077 * keyboard.c:
23078 * lread.c:
23079 * process.c:
23080 * puresize.h:
23081 * sysdep.c:
23082 * systty.h:
23083 * syswait.h:
23084 * unexec.c:
23085 * xdisp.c:
23086 * alloc.c: Remove code containing references to symbols defined by
23087 unsupported systems.
23088
23089 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23090
23091 * coding.c (detect_coding_mask): Fix previous change.
23092
23093 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23094
23095 * coding.c (detect_coding_iso2022): New arg
23096 latin_extra_code_state. Allow Latin extra codes only
23097 when *latin_extra_code_state is nonzero.
23098 (detect_coding_mask): If there is a NULL byte, detect the encoding
23099 as UTF-16 or binary. If Latin extra codes exist, detect the
23100 encoding as ISO-2022 only when there's no other proper encoding is
23101 found.
23102
23103 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23104
23105 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23106 #ifdef MAC_OS.
23107
23108 2008-01-08 Richard Stallman <rms@gnu.org>
23109
23110 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23111
23112 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
23113
23114 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23115 menu bar in parentheses.
23116
23117 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23118
23119 * m/7300.h:
23120 * m/acorn.h:
23121 * m/alliant-2800.h:
23122 * m/alliant.h:
23123 * m/alliant1.h:
23124 * m/alliant4.h:
23125 * m/altos.h:
23126 * m/amdahl.h:
23127 * m/apollo.h:
23128 * m/att3b.h:
23129 * m/aviion-intel.h:
23130 * m/aviion.h:
23131 * m/celerity.h:
23132 * m/clipper.h:
23133 * m/cnvrgnt.h:
23134 * m/convex.h:
23135 * m/cydra5.h:
23136 * m/delta88k.h:
23137 * m/dpx2.h:
23138 * m/dual.h:
23139 * m/elxsi.h:
23140 * m/f301.h:
23141 * m/gould-np1.h:
23142 * m/gould.h:
23143 * m/i860.h:
23144 * m/ibmps2-aix.h:
23145 * m/ibmrt-aix.h:
23146 * m/ibmrt.h:
23147 * m/irist.h:
23148 * m/is386.h:
23149 * m/isi-ov.h:
23150 * m/mega68.h:
23151 * m/mg1.h:
23152 * m/news-r6.h:
23153 * m/news-risc.h:
23154 * m/news.h:
23155 * m/nh3000.h:
23156 * m/nh4000.h:
23157 * m/ns16000.h:
23158 * m/ns32000.h:
23159 * m/nu.h:
23160 * m/orion.h:
23161 * m/orion105.h:
23162 * m/paragon.h:
23163 * m/pfa50.h:
23164 * m/plexus.h:
23165 * m/pyramid.h:
23166 * m/pyrmips.h:
23167 * m/sh3el.h:
23168 * m/sps7.h:
23169 * m/sr2k.h:
23170 * m/stride.h:
23171 * m/sun1.h:
23172 * m/sun2.h:
23173 * m/sun3-68881.h:
23174 * m/sun3-fpa.h:
23175 * m/sun3-soft.h:
23176 * m/sun3.h:
23177 * m/sun386.h:
23178 * m/symmetry.h:
23179 * m/tad68k.h:
23180 * m/tahoe.h:
23181 * m/targon31.h:
23182 * m/tek4300.h:
23183 * m/tekxd88.h:
23184 * m/tower32.h:
23185 * m/tower32v3.h:
23186 * m/ustation.h:
23187 * m/wicat.h:
23188 * m/xps100.h:
23189 * s/cxux.h:
23190 * s/cxux7.h:
23191 * s/dgux.h:
23192 * s/dgux4.h:
23193 * s/dgux5-4-3.h:
23194 * s/dgux5-4r2.h:
23195 * s/esix.h:
23196 * s/esix5r4.h:
23197 * s/hiuxmpp.h:
23198 * s/hiuxwe2.h:
23199 * s/iris3-5.h:
23200 * s/iris3-6.h:
23201 * s/isc2-2.h:
23202 * s/isc3-0.h:
23203 * s/isc4-0.h:
23204 * s/isc4-1.h:
23205 * s/newsos5.h:
23206 * s/newsos6.h:
23207 * s/osf1.h:
23208 * s/osf5-0.h:
23209 * s/riscix1-1.h:
23210 * s/riscix12.h:
23211 * s/sco4.h:
23212 * s/sco5.h:
23213 * s/sunos4-0.h:
23214 * s/sunos4-1.h:
23215 * s/sunos413.h:
23216 * s/sunos4shr.h:
23217 * s/umax.h:
23218 * s/unipl5-2.h:
23219 * s/xenix.h:
23220 * cxux-crt0.s:
23221 * unexapollo.c:
23222 * unexconvex.c:
23223 * unexenix.c:
23224 * unexsni.c: Remove files for systems no longer supported.
23225
23226 * m/intel386.h: Remove references to unsupported systems.
23227
23228 * w32.c (get_emacs_configuration): Remove reference to i860.
23229
23230 * sysdep.c: Remove dead code.
23231
23232 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23233
23234 * s/rtu.h:
23235 * m/masscomp.h: Remove files. Platform is obsolete.
23236
23237 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23238
23239 * dbusbind.c (Fdbus_method_return): New function.
23240 (xd_read_message): Add the serial number to the event.
23241 (Fdbus_register_method): Activate the function.
23242
23243 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23244
23245 * keyboard.c (read_key_sequence): Fix typo.
23246
23247 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23248
23249 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23250 (xd_signature, xd_append_arg): Handle element type detection for
23251 empty arrays.
23252 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23253 SDATA () calls; this must be solved more general.
23254 (Fdbus_register_signal): Use SBYTES instead of strlen.
23255
23256 2008-01-03 Magnus Henoch <magnus@zemdatav>
23257
23258 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23259 unsigned int for byte values (necessary for big-endian platform).
23260 (Fdbus_call_method): Handle the case of no returned arguments.
23261
23262 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23263
23264 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23265
23266 2007-12-31 Magnus Henoch <mange@freemail.hu>
23267
23268 * dbusbind.c (xd_signature): Signature of variant is just "v".
23269
23270 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23271
23272 * dbusbind.c: Fix several errors and compiler warnings.
23273 Reported by Tom Tromey <tromey@redhat.com>.
23274 (XD_ERROR, XD_DEBUG_MESSAGE)
23275 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23276 (xd_append_arg): Part for basic D-Bus types rewritten.
23277 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23278 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23279 appropriate.
23280 (xd_read_message): Return Qnil. Don't signal an error; it is not
23281 useful during event reading.
23282 (Fdbus_register_signal): Signal an error if the check for
23283 FUNCTIONP fails.
23284 (Fdbus_register_method): New function. The implementation is not
23285 complete, the call of the function signals an error therefore.
23286 (Fdbus_unregister_object): New function, renamed from
23287 Fdbus_unregister_signal. The initial check signals an error, if
23288 the object is not well formed.
23289
23290 2007-12-30 Richard Stallman <rms@gnu.org>
23291
23292 * textprop.c (get_char_property_and_overlay):
23293 Signal error if POSITION is out of range in a buffer.
23294
23295 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23296
23297 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23298 because the original parameters are in pure storage now.
23299
23300 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23301
23302 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23303
23304 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23305
23306 * callint.c (syms_of_callint) <command-history>: Add reference to
23307 history-length in the doc string.
23308
23309 2007-12-17 Jason Rumney <jasonr@gnu.org>
23310
23311 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23312 before passing as wParam.
23313
23314 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23315
23316 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23317 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23318 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23319 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23320 as number.
23321 (Fdbus_call_method): Fix docstring.
23322
23323 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
23324
23325 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23326 New macros.
23327 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23328 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23329 Simplify.
23330 (xd_signature): New function.
23331 (xd_append_arg): Compute also signatures. Major rewrite.
23332 (xd_retrieve_arg): Make debug messages friendly.
23333 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23334 Check for signatures of arguments.
23335
23336 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
23337
23338 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23339 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23340 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23341 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23342 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23343 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23344 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23345 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23346 (xd_retrieve_value): Remove. Functionality included in ...
23347 (xd_append_arg): New function.
23348 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23349
23350 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
23351
23352 * dbusbind.c (top): Include <stdio.h>.
23353 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23354 dbus_message_new_method_call and dbus_message_new_signal.
23355 (Fdbus_register_signal): Rename unique_name to uname.
23356 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23357 non-existing unique name. Fix typos in matching rule. Return an
23358 object which is useful in Fdbus_unregister_signal.
23359 (Fdbus_unregister_signal): Reimplementation, in order to remove
23360 only the corresponding entry.
23361 (Vdbus_registered_functions_table): Change the order of entries.
23362 Apply these changes in xd_read_message and Fdbus_register_signal.
23363
23364 2007-12-16 Andreas Schwab <schwab@suse.de>
23365
23366 * fileio.c (Finsert_file_contents): Fix overflow check to not
23367 depend on undefined integer overflow.
23368
23369 2007-12-14 Jason Rumney <jasonr@gnu.org>
23370
23371 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23372 for characters above 127.
23373
23374 2007-12-13 Jason Rumney <jasonr@gnu.org>
23375
23376 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23377 before dereferencing array.
23378 (lookup_vk_code): Remove zero comparison.
23379
23380 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
23381
23382 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23383 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23384 Use `unsigned int' instead of `uint'.
23385 (xd_read_message, Fdbus_register_signal): Split expressions into
23386 multiple lines before operators "&&" and "||", according to the
23387 GNU Coding Standards.
23388
23389 2007-12-14 Eli Zaretskii <eliz@gnu.org>
23390
23391 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23392
23393 2007-12-12 Juri Linkov <juri@jurta.org>
23394
23395 * buffer.c (Frename_buffer): In interactive spec replace
23396 `read-buffer' with `read-string' that uses `buffer-name-history'
23397 as history, and the current buffer's name as default.
23398
23399 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23400
23401 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23402 manipulating the backtrace manually.
23403 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23404 (struct backtrace, backtrace_list): Remove.
23405 (command_loop_1): Remove dead var `no_direct'.
23406
23407 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23408 preserve non-built-in buffer-local variables.
23409 (Fkill_all_local_variables): Don't re-create&re-set permanent
23410 buffer-local variables.
23411
23412 2007-12-09 Juri Linkov <juri@jurta.org>
23413
23414 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23415 Lisp code that uses `read-buffer' with current buffer as default.
23416
23417 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
23418
23419 * dbusbind.c (xd_read_message): Generate an event for every
23420 registered handler. There might be several handlers registered
23421 for the same signal.
23422 (Fdbus_register_signal): Don't overwrite a registration for the
23423 same signal. Add a new registration if handlers are different.
23424 (Vdbus_registered_functions_table): Rework doc string.
23425
23426 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
23427
23428 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23429 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23430 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23431 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23432 Unify argument lists.
23433 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23434 arguments and hash table keys. Use unique name for service.
23435 (Fdbus_unregister_signal): Remove checks.
23436 (Vdbus_registered_functions_table): Fix doc string.
23437
23438 2007-12-05 Magnus Henoch <mange@freemail.hu>
23439
23440 * process.c (make_process): Initialize pty_flag to 0.
23441
23442 2007-12-05 Jason Rumney <jasonr@gnu.org>
23443
23444 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23445 specified XBMs.
23446
23447 2007-12-05 Richard Stallman <rms@gnu.org>
23448
23449 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23450
23451 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23452
23453 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23454 New variable.
23455 (mac_try_close_socket) [MAC_OSX]: New function.
23456 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23457 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23458
23459 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23460 Use mac_try_close_socket.
23461
23462 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23463
23464 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23465 reloc_base.
23466 (copy_dysymtab): Compute relocation base here.
23467 (rebase_reloc_address) [__ppc64__]: New function.
23468 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23469 changed.
23470
23471 2007-12-05 Jason Rumney <jasonr@gnu.org>
23472
23473 * w32proc.c (sys_spawnve): Quote args with wildcards.
23474
23475 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23476
23477 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23478 __objc_* sections.
23479 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23480
23481 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23482
23483 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23484 Move check for Vdbus_registered_functions_table to
23485 xd_read_queued_messages.
23486 (xd_read_queued_messages): Protect xd_read_message calls by
23487 internal_condition_case_1.
23488
23489 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23490
23491 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23492 Qdbus_system_bus and Qdbus_session_bus, respectively.
23493 (Vdbus_intern_symbols): Remove.
23494 (Vdbus_registered_functions_table): New hash table.
23495 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23496 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23497 Rewrite in order to manage registered functions by hash table
23498 Vdbus_registered_functions_table.
23499
23500 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23501
23502 * xterm.c: Update URL to Window Manager Specification in comment.
23503
23504 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23505
23506 * config.in (HAVE_DBUS): Add.
23507
23508 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23509 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23510 (obj): Add $(DBUS_OBJ).
23511 (LIBES): Add $(DBUS_LIBS).
23512 (dbusbind.o): New target.
23513
23514 * dbusbind.c: New file.
23515
23516 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23517
23518 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23519 (Qdbus_event): New Lisp symbol.
23520 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23521 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23522 (keys_of_keyboard): Define dbus-event.
23523
23524 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23525
23526 2007-12-01 Richard Stallman <rms@gnu.org>
23527
23528 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23529
23530 2007-11-30 Jason Rumney <jasonr@gnu.org>
23531
23532 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23533 (w32con_reset_terminal_modes): Clear screen buffer.
23534 (w32_face_attributes): Don't use color indexes that are out of range.
23535 Only reverse the default colors.
23536
23537 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23538 WINDOWSNT.
23539
23540 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23541
23542 2007-11-29 Jason Rumney <jasonr@gnu.org>
23543
23544 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23545 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23546 if the terminal colors are initialized.
23547 (unspecified_fg, unspecified_bg): Remove unused declarations.
23548
23549 2007-11-29 Andreas Schwab <schwab@suse.de>
23550
23551 * keyboard.c (apply_modifiers): Fix typo.
23552
23553 2007-11-29 Richard Stallman <rms@gnu.org>
23554
23555 * keymap.c (Fcurrent_local_map): Doc fix.
23556
23557 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23558
23559 * s/gnu-kfreebsd.h: New file.
23560
23561 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23562
23563 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23564 Don't cast redundantly.
23565
23566 * keyboard.c (KEY_TO_CHAR): New macro.
23567 (parse_modifiers, apply_modifiers): Accept integer arguments.
23568 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23569 for chars and symbol keys.
23570 After doing such remapping, apply function-key-map again.
23571
23572 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23573
23574 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23575 compiled anymore.
23576
23577 2007-11-26 Andreas Schwab <schwab@suse.de>
23578
23579 * process.c (list_processes_1): Fix indentation level of the
23580 command column.
23581
23582 2007-11-23 Andreas Schwab <schwab@suse.de>
23583
23584 * editfns.c (Fformat): Handle %c specially since it requires the
23585 argument to be of type int.
23586
23587 2007-11-23 Markus Triska <markus.triska@gmx.at>
23588
23589 * emacs.c (main): Call init_editfns before init_process, since
23590 init_process sets Vprocess_connection_type depending on OS release.
23591
23592 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23593
23594 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23595 (find_symbol_value): Use do_symval_forwarding.
23596
23597 * data.c (set_internal): Set the value in the `cons-cell' (for
23598 Buffer_Local_values) not only for frame-local variables.
23599
23600 2007-11-22 Andreas Schwab <schwab@suse.de>
23601
23602 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23603 values to sprintf.
23604 * keymap.c (Fsingle_key_description): Likewise.
23605 * print.c (print_object): Likewise.
23606
23607 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23608
23609 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23610 file for image is nil.
23611
23612 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23613
23614 * term.c: Include stdarg.h.
23615 (fatal): Implement using varargs.
23616 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23617
23618 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23619
23620 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23621 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23622 Update call to buffer_slot_type_mismatch.
23623 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23624 (buffer_slot_type_mismatch): Update.
23625 * buffer.c (buffer_local_types): Remove.
23626 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23627 (defvar_per_buffer): Set the type in the buffer_objfwd.
23628
23629 2007-11-21 Jason Rumney <jasonr@gnu.org>
23630
23631 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23632 CreateFileMapping returns NULL on failure.
23633
23634 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23635
23636 * search.c (Fset_match_data): Remove the `evaporate' feature.
23637 (unwind_set_match_data): Don't use the `evaporate' feature.
23638
23639 2007-11-21 Jason Rumney <jasonr@gnu.org>
23640
23641 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23642
23643 * w32console.c (w32con_write_glyphs): Remove unused variables.
23644
23645 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23646
23647 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23648
23649 * s/darwin.h (MULTI_KBOARD): Remove.
23650
23651 * macfns.c (x_create_tip_frame, Fx_create_frame)
23652 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23653
23654 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23655
23656 * buffer.c (Fbuffer_local_value): Remove redundant test.
23657 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23658 than in `current-buffer' to match the comment.
23659 Do the swap using swap_in_global_binding.
23660
23661 * data.c (store_symval_forwarding, set_internal):
23662 * eval.c (specbind): Remove dead code.
23663
23664 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23665 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23666 Since we do not want to see internal Lisp_*fwd objects here.
23667
23668 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23669
23670 * sysdep.c (init_system_name): Use getaddrinfo if available.
23671
23672 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23673 (x_scroll_bar_note_movement): start, end, with, height in struct
23674 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23675
23676 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23677
23678 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23679
23680 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23681
23682 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23683 This undoes Richard's change of 14-Oct-2002.
23684
23685 * alloc.c (allocate_other_vector):
23686 * lisp.h (allocate_other_vector): Remove.
23687
23688 * window.c (struct save_window_data): Move non-lisp data to the end
23689 and make it `int' rather than Lisp_Object.
23690 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23691 Done wrap/unwrap integer values.
23692 (Fset_window_configuration, compare_window_configurations):
23693 Update use of fields to their new types.
23694
23695 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23696 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23697 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23698 (SET_SCROLL_BAR_X_WINDOW): Remove.
23699 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23700 Access the new x_window field directly.
23701 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23702 Don't wrap/unwrap integers into Lisp_Objects.
23703 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23704 (x_scroll_bar_report_motion):
23705 Don't wrap/unwrap integers into Lisp_Objects.
23706 (x_term_init): Use SDATA.
23707 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23708 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23709 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23710 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23711 * xfns.c (x_set_background_color):
23712 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23713 Access the new x_window field directly.
23714
23715 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23716 (allocate_pseudovector): Make non-static.
23717
23718 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23719 (allocate_pseudovector): Declare.
23720 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23721
23722 2007-11-15 Andreas Schwab <schwab@suse.de>
23723
23724 * editfns.c (Fformat): Correctly format EMACS_INT values.
23725 Also take precision into account when formatting an integer.
23726
23727 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23728
23729 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23730
23731 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23732 (syms_of_keyboard): Defsubr it.
23733
23734 * data.c (swap_in_global_binding): Fix longstanding bug where
23735 store_symval_forwarding was not called with the right second argument,
23736 thus causing objfwd-ing from being dropped.
23737
23738 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23739
23740 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23741 (Fx_display_pixel_height, Fx_display_planes)
23742 (Fx_display_color_cells, Fx_server_max_request_size)
23743 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23744 (Fx_display_visual_class, Fx_display_save_under):
23745 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23746 (Fx_display_pixel_height, Fx_display_planes)
23747 (Fx_display_color_cells, Fx_server_max_request_size)
23748 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23749 (Fx_display_mm_height, Fx_display_mm_width)
23750 (Fx_display_backing_store, Fx_display_visual_class)
23751 (Fw32_select_font, Fx_display_save_under):
23752 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23753 (Fx_display_pixel_height, Fx_display_planes)
23754 (Fx_display_color_cells, Fx_server_max_request_size)
23755 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23756 (Fx_display_save_under): Fix typos in docstrings.
23757
23758 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23759
23760 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23761 corresponding to deleted entries; they are an implementation detail.
23762 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23763 Remove variables.
23764 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23765 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23766 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23767 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23768 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23769 (Fw32_define_rgb_color, Fw32_load_color_file)
23770 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23771 Fix typos in docstrings.
23772 (Fx_server_version): Reflow docstring.
23773 (Fw32_shell_execute): Doc fixes.
23774
23775 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23776
23777 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23778 if w32_parse_hot_key returned nil.
23779
23780 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23781
23782 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23783
23784 2007-11-09 Jason Rumney <jasonr@gnu.org>
23785
23786 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23787
23788 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23789
23790 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23791 Remove W32_SCROLL_BAR_CLICK_EVENT.
23792
23793 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23794 Add MULTIMEDIA_KEY_EVENT.
23795
23796 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23797 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23798 (make_lispy_event) [WINDOWSNT]: Use it to translate
23799 MULTIMEDIA_KEY_EVENT.
23800
23801 * w32term.h (WM_APPCOMMAND): Define if not already.
23802 (GET_APPCOMMAND_LPARAM): Likewise.
23803
23804 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23805 WM_APPCOMMAND.
23806
23807 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23808 (syms_of_w32fns): Export and initialize it.
23809 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23810
23811 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23812
23813 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23814 twice.
23815
23816 * xdisp.c (handle_face_prop): Fix last change.
23817
23818 2007-11-09 Richard Stallman <rms@gnu.org>
23819
23820 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23821 not just for after-strings and before-strings.
23822 Call face_for_overlay_string and pass the overlay to it.
23823 (handle_display_prop): Determine whether property came from an overlay.
23824 Pass OVERLAY arg to handle_single_display_spec.
23825 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23826 (load_overlay_strings): Fill in it->string_overlays.
23827 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23828
23829 * xfaces.c (face_for_overlay_string): Function renamed from
23830 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23831
23832 * dispextern.h (struct it): New elt string_overlays.
23833 New elt from_overlay, also in stack.
23834 Rearrange a few elements.
23835 (face_for_overlay_string): Decl renamed from
23836 face_at_buffer_position_no_overlays, and add argument.
23837
23838 2007-11-09 Richard Stallman <rms@gnu.org>
23839
23840 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23841 to get the base face for an overlay string.
23842
23843 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23844
23845 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23846
23847 * xdisp.c (handle_stop): Move some code out of loop.
23848
23849 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23850
23851 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23852 Fix conversion from Lisp object to ATSUFontID.
23853
23854 2007-11-09 Jason Rumney <jasonr@gnu.org>
23855
23856 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23857
23858 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23859
23860 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23861 Don't assume regions are aligned to page boundary.
23862 (print_load_command_name): Add LC_UUID if defined.
23863
23864 2007-11-09 Richard Stallman <rms@gnu.org>
23865
23866 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23867
23868 2007-11-07 Jason Rumney <jasonr@gnu.org>
23869
23870 * s/windows95.h: Remove.
23871
23872 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23873
23874 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23875 abort with a message on unhandled store_type values.
23876
23877 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23878
23879 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23880 Remove HAVE_X11R5 and HAVE_X11R4.
23881
23882 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23883
23884 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23885
23886 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23887
23888 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23889 Don't set s->stippled_p here, since it has already been set by
23890 x_set_glyph_string_gc from x_draw_glyph_string.
23891
23892 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23893
23894 * sunfns.c: Remove file.
23895
23896 * m/sun386.h:
23897 * m/sun2.h:
23898 * m/sparc.h: Remove Sun windows code.
23899
23900 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23901
23902 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23903 (init_keyboard): Set current_kboard's window-system to nil.
23904 (tty_read_avail_input): Typo.
23905 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23906
23907 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23908
23909 * s/usg5-4.h:
23910 * s/usg5-3.h:
23911 * s/ptx.h:
23912 * m/is386.h:
23913 * m/ibmps2-aix.h:
23914 * Makefile.in: Remove all mentions of X10.
23915
23916 * dispnew.c (syms_of_display): Don't mention version 10.
23917
23918 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23919
23920 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23921 ($(BLD)/abbrev.$(O)): Remove.
23922
23923 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23924
23925 Rewrite abbrev.c in Elisp.
23926 * image.c (Qcount): Don't declare as extern.
23927 (syms_of_image): Initialize and staticpro `Qcount'.
23928 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23929 * emacs.c (main): Don't call syms_of_abbrev.
23930 * Makefile.in (obj): Remove abbrev.o.
23931 (abbrev.o): Remove.
23932 * abbrev.c: Remove.
23933
23934 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23935
23936 * window.c (window_min_size_2): Don't count header-line.
23937
23938 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23939
23940 * frame.h (struct frame): Move all bit fields after the first bit
23941 field to take advantage of the available space. Group all the
23942 chars together to reduce wasted space due to padding.
23943
23944 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23945
23946 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23947
23948 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23949 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23950 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23951 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23952 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23953 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23954 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23955 (last_marked, mark_object_loop_halt): Make static.
23956
23957 * frame.c (syms_of_frame) <delete-frame-functions>:
23958 Fix typo in docstring.
23959
23960 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23961
23962 * w32.c (init_environment): Fix tiny memory leak.
23963 (w32_get_resource): Remove unused variable `ok'.
23964
23965 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23966
23967 Make `window-system' into a keyboard-local variable (rather than
23968 frame-local as done originally by multi-tty).
23969
23970 * keyboard.h (struct kboard): Add Vwindow_system.
23971 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23972 (mark_kboards): Mark Vwindow_system.
23973
23974 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23975 (init_display): Don't set the obsolete `window-system' frame-param.
23976
23977 * xterm.c (x_term_init):
23978 * w32term.c (w32_create_terminal):
23979 * term.c (init_tty): Set Vwindow_system.
23980 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23981 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23982
23983 * xfns.c (Fx_create_frame, x_create_tip_frame):
23984 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23985 * macfns.c (Fx_create_frame):
23986 Don't set the obsolete `window-system' frame-param.
23987
23988 * frame.h (Qwindow_system): Remove.
23989 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23990 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23991
23992 2007-10-24 Richard Stallman <rms@gnu.org>
23993
23994 * frame.c (x_figure_window_size): For fullscreen case,
23995 set USPosition | PPosition without clobbering rest of window_prompting.
23996
23997 * keyboard.c (Fcurrent_idle_time): Doc fix.
23998
23999 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24000
24001 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24002
24003 * process.c (unwind_request_sigio): Only define if __ultrix__.
24004
24005 * callproc.c (child_setup): Remove spurious *.
24006
24007 * lisp.h (Fget_text_property): Declare.
24008 (have_menus_p): Declare it here rather than in sys-dep header files.
24009 * macterm.h (have_menus_p):
24010 * msdos.h (have_menus_p):
24011 * xterm.h (have_menus_p): Remove.
24012
24013 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24014 (Fmake_variable_frame_local): Just check the variable's const-ness
24015 rather than checking nil or t.
24016
24017 2007-10-22 Jason Rumney <jasonr@gnu.org>
24018
24019 * w32fns.c: Include math.h.
24020 (w32_abort): Declaration moved to nt/config.nt.
24021
24022 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24023 (abort): Redefinition moved to nt/config.nt.
24024
24025 * m/windowsnt.h: Remove.
24026
24027 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
24028
24029 * emacs.c (Fdump_emacs): Fix typo in message.
24030 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24031 <installation-directory>: Reflow docstring.
24032
24033 2007-10-22 Juri Linkov <juri@jurta.org>
24034
24035 * minibuf.c: Allow minibuffer default to be a list of default values.
24036 With empty input use the first element of this list as returned default.
24037 (string_to_object)
24038 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24039 (read_minibuf): If defalt is cons, set histstring to its car.
24040 (Fread_string): If default_value is cons, set val to its car.
24041 (Fread_buffer): If def is cons, use its car.
24042 (Fcompleting_read): If defalt is cons, set val to its car.
24043
24044 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
24045
24046 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24047
24048 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
24049
24050 * doc.c (Fdocumentation): Check for advice in all cases.
24051
24052 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
24053
24054 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24055
24056 2007-10-19 Richard Stallman <rms@gnu.org>
24057
24058 * doc.c (Fdocumentation): Check for and handle an advised function.
24059
24060 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
24061
24062 * process.c (Fset_process_filter): Doc fix.
24063
24064 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24065
24066 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24067 which caused key-translation-map to applied repeatedly (thus breaking
24068 double-mode).
24069
24070 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24071
24072 * xselect.c (x_own_selection, x_handle_selection_clear)
24073 (x_clear_frame_selections):
24074 * w32menu.c (list_of_panes, list_of_items):
24075 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24076 * textprop.c (validate_plist, interval_has_all_properties)
24077 (interval_has_some_properties, interval_has_some_properties_list)
24078 (add_properties, text_property_list):
24079 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24080 * minibuf.c (Fassoc_string):
24081 * macselect.c (x_own_selection, x_clear_frame_selections)
24082 (Fx_disown_selection_internal):
24083 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24084 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24085
24086 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
24087
24088 * process.c: Link to libs for calling res_init() if available.
24089 (Fmake_network_process): Call res_init() before getaddrinfo or
24090 gethostbyname, if possible.
24091
24092 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24093
24094 * lread.c (read1): Set pvectype for char_tables.
24095
24096 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24097 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24098 Add type checks.
24099 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24100
24101 * alloc.c (free_misc): Use XMISCTYPE.
24102 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24103
24104 2007-10-17 Glenn Morris <rgm@gnu.org>
24105
24106 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24107 (syms_of_minibuf): Add Qcompletion_ignore_case.
24108 * dired.c (Qcompletion_ignore_case): Change to external.
24109 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24110 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24111 (Fread_file_name): Use it rather than intern'ing.
24112
24113 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24114 (Fread_coding_system): Ignore case of user input.
24115
24116 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24117
24118 * xdisp.c (handle_display_prop): Ignore display specs after
24119 replacing one when string text is being replaced.
24120 (handle_single_display_spec): Pretend as if characters with display
24121 property haven't been consumed only when buffer text is being replaced.
24122
24123 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24124
24125 * xfns.c (Fx_create_frame, Fx_display_list):
24126 * window.c (window_fixed_size_p, enlarge_window)
24127 (shrink_window_lowest_first):
24128 * macterm.c (init_font_name_table):
24129 * macfns.c (Fx_create_frame, Fx_display_list):
24130 * lread.c (close_load_descs):
24131 * keyboard.c (read_char_x_menu_prompt):
24132 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24133 * coding.c (code_convert_region_unwind): Test the type of an object
24134 rather than just !NILP before extracting data from it.
24135
24136 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24137
24138 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24139 (XMISCANY): New macro.
24140 (XMISCTYPE): Use it.
24141 (struct Lisp_Misc_Any): New type.
24142 (union Lisp_Misc): Use it.
24143 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24144 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24145 (find_symbol_value, set_internal, default_value, Fset_default)
24146 (Fmake_variable_buffer_local, Fmake_local_variable)
24147 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24148 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24149 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24150 * alloc.c (allocate_buffer): Set the size and tag.
24151 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24152 Use XMISCANY.
24153 (die): Follow the GNU convention for error messages.
24154 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24155 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24156 tag any more.
24157 (set_buffer_internal_1):
24158 * frame.c (store_frame_param):
24159 * eval.c (specbind):
24160 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24161
24162 * doc.c (Fsnarf_documentation): Simplify.
24163
24164 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24165
24166 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24167 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24168
24169 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24170
24171 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24172
24173 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24174
24175 * eval.c (do_autoload): Don't save autoloads.
24176
24177 * data.c (Ffset): Save autoload of the function being set.
24178
24179 2007-10-07 John Paul Wallington <jpw@pobox.com>
24180
24181 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24182 parameter before setting up faces.
24183
24184 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24185
24186 * ccl.c (Fregister_code_conversion_map):
24187 * keyboard.c (append_tool_bar_item): Reformat last change.
24188
24189 * lisp.h (eabs): Rename from `abs'. All callers changed.
24190
24191 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24192
24193 * buffer.c (add_overlay_mod_hooklist):
24194 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24195 * fontset.c (make_fontset):
24196 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24197 (append_tool_bar_item):
24198 * macmenu.c (grow_menu_items):
24199 * w32menu.c (grow_menu_items):
24200 * xmenu.c (grow_menu_items): Use larger_vector.
24201
24202 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24203
24204 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24205 selected frame'' on MSDOS).
24206
24207 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24208
24209 * frame.c (Qexplicit_name): New variable.
24210 (x_report_frame_params): Report it in parameter alist.
24211 (syms_of_frame): Intern and staticpro it.
24212
24213 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24214
24215 * macfns.c (x_create_tip_frame): Set terminal for frame.
24216
24217 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24218
24219 * frame.c (Qenvironment): Remove.
24220 (syms_of_frame) <Qenvironment>: Don't initialize.
24221 (Fdelete_frame): Don't treat the `environment' param specially.
24222 * frame.h (Qenvironment): Don't declare.
24223 * callproc.c (set_initial_environment): Don't set unused frame param.
24224
24225 * frame.c (Fframe_with_environment): Remove.
24226 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24227
24228 * lisp.h (Fframe_with_environment): Don't declare.
24229
24230 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24231
24232 * indent.c (indent_tabs_mode, last_known_column)
24233 (last_known_column_modified): Make static.
24234 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24235
24236 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24237
24238 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24239
24240 2007-10-09 Jason Rumney <jasonr@gnu.org>
24241
24242 * w32term.c (x_set_window_size): Disable code that attempts to tell
24243 Lisp code about a size change before it actually happens.
24244
24245 2007-10-09 Richard Stallman <rms@gnu.org>
24246
24247 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24248 return HANDLED_RETURN.
24249
24250 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24251
24252 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24253 when there's an unread command event.
24254
24255 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24256 window autoselection act appropriately when leaving selected frame.
24257 (syms_of_frame): Initialize focus_follows_mouse.
24258 * frame.h (focus_follows_mouse): Extern it.
24259 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24260 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24261 * msdos.c (dos_rawgetc): Likewise.
24262 * w32term.c (w32_read_socket): Likewise.
24263 * xterm.c (handle_one_xevent): Likewise.
24264 * xdisp.c (syms_of_xdisp): In doc-string of
24265 mouse-autoselect-window mention focus-follows-mouse.
24266
24267 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24268
24269 * macterm.c (mac_load_query_font): Fix missing return value.
24270 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24271 Add BLOCK_INPUT.
24272
24273 2007-10-08 Richard Stallman <rms@gnu.org>
24274
24275 * xdisp.c (get_window_cursor_type): Implement documented behavior
24276 for cursor-in-non-selected-windows = t.
24277
24278 2007-10-08 Jason Rumney <jasonr@gnu.org>
24279
24280 * w32.c (w32_get_resource): Always close registry keys.
24281
24282 2007-10-08 Jason Rumney <jasonr@gnu.org>
24283
24284 * makefile.w32-in (LIBS): Add COMCTL32.
24285
24286 * w32fns.c (globals_of_w32fns): Init common controls.
24287
24288 2007-10-08 Richard Stallman <rms@gnu.org>
24289
24290 * image.c (our_memory_buffer): Rename from omfib_buffer.
24291
24292 2007-10-08 Richard Stallman <rms@gnu.org>
24293
24294 * buffer.c (Foverlays_at): Doc fix.
24295
24296 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24297
24298 * fns.c (Fplist_put): Preserve uneven tail data.
24299
24300 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24301
24302 * termhooks.h (enum event_kind): Remove trailing comma.
24303
24304 * frame.h (enum): Remove trailing comma.
24305
24306 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24307
24308 * w32proc.c (delete_child): Don't terminate threads of zombies.
24309
24310 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24311
24312 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24313
24314 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24315 last-repeatable-command.
24316 (init_kboard): Initialize Vlast_repeatable_command.
24317 (command_loop_1): Set it to real_this_command unless that was
24318 bound to an input event.
24319 (mark_kboards): Mark it.
24320
24321 2007-10-08 Richard Stallman <rms@gnu.org>
24322
24323 * eval.c (condition-case): Doc fix.
24324
24325 2007-10-08 Masatake YAMATO <jet@gyve.org>
24326
24327 * xfaces.c (tty_supports_face_attributes_p): Fix code
24328 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24329 was copied and not edited.
24330
24331 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24332
24333 Add new `input-decode-map' keymap and use it for terminal
24334 escape sequences.
24335 * keyboard.h (struct kboard): Add Vinput_decode_map.
24336 Remove Vlocal_key_translation_map.
24337 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24338 (init_kboard): Init input-decode-map.
24339 Replace local-key-translation-map back with key-translation-map.
24340 (syms_of_keyboard): Declare input-decode-map.
24341 Remove local-key-translation-map. Update docstrings.
24342 (mark_kboards): Mark Vinput_decode_map.
24343 Don't mark Vlocal_key_translation_map.
24344 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24345 Replace local-key-translation-map back with key-translation-map.
24346 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24347 Bind in input-decode-map rather than function-key-map.
24348
24349 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24350 This was made redundant by the previous introduction of XSETPVECTYPE.
24351
24352 2007-10-09 Richard Stallman <rms@gnu.org>
24353
24354 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24355
24356 2007-09-29 Richard Stallman <rms@gnu.org>
24357
24358 * eval.c (internal_condition_case_2, internal_condition_case_1)
24359 (internal_condition_case): Reenable abort if x_catching_errors ()
24360 to see if that really happens and why.
24361
24362 2007-10-06 Andreas Schwab <schwab@suse.de>
24363
24364 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24365
24366 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
24367
24368 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24369
24370 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24371
24372 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24373
24374 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24375
24376 * window.h (struct window):
24377 * window.c (struct save_window_data, struct saved_window):
24378 * termhooks.h (struct terminal):
24379 * process.h (struct Lisp_Process):
24380 * frame.h (struct frame):
24381 * buffer.h (struct buffer):
24382 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24383 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24384 The size field of (pseudo)vectors is now unsigned.
24385 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24386
24387 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24388 Turn `count' into an integer.
24389
24390 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24391 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24392 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24393 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24394 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24395
24396 * alloc.c (allocate_pseudovector): New fun.
24397 (ALLOCATE_PSEUDOVECTOR): New macro.
24398 (allocate_window, allocate_terminal, allocate_frame)
24399 (allocate_process): Use it.
24400 (mark_vectorlike): New function.
24401 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24402 (mark_terminals): Use it.
24403 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24404 (Fmake_byte_code): Use XSETPVECTYPE.
24405
24406 * frame.c (Fframe_parameters): Minor simplification.
24407
24408 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24409
24410 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24411
24412 * buffer.c (Fget_buffer_create, init_buffer_once):
24413 * lread.c (defsubr):
24414 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24415
24416 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24417 defined differently in the m/*.h files.
24418 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24419 (XSETPVECTYPE): New macro.
24420 (XSETPSEUDOVECTOR): Use it.
24421
24422 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24423 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24424
24425 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24426 * lread.c (defvar_per_buffer):
24427 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24428
24429 * window.c (candidate_window_p): Only consider as visible frames that
24430 are on the same terminal.
24431
24432 * m/ibms390x.h (MARKBIT): Remove unused macro.
24433
24434 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
24435
24436 * lread.c (Fload): Fix typo in docstring.
24437
24438 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24439
24440 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24441 of a non-zero value can't yield zero.
24442
24443 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24444
24445 * term.c (term_clear_mouse_face, term_mouse_highlight)
24446 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24447
24448 * print.c (safe_debug_print): Use XHASH.
24449
24450 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24451 Lisp elements such as tags.
24452 (XHASH): New macro.
24453 (EQ): Use it.
24454 (SREF, SSET, STRING_COPYIN): Use SDATA.
24455 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24456
24457 * alloc.c (mark_terminal): Remove left-over declaration.
24458 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24459 (allocate_vectorlike): Remove type argument. Adjust callers.
24460 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24461 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24462
24463 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24464 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24465 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24466 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24467 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24468 Use them.
24469
24470 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24471 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24472 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24473
24474 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24475
24476 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24477 loaded by default.
24478
24479 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24480
24481 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24482 on this tty.
24483 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24484
24485 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24486 Update all users.
24487 (handle_one_term_event): Use Gpm_DrawPointer.
24488 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24489 Signal errors instead of returning nil. Always return nil.
24490 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24491 Make it a noop if gpm-mouse was not activated.
24492 (syms_of_term): Update names.
24493
24494 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24495
24496 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24497 (init_sys_modes): Check that gpm_tty is the current tty.
24498
24499 * alloc.c (allocate_terminal): Set the vector size to only count the
24500 lisp fields. Initialize those to nil.
24501 (mark_object): Don't treat terminals specially.
24502 (mark_terminal): Remove.
24503 (mark_terminals): Use mark_object instead.
24504
24505 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24506 the GC to the beginning.
24507
24508 * indent.h:
24509 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24510
24511 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24512
24513 2007-09-25 Jason Rumney <jasonr@gnu.org>
24514
24515 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24516
24517 * w32console.c (create_w32cons_output): Remove.
24518
24519 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24520
24521 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24522 (reset_sys_modes): Use reset_terminal_modes_hook.
24523
24524 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24525
24526 * eval.c (do_autoload): Don't output any message.
24527
24528 2007-09-24 Juri Linkov <juri@jurta.org>
24529
24530 * emacs.c (standard_args): Change priority of "--no-splash"
24531 from 40 to 3. Add "--no-desktop" with the same priority.
24532
24533 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24534
24535 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24536 and optimize the case where they are all 1.
24537
24538 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24539
24540 * lisp.h (abs): Define if not defined.
24541 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24542 Don't define `abs', since it's defined in lisp.h.
24543
24544 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24545
24546 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24547 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24548 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24549 (init_tty): Use DEV_TTY instead of "/dev/tty".
24550 [WINDOWSNT]: No need to protect from NAME arg being null.
24551
24552 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24553
24554 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24555 up the tty state.
24556
24557 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24558
24559 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24560 (gpm_tty): Change its type.
24561 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24562 (gpm_tty): Change its type and initialize it.
24563 (Fterm_open_connection): Check the frame is indeed a tty.
24564 Use the new gpm_tty.
24565 (Fterm_close_connection): Use the new gpm_tty.
24566 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24567 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24568
24569 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24570
24571 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24572 underline_color, to draw strike-through.
24573
24574 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24575
24576 * lisp.h (allocate_terminal): Declare.
24577
24578 * window.c (candidate_window_p): Consider frames that are being placed
24579 by the user as somewhere between visible and iconified.
24580 (window_loop): Prefer windows on the current frame.
24581 (Fselect_window): Move the use of select-frame to the beginning so we
24582 can just delegate all the work (it'll call us back anyway).
24583
24584 * frame.c (Qdisplay_environment_variable):
24585 * frame.h (Qdisplay_environment_variable): Delete.
24586
24587 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24588 of the first arg, since that value may be a union.
24589
24590 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24591 parameter rather than Qdisplay_environment_variable. If all else
24592 fails, look for DISPLAY in initial-environment.
24593
24594 2007-09-21 Glenn Morris <rgm@gnu.org>
24595
24596 * Makefile.in (emacstool): Remove target.
24597 (lisp, shortlisp): Remove termdev.elc.
24598
24599 2007-09-21 Markus Triska <markus.triska@gmx.at>
24600
24601 * xterm.c (x_delete_display): Compile session management conditionally.
24602
24603 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24604
24605 * callproc.c (getenv_internal_1): New function.
24606 (getenv_internal): Use it.
24607 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24608
24609 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24610 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24611 (Fset_terminal_parameter): Work with dead terminals as well.
24612 (Fmodify_terminal_parameters): Remove.
24613
24614 * terminal.c (get_terminal): Handle terminals.
24615 Make sure the terminal returned is live.
24616 (create_terminal): Use allocate_terminal.
24617 (mark_terminals): Move to alloc.c.
24618 (delete_terminal): Use terminal->name as liveness status.
24619 NULL out fields after freeing their contents.
24620 Don't deallocate the object.
24621 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24622 rather than an int.
24623 (Fterminal_live_p): Accept non-integer arguments.
24624 (Fterminal_list): Return terminal objects rather than an ints.
24625
24626 * alloc.c (enum mem_type): New member for `terminal' objects.
24627 (allocate_terminal): New function.
24628 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24629 Handle terminals.
24630 (mark_terminal): New fun.
24631 (mark_terminals): Move from terminal.c.
24632
24633 * term.c (get_tty_terminal): Don't treat output_initial specially.
24634 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24635 (delete_tty): Use terminal->name as liveness status.
24636
24637 * termhooks.h (struct terminal): Make it into a pseudovector.
24638 Remove `deleted' replaced by checking `name's nullness.
24639
24640 * print.c (print_object): Handle terminals.
24641
24642 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24643 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24644
24645 * frame.c (make_terminal_frame):
24646 * keyboard.c (tty_read_avail_input):
24647 * w32term.c (x_delete_terminal):
24648 * xfns.c (Fx_create_frame, x_create_tip_frame):
24649 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24650
24651 2007-09-20 Glenn Morris <rgm@gnu.org>
24652
24653 * process.c (Fmake_network_process): Doc fix.
24654
24655 2007-09-19 Jason Rumney <jasonr@gnu.org>
24656
24657 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24658
24659 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24660
24661 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24662 Fix a C warning regarding variable constness.
24663
24664 * xterm.c (handle_one_xevent): Fix a C warning.
24665
24666 2007-09-18 Jason Rumney <jasonr@gnu.org>
24667
24668 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24669
24670 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24671
24672 * gtkutil.c (gdpy_def): New variable.
24673 (xg_initialize): Initialize gdpy_def.
24674 (xg_display_close): If no other display exists, set gdpy_def to a
24675 new connection.
24676
24677 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24678
24679 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24680 when we have no file name for the icon.
24681 (xg_tool_bar_expose_callback): Remove.
24682 (xg_create_tool_bar): Don't connect expose signal to
24683 xg_tool_bar_expose_callback.
24684 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24685
24686 2007-09-16 Andreas Schwab <schwab@suse.de>
24687
24688 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24689 values instead of zapping them.
24690
24691 2007-09-14 Glenn Morris <rgm@gnu.org>
24692
24693 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24694 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24695 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24696 scope and rename to omfib_buffer for clarity.
24697 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24698
24699 2007-09-14 Kenichi Handa <handa@m17n.org>
24700
24701 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24702
24703 2007-09-13 Jason Rumney <jasonr@gnu.org>
24704
24705 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24706
24707 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24708
24709 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24710 (mac_term_init): Call here instead, passing rif.
24711
24712 2007-09-13 Glenn Morris <rgm@gnu.org>
24713
24714 * s/hpux.h: No longer define `static' as nothing.
24715
24716 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24717
24718 * callint.c (Fcall_interactively): Remove unused var `fun'.
24719
24720 2007-09-12 Romain Francoise <romain@orebokech.com>
24721
24722 * window.c (prefer_window_split_horizontally, display_buffer):
24723 Revert 2007-09-08 change.
24724
24725 2007-09-12 Glenn Morris <rgm@gnu.org>
24726
24727 * alloca.c: Remove file.
24728 * Makefile.in (alloca): Do not undef.
24729 (allocaobj, alloca.o): Remove.
24730 (otherobj): Remove allocaobj.
24731 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24732 * regex.c (C_ALLOCA): Remove all references and code that was only
24733 used when this was defined.
24734 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24735 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24736 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24737
24738 * Makefile.in (SOURCES, unlock, relock): Delete.
24739
24740 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24741 (menu_grab_callback): All uses changed.
24742
24743 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24744 (x_reply_selection_request): All uses changed.
24745
24746 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24747
24748 * lread.c (load_warn_old_style_backquotes): Change message to look
24749 better when it appears in the middle of byte-compiler messages.
24750
24751 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24752
24753 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24754
24755 * xterm.c (x_create_terminal): Add comment.
24756
24757 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24758
24759 2007-09-10 Richard Stallman <rms@gnu.org>
24760
24761 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24762
24763 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24764
24765 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24766 (DEFUN): Document `intspec', use it instead of `prompt'.
24767
24768 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24769
24770 * data.c (Finteractive_form): If the interactive specification starts
24771 with a `(', use it as a Lisp form.
24772
24773 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24774 name and file modes.
24775
24776 * callint.c (Fcall_interactively): Comment fixes.
24777
24778 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24779
24780 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24781 and compiled functions.
24782
24783 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24784
24785 * window.c (prefer_window_split_horizontally): New variable.
24786 (display_buffer): Consider splitting window horizontally depending
24787 on prefer_window_split_horizontally.
24788
24789 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24790
24791 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24792
24793 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24794
24795 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24796
24797 * frame.c (x_set_frame_parameters): Check number is positive before
24798 using XFASTINT.
24799
24800 * window.c (freeze_window_start): Don't presume selected_window holds
24801 a window object.
24802 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24803
24804 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24805
24806 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24807
24808 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24809
24810 * window.c (Vsplit_window_preferred_function): New var.
24811 (Fdisplay_buffer): Use it.
24812 (syms_of_window): Export, and initialize it.
24813
24814 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24815
24816 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24817
24818 2007-09-06 Glenn Morris <rgm@gnu.org>
24819
24820 * gtkutil.c (menu_grab_callback) <cnt>:
24821 * xselect.c (x_reply_selection_request) <cnt>: Move static
24822 variable to file scope.
24823
24824 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24825
24826 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24827 consistent values of selected_frame and selected_window.
24828
24829 2007-09-04 Jason Rumney <jasonr@gnu.org>
24830
24831 * w32console.c (initialize_w32_display): Zero unused hooks.
24832
24833 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24834
24835 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24836 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24837
24838 2007-09-04 Jason Rumney <jasonr@gnu.org>
24839
24840 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24841 in w32console.c. Set up input. Remove XXX comments that have been
24842 confirmed as correct.
24843
24844 * s/ms-w32.h (MULTI_KBOARD): Define.
24845
24846 * w32console.c (one_and_only_w32cons): Remove.
24847 (initialize_w32_display): Take terminal argument.
24848
24849 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24850 initialize_w32_display.
24851 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24852
24853 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24854
24855 * keyboard.c (discard_mouse_events): Discard it.
24856 (make_lispy_event): Translate it to a lisp event.
24857 (lispy_wheel_names): Add wheel-left and right events.
24858 (syms_of_keyboard): Enlarge wheel_syms.
24859
24860 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24861 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24862
24863 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24864
24865 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24866 from WM_MOUSEHWHEEL.
24867 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24868
24869 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24870 terminal.
24871
24872 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24873 keyboard for the terminal.
24874
24875 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24876
24877 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24878 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24879 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24880 and resume-tty-function to resume-tty-hook.
24881 (Fsuspend_tty, Fresume_tty): Use new names.
24882
24883 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24884
24885 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24886 if it starts with "n:".
24887
24888 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24889
24890 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24891
24892 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24893
24894 * frame.h:
24895 * frame.c (Qterm_environment_variable): Remove.
24896 (syms_of_frame): Don't init and staticpro it.
24897
24898 * callproc.c (getenv_internal): Remove special case for $TERM.
24899
24900 * callproc.c (Vinitial_environment): New variable.
24901 (set_initial_environment): Initialize it.
24902 (syms_of_callproc): Declare it.
24903 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24904 TERM under which a process runs is never related to the TERM in which
24905 Emacs is running.
24906
24907 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24908
24909 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24910 * s/darwin.h: ... do it here.
24911
24912 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24913
24914 * lisp.h (set_initial_environment): Rename from set_global_environment.
24915
24916 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24917 removed by mistake on the multi-tty branch.
24918
24919 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24920 (Fmodify_frame_parameters): Return a value.
24921
24922 * image.c (png_load): Comment-out var only used in commented-out code.
24923
24924 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24925 before passing it to mark_object.
24926
24927 * xfaces.c (internal_resolve_face_name): Return a value.
24928 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24929
24930 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24931 (x_icon): Comment-out var only used in commented-out code.
24932
24933 2007-08-29 Romain Francoise <romain@orebokech.com>
24934
24935 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24936 QUIT hasn't been provided.
24937
24938 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24939
24940 * callproc.c (child_setup, getenv_internal): Use the
24941 display-environment-variable and term-environment-variable frame params.
24942 (set_initial_environment): Initialise Vprocess_environment.
24943
24944 * config.in: Disable multi-keyboard support on a mac.
24945
24946 * frame.c (Qterm_environment_variable)
24947 (Qdisplay_environment_variable): New variables.
24948 (syms_of_frame): Intern and staticpro them.
24949 (Fmake_terminal_frame): Disable output method test.
24950
24951 * frame.h: Declare them here.
24952
24953 * macfns.c (x_set_mouse_color): Get rif from the frame.
24954 (x_set_tool_bar_lines): Don't use updating_frame.
24955 (mac_window): Add 2 new parameters for consistency with other systems.
24956 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24957 frame parameters following what is done in X11 and w32. Don't use
24958 FRAME_MAC_DISPLAY_INFO.
24959 (Fx_open_connection, start_hourglass): Remove window-system check.
24960 (x_create_tip_frame): Get the keyboard from the terminal.
24961
24962 * macmenu.c: Reorder includes.
24963 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24964
24965 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24966 terminal parameter.
24967 (x_clear_frame): Add a frame parameter.
24968 (note_mouse_movement): Get rif from the frame.
24969 (mac_term_init): Initialize the terminal.
24970 (mac_initialize): Make static and move terminal initialization ...
24971 (mac_create_terminal): ... to this new function.
24972
24973 * macterm.h (struct mac_display_info): Add terminal.
24974 (mac_initialize): Delete declaration.
24975
24976 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24977
24978 * sysdep.c: Comment out text after #endif.
24979
24980 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24981 is defined. Better initialize ttys in windows. Use terminal
24982 specific mouse_position_hook.
24983
24984 * termhooks.h (union display_info): Add mac_display_info.
24985
24986 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24987 Set the default minibuffer frame, window_system and the rest of the
24988 frame parameters following what is done in X11.
24989
24990 * w32term.c (w32_initialize): Make static.
24991
24992 * xselect.c (x_handle_selection_clear): Only access
24993 terminal->kboard when MULTI_KBOARD is defined.
24994
24995 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24996 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24997
24998 2007-08-29 Jason Rumney <jasonr@gnu.org>
24999
25000 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25001 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25002
25003 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25004 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25005
25006 * keyboard.c (restore_kboard_configuration): Only define when
25007 MULTI_KBOARD defined.
25008
25009 * makefile.w32-in: Update dependancies from Makefile.in.
25010 (OBJ1): Add terminal.$(O)
25011
25012 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25013 Don't define function body.
25014 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25015
25016 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25017
25018 * w32.c (request_sigio, unrequest_sigio): Remove.
25019
25020 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25021 (w32con_clear_frame, w32con_clear_end_of_line)
25022 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25023 (w32con_delete_glyphs, w32con_set_terminal_window)
25024 (scroll_line, w32_sys_ring_bell): Add frame arg.
25025 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25026 Add terminal arg.
25027 (PICK_FRAME): Remove.
25028 (w32con_write_glyphs): Use frame specific terminal coding.
25029 (one_and_only_w32cons): New global variable.
25030 (initialize_w32_display): Use it for storing hooks.
25031 (create_w32cons_output): New function.
25032
25033 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25034 arg a frame.
25035
25036 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25037 Set window_system.
25038 (x_set_tool_bar_lines): Don't use updating_frame.
25039 (Fx_create_frame): Set terminal and ref count.
25040 (Fx_open_connection): Remove window-system check.
25041
25042 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25043
25044 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25045 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25046 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25047 Add frame arg.
25048 (x_delete_terminal, w32_create_terminal): New functions.
25049 (w32_term_init): Create a terminal.
25050 (w32_initialize): Move terminal specific initialization to
25051 w32_create_terminal.
25052
25053 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25054 (w32_clear_rect, w32_clear_area): Use background from frame.
25055 (w32_display_info): Add terminal.
25056 (w32_sys_ring_bell, x_delete_display): Declare here.
25057
25058 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25059
25060 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25061
25062 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25063
25064 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25065 Fix get_named_tty calls for the controlling tty.
25066
25067 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25068
25069 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
25070
25071 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25072
25073 * term.c (tty_insert_glyphs): Add missing first parameter.
25074
25075 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25076
25077 * buffer.c (Fbuffer_list, Fbury_buffer):
25078 Take frame->buried_buffer_list into account.
25079
25080 * cm.c (current_tty): New variable, for cmputc().
25081 (cmputc): Use it.
25082 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25083 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25084 (cmgoto): Add tty parameter. Pass it on to calccost().
25085 Use emacs_tputs() instead of tputs().
25086
25087 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25088 tputs().
25089 (current_tty): New variable, for cmputc().
25090 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25091
25092 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25093 (internal_condition_case, internal_condition_case_1)
25094 (internal_condition_case_2): Don't abort when x_catching_errors.
25095
25096 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25097 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25098 prevent crashes caused by bogus longjmps in read_char.
25099
25100 * keymap.h (Fset_keymap_parent): Add EXFUN.
25101
25102 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25103 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25104 Remove redundant definition.
25105
25106 * macfns.c (x_set_mouse_color, x_make_gc):
25107 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25108
25109 * w32term.c (x_free_frame_resources):
25110 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25111 (w32_initialize): Use the accessor macros for terminal characteristics.
25112
25113 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25114 Use the accessor macros for terminal characteristics.
25115 * msdos.c (internal_terminal_init): Use the accessor macros for
25116 terminal characteristics.
25117 (ScreenVisualBell, internal_terminal_init):
25118 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25119
25120 * termopts.h (no_redraw_on_reenter): Declare.
25121
25122 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25123 (mark_terminals, mark_ttys): Declare.
25124 (Fgarbage_collect): Call them.
25125 (mark_object): Mark buried_buffer_list.
25126
25127 * prefix-args.c: Include stdlib.h for exit.
25128
25129 * syssignal.h: Add comment.
25130
25131 * indent.c: Include stdio.h.
25132
25133 * window.h (Vinitial_window_system): Declare.
25134 (Vwindow_system): Delete declaration.
25135
25136 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25137
25138 * image.c (lookup_image): Don't initialize `c' until the xasserts
25139 have been run.
25140
25141 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25142 FRAME_FOREGROUND_PIXEL.
25143
25144 * print.c (print_preprocess): Don't lose print_depth levels while
25145 iterating.
25146
25147 * widget.c (update_from_various_frame_slots):
25148 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25149
25150 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25151 frames.
25152 (window_internal_height): Remove bogus make_number call.
25153 (init_window_once): Call make_terminal_frame with two zero parameters.
25154
25155 * fileio.c (Fread_file_name): Update comment.
25156
25157 * callint.c (Fcall_interactively):
25158 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25159 Make sure it is correctly unwound.
25160
25161 * xsmfns.c (x_session_close): New function.
25162
25163 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25164 Delete declarations.
25165
25166 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25167 (x_output): Remove background_pixel and foreground_pixel fields.
25168 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25169 (x_delete_device, x_session_close): Declare.
25170
25171 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25172 (read_filtered_event): Call `read_char' with a local
25173 `wrong_kboard_jmpbuf'.
25174
25175 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25176 Don't call single_kboard_state. Use FRAME_RIF.
25177
25178 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25179 systems.
25180
25181 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25182 (Fframe_with_environment, Fset_input_meta_mode)
25183 (Fset_quit_char): EXFUN.
25184 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25185 (init_sys_modes, reset_sys_modes): Update prototypes.
25186 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25187
25188 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25189 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25190 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25191 Delete declarations.
25192 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25193 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25194 New declarations.
25195
25196 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25197 already does that during init_display(). Call syms_of_keymap
25198 before syms_of_keyboard. Call `syms_of_terminal'.
25199 Call set_initial_environment, not set_process_environment.
25200 (shut_down_emacs): Call reset_all_sys_modes() instead of
25201 reset_sys_modes().
25202
25203 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25204 (internal_resolve_face_name, resolve_face_name_error): New functions.
25205 (resolve_face_name): Protect against loops and errors thrown by Fget.
25206 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25207 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25208
25209 * scroll.c: Replace CURTTY() with local variables throughout the
25210 file (where applicable).
25211 (calculate_scrolling, calculate_direct_scrolling)
25212 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25213 characteristics.
25214
25215 * keymap.c (Vfunction_key_map): Remove.
25216 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25217 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25218 (Vkey_translation_map): Remove.
25219 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25220 (Fdescribe_buffer_bindings)
25221 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25222 Update for terminal-local key-translation-map.
25223
25224 * Makefile.in (callproc.o): Update dependencies.
25225 (lisp, shortlisp): Add termdev.elc.
25226 (obj): Add terminal.o.
25227 (terminal.o): Add dependencies.
25228 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25229 (data.o, fns.o): Add termhooks.h dependency.
25230 (SOME_MACHINE_LISP): Add dnd.elc.
25231 (minibuf.o): Fix typo.
25232 Update dependencies.
25233
25234 * data.c (do_symval_forwarding, store_symval_forwarding)
25235 (find_symbol_value): Use the selected frame's keyboard, not
25236 current_kboard.
25237
25238 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25239 Vwindow_system.
25240
25241 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25242 Fmenu_bar_open.
25243 (syms_of_xmenu): Update defsubr.
25244 (mouse_position_for_popup, Fx_popup_menu)
25245 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25246 (set_frame_menubar, free_frame_menubar)
25247 (create_and_show_popup_menu, xmenu_show)
25248 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25249 an X frame.
25250
25251 * xselect.c (x_own_selection): Abort if not an X frame.
25252 (some_frame_on_display): Check if it is an X frame.
25253 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25254
25255 * coding.c: Include frame.h and termhooks.h.
25256 (terminal_coding, keyboard_coding): Delete.
25257 (Fset_terminal_coding_system_internal)
25258 (Fset_keyboard_coding_system_internal)
25259 (Fkeyboard_coding_system)
25260 (Fterminal_coding_system): Add a terminal parameter.
25261 Get terminal_coding from the terminal.
25262 (init_coding_once): Don't call setup_coding_system here.
25263
25264 * dispextern.h (set_scroll_region, turn_off_insert)
25265 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25266 (tty_clear_end_of_line, tty_setup_colors)
25267 (delete_tty, updating_frame)
25268 (produce_special_glyphs, produce_glyphs, write_glyphs)
25269 (insert_glyphs): Remove.
25270 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25271 (tty_turn_off_highlight, get_tty_size): Add declaration.
25272 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25273
25274 * frame.h (enum output_method): Add output_initial.
25275 (struct x_output): Delete.
25276 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25277 Access foreground_pixel and background_pixel directly from the frame.
25278 (tty_display): Delete.
25279 (struct frame): Add buried_buffer_list, foreground_pixel,
25280 background_pixel and terminal. Delete kboard.
25281 (union output_data): Add tty.
25282 (FRAME_KBOARD): Get the kboard from the terminal.
25283 (FRAME_INITIAL_P): New macro.
25284 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25285 (Qterm_environment_variable, Qdisplay_environment_variable)
25286 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25287 New declarations.
25288
25289 * termchar.h (tty_output, tty_display_info): New structures.
25290 (tty_list): Declare.
25291 (FRAME_TTY, CURTTY): New macros.
25292 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25293 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25294 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25295 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25296
25297 * callproc.c: Include frame.h and termhooks.h, for terminal
25298 parameters.
25299 (add_env): New function.
25300 (child_setup): Use it.
25301 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25302 (getenv_internal): Fix get_terminal_param call.
25303 (Fgetenv_internal, egetenv): Update doc.
25304 (syms_of_callproc): Initialize Vprocess_environment to nil.
25305 Register and initialize them. Remove obsolete defvars. Update doc
25306 strings.
25307 (child_setup): Handle Vlocal_environment_variables.
25308 (getenv_internal): Add terminal parameter.
25309 Handle Vlocal_environment_variables.
25310 (Fgetenv_internal): Add terminal parameter.
25311 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25312 environment in a frame (not terminal) parameter. Update doc strings.
25313 (set_initial_environment): Rename from set_global_environment.
25314 Store Emacs environment in initial frame parameter.
25315
25316 * xdisp.c (redisplay_internal): Update references to
25317 `previous_terminal_frame'.
25318 (display_mode_line, Fformat_mode_line): Replace calls to
25319 `push_frame_kboard' with `push_kboard'.
25320 (get_glyph_string_clip_rects): Add extra parentheses and
25321 braces to prevent compiler warnings.
25322 (calc_pixel_width_or_height): Add xassert to check that the
25323 frame is alive. Don't call `lookup_image' on a termcap frame.
25324 (message2_nolog, message3_nolog, redisplay_internal)
25325 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25326 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25327 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25328 (Fx_display_pixel_width, Fx_display_pixel_height)
25329 (Fx_display_planes, Fx_display_color_cells)
25330 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25331 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25332 (Fx_display_backing_store, Fx_display_visual_class)
25333 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25334 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25335
25336 * xfns.c (x_set_foreground_color x_set_background_color)
25337 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25338 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25339 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25340 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25341 terminal that is being deleted.
25342 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25343 frame parameter, and make sure it overrides any user-supplied setting.
25344 (Fx_close_connection, Fx_synchronize): Unify argument names with
25345 the rest of the DEFUNs.
25346
25347 * dispnew.c (Fsend_string_to_terminal): Update call to
25348 `get_tty_terminal'.
25349 (Fredraw_frame, Fsend_string_to_terminal)
25350 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25351 FRAME_TERMCAP_P and FRAME_TTY.
25352 (window_change_signal): Don't believe width/height values that are
25353 impossibly small.
25354 (Vinitial_window_system): Rename from Vwindow_system.
25355 (termscript, Wcm, rif): Delete.
25356
25357 * termhooks.h (struct terminal): New struct containing the
25358 previously global text display hooks and new members NAME,
25359 DELETED and PARAM_ALIST.
25360 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25361 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25362 (FRAME_RIF): New macros.
25363 (get_terminal_param, get_device): New declarations.
25364 (termscript): Delete declaration.
25365
25366 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25367 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25368 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25369 FRAME_FOREGROUND_PIXEL.
25370 (x_fully_uncatch_errors): Disable definition.
25371 (x_scroll_bar_expose): Fix reference to foreground pixel.
25372 (XTread_socket): Disable loop on all X displays.
25373 (x_delete_terminal): Don't set terminal->deleted and let
25374 delete_terminal delete the frames on the terminal.
25375 (x_delete_display): Doc update to reflect changes in
25376 delete_terminal.
25377 (x_display_info) <terminal>: Move member earlier in the struct.
25378 (deleting_tty): Remove old variable.
25379 (Fsuspend_tty): Call clear_tty_hooks.
25380 (Fresume_tty, init_tty): Call set_tty_hooks.
25381 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25382 errors on X frames.
25383 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25384 (handle_one_xevent): Initialize `f' to NULL.
25385 (x_delete_terminal, x_create_terminal): New functions.
25386 (XTset_terminal_modes, XTreset_terminal_modes)
25387 (XTread_socket, x_connection_closed, x_term_init)
25388 (x_term_init, x_delete_display): Add terminal parameter.
25389 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25390 X connections.
25391
25392 * frame.c: Include termchar.h.
25393 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25394 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25395 (Qdisplay_environment_variable): New vars.
25396 (Fframep): Deal with output_initial.
25397 (Fframe-live-p): Doc fix.
25398 (Fwindow-system): New function.
25399 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25400 (make_terminal_frame): Don't create frames on a terminal that is
25401 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25402 (store_frame_param): Check for found_for_frame before calling XFRAME.
25403 (Fmake_terminal_frame): Handle NULL tty names correctly.
25404 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25405 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25406 frames to refer to a deleted frame in their 'environment parameter.
25407 (Fframe_with_environment): New function.
25408 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25409 (get_future_frame_param): New function.
25410 (Fmake_terminal_frame): Use it.
25411 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25412
25413 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25414 * sysdep.c (reset_sys_modes): Update for renames.
25415
25416 * keyboard.c (tty_read_avail_input): New function.
25417 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25418 (syms_of_keyboard): Defsubr them.
25419 (Fset_input_meta_mode, Fset_quit_char): New functions.
25420 (Fset_input_mode): Split to above functions.
25421 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25422 parameter. Use it in call to `read_char'.
25423 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25424 Set wrong_kboard_jmpbuf correctly in recursive calls.
25425 Use current_kboard to access Vkeyboard_translate_table.
25426 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25427 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25428 Update longjmp invocations. Remember the original current_kboard,
25429 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25430 changes it. Comment out unnecessary calls to
25431 `record_single_kboard_state' and `any_kboard_state'.
25432 Update recursive calls.
25433 (wrong_kboard_jmpbuf): Remove global variable.
25434 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25435 Handle deleted interrupted_kboards correctly; that is a legal
25436 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25437 and read_char calls. Abort if interrupted_kboard died in read_char.
25438 (any_kboard_state, single_kboard_state)
25439 (push_frame_kboard): Remove function.
25440 (pop_kboard): Switch out of single_kboard mode if the kboard has
25441 been deleted. Remove unused variable. Help debugging by not
25442 changing current_kboard unnecessarily. Set current_kboard to the
25443 kboard of the selected frame when the stored kboard object has
25444 been deleted before pop_kboard.
25445 (temporarily_switch_to_single_kboard): Change first parameter to a
25446 frame pointer. Throw an error when caller wants to change kboards
25447 while in single_kboard mode. Don't push_kboard if we weren't in
25448 single kboard state. Don't pop_kboard if we popped into any
25449 kboard state.
25450 (restore_kboard_configuration): Abort if pop_kboard changed the
25451 kboard in single_kboard mode. Call pop_kboard only after setting
25452 up single_kboard mode.
25453 (Frecursive_edit): Switch to single_kboard mode only in nested
25454 command loops.
25455 (cmd_error, command_loop, command_loop_1, timer_check):
25456 Comment out unnecessary call to `any_kboard_state' and
25457 `record_single_kboard_state'.
25458 (delete_kboard): Exit single_kboard mode if we have just deleted
25459 that kboard. Use FRAME_KBOARD.
25460 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25461 `fatal_error_signal'.
25462 (record_single_kboard_state): Don't push_kboard if we weren't in
25463 single kboard state. Don't pop_kboard if we popped into any
25464 kboard state.
25465 (push_frame_kboard): Rename to push_kboard.
25466 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25467 (read_avail_input): Read input from all terminals.
25468 (mark_kboards): Also mark Vkeyboard_translate_table.
25469 (kbd_buffer_store_event_hold): Simplify condition.
25470 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25471 (Vkeyboard_translate_table): Move to struct kboard.
25472 (init_kboard): Initialize Vkeyboard_translate_table.
25473 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25474 Vkeyboard_translate_table. Update doc strings. Update docs of
25475 local-function-key-map and function-key-map.
25476
25477 * terminal.c: New file.
25478
25479 * term.c: Include errno.h.
25480 (Vring_bell_function, device_list, initial_device)
25481 (next_device_id, ring_bell, update_begin, update_end)
25482 (set_terminal_window, cursor_to, raw_cursor_to)
25483 (clear_to_end, clear_frame, clear_end_of_line)
25484 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25485 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25486 (syms_of_term): Move their initialization to terminal.c.
25487 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25488 (Ftty_display_color_cells)
25489 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25490 (clear_tty_hooks, set_tty_hooks)
25491 (init_tty, maybe_fatal): New functions.
25492 (Ftty_type): Return nil if terminal is not on a tty instead of
25493 throwing an error. Doc update.
25494 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25495 Doc update. Initialize new subrs and variables.
25496 (delete_tty): Use terminal->deleted.
25497 (tty_set_terminal_modes): Rename from set_terminal_modes.
25498 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25499 (set_scroll_region): Rename to `tty_set_scroll_region'.
25500 (turn_on_insert): Rename to `tty_turn_on_insert'.
25501 (turn_off_insert): Rename to `tty_turn_off_insert'.
25502 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25503 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25504 (toggle_highligh): Rename to `tty_toggle_highlight'.
25505 (background_highlight): Rename to `tty_background_highlight'.
25506 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25507 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25508 (tty_set_scroll_region, tty_background_highlight)
25509 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25510 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25511 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25512 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25513 Add static modifier.
25514 (tty_reset_terminal_modes, tty_set_terminal_window)
25515 (tty_set_scroll_region, tty_background_highlight)
25516 (tty_highlight_if_desired, tty_cursor_to)
25517 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25518 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25519 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25520 renames.
25521
25522 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25523
25524 * keyboard.c: Qrtl is new.
25525 (parse_tool_bar_item): Handle :rtl keyword.
25526 (syms_of_keyboard): Intern :rtl keyword.
25527
25528 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25529
25530 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25531 so no Lisp code is executed.
25532 (file_for_image, find_rtl_image): New functions.
25533 (xg_get_image_for_pixmap): Use file_for_image.
25534 (update_frame_tool_bar): If direction is RTL, use RTL image if
25535 defined. Use Gtk stock images if defined.
25536
25537 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25538
25539 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25540 for nonexistent or zero-width glyph in composition glyph.
25541
25542 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25543
25544 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25545
25546 * xdisp.c (Finvisible_p): New function.
25547 (syms_of_xdisp): defsubr it.
25548
25549 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25550
25551 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25552 Doc fixes.
25553
25554 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25555
25556 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25557
25558 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25559
25560 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25561 whether decoding has modified buffer contents.
25562
25563 2007-08-24 Jason Rumney <jasonr@gnu.org>
25564
25565 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25566 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25567 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25568 (init_svg_functions) [HAVE_NTGUI]: New function.
25569 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25570 (svg_load_image): Use them.
25571 (svg_load_image) [HAVE_NTGUI]: Implement background.
25572
25573 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25574
25575 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25576 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25577 (LIBX): Remove @RSVG_LIBS@.
25578 (LIBES): Add $(RSVG_LIBS).
25579
25580 * image.c (svg_load_image): Blend with specified background if exists.
25581 Use IMAGE_BACKGROUND. Add Mac OS Support.
25582
25583 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25584 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25585 Remove macros.
25586 [MAC_OSX] (socket_callback): Do nothing.
25587 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25588 ReceiveNextEvent.
25589 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25590 socket_callback.
25591 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25592
25593 2007-08-22 Glenn Morris <rgm@gnu.org>
25594
25595 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25596
25597 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25598
25599 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25600
25601 * image.c: Add support for SVG images. Some additional comments
25602 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25603 (svg_image_p): New function to test for SVG image.
25604 (svg_load): New function to load SVG image.
25605 (svg_load_image): New function, helper for svg_load.
25606 (Qsvg): New Lisp_object.
25607 (svg_keyword_index): New enum.
25608 (svg_format): New static `image_keyword' struct.
25609 (svg_type): New static `image_type' struct.
25610 (librsvg/rsvg.h): Include it.
25611
25612 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25613
25614 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25615
25616 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25617
25618 * lread.c (Qold_style_backquotes): New var.
25619 (syms_of_lread): Init and staticpro it.
25620 (load_warn_old_style_backquotes): New fun.
25621 (Fload): Use them to warn about old style backquotes.
25622 (end_of_file_error, Fload): Remove unused vars.
25623
25624 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25625
25626 * lread.c (Vold_style_backquotes): New var.
25627 (syms_of_lread): Init and export it to Elisp.
25628 (read1): Set it when we find an old-style (back)quote.
25629
25630 2007-08-22 Jason Rumney <jasonr@gnu.org>
25631
25632 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25633
25634 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25635
25636 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25637
25638 2007-08-19 Richard Stallman <rms@gnu.org>
25639
25640 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25641
25642 2007-08-19 Andreas Schwab <schwab@suse.de>
25643
25644 * alloc.c (pure): Round PURESIZE up.
25645
25646 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25647
25648 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25649 active frame.
25650
25651 2007-08-16 Richard Stallman <rms@gnu.org>
25652
25653 * eval.c (Fcommandp): Add parens to clarify.
25654
25655 * minibuf.c (Fall_completions): Use enum for type of table.
25656
25657 * emacs.c (USAGE2): Improve text.
25658
25659 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25660
25661 * term.c (tty_default_color_capabilities): Declare static
25662 variables in file scope, to avoid HPUX compiler problem.
25663
25664 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25665
25666 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25667 to gtk_toolbar_insert.
25668
25669 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25670
25671 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25672
25673 * insdel.c (reset_var_on_error): New fun.
25674 (signal_before_change, signal_after_change):
25675 Use it to reset (after|before)-change-functions to nil in case of error.
25676 Bind inhibit-modification-hooks to t.
25677 Don't bind (after|before)-change-functions to nil while they run.
25678
25679 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25680
25681 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25682 filling pixmap with stippled background.
25683
25684 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25685
25686 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25687 Don't use invisible frame as parent window for repositioning.
25688
25689 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25690
25691 * print.c (new_backquote_output): Rename from old_backquote_output.
25692 (print): Inverse its logic (according to its name) so as to match the
25693 behavior of new_backquote_flag in lread.c.
25694
25695 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25696
25697 * gmalloc.c (posix_memalign): New function.
25698
25699 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25700 ActivateControl/DeactivateControl here.
25701 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25702 frame-notice-user-settings is non-nil.
25703 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25704 for kEventParamFMFontStyle.
25705 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25706 mac_pass_command_to_system and mac_pass_control_to_system here.
25707 (XTread_socket): Call ActivateControl/DeactivateControl here.
25708 (XTread_socket) [TARGET_API_MAC_CARBON]:
25709 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25710 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25711 for window repositioning.
25712
25713 2007-08-08 Glenn Morris <rgm@gnu.org>
25714
25715 * Replace `iff' in doc-strings and comments.
25716
25717 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25718
25719 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25720
25721 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25722
25723 * fileio.c (Finsert_file_contents): Run format-decode and
25724 after_insert_file_functions on entire buffer when REPLACE is
25725 non-nil and inhibit modification_hooks and point_motion_hooks.
25726 For consistency, run after_insert_file_functions iff something
25727 got inserted. Move signal_after_change and update_compositions
25728 after code running after_insert_file_functions. Make sure that
25729 undo_list doesn't record intermediate steps of the decoding process.
25730
25731 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25732
25733 * emacs.c (main)
25734 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25735 Call malloc_enable_thread on interactive startup.
25736
25737 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25738 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25739 [USE_PTHREAD]: Conditionalize with it.
25740 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25741 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25742 New functions.
25743
25744 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25745
25746 * xdisp.c (redisplay_window): When restoring original buffer
25747 position, make sure it is still valid.
25748
25749 * image.c (png_load): Ignore png-supplied background color.
25750
25751 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25752
25753 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25754 Use kCFAbsoluteTimeIntervalSince1970.
25755
25756 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25757 New variable.
25758 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25759 event loop should be quit.
25760 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25761 Quit dialog event loop if quit_dialog_event_loop is set.
25762
25763 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25764 (Selection): New typedef. Use instead of ScrapRef.
25765 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25766 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25767 (mac_clear_selection): Rename from clear_scrap.
25768 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25769 scrap_has_target_type. All uses changed.
25770 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25771 (mac_selection_has_target_p): New functions.
25772 (mac_put_selection_value): Rename from put_scrap_string.
25773 (mac_get_selection_value): Rename from get_scrap_string.
25774 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25775 (put_scrap_private_timestamp, scrap_has_target_type)
25776 (get_scrap_private_timestamp): Remove functions.
25777 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25778 (x_own_selection, x_get_local_selection):
25779 Use mac_valid_selection_value_p.
25780 (x_own_selection): Don't use put_scrap_private_timestamp.
25781 Record OWNERSHIP-INFO into Vselection_alist instead.
25782 (x_get_local_selection): Don't check type if request is local.
25783 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25784 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25785
25786 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25787
25788 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25789 add comment explaining why.
25790
25791 2007-08-03 Richard Stallman <rms@gnu.org>
25792
25793 * fileio.c (Fvisited_file_modtime): Use make_time.
25794
25795 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25796
25797 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25798 build.
25799
25800 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25801
25802 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25803
25804 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25805
25806 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25807
25808 2007-07-30 Richard Stallman <rms@gnu.org>
25809
25810 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25811
25812 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25813
25814 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25815
25816 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25817
25818 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25819 remote default-directory.
25820
25821 * buffer.c (mode-line-format): Update doc string.
25822
25823 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25824
25825 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25826 scroll bar gap.
25827 (x_scroll_bar_create): Set bar->fringe_extended_p.
25828 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25829 on frame edge. Check fringe background extension. Don't clear
25830 extended fringe background area.
25831
25832 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25833 (w32_fill_area): Enclose multiple statements with do ... while (0).
25834
25835 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25836 Extend fringe background to scroll bar gap.
25837 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25838 Set bar->fringe_extended_p.
25839 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25840 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25841 background extension. Don't clear extended fringe background area.
25842
25843 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25844 New member fringe_extended_p.
25845
25846 2007-07-25 Glenn Morris <rgm@gnu.org>
25847
25848 * Relicense all FSF files to GPLv3 or later.
25849
25850 * COPYING: Switch to GPLv3.
25851
25852 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25853
25854 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25855
25856 * data.c (Finteractive_form): Check for the presence of an
25857 `interactive-form' symbol property more thoroughly.
25858
25859 * data.c (Finteractive_form): Use an `interactive-form' property if
25860 present, analogous to the function-documentation property.
25861
25862 2007-07-24 Jason Rumney <jasonr@gnu.org>
25863
25864 * w32fns.c (x_real_positions): Get real position from OS instead of
25865 calculating it.
25866
25867 2007-07-23 Jason Rumney <jasonr@gnu.org>
25868
25869 * filelock.c (current_lock_owner): Allow for @ sign in username.
25870
25871 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25872
25873 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25874 remote default-directory.
25875
25876 * buffer.c (mode-line-format): Describe above case in doc string.
25877
25878 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25879
25880 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25881 Define if not defined.
25882
25883 2007-07-18 Jason Rumney <jasonr@gnu.org>
25884
25885 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25886
25887 2007-07-18 Richard Stallman <rms@gnu.org>
25888
25889 * data.c (Fsetq_default): Doc fix.
25890
25891 * eval.c (Fsetq): Doc fix.
25892
25893 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25894
25895 * coding.c (Ffind_operation_coding_system):
25896 * eval.c (For, Fand): Doc fixes.
25897 Reported by Johan Bockgård.
25898
25899 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25900
25901 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25902
25903 * xterm.h: Declare x_ewmh_activate_frame.
25904
25905 * xterm.c (x_ewmh_activate_frame): New function.
25906 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25907
25908 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25909
25910 * window.c (Fdisplay_buffer): If largest or LRU window is the
25911 only window, split it even if it is not eligible for splitting.
25912 This restores the original behavior broken by the 2007-07-15
25913 change.
25914
25915 2007-07-17 Glenn Morris <rgm@gnu.org>
25916
25917 * abbrev.c (abbrev_check_chars): New function.
25918 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25919 Call abbrev_check_chars to check abbrev characters are word
25920 constituents. Doc fix.
25921
25922 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25923
25924 * process.c (Fstart_process, Fmake_network_process)
25925 (read_process_output): Fix up last changes.
25926
25927 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25928
25929 * makefile.w32-in (clean): Don't delete *~.
25930
25931 2007-07-16 Andreas Schwab <schwab@suse.de>
25932
25933 * window.c (Fdisplay_buffer): Use NILP.
25934 (Fset_window_scroll_bars): Likewise.
25935
25936 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25937
25938 * window.c (window_min_size_2): New function.
25939 (window_min_size_1, size_window, Fdisplay_buffer)
25940 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25941 windows without mode- or header-lines when window-min-height is
25942 too small.
25943 (size_window): Reset nodelete_p after testing it, following an
25944 earlier note by Kim F. Storm.
25945 (display_buffer): Do not set split_height_threshold to twice the
25946 value of window_min_height to avoid changing the value of a
25947 customizable variable. Rather explicitly check whether the
25948 height of the window that shall be splitted is at least as large
25949 as split_height_threshold.
25950 (Fwindow_full_width_p): New defun.
25951 (syms_of_window): Defsubr it.
25952
25953 * window.h: Add EXFUN for Fwindow_full_width_p.
25954
25955 2007-07-14 Jason Rumney <jasonr@gnu.org>
25956
25957 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25958
25959 2007-07-14 Richard Stallman <rms@gnu.org>
25960
25961 * eval.c (maybe_call_debugger): New function.
25962 (find_handler_clause): Use maybe_call_debugger.
25963 Call it when the handler says `debug'.
25964 Eliminate DEBUGGER_VALUE_PTR.
25965 (Fsignal): Eliminate debugger_value.
25966 (Qdebug): New variable.
25967 (syms_of_eval): Initialize it.
25968
25969 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25970
25971 * eval.c (Fprogn):
25972 * keyboard.c (Ftrack_mouse):
25973 * print.c (Fwith_output_to_temp_buffer):
25974 * window.c (Fsave_window_excursion): Doc fix.
25975
25976 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25977
25978 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25979
25980 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25981
25982 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25983 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25984 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25985 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25986 Remove unused encoding_carryover.
25987 * process.c: Adjust all functions accordingly.
25988
25989 2007-07-12 Richard Stallman <rms@gnu.org>
25990
25991 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25992
25993 2007-07-11 Jason Rumney <jasonr@gnu.org>
25994
25995 * makefile.w32-in (LIBS): Include OLE32.
25996
25997 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25998 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25999
26000 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26001
26002 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26003 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26004 from a Lisp_Object into a bare pointer.
26005 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26006 Adjust the code correspondingly.
26007
26008 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26009
26010 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26011 (term_show_mouse_face): Remove unused var `j'.
26012 (handle_one_term_event): Remove unused vars `i' and `j'.
26013 Don't cast return value of ttyname since it's not necessary.
26014
26015 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26016
26017 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26018 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26019
26020 * fns.c (map_char_table): Use an array of int for `indices' rather than
26021 an array of Lisp_Objects (which are only ever integers anyway).
26022 (Fmap_char_table): Update caller.
26023 * lisp.h: Update prototype.
26024 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26025 * fontset.c (Ffontset_info):
26026 * casetab.c (set_case_table): Update callers.
26027
26028 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26029
26030 * keymap.c (struct accessible_keymaps_data)
26031 (struct where_is_internal_data): New structures.
26032 (accessible_keymaps_1, where_is_internal_1): Use them to change
26033 interface to adhere to the one used by map_keymap.
26034 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26035 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26036
26037 * keymap.h (map_keymap_function_t): More informative prototype.
26038
26039 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26040
26041 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26042 (looking_at_1): Don't change search_regs and last_thing_searched
26043 if `inhibit-changing-match-data' is non-nil.
26044 (string_match_1, search_buffer, set_search_regs): Likewise.
26045 (syms_of_search): Add Lisp level definition for
26046 `inhibit-changing-match-data' and set it to nil.
26047 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26048 start and end of the match, instead of using values in search_regs.
26049
26050 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26051
26052 * minibuf.c (Fcompleting_read): New value `confirm-only'
26053 for `require-match'.
26054
26055 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26056
26057 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26058 part of the 2007-06-27 change to syms_of_fileio.
26059
26060 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26061
26062 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26063 Check WINDOWP before using XWINDOW. Consolidate return statements.
26064
26065 2007-06-27 Richard Stallman <rms@gnu.org>
26066
26067 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26068
26069 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
26070
26071 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26072
26073 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26074
26075 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26076 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26077 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26078 (_free_internal, memalign): Use them.
26079 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26080 Initialize to PTHREAD_MUTEX_INITIALIZER.
26081 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26082 (morecore_nolock): Rename from morecore. All uses changed.
26083 Use only nolock versions of internal allocation functions.
26084 (_malloc_internal_nolock, _realloc_internal_nolock)
26085 (_free_internal_nolock): New functions created from
26086 _malloc_internal, _realloc_internal, and _free_internal.
26087 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26088 Copy hook value to automatic variable before its use.
26089 (memalign): Copy hook value to automatic variable before its use.
26090
26091 2007-06-26 Kenichi Handa <handa@m17n.org>
26092
26093 * coding.c (Ffind_operation_coding_system): Docstring improved.
26094 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26095
26096 2007-06-25 David Kastrup <dak@gnu.org>
26097
26098 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26099 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26100 cater for additional parameter.
26101
26102 * keymap.h: Adjust number of parameters to `current-active-maps'.
26103
26104 * doc.c (Fsubstitute_command_keys): Adjust call of
26105 `current-active-maps'.
26106
26107 2007-06-25 David Kastrup <dak@gnu.org>
26108
26109 * callint.c (Fcall_interactively): Make the parsing of interactive
26110 specs somewhat more readable.
26111
26112 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26113
26114 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26115 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26116 if extended background has already been filled.
26117
26118 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26119
26120 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26121 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26122
26123 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26124 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26125 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26126 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26127 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26128 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26129 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26130 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26131 Run timers during dialog popup.
26132 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26133
26134 2007-06-21 Jason Rumney <jasonr@gnu.org>
26135
26136 * image.c (convert_mono_to_color_image): Swap fore and background.
26137
26138 2007-06-20 Jason Rumney <jasonr@gnu.org>
26139
26140 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26141 (w32_free_bdf_font): Unmap memory not handle.
26142
26143 2007-06-20 Sam Steingold <sds@gnu.org>
26144
26145 * gmalloc.c (__morecore): Fix the declaration to comply with the
26146 definition.
26147
26148 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
26149
26150 * w32term.c (w32_delete_display): Remove leftover declaration.
26151 (w32_define_cursor, w32_initialize): Make static.
26152
26153 * w32.c (_wsa_errlist): Fix typo in error message.
26154 (init_environment): Ignore any environment variable from the
26155 registry having a null value.
26156
26157 2007-06-20 Glenn Morris <rgm@gnu.org>
26158
26159 * Makefile.in (LIBGIF): Default to -lgif.
26160
26161 2007-06-17 Jason Rumney <jasonr@gnu.org>
26162
26163 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26164 unicode strings.
26165
26166 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
26167
26168 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26169 Fix typo in docstring.
26170
26171 2007-06-16 Eli Zaretskii <eliz@gnu.org>
26172
26173 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26174 and their keybindings.
26175
26176 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
26177
26178 * composite.c (update_compositions): Fix last fix.
26179
26180 2007-06-14 Jason Rumney <jasonr@gnu.org>
26181
26182 * w32.c (get_process_times_fn): New function pointer.
26183 (globals_of_w32): Intialize it if present in kernel32.dll.
26184 (w32_get_internal_run_time): New function.
26185
26186 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26187
26188 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26189
26190 * composite.c (update_compositions): Check the validness of
26191 compositions.
26192
26193 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26194
26195 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26196 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26197
26198 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26199 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26200
26201 * macgui.h (USE_MAC_TOOLBAR): New define.
26202
26203 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26204 Return immediately unless popup is activated.
26205
26206 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26207 background to scroll bar gap.
26208 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26209 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26210 scroll bars on frame edge. Check fringe background extension.
26211 Don't clear extended fringe background area.
26212 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26213 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26214 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26215 [USE_MAC_TOOLBAR]: New macros.
26216 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26217 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26218 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26219 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26220 [USE_MAC_TOOLBAR]: New functions.
26221 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26222 manually if previous repositioning has failed.
26223 (mac_handle_keyboard_event): Use precomputed event kind.
26224 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26225 as tool bar item click. Handle mouse movement over tool bar items.
26226
26227 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26228 toolbar_win_gravity.
26229 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26230 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26231 Add externs.
26232
26233 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26234 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26235
26236 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26237
26238 * image.c (search_image_cache): Remove unused variable.
26239
26240 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26241
26242 * xfns.c, xmenu.c: Link to xaw3d if available.
26243
26244 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26245
26246 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26247 frame_foreground and frame_background.
26248
26249 * image.c (lookup_image): Save frame foreground and background colors.
26250 (search_image_cache): Check if saved and current frame colors match.
26251
26252 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26253
26254 * regex.c (regex_compile): Remove the `regnum' counter.
26255 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26256
26257 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26258
26259 * term.c: Include intervals.h to declare Fget_text_property.
26260
26261 2007-06-10 Jason Rumney <jasonr@gnu.org>
26262
26263 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26264
26265 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26266
26267 * callint.c (Fcall_interactively):
26268 * editfns.c (Fdelete_and_extract_region):
26269 * fileio.c (Fread_file_name):
26270 * fns.c (Fmapconcat):
26271 * keyboard.c (cmd_error_internal):
26272 * keymap.c (Fkey_description):
26273 * lread.c (openp):
26274 * minibuf.c (read_minibuf):
26275 * search.c (wordify):
26276 * sunfns.c (sel_read):
26277 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26278 * xfns.c (x_default_scroll_bar_color_parameter):
26279 * xmenu.c (menu_help_callback):
26280 * xselect.c (Fx_get_atom_name):
26281 * xterm.c (x_term_init): Use empty_unibyte_string.
26282
26283 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26284
26285 * alloc.c (init_strings): Initialize canonical empty strings.
26286 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26287 canonical empty string when the requested size is 0.
26288
26289 * emacs.c (empty_unibyte_string): Rename from empty_string.
26290 (empty_multibyte_string): New canonical empty string.
26291 (syms_of_emacs): Don't initialize empty_string.
26292
26293 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26294 string, if appropriate.
26295 (empty_unibyte_string, empty_multibyte_string): New externs.
26296 (empty_string): Remove extern.
26297
26298 * lread.c (syms_of_lread): Use empty_unibyte_string.
26299
26300 2007-06-07 Jason Rumney <jasonr@gnu.org>
26301
26302 * s/ms-w32.h: Don't define HAVE_TZNAME.
26303
26304 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26305
26306 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26307
26308 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26309
26310 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26311 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26312
26313 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26314 Don't call next handler.
26315 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26316 Remove argument. Install handler to application.
26317 (set_frame_menubar): Don't change deep_p.
26318 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26319 FRAME_OUTER_TO_INNER_DIFF_Y.
26320 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26321 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26322 [HAVE_DIALOGS]: New macros.
26323 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26324 Use them.
26325 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26326
26327 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26328 init_service_handler. All callers changed. Return OSStatus value.
26329
26330 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26331 All callers changed so as not to call SetPortWindowPort.
26332 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26333 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26334 mac_draw_string_common.
26335 (mac_draw_image_string_qd): Likewise.
26336 (mac_draw_string_common): Use them. Add INLINE.
26337 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26338 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26339 GetGlobalMouse.
26340 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26341 and FRAME_OUTER_TO_INNER_DIFF_Y.
26342 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26343 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26344 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26345 repositioning window to mac_handle_window_event.
26346 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26347 saving window location to mac_handle_window_event
26348 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26349 (install_menu_target_item_handler): Remove argument in extern.
26350 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26351 Also accept command events.
26352 (do_keystroke): New function created from XTread_socket.
26353 (init_command_handler): Remove functions.
26354 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26355 and save window location by kEventWindowShowing and kEventWindowHiding
26356 handlers here. Don't call next handler for window state change and
26357 focus events.
26358 (mac_handle_application_event, mac_handle_keyboard_event)
26359 [TARGET_API_MAC_CARBON]: New functions.
26360 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26361 kEventWindowShowing and kEventWindowHiding events. Move installation
26362 of mouse, font, text input and menu target item handlers to
26363 install_application_handler.
26364 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26365 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26366 New function.
26367 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26368 Register it.
26369 (XTread_socket) [TARGET_API_MAC_CARBON]:
26370 Consolidate SendEventToEventTarget calls.
26371 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26372 Move application activation handler to mac_handle_application_event.
26373 Move keyboard handler to mac_handle_keyboard_event.
26374 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26375 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26376 init_command_handler. Call install_application_handler.
26377
26378 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26379 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26380
26381 2007-06-07 Glenn Morris <rgm@gnu.org>
26382
26383 * emacs.c (main): Use `emacs-copyright' in --version output.
26384
26385 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
26386
26387 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26388
26389 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26390
26391 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26392
26393 * macgui.h: Replace WindowPtr with WindowRef.
26394
26395 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26396 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26397 Replace ControlHandle with ControlRef.
26398 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26399
26400 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26401 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26402 Replace ControlHandle with ControlRef.
26403 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26404 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26405
26406 * macterm.h (struct scroll_bar): Rename member control_handle_low
26407 and control_handle_high to control_ref_low and control_ref_high.
26408 All uses changed.
26409 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26410 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26411 respectively. All uses changed.
26412 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26413 (install_window_handler, remove_window_handler): Replace WindowPtr
26414 with WindowRef in externs.
26415
26416 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
26417
26418 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26419
26420 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
26421
26422 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26423
26424 * frame.c (Fmouse_position, Fmouse_pixel_position):
26425 Condition on HAVE_GPM too.
26426
26427 * term.c (term_mouse_highlight): Remove unused variables.
26428 (Fterm_open_connection): Set gpm_zerobased to 1.
26429 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26430 Use zero based co-ordinates.
26431 (handle_one_term_event): Report a drag as mouse movement too.
26432
26433 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26434
26435 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
26436
26437 * image.c (search_image_cache): New function. Require background
26438 color match if background color is unspecified in the image spec.
26439 (uncache_image, lookup_image): Use it.
26440
26441 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
26442
26443 * window.c (Fshrink_window): Reflow docstring.
26444
26445 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
26446
26447 * Version 22.1 released.
26448
26449 2007-06-01 Richard Stallman <rms@gnu.org>
26450
26451 * xfns.c (x_encode_text): Add GCPRO.
26452
26453 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26454
26455 * xfns.c (x_set_name_internal): Save encoded name before
26456 x_encode_text in case string data is relocated.
26457
26458 2007-05-31 Richard Stallman <rms@gnu.org>
26459
26460 * buffer.c (syms_of_buffer): Doc fix.
26461
26462 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26463
26464 * sysdep.c (init_sys_modes): Add rather than replace with
26465 O_NONBLOCK.
26466
26467 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26468 term_mouse_moveto.
26469
26470 * termhooks.h (term_mouse_moveto): New extern.
26471
26472 * term.c (mouse_face_window): Rename...
26473 (Qmouse_face_window): ...to this.
26474 (term_show_mouse_face, term_clear_mouse_face)
26475 (term_mouse_highlight): Use Qmouse_face_window.
26476 (term_mouse_moveto): New function.
26477 (term_mouse_position): Make it work.
26478 (syms_of_term): Uncomment assignment to mouse_position_hook.
26479 Staticpro Qmouse_face_window.
26480
26481 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26482
26483 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26484 around current_column call.
26485
26486 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26487
26488 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26489 * xdisp.c (next_element_from_buffer):
26490 * window.c (delete_window):
26491 * term.c (term_mouse_highlight):
26492 * msdos.c (getdefdir):
26493 * macterm.c (mac_create_bitmap_from_bitmap_data)
26494 (init_font_name_table):
26495 * fns.c (Fsxhash):
26496 * data.c (Fmake_local_variable):
26497 * ccl.c (ccl_driver): Likewise.
26498
26499 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26500
26501 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26502 Call mac_wakeup_from_rne on window size change.
26503
26504 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26505
26506 * image.c (uncache_image): Fix typo.
26507
26508 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26509
26510 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26511
26512 2007-05-22 Richard Stallman <rms@gnu.org>
26513
26514 * xterm.c (x_connection_closed): Remove NO_RETURN.
26515
26516 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26517
26518 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26519
26520 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26521
26522 * image.c (uncache_image): New function.
26523 (Fimage_refresh): New function.
26524
26525 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26526
26527 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26528
26529 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26530
26531 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26532 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26533
26534 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26535
26536 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26537 conditional on [HAVE_GPM_H].
26538
26539 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26540
26541 * syntax.c (skip_chars): Update syntax-table only after we checked that
26542 the new location is valid.
26543
26544 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26545
26546 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26547 mac_get_window_bounds.
26548
26549 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26550
26551 * Makefile.in (LIBGPM): Allow it to be set from configure.
26552 If set then link Emacs with it.
26553
26554 * config.in: Regenerate.
26555
26556 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26557 New externs.
26558
26559 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26560 Include gpm.h.
26561 (handle_one_term_event, term_gpm): New externs.
26562
26563 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26564 and allow it to be interrupted by SIGIO.
26565
26566 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26567 (wait_reading_process_output): Wait on gpm_fd too.
26568 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26569 (add_gpm_wait_descriptor_called_flag): New variable.
26570 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26571
26572 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26573 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26574 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26575 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26576 (make_lispy_event): Add case GPM_CLICK_EVENT.
26577 (read_avail_input): Handle mouse input.
26578
26579 * term.c (write_glyphs_with_face): New function.
26580 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26581 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26582 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26583 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26584 (last_mouse_x, last_mouse_y): New variables.
26585 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26586 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26587 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26588 (Fterm_close_connection): New functions.
26589 (term_init): Initialise mouse_face_window.
26590
26591 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26592
26593 * xdisp.c (redisplay_window): If first window line is a
26594 continuation line, recompute the new window start instead of
26595 recentering.
26596
26597 2007-05-18 Glenn Morris <rgm@gnu.org>
26598
26599 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26600 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26601
26602 2007-05-17 Glenn Morris <rgm@gnu.org>
26603
26604 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26605
26606 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26607
26608 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26609 dead key repeat and up events.
26610
26611 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26612
26613 * image.c (pbm_load): Check image size for monochrome pbm.
26614
26615 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26616
26617 * xterm.c (XTread_socket): Revert last change.
26618
26619 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26620
26621 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26622
26623 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26624
26625 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26626
26627 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26628 mixup (YAILOM).
26629
26630 2007-05-07 Andreas Schwab <schwab@suse.de>
26631
26632 * keymap.c (Flookup_key): Fix typo in last change.
26633
26634 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26635
26636 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26637 mapping for unibyte strings.
26638
26639 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26640
26641 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26642 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26643
26644 2007-04-29 Richard Stallman <rms@gnu.org>
26645
26646 * insdel.c (replace_range): For undo, record insertion first.
26647
26648 2007-04-29 Andreas Schwab <schwab@suse.de>
26649
26650 * lisp.h (VECSIZE): Use OFFSETOF.
26651
26652 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26653
26654 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26655 disabled lines.
26656
26657 2007-04-28 Richard Stallman <rms@gnu.org>
26658
26659 * lread.c (read_escape): In a string, \s is always space.
26660
26661 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26662
26663 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26664
26665 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26666 submenu for menu bar items.
26667
26668 See ChangeLog.10 for earlier changes.
26669
26670 ;; Local Variables:
26671 ;; coding: utf-8
26672 ;; add-log-time-zone-rule: t
26673 ;; End:
26674
26675 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26676
26677 This file is part of GNU Emacs.
26678
26679 GNU Emacs is free software: you can redistribute it and/or modify
26680 it under the terms of the GNU General Public License as published by
26681 the Free Software Foundation, either version 3 of the License, or
26682 (at your option) any later version.
26683
26684 GNU Emacs is distributed in the hope that it will be useful,
26685 but WITHOUT ANY WARRANTY; without even the implied warranty of
26686 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26687 GNU General Public License for more details.
26688
26689 You should have received a copy of the GNU General Public License
26690 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26691
26692 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40