(w32_wnd_proc): Don't check context before initializing.
[bpt/emacs.git] / src / ChangeLog
1 2010-08-19 Jason Rumney <jasonr@gnu.org>
2
3 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4
5 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
6
7 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
8
9 2010-08-18 Eli Zaretskii <eliz@gnu.org>
10
11 * xterm.c (x_draw_bar_cursor):
12 * w32term.c (x_draw_bar_cursor): If the character under cursor is
13 R2L, draw the bar cursor on its right rather than on its left.
14
15 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
16
17 * eval.c (Fdefmacro): Only obey one declaration.
18
19 * casefiddle.c (casify_region): Setup gl_state.
20
21 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
22
23 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
24
25 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
26
27 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
28
29 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
30
31 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
32 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
33 QPRIMARY => NXPrimaryPboard.
34 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
35 NXPrimaryPboard => QPRIMARY.
36 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
37 NXSecondaryPboard = SecondarySelection.
38 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
39
40 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
41
42 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
43 is a string.
44
45 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
46
47 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
48 x_set_tool_bar_position handler.
49
50 2010-08-17 Eli Zaretskii <eliz@gnu.org>
51
52 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
53 x_set_tool_bar_position handler, needed to support changes from
54 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
55
56 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
57
58 * nsselect.m: include keyboard.h for QPRIMARY, remove its
59 declaration (Bug#6863).
60 (syms_of_nsselect): Don't intern QPRIMARY.
61
62 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
63
64 * keyboard.h (QPRIMARY): Declare (Bug#6864).
65
66 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
67
68 * keyboard.c (command_loop_1): Avoid setting selection twice,
69 since it's done in deactivate-mark as well.
70 (Vselect_active_regions): Change default to t. Replace `lazy'
71 with non-default value `only', meaning only set PRIMARY for
72 temporarily active regions.
73
74 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
75 select-active-regions.
76
77 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
78
79 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
80 isn't a string.
81
82 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
83
84 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
85
86 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
87
88 * keyboard.c (parse_tool_bar_item): malloc buf.
89 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
90 new_lbl (Bug#6855).
91
92 2010-08-14 Eli Zaretskii <eliz@gnu.org>
93
94 * xterm.c (x_draw_stretch_glyph_string):
95 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
96 the cursor on the right edge of the stretch glyph.
97
98 * xdisp.c (window_box_right_offset, window_box_right):
99 Fix commentary.
100
101 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
102 direction when point is inside a run of whitespace characters.
103
104 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
105
106 2010-08-14 Jason Rumney <jasonr@gnu.org>
107
108 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
109
110 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
111
112 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
113
114 2010-08-13 Jason Rumney <jasonr@gnu.org>
115
116 * w32menu.c (simple_dialog_show): Use unicode message box if available.
117 (MessageBoxW_Proc): New function typedef.
118 (unicode-message-box): New function pointer.
119 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
120
121 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
122
123 * frame.h (Qtool_bar_position): Declare.
124
125 * xfns.c (Fx_create_frame): Call x_default_parameter for
126 Qtool_bar_position.
127
128 2010-08-13 Eli Zaretskii <eliz@gnu.org>
129
130 * unexcoff.c: Remove the parts used when "emacs" is not defined.
131 (report_error, report_error_1): Ditto.
132 (write_segment): Remove "#if 0" unused code.
133 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
134 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
135 (start_of_text): Remove unused function (was used only if NO_REMAP
136 was NOT defined).
137
138 * msdos.c (IT_set_face): Fix format string to match argument
139 types.
140 (IT_write_glyphs, IT_note_mode_line_highlight)
141 (IT_set_frame_parameters): Remove unused variables.
142 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
143 (IT_set_terminal_modes): Disambiguate expression in if clause.
144 (Fmsdos_remember_default_colors): Return Qnil.
145 (IT_set_frame_parameters): Add parens to disambiguate boolean
146 expression for logging the cursor type to termscript.
147 (keyboard_layout_list, keypad_translate_map)
148 (grey_key_translate_map): Add braces in inner initializers.
149 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
150 (dos_rawgetc): Remove unused label.
151 (XMenuActivate): Add braces to remove ambiguous `else'.
152 (dos_ttraw): Always return a value.
153 (spawnve): Declare.
154 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
155
156 * dosfns.h (x_set_title): Declare.
157
158 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
159 Remove unused variables.
160
161 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
162 variables.
163 (init_dosfns): Declare get_lim_data.
164 (system_process_attributes): Declare Fget_internal_run_time.
165
166 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
167 list to be consistent with menu.h.
168
169 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
170 warnings due to mixing of "char *" and "const char *".
171
172 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
173
174 Introduce a new comment style "c" flag.
175 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
176 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
177 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
178 (syntax_prefix_flag_p): New function.
179 (Fstring_to_syntax): Understand new "c" flag.
180 (Finternal_describe_syntax_value): Recognize new flag; use the
181 SYNTAX_FLAGS_* macros.
182 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
183 comment style to accomodate the new styles.
184 (back_comment, forw_comment, Fforward_comment, scan_lists)
185 (scan_sexps_forward): Update code to obey the new comment style flag.
186
187 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
188
189 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
190
191 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
192
193 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
194 first.
195 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
196
197 * gtkutil.h (xg_check_special_colors): Declare.
198
199 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
200 (xg_create_frame_widgets): Connect theme name changes to
201 style_changed_cb.
202
203 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
204 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
205 (x_term_init): Use char[] display_opt and name_opt instead of
206 string literal. file is const char*.
207
208 * xsmfns.c (NOSPLASH_OPT): Change to char[].
209 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
210 props. Free them at the end.
211
212 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
213
214 * xrdb.c (get_system_app): Make path const and use char *p for
215 non-const char.
216
217 * xmenu.c (Fx_popup_dialog): error_name is const char*.
218 (xmenu_show): error parameter is const char **. pane_string is const
219 char *.
220 (button_names): Is const char *.
221 (xdialog_show): error_name and pane_string is const.
222
223 * process.h (synch_process_death): Is const char*.
224
225 * w32menu.c (w32_menu_show):
226 * nsmenu.m (ns_menu_show): error parameter is const char **.
227
228 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
229 is const char **.
230
231 * menu.c (Fx_popup_menu): error_name is const.
232
233 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
234 with unsigned char and XtPointer with void *.
235
236 * gtkutil.h: Replace widget_value with struct _widget_value.
237 (enum button_type, struct _widget_value): Remove and use the one from
238 keyboard.h.
239
240 * gtkutil.c (get_utf8_string): Always return an allocated string.
241 Parameter is const.
242 (create_dialog, xg_create_one_menuitem, create_menus)
243 (xg_item_label_same_p, xg_update_menu_item): Free result from
244 get_utf8_string.
245 (xg_separator_p, xg_item_label_same_p): label is const.
246
247 * font.h (font_open_by_name): Make name const.
248
249 * font.c (font_open_by_name): Make name const.
250
251 * floatfns.c (matherr): Use a const char* variable for x->name.
252
253 * emacs.c (main): Pass char[] to putenv instead of literal.
254
255 * callproc.c (synch_process_death): Make const.
256 (Fcall_process): Make signame const.
257
258 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
259 (addDisplayItemWithImage): Use const char*.
260
261 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
262 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
263
264 * nsfont.m (ns_descriptor_to_entity): Use const char*.
265
266 * keyboard.h (_widget_value): name, value and key are const char*.
267
268 * unexmacosx.c (unexec_error): Use const char *.
269
270 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
271
272 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
273 (font_parse_name, font_open_by_name):
274 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
275 (font_parse_name, font_open_by_name): Remove const.
276
277 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
278
279 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
280 definition.
281
282 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
283 * m/amdx86-64.h: Likewise.
284 * m/arm.h: Likewise.
285 * m/hp800.h: Likewise.
286 * m/ia64.h: Likewise.
287 * m/ibmrs6000.h: Likewise.
288 * m/ibms390.h: Likewise.
289 * m/intel386.h: Likewise.
290 * m/iris4d.h: Likewise.
291 * m/m68k.h: Likewise.
292 * m/macppc.h: Likewise.
293 * m/mips.h: Likewise.
294 * m/sh3.h: Likewise.
295 * m/sparc.h: Likewise.
296 * m/template.h: Likewise.
297 * m/vax.h: Likewise.
298 * m/xtensa.h: Likewise.
299 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
300 WORDS_BIG_ENDIAN.
301 * lisp.h: Likewise.
302 * md5.c: Likewise.
303 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
304
305 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
306
307 Use const char* instead of char*.
308 Reduce the number of warnings with -Wwrite-strings.
309 * xrdb.c (get_environ_db, get_system_name):
310 * unexelf.c (find_section):
311 * term.c (string_cost, string_cost_one_line, per_line_cost)
312 (get_named_tty, init_tty):
313 * sysdep.c (sys_subshell):
314 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
315 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
316 * search.c (Freplace_match):
317 * process.c (Fmake_network_process, send_process, init_process):
318 * lread.c (Fload, init_lread):
319 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
320 * keyboard.c (parse_tool_bar_item, struct event_head):
321 * gtkutil.h (xg_get_font_name):
322 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
323 (make_widget_for_menu_item, make_menu_item, create_menus)
324 (xg_make_tool_item):
325 * font.c (parse_matrix, font_parse_name):
326 * floatfns.c (rounding_driver, float_error_fn_name):
327 * filelock.c (get_boot_time_1, lock_file_1):
328 * fileio.c (barf_or_query_if_file_exists, check_writable):
329 * editfns.c (get_system_name, get_operating_system_release)
330 (Fencode_time, Fset_time_zone_rule):
331 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
332 * buffer.c (defvar_per_buffer): Use const.
333
334 2010-08-08 Kenichi Handa <handa@m17n.org>
335
336 * charset.c: Include <stdlib.h>
337 (struct charset_sort_data): New struct.
338 (charset_compare): New function.
339 (Fsort_charsets): New funciton.
340 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
341
342 * coding.c (decode_coding_iso_2022): Fix checking of dimension
343 number in CTEXT extended segment.
344
345 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
346
347 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
348 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
349
350 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
351
352 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
353 (Fhash_table_size): Fix typos in docstrings.
354 (Fmake_hash_table): Doc fix.
355
356 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
357
358 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
359 Doc fix (bug#5625).
360
361 2010-08-08 Ken Brown <kbrown@cornell.edu>
362
363 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
364 the MSDOS definition.
365
366 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
367
368 Use const char* instead of char*.
369 * xterm.c (x_create_toolkit_scroll_bar):
370 * xfont.c (xfont_list_pattern):
371 * xfns.c (x_default_scroll_bar_color_parameter)
372 (xic_create_fontsetname, x_default_font_parameter)
373 (x_screen_planes):
374 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
375 (store_mode_line_string, decode_mode_spec, display_string):
376 * menu.c (digest_single_submenu):
377 * keymap.h (initial_define_key, initial_define_lispy_key):
378 * keymap.c (initial_define_key, initial_define_lispy_key):
379 * image.c (image_error, image_keyword):
380 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
381 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
382 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
383 (ftfont_list, ftfont_match):
384 * frame.c (frame_parm_table):
385 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
386 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
387 (font_add_log, font_deferred_log):
388 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
389 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
390 (font_add_log, font_deferred_log):
391 * emacs.c (argmatch):
392 * dispextern.h (struct it):
393 * coding.c (ENCODE_DESIGNATION):
394 * charset.c (define_charset_internal): Use const.
395
396 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
397
398 * xrdb.c: Remove include guard.
399 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
400 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
401 realloc->xrealloc instead of using #defines.
402
403 2010-08-08 Eli Zaretskii <eliz@gnu.org>
404
405 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
406 * editfns.c (Fline_beginning_position, Fline_end_position):
407 State in the doc strings that start and end of line are in the
408 logical order.
409
410 * xdisp.c (display_line): Move the handling of overlay arrow after
411 the call to find_row_edges. (Bug#6699)
412
413 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
414
415 * keyboard.c (command_loop_1):
416 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
417
418 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
419
420 * insdel.c (prepare_to_modify_buffer): Save active region text to
421 Vsaved_region_selection.
422
423 * xselect.c (QPRIMARY): Move to keyboard.c.
424
425 * keyboard.c (Vselect_active_regions): Move from simple.el.
426 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
427 (command_loop_1): Set window selection prior to deactivating the mark.
428
429 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
430
431 * alloc.c (lisp_malloc):
432 * buffer.c (set_buffer_internal, set_buffer_internal_1):
433 * charset.h (emacs_mule_charset):
434 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
435 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
436 (bitch_at_user):
437 * lisp.h (Fcheck_coding_system, Fget_text_property)
438 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
439 Remove duplicate declarations.
440
441 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
442
443 * process.c: Simplify include logic.
444
445 * keyboard.h (quit_char): Add declaration.
446 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
447 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
448 Add declarations.
449 * sysdep.c:
450 * w32.c: Remove the above declarations.
451
452 Remove extern declarations in .c files, .h files have them.
453 * xterm.c:
454 * xdisp.c:
455 * msdos.c:
456 * image.c:
457 * gtkutil.c:
458 * fileio.c:
459 * eval.c: Remove declarations.
460
461 * frame.c (frame_params): Make const.
462
463 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
464
465 * emacs.c (emacs_copyright, emacs_version): Make static.
466 (Vinitial_window_system, Vauto_save_list_file_name)
467 (Vinhibit_redisplay): Remove declarations.
468 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
469 for AIX.
470
471 Use const for some arrays and functions.
472 * xterm.h (xg_set_icon_from_xpm_data):
473 * xfns.c (xg_set_icon_from_xpm_data):
474 * term.c (fkeys):
475 * keyboard.c (lispy_accent_keys, lispy_function_keys)
476 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
477 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
478 (frame.c frame_parms):
479 * emacs-icon.h (gnu_xpm_bits):
480 * callint.c (callint_argfuns): Use const.
481
482 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
483
484 * sysdep.c: Move include term.h last of includes (Bug#6812).
485
486 2010-08-06 Eli Zaretskii <eliz@gnu.org>
487
488 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
489
490 * msdos.c (IT_display_cursor): Log cursor position on termscript.
491
492 * .gdbinit (pgx): Display the avoid_cursor_p flag.
493
494 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
495
496 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
497
498 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
499
500 * xterm.h (x_get_focus_frame): Declare.
501
502 * keyboard.h (poll_for_input_1): Unconditionally declare.
503
504 * nsterm.h (x_set_menu_bar_lines): Declare.
505
506 * window.c: Don't include menu.h, it depends on lots of other .h-files.
507
508 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
509
510 * window.c: Include menu.h.
511
512 * unexmacosx.c (print_region_list, print_regions)
513 (build_region_list, find_emacs_zone_regions)
514 (unexec_regions_merge, read_load_commands, dump_it)
515 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
516
517 * term.c: Check HAVE_SYS_IOCTL_H.
518
519 * sysdep.c: Check HAVE_TERM_H.
520
521 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
522
523 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
524 (ns_ring_bell, ns_defined_color, hide_hourglass)
525 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
526 Convert to ANSI C prototypes.
527 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
528 before code.
529
530 * nsterm.h : Include sysselect.h.
531 (x_sync, x_get_focus_frame, x_set_mouse_position)
532 (x_set_mouse_pixel_position, x_make_frame_visible)
533 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
534 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
535 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
536 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
537 Declare.
538
539 * nsmenu.m (popup_activated, name_is_separator)
540 (syms_of_nsmenu): Convert to ANSI C prototypes.
541 (runMenuAt): Prototypes and move declarations before code.
542
543 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
544
545 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
546 prototypes.
547
548 * nsfns.m (have_menus_p, ns_display_info_for_name)
549 (x_set_cursor_type, ns_appkit_version_str)
550 (ns_appkit_version_int, ns_do_applescript)
551 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
552 (syms_of_nsfns): Convert to ANSI C prototypes.
553
554 * menu.h (x_set_menu_bar_line): Declare.
555 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
556
557 * lisp.h (fmod_float): Declare.
558
559 * image.c (xpm_scan, xpm_make_color_table_v)
560 (xpm_put_color_table_v, xpm_get_color_table_v)
561 (xpm_make_color_table_h, xpm_put_color_table_h)
562 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
563 (xpm_load): Convert to ANSI C prototypes.
564
565 * emacs.c: Include nsterm.h if HAVE_NS.
566
567 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
568
569 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
570
571 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
572 subprocesses, only MSDOS does not define HAVE_SOCKETS.
573 (socket_options): Use const char* for name.
574
575 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
576
577 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
578
579 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
580 Don't declare xmalloc_widget_value and digest_single_submenu.
581
582 * w32font.c (Qlatin): Remove declaration.
583
584 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
585
586 * dired.c (compile_pattern): Restore declaration.
587
588 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
589
590 Remove extern declarations in .c files, .h files have them.
591 * data.c:
592 * dired.c:
593 * editfns.c:
594 * filelock.c:
595 * fns.c:
596 * font.c:
597 * fontset.c:
598 * frame.c:
599 * fringe.c:
600 * ftfont.c:
601 * gtkutil.c:
602 * indent.c:
603 * keyboard.c:
604 * keymap.c:
605 * lread.c:
606 * menu.c:
607 * print.c:
608 * search.c:
609 * sound.c:
610 * window.c:
611 * xdisp.c:
612 * xfaces.c:
613 * xfns.c:
614 * xfont.c:
615 * xftfont.c:
616 * xmenu.c:
617 * xterm.c: Remove declarations.
618
619 Cleanup syssignal.h.
620 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
621 (main_thread): Move down to remove #ifdef.
622 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
623 Remove conditional definition following unconditional ones.
624
625 * lisp.h: Remove HAVE_SHM code, unused.
626 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
627 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
628 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
629 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
630 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
631 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
632 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
633 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
634 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
635 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
636 (Qwindow_scroll_functions, Vafter_load_alist)
637 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
638 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
639 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
640 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
641 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
642 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
643 (initial_argv, last_nonmenu_event, load_in_progress)
644 (noninteractive_need_newline, scroll_margin): Add declarations.
645
646 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
647 declarations, menu.h has them.
648 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
649 (Vinput_method_function, Qinput_method_function)
650 (Qevent_symbol_element_mask, last_event_timestamp):
651 * dispextern.h (Voverflow_newline_into_fringe):
652 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
653 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
654 (syms_of_w32font, syms_of_nsfont):
655 * fontset.h (find_font_encoding, Qlatin):
656 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
657 (Vtool_bar_mode, set_frame_menubar):
658 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
659 * xterm.h (Qx_gtk_map_stock):
660 * keymap.h (meta_prefix_char): Add declarations.
661
662 * term.c: Remove dead code.
663
664 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
665 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
666 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
667 which is what was there before BSD_PGRPS was removed.
668
669 2010-08-05 Eli Zaretskii <eliz@gnu.org>
670
671 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
672
673 * unexcoff.c: Renamed from unexec.c.
674
675 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
676
677 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
678
679 2010-08-03 Johan Bockgård <bojohan@gnu.org>
680
681 * data.c (Flocal_variable_p): Handle variable aliases correctly.
682 (Bug#6744)
683
684 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
685
686 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
687 to TRUE if depth of screen is < 16.
688
689 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
690 USE_GTK_TOOLTIP.
691 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
692 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
693 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
694 USE_GTK_TOOLTIP.
695 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
696
697 * xterm.h (USE_GTK_TOOLTIP): New define.
698 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
699
700 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
701 to Control-D (Bug#6771).
702
703 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
704
705 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
706 Wording by Drew Adams <drew.adams@oracle.com>.
707
708 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
709
710 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
711 ttip_lbl.
712
713 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
714 calling gtk_widget_queue_draw.
715 (x_free_frame_resources): Call xg_free_frame_widgets.
716
717 * xfns.c (x_gtk_use_system_tooltips): New variable.
718 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
719 new gtkutil tooltip functions to show the tooltip.
720 (Fx_hide_tip): Call xg_hide_tooltip.
721 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
722
723 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
724 (xg_show_tooltip, xg_hide_tooltip): Declare.
725
726 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
727 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
728 New functions.
729 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
730 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
731 Remove code that is commented out.
732
733 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
734
735 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
736
737 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
738
739 * xselect.c (x_own_selection): Use list4.
740
741 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
742
743 * buffer.c (Qwindow): Do not define, already defined in data.c.
744 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
745
746 2010-07-29 Chad Brown <yandros@mit.edu>
747
748 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
749 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
750 * config.in: Undef HAVE_DIRENT_H.
751 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
752 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
753
754 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
755
756 Rename s/usg5-4.h -> s/usg5-4-common.h.
757 * s/usg5-4.h: Rename file to ...
758 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
759 * s/unixware.h:
760 * s/sol2-6.h:
761 * s/irix6-5.h: Update includes accordingly.
762
763 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
764
765 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
766
767 * xterm.h (struct x_output): Add toolbar_top_height,
768 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
769 Remove toolbar_height.
770 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
771 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
772 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
773 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
774
775 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
776
777 * xfns.c (x_set_tool_bar_position): New function.
778 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
779 (x_frame_parm_handlers): Add x_set_tool_bar_position.
780 (syms_of_xfns): If USE_GTK, provide move-toolbar.
781
782 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
783 and FRAME_TOOLBAR_LEFT_WIDTH.
784
785 * gtkutil.h (xg_change_toolbar_position): Declare.
786
787 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
788 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
789 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
790 (xg_create_frame_widgets): Create a hobox for placing widgets
791 vertically. Use gtk_box_pack_start.
792 (xg_height_or_width_changed): Renamed from xg_height_changed.
793 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
794 (xg_update_frame_menubar, free_frame_menubar): Change to
795 xg_height_or_width_changed.
796 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
797 size correctly. Remove hardcoded 4, instead use handlebox size -
798 toolbar size.
799 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
800 size correctly. Use handlebox size + toolbar size as additional size.
801 (xg_pack_tool_bar): POS is a new parameter.
802 Set orientation of tool bar based on pos.
803 Only make handlebox_widget if NULL.
804 Check if tool bar goes to vbox or hbox depending on pos.
805 (xg_update_tool_bar_sizes): New function.
806 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
807 height, call xg_update_tool_bar_sizes instead.
808 (free_frame_tool_bar): Remove from hbox or vbox depending on
809 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
810 (xg_change_toolbar_position): New function.
811
812 * frame.h (struct frame): Add tool_bar_position.
813 (Qbottom): Declare.
814
815 * frame.c (Qtool_bar_position): New variable.
816 (make_frame): Set tool_bar_position to Qtop.
817 (frame_parms): Add tool-bar-position.
818 (x_report_frame_params): Store tool_bar_position.
819 (x_set_fringe_width): Reset wm size hint after fringe changes.
820
821 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
822
823 Make lisp_time_argument declaration work on all systems.
824 * lisp.h (lisp_time_argument): Move declaration ...
825 * systime.h (lisp_time_argument): ... here
826 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
827
828 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
829
830 * vm-limit.c (POINTER): Add typedef for it.
831 (start_of_data): Change return type from POINTER to char *.
832
833 * frame.h (Qtty_color_mode): Move declaration out of ifdef
834 HAVE_WINDOW_SYSTEM.
835
836 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
837
838 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
839 Remove reference to __osf__, unused.
840
841 * mem-limits.h: Remove duplicated includes.
842 (NULL): Remove definition, unused.
843 (POINTER): Remove definition.
844 (start_of_data): Use char* in prototype, as the function
845 definition does.
846
847 Remove extern declarations from .c files, and them to .h files.
848 * keyboard.h (Qhelp_echo, waiting_for_input)
849 (input_available_clear_time, ignore_mouse_drag_p)
850 (Vdouble_click_time, real_this_command, Vthis_original_command):
851 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
852 (Voverriding_local_map_menu_flag):
853 * lisp.h (Qinteractive_form, use_file_dialog)
854 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
855 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
856 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
857 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
858 (Qfunction, debug_on_next_call, Qfield)
859 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
860 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
861 (Qfile_directory_p, Qinsert_file_contents)
862 (Qcompletion_ignore_case, Qcompletion_ignore_case)
863 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
864 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
865 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
866 (Qminibuffer_prompt)
867 (Vtemporary_file_directory,char_ins_del_vector, Qface):
868 * xterm.h (gray_bitmap_width, gray_bitmap_height)
869 (gray_bitmap_bits, xic_create_fontsetname):
870 * coding.h (Vtranslation_table_for_input): Add extern declarations.
871
872 * xsmfns.c (Vuser_login_name):
873 * xrdb.c (Vdouble_click_time):
874 * xfaces.c (xic_create_fontsetname):
875 * w32select.c (waiting_for_input):
876 * print.c (minibuffer_auto_raise):
877 * msdos.c (Qhelp_echo):
878 * macros.c (real_this_command):
879 * keymap.c (Voverriding_local_map):
880 * xterm.c (poll_for_input_1, gray_bitmap_width)
881 (gray_bitmap_height, gray_bitmap_bits;
882 * xmenu.c ( Voverriding_local_map)
883 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
884 (use_file_dialog, Xt_app_con):
885 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
886 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
887 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
888 (Qtool_bar_lines, ignore_mouse_drag_p):
889 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
890 (Qrear_nonsticky, nconc2):
891 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
892 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
893 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
894 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
895 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
896 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
897 (gc_in_progress):
898 * doc.c (Voverriding_local_map, Qremap):
899 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
900 (Vcompletion_regexp_list):
901 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
902 (Qcompletion_ignore_case):
903 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
904 (Vhistory_length, Vthis_original_command, real_this_command)
905 (Qface, Qminibuffer_prompt, history_delete_duplicates):
906 * image.c (Qrisky_local_variable):
907 * fontset.c (QCname):
908 * fns.c (minibuffer_auto_raise, QCname):
909 * dispnew.c (char_ins_del_cost):
910 * composite.c (font_fill_lglyph_metrics):
911 * cmds.c (Qface, Vtranslation_table_for_input):
912 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
913 * ccl.c (charset_unicode):
914 * callproc.c (Vtemporary_file_directory):
915 * buffer.c (emacs_strerror): Remove extern declarations.
916
917 * data.c (Qwindow): Make non-static, used from other files too.
918 * frame.c (validate_x_resource_name): Remove shadow definition for i.
919
920 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
921 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
922 * s/usg5-4.h (COFF):
923 * s/template.h:
924 * s/msdos.h (COFF, NO_REMAP):
925 * s/ms-w32.h (NO_REMAP):
926 * s/hpux10-20.h (NO_REMAP):
927 * m/sparc.h (SEGMENT_MASK):
928 * m/m68k.h (NO_REMAP):
929 * m/intel386.h (SEGMENT_MASK):
930 * m/arm.h (NO_REMAP):
931 * m/alpha.h (COFF):
932 * m/template.h: Remove references to unused defines.
933
934 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
935
936 * xsettings.c (Ftool_bar_get_system_style): Also check for
937 Qtext_image_horiz.
938
939 * xdisp.c (Qtext_image_horiz): Define.
940 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
941 to documentation of tool-bar-style.
942
943 * lisp.h (Qtext_image_horiz): Declare.
944
945 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
946 style text_image_horiz.
947
948 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
949
950 * emacs.c (Fkill_emacs): Remove return statement.
951
952 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
953 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
954 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
955 local extern declarations.
956
957 * xmenu.c: Do not included lwlib.h, not needed.
958
959 * m/iris4d.h (XUINT, XSET): Remove, not needed.
960
961 * process.c: Move definitions earlier to minimize #ifdefs.
962
963 * xterm.h (x_get_customization_string, x_load_resources)
964 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
965 (x_check_errors, x_property_data_to_lisp, defined_color)
966 (xic_set_xfontset, x_defined_color): Use const.
967
968 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
969 (x_text_icon, x_check_errors, x_connection_closed): Use const.
970
971 * xselect.c (selection_data_to_lisp_data)
972 (x_property_data_to_lisp):
973 * xrdb.c (x_get_string_resource, file_p)
974 (x_get_customization_string, magic_file_p, search_magic_path)
975 (get_system_app, get_user_app, x_load_resources, x_get_resource)
976 (x_get_string_resource): Use const.
977
978 * xfns.c: Include xlwmenu.h when USE_LUCID.
979 (x_defined_color, xic_set_xfontset): Use const.
980 (Fx_hide_tip): Remove local extern declaration.
981
982 * xfaces.c (Qmouse_face): Remove declaration.
983 (face_color_gray_p, tty_defined_color, defined_color)
984 (face_color_gray_p, face_color_supported_p): Add const.
985
986 * xdisp.c (do_mouse_tracking): Remove declaration.
987 (add_to_log): Use const.
988
989 * minibuf.c (Qmouse_face): Remove declaration.
990
991 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
992
993 * keyboard.h (do_mouse_tracking): Add declaration.
994
995 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
996 (QCdata, QCtype, Qcenter): Remove declarations.
997
998 * frame.c (x_get_resource_string, x_get_string_resource)
999 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1000 (x_default_parameter): Use const.
1001
1002 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1003 (QCheight, QCsize, QCname): Remove declarations.
1004
1005 * emacs.c (main): Remove local extern declaration.
1006
1007 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1008 declarations.
1009
1010 * dispnew.c: Remove duplicate #include <unistd.h>.
1011 (update_window, update_frame_1, init_display): Remove local extern
1012 declarations.
1013
1014 * dispextern.h (add_to_log): Remove declaration.
1015 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1016 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1017
1018 * dired.c (scmp): Add const.
1019 (directory_files_internal): Remove local extern declaration.
1020
1021 * data.c (Finteractive_form): Use const.
1022
1023 * composite.c (syms_of_composite): Remove local extern declarations.
1024
1025 * charset.c (add_to_log): Remove declaration.
1026
1027 * character.c (strwidth, parse_str_to_multibyte): Add const.
1028
1029 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1030
1031 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1032
1033 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1034 (Lisp_Subr): Make doc and intspec constant.
1035 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1036 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1037 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1038 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1039 (display_arg): Add declarations.
1040
1041 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1042
1043 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1044
1045 * window.c (Fwindow_height): Doc fix (bug#6518).
1046
1047 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
1048
1049 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1050
1051 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1052
1053 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1054 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1055 functions.
1056
1057 * frame.h (Qtty_color_mode): Add declaration.
1058
1059 * lisp.h (Ftop_level, Fexit_recursive_edit)
1060 (Fabort_recursive_edit): Mark as NO_RETURN.
1061
1062 2010-07-26 Kenichi Handa <handa@m17n.org>
1063
1064 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1065 number of glyphs gets smaller than the original length. (Bug#6621)
1066
1067 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
1068
1069 * lread.c (unreadpure, mapatoms_1): Make static.
1070
1071 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1072
1073 * terminfo.c (tparam): Fix prototype of tparm.
1074
1075 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1076
1077 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1078 find start of text segment.
1079 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1080 is defined.
1081
1082 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1083
1084 2010-07-25 Ken Brown <kbrown@cornell.edu>
1085
1086 * vm-limit.c (check_memory_limits): Fix previous change;
1087 accidentally reverted an earlier change.
1088
1089 2010-07-25 Ken Brown <kbrown@cornell.edu>
1090
1091 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1092 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1093
1094 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1095
1096 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1097 * dired.c (opendir, readdir): Fix prototypes.
1098 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1099 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1100 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1101 (telldir): Remove declaration.
1102 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1103 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1104 * syssignal.h (strsignal): Fix prototype.
1105 * term.c (tparam): Fix prototype.
1106 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1107 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1108 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1109 and __morecore.
1110 * w32gui.h (XParseGeometry): Fix prototype.
1111 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1112 * w32term.c (my_set_focus): Declare inside #if 0.
1113 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1114 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1115 (drain_message_queue, get_next_msg, post_msg, parse_button)
1116 (ClipboardSequence_Proc): Fix prototypes.
1117 (wait_for_sync): Remove declaration.
1118
1119 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
1120
1121 * w32fns.c (w32_to_x_color): Remove, unused.
1122
1123 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1124
1125 * lisp.h: Remove leftover P_.
1126
1127 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1128
1129 * ecrt0.c, unexalpha.c: Remove files, unused.
1130
1131 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1132
1133 * cmds.c (internal_self_insert): Make static.
1134 * lisp.h (internal_self_insert): Remove declaration.
1135
1136 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1137
1138 * alloc.c (free_float):
1139 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1140 * frame.c (delete_frame_handler):
1141 * ralloc.c (reorder_bloc):
1142 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1143 Remove unused static functions.
1144
1145 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1146 it is called only from NS code.
1147
1148 * w32term.c (my_set_focus): #ifdef away; it is called only from
1149 "#ifdef 0" code.
1150
1151 * w32fns.c (x_edge_detection):
1152 * xfaces.c (may_use_scalable_font_p):
1153 Remove obsolete static declarations.
1154
1155 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1156
1157 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1158 (emacs_blocked_realloc, uninterrupt_malloc):
1159 * fringe.c (w32_reset_fringes):
1160 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1161 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1162 * sound.c (be2hs, do_play_sound):
1163 * vm-limit.c (get_lim_data, ret_lim_data):
1164 * w32term.c (x_free_frame_resources):
1165 * xfaces.c (x_create_gc, x_free_gc):
1166 Convert definitions to standard C.
1167
1168 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1169
1170 * eval.c (Feval, Ffuncall): Use the new names.
1171
1172 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1173 (DEFUN): Add braces around the union initialisation and use ## to
1174 specify the right union alternative and avoid a cast.
1175
1176 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1177
1178 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1179
1180 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1181
1182 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1183
1184 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1185
1186 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1187 is related to the menu bar (Bug#6499).
1188 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1189
1190 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1191
1192 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1193
1194 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1195
1196 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1197 i.e. don't put back ButtonRelease (Bug#6608).
1198
1199 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1200 instead of Window. Call xg_event_is_for_menubar when
1201 USE_GTK (Bug#6499).
1202
1203 * gtkutil.h (xg_event_is_for_menubar): Declare.
1204
1205 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1206
1207 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1208
1209 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1210 when it's the same as the old foreground. (Bug#6609)
1211
1212 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1213
1214 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1215 widget is non-null (Bug#6645).
1216
1217 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1218
1219 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1220 Convert old-style definition.
1221
1222 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1223 timestamp argument.
1224
1225 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1226
1227 * fringe.c (update_window_fringes): Restore mistakenly reverted
1228 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1229
1230 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1231
1232 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1233 (SET_SAVED_KEY_EVENT): Remove (not used).
1234 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1235 remove size parameter.
1236 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1237 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1238 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1239 ButtonRelease.
1240 (x_set_window_size_1): scroll_bar_actual_width is always
1241 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1242
1243 * xdisp.c (pending_menu_activation): Remove extern declaration.
1244 (prepare_menu_bars): Remove setting of pending_menu_activation.
1245
1246 * xmenu.c (pending_menu_activation): Remove.
1247 (x_activate_menubar): Set popup_activated_flag for Xt also.
1248 Remove setting of pending_menu_activation.
1249 (set_frame_menubar): Remove check of pending_menu_activation.
1250 Declare menubar_size before code. Correct spelling in comment.
1251
1252 2010-07-14 Kenichi Handa <handa@m17n.org>
1253
1254 * font.c (font_open_entity): Cancel previous change.
1255 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1256
1257 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1258
1259 Remove subprocesses #ifdefs.
1260 * process.c <inhibit_sentinels>: Move to the common part.
1261 (Fwaiting_for_user_input_p): Move to the common part; return nil
1262 if async subprocesses aren't supported.
1263 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1264 MS-DOS. Remove "#ifdef subprocesses".
1265 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1266 (gettimeofday): Remove "#ifdef subprocesses".
1267 (wait_without_blocking): Remove function.
1268 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1269 Remove "#ifdef subprocesses".
1270 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1271 compiled on MS-DOS.
1272 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1273 wait_for_termination on MS-DOS.
1274 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1275 initialization of inhibit_sentinels.
1276 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1277 subprocesses" conditional.
1278 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1279 wait_for_termination, since `buffer' cannot be an integer when
1280 async subprocesses are not supported
1281 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1282 for ifdefing away the call to Fprocess_status.
1283
1284 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1285 away the entire body of the function.
1286
1287 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1288
1289 Remove subprocesses #ifdefs from term.c.
1290 * process.c (add_keyboard_wait_descriptor)
1291 (delete_keyboard_wait_descriptor): Move to common section, do
1292 nothing when subprocesses is not defined.
1293 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1294 Remove subprocesses #ifdefs.
1295
1296 Convert maybe_fatal to standard C.
1297 * lisp.h (verror): Declare.
1298 * eval.c (verror): New function containing the code from ...
1299 (error): ... this. Call verror.
1300 * term.c (vfatal): New function containing the code from ...
1301 (fatal): ... this. Call vfatal.
1302 (maybe_fatal): Convert to standard C, use variable number of
1303 arguments. Declare as non-return.
1304 (init_tty): Fix maybe_fatal call.
1305
1306 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1307
1308 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1309 (_scroll_bar_note_movement): Convert definitions to standard C.
1310 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1311 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1312
1313 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1314
1315 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1316 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1317 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1318 (xaw_jump_callback, xaw_scroll_callback)
1319 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1320 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1321 definitions to standard C.
1322 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1323 (popup_activate_callback, popup_deactivate_callback)
1324 (menu_highlight_callback, menubar_selection_callback)
1325 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1326 (free_frame_menubar, popup_selection_callback, as)
1327 (create_and_show_popup_menu, dialog_selection_callback)
1328 (create_and_show_dialog):
1329 * xfns.c (hack_wm_protocols, x_window):
1330 * xfaces.c (x_update_menu_appearance):
1331 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1332 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1333 (set_frame_size, update_wm_hints, setup_frame_gcs)
1334 (update_various_frame_slots, update_from_various_frame_slots)
1335 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1336 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1337 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1338
1339 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1340
1341 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
1342
1343 2010-07-12 Eli Zaretskii <eliz@gnu.org>
1344
1345 * process.c (setup_process_coding_systems): Move to the part
1346 shared by non-subprocesses systems, and make its body empty when
1347 subprocesses is not defined.
1348 (close_process_descs): Move to the part shared by non-subprocesses
1349 systems.
1350 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1351 ANSI C.
1352
1353 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1354
1355 * editfns.c (transpose_markers): Convert old-style definition.
1356 * emacs.c (abort, shut_down_emacs, fixup_locale)
1357 (synchronize_system_time_locale)
1358 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1359 * floatfns.c (extract_float, matherr, init_floatfns)
1360 (syms_of_floatfns): Likewise.
1361 * fns.c (make_hash_table): Likewise.
1362 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1363 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1364 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1365 (ftfont_variation_glyphs): Likewise.
1366 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1367 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1368 * lread.c (read_filtered_event): Likewise.
1369 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1370 * process.c (wait_reading_process_output): Likewise.
1371 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1372 * search.c (search_buffer, boyer_moore): Likewise.
1373 * syntax.c (scan_sexps_forward): Likewise.
1374 * xdisp.c (try_scrolling): Likewise.
1375 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1376 (face_at_string_position): Likewise.
1377 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1378 * xselect.c (x_get_window_property, receive_incremental_selection)
1379 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1380 Likewise.
1381 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1382
1383 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1384
1385 * callproc.c (child_setup): Remove subprocesses conditional.
1386 Remove code dealing with SET_EMACS_PRIORITY, unused.
1387
1388 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
1389 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1390
1391 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1392 (__do_global_dtors, __main): Use void in definition.
1393 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1394 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1395 the only users from ...
1396 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1397 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1398 (HAVE_VOLATILE): Remove, unused.
1399
1400 Convert more function definitions to standard C.
1401 * xdisp.c (window_box_edges, handle_single_display_spec)
1402 (display_string): Convert definition to standard C.
1403 * scroll.c (do_direct_scrolling, scrolling_1):
1404 * dispnew.c (allocate_matrices_for_frame_redisplay)
1405 (mirrored_line_dance):
1406 * coding.c (code_convert_string):
1407 * charset.c (map_charset_chars):
1408 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1409 (Fregister_ccl_program, Fregister_code_conversion_map):
1410 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1411 (head_table): Make static and const.
1412
1413 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1414
1415 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1416 (PROFILING_LDFLAGS): Set from substitution.
1417 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1418 CFLAGS last.
1419
1420 2010-07-12 Kenichi Handa <handa@m17n.org>
1421
1422 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1423 (shortlisp): Likewise.
1424
1425 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1426
1427 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1428 of FONT_ENTITY_INDEX.
1429 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1430 property, get the property value dynamically.
1431 (Ffont_put): Accept font-entity and font-object too.
1432 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1433 return value changed.
1434 (syms_of_font): Adjusted for the above change.
1435
1436 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1437
1438 * blockinput.h: Remove obsolete comment.
1439
1440 * lisp.h: Include <stddef.h>.
1441 (OFFSETOF): Don't define.
1442 (VECSIZE): Use offsetof instead of OFFSETOF.
1443 (PSEUDOVECSIZE): Likewise.
1444 * process.c (conv_sockaddr_to_lisp): Likewise.
1445 * alloc.c: Don't include <stddef.h>.
1446 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1447
1448 * process.c: Remove obsolete comment.
1449
1450 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1451
1452 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1453
1454 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1455
1456 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1457 index, rindex.
1458 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1459 * editfns.c (Fuser_full_name, Fformat): Likewise.
1460 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1461 * fileio.c (Ffile_symlink_p): Likewise.
1462 * filelock.c (current_lock_owner): Likewise.
1463 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1464 * fontset.c (fontset_pattern_regexp): Likewise.
1465 * lread.c (read1): Likewise.
1466 * sysdep.c (init_system_name): Likewise.
1467 * xfns.c (select_visual): Likewise.
1468 * s/hpux10-20.h (index, rindex): Don't define.
1469 * s/ms-w32.h (index): Likewise.
1470 * s/usg5-4.h: Likewise.
1471
1472 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1473
1474 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1475 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1476 (egetenv): Likewise.
1477 * doprnt.c (doprnt): Likewise.
1478 * editfns.c (set_time_zone_rule, format2): Likewise.
1479 * emacs.c (decode_env_path): Likewise.
1480 * eval.c (signal_error, error): Likewise.
1481 * insdel.c (replace_range_2): Likewise.
1482 * keyboard.c (cmd_error_internal): Likewise.
1483 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1484 * print.c (write_string, write_string_1, print_error_message):
1485 Likewise.
1486 * vm-limit.c (warn_function, memory_warnings): Likewise.
1487 * xdisp.c (message1, message1_nolog, message_with_string)
1488 (vmessage, message, message_nolog): Likewise.
1489 * emacs.c: Remove duplicate declaration.
1490 * keyboard.h: Likewise.
1491 * lisp.h: Update prototypes.
1492
1493 * eval.c: Fix indentation problem.
1494
1495 * keyboard.c: Include "process.h"
1496
1497 * eval.c: Remove obsolete noinline declaration.
1498 * fns.c: Likewise.
1499
1500 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1501
1502 * doprnt.c (doprnt): Take a va_list argument instead of count and
1503 pointer.
1504 * eval.c (error): Change to a standard-C variadic function.
1505 * xdisp.c (vmessage): Renamed from message, made static, and
1506 changed to take a va_list argument.
1507 (message): New variadic wrapper.
1508 (message_nolog): Now a variadic function, calling vmessage.
1509 * lisp.h: Include stdarg.h for va_list.
1510 (doprnt, error, message, message_nolog): Decls updated.
1511
1512 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1513
1514 * process.c (syms_of_process) <delete-exited-processes>: Define
1515 even if !subprocesses.
1516 (delete_exited_processes): Ditto.
1517
1518 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1519 (delete_exited_processes): Don't define.
1520
1521 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1522
1523 * frame.c (make_frame): Initialize menu_bar_lines and
1524 tool_bar_lines members.
1525 (make_initial_frame, make_terminal_frame): Initialize
1526 menu_bar_lines using value of menu-bar-mode.
1527
1528 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1529
1530 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1531
1532 * process.c: Reshuffle #include's. Condition some of the global
1533 and static variables on `subprocesses'.
1534 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1535 Leave only one implementation.
1536 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1537 (kill_buffer_processes, Flist_system_processes)
1538 (Fprocess_attributes, init_process, syms_of_process): Unify the
1539 implementations for with subprocesses and without them.
1540
1541 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1542
1543 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1544 correct size for Motif.
1545 (free_frame_menubar): Call x_set_window_size to update frame size.
1546
1547 * xfns.c (x_window): Set borderWidth to 0 for pane and
1548 EmacsFrame. Frame size calculation is wrong otherwise.
1549
1550 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1551
1552 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1553 allows to suppress errors when polling in Emacs' main loop.
1554 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1555 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1556 (Fdbus_method_error_internal, Fdbus_send_signal)
1557 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1558 (Fdbus_register_method): Use it. (Bug#6579)
1559
1560 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1561
1562 * alloc.c: Convert DEFUNs to standard C.
1563 * buffer.c:
1564 * bytecode.c:
1565 * callint.c:
1566 * callproc.c:
1567 * casefiddle.c:
1568 * casetab.c:
1569 * category.c:
1570 * character.c:
1571 * charset.c:
1572 * chartab.c:
1573 * cmds.c:
1574 * coding.c:
1575 * composite.c:
1576 * data.c:
1577 * dbusbind.c:
1578 * dired.c:
1579 * dispnew.c:
1580 * doc.c:
1581 * dosfns.c:
1582 * editfns.c:
1583 * emacs.c:
1584 * eval.c:
1585 * fileio.c:
1586 * filelock.c:
1587 * floatfns.c:
1588 * fns.c:
1589 * font.c:
1590 * fontset.c:
1591 * frame.c:
1592 * fringe.c:
1593 * image.c:
1594 * indent.c:
1595 * insdel.c:
1596 * keyboard.c:
1597 * keymap.c:
1598 * lread.c:
1599 * macros.c:
1600 * marker.c:
1601 * menu.c:
1602 * minibuf.c:
1603 * msdos.c:
1604 * nsfns.m:
1605 * nsmenu.m:
1606 * nsselect.m:
1607 * print.c:
1608 * process.c:
1609 * search.c:
1610 * sound.c:
1611 * syntax.c:
1612 * term.c:
1613 * terminal.c:
1614 * textprop.c:
1615 * undo.c:
1616 * w16select.c:
1617 * w32console.c:
1618 * w32fns.c:
1619 * w32font.c:
1620 * w32menu.c:
1621 * w32proc.c:
1622 * w32select.c:
1623 * window.c:
1624 * xdisp.c:
1625 * xfaces.c:
1626 * xfns.c:
1627 * xmenu.c:
1628 * xselect.c:
1629 * xsettings.c:
1630 * xsmfns.c: Likewise.
1631
1632 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1633
1634 * process.c (kbd_is_on_hold, hold_keyboard_input)
1635 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1636
1637 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1638
1639 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1640 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1641 unless USE_LUCID.
1642
1643 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1644
1645 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1646 declaration.
1647
1648 Clean up include guards.
1649 * tparam.c: Remove include guards for config.h, string.h and code
1650 that assumes #ifndef emacs.
1651 * termcap.c:
1652 * unexalpha.c:
1653 * sysdep.c:
1654 * filemode.c:
1655 * filelock.c:
1656 * bidi.c: Likewise.
1657
1658 Remove prefix-args.c
1659 * prefix-args.c: Remove file.
1660 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1661 * Makefile.in (temacs${EXEEXT}): Remove references to
1662 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1663 (mostlyclean): Remove reference to prefix-args.
1664 (prefix-args): Remove.
1665
1666 Simplify cstart_of_data, start_of_code and related code.
1667 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1668 (start_of_data): Merge into start_of_data function.
1669 * sysdep.c (start_of_text): Remove. Move simplified versions of
1670 it in the only users: unexaix.c and unexec.c.
1671 (read_input_waiting): Remove local declaration of quit_char.
1672 (start, etext): Remove declarations.
1673 (start_of_data): Merge with the version in mem-limits.h and move
1674 to vm-limits.c.
1675 * vm-limit.c (start_of_data): Merged and simplified version of the
1676 code formerly in mem-limits.h and sysdep.c.
1677 * unexec.c (start): New declaration, moved from sysdep.c.
1678 (start_of_text): Simplified version of the code formerly in sysdep.c.
1679 * unexaix.c (start_of_text): Simplified version of the code
1680 formerly in sysdep.c.
1681 * m/alpha.h (HAVE_TEXT_START): Remove.
1682 (TEXT_START): Move ...
1683 * unexalpha.c (TEXT_START): ... here.
1684 * s/hpux10-20.h (TEXT_START): Remove.
1685 * s/darwin.h (TEXT_START):
1686 * m/mips.h (TEXT_START):
1687 * m/macppc.h (HAVE_TEXT_START):
1688 * m/m68k.h (TEXT_START):
1689 * m/iris4d.h (TEXT_START):
1690 * m/intel386.h (TEXT_START):
1691 * m/ibmrs6000.h (TEXT_START):
1692 * m/ia64.h (HAVE_TEXT_START):
1693 * s/msdos.h (TEXT_START): Likewise.
1694
1695 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1696
1697 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1698 (overrun_check_free, xstrdup, allocate_string)
1699 (allocate_string_data, compact_small_strings, Fmake_string)
1700 (make_unibyte_string, make_multibyte_string)
1701 (make_string_from_bytes, make_specified_string, make_float)
1702 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1703 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1704 memcpy, memmove, memset, memcmp.
1705 * atimer.c (start_atimer, set_alarm): Likewise.
1706 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1707 (mmap_realloc, init_buffer_once): Likewise.
1708 * callint.c (Fcall_interactively): Likewise.
1709 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1710 (getenv_internal_1): Likewise.
1711 * casefiddle.c (casify_object): Likewise.
1712 * ccl.c (ccl_driver): Likewise.
1713 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1714 * charset.c (load_charset_map_from_file)
1715 (load_charset_map_from_file, load_charset_map_from_vector)
1716 (Fdefine_charset_internal): Likewise.
1717 * cm.c (Wcm_clear): Likewise.
1718 * coding.c (decode_eol, decode_coding_object)
1719 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1720 * data.c (Faset): Likewise.
1721 * dired.c (directory_files_internal, file_name_completion_stat):
1722 Likewise.
1723 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1724 (clear_glyph_row, copy_row_except_pointers)
1725 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1726 (save_current_matrix, restore_current_matrix)
1727 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1728 (mirror_line_dance, scrolling_window): Likewise.
1729 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1730 Likewise.
1731 * doprnt.c (doprnt): Likewise.
1732 * editfns.c (Fuser_full_name, make_buffer_string_both)
1733 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1734 * emacs.c (sort_args): Likewise.
1735 * eval.c (Fapply, Ffuncall): Likewise.
1736 * fileio.c (Ffile_name_directory, make_temp_name)
1737 (Fexpand_file_name, search_embedded_absfilename)
1738 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1739 (auto_save_error): Likewise.
1740 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1741 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1742 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1743 (Fmake_hash_table): Likewise.
1744 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1745 * ftfont.c (ftfont_text_extents): Likewise.
1746 * getloadavg.c (getloadavg): Likewise.
1747 * image.c (define_image_type, make_image, make_image_cache)
1748 (x_create_x_image_and_pixmap, xbm_image_p)
1749 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1750 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1751 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1752 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1753 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1754 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1755 Likewise.
1756 * indent.c (scan_for_column, compute_motion): Likewise.
1757 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1758 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1759 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1760 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1761 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1762 (store_user_signal_events, menu_bar_items, tool_bar_items)
1763 (process_tool_bar_item, append_tool_bar_item)
1764 (read_char_minibuf_menu_prompt, read_key_sequence)
1765 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1766 Likewise.
1767 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1768 Likewise.
1769 * lisp.h (STRING_COPYIN): Likewise.
1770 * lread.c (Fload, read1, oblookup): Likewise.
1771 * msdos.c (Frecent_doskeys): Likewise.
1772 * nsfns.m (Fx_create_frame): Likewise.
1773 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1774 Likewise.
1775 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1776 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1777 Likewise.
1778 * nsmenu.m (ns_update_menubar): Likewise.
1779 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1780 * print.c (print_unwind, printchar, strout, print_string)
1781 (print_error_message): Likewise.
1782 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1783 (Fmake_network_process, Fnetwork_interface_list)
1784 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1785 (init_process): Likewise.
1786 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1787 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1788 Likewise.
1789 * scroll.c (do_scrolling, do_direct_scrolling)
1790 (scrolling_max_lines_saved): Likewise.
1791 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1792 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1793 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1794 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1795 (emacs_set_tty): Likewise.
1796 * term.c (encode_terminal_code, calculate_costs)
1797 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1798 Likewise.
1799 * termcap.c (tgetst1, gobble_line): Likewise.
1800 * termhooks.h (EVENT_INIT): Likewise.
1801 * tparam.c (tparam1): Likewise.
1802 * unexalpha.c (unexec): Likewise.
1803 * unexec.c (write_segment): Likewise.
1804 * unexmacosx.c (unexec_write_zero): Likewise.
1805 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1806 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1807 * w32font.c (w32font_list_family, w32font_text_extents)
1808 (w32font_list_internal, w32font_match_internal)
1809 (w32font_open_internal, compute_metrics, Fx_select_font):
1810 Likewise.
1811 * w32menu.c (set_frame_menubar, add_menu_item)
1812 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1813 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1814 * w32uniscribe.c (uniscribe_list_family): Likewise.
1815 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1816 * window.c (make_window, replace_window, set_window_buffer)
1817 (Fsplit_window): Likewise.
1818 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1819 (add_to_log, message3, x_consider_frame_title)
1820 (append_space_for_newline, extend_face_to_end_of_line)
1821 (decode_mode_spec_coding, init_glyph_string): Likewise.
1822 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1823 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1824 (face_attr_equal_p, make_realized_face, make_face_cache)
1825 (free_realized_faces, lookup_named_face, smaller_face)
1826 (face_with_height, lookup_derived_face)
1827 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1828 (Finternal_set_font_selection_order, realize_default_face)
1829 (compute_char_face, face_at_buffer_position)
1830 (face_for_overlay_string, face_at_string_position, merge_faces):
1831 Likewise.
1832 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1833 (Fx_window_property, x_create_tip_frame)
1834 (Fx_backspace_delete_keys_p): Likewise.
1835 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1836 (xfont_text_extents): Likewise.
1837 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1838 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1839 * xselect.c (x_queue_event, x_get_window_property)
1840 (receive_incremental_selection): Likewise.
1841 * xsmfns.c (x_session_check_input): Likewise.
1842 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1843 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1844 Likewise.
1845 * character.h (BCOPY_SHORT): Removed.
1846 * config.in: Regenerate.
1847 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1848 * emacs.c (main) [PROFILING]: Don't declare
1849 dump_opcode_frequencies.
1850 * lisp.h (safe_bcopy): Remove declaration.
1851 (memset) [!HAVE_MEMSET]: Declare.
1852 (memcpy) [!HAVE_MEMCPY]: Likewise.
1853 (memmove) [!HAVE_MEMMOVE]: Likewise.
1854 (memcmp) [!HAVE_MEMCMP]: Likewise.
1855 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1856 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1857 Don't define.
1858 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1859 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1860 (BCOPY_DOWNWARD_SAFE): Don't define.
1861 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1862 (memcpy) [!HAVE_MEMCPY]: Define.
1863 (memmove) [!HAVE_MEMMOVE]: Define.
1864 (memcmp) [!HAVE_MEMCMP]: Define.
1865
1866 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1867
1868 * process.c (kbd_is_on_hold): New variable.
1869 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1870 New functions.
1871 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1872 select on empty input mask.
1873 (init_process): Initialize kbd_is_on_hold to 0.
1874
1875 * process.h (hold_keyboard_input, unhold_keyboard_input)
1876 (kbd_on_hold_p): Declare.
1877
1878 * keyboard.c (input_available_signal): Declare.
1879 (kbd_buffer_nr_stored): New function.
1880 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1881 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1882 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1883 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1884 (tty_read_avail_input): If input is on hold, return.
1885 Don't read more that free slots in kbd_buffer (Bug#6571).
1886
1887 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1888
1889 * msdos.h:
1890 * msdos.c:
1891 * dosfns.c:
1892 * w16select.c: Convert function definitions to ANSI C.
1893
1894 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1895 Remove unused prototypes.
1896
1897 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1898
1899 * coding.c, sysdep.c: Convert some more functions to standard C.
1900
1901 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1902
1903 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1904 (encode_coding_object): Use SPECPDL_INDEX.
1905 (syms_of_coding): Use DOS_NT.
1906
1907 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1908
1909 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1910
1911 Make the function member of Lisp_Subr use standard C prototypes.
1912 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1913 (DECL_ALIGN): Add a cast for the function.
1914 * eval.c (Feval, Ffuncall): Use the proper type for each type
1915 function call.
1916
1917 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1918
1919 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1920 fringe face id, so face-remapping-alist works (Bug#6091).
1921
1922 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1923
1924 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1925 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1926 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1927
1928 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1929
1930 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1931 * lisp.h: Declare x_get_keysym_name.
1932 * keyboard.c (modify_event_symbol): Don't declare
1933 x_get_keysym_name here.
1934
1935 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1936
1937 * ecrt0.c: Revert conversion to standard C.
1938
1939 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1940
1941 * vm-limit.c (memory_warnings):
1942 * keyboard.c (modify_event_symbol):
1943 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1944 (round2, emacs_rint):
1945 * process.c (send_process, old_sigpipe): Convert function
1946 definitions and declarations to standard C.
1947
1948 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1949
1950 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1951 * xdisp.c: Convert function definitions to standard C.
1952
1953 * cm.c (cmputc): Arg C is now int, not char.
1954 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1955
1956 2010-07-05 James Cloos <cloos@jhcloos.com>
1957
1958 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1959
1960 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1961 _NET_WM_ICON_NAME atoms.
1962
1963 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1964 and _NET_WM_ICON_NAME properties, too, matching what is
1965 done in the Gtk+ case.
1966
1967 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1968
1969 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1970
1971 * xsmfns.c (SSDATA): New macro.
1972 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1973 passed to strlen/strcpy/strcat.
1974 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1975 7:th arg to XChangeProperty to (unsigned char *)
1976
1977 * xsettings.c (something_changedCB, parse_settings)
1978 (apply_xft_settings): Reformat prototype.
1979 (something_changedCB, init_gconf): Remove unused variable i.
1980 (read_settings): Remove unused variable long_len.
1981
1982 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1983 (xg_get_image_for_pixmap, create_dialog)
1984 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1985 (menuitem_highlight_callback, make_menu_item)
1986 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1987 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1988 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1989 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1990 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1991 (xg_tool_bar_item_expose_callback): Reformat prototype.
1992 (xg_update_menubar): GList *group => GSList *group.
1993 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1994 before use.
1995 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1996 to GTK_IMAGE (wimage).
1997
1998 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1999
2000 * atimer.c: Use "" instead of <> for local includes for
2001 consistency with the rest of the code.
2002
2003 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2004 * xrdb.c (get_system_name):
2005 * window.c (shrink_windows):
2006 * syntax.c (forw_comment):
2007 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2008 (ins_del_costs):
2009 * mem-limits.h (start_of_data):
2010 * lread.c (readevalloop):
2011 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2012 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2013 * frame.c (x_get_focus_frame):
2014 * floatfns.c (fmod_float):
2015 * fileio.c (choose_write_coding_system):
2016 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2017 (malloc_initialize_hook, sort_args, synchronize_locale):
2018 * doprnt.c (doprnt):
2019 * dired.c (compile_pattern):
2020 * data.c (fmod_float):
2021 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2022 (map_char_table_for_charset):
2023 * charset.c (define_charset_internal):
2024 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2025 to standard C.
2026
2027 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2028 Stefan Monnier <monnier@iro.umontreal.ca>
2029
2030 * lread.c (read1): Fix up last change to not mess up `c'.
2031
2032 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2033
2034 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2035
2036 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2037
2038 Fix prototypes.
2039
2040 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2041 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2042 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2043 arg, as required by internal_condition_case_1.
2044 * print.c (strout): Use const char* for arg PTR.
2045 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2046 (analyse_first): Fix "const const".
2047 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2048 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2049 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2050
2051 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2052
2053 * alloc.c: Convert function definitions to standard C.
2054 * atimer.c:
2055 * bidi.c:
2056 * bytecode.c:
2057 * callint.c:
2058 * callproc.c:
2059 * casefiddle.c:
2060 * casetab.c:
2061 * category.c:
2062 * ccl.c:
2063 * character.c:
2064 * charset.c:
2065 * chartab.c:
2066 * cmds.c:
2067 * coding.c:
2068 * composite.c:
2069 * data.c:
2070 * dbusbind.c:
2071 * dired.c:
2072 * dispnew.c:
2073 * doc.c:
2074 * doprnt.c:
2075 * ecrt0.c:
2076 * editfns.c:
2077 * fileio.c:
2078 * filelock.c:
2079 * filemode.c:
2080 * fns.c:
2081 * font.c:
2082 * fontset.c:
2083 * frame.c:
2084 * fringe.c:
2085 * ftfont.c:
2086 * ftxfont.c:
2087 * gtkutil.c:
2088 * indent.c:
2089 * insdel.c:
2090 * intervals.c:
2091 * keymap.c:
2092 * lread.c:
2093 * macros.c:
2094 * marker.c:
2095 * md5.c:
2096 * menu.c:
2097 * minibuf.c:
2098 * prefix-args.c:
2099 * print.c:
2100 * ralloc.c:
2101 * regex.c:
2102 * region-cache.c:
2103 * scroll.c:
2104 * search.c:
2105 * sound.c:
2106 * strftime.c:
2107 * syntax.c:
2108 * sysdep.c:
2109 * termcap.c:
2110 * terminal.c:
2111 * terminfo.c:
2112 * textprop.c:
2113 * tparam.c:
2114 * undo.c:
2115 * unexelf.c:
2116 * window.c:
2117 * xfaces.c:
2118 * xfns.c:
2119 * xfont.c:
2120 * xftfont.c:
2121 * xgselect.c:
2122 * xmenu.c:
2123 * xrdb.c:
2124 * xselect.c:
2125 * xsettings.c:
2126 * xsmfns.c:
2127 * xterm.c: Likewise.
2128
2129 2010-07-03 Eli Zaretskii <eliz@gnu.org>
2130
2131 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2132 frames other than the initial one. Fix reversal of colors when
2133 `reverse' is specified in the frame parameters. Call
2134 update_face_from_frame_parameter instead of
2135 internal-set-lisp-face-attribute. Initialize screen colors from
2136 initial_screen_colors[] when f->default_face_done_p is zero,
2137 instead of depending on being called with default-frame-alist as
2138 the alist argument.
2139
2140 * xfaces.c (update_face_from_frame_parameter): Move out of
2141 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2142 with HAVE_WINDOW_SYSTEM.
2143
2144 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2145 to menu-bar-mode, if not set in the frame parameters or in
2146 default-frame-alist.
2147
2148 * w32console.c (sys_tputs): Adjust argument list to prototype in
2149 term.c.
2150
2151 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
2152
2153 * lisp.h (memory_warnings): Fix prototype.
2154
2155 * cm.h (evalcost): Fix prototype.
2156
2157 * cm.c (evalcost): Fix arg type.
2158
2159 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2160
2161 * term.c (term_clear_mouse_face, Fidentity):
2162 * syssignal.h (signal_handler_t):
2163 * lisp.h (memory_warnings):
2164 * coding.h (preferred_coding_system):
2165 * cm.h (evalcost):
2166 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2167
2168 2010-07-02 Eli Zaretskii <eliz@gnu.org>
2169
2170 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2171 from prototypes.
2172
2173 * msdos.h (load_pixmap): Don't define away.
2174
2175 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2176
2177 * lisp.h:
2178 * atimer.h: Remove define for P_.
2179
2180 * alloc.c: Remove __P and P_ from .c and .m files.
2181 * atimer.c:
2182 * buffer.c:
2183 * callint.c:
2184 * category.c:
2185 * charset.c:
2186 * chartab.c:
2187 * cm.c:
2188 * coding.c:
2189 * composite.c:
2190 * data.c:
2191 * dired.c:
2192 * dispnew.c:
2193 * doc.c:
2194 * editfns.c:
2195 * emacs.c:
2196 * eval.c:
2197 * fileio.c:
2198 * filelock.c:
2199 * fns.c:
2200 * font.c:
2201 * fontset.c:
2202 * frame.c:
2203 * ftfont.c:
2204 * ftxfont.c:
2205 * gmalloc.c:
2206 * gtkutil.c:
2207 * image.c:
2208 * indent.c:
2209 * intervals.c:
2210 * keyboard.c:
2211 * keymap.c:
2212 * lread.c:
2213 * marker.c:
2214 * menu.c:
2215 * minibuf.c:
2216 * print.c:
2217 * process.c:
2218 * scroll.c:
2219 * search.c:
2220 * sound.c:
2221 * strftime.c:
2222 * syntax.c:
2223 * sysdep.c:
2224 * term.c:
2225 * terminal.c:
2226 * textprop.c:
2227 * unexalpha.c:
2228 * w32console.c:
2229 * w32fns.c:
2230 * w32font.c:
2231 * w32menu.c:
2232 * w32term.c:
2233 * w32uniscribe.c:
2234 * window.c:
2235 * xdisp.c:
2236 * xfaces.c:
2237 * xfns.c:
2238 * xfont.c:
2239 * xftfont.c:
2240 * xmenu.c:
2241 * xselect.c:
2242 * xterm.c: Likewise.
2243
2244 Remove P_ and __P macros.
2245 * atimer.h: Remove P_ and __P macros.
2246 * buffer.h:
2247 * category.h:
2248 * ccl.h:
2249 * character.h:
2250 * charset.h:
2251 * cm.h:
2252 * coding.h:
2253 * composite.h:
2254 * dispextern.h:
2255 * disptab.h:
2256 * dosfns.h:
2257 * font.h:
2258 * fontset.h:
2259 * frame.h:
2260 * gtkutil.h:
2261 * indent.h:
2262 * intervals.h:
2263 * keyboard.h:
2264 * keymap.h:
2265 * lisp.h:
2266 * macros.h:
2267 * md5.h:
2268 * menu.h:
2269 * msdos.h:
2270 * nsterm.h:
2271 * puresize.h:
2272 * region-cache.h:
2273 * syntax.h:
2274 * syssignal.h:
2275 * systime.h:
2276 * termhooks.h:
2277 * w32font.h:
2278 * w32term.h:
2279 * widget.h:
2280 * window.h:
2281 * xgselect.h:
2282 * xsettings.h:
2283 * xterm.h: Likewise.
2284
2285 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2286
2287 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2288
2289 Cleanup old code.
2290 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2291 * syssignal.h: Remove code for Lynx, not supported anymore.
2292 * vm-limit.c: Remove unused code the depends on emacs not being
2293 defined and NO_LIM_DATA being defined.
2294 * mem-limits.h: Remove dead code.
2295
2296 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2297
2298 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2299
2300 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2301 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2302
2303 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2304 parameters, they are already absolute.
2305
2306 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2307 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2308
2309 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2310
2311 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2312 Update FRAME_TOOLBAR_HEIGHT.
2313
2314 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2315 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2316
2317 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
2318
2319 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2320 check default-frame-alist.
2321
2322 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2323
2324 * process.c (create_process): Avoid using invalid file descriptors.
2325
2326 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2327
2328 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2329
2330 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2331 Improve documentation. Return font regardless of use_system_font.
2332 (syms_of_xsettings): Improve documentation for font-use-system-font.
2333
2334 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2335
2336 * xfaces.c (realize_face): Garbage the frame if a face is removed
2337 (Bug#6593).
2338
2339 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2340
2341 * keyboard.c: Remove duplicate <setjmp.h>.
2342 (read_key_sequence): Remove volatile qualifiers.
2343
2344 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2345
2346 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2347 (struct glyph_row): New members left_fringe_offset and
2348 right_fringe_offset.
2349
2350 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2351 specially.
2352 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2353 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2354
2355 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
2356 Take account of bitmap offset.
2357 (draw_window_fringes): Take account of window vscroll.
2358 (update_window_fringes): Likewise. Extend top-aligned top indicator
2359 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2360 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2361 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2362
2363 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2364
2365 * w32fns.c (Qtooltip): Declare.
2366 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2367
2368 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2369
2370 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2371 grab on just Press (Bug#6499).
2372
2373 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * frame.c (Qtooltip): New var.
2376 (delete_frame): Use it. Fix faulty if statement. Don't update
2377 mode line for tooltip frames. Suggested by Martin Rudalics.
2378
2379 * xfns.c (x_create_tip_frame):
2380 * w32fns.c (x_create_tip_frame): Use it.
2381
2382 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
2383
2384 * xftfont.c (xftfont_open): Check font width one by one also when
2385 spacing is dual.
2386
2387 * ftfont.c (ftfont_open): Ditto.
2388
2389 2010-06-30 Glenn Morris <rgm@gnu.org>
2390
2391 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2392
2393 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2394
2395 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2396 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2397 * s/darwin.h (SYSTEM_MALLOC):
2398 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2399
2400 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2401
2402 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2403 (ns_get_screen): Don't assign integer to f.
2404 (Fx_display_color_cells): Declarations before statements.
2405
2406 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2407
2408 * xfns.c (x_default_font_parameter): Remove got_from_system
2409 (Bug#6526).
2410
2411 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2412 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2413 defines based on what configure finds.
2414
2415 * xterm.c (XTflash): Use gtk_widget_get_window.
2416 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2417 gtk_adjustment_get_page_size.
2418 (handle_one_xevent): Use gtk_widget_get_mapped.
2419 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2420 messages.
2421
2422 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2423
2424 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2425 HAVE_GTK_FILE_SELECTION_NEW.
2426
2427 * gtkutil.c (xg_display_open, xg_display_close): Remove
2428 HAVE_GTK_MULTIDISPLAY, it is always defined.
2429 (xg_display_open): Return type is void.
2430 (gtk_widget_set_has_window)
2431 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2432 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2433 (gtk_adjustment_set_page_increment)
2434 (gtk_adjustment_get_step_increment): #define these if not found
2435 by configure.
2436 (remove_submenu): New define based on Gtk+ version.
2437 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2438 gtk_widget_get_window.
2439 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2440 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2441 (create_dialog): Use gtk_dialog_get_action_area and
2442 gtk_dialog_get_content_area.
2443 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2444 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2445 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2446 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2447 g_object_ref and g_object_unref.
2448 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2449 gtk_widget_get_sensitive.
2450 (xg_update_submenu): Use remove_submenu.
2451 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2452 properties instead to get old x and y position.
2453 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2454 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2455 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2456 (xg_get_tool_bar_widgets): New function.
2457 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2458 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2459 (toolbar_set_orientation): New #define based on if configure
2460 finds gtk_orientable_set_orientation.
2461 (xg_create_tool_bar): Call toolbar_set_orientation.
2462 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2463 instead of gtk_box_pack_start_defaults.
2464
2465 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2466
2467 * cmds.c (Fdelete_backward_char): Move into Lisp.
2468
2469 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2470
2471 * s/freebsd.h (BSD4_2): Remove redundant definition.
2472 bsd-common.h defines it already.
2473
2474 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2475
2476 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2477 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2478 tool-bar-mode, which are now set using these X resources at
2479 startup, to determine the defaults (Bug#2249).
2480
2481 * w32fns.c (Fx_create_frame):
2482 * nsfns.m (Fx_create_frame): Likewise.
2483
2484 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2485
2486 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2487
2488 * gtkutil.c (xg_update_scrollbar_pos):
2489 Avoid C99 mid-block variable declaration.
2490
2491 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2492
2493 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2494
2495 * gtkutil.h (xg_show_scroll_bar): Remove.
2496
2497 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2498 if height is less than scroll bar min size.
2499 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2500
2501 * xfns.c (x_default_font_parameter): Try to open font from system
2502 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2503
2504 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2505
2506 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2507
2508 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2509
2510 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2511 most-positive-fixnum, be extra accurate when scrolling window
2512 start, to avoid missing the cursor line.
2513
2514 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2515
2516 * xdisp.c (try_scrolling): Compute the limit for searching point
2517 in forward scroll from scroll_max, instead of an arbitrary limit
2518 of 10 screen lines. See
2519 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2520 and
2521 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2522 for details.
2523
2524 2010-06-16 Glenn Morris <rgm@gnu.org>
2525
2526 * editfns.c (Fbyte_to_string): Pacify compiler.
2527
2528 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2529
2530 * lread.c (read1): Phase out old-style backquotes a bit more.
2531
2532 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2533
2534 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2535 bidimirror.h.
2536
2537 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2538
2539 * bidi.c (bidi_initialize): Remove explicit initialization of
2540 bidi_type_table; include biditype.h instead. Don't support
2541 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2542 (bidi_mirror_char): Use bidi_mirror_table.
2543
2544 * biditype.h: New file.
2545
2546 * bidimirror.h: New file.
2547
2548 * window.c (syms_of_window): Doc fix (bug#6409).
2549
2550 2010-06-12 Romain Francoise <romain@orebokech.com>
2551
2552 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2553 ediff-hook.
2554
2555 2010-06-10 Glenn Morris <rgm@gnu.org>
2556
2557 * editfns.c (Fbyte_to_string): Pacify compiler.
2558
2559 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2560
2561 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2562
2563 * alloc.c (Fmake_byte_code): Don't access undefined argument
2564 (Bug#6517).
2565
2566 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2567
2568 * xdisp.c (next_element_from_image): Ensure that after-strings are
2569 read the next time we hit handle_stop (Bug#1336).
2570
2571 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2572
2573 * lread.c (read1): Signal error if #s is not followed by paren.
2574
2575 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2576
2577 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2578
2579 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2580
2581 2010-06-15 Glenn Morris <rgm@gnu.org>
2582
2583 * editfns.c (Fbyte_to_string): Pacify compiler.
2584
2585 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2586
2587 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2588 Check `object's type before accessing its guts.
2589
2590 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2591
2592 * s/usg5-4.h: Fix previous change.
2593 Suggested by Lawrence Mitchell <wence@gmx.li>
2594
2595 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2596
2597 * minibuf.c (Fall_completions): Add more checks.
2598
2599 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2600
2601 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2602
2603 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2604
2605 * lread.c (X_OK): Remove, unused.
2606
2607 * dispnew.c: Remove obsolete comment.
2608
2609 Remove INCLUDED_FCNTL.
2610 * xterm.c (INCLUDED_FCNTL):
2611 * callproc.c (INCLUDED_FCNTL):
2612 * alloc.c (INCLUDED_FCNTL):
2613 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2614 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2615
2616 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2617
2618 * window.c (Fselect_window): Move `record_buffer' up to the
2619 beginning of this function, so the buffer gets recorded
2620 even if the selected window does not change.
2621 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2622
2623 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2624
2625 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2626 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2627
2628 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2629
2630 Remove BSTRING related code, all platforms define it.
2631 * s/usg5-4.h (BSTRING): Remove definition.
2632 * s/template.h (BSTRING):
2633 * s/msdos.h (BSTRING):
2634 * s/ms-w32.h (BSTRING):
2635 * s/hpux10-20.h (BSTRING):
2636 * s/gnu-linux.h (BSTRING):
2637 * s/darwin.h (BSTRING):
2638 * s/cygwin.h (BSTRING):
2639 * s/bsd-common.h (BSTRING):
2640 * s/aix4-2.h (BSTRING): Likewise.
2641 * sysdep.c: Remove code depending on BSTRING not being defined.
2642
2643 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2644
2645 Remove obsolete macro BASE_LEADING_CODE_P.
2646 * character.h (BASE_LEADING_CODE_P): Remove.
2647 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2648 * buffer.c (Fset_buffer_multibyte):
2649 * indent.c (scan_for_column, compute_motion):
2650 * insdel.c (count_combining_before, count_combining_after):
2651 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2652
2653 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2654
2655 Turn `directory-sep-char' into a noop.
2656
2657 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2658 (DIRECTORY_SEP): Define unconditionally.
2659
2660 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2661
2662 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2663 call dostounix_filename directly.
2664
2665 * fileio.c (CORRECT_DIR_SEPS): Remove.
2666 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2667 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2668 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2669 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2670
2671 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2672 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2673
2674 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2675
2676 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2677 (Bug#6346)
2678
2679 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2680
2681 * ccl.c (Fccl_program_p): Fix typo in docstring.
2682
2683 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2684
2685 Move UNEXEC definition to autoconf.
2686 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2687 * s/sol2-10.h (UNEXEC):
2688 * s/irix6-5.h (UNEXEC):
2689 * s/hpux10-20.h (UNEXEC):
2690 * s/gnu-linux.h (UNEXEC):
2691 * s/darwin.h (UNEXEC):
2692 * s/cygwin.h (UNEXEC):
2693 * s/bsd-common.h (UNEXEC):
2694 * s/aix4-2.h (UNEXEC):
2695 * m/alpha.h (UNEXEC): Likewise.
2696 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2697
2698 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2699
2700 Remove obsolete pre-unicode2 macros.
2701 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2702 * composite.c (composition_reseat_it):
2703 * data.c (Faset):
2704 * fns.c (Ffillarray):
2705 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2706 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2707
2708 2010-06-03 Juri Linkov <juri@jurta.org>
2709
2710 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2711 (Fswitch_to_buffer): Remove unused variable `err'.
2712
2713 2010-06-03 Glenn Morris <rgm@gnu.org>
2714
2715 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2716
2717 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2718 now that AH_BOTTOM does it.
2719
2720 * m/hp800.h (HAVE_ALLOCA):
2721 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2722
2723 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2724 Remove NOT_C_CODE tests, it is always true now.
2725
2726 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2727
2728 Fix config.h includes.
2729 * xsettings.c:
2730 * xgselect.c:
2731 * nsterm.m:
2732 * nsselect.m:
2733 * nsimage.m:
2734 * nsfont.m:
2735 * nsfns.m:
2736 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2737 other files do.
2738
2739 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2740
2741 * s/sol2-6.h: Remove obsolete comments.
2742
2743 Remove unnecessary alloca.h includes.
2744 * keymap.c: Do not include alloca.h, config.h does that.
2745 * sysdep.c: Likewise. Do not define fwrite, not used.
2746
2747 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2748
2749 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2750 the HAVE_TERMIO where it belongs (bug#6149).
2751
2752 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2753
2754 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2755 of bug#6305).
2756
2757 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2758
2759 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2760 state is always cached (bug#6306).
2761
2762 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2763
2764 Fix cursor motion in bidi-reordered continued lines.
2765 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2766 only after finding point's row. Fix the logic. Rewrite the loop
2767 over continuation lines in bidi-reordered buffers. Return
2768 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2769 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2770
2771 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2772
2773 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2774
2775 2010-05-28 Kenichi Handa <handa@m17n.org>
2776
2777 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2778 Don't sheck SPEC if it is nil.
2779 (font_list_entities): Call font_delete_unmatched if
2780 Vface_ignored_fonts is non-nil. (Bug#6287)
2781
2782 2010-05-28 Glenn Morris <rgm@gnu.org>
2783
2784 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2785
2786 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2787
2788 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2789 whether to trash.
2790 (internal_delete_file, Frename_file): Callers changed.
2791 (delete_by_moving_to_trash): Doc fix.
2792 (Fdelete_directory_internal): Don't move to trash.
2793
2794 * callproc.c (delete_temp_file):
2795 * buffer.c (Fkill_buffer): Callers changed.
2796
2797 * lisp.h: Update prototype.
2798
2799 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2800
2801 * xdisp.c (redisplay_window): After redisplay, check if point is
2802 still valid before setting it (Bug#6177).
2803
2804 2010-05-27 Glenn Morris <rgm@gnu.org>
2805
2806 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2807 Convert comments to Makefile format.
2808
2809 * Makefile.in (bootstrap-clean): No more Makefile.c.
2810
2811 2010-05-26 Glenn Morris <rgm@gnu.org>
2812
2813 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2814 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2815
2816 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2817 Remove.
2818 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2819
2820 2010-05-26 Kenichi Handa <handa@m17n.org>
2821
2822 * composite.c (composition_compute_stop_pos): Fix condition for
2823 backward scanning.
2824
2825 2010-05-25 Glenn Morris <rgm@gnu.org>
2826
2827 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2828 Move before TEMACS_LDFLAGS.
2829 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2830 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2831
2832 * Makefile.in (NOT_C_CODE): No longer define.
2833 (config.h): No longer include.
2834
2835 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2836 variables it may reference.
2837
2838 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2839 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2840
2841 2010-05-25 Kenichi Handa <handa@m17n.org>
2842
2843 * dispextern.h (struct composition_it): New members rule_idx and
2844 charpos.
2845
2846 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2847 that the character positions of IT point the last character of the
2848 current grapheme cluster.
2849 (next_element_from_composition): Don't change character positions
2850 of IT.
2851 (append_composite_glyph): Set glyph->charpos to
2852 it->cmp_it.charpos.
2853
2854 * composite.c (autocmp_chars): Change the first argument to RULE,
2855 and try composition with RULE only.
2856 (composition_compute_stop_pos): Record the index number of the
2857 composition rule in CMP_IT->rule_idx.
2858 (composition_reseat_it): Call autocmp_chars repeatedly until the
2859 correct rule of the composition is found.
2860 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2861 is at the last character of the current grapheme cluster when
2862 CMP_IT->reversed_p is nonzero.
2863
2864 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2865
2866 * editfns.c (Fbyte_to_string): New function.
2867
2868 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2869
2870 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2871 Suggested by Masatake YAMATO <yamato@redhat.com>.
2872
2873 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2874
2875 * dispextern.h (init_iterator): Sync prototype with changed definition.
2876
2877 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2878
2879 * s/netbsd.h: If terminfo is found, use it in preference to
2880 termcap. (Bug#6190) [Backport from trunk]
2881
2882 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2883
2884 Redesign and reimplement bidi-aware edge positions of glyph rows.
2885
2886 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2887 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2888 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2889 and maxpos members instead of start.pos and end.pos, respectively.
2890
2891 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2892 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2893 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2894 (try_window_reusing_current_matrix, try_window_id):
2895 Use ROW->minpos rather than ROW->start.pos.
2896 (init_from_display_pos, init_iterator): Use EMACS_INT for
2897 character and byte positions.
2898 (find_row_edges): Rename from find_row_end. Accept additional
2899 arguments for minimum and maximum buffer positions seen by
2900 display_line for this row. Don't use iterator to find the
2901 position following the maximum one; instead, increment the
2902 position found by display_line directly. Fix logic; eol_pos
2903 should be tested before the rest. Handle the case of characters
2904 delivered from display vector (bug#6036). Fix tests related to
2905 it->method. Handle the truncated_on_right_p rows.
2906 (RECORD_MAX_MIN_POS): New macro.
2907 (display_line): Use it to record the minimum and maximum buffer
2908 positions for glyphs in the row being assembled. Record the
2909 position of the newline that terminates the line. If word wrap is
2910 in effect, restore minimum and maximum positions seen up to the
2911 wrap point, when iterator returns to it.
2912 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2913 row and cursor not already at point. Restore original pre-bidi
2914 code for unidirectional buffers.
2915
2916 * dispnew.c (increment_row_positions, check_matrix_invariants):
2917 Increment and check row->start.pos and row->end.pos, in addition
2918 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2919
2920 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2921 Display truncated_on_left_p and truncated_on_right_p flags.
2922 Formatting fixes.
2923 (pmtxrows): Display the ordinal number of each row. Don't display
2924 rows beyond the last one.
2925
2926 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2927 it is not copied by bidi_copy_it.
2928
2929 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2930
2931 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2932 (Bug#6237)
2933
2934 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2935
2936 * image.c (Fimage_flush): Rename from image-refresh.
2937
2938 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2939
2940 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2941 just one window.
2942
2943 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2944 (clear_image_cache): If the number of cached images is unusually
2945 large, decrease the cache eviction delay (Bug#6230).
2946
2947 2010-05-21 Glenn Morris <rgm@gnu.org>
2948
2949 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2950 Move these rules to ns.mk.
2951 * ns.mk: New file.
2952
2953 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2954
2955 * Makefile.in (CANNOT_DUMP): New, set by configure.
2956 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2957
2958 2010-05-20 Juri Linkov <juri@jurta.org>
2959
2960 * fileio.c (Fdelete_file): Change interative spec to use
2961 `read-file-name' like in `find-file-read-args' where the default
2962 value is `default-directory' instead of `buffer-file-name'.
2963 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2964
2965 2010-05-20 Kevin Ryde <user42@zip.com.au>
2966
2967 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2968 (Voverriding_terminal_local_map, Vsystem_key_alist)
2969 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2970
2971 2010-05-20 Glenn Morris <rgm@gnu.org>
2972
2973 * Makefile.in (DEPDIR): New constant.
2974 (DEPFLAGS): Set with configure, not cpp.
2975 (MKDEPDIR): New, set by configure.
2976 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2977 (clean): Use $DEPDIR.
2978 (deps_frag): Include from configure.
2979 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2980 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2981
2982 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2983 reallocation of the cache. (Bug#6210)
2984
2985 2010-05-19 Glenn Morris <rgm@gnu.org>
2986
2987 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2988
2989 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2990 (GNULIB_VAR): Remove.
2991 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2992
2993 * m/ibms390x.h (LINKER):
2994 * m/macppc.h (LINKER) [GNU_LINUX]:
2995 * s/aix4-2.h (ORDINARY_LINK):
2996 * s/cygwin.h (LINKER):
2997 * s/darwin.h (ORDINARY_LINK):
2998 * s/gnu.h (ORDINARY_LINK):
2999 * s/netbsd.h (LINKER):
3000 * s/usg5-4.h (ORDINARY_LINK):
3001 Move to configure.
3002
3003 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3004
3005 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
3006
3007 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3008 prevent stack overflow if number of arguments is too large
3009 (Bug#6214).
3010
3011 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
3012
3013 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3014
3015 2010-05-18 Glenn Morris <rgm@gnu.org>
3016
3017 * s/gnu-linux.h: Combine two conditionals.
3018
3019 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
3020 $(POST_ALLOC_OBJ).
3021
3022 * Makefile.in (RALLOC_OBJ): New, set by configure.
3023 (rallocobj): Replace with the previous variable.
3024 (otherobj): Use $RALLOC_OBJ.
3025
3026 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3027 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3028
3029 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3030 (gmallocobj, vmlimitobj): Replace with previous two variables.
3031 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3032
3033 2010-05-17 Glenn Morris <rgm@gnu.org>
3034
3035 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3036 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3037
3038 2010-05-16 Glenn Morris <rgm@gnu.org>
3039
3040 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3041
3042 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3043
3044 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3045 trailing "/".
3046
3047 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3048 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3049
3050 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3051 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3052 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3053 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3054 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3055
3056 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3057 Remove ${STARTFLAGS}, nothing ever sets it.
3058
3059 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3060
3061 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3062
3063 2010-05-16 Glenn Morris <rgm@gnu.org>
3064
3065 * Makefile.in (LIBX_BASE): Always define.
3066
3067 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3068
3069 * Makefile.in (LIBXT): Always define.
3070
3071 2010-05-15 Glenn Morris <rgm@gnu.org>
3072
3073 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
3074
3075 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3076 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3077
3078 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
3079
3080 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
3081 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3082
3083 * emacs.c (main): Initialize initial-environment and
3084 process-environment before generating from env, not after.
3085
3086 Handle --version reasonably in CANNOT_DUMP configuration.
3087 * emacs.c (emacs_version, emacs_copyright): New string variables.
3088 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3089 (syms_of_emacs): Defvar them, and initialize them from the C
3090 string variables.
3091 (main): If initialization hasn't been done, print initial version
3092 info from the C strings, instead of starting an interactive session.
3093
3094 2010-05-15 Eli Zaretskii <eliz@gnu.org>
3095
3096 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3097 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
3098 (bidi_paragraph_init): Remove redundant assertion that we are at
3099 the beginning of a line after call to bidi_find_paragraph_start.
3100
3101 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3102 (syms_of_xdisp): Defsubr it.
3103
3104 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3105
3106 * Makefile.in: Fix MSDOS-related comments.
3107
3108 2010-05-15 Glenn Morris <rgm@gnu.org>
3109
3110 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3111 (really-lwlib, really-oldXMenu): Always define.
3112 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3113
3114 * Makefile.in: Simplify cpp conditional.
3115
3116 * Makefile.in (${ns_appdir}): Simplify using umask.
3117
3118 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3119
3120 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3121
3122 * eval.c (specbind): Remove left-over duplicate test.
3123 Disallow let-binding frame-local vars. Add comment.
3124
3125 2010-05-14 Eli Zaretskii <eliz@gnu.org>
3126
3127 Make the cache of bidi iterator states dynamically allocated.
3128 * bidi.c (bidi_cache_shrink): New function.
3129 (bidi_init_it): Call it.
3130 (bidi_cache_iterator_state): Enlarge the cache if needed.
3131
3132 * bidi.c (bidi_move_to_visually_next): Rename from
3133 bidi_get_next_char_visually. All callers changed.
3134
3135 2010-05-14 Kenichi Handa <handa@m17n.org>
3136
3137 * dispextern.h (struct composition_it): New member reversed_p.
3138
3139 * composite.c (composition_compute_stop_pos): Search backward if
3140 ENDPOS < CHARPOS.
3141 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3142 Set CMP_IT->reversed_p.
3143 (composition_update_it): Pay attention to CMP_IT->reversed_p.
3144
3145 * xdisp.c (set_iterator_to_next):
3146 Call composition_compute_stop_pos with negative ENDPOS if we are
3147 scanning backward. Call composition_compute_stop_pos if scan
3148 direction is changed.
3149 (next_element_from_buffer): Call composition_compute_stop_pos with
3150 negative ENDPOS if we are scanning backward.
3151 (next_element_from_composition): Pay attention to
3152 IT->cmp_it.reversed_p.
3153
3154 2010-05-14 Kenichi Handa <handa@m17n.org>
3155
3156 * font.c (font_range): Return the range for the font found at first.
3157
3158 2010-05-14 Glenn Morris <rgm@gnu.org>
3159
3160 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3161
3162 * Makefile.in (mktime, X11, register): Move undefs to configure.
3163
3164 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3165 (MSDOS_X_OBJ): New variable.
3166 (MSDOS_SUPPORT_REAL): New constant.
3167 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3168 (obj): Use MSDOS_X_OBJ.
3169 (lisp): Use MSDOS_SUPPORT as a variable.
3170
3171 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3172 (GPM_MOUSE_SUPPORT): Now it's a constant.
3173 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3174 not cpp.
3175
3176 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3177 (ns_appresdir): Remove, unused.
3178
3179 * Makefile.in (SHELL): Move outside cpp section.
3180
3181 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3182
3183 2010-05-13 Glenn Morris <rgm@gnu.org>
3184
3185 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3186 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3187
3188 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3189 HAVE_WINDOW_SYSTEM must be too.
3190
3191 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3192 (lisp): Remove WINNT_SUPPORT.
3193
3194 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3195 Let configure set these variables (to empty) in this case as well.
3196
3197 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3198 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3199
3200 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3201 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3202 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3203 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3204 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3205 the values output by configure.
3206 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3207
3208 2010-05-12 Glenn Morris <rgm@gnu.org>
3209
3210 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3211 (LINKER_WAS_SPECIFIED): Remove.
3212
3213 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3214 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3215 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3216 * s/cygwin.h (LIB_GCC):
3217 * s/freebsd.h (LIB_GCC):
3218 * s/gnu-linux.h (LIB_GCC):
3219 * s/msdos.h (LIB_GCC):
3220 * s/netbsd.h (LIB_GCC):
3221 Move to configure.
3222
3223 2010-05-11 Karel Klic <kklic@redhat.com>
3224
3225 * ftfont.c: Fix incorrect parentheses of #if condition for
3226 definining M17N_FLT_USE_NEW_FEATURE.
3227
3228 2010-05-11 Glenn Morris <rgm@gnu.org>
3229
3230 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3231 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3232
3233 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3234
3235 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3236 unibyte buffers. See
3237 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3238
3239 2010-05-10 Glenn Morris <rgm@gnu.org>
3240
3241 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3242 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3243 (LIBES): Use LIBS_SYSTEM as a variable.
3244 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3245 * s/aix4-2.h (LIBS_SYSTEM):
3246 * s/freebsd.h (LIBS_SYSTEM):
3247 * s/hpux10-20.h (LIBS_SYSTEM):
3248 * s/sol2-6.h (LIBS_SYSTEM):
3249 * s/unixware.h (LIBS_SYSTEM):
3250 Move to configure.
3251
3252 * s/aix4-2.h (MAIL_USE_LOCKF):
3253 * s/bsd-common.h (MAIL_USE_FLOCK):
3254 * s/darwin.h (MAIL_USE_FLOCK):
3255 * s/gnu-linux.h (MAIL_USE_FLOCK):
3256 * s/irix6-5.h (MAIL_USE_FLOCK):
3257 * s/template.h (MAIL_USE_FLOCK):
3258 Move to configure.
3259
3260 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3261
3262 * Version 23.2 released.
3263
3264 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3265
3266 * composite.c (autocmp_chars): Save point as marker before calling
3267 auto-composition-function (Bug#5984).
3268
3269 * lisp.h (restore_point_unwind): Add prototype.
3270
3271 * fileio.c (restore_point_unwind): Remove static attribute.
3272
3273 2010-05-08 Kenichi Handa <handa@m17n.org>
3274
3275 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3276 new feature of libotf and m17n-flt.
3277 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3278 Call OTF_check_features even if no specific feature is given.
3279 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3280 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3281 that OUT is NULL. Use OTF_drive_gsub_with_log and
3282 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3283 OTF_drive_gpos.
3284 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3285 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3286 Setup mflt_enable_new_feature and mflt_try_otf.
3287
3288 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3289
3290 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3291
3292 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3293 box and toolbar (Bug #6139).
3294 (xg_create_tool_bar): Remove comment (Bug #6139).
3295 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3296 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3297
3298 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3299
3300 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3301 Update dependencies.
3302
3303 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3304
3305 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3306 R2L lines.
3307
3308 2010-05-08 Glenn Morris <rgm@gnu.org>
3309
3310 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3311
3312 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3313 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3314 (termcapobj): Replace with TERMCAP_OBJ.
3315 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3316 (LIBES): Use LIBS_TERMCAP as a variable.
3317
3318 * s/freebsd.h (osreldate.h): No longer include, since this file
3319 does not use __FreeBSD_version any more.
3320
3321 * s/aix4-2.h (TERMINFO):
3322 * s/cygwin.h (TERMINFO):
3323 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3324 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3325 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3326 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3327 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3328 * s/irix6-5.h (TERMINFO):
3329 * s/netbsd.h (LIBS_TERMCAP):
3330 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3331 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3332 * s/usg5-4.h (TERMINFO):
3333 Move to configure.
3334
3335 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3336
3337 * eval.c (unbind_to): Don't unbind a local binding into the global
3338 binding when the local binding disappeared. Inversely, don't unbind
3339 a global binding into a newly created local binding.
3340 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3341 can specify the frame to use, when applicable. Adjust callers.
3342
3343 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
3344 Stefan Monnier <monnier@iro.umontreal.ca>
3345
3346 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3347
3348 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3349
3350 * w32fns.c: Include w32.h.
3351 (Fw32_shell_execute): Decode the error message before passing it
3352 to `error'. (Bug#6126)
3353
3354 * msdos.c (dos_set_window_size):
3355 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3356 instead of `XSYMBOL (foo)->value'.
3357
3358 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3359
3360 Fix the MS-DOS build, broken by autoconfiscation.
3361
3362 * Makefile.in: Don't use Make-style comments past the "start of
3363 cpp stuff" line.
3364 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3365
3366 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3367 edited directly by msdos/sed1v2.inp).
3368
3369 2010-05-07 Glenn Morris <rgm@gnu.org>
3370
3371 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3372 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3373 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3374 move out of cpp section.
3375 * s/freebsd.h (LD_SWITCH_SYSTEM):
3376 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3377 * s/netbsd.h (LD_SWITCH_SYSTEM):
3378 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3379
3380 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3381
3382 Define LIB_STANDARD and START_FILES using autoconf.
3383 * s/usg5-4.h (LIB_STANDARD):
3384 * s/netbsd.h (START_FILES):
3385 * s/irix6-5.h (LIB_STANDARD):
3386 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3387 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3388 * s/freebsd.h (START_FILES):
3389 * s/darwin.h (START_FILES):
3390 * s/cygwin.h (START_FILES):
3391 * s/aix4-2.h (LIB_STANDARD):
3392 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3393 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3394 autoconf, not cpp.
3395
3396 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3397
3398 Remove NEED_BSDTTY and NEED_UNISTD_H.
3399 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3400 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3401 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3402 <sys/ptyio.h> and <unistd.h>.
3403
3404 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3405
3406 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3407 * s/gnu.h (START_FILES): Remove empty definition.
3408
3409 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3410
3411 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3412
3413 2010-05-06 Glenn Morris <rgm@gnu.org>
3414
3415 * Makefile.in (CPP, LN_S): Remove unused variables.
3416
3417 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3418
3419 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3420
3421 2010-05-05 Lawrence Mitchell <wence@gmx.li>
3422
3423 * m/sparc.h: Fix typo in earlier change.
3424
3425 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3426
3427 Misc tweaks.
3428 * eval.c (Fdefvaralias): Remove unintended nested if.
3429 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3430
3431 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
3432
3433 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3434
3435 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3436
3437 Remove BSD_PGRPS.
3438 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3439 * s/gnu-linux.h (BSD_PGRPS): Remove.
3440 * term.c (dissociate_if_controlling_tty):
3441 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3442 (init_sys_modes, reset_sys_modes):
3443 * emacs.c (main):
3444 * callproc.c (Fcall_process, child_setup): Remove code depending
3445 on BSD_PGRPS.
3446
3447 Remove POSIX_SIGNALS.
3448 * s/usg5-4.h (POSIX_SIGNALS):
3449 * s/netbsd.h (POSIX_SIGNALS):
3450 * s/msdos.h (POSIX_SIGNALS):
3451 * s/ms-w32.h (POSIX_SIGNALS):
3452 * s/hpux11.h (POSIX_SIGNALS):
3453 * s/gnu.h (POSIX_SIGNALS):
3454 * s/gnu-linux.h (POSIX_SIGNALS):
3455 * s/freebsd.h (POSIX_SIGNALS):
3456 * s/darwin.h (POSIX_SIGNALS):
3457 * s/cygwin.h (POSIX_SIGNALS):
3458 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3459 * s/unixware.h:
3460 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3461 * process.c (create_process):
3462 * syssignal.h:
3463 * sysdep.c (wait_for_termination, init_signals):
3464 * process.c (create_process):
3465 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3466 remove all code that assumes the contrary.
3467
3468 2010-05-04 Glenn Morris <rgm@gnu.org>
3469
3470 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3471 variable.
3472 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3473 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3474 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3475 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3476 LD_SWITCH_SYSTEM_tmp.
3477 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3478 New variables, set by configure.
3479
3480 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3481 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3482 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3483 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3484 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3485
3486 * s/aix4-2.h (C_SWITCH_SYSTEM):
3487 * m/alpha.h (C_SWITCH_MACHINE):
3488 Move to configure.in.
3489 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3490 New variables, set by configure.
3491 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3492 $c_switch_machine and $c_switch_system.
3493
3494 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3495
3496 * s/hpux10-20.h (LIB_STANDARD): New definition.
3497 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3498 on it, not used anymore.
3499
3500 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3501
3502 * eval.c (internal_condition_case_n): Rename from
3503 internal_condition_case_2.
3504 (internal_condition_case_2): New function.
3505
3506 * xdisp.c (safe_call): Use internal_condition_case_n.
3507
3508 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3509 (internal_delete_file, Frename_file): Callers changed.
3510
3511 * buffer.c (Fkill_buffer):
3512 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3513
3514 * lisp.h: Update prototypes.
3515
3516 2010-05-03 Glenn Morris <rgm@gnu.org>
3517
3518 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3519 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3520 (LIBXT): Set with configure, not cpp.
3521 (LIBX): Remove.
3522 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3523
3524 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3525
3526 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3527 The FreeBSD is not needed, the default works, Solaris version is
3528 not needed, and the remaining case is not supported by configure.
3529
3530 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3531
3532 * xsmfns.c (CHDIR_OPT): New define.
3533 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3534 restarting emacs.
3535
3536 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3537 shut_down_emacs.
3538
3539 * emacs.c (USAGE1): Mention --chdir.
3540 (main): Handle --chdir.
3541 (standard_args): Add --chdir.
3542 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3543 #5552).
3544
3545 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3546
3547 Remove LD_SWITCH_MACHINE.
3548 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3549 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3550
3551 Clean up IRIX code.
3552 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3553 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3554
3555 Clean up AIX code.
3556 * m/ibmrs6000.inp: Remove file, unused.
3557 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3558 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3559 definition ...
3560 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3561
3562 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3563 unused.
3564
3565 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3566
3567 Emulate POSIX_SIGNALS on MS-Windows.
3568
3569 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3570 (SIG_SETMASK, SIG_UNBLOCK): Define.
3571
3572 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3573 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3574 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3575
3576 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3577 New stubs.
3578
3579 Miscellaneous fixes of bidi display.
3580
3581 * xdisp.c (find_row_end): New function, refactored from display_line.
3582 (display_line): Use it.
3583 (extend_face_to_end_of_line): In almost-filled rows, extend only
3584 if the row is R2L and not continued.
3585 (display_line): Fix prepending of truncation glyphs to R2L rows.
3586 Preserve overlay and string info in row->end.
3587 (insert_left_trunc_glyphs): Support addition of left truncation
3588 glyphs to R2L rows.
3589 (set_cursor_from_row): Don't place cursor on the vertical border
3590 glyph between adjacent windows. Fix a crash when a display string
3591 is continued to the next line. Don't return zero if cursor was
3592 found by `cursor' property of a display string.
3593 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3594 test for that explicitly.
3595
3596 2010-05-01 Glenn Morris <rgm@gnu.org>
3597
3598 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3599 for clarity.
3600 (OTHER_OBJ): Remove.
3601 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3602 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3603
3604 2010-05-01 Karel Klíč <kklic@redhat.com>
3605
3606 * fileio.c (Ffile_selinux_context): Context functions may return null.
3607
3608 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3609
3610 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3611
3612 2010-04-30 Glenn Morris <rgm@gnu.org>
3613
3614 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3615 (OTHER_OBJ): Define as a separate variable, for clarity.
3616
3617 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3618
3619 * xsettings.c: include limits.h and update file comment.
3620
3621 2010-04-30 Glenn Morris <rgm@gnu.org>
3622
3623 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3624 Set with configure, not cpp.
3625 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3626
3627 * Makefile.in (mallocobj): Remove.
3628 (otherobj): Simplify using @OTHER_OBJ@.
3629
3630 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3631 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3632 Don't bother making nsgui.h dependency platform-specific.
3633
3634 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3635
3636 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3637
3638 * process.c (read_process_output, exec_sentinel): Don't burp if the
3639 sentinel/filter kills the current buffer (bug#6060).
3640
3641 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3642 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3643 Remove unused var `args'.
3644 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3645 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3646 * doc.c (store_function_docstring): Use XSETCAR.
3647
3648 2010-04-28 Glenn Morris <rgm@gnu.org>
3649
3650 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3651 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3652
3653 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3654
3655 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3656 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3657
3658 * Makefile.in (FONT_OBJ): New, set by configure.
3659 (FONT_DRIVERS): Use $FONT_OBJ.
3660
3661 * Makefile.in (LIBXMU): Set with configure, not cpp.
3662 * s/aix4-2.h (LIBXMU):
3663 * s/hpux10-20.h (LIBXMU):
3664 Remove definition, now set in configure.
3665
3666 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3667
3668 * m/amdx86-64.h [i386]: Move this test to configure.in.
3669
3670 2010-04-27 Glenn Morris <rgm@gnu.org>
3671
3672 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3673 * s/unixware.h (NEED_LIBW): Remove definition.
3674
3675 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3676 (TOOLKIT_LIBW): New, set by configure.
3677 (@X_TOOLKIT_TYPE@): No longer define it.
3678
3679 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3680 (MOTIF_LIBW): Set with configure, not cpp.
3681 * s/aix4-2.h (LIB_MOTIF):
3682 * s/gnu-linux.h (LIB_MOTIF):
3683 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3684
3685 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3686
3687 Reduce CPP usage.
3688 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3689 (obj): Use autoconf for unexec instead of cpp.
3690 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3691 definitions and undefs. Inline definitions in the only user.
3692 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3693
3694 2010-04-27 Glenn Morris <rgm@gnu.org>
3695
3696 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3697 since the defaults (set by the system file) are fine in most cases.
3698 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3699 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3700 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3701 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3702 Remove definitions, since they are set correctly in s/gnu-linux.h.
3703 * s/freebsd.h (START_FILES, LIB_STANDARD):
3704 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3705 * s/hpux10-20.h (START_FILES):
3706 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3707 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3708
3709 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3710 (MOTIF_LIBW): Use $LIBXP.
3711 (otherobj): Use $WIDGET_OBJ.
3712
3713 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3714
3715 * Makefile.in (LIBS_MACHINE): Remove, unused.
3716
3717 Use autoconf instead of cpp for LIB_MATH.
3718 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3719 * s/cygwin.h (LIB_MATH): Likewise.
3720 * Makefile.in (LIB_MATH): Do not define with cpp.
3721 (LIBES): Use autoconf for LIB_MATH.
3722
3723 2010-04-26 Kenichi Handa <handa@m17n.org>
3724
3725 * composite.c (Ffind_composition_internal): Fix the return value
3726 for an automatic composition.
3727
3728 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3729
3730 Remove all NO_ARG_ARRAY uses.
3731 * fns.c (concat2, concat3, nconc2):
3732 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3733 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3734 * m/xtensa.h (NO_ARG_ARRAY):
3735 * m/template.h (NO_ARG_ARRAY):
3736 * m/sparc.h (NO_ARG_ARRAY):
3737 * m/sh3.h (NO_ARG_ARRAY):
3738 * m/mips.h (NO_ARG_ARRAY):
3739 * m/macppc.h (NO_ARG_ARRAY):
3740 * m/iris4d.h (NO_ARG_ARRAY):
3741 * m/intel386.h (NO_ARG_ARRAY):
3742 * m/ibms390x.h (NO_ARG_ARRAY):
3743 * m/ibms390.h (NO_ARG_ARRAY):
3744 * m/ibmrs6000.h (NO_ARG_ARRAY):
3745 * m/ia64.h (NO_ARG_ARRAY):
3746 * m/hp800.h (NO_ARG_ARRAY):
3747 * m/arm.h (NO_ARG_ARRAY):
3748 * m/amdx86-64.h (NO_ARG_ARRAY):
3749 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3750
3751 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3752
3753 * xdisp.c (display_line): Don't assume 2nd call to
3754 get_next_display_element cannot return zero. (Bug#6030)
3755 (iterate_out_of_display_property): New function, body from pop_it.
3756 (pop_it): Use it.
3757
3758 2010-04-24 Glenn Morris <rgm@gnu.org>
3759
3760 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3761 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3762 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3763 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3764
3765 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3766
3767 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3768 use `get_next_display_element' and `set_iterator_to_next' to
3769 advance to the next character, when looking for the character that
3770 begins the next row.
3771
3772 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3773 definition of "struct Lisp_Symbol".
3774
3775 2010-04-24 Glenn Morris <rgm@gnu.org>
3776
3777 * Makefile.in (CRT_DIR): New variable, set by configure.
3778 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3779 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3780
3781 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3782
3783 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3784
3785 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3786
3787 Remove redundant flags.
3788 * s/freebsd.h (C_SWITCH_SYSTEM):
3789 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3790 * s/netbsd.h (C_SWITCH_SYSTEM):
3791 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3792 of these.
3793
3794 Simplify m/intel386.h.
3795 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3796 user: ecrt0.c.
3797 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3798 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3799 the only user: s/unixware.h.
3800 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3801 from m/intel386.h.
3802 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3803 moved here from m/intel386.h.
3804
3805 * m/mips.h: Remove #if 0 code.
3806
3807 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3808
3809 Fix display of composed characters from L2R scripts in bidi buffers.
3810 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3811 After advancing IT past the composition, resync the bidi iterator
3812 with IT's position. (Bug#5977)
3813
3814 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3815
3816 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3817 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3818
3819 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3820
3821 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3822
3823 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3824
3825 Support `display' text properties and overlay strings in bidi buffers.
3826 * xdisp.c (pop_it): When the stack is popped after displaying
3827 from a string, bidi-iterate to exit from the text portion covered
3828 by the `display' property or overlay. (Bug#5988, bug#5920)
3829
3830 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3831
3832 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3833 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3834
3835 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3836 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3837
3838 Simplify STARTFILES definition.
3839 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3840 relying on Makefile.in to define it.
3841 * s/cygwin.h (START_FILES): Likewise.
3842 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3843
3844 Clean up Solaris code.
3845 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3846 (LIB_MOTIF): Remove, configure takes care of this.
3847 (NOT_USING_MOTIF): Remove, unused.
3848 * xrdb.c: Remove #if 0-ed #include.
3849 (SYSV): Remove conditional for old SysV.
3850 * sysdep.c (closedir): Remove conditional code for Solaris,
3851 Solaris has closedir.
3852
3853 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3854
3855 * xsettings.c (read_and_apply_settings): Check if current_font is
3856 NULL before strcmp (Bug#6001).
3857
3858 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3859
3860 Clean up HP-UX files.
3861 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3862 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3863 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3864 * s/hpux10-20.h: ... to the only user, here.
3865
3866 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3867
3868 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3869 use buffer-local values of paragraph-start and paragraph-separate.
3870 <paragraph_start_re, paragraph_separate_re>: Rename from
3871 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3872 (Bug#5992)
3873
3874 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3875
3876 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3877 current_tool_bar_style are new.
3878 (store_config_changed_event): Rename from store_font_changed_event.
3879 (XSETTINGS_TOOL_BAR_STYLE): New define.
3880 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3881 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3882 HAVE_XFT.
3883 (something_changedCB): store_font_changed_event is now
3884 store_config_changed_event.
3885 (parse_settings): Rename from parse_xft_settings. Read
3886 non-xft xsettings outside #ifdef HAVE_XFT.
3887 (read_settings): Renamed from read_xft_settings.
3888 (apply_xft_settings): Take current settings as parameter. Do not
3889 call read_(xft)_settings.
3890 (read_and_apply_settings): New function.
3891 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3892 read_and_apply_settings if there are settings to be read.
3893 (init_xsettings): Renamed from init_xfd_settings.
3894 Call read_and_apply_settings unconditionally.
3895 (xsettings_initialize): Call init_xsettings.
3896 (Ftool_bar_get_system_style): New function.
3897 (syms_of_xsettings): Define Qmonospace_font_name and
3898 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3899 defsubr Stool_bar_get_system_style. Fprovide on
3900 dynamic-setting.
3901 Move misplaced HAVE_GCONF
3902
3903 * xsettings.h (Ftool_bar_get_system_style): Declare.
3904
3905 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3906 Qtext, Qboth, Qboth_horiz are new.
3907 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3908 Vtool_bar_style, tool_bar_max_label_size.
3909
3910 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3911
3912 * keyboard.c: QClabel is new.
3913 (parse_tool_bar_item): Take out QClabel from tool bar items.
3914 Try to construct a label if ther is no QClabel.
3915 (syms_of_keyboard): Intern :label as QClabel.
3916
3917 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3918 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3919 New.
3920
3921 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3922 dynamic-setting.el.
3923
3924 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3925 (xg_make_tool_item, xg_show_toolbar_item): New function.
3926 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3927 Call xg_make_tool_item to make a tool bar item.
3928 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3929
3930 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3931 into account for toolbars.
3932
3933 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3934
3935 * data.c (make_blv): Declarations before code (Bug#5993).
3936
3937 2010-04-21 Glenn Morris <rgm@gnu.org>
3938
3939 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3940 Define using autoconf, not cpp.
3941 (LIBXSM): New variable, set by autoconf.
3942 (LIBXT): Use $LIBXSM.
3943
3944 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3945
3946 Remove NOMULTIPLEJOBS, unused.
3947 * s/template.h (NOMULTIPLEJOBS):
3948 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3949
3950 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3951 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3952 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3953 detects -znocombreloc and passes it to the linker
3954 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3955
3956 2010-04-21 Glenn Morris <rgm@gnu.org>
3957
3958 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3959
3960 2010-04-21 Karel Klíč <kklic@redhat.com>
3961
3962 * Makefile.in (LIBSELINUX_LIBS): New.
3963 (LIBES): Add $LIBSELINUX_LIBS.
3964 * eval.c, lisp.h (call7): New function.
3965 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3966 (Ffile_selinux_context, Fset_file_selinux_context):
3967 New functions.
3968 (Fcopy_file): New parameter preserve-selinux-context.
3969 (Frename_file): Preserve selinux context when renaming by copy-file.
3970
3971 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3972 Eli Zaretskii <eliz@gnu.org>
3973
3974 Don't depend on cm.c or termcap.c on Windows, use stubs.
3975 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3976 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3977 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3978 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3979 (sys_tputs, sys_tgetstr): New stubs.
3980 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3981 (tputs, tgetstr): New; define to sys_*.
3982
3983 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3984
3985 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3986
3987 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3988
3989 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3990 Just signal a warning rather than an error when inside a let.
3991 (Fmake_variable_frame_local): Add the same test.
3992
3993 * font.c (syms_of_font): Make the style table vars read-only.
3994
3995 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3996 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3997
3998 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3999
4000 2010-04-20 Eli Zaretskii <eliz@gnu.org>
4001
4002 Fix R2L paragraph display on TTY.
4003
4004 * xdisp.c (unproduce_glyphs): New function.
4005 (display_line): Use it when produced glyphs are discarded from R2L
4006 glyph rows.
4007 (append_composite_glyph): In R2L rows, prepend the glyph rather
4008 than appending it.
4009
4010 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4011 rather than append it. Set up the resolved_level and bidi_type
4012 attributes of the appended glyph.
4013 (produce_special_glyphs): Mirror the backslash continuation
4014 character in R2L lines.
4015
4016 Implement display of R2L paragraphs in GUI sessions.
4017
4018 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4019 append_stretch_glyph.
4020 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4021 off-by-one error in computing x at end of text in the row.
4022 (append_stretch_glyph): In reversed row, prepend the glyph rather
4023 than append it. Set resolved_level and bidi_type of the glyph.
4024 (extend_face_to_end_of_line): If the row is reversed, prepend a
4025 stretch glyph whose width is such that the rightmost glyph will be
4026 drawn at the right margin of the window. Fix off-by-one error on
4027 TTY frames in testing whether a line needs face extension. Fix
4028 face extension at ZV. If this is the last glyph row, use
4029 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4030 region face.
4031 (set_cursor_from_row, display_line): Use
4032 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4033 row->continuation_lines_width.
4034 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4035 are at ZV. Fixes a crash when reseated to ZV by
4036 try_window_reusing_current_matrix.
4037 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4038 which happens with R2L glyph rows. Fixes a crash when inserting a
4039 character at end of an R2L line.
4040 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4041 treat them as having zero-width characters. Improve comments.
4042 Don't reverse pos_before and pos_after for reversed glyph rows.
4043 Set cursor.x to negative value when the cursor might be on the
4044 left fringe.
4045 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4046 left fringe, not the right one.
4047 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4048 (erase_phys_cursor): For reversed cursor_row, support cursor on
4049 the left fringe.
4050
4051 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4052 of continuation indicators on the fringes.
4053 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4054 left fringe.
4055
4056 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4057 draw cursor on the left fringe.
4058
4059 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4060 cursor on the left fringe.
4061
4062 * dispnew.c (update_text_area): Handle reversed desired rows when
4063 the cursor is on the left fringe.
4064 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4065 below, not by 0, for when the cursor is on the left fringe.
4066
4067 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4068
4069 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4070 widget is a scrollbar.
4071
4072 2010-04-20 Kenichi Handa <handa@m17n.org>
4073
4074 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4075 only when the arg CHARSET_LIST is nil.
4076
4077 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4078
4079 Make variable forwarding explicit rather the using special values.
4080 Basically, this makes the structure of buffer-local values and object
4081 forwarding explicit in the type of Lisp_Symbols rather than use
4082 special Lisp_Objects for that. This tends to lead to slightly more
4083 verbose code, but is more C-like, simpler, and makes it easier to make
4084 sure we handled all cases, among other things by letting the compiler
4085 help us check it.
4086 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4087 Removing forwarding objects.
4088 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4089 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4090 explicit rather than hiding them inside Lisp_Object "values".
4091 (XFWDTYPE): New macro.
4092 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4093 (XBUFFER_LOCAL_VALUE): Remove.
4094 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4095 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4096 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4097 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4098 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4099 Remove the Lisp_Misc_* header.
4100 (struct Lisp_Buffer_Local_Value): Redefine.
4101 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4102 (struct Lisp_Misc_Any): Add filler to get the right size.
4103 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4104 Lisp_Intfwd.
4105 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4106 (DEFVAR_KBOARD): Allocate a forwarding object.
4107 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4108 (let_shadows_global_binding_p): New function.
4109 (union Lisp_Val_Fwd): New type.
4110 (make_blv): New function.
4111 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4112 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4113 (swap_in_symval_forwarding, find_symbol_value, Fset)
4114 (let_shadows_buffer_binding_p, set_internal, default_value)
4115 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4116 (Fkill_local_variable, Fmake_variable_frame_local)
4117 (Flocal_variable_p, Flocal_variable_if_set_p)
4118 (Fvariable_binding_locus):
4119 * xdisp.c (select_frame_for_redisplay):
4120 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4121 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4122 * frame.c (store_frame_param):
4123 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4124 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4125 value structure.
4126 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4127 (clone_per_buffer_values): Only adjust markers into the current buffer.
4128 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4129 (Fbuffer_local_value, set_buffer_internal_1)
4130 (swap_out_buffer_local_variables):
4131 Adapt to the new symbol value structure.
4132 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4133 (defvar_per_buffer): Take a new arg for the fwd object.
4134 (buffer_lisp_local_variables): Return a proper alist (different fix
4135 for bug#4138).
4136 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4137 (Fgarbage_collect): Don't handle buffer_defaults specially.
4138 (mark_object): Handle new symbol value structure rather than the old
4139 special Lisp_Misc_* objects.
4140 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4141 * term.c (set_tty_color_mode):
4142 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4143 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4144 a buffer_local_flags.
4145 * print.c (print_object): Get rid of impossible forwarding objects.
4146
4147 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4148
4149 * bidi.c (bidi_get_type, bidi_get_category)
4150 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
4151 (bidi_type_of_next_char, bidi_level_of_next_char):
4152 Declare static. Use `INLINE' rather than `inline'.
4153
4154 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
4155
4156 * dired.c (Ffile_attributes): Fix typo in docstring.
4157
4158 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4159
4160 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4161 NSInteger (Bug#5811).
4162
4163 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4164
4165 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4166 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4167
4168 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4169
4170 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4171
4172 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4173
4174 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4175 terminal frames (Bug#5837).
4176
4177 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4178
4179 * .gdbinit (xsubchartable): New command.
4180
4181 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4182
4183 * xdisp.c (display_line): Don't write beyond the last glyph row in
4184 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4185 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4186 and
4187 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4188
4189 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4190
4191 * alloc.c (Fpurecopy): Hash-cons if requested.
4192 (syms_of_alloc): Update purify-flag docstring.
4193
4194 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4195
4196 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4197 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4198
4199 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4200
4201 Fix a crash when an NSM character is inserted at BEGV.
4202
4203 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4204 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4205 NEUTRAL_B or UNKNOWN_BT.
4206
4207 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4208
4209 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4210 other rows with cursor unless they are different from this row and
4211 this row is part of a continued line. (Bug#5943)
4212
4213 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4214
4215 * s/freebsd.h: Restore osreldate.h include.
4216 Suggested by Naohiro Aota.
4217
4218 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4219
4220 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4221
4222 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4223
4224 * s/cygwin.h: Avoid linking against static libgcc.
4225
4226 2010-04-15 Juri Linkov <juri@jurta.org>
4227
4228 * window.c: Add Qscroll_command.
4229 Remove Vscroll_preserve_screen_position_commands.
4230 (window_scroll_pixel_based, window_scroll_line_based): Check the
4231 `scroll-command' property on the last command instead of searching
4232 the last command in Vscroll_preserve_screen_position_commands.
4233 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4234 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4235 (scroll-preserve-screen-position): Doc fix.
4236 (Vscroll_preserve_screen_position_commands): Remove variable.
4237
4238 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4239
4240 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4241
4242 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4243
4244 Reduce cpp use in Makefile.in.
4245 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4246 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4247 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4248 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4249 (CRT0_COMPILE): Remove, inline it in the only user.
4250
4251 2010-04-14 Juri Linkov <juri@jurta.org>
4252
4253 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4254 `scroll-up-command' and `M-v' from `scroll-down' to
4255 `scroll-down-command'.
4256
4257 2010-04-14 Juri Linkov <juri@jurta.org>
4258
4259 * window.c (Vscroll_preserve_screen_position_commands): New variable
4260 with the default value as the list of Qscroll_down and Qscroll_up.
4261 (window_scroll_pixel_based, window_scroll_line_based): Search the
4262 last command in the list Vscroll_preserve_screen_position_commands
4263 instead of comparing with Qscroll_up and Qscroll_down.
4264
4265 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4266
4267 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4268 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4269 does that.
4270
4271 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4272 to zero.
4273
4274 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4275
4276 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4277
4278 Try to solve the problem of spurious EOF chars in long lines of text
4279 sent to interactive subprocesses.
4280 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4281 (system_process_attributes): Remove unused var `ttotal'.
4282 * process.c (send_process): Don't bother breaking long line with EOF
4283 chars when talking to ttys any more.
4284 (wait_reading_process_output): Output a warning when called in such
4285 a way that it could block without being interruptible.
4286
4287 Try to detect file modification within the same second.
4288 * buffer.h (struct buffer): New field modtime_size.
4289 * buffer.c (reset_buffer): Initialize it.
4290 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4291 (Fverify_visited_file_modtime): Check it.
4292 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4293 (Fset_visited_file_modtime): Set (or clear) it.
4294
4295 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4296
4297 * process.c (status_notify): Remove unused var `ro'.
4298
4299 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4300
4301 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4302 more than one visual (Bug#5938).
4303
4304 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4305
4306 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4307 Undefine.
4308
4309 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4310
4311 Remove C_SWITCH_SYSTEM_TEMACS.
4312 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4313 (malloc, realloc, free): Use emacs, not temacs for conditional
4314 definition.
4315
4316 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4317 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4318
4319 Use autoconf, not cpp for some variables.
4320 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4321 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4322 (ALL_CFLAGS): Use them as make variables.
4323 (really-lwlib, really-oldXMenu): Do not pass them.
4324
4325 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4326
4327 * xmenu.c (apply_systemfont_to_dialog): New.
4328 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4329
4330 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4331
4332 * process.c (exec_sentinel): Preserve current-buffer.
4333
4334 * process.c (read_process_output): Move the save-current-buffer to
4335 apply to both the filter and the non-filter branches.
4336
4337 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4338
4339 * s/msdos.h (UNEXEC): New definition.
4340
4341 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4342
4343 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4344 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4345
4346 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4347 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4348 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4349 TRY_WINDOW_CHECK_MARGINS.
4350
4351 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
4352 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4353 width only when it is for padding.
4354
4355 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4356
4357 * xfns.c (Fx_show_tip): Call try_window in a loop until
4358 fonts_changed_p is zero (Bug#2423).
4359
4360 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4361
4362 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4363 the end of TEXT_AREA. (Bug#5856)
4364
4365 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4366
4367 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4368 HAVE_GCONF.
4369
4370 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4371
4372 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4373 prev.orig_type, for resolving type of NSM. (Bug#5858)
4374
4375 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4376
4377 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4378 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4379 in current_font.
4380 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
4381 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4382 New functions.
4383 (syms_of_xsettings): Initialize current_font.
4384 defsubr Sfont_get_system_normal_font.
4385
4386 * xsettings.h (Ffont_get_system_normal_font)
4387 (xsettings_get_system_normal_font): Declare.
4388
4389 * xfns.c (extern xlwmenu_default_font): Remove.
4390 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4391 to xlwmenu.c.
4392
4393 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4394 menu items in UTF-8.
4395
4396 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4397 (apply_systemfont_to_menu): New function.
4398 (set_frame_menubar, create_and_show_popup_menu): Call
4399 apply_systemfont_to_menu.
4400
4401 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4402
4403 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4404 FRAME_LINE_TO_PIXEL_Y.
4405
4406 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4407 pixelwidth/height.
4408
4409 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4410
4411 Simplify code for HP machines.
4412 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4413 for GNU_LINUX, not needed.
4414 (UNEXEC, NEED_BSDTTY): Move definitions...
4415 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4416
4417 * m/iris4d.h (UNEXEC): Move definition ...
4418 * s/irix6-5.h (UNEXEC): ... here.
4419
4420 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4421
4422 * xfns.c (set_machine_and_pid_properties): New function.
4423 (Fx_create_frame): Call set_machine_and_pid_properties.
4424
4425 2010-04-03 Eli Zaretskii <eliz@gnu.org>
4426
4427 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4428 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4429 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4430
4431 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4432 in this function. (Bug#5703)
4433
4434 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
4435
4436 * nsterm.h: Fix last change.
4437
4438 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4439
4440 * m/intel386.h (NO_REMAP): Move definition ...
4441 * s/msdos.h (NO_REMAP): ... here.
4442
4443 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4444
4445 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4446 used on those platforms.
4447
4448 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4449
4450 Remove extern errno declarations.
4451 * xterm.c:
4452 * xrdb.c:
4453 * w32term.c:
4454 * unexec.c:
4455 * unexaix.c:
4456 * sysdep.c:
4457 * process.c:
4458 * lread.c:
4459 * keyboard.c:
4460 * floatfns.c:
4461 * filelock.c:
4462 * fileio.c:
4463 * emacs.c (main):
4464 * ecrt0.c:
4465 * dispnew.c:
4466 * callproc.c:
4467 * buffer.c: Remove errno extern declarations.
4468 * s/netbsd.h (NEED_ERRNO): Remove.
4469
4470 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4471
4472 Remove all uses of LIBX11_SYSTEM.
4473 * Makefile.in (LIBX11_SYSTEM): Remove.
4474 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4475 instead.
4476
4477 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4478
4479 Remove support for DJGPP v1.x (bug#5813).
4480
4481 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4482 * s/msdos.h:
4483 * unexec.c (make_hdr, copy_text_and_data):
4484 * sysdep.c (wait_for_termination, sys_subshell):
4485 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4486 (IT_set_terminal_modes, __write, _rename, gethostname)
4487 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4488 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4489 the value of __DJGPP__.
4490 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4491 compatibility code.
4492 * lread.c:
4493 * gmalloc.c (memalign):
4494 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4495 * emacs.c (main):
4496 * dosfns.c (init_dosfns):
4497 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4498
4499 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4500
4501 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4502 string with `cursor' property comes from an `after-string'
4503 overlay. (Bug#5816)
4504
4505 2010-04-01 Glenn Morris <rgm@gnu.org>
4506
4507 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4508 Define as Makefile variables.
4509 (LIBX): Use above variables rather than directly using autoconf.
4510
4511 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4512
4513 Clean up BSD_SYSTEM use.
4514 * xterm.c:
4515 * process.c:
4516 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4517 for including <sys/ioctl.h>.
4518 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4519 code is only used for MSDOS.
4520
4521 2010-03-31 Juri Linkov <juri@jurta.org>
4522
4523 * image.c: Add `Qextension_data'.
4524 (syms_of_image): Initialize and staticpro `Qextension_data'.
4525 (Fimage_metadata): Rename from `Fimage_extension_data'.
4526 (gif_load): Put GIF extension data to the property
4527 `Qextension_data'.
4528
4529 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4530
4531 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4532 * nsterm.h: Fix prototype.
4533
4534 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4535
4536 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4537 trailing whitespace in right-to-left rows.
4538
4539 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4540
4541 Get rid of the direct_output optimizations.
4542 * keyboard.c (nonundocount): Remove extern declaration.
4543 (command_loop_1): Remove brittle optimisation for cheap and
4544 common operations.
4545 * xdisp.c (redisplay_internal): Don't bother checking
4546 redisplay_performed_directly_p any more.
4547 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4548 any more.
4549 * dispnew.c (redisplay_performed_directly_p)
4550 (direct_output_for_insert, direct_output_forward_char):
4551 * dispextern.h (redisplay_performed_directly_p)
4552 (direct_output_for_insert, direct_output_forward_char): Remove.
4553 * cmds.c (nonundocount): Make it static.
4554
4555 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4556
4557 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4558
4559 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4560
4561 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4562 invisible (Bug#5766).
4563
4564 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4565
4566 * xdisp.c (x_consider_frame_title, update_window_cursor):
4567 Remove HAVE_NS conditionals.
4568 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4569
4570 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4571 filename for the title.
4572 (ns_set_doc_edited): Do nothing if the selected window is a
4573 minibuffer window.
4574
4575 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4576 ns_set_doc_edited.
4577
4578 * nsterm.m: Remove unneeded prototype.
4579
4580 2010-03-31 Glenn Morris <rgm@gnu.org>
4581
4582 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4583 in the DOC file. (Bug#5336)
4584
4585 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4586
4587 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4588
4589 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4590
4591 * window.c (keys_of_window): Remove redundant/overridden bindings.
4592
4593 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4594
4595 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4596 Restore original behavior when the iterator is not bidi_p.
4597
4598 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4599
4600 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4601
4602 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4603
4604 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4605 are outside the range of cached character positions.
4606
4607 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4608
4609 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4610
4611 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4612
4613 Initial support for bidirectional editing.
4614
4615 * Makefile.in (obj): Include bidi.o.
4616 (bidi.o): New target.
4617
4618 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4619 ($(BLD)/bidi.$(O)): New target.
4620
4621 * bidi.c: New file.
4622
4623 * buffer.h (struct buffer): New members bidi_display_reordering
4624 and bidi_paragraph_direction.
4625
4626 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4627 and bidi_paragraph_direction.
4628 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4629 and bidi-paragraph-direction.
4630 (Fbuffer_swap_text): Swap the values of
4631 bidi_display_reordering and bidi_paragraph_direction.
4632
4633 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4634 (bidi_type_t, bidi_dir_t): New types.
4635 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4636 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4637 prev_stop, base_level_stop, and eol_pos.
4638 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4639 (IT_STACK_SIZE): Enlarge to 5.
4640 (struct glyph_row): New member reversed_p.
4641 <string_buffer_position>: Update prototype.
4642 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4643 glyph_row if bidi_it.paragraph_dir == R2L.
4644 (struct glyph): New members resolved_level and bidi_type.
4645
4646 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4647 processing or buffer's direction is right-to-left.
4648 (prepare_desired_row): Preserve the reversed_p flag.
4649 (row_equal_p): Compare the reversed_p attributes as well.
4650
4651 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4652 bidi_init_it and set it->paragraph_embedding from the current
4653 buffer's value of bidi_paragraph_direction.
4654 (reseat_1): Initialize bidi_it.first_elt.
4655 (set_iterator_to_next, next_element_from_buffer): Use the value of
4656 paragraph_embedding to determine the paragraph direction.
4657 (set_iterator_to_next): Under bidi reordering, call
4658 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4659 new_paragraph flag is set in the bidi iterator.
4660 (next_element_from_buffer): If bidi_it.first_elt is set,
4661 initialize paragraph direction and find the first character to
4662 display in the visual order. If reseated to a middle of a line,
4663 prime the bidi iterator starting at the line's beginning. Handle
4664 the situation where we overstepped stop_charpos due to
4665 non-linearity of the bidi iteration. Likewise for when we back up
4666 beyond the previous stop_charpos. When moving across stop_charpos,
4667 record it in prev_stop.
4668 (display_line): Set row->end and it->start for the next row to the
4669 next character in logical order. Always extend reversed_p rows to
4670 the end of line, even if they end at ZV. Copy the reversed_p flag
4671 to the next glyph row. Keep calling set_cursor_from_row for
4672 bidi-reordered rows even if we already have a possible candidate
4673 for cursor position. Set row_end after all the row's glyphs have
4674 been produced, by looping over the glyphs. Record the position
4675 after EOL in it->eol_pos, and use it to set end_pos of the last
4676 row produced for a continued line.
4677 <Qright_to_left, Qleft_to_right>: New variables.
4678 (syms_of_xdisp): Initialize and staticpro them.
4679 (string_buffer_position_lim): New function.
4680 (string_buffer_position): Most of code moved to
4681 string_buffer_position_lim. Last argument and return value are
4682 now EMACS_INT; all callers changed.
4683 (set_cursor_from_row): Rewritten to support bidirectional text and
4684 reversed glyph rows.
4685 (text_outside_line_unchanged_p, try_window_id): Disable
4686 optimizations if we are reordering bidirectional text and the
4687 paragraph direction can be affected by the change.
4688 (append_glyph, append_composite_glyph)
4689 (produce_image_glyph, append_stretch_glyph): Set the
4690 resolved_level and bidi_type members of each glyph.
4691 (append_glyph): If the glyph row is reversed, prepend the glyph
4692 rather than appending it.
4693 (handle_stop_backwards): New function.
4694 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4695 (reseat): call handle_stop_backwards to recompute prev_stop and
4696 base_level_stop for the new position.
4697 (handle_invisible_prop): Under bidi iteration, skip invisible text
4698 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4699 paragraph direction. Update IT->prev_stop after skipping
4700 invisible text.
4701 (move_it_in_display_line_to): New variables prev_method
4702 and prev_pos. Compare for strict equality in
4703 BUFFER_POS_REACHED_P.
4704 (try_cursor_movement): Examine all the candidate rows that occlude
4705 point, to return the best match. If rows are bidi-reordered
4706 and point moved backwards, back up to the row that is not a
4707 continuation line, and start looking for a suitable row from
4708 there.
4709
4710 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4711 rather than appending, if the glyph_row's reversed_p flag is set.
4712 Set the resolved_level and bidi_type members of each glyph.
4713
4714 * .gdbinit (pbiditype): New command.
4715 (pgx): Use it to display bidi level and type of the glyph.
4716 (pitx): Display some bidi information about the iterator.
4717 (prowlims, pmtxrows): New commands.
4718
4719 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4720
4721 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4722 * s/usg5-4.h (LIBS_DEBUG):
4723 * s/irix6-5.h (C_DEBUG_SWITCH):
4724 * s/gnu-linux.h (LIBS_DEBUG):
4725 * s/darwin.h (LIBS_DEBUG):
4726 * s/bsd-common.h (LIBS_DEBUG):
4727 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4728 * m/iris4d.h (LIBS_DEBUG):
4729 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4730
4731 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4732 (LIBS_DEBUG): Remove definition.
4733
4734 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4735
4736 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4737 Windows.
4738
4739 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4740
4741 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4742 `connect' (Bug#5723).
4743
4744 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4745
4746 * process.c (Fmake_network_process): Call `select' for interrupted
4747 `connect' rather than creating new socket (Bug#5173).
4748
4749 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4750
4751 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4752
4753 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4754
4755 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4756
4757 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4758
4759 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4760 XLoadQueryFont.
4761
4762 2010-03-24 Kenichi Handa <handa@m17n.org>
4763
4764 * coding.c (decode_coding_ccl): Fix previous change for the
4765 multibyte case.
4766 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4767 case that the output buffer is fullfilled.
4768 (encode_coding): Setup ccl program here.
4769
4770 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4771
4772 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4773
4774 Simplify LIBS_MACHINE definitions.
4775 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4776 * m/iris4d.h (LIBS_MACHINE): Likewise.
4777 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4778 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4779 * s/netbsd.h: Remove commented out code.
4780
4781 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4782
4783 Remove dead code dealing with POSIX_SIGNALS.
4784 * atimer.c (set_alarm): Remove dead code, all USG systems define
4785 POSIX_SIGNALS.
4786 * data.c (arith_error): Likewise.
4787 * keyboard.c (input_available_signal, handle_user_signal)
4788 (interrupt_signal): Likewise.
4789 * process.c (sigchld_handler): Likewise.
4790 (create_process): Remove if 0 code. Remove HPUX conditional when
4791 !defined (POSIX_SIGNALS), it cannot be true.
4792 * syssignal.h: Remove USG5_4 and USG conditionals when
4793 !POSIX_SIGNALS, they cannot be true.
4794
4795 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4796 NO_SOCK_SIGIO, not used anymore.
4797
4798 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4799
4800 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4801 support vax on BSDs.
4802
4803 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4804 * s/aix4-2.h (ORDINARY_LINK): ... here.
4805
4806 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4807
4808 * Makefile.in (abs_builddir): Define.
4809 (bootstrap_exe): Use it.
4810 (VPATH): Use $(srcdir) instead of @srcdir@.
4811
4812 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4813
4814 * Makefile.in (bootstrap_exe): Use an absolute name.
4815
4816 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4817
4818 Remove support for old GNU/Linux using libc version 5.
4819 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4820 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4821
4822 Consolidate redundant definitions in s/bsd-common.h.
4823 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4824 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4825 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4826 doing it in all files that include this one.
4827 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4828 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4829 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4830 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4831 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4832 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4833 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4834 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4835 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4836
4837 Consolidate redundant definitions.
4838 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4839 it's undefined in all files that include this one.
4840 (POSIX_SIGNALS): Define here instead of doing it in all files that
4841 include this one.
4842 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4843 (POSIX_SIGNALS): Do not define.
4844 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4845 (POSIX_SIGNALS): Do not define.
4846 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4847 (POSIX_SIGNALS): Do not define.
4848
4849 Remove support for old UNIX System V systems.
4850 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4851 * s/usg-5-4-2.h: Remove.
4852
4853 Remove support for Solaris on PPC and for old versions.
4854 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4855 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4856 that cancel each other.
4857 * s/sol2-3.h:
4858 * s/sol2-4.h:
4859 * s/sol2-5.h: Remove.
4860 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4861 (NO_REMAP): Remove, unused.
4862 (UNEXEC): Move definition ...
4863 * s/aix4-2.h (UNEXEC): ... here.
4864
4865 * s/openbsd.h: Remove support for non-ELF and for systems that do
4866 not support shared libraries.
4867 * s/netbsd.h:
4868 * s/freebsd.h: Likewise.
4869
4870 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4871
4872 Remove non-working support for lynxos 3.0.
4873 * s/lynxos.h: Remove file.
4874
4875 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4876 COFF_BSD_SYMBOLS, nothing defines it anymore.
4877
4878 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4879
4880 Remove obsolete uses of HAVE_SHM.
4881 * emacs.c (standard_args):
4882 (Fdump_emacs):
4883 (syms_of_emacs): Remove code depending on HAVE_SHM.
4884
4885 * alloc.c: Remove HAVE_SHM dependent definition.
4886
4887 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4888
4889 2010-03-18 Glenn Morris <rgm@gnu.org>
4890
4891 * emacs.c (USAGE4): Hard-code bug address.
4892 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4893 (bug_reporting_address): Remove.
4894 (main): Don't call bug_reporting_address.
4895
4896 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4897 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4898
4899 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4900
4901 * xfns.c (Fx_create_frame):
4902 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4903 on left.
4904
4905 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4906
4907 * editfns.c (Fformat): Account for string precision when computing
4908 field width (Bug#5710).
4909
4910 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4911
4912 * xfns.c (Fx_create_frame): Set default to Qright.
4913
4914 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4915 all window systems.
4916
4917 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4918
4919 These changes remove termcap.c from the build on Posix platforms.
4920 * Makefile.in (termcapobj): Move termcap.o from here...
4921 (MSDOS_OBJ): ...to here.
4922 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4923 now identical to when LIBS_TERMCAP is defined.
4924
4925 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4926
4927 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4928
4929 * config.in: Regenerated. (See top-level ChangeLog.)
4930
4931 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4932
4933 * Branch for 23.2.
4934
4935 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4936
4937 Cleanup setup of gl_state in various parts of the code.
4938 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4939 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4940 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4941 (skip_chars):
4942 * regex.c (regex_compile): Use it.
4943 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4944 it's now set in regex_compile when/if we need it.
4945
4946 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4947
4948 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4949 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4950 (QUIT): Use it to consolidate code and remove redundancy.
4951 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4952
4953 * regex.c (regex_compile): Setup gl_state as well.
4954
4955 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4956 (in_classes): Use CONSP before XCAR/XCDR.
4957
4958 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4959
4960 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4961 definitions, so that keyboard macros are correctly handled
4962 (Bug#5481).
4963
4964 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4965
4966 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4967 text that could be relocated inside the call to emacs_mule_char.
4968 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4969 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4970
4971 2010-03-02 Kenichi Handa <handa@m17n.org>
4972
4973 * character.c (parse_str_as_multibyte): Fix handling of the
4974 multibyte form of raw-bytes.
4975 (str_as_multibyte): Likewise.
4976
4977 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4978 form of raw-bytes.
4979
4980 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4981
4982 * charset.c (load_charset_map_from_file)
4983 (load_charset_map_from_vector): Zero out allocated
4984 charset_map_entries before using them.
4985
4986 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4987
4988 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4989
4990 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
4991
4992 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4993 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4994
4995 2010-02-26 Kenichi Handa <handa@m17n.org>
4996
4997 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4998
4999 * xdisp.c (reseat_to_string): Fix previous change.
5000
5001 2010-02-26 David Reitter <david.reitter@gmail.com>
5002
5003 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5004 Lisp_Object (Bug#4736).
5005
5006 2010-02-25 Kenichi Handa <handa@m17n.org>
5007
5008 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5009
5010 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5011
5012 * xterm.c (XTflash): Move declarations before statements.
5013
5014 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5015 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5016 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5017 (xg_create_tool_bar): Remove unused variables.
5018 (x_wm_set_size_hint): Move declarations before statements.
5019 (xg_create_frame_widgets): Remove variable grav.
5020
5021 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
5022
5023 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5024
5025 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5026
5027 * term.c (fatal): Add a final \n if needed (bug#5596).
5028
5029 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
5030
5031 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5032
5033 2010-02-18 Glenn Morris <rgm@gnu.org>
5034
5035 * callint.c (Finteractive): Doc fix.
5036
5037 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5038
5039 * coding.c (record_conversion_result):
5040 Handle CODING_RESULT_INSUFFICIENT_DST.
5041 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5042 memory allocation error.
5043
5044 2010-02-17 Kenichi Handa <handa@m17n.org>
5045
5046 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5047 Fix for the case that the output buffer is fullfilled.
5048 (decode_coding): Setup ccl program here. Keep looping when the
5049 decoder stopped because the output buffer is
5050 fullfilled (bug#5534).
5051
5052 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5053
5054 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5055
5056 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
5057 bug #5571.
5058 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
5059 overdrawn.
5060
5061 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5062
5063 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5064 doing_interact here.
5065 (ice_connection_closed): New function.
5066 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5067 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5068 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5069 returns I/O error.
5070 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5071 bug #5512.
5072
5073 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
5074
5075 * nsfont.m (nsfont_open): The system's value for the font descent
5076 is negative, so round it down to avoid clipping.
5077
5078 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
5079
5080 * charset.c (load_charset_map_from_file)
5081 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
5082 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
5083
5084 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
5085
5086 * charset.c (load_charset_map_from_file): Allocate large
5087 charset_map_entries structure on the heap rather than the stack.
5088 (Bug#5526).
5089
5090 2010-01-31 Kenichi Handa <handa@m17n.org>
5091
5092 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
5093 size in NAME is invalid, return -1 (Bug#5396).
5094
5095 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
5096
5097 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5098 <deactivated@gmail.com> (Bug#3605).
5099
5100 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
5101
5102 * fileio.c (Frename_file): Correctly rename symlinks to
5103 directories (Bug#5496).
5104
5105 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5106
5107 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5108
5109 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5110
5111 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5112
5113 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
5114
5115 * frame.c (DEFAULT_ROWS): Change default to 35.
5116
5117 * xfns.c (x_default_font_parameter): Change default XFT font to
5118 monospace-10 (Bug#3643).
5119
5120 2010-01-29 Eli Zaretskii <eliz@gnu.org>
5121
5122 * w32inevt.c (key_event): Remove unnecessary comparison of
5123 event->uChar.AsciiChar with 128.
5124
5125 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
5126
5127 * fileio.c (Frename_file): Fix last change (Bug#5487).
5128
5129 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5130
5131 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5132
5133 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5134
5135 * xfns.c (Fx_create_frame): Remove window size matching code from
5136 2010-01-15.
5137 (x_get_current_desktop, x_get_desktop_workarea): Remove.
5138
5139 2010-01-27 Jason Rumney <jasonr@gnu.org>
5140
5141 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
5142 (key_event): Use unicode for characters 128 and higher (Bug#4567).
5143
5144 2010-01-27 Kenichi Handa <handa@m17n.org>
5145
5146 * regex.c (analyse_first): Fix setting of fastmap for unibyte
5147 pattern string (Bug#4209).
5148
5149 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
5150
5151 * fileio.c (Frename_file): Call copy-directory and
5152 delete-directory for directories, in order to handle cross-device
5153 renaming (Bug#3353).
5154
5155 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5156
5157 * xfns.c (Fx_create_frame): If frame height is too big, try
5158 sizes 24 and 10. Bug #3643.
5159
5160 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5161
5162 Try and fix bug#788, hopefully for real this time.
5163 * keymap.c (shadow_lookup): Add `remap' arg.
5164 (describe_map, describe_vector): Update calls to shadow_lookup.
5165 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5166 `remapped' so this flag is applicable to `sequence'. Be careful to
5167 perform remapping during shadow_lookup check of remapped_sequences.
5168
5169 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5170
5171 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5172 png_check_sig, which has been removed in libpng 1.4.
5173
5174 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5175
5176 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5177 lacks this header file).
5178
5179 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5180
5181 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5182 as in Emacs 22.
5183
5184 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5185
5186 * lisp.h (make_pure_string): String pointer arg now points to const.
5187
5188 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5189 args now point to const.
5190
5191 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5192
5193 * lread.c (Fload): Don't treat files without .elc extension as
5194 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5195 them. (bug#5303)
5196
5197 2010-01-20 Kenichi Handa <handa@m17n.org>
5198
5199 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5200 treat the source as actual byte sequence.
5201
5202 2010-01-19 Alan Mackenzie <acm@muc.de>
5203
5204 Fix spurious before-change-functions invocation from (insert ?\n).
5205 * textprop.c (set_text_properties): Rename parameter
5206 `signal_after_change_p' to `coherent_change_p', and make the
5207 invocation of `modify_region' conditional on it.
5208
5209 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5210
5211 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5212 for debug purpose.
5213 (syms_of_xsettings): Declare xft-settings.
5214
5215 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5216
5217 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5218
5219 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5220
5221 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5222
5223 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5224
5225 * emacs.c (standard_args): Adjust arg priorities to reflect how
5226 they are processed in startup.el.
5227
5228 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5229
5230 * Makefile.in (lisp, shortlisp): Update.
5231
5232 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5233
5234 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5235 code, link the new kboard into all_kboard before running Lisp code,
5236 and protect the new terminal with GCPRO (Bug#5365).
5237 (x_term_init): Remove unused var `atom'.
5238 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5239
5240 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5241
5242 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5243 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5244 to find out usable size of the desktop. Don't make frames larger than
5245 this. Bug #3643.
5246
5247 2010-01-15 Kenichi Handa <handa@m17n.org>
5248
5249 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5250
5251 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5252
5253 * nsterm.m (Qnone): Define.
5254
5255 * nsfns.m (Qnone): Move definition to nsterm.m.
5256
5257 2010-01-14 Kenichi Handa <handa@m17n.org>
5258
5259 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5260 systems.
5261
5262 2010-01-14 Kenichi Handa <handa@m17n.org>
5263
5264 Make auto-composition work on all buffers even if they are
5265 fundamental mode.
5266
5267 * composite.c (Vauto_composition_mode): New variable.
5268 (composition_compute_stop_pos): Check Vauto_composition_mode
5269 instead of Vauto_composition_function.
5270 (composition_adjust_point, Ffind_composition_internal): Likewise.
5271 (syms_of_composite): Declare Lisp variable
5272 "auto-composition-mode" here.
5273
5274 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5275
5276 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5277 during call to vendor-specific-keysyms (Bug#5365).
5278
5279 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5280
5281 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5282 Call SIGNAL_THREAD_CHECK (Bug#5333).
5283
5284 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5285 Call SIGNAL_THREAD_CHECK.
5286
5287 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5288
5289 Try to fix bug#5314. This is probably not the final word, tho.
5290 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5291 recent-auto-save-p as a side-effect.
5292 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5293 * buffer.c (Fkill_buffer, reset_buffer):
5294 * editfns.c (Fsubst_char_in_region):
5295 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5296 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5297
5298 2010-01-13 Kenichi Handa <handa@m17n.org>
5299
5300 Display buffer name, etc. in mode line by composing correctly.
5301
5302 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5303 STRING is not nil.
5304 (display_mode_element): Adjust for the change of
5305 decode_mode_spec and display_line.
5306 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5307 (display_string): Handle the case that STRING is non-null and
5308 LISP_STRING is not nil.
5309
5310 * xterm.c (x_draw_composite_glyph_string_foreground):
5311 Pay attention to s->face->overstrike.
5312
5313 * composite.c (composition_reseat_it): Don't check PT if STRING is
5314 non nil.
5315
5316 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5317
5318 * keyboard.c (read_char): Don't apply previous change when current
5319 buffer is unchanged by command execution.
5320
5321 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5322
5323 * keyboard.c (read_char): Return after executing from special map.
5324
5325 2010-01-12 Glenn Morris <rgm@gnu.org>
5326
5327 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5328 bug-gnu-emacs rather than emacs-pretest-bug.
5329
5330 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
5331
5332 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5333 initializing the Lisp variables that depend on them.
5334
5335 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5336
5337 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5338 Clear areas that will not be updated after change of menu bar lines.
5339 Clear the menu bar window's current matrix when the window gets empty.
5340
5341 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * intervals.h, textprop.c (extend_property_ranges): Return value
5344 and args changed. Discard properties that begin at or after the
5345 new end (Bug#5306).
5346
5347 * editfns.c (Fformat): Caller changed.
5348
5349 * nsterm.m (ns_set_default_prefs): Delete function.
5350 (syms_of_nsterm): Initialize ns_command_modifier,
5351 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5352 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5353
5354 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5355 position (Bug#4040).
5356
5357 2010-01-09 Eli Zaretskii <eliz@gnu.org>
5358
5359 * editfns.c (Ffloat_time): Doc fix.
5360
5361 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5362
5363 * xfns.c (Fx_create_frame): Don't create frame larger than display
5364 by default bug#3643.
5365
5366 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5367
5368 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5369 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5370 windows above internal border.
5371
5372 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5373 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5374 windows above internal border.
5375
5376 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5377 tool bar windows specially.
5378
5379 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5380
5381 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5382 specially.
5383 (XTflash): Take account of menu bar height.
5384
5385 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5386 specially.
5387
5388 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5389
5390 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5391 also be true before we can return early (bug #5339).
5392
5393 2010-01-06 David Reitter <david.reitter@gmail.com>
5394
5395 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5396 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5397 (Bug#3233).
5398
5399 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5400
5401 * font.c (font_open_entity): Enable chache and call cached_font_ok
5402 for the driver if defined.
5403 (QCuser_spec): New symbol.
5404 (font_spec_from_name): Save name as user-spec.
5405 (font_load_for_lface): Keep user-spec instead of name.
5406 (font_open_by_name): Save name as user-spec.
5407 (syms_of_font): Initialize QCuser_spec.
5408 (font_clear_prop): Clear name if it exists in font (bug#5157).
5409
5410 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5411 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5412 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5413
5414 * font.h (struct font_driver): Add cached_font_ok.
5415
5416 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5417
5418 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5419
5420 * xterm.c (x_new_font): Move code for setting rows/cols before
5421 resizing ...
5422 (x_set_window_size): ... to here. Bug #2568.
5423
5424 * gtkutil.c (xg_clear_under_internal_border): New function.
5425 (xg_frame_resized, xg_frame_set_char_size):
5426 Call xg_clear_under_internal_border.
5427 (xg_update_scrollbar_pos): Clear under old scroll bar position.
5428
5429 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
5430
5431 * keyboard.c (read_key_sequence): Catch keyboard switch after
5432 making a new tty frame (Bug#5095).
5433
5434 2010-01-05 Kenichi Handa <handa@m17n.org>
5435
5436 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5437
5438 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5439
5440 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5441 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5442 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5443
5444 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
5445
5446 * dbusbind.c (xd_add_watch): Improve debug message.
5447 (xd_remove_watch): Improve debug message. If DATA is the session
5448 bus, unset D-Bus session environment.
5449 (Fdbus_init_bus): Pass the bus as argument to
5450 dbus_connection_set_watch_functions. (Bug#5283)
5451
5452 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5453
5454 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5455
5456 * lread.c (syms_of_lread): Make it clearer that these are the
5457 names of loaded files (Bug#5068).
5458
5459 * eval.c (run_hook_with_args): Handle the case where the global
5460 value has the obsolete single-function form (Bug#5026).
5461
5462 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5463
5464 * minibuf.c (Fall_completions): Minor optimization.
5465
5466 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5467
5468 * .gdbinit (pgx): Fix display of composite glyphs.
5469 Display cmp.from and cmp.to as well.
5470 (pitx): Fix last change.
5471
5472 2009-12-25 Kenichi Handa <handa@m17n.org>
5473
5474 * composite.h (composition_adjust_point): Update prototype.
5475
5476 * composite.c (composition_reseat_it): Don't make a composition
5477 spanning over point.
5478 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5479 composable characters.
5480 (composition_adjust_point): New arg NEW_PT. Callers changed.
5481
5482 * keyboard.c (command_loop_1): Force redisplay if the last point
5483 was within a composition.
5484 (adjust_point_for_property): Don't adjust point for automatic
5485 composition when called after buffer modification.
5486
5487 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5488
5489 * .gdbinit (pitx): Don't use enum names, use their values.
5490 Remove reference to non-existing value GET_FROM_COMPOSITION.
5491 (pgx): Don't use enum names, use their values.
5492 (pitmethod): New helper command.
5493 (pitx): Use it to display iteration method.
5494 (pgrowit): New command.
5495
5496 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5497
5498 Update dependencies in Makefile.in.
5499
5500 * Makefile.in (alloc.o): Depend on termhooks.h.
5501 (atimer.o): Depend on blockinput.h.
5502 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5503 and frame.h.
5504 (callint.o): Depend on systime.h, coding.h, and composite.h.
5505 (callproc.o): Depend on buffer.h.
5506 (casefiddle.o): Don't depend on charset.h.
5507 (casetab.o): Depend on character.h.
5508 (ccl.o): Depend on composite.h.
5509 (chartab.o): Depend on ccl.h.
5510 (cm.o): Depend on dispextern.h.
5511 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5512 (coding.o): Don't depend on $(INTERVALS_H).
5513 (composite.o): Don't depend on dispextern.h explicitly (it's in
5514 $(INTERVALS_H)). Depend on ccl.h.
5515 (data.o): Depend on systime.h, coding.h, composite.h,
5516 dispextern.h, font.h, and ccl.h.
5517 (dired.o): Depend on composite.h.
5518 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5519 composite.h (it's in $(INTERVALS_H)).
5520 (doc.o): Depend on systime.h, coding.h, and composite.h.
5521 (editfns.o): Don't depend explicitly on dispextern.h.
5522 (emacs.o): Depend on frame.h and coding.h.
5523 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5524 (fileio.o): Depend on frame.h and commands.h. Don't depend
5525 explicitly on dispextern.h.
5526 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5527 composite.h.
5528 (fns.o): Don't depend on termhooks.h.
5529 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5530 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5531 coding.h, $(INTERVALS_H), window.h, xterm.h.
5532 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5533 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5534 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5535 fontset.h, ccl.h, and ftfont.h.
5536 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5537 (gtkutil.o): Depend on dispextern.h and composite.h.
5538 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5539 termhooks.h, and ccl.h.
5540 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5541 (intervals.o): Depend on systime.h and coding.h.
5542 (keyboard.o): Depend on composite.h and coding.h.
5543 (keymap.o): Depend on coding.h and frame.h.
5544 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5545 (macros.o): Depend on systime.h, coding.h, and composite.h.
5546 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5547 and atimer.h.
5548 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5549 dispextern.h explicitly.
5550 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5551 Don't depend explicitly on dispextern.h and composite.h.
5552 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5553 (regex.o): Don't depend on charset.h.
5554 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5555 (search.o): Don't depend explicitly on composite.h.
5556 (sound.o): Depend on atimer.h and systime.h.
5557 (syntax.o): Don't depend explicitly on composite.h.
5558 (sysdep.o): Depend on coding.h and composite.h.
5559 (term.o): Depend on xterm.h and buffer.h.
5560 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5561 (textprop.o): Don't depend on dispextern.h explicitly.
5562 (undo.o): Depend on dispextern.h.
5563 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5564 dispextern.h and composite.h explicitly.
5565 (xdisp.o): Depend on ccl.h.
5566 (xfaces.o): Depend on coding.h and ccl.h.
5567 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5568 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5569 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5570 ftfont.h.
5571 (xgselect.o): New dependency.
5572 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5573 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5574 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5575 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5576 (xsmfns.o): Depend on frame.h and dispextern.h.
5577 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5578 sysselect.h.
5579
5580 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5581
5582 * font.c (Fclear_font_cache): Pass correct cache argument to
5583 font_clear_cache.
5584
5585 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5586
5587 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5588 twice.
5589
5590 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5591
5592 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5593 calling file-remote-p. Reported by Jim Meyering.
5594
5595 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5596
5597 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5598 avoid compiler warnings. (Bug #5217)
5599
5600 2009-12-14 Kenichi Handa <handa@m17n.org>
5601
5602 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5603 in 8-bit encoding.
5604
5605 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5606
5607 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5608 tooltip windows.
5609
5610 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5611
5612 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5613 Xatom_net_window_type.
5614
5615 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5616 Xatom_net_window_type.
5617
5618 * xterm.c (my_log_handler): New function.
5619 (x_term_init): Set my_log_handler as log handler during gtk_init
5620 so we can filter out buggy messages. (Bug #5120).
5621
5622 * xterm.c (xg_scroll_callback): Parameter list changed,
5623 use parameter GtkScrollType to determine scroll/line/page.
5624 Only allow dragging if a button < 4 is grabbed (bug #5177).
5625 (xg_end_scroll_callback): New function.
5626 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5627 xg_create_scroll_bar.
5628
5629 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5630 (scroll_end_callback): Remove.
5631 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5632 button-release-event. Replace value-changed event with change-value,
5633 bug #5177.
5634 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5635 bug #5177.
5636
5637 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5638 (xg_create_scroll_bar): Add GCallback end_callback.
5639
5640 * xftfont.c (QClcdfilter): New variable.
5641 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5642 (syms_of_xftfont): Initialize QClcdfilter.
5643
5644 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5645
5646 * xsettings.c (struct xsettings): Add member seen.
5647 (parse_xft_settings): Update member seen with what we have read.
5648 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5649 (apply_xft_settings): Only update Xft settings with what member seen
5650 indicates as new.
5651
5652 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5653
5654 * dispextern.h (struct text_pos): Use EMACS_INT.
5655 (struct glyph): Use EMACS_INT for charpos.
5656 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5657 region_beg_charpos, region_end_charpos,
5658 redisplay_end_trigger_charpos, and also for
5659 iterator_stack_entry.end_charpos and
5660 iterator_stack_entry.stop_charpos.
5661
5662 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5663
5664 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5665 (xg_create_scroll_bar): Call scroll_end_callback on button release
5666 event (bug #5177).
5667 (xg_event_is_for_scrollbar): != replaced with ==.
5668
5669 2009-12-12 Kenichi Handa <handa@m17n.org>
5670
5671 * ftfont.c (struct ftfont_info): New member matrix.
5672 (ftfont_open): Setup xftfont_info->matrix.
5673 (MFLTFontFT): New member matrix.
5674 (FLOOR, CEIL, ROUND): New macros.
5675 (ftfont_get_metrics): Handle matrix transformation.
5676 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5677
5678 * xftfont.c (struct xftfont_info): New member matrix.
5679 (xftfont_open): Setup xftfont_info->matrix.
5680
5681 2009-12-10 Kenichi Handa <handa@m17n.org>
5682
5683 * xdisp.c (append_space_for_newline): Consider face-remapping.
5684
5685 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5686
5687 * xsettings.c: Include "keyboard.h".
5688
5689 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5690
5691 Fix implicit function declarations.
5692 * cmds.c: Include "frame.h".
5693 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5694 * frame.h: Move declaration of delete_frame outside of
5695 HAVE_WINDOW_SYSTEM.
5696
5697 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5698
5699 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5700
5701 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5702 GTK builds.
5703
5704 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5705
5706 * unexelf.c (unexec): Don't search for .data twice.
5707
5708 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5709
5710 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5711 if push failed.
5712 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5713 of push_display_prop (Bug#5000).
5714
5715 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5716 value of font_list_entities (Bug#5085).
5717
5718 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5719
5720 Fix `string-to-number' to deal consistently with integers and floats.
5721 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5722 trailing characters, not just whitespace.
5723 (read1): Pass new arg 0 to keep old behavior.
5724 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5725 trailing chars, as it is already done for integers. Doc fixes.
5726 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5727
5728 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5729
5730 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5731 Delete unused enumeration value.
5732
5733 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5734
5735 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5736
5737 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5738
5739 * process.c (Fmake_network_process): Fix up the tests for
5740 "connectionless socket", so they DTRT for seqpacket sockets as well.
5741
5742 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5743
5744 * process.c (Qseqpacket): New symbol.
5745 (HAVE_SEQPACKET): New macro.
5746 (Fmake_network_process): Accept new :type `seqpacket'.
5747 (init_process): Add `seqpacket' feature when applicable.
5748 (syms_of_process): Initialize Qseqpacket.
5749
5750 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5751
5752 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5753 if entity is Qnil.
5754
5755 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5756
5757 * print.c (print_preprocess): Preprocess the key_and_value table of
5758 hashtables, even tho they're "hidden" (bug#5082).
5759
5760 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5761
5762 * frame.c (frame_make_pointer_invisible)
5763 (frame_make_pointer_visible): Declare f before statements.
5764
5765 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5766
5767 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5768 omitted dependencies on lisp.h.
5769
5770 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5771
5772 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5773 is NULL.
5774
5775 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5776
5777 * frame.c (frame_make_pointer_invisible)
5778 (frame_make_pointer_visible): Just return if there isn't any selected
5779 frame.
5780
5781 * search.c (simple_search): Remove warning by making *p const.
5782
5783 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5784
5785 * xdisp.c (power_letter): Remove duplicate const.
5786
5787 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5788
5789 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5790
5791 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5792 defaults (bug #5025).
5793
5794 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5795
5796 * insdel.c (adjust_markers_for_delete): Move it in the
5797 right direction! (bug#4803)
5798
5799 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5800
5801 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5802
5803 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5804
5805 2009-11-24 Glenn Morris <rgm@gnu.org>
5806
5807 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5808
5809 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5810
5811 * Makefile.in: Must create deps for ecrt0.o in its rule.
5812
5813 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5814 because that is what Gtk+ font dialog understands.
5815
5816 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5817 of Fcopy_sequence.
5818 (font_open_by_name): Put name given into QCname for font-object returned.
5819
5820 * frame.c (x_set_font): Save original font name as frame parameter
5821 font-parameter.
5822
5823 * xsettings.c (set_default_xft_settings): New function.
5824 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5825 is found.
5826
5827 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5828
5829 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5830 searching backwards through multibyte buffer.
5831
5832 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5833
5834 * xterm.c: #include xgselect.h.
5835 (x_initialize): Call xgselect_initialize.
5836
5837 * xsettings.c (something_changedCB): C++ comments => C comments.
5838 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5839 does that now.
5840
5841 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5842 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5843 (scroll_bar_button_cb): Remove.
5844 (create_menus): C++ comments => C comments. Don't bind grab-notify
5845 event.
5846 (xg_create_scroll_bar): Don't bind button-press-event and
5847 button-release-event.
5848
5849 * process.c: Include xgselect.h if defined (USE_GTK) ||
5850 defined (HAVE_GCONF).
5851 (wait_reading_process_output): Call xg_select for the same condition.
5852
5853 * xgselect.c (xg_select): New function to better integrate with
5854 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5855
5856 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5857
5858 * Makefile.in (XOBJ): Add xgselect.o.
5859
5860 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5861
5862 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5863 Remove ignored second argument. All callers changed.
5864 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5865 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5866 * xdisp.c (string_char_and_length): Likewise.
5867
5868 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5869
5870 * xterm.c (x_new_font):
5871 * print.c (print_object):
5872 * cmds.c (Fself_insert_command): Move declarations before statements.
5873
5874 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5875
5876 * s/cygwin.h: Remove unneeded linker flags.
5877
5878 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5879
5880 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5881
5882 * xsettings.h: Declare xsettings_get_system_font.
5883
5884 * xsettings.c (xsettings_get_system_font): New function.
5885 (init_gconf): No use initiating gconf unless we have Xft also.
5886 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5887 HAVE_GCONF.
5888
5889 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5890 add a blank entry so it doesn't collapse into nothing.
5891
5892 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5893
5894 * lread.c (Funintern): Comment out last change.
5895
5896 2009-11-19 Richard Stallman <rms@gnu.org>
5897
5898 * lread.c (Funintern): Error if symbol is t or nil.
5899
5900 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5901
5902 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5903 representation of Lisp integers.
5904 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5905
5906 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5907
5908 * lisp.h: Remove declaration of Ffont_get_system_font.
5909 * xfns.c: Move include of "xsettings.h".
5910 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5911
5912 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5913
5914 * xsettings.c (something_changedCB, Ffont_get_system_font):
5915 Check use_system_font.
5916 (syms_of_xsettings): DEFVAR font-use-system-font.
5917
5918 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5919
5920 * xfns.c (x_default_font_parameter): Remove dead assignment.
5921
5922 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5923
5924 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5925
5926 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5927 not have FC_LCD_*. #define them if not there.
5928
5929 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5930
5931 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5932
5933 * xterm.c (handle_one_xevent): Call xft_settings_event for
5934 ClientMessage, PropertyNotify and DestroyNotify.
5935 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5936 Call xsettings_initialize.
5937
5938 * xftfont.c (xftfont_fix_match): New function.
5939 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5940 Call xftfont_fix_match after XftFontMatch.
5941
5942 * xfont.c (xfont_driver): Initialize all members.
5943
5944 * xfns.c (x_default_font_parameter):
5945 Try font from Ffont_get_system_font.
5946 Do not get font from x_default_parameter if we got one from
5947 Ffont_get_system_font.
5948 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5949
5950 * w32font.c (w32font_driver): Initialize all members.
5951
5952 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5953
5954 * lisp.h: Declare syms_of_xsettings.
5955
5956 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5957 Handle CONFIG_CHANGED_EVENT.
5958
5959 * ftfont.c (ftfont_filter_properties): New function.
5960
5961 * frame.c (x_set_font): Remove unused variable lval.
5962
5963 * font.h (struct font_driver): Add filter_properties.
5964
5965 * font.c (font_put_extra): Don't return if val is nil, it means
5966 boolean option is off.
5967 (font_parse_fcname): Collect all extra properties in extra_props
5968 and call filter_properties for all drivers with extra_props and
5969 font as parameter.
5970 (font_open_entity): Do not use cache, it does not pick up new
5971 fontconfig settings like hinting.
5972 (font_load_for_lface): If spec had a name in it, store it in entity.
5973
5974 * emacs.c (main): Call syms_of_xsettings.
5975
5976 * config.in: HAVE_GCONF is new.
5977
5978 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5979 xsettings.o is new.
5980
5981 2009-11-17 Kenichi Handa <handa@m17n.org>
5982
5983 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5984 back to the default font in case that no suitable font is found.
5985
5986 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5987
5988 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5989 Suggested by Chad Brown <yandros@mit.edu>.
5990 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5991
5992 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5993
5994 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5995
5996 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5997
5998 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5999
6000 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6001
6002 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6003 has a parent.
6004
6005 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
6006 dependency files in deps/. Include those files into Makefile.
6007
6008 * config.in: Generated (AUTO_DEPEND).
6009
6010 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
6011
6012 * dbusbind.c (Vdbus_registered_objects_table): Rename from
6013 Vdbus_registered_functions_table, because it contains also
6014 properties. Fix docstring.
6015 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
6016
6017 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6018
6019 * alloc.c (mark_object): Don't reprocess marked strings.
6020 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6021 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6022
6023 2009-11-13 Kenichi Handa <handa@m17n.org>
6024
6025 * category.c (word_boundary_p): Adjust for the change of the
6026 semantics of Vword_combining_categories.
6027 (Vword_combining_categories): Describe the slight change of the
6028 semantics.
6029
6030 2009-11-13 Eli Zaretskii <eliz@gnu.org>
6031
6032 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6033
6034 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6035
6036 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6037
6038 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6039
6040 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
6041
6042 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6043
6044 2009-11-11 David Reitter <david.reitter@gmail.com>
6045
6046 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6047 variables to fix 2009-11-09 change.
6048
6049 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6050
6051 * process.c (ifflag_def): Make flag_sym constant.
6052 (Fnetwork_interface_info): Use a constant pointer.
6053 (ifflag_table):
6054 * xfns.c (cursor_bits):
6055 * xdisp.c (power_letter):
6056 * termcap.c (speeds, esctab):
6057 * sysdep.c (baud_convert):
6058 * keyboard.c (lispy_accent_codes, modifier_names):
6059 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6060 (jpeg_format, tiff_format, gif_format, svg_format)
6061 (interlace_start, interlace_increment, gs_format):
6062 * gtkutil.c (separator_names):
6063 * fringe.c (swap_nibble):
6064 * fns.c (base64_value_to_char, base64_char_to_value):
6065 * fileio.c (make_temp_name_tbl):
6066 * coding.c (suffixes): Make constant.
6067
6068 * frame.c (make_initial_frame):
6069 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6070 build_string.
6071 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6072
6073 * s/freebsd.h:
6074 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6075
6076 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6077 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6078
6079 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6080 * xterm.c (syms_of_xterm):
6081 * xfaces.c (syms_of_xfaces):
6082 * xdisp.c (syms_of_xdisp):
6083 * lread.c (syms_of_lread):
6084 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6085 build_string.
6086
6087 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6088
6089 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6090
6091 * fns.c (Fplist_get): Merge the active and the commented out code.
6092
6093 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6094
6095 * keyboard.h: Declare timer_check.
6096
6097 * keyboard.c (timer_check_2): New function that does what the old
6098 timer_check did.
6099 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6100 returned, i.e. don't return -1 with timers pending.
6101
6102 * process.c: Remove extern declaration of timer_check.
6103
6104 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6105 even if timer_check returned -1.
6106
6107 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6108 xg_dialog_data.
6109 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6110 the event loop.
6111 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6112 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6113 Destroy the dialog after xg_dialog_run.
6114
6115 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6116
6117 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6118
6119 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6120
6121 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6122
6123 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
6124
6125 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6126
6127 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6128
6129 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6130 w32menu.c, and nsmenu.m.
6131 Simplify the obsolete case where position is nil.
6132 (cleanup_popup_menu): New function, moved from nsmenu.m.
6133 (struct skp): Remove slot `notreal'.
6134 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6135 adjust callers.
6136 (single_menu_item): Adjust call to parse_menu_item.
6137 (syms_of_menu): Defsubr x-popup-menu.
6138 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6139 (keymap_panes): Don't export any more.
6140 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6141 (xmenu_show): Declare.
6142 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6143 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6144 * keyboard.h (parse_menu_item): Update declaration.
6145 * xmenu.c (Fx_popup_menu): Remove.
6146 (syms_of_xmenu): Don't defsubr x-popup-menu.
6147 * w32menu.c (Fx_popup_menu): Remove.
6148 (syms_of_w32menu): Don't defsubr x-popup-menu.
6149 * nsmenu.m (cleanup_popup_menu): Remove.
6150 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6151 moved to menu.c's Fx_popup_menu.
6152 (Fx_popup_menu): Remove.
6153 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6154 menu_items (it's done in menu.c already).
6155
6156 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6157
6158 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6159 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6160
6161 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
6162
6163 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
6164 xmenu_show. Hide any tooltip before opening a menu.
6165 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6166 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6167
6168 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6169
6170 Let integers use up 2 tags to give them one extra bit and thus double
6171 their range.
6172 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6173 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6174 New macros.
6175 (enum Lisp_Type): Use them. Give explicit values.
6176 (Lisp_Type_Limit): Remove.
6177 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6178 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6179 Pay attention to USE_2_TAGS_FOR_INTS.
6180 (INTEGERP): Use LISP_INT_TAG_P.
6181 * fns.c (internal_equal): Simplify the default case.
6182 (sxhash): Use case_Lisp_Int.
6183 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6184 any more.
6185 (Ftype_of): Use case_Lisp_Int.
6186 (store_symval_forwarding): Take into account the fact that Ints can
6187 now have more than one tag.
6188 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6189 (buffer_slot_type_mismatch):
6190 * xfaces.c (face_attr_equal_p):
6191 * print.c (print_object):
6192 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6193 Use case_Lisp_Int.
6194
6195 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6196
6197 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6198
6199 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6200 warning.
6201
6202 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6203
6204 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6205
6206 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6207
6208 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6209 ButtonPressRelease and MotionNotify (bug#4870).
6210
6211 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6212
6213 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6214
6215 * xterm.c (syms_of_xterm):
6216 * xselect.c (syms_of_xselect):
6217 * xmenu.c (syms_of_xmenu):
6218 * xfns.c (syms_of_xfns):
6219 * xfaces.c (syms_of_xfaces):
6220 * xdisp.c (syms_of_xdisp):
6221 * window.c (syms_of_window):
6222 * w32fns.c (syms_of_w32fns):
6223 * undo.c (syms_of_undo):
6224 * textprop.c (syms_of_textprop):
6225 * terminal.c (syms_of_terminal):
6226 * syntax.c (syms_of_syntax):
6227 * sound.c (syms_of_sound):
6228 * search.c (syms_of_search):
6229 * print.c (syms_of_print):
6230 * minibuf.c (syms_of_minibuf):
6231 * macros.c (syms_of_macros):
6232 * keymap.c (syms_of_keymap, initial_define_key)
6233 (initial_define_lispy_key):
6234 * keyboard.c (syms_of_keyboard):
6235 * insdel.c (syms_of_insdel):
6236 * image.c (syms_of_image):
6237 * fringe.c (syms_of_fringe):
6238 * frame.c (syms_of_frame):
6239 * fontset.c (syms_of_fontset):
6240 * fns.c (syms_of_fns):
6241 * fns.c (syms_of_fns):
6242 * fileio.c (syms_of_fileio):
6243 * fileio.c (syms_of_fileio):
6244 * eval.c (syms_of_eval):
6245 * doc.c (syms_of_doc):
6246 * dispnew.c (syms_of_display):
6247 * dired.c (syms_of_dired):
6248 * dbusbind.c (syms_of_dbusbind):
6249 * data.c (syms_of_data):
6250 * composite.c (syms_of_composite):
6251 * coding.c (syms_of_coding):
6252 * cmds.c (syms_of_cmds):
6253 * charset.c (define_charset_internal, syms_of_character):
6254 * ccl.c (syms_of_ccl):
6255 * category.c (syms_of_category, init_category_once):
6256 * casetab.c (syms_of_casetab):
6257 * casefiddle.c (syms_of_casefiddle):
6258 * callint.c (syms_of_callint):
6259 * bytecode.c (syms_of_bytecode):
6260 * buffer.c (keys_of_buffer, syms_of_buffer):
6261 * alloc.c (syms_of_alloc):
6262 * process.c (syms_of_process, init_process):
6263 * lread.c (syms_of_lread, init_obarray):
6264 * font.c (build_style_table):
6265 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6266 intern_c_string, calls to make_pure_string with
6267 make_pure_c_string. Use pure_cons instead of Fcons.
6268
6269 * process.c (socket_options): Make it const.
6270 (set_socket_option, init_process): Use a const pointer.
6271
6272 * lread.c (intern_c_string): New function.
6273 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6274 (defvar_int): Uset it. Make the name const char*.
6275
6276 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6277 (defvar_int): Update prototypes.
6278 (DEFUN, EXFUN): Support for prototypes is now required.
6279 (intern_c_string): New prototype.
6280 (struct Lisp_Subr): Make symbol_name constant.
6281
6282 * font.c (struct table_entry): Remove unused member. Make NAMES
6283 constant.
6284 (weight_table, slant_table, width_table): Make constant.
6285
6286 * emacs.c (struct standard_args): Make name and longname constant.
6287
6288 * character.h (DEFSYM): Use intern_c_string.
6289
6290 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6291
6292 * alloc.c (make_pure_c_string): New function.
6293
6294 * eval.c (Fautoload): Purecopy all arguments.
6295
6296 2009-11-05 Kenichi Handa <handa@m17n.org>
6297
6298 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6299 the buffer in case of replace.
6300
6301 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6302
6303 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6304
6305 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6306
6307 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6308 when applicable (bug#4851).
6309
6310 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6311 (P_): Support for prototypes is now required.
6312
6313 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
6314
6315 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6316 (Bug#4827).
6317
6318 2009-10-30 Eli Zaretskii <eliz@gnu.org>
6319
6320 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
6321
6322 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6323
6324 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6325
6326 * lread.c (Fload): Purecopy the file name when building
6327 Vpreloaded_file_list.
6328
6329 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6330
6331 * w32fns.c (syms_of_w32fns): Change default value of
6332 w32-scroll-lock-modifier to nil. (Bug#2827)
6333
6334 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6335
6336 * minibuf.c (Fall_completions): Fix typos in docstring.
6337
6338 2009-10-26 Andreas Schwab <schwab@redhat.com>
6339
6340 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6341
6342 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6343
6344 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6345 For delta < 0, skip check that only makes sense when the mini-window
6346 is going to be enlarged. (Bug#4534)
6347
6348 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6351 string in menu maps (Bug#4471).
6352
6353 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
6354
6355 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6356 FRAME_NS_VIEW on terminal frames (Bug#4765).
6357
6358 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6359
6360 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6361 DBUS_TYPE_UINTnn separately to get proper sign extension.
6362
6363 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6364 can properly handle unsigned types.
6365 (make_uid, make_gid): Remove.
6366
6367 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6368 types again.
6369
6370 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
6371 (system_process_attributes): Likewise.
6372
6373 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6374
6375 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6376
6377 * eval.c (Fautoload): Purecopy the filename. Simplify.
6378
6379 * category.c (Fdefine_category): Purecopy docstring.
6380
6381 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6382
6383 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6384
6385 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6386
6387 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
6388
6389 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6390 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6391 (Bug#4775).
6392
6393 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6394
6395 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6396 (init_fileio_once):
6397 * lisp.h (init_fileio_once): Remove.
6398 * emacs.c (main): Don't call init_fileio_once.
6399
6400 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6401
6402 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6403
6404 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6405
6406 * doprnt.c (doprnt): Fix overflow check.
6407
6408 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6409
6410 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6411
6412 * xterm.h (x_wait_for_event): Declare it.
6413
6414 * xterm.c (pending_event_wait): New variable.
6415 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6416 see pending_event_wait.eventtype.
6417 (handle_one_xevent): Don't change gravity when parent changes.
6418 (x_new_font): Call change_frame_size with new rows/columns before we
6419 try to resize the frame.
6420 (x_wait_for_event): New function.
6421 (x_set_window_size_1): Don't change gravity unless change_gravity
6422 is set.
6423 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6424 don't change frame size, instead wait for the ConfigureNotify.
6425 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6426 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6427 (x_initialize): Initialize pending_event_wait.
6428
6429 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6430 size.
6431
6432 * widget.c (EmacsFrameSetValues): Add comment.
6433 (EmacsFrameSetCharSize): Just call x_set_window_size.
6434
6435 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6436 x_wait_for_event.
6437 (flush_and_sync): Remove again.
6438 (xg_get_font_name): Suggest monospace if no previous font is known.
6439
6440 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6441
6442 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
6443 8th bit, since that only made sense in the ASCII world (bug#4751).
6444
6445 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6446
6447 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6448 processing pending events when event is filtered for input method.
6449 (Bug#3681)
6450
6451 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6452
6453 * fns.c: Add #endif accidentally removed in previous change.
6454
6455 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6456
6457 * fns.c: Remove code for unsupported system: MAC_OS.
6458 * image.c: Likewise. Include setjmp.h.
6459
6460 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6461
6462 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6463 pixel -1 (bug #4742).
6464
6465 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6466
6467 * process.c (create_pty): Remove conditionals for no longer
6468 supported systems: UNIPLUS and RTU.
6469
6470 * xterm.c:
6471 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6472
6473 * alloc.c: Do not define struct catchtag.
6474 * eval.c: Move struct catchtag definition ...
6475 * lisp.h: ... here.
6476
6477 * image.c: Move png.h #include earlier to avoid warnings.
6478
6479 * xterm.c:
6480 * xsmfns.c:
6481 * xselect.c:
6482 * xrdb.c:
6483 * xmenu.c:
6484 * xftfont.c:
6485 * xfont.c:
6486 * xfns.c:
6487 * xfaces.c:
6488 * xdisp.c:
6489 * window.c:
6490 * widget.c:
6491 * w32xfns.c:
6492 * w32uniscribe.c:
6493 * w32term.c:
6494 * w32select.c:
6495 * w32reg.c:
6496 * w32proc.c:
6497 * w32menu.c:
6498 * w32inevt.c:
6499 * w32heap.c:
6500 * w32font.c:
6501 * w32fns.c:
6502 * w32console.c:
6503 * w32.c:
6504 * w16select.c:
6505 * vm-limit.c:
6506 * unexsol.c:
6507 * unexec.c:
6508 * unexcw.c:
6509 * unexaix.c:
6510 * undo.c:
6511 * tparam.c:
6512 * textprop.c:
6513 * terminfo.c:
6514 * terminal.c:
6515 * termcap.c:
6516 * term.c:
6517 * syntax.c:
6518 * sound.c:
6519 * sheap.c:
6520 * search.c:
6521 * scroll.c:
6522 * region-cache.c:
6523 * regex.c:
6524 * ralloc.c:
6525 * process.c:
6526 * print.c:
6527 * nsterm.m:
6528 * nsselect.m:
6529 * nsmenu.m:
6530 * nsimage.m:
6531 * nsfont.m:
6532 * nsfns.m:
6533 * msdos.c:
6534 * minibuf.c:
6535 * menu.c:
6536 * marker.c:
6537 * macros.c:
6538 * keymap.c:
6539 * keyboard.c:
6540 * intervals.c:
6541 * insdel.c:
6542 * indent.c:
6543 * gtkutil.c:
6544 * ftxfont.c:
6545 * ftfont.c:
6546 * fringe.c:
6547 * frame.c:
6548 * fontset.c:
6549 * font.c:
6550 * fns.c:
6551 * floatfns.c:
6552 * filelock.c:
6553 * fileio.c:
6554 * emacs.c:
6555 * editfns.c:
6556 * dosfns.c:
6557 * doprnt.c:
6558 * doc.c:
6559 * dispnew.c:
6560 * dired.c:
6561 * dbusbind.c:
6562 * data.c:
6563 * composite.c:
6564 * coding.c:
6565 * cmds.c:
6566 * cm.c:
6567 * chartab.c:
6568 * charset.c:
6569 * character.c:
6570 * ccl.c:
6571 * category.c:
6572 * casetab.c:
6573 * casefiddle.c:
6574 * callproc.c:
6575 * callint.c:
6576 * bytecode.c:
6577 * buffer.c:
6578 * atimer.c: Include setjmp.h. (Bug#4643)
6579
6580 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6581
6582 Remove leftover table unibyte_to_multibyte_table.
6583 * character.c (unibyte_to_multibyte_table): Remove.
6584 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6585 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6586 * character.h (UNIBYTE_TO_CHAR): New macro.
6587 (MAKE_CHAR_MULTIBYTE): Use it.
6588 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6589 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6590 (message_dolog, set_message_1):
6591 * search.c (Freplace_match):
6592 * editfns.c (Fcompare_buffer_substrings):
6593 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6594 (concat):
6595 * insdel.c (copy_text, count_size_as_multibyte):
6596 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6597 * term.c (produce_glyphs):
6598 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6599 * regex.c (RE_CHAR_TO_MULTIBYTE):
6600 * cmds.c (internal_self_insert):
6601 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6602
6603 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6604
6605 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6606
6607 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6608
6609 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6610
6611 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6612
6613 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6614
6615 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6616 still needed under Tiger.
6617
6618 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6619
6620 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6621 __Apple__.
6622
6623 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6624
6625 2009-10-15 Kenichi Handa <handa@m17n.org>
6626
6627 * print.c (print_object): Escape a symbol like "2E10" too.
6628
6629 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6630
6631 Cleanups and changes for 64-bit compile under Snow Leopard.
6632 Based on suggestions by Erik Charlebois.
6633
6634 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6635
6636 * nsfont.m (ns_char_width): Replace deprecated call.
6637 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6638 cast argument.
6639 (nsfont_open): Use ns_char_width() everywhere.
6640 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6641
6642 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6643
6644 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6645 where appropriate.
6646
6647 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6648 where appropriate.
6649 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6650 Use stringWithUTF8String.
6651 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6652
6653 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6654 Add formal protocol mention to inheritance.
6655 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6656
6657 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6658 Fix printf format.
6659 (ns_query_color): Use CGFloat where appropriate.
6660 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6661 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6662 argument.
6663
6664 * config.in (NS_HAVE_NSINTEGER): Drop.
6665
6666 * dbusbind.c (dbus-method-return-internal)
6667 (dbus-method-error-internal): Use long format in printf, and cast
6668 argument.
6669
6670 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6671 in printf, and cast argument.
6672
6673 * process.c (list_processes_1): Use long format in printf, and
6674 cast argument.
6675
6676 2009-10-11 Glenn Morris <rgm@gnu.org>
6677
6678 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6679
6680 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6681
6682 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6683 menu bar with a small width so it doesn't enlarge the frame.
6684
6685 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6686
6687 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6688
6689 2009-10-06 Glenn Morris <rgm@gnu.org>
6690
6691 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6692 SOME_MACHINE_LISP (this enters indirectly via DOC).
6693
6694 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6695
6696 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6697
6698 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6699
6700 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6701 Doc fix.
6702
6703 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6704
6705 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6706
6707 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6708
6709 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6710 used anymore outside fileio.c.
6711
6712 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6713
6714 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6715
6716 * lisp.h (Qdelete_directory_internal):
6717 Declare, instead of Qdelete_directory.
6718
6719 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6720
6721 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6722
6723 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6724
6725 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6726
6727 * fileio.c (Fdelete_directory_internal): Rename from
6728 Fdelete_directory. It is not a command anymore. It has no file
6729 name handler.
6730
6731 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6732
6733 * xdisp.c (get_next_display_element): Use an enum in last change.
6734
6735 2009-09-28 Kenichi Handa <handa@m17n.org>
6736
6737 * xdisp.c (get_next_display_element): Pay attention to
6738 unibyte_display_via_language_environment in handling
6739 Vnobreak_char_display.
6740
6741 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6742
6743 * nsterm.h (ns_app_name): New extern variable.
6744
6745 * nsterm.m (ns_app_name): New variable.
6746 (ns_term_init): Set and use it.
6747 (ns_term_shutdown): Use it.
6748
6749 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6750 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6751
6752 * nsfns.m (ns_set_name_iconic, ns_set_name)
6753 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6754 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6755
6756 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6757 Remove double-casting in client_data comparison.
6758
6759 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6760
6761 * keyboard.c (make_lispy_event): Remember last wheel direction.
6762 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6763
6764 2009-09-26 Glenn Morris <rgm@gnu.org>
6765
6766 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6767 internal.elc. Add term/pc-win.elc.
6768 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6769 term/x-win.elc.
6770 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6771 term/w32-win.elc.
6772 (NS_SUPPORT): New.
6773 (lisp): Add NS_SUPPORT.
6774 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6775
6776 2009-09-25 David Reitter <david.reitter@gmail.com>
6777
6778 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6779 on Mac OS X 10.6+ (bug#4513).
6780
6781 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6782
6783 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6784 some parts of Emacs code (like font selection) don't grok them.
6785 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6786
6787 2009-09-24 Andreas Schwab <schwab@redhat.com>
6788
6789 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6790
6791 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6792
6793 * dired.c (Fdirectory_files): Fix typo in docstring.
6794
6795 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6796
6797 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6798 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6799 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6800 under GNUstep.
6801 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6802
6803 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6804 glyph advancement.
6805
6806 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6807
6808 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6809 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6810
6811 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6812 deleted (bug #4492).
6813
6814 * nsfont.m (Vns_reg_to_script): New lisp variable.
6815 (syms_of_nsfont): Declare it.
6816 (ns_registry_to_script): New function.
6817 (ns_get_req_script): Call it.
6818 (ns_findfonts): Don't give up on non-unicode registry.
6819
6820 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6821
6822 2009-09-20 Tom Tromey <tromey@redhat.com>
6823
6824 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6825 batch mode (bug#4228).
6826
6827 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6828
6829 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6830 carefully. (Bug #4339)
6831
6832 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6833
6834 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6835
6836 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6837
6838 * emacs.c (inhibit_x_resources): Update doc string for NS.
6839 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6840 legacy code for -NXHost. Fix error printf in daemon case.
6841
6842 * nsterm.h (ns_no_defaults): Remove.
6843
6844 * nsterm.m (ns_no_defaults): Remove.
6845 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6846 (ns_use_qd_smoothing): Remove legacy variable.
6847 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6848 don't update the NSWindow itself.
6849 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6850 state detection and store user rect ourselves. (Bug #3581)
6851
6852 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6853 ns_use_qd_smoothing.
6854
6855 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6856 platform versions. Drop support for emacs-20-style face specs.
6857 (x-close-connection): Drop PSFlush() under OS X.
6858 (x-focus-frame): Activate the app first. (Bug #4180)
6859
6860 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6861
6862 * emacs.c (inhibit_x_resources): New variable.
6863 (main) [HAVE_NS]: Don't process --quick command line option.
6864 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6865
6866 * lisp.h (inhibit_x_resources): Declare it extern.
6867
6868 * w32reg.c (x_get_string_resource):
6869 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6870
6871 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6872
6873 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6874 Add lisp/term/internal.elc.
6875
6876 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6877
6878 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6879 (bug#4461).
6880
6881 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6882
6883 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6884
6885 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6886 (OBJECTS_MACHINE): Remove, unused.
6887
6888 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6889
6890 * frame.c (x_get_resource_string): Remove unused.
6891
6892 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6893
6894 * xterm.c (x_new_font): Call change_frame_size before calling
6895 x_set_window_size, in case frame size won't change.
6896
6897 * frame.c (x_set_font): Remove dead code.
6898
6899 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6900
6901 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6902
6903 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6904
6905 * lread.c (Fload): Don't output a message after loading an obsolete
6906 package any more (done in Lisp now).
6907
6908 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6909
6910 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6911
6912 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6913
6914 * keymap.c (Fwhere_is_internal): Use nconc2.
6915
6916 2009-09-11 Alan Mackenzie <acm@muc.de>
6917
6918 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6919 batch mode.
6920
6921 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6922
6923 * xdisp.c (display_mode_element): Detect cycles.
6924
6925 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6926
6927 * keymap.c (where_is_internal): Don't erroneously return nil right after
6928 filling the cache.
6929 (where_is_internal_1): Fix up typo.
6930
6931 2009-09-11 Glenn Morris <rgm@gnu.org>
6932
6933 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6934 share a common doc-string.
6935
6936 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6937
6938 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6939 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6940
6941 * keymap.c (QCadvertised_binding): New constant.
6942 (syms_of_keymap): Initialize it.
6943 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6944 if applicable.
6945
6946 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6947
6948 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6949 (parse_menu_item): Streamline since bindings are recomputed all the
6950 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6951 more and don't support lmenu's menu-alias any more either.
6952
6953 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6954 (where_is_internal): Strip it down to only traverse the keymaps.
6955 Move the cache handling from Fwhere_is_internal to here.
6956 (Fwhere_is_internal): Move the handling of remapping and the choice of
6957 the best binding from where_is_internal to here.
6958 Unify the cached/noncached paths, so remapping is also handled
6959 correctly when the cache is used, and so the cache can be used to
6960 speed up remap-handling when applicable.
6961 Give preference to non-remapped bindings.
6962 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6963 non-remapped bindings.
6964 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6965 command remapping.
6966
6967 * xdisp.c (display_mode_element): Move list length limit from 50 to
6968 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6969
6970 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6971
6972 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6973
6974 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6975
6976 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6977 (Bug#4334)
6978
6979 * keymap.c (where_is_internal): Filter out shadowed remappings.
6980 Assume that where_is_internal returns unshadowed bindings to simplify
6981 the code and get rid of the gotos. Use ASIZE.
6982
6983 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6984
6985 * xterm.c (x_focus_changed): If we get a focusout and pointer
6986 is invisible, make it visible.
6987
6988 * xterm.h: Remove condition for declaration of
6989 x_*_window_to_frame.
6990
6991 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6992
6993 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6994 initial terminal as well.
6995
6996 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6997
6998 * xterm.h: Rename x_non_menubar_window_to_frame to
6999 x_menubar_window_to_frame.
7000
7001 * xterm.c: Remove declarations also in xterm.h.
7002 (XTmouse_position): Do not return valid positions
7003 for clicks in the menubar and the toolbar for Gtk+.
7004
7005 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7006 if the widget for the event has the same top level as a frame,
7007 return the frame.
7008 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7009 internal windows, bug #4122.
7010 (x_non_menubar_window_to_frame): Remove.
7011
7012 2009-09-02 Glenn Morris <rgm@gnu.org>
7013
7014 * buffer.c (default-major-mode): Move most of the doc from here...
7015 (major-mode): ... to here.
7016
7017 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
7018
7019 * process.c (wait_reading_process_output): Keep the descriptor
7020 when pty is used by a non-child process, e.g., in I/O buffer of
7021 GDB this allows inferior to be restarted.
7022
7023 2009-08-29 Eli Zaretskii <eliz@gnu.org>
7024
7025 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7026 both branches into one.
7027
7028 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7029
7030 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7031 (main): Use enable-multibyte-characters rather than
7032 default-enable-multibyte-characters. Output a warning message when
7033 running a unibyte session.
7034
7035 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7036
7037 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7038 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7039 (copy_data_segment): Also copy __program_vars section.
7040 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7041 (dump_it) [LC_DYLD_INFO]: Use it.
7042
7043 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7044
7045 2009-08-28 Eli Zaretskii <eliz@gnu.org>
7046
7047 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7048 $(SRC)/buildobj.h.
7049 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7050 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7051 $(SRC)/buildobj.h.
7052 (clean): Add buildobj.h.
7053
7054 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7055
7056 * print.c (print_object): Set escapeflag to 1 when printing
7057 hashtable keys and values.
7058
7059 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7060
7061 * lread.c (read_integer): Use doubles (and potentially return a float
7062 number) as we do in string-to-number.
7063 (read1): Use strtol to read integers, signal errors on strtol's
7064 overflow and use floats if strtol's output is too large for
7065 Elisp integers.
7066
7067 2009-08-27 Eli Zaretskii <eliz@gnu.org>
7068
7069 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7070 (make-buildobj-SH): Fix last change.
7071 (SRC): Move to before where it's first used.
7072
7073 2009-08-27 Kenichi Handa <handa@m17n.org>
7074
7075 * process.c (send_process): Use encode_coding_object instead of
7076 encode_coding_string to perform eol-conversion even if the string
7077 is unibyte.
7078
7079 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7080 character.
7081
7082 * cmds.c (Fself_insert_command): Avoid unnecessay
7083 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
7084
7085 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7086
7087 * callproc.c (Fcall_process): Remove always true #if.
7088
7089 * lisp.h: Replace #if 0 code for checking with text pointing to
7090 the --enable-checking configure flag.
7091
7092 * emacs.c (main): Mention the --enable-profiling configure flag
7093 instead of using CFLAGS.
7094
7095 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
7096
7097 * Makefile.in (buildobj.h): New target.
7098 (doc.o): Depend on it.
7099 (temacs${EXEEXT}): Don't generate buildobj.lst.
7100 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7101 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7102 ($(BLD)/doc.$(O)): Depend on it.
7103 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7104 provided by Eli Zaretskii.)
7105 ($(TEMACS)): Don't generate buildobj.lst.
7106 * doc.c: Include buildobj.h.
7107 (buildobj): New static variable.
7108 (Fsnarf_documentation): Use it, instead of opening and reading
7109 buildobj.lst.
7110
7111 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
7112
7113 * dbusbind.c (Fdbus_call_method)
7114 (Fdbus_call_method_asynchronously): Use English numeric format for
7115 timeout values in doc string.
7116
7117 2009-08-25 Kenichi Handa <handa@m17n.org>
7118
7119 * alloc.c (mark_char_table): New function.
7120 (mark_object): Use mark_char_table for a char-table.
7121
7122 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7123 (CHAR_TABLE_REF): Use it.
7124
7125 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
7126
7127 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7128 before invoking the newly build emacs to check for load-path
7129 shadowing.
7130
7131 2009-08-22 Glenn Morris <rgm@gnu.org>
7132
7133 * Makefile.in (bootstrap_exe): New variable.
7134 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7135 Use ${bootstrap_exe}.
7136
7137 2009-08-22 Eli Zaretskii <eliz@gnu.org>
7138
7139 * coding.h (encode_coding_string): Don't encode unibyte strings.
7140 (Bug#4047)
7141
7142 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
7143
7144 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7145
7146 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7147 intended as hotfix only.
7148 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7149
7150 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7151
7152 * nsterm.m (ns_get_color): Update documentation properly for last
7153 change, and clean up loose ends in the code left by it. Fix
7154 longstanding bug with 16-bit hex parsing, and add support for
7155 yet another X11 format (rgb:r/g/b) for compatibility.
7156 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7157 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7158
7159 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7160
7161 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7162
7163 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
7164
7165 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7166 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7167 (xd_initialize, xd_pending_messages): Check, whether
7168 $DBUS_SESSION_BUS_ADDRESS is set.
7169
7170 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7171
7172 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7173
7174 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7175
7176 2009-08-20 Glenn Morris <rgm@gnu.org>
7177
7178 * emacs.c (system-type): Doc fix.
7179
7180 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7181
7182 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7183 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7184
7185 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7186
7187 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7188 New functions.
7189 (xd_initialize): Revert change from 2009-08-16.
7190
7191 2009-08-18 Kenichi Handa <handa@m17n.org>
7192
7193 * fontset.c (Ffontset_font): If a nil element is found in a
7194 font-group vector, return nil.
7195
7196 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * process.c (status_notify): Don't perform redisplay.
7199 (Fdelete_process, list_processes_1, process_send_signal):
7200 Expliticly perform redisplay.
7201 (wait_reading_process_output): Always check process status, but
7202 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7203
7204 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7205
7206 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7207 (XFLOAT_INIT): New macro for storing a float value.
7208 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7209 * fns.c (sxhash): Copy out the value of a float in order to
7210 examine its bytes.
7211 * dbusbind.c (xd_append_arg): Likewise.
7212
7213 * emacs.c (main): Don't call syms_of_data twice.
7214
7215 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7216
7217 * dbusbind.c (xd_initialize): Add connection file descriptor to
7218 input_wait_mask, in order to let select() detect, whether a new
7219 message has been arrived.
7220 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7221
7222 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7223
7224 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7225 New functions.
7226
7227 * lisp.h (xd_pending_messages): Declare.
7228
7229 * keyboard.c (readable_events): Call xd_pending_messages.
7230
7231 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7232
7233 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7234
7235 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7236
7237 * buffer.c (set_buffer_internal_1)
7238 (swap_out_buffer_local_variables): Check for unbound local
7239 variables (Bug#4138).
7240
7241 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7242
7243 * process.c (create_pty): Fix last change.
7244
7245 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7246
7247 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7248 (xbm_load_image): Caller changed.
7249 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7250
7251 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7252
7253 * process.c (create_pty): New function.
7254 (Fstart_process): Use it to allow Emacs to just associate a pty
7255 with the buffer. See associated change in gdb-mi.el.
7256 (list_processes_1): Deal with no program name.
7257 (start_process_unwind): Use pid == -2 to mean no process.
7258
7259 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7260
7261 * cmds.c (nonundocount): New global variable.
7262 (keys_of_cmds): Initialize it.
7263 (Fself_insert_command): Use it to combine upto 20 sequential chars
7264 into a single undo entry, just like the Qself_insert_command code in
7265 keyboard.c does.
7266 Call frame_make_pointer_invisible, also like the Qself_insert_command
7267 code in keyboard.c does.
7268 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7269 than its own local replacement for it.
7270
7271 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7272
7273 * fns.c (concat): Don't re-set string length to its current value.
7274
7275 * coding.h (decode_coding_string, encode_coding_string):
7276 Use SBYTES macro.
7277
7278 * doprnt.c (doprnt_lisp): Delete unused function.
7279 (doprnt): Merge with doprnt1, discarding lispstrings code.
7280 * lisp.h (doprnt_lisp): Don't declare.
7281
7282 2009-08-07 Juri Linkov <juri@jurta.org>
7283
7284 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7285
7286 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7287
7288 * print.c (syms_of_print): Undo previous change.
7289
7290 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7291
7292 * lread.c (read1, syms_of_lread): Read hashtables back from the
7293 readable format.
7294
7295 * print.c (print_preprocess, print_object): Print hashtables fully
7296 and readably.
7297 (syms_of_print): Provide 'hashtable-print-readable.
7298
7299 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7300
7301 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7302 no family set.
7303 (nsfont_open): Handle case when entity has no family.
7304
7305 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7306
7307 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7308 element, not a list, for match case.
7309
7310 2009-07-28 Kenichi Handa <handa@m17n.org>
7311
7312 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7313 rigidly.
7314
7315 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7316 font_parse_xlfd. Check font properties more rigidly.
7317
7318 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7319
7320 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7321 bsd-common.h.
7322
7323 2009-07-27 Kenichi Handa <handa@m17n.org>
7324
7325 * xfaces.c (face_with_height): Call font_clear_prop.
7326
7327 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
7328
7329 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7330
7331 * xterm.c (x_term_init): Use Qx.
7332
7333 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7334
7335 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
7336 (ns_get_color): Revert 2009-07-16 change.
7337
7338 2009-07-25 Eli Zaretskii <eliz@gnu.org>
7339
7340 * lread.c (syms_of_lread) <force_load_messages>: New variable.
7341 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
7342
7343 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
7344
7345 * coding.h (decode_coding_string, encode_coding_string):
7346 Use SCHARS macro.
7347
7348 * lread.c: Rewrite 2009-07-21 changes.
7349 (load_depth): Delete.
7350 (Qload_in_progress): New variable.
7351 (load_unwind): Don't reference load_depth or load_in_progress.
7352 (Fload): Likewise; specbind Qload_in_progress instead.
7353 (init_lread): Don't initialize load_depth.
7354 (syms_of_lread): Initialize and protect Qload_in_progress.
7355
7356 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7357
7358 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7359
7360 2009-07-23 Yavor Doganov <yavor@gnu.org>
7361
7362 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7363
7364 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7365
7366 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7367 Bugs 3792, 3720, 2402.
7368 (ns_lookup_indexed_color): Check for bad index.
7369 (ns_index_color): Init unused slot to 0.
7370 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7371 Bug 3714, possibly 3082.
7372
7373 2009-07-22 Jason Rumney <jasonr@gnu.org>
7374
7375 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7376 Position IME window at cursor (Bug#2570).
7377 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7378 (globals_of_w32fns): Dynamically load functions required above.
7379
7380 * w32term.c (w32_draw_window_cursor): Send message to reposition
7381 any IME window.
7382
7383 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7384
7385 * fileio.c: Revert 2009-07-16 changes.
7386 (Vauto_save_include_big_deletions): New variable.
7387 (Fdo_auto_save): Disable auto-save only if
7388 auto-save-include-big-deletions is nil.
7389
7390 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7391
7392 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7393 the overflowed pixels into account (Bug#3879).
7394
7395 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
7396
7397 * lread.c (load_depth): New variable.
7398 (Fload, load_unwind, init_lread): Set it to the load recursion
7399 depth; set load_in_progress as a simple boolean based on the
7400 current load_depth. (Bug#3892)
7401
7402 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7403
7404 * nsfont.m (ns_has_attribute): Remove.
7405 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7406
7407 2009-07-18 Juri Linkov <juri@jurta.org>
7408
7409 * process.c (Fset_process_query_on_exit_flag): Mention killing
7410 a buffer in docstring.
7411
7412 2009-07-17 Kenichi Handa <handa@m17n.org>
7413
7414 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7415
7416 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7417
7418 * nsfns.m (Fns_set_alpha): Remove function.
7419 (syms_of_nsfns): Don't defsubr it.
7420
7421 * nsterm.m (ns_get_color): Remove incompatible color formats.
7422 (ns_color_to_lisp): Generate #rrggbb color format string.
7423
7424 2009-07-16 Richard Stallman <rms@gnu.org>
7425
7426 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7427 (Fset_buffer_auto_saved): Handle save_length = -2.
7428
7429 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
7430
7431 * xterm.c (Qx_gtk_map_stock): New var.
7432
7433 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7434 of calling intern each time.
7435
7436 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7437
7438 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7439 does tiling.
7440
7441 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7442
7443 2009-07-14 Kenichi Handa <handa@m17n.org>
7444
7445 * font.c (font_vconcat_entity_vectors): New function.
7446 (struct font_sort_data): New member font_driver_preference.
7447 (font_compare): Check font_driver_preference.
7448 (font_sort_entities): The format of the first argument changed.
7449 (font_delete_unmatched): Likewise.
7450 (font_list_entities): The return type changed.
7451 (font_select_entity): The format of the second argument changed.
7452 (font_find_for_lface): Adjuste for the above changes.
7453 Don't suppress the checking of C even if the repertory supports it.
7454 (Flist_fonts): Adjust for the above changes.
7455
7456 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7457 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7458 Reject a font who has adstyle property that is different from a
7459 langname derived from registry property.
7460 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7461
7462 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7463
7464 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7465 local copy of dirfilename.
7466
7467 2009-07-13 Kenichi Handa <handa@m17n.org>
7468
7469 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7470 against max_char.
7471
7472 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7473 calling XSYMBOL (sym).
7474
7475 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7476
7477 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7478 New function.
7479 (directory_files_internal) [WINDOWSNT]:
7480 Bind w32-get-true-file-attributes to either t or nil, depending whether
7481 the filesystem of the directory is fast or slow.
7482
7483 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7484 file name.
7485 (is_slow_fs): New function.
7486 (stat): Use it to determine whether to issue more system calls to
7487 get accurate file attributes, when w32-get-true-file-attributes is
7488 `local'.
7489
7490 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7491
7492 * xfns.c (Fx_select_font): Remember last font selected in
7493 x_last_font_name and use that the next time. Also try the frame
7494 parameter font-parameter as default to the font dialog.
7495
7496 2009-07-10 Kenichi Handa <handa@m17n.org>
7497
7498 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7499
7500 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7501
7502 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7503
7504 * w32.c (stat): Treat UNC file names as residing on remote
7505 drives. (Bug#3542)
7506
7507 2009-07-09 Kenichi Handa <handa@m17n.org>
7508
7509 * fontset.c (fontset_find_font): Fix previous change.
7510
7511 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7512
7513 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7514 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7515 error flag.
7516
7517 2009-07-08 Kenichi Handa <handa@m17n.org>
7518
7519 * fontset.c (fontset_find_font): Fix the logic of handling
7520 charset_matched.
7521 (font_for_char): Delete unused var.
7522 (generate_ascii_font_name): Delete it.
7523
7524 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7525
7526 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7527 (encode_coding_sjis): Fix the code range check.
7528
7529 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7530
7531 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7532 (Fexpand_file_name): Copy string data properly (Bug#3772).
7533
7534 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7535
7536 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7537 first MapNotify.
7538
7539 2009-07-07 Kenichi Handa <handa@m17n.org>
7540
7541 * character.h (unibyte_has_multibyte_table): Delete extern.
7542 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7543
7544 * charset.c (Fset_charset_priority): Update charset_unibyte.
7545 (syms_of_charset): Initialize charset_unibyte.
7546
7547 * character.c (unibyte_has_multibyte_table): Delete it.
7548 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7549 charset_unibyte.
7550 (multibyte_char_to_unibyte_safe): Likewise.
7551 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7552
7553 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7554 (x_produce_glyphs): Likewise.
7555
7556 * .gdbinit (xcharset): Fix the treating $arg0.
7557
7558 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7559
7560 Emulation of `getloadavg' on MS-Windows.
7561 * w32.c: Include float.h.
7562 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7563 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7564 (get_native_system_info, get_system_times): New functions.
7565 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7566 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7567 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7568 g_b_init_get_system_times, and num_of_processors.
7569
7570 2009-07-03 Jason Rumney <jasonr@gnu.org>
7571
7572 * w32term.c (w32_initialize): Use standard types.
7573
7574 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7575
7576 * dired.c (Ffile_attributes): Decode user and group names by the
7577 locale's encoding. (Bug#3443)
7578
7579 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7580
7581 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7582 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7583
7584 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7585
7586 * term.c (init_tty): Remove spurious #ifdef.
7587
7588 * m/mips.h: Mention this file is also used for netbsd.
7589 * m/pmax.h: Remove file.
7590
7591 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7592
7593 * xterm.h (struct x_display_info): Add invisible_cursor.
7594 (struct x_output): Add current_cursor.
7595
7596 * xterm.c (XTtoggle_invisible_pointer): New function.
7597 (x_define_frame_cursor): Don't define cursor if invisible or the
7598 same as before. Set current_cursor.
7599 (x_create_terminal): Set toggle_invisible_pointer_hook.
7600
7601 * xfns.c (make_invisible_cursor): New function.
7602 (x_set_mouse_color): Call make_invisible_cursor.
7603 Set current_cursor.
7604 (x_window): Set current_cursor.
7605
7606 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7607
7608 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7609 inserting a character.
7610 (read_avail_input): Call frame_make_pointer_visible.
7611
7612 * frame.c (Vmake_pointer_invisible): New variable.
7613 (frame_make_pointer_invisible, frame_make_pointer_visible):
7614 New functions.
7615 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7616
7617 * frame.h: Declare frame_make_pointer_invisible and
7618 frame_make_pointer_visible.
7619 (struct frame): Add pointer_invisible.
7620
7621 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7622
7623 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7624 frame isn't visible.
7625 (xg_frame_resized): If width/height is -1, get size of window
7626 from X server.
7627
7628 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7629 for MapNotify.
7630
7631 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7632 here or call change_frame_size. Just call flush_and_sync.
7633 (flush_and_sync): Reintroduce.
7634
7635 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7636
7637 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7638
7639 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7640 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7641
7642 * frame.h: Declare Qsticky.
7643
7644 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7645
7646 * nsfns.m (ns_frame_parm_handlers): Ditto.
7647
7648 * frame.c: Declare Qsticky.
7649 (frame_parms): Add sticky.
7650
7651 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7652
7653 * xterm.h: Declare x_set_sticky.
7654
7655 * xterm.c (x_set_sticky): New function.
7656
7657 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7658 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7659 xg_tool_bar_proxy_help_callback.
7660
7661 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7662
7663 * frame.c: Qmaximized is new.
7664 (x_set_frame_parameters): Do not handle fullscreen specially.
7665 Only set width and height if explicitly set.
7666 (x_set_fullscreen): Handle Qmaximized.
7667 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7668 (syms_of_frame): Initialize Qmaximized.
7669
7670 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7671 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7672
7673 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7674 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7675 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7676 set gravity to NorthWestGravity when USE_GTK.
7677 (set_wm_state): New function.
7678 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7679 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7680 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7681 or the case when no window manager is running. That means remove calls
7682 to x_real_positions and x_fullscreen_adjust.
7683
7684 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7685 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7686 flush_and_sync.
7687 (xg_height_changed): New function.
7688 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7689 and gtk_window_set_policy. Set frame gravity after parsing the
7690 geometry string.
7691 (xg_update_frame_menubar, free_frame_menubar)
7692 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7693 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7694 Remove calls to xg_frame_set_char_size.
7695
7696 2009-07-01 Kenichi Handa <handa@m17n.org>
7697
7698 * keyboard.c (decode_keyboard_code): New function.
7699 (tty_read_avail_input): Decode the input bytes if necessary.
7700
7701 * coding.c (setup_coding_system):
7702 Initialize coding->carryover_bytes to 0.
7703 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7704 use Qno_conversion.
7705
7706 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7707
7708 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7709
7710 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7711
7712 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7713
7714 2009-06-30 Jason Rumney <jasonr@gnu.org>
7715
7716 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7717 is already loaded.
7718 Set user model ID if supported (bug#1849).
7719
7720 2009-06-29 Jim Meyering <meyering@redhat.com>
7721
7722 Remove useless if-before-xfree test.
7723 * nsfont.m (nsfont_close): Remove useless test.
7724 * term.c (delete_tty): Likewise.
7725 * w32.c (system_process_attributes): Likewise.
7726 * w32font.c (w32font_close): Likewise.
7727 * xfaces.c (x_free_gc): Likewise.
7728 * xselect.c (buffer): Likewise.
7729
7730 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7731
7732 * process.c (send_process): Keep decoded string in a local
7733 variable and protect it from GC. (Bug#3521)
7734
7735 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7736
7737 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7738 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7739
7740 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7741
7742 * xdisp.c (start_display, handle_face_prop)
7743 (move_it_vertically_backward, cursor_row_fully_visible_p)
7744 (redisplay_window, try_window_id, produce_image_glyph):
7745 Delete some #ifdef-ed out code chunks that are now obsolete.
7746
7747 * xterm.c (x_update_window_begin, x_new_focus_frame)
7748 (x_scroll_bar_handle_click, handle_one_xevent)
7749 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7750 (x_make_frame_visible, x_make_frame_invisible)
7751 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7752 code chunks that are now obsolete.
7753
7754 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7755
7756 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7757 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7758 for hours, when optimzation is enabled.
7759 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7760 (xd_read_message): Make them static.
7761
7762 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7763
7764 * term.c (turn_on_face): Allow simultaneously bold and dim
7765 terminal faces (Bug#3530).
7766
7767 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7768
7769 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7770
7771 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7772 truncation glyphs (Bug#3686).
7773
7774 2009-06-27 Glenn Morris <rgm@gnu.org>
7775
7776 * m/pmax.h: Restore file, with only netbsd portions.
7777
7778 2009-06-26 David Reitter <david.reitter@gmail.com>
7779
7780 * nsterm.m (keydown): Avoid infinite loop.
7781
7782 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7783
7784 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7785 the arg FORCE_SYMBOL.
7786
7787 2009-06-25 Kenichi Handa <handa@m17n.org>
7788
7789 * fontset.c (fontset_find_font): When a usable rfont_def is found
7790 in a fallback font-group, make it the first element of the group.
7791
7792 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7793
7794 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7795
7796 2009-06-24 Kenichi Handa <handa@m17n.org>
7797
7798 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7799 set for C.
7800 (fontset_font): Record the availability of a font for C both in
7801 the realized fontsets of the current one and the default one.
7802
7803 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7804
7805 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7806 conditional, it is always defined on AIX.
7807
7808 2009-06-23 Miles Bader <miles@gnu.org>
7809
7810 * window.c (Vrecenter_redisplay): New variable.
7811 (syms_of_window): Initialize it.
7812 (Qtty): New extern declaration.
7813 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7814
7815 2009-06-23 Jim Meyering <meyering@redhat.com>
7816
7817 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7818 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7819 pointer dereferences are guaranteed to be valid.
7820
7821 2009-06-23 Kenichi Handa <handa@m17n.org>
7822
7823 * emacs.c (main): Call init_font ().
7824
7825 * font.h (Vfont_log): Extern it.
7826 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7827
7828 * font.c (font_sort_entities, font_list_entities)
7829 (font_matching_entity, font_open_entity)
7830 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7831 (Vfont_log): Delete static.
7832 (font_log_env_checked): Delete this variable.
7833 (font_add_log): Don't check font_log_env_checked.
7834 (font_deferred_log): Check Vfont_log.
7835 (init_font): New function.
7836
7837 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7838
7839 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7840
7841 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7842
7843 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7844
7845 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7846 (face_for_char): Don't call font_deferred_log here.
7847 (font_for_char): Likewise.
7848
7849 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7850
7851 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7852 rather than its background_width for drawing the overline and
7853 underline (Bug#489).
7854
7855 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7856 rather than its background_width for drawing the overline and
7857 underline (Bug#489).
7858 (xg_default_icon_file): New variable.
7859 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7860 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7861
7862 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7863 (load_overlay_strings): Remove externs.
7864 (fast_find_position): Function deleted.
7865 (mouse_face_from_buffer_pos): New function, based on
7866 fast_find_position. Correctly handle before-strings,
7867 display-strings, and after-strings (Bug#1220).
7868 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7869
7870 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7871
7872 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7873 (move_it_in_display_line_to, move_it_in_display_line_to)
7874 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7875
7876 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7877
7878 * Branch for 23.1.
7879
7880 2009-06-21 Jason Rumney <jasonr@gnu.org>
7881
7882 * w32term.c (keyboard_codepage): New static variable.
7883 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7884 (w32_read_socket) [WM_CHAR]: Use it to decode character
7885 input (bug#3237).
7886 (w32_initialize): Initialize it.
7887 (codepage_for_locale): New function.
7888
7889 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7890
7891 * process.c (status_message): Pass Faset index argument as a lisp
7892 object, so as to work with USE_LISP_UNION_TYPE.
7893
7894 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7895
7896 * coding.c (Ffind_coding_systems_region_internal):
7897 Cache checked characters.
7898
7899 2009-06-18 Kenichi Handa <handa@m17n.org>
7900
7901 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7902
7903 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7904
7905 * xdisp.c (redisplay_internal): Check that the frame is still
7906 live after redisplay of its windows.
7907 (redisplay_windows): Check that the window is still live.
7908
7909 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7910
7911 * coding.c (detect_coding_utf_16): Fix previous change.
7912
7913 2009-06-16 Kenichi Handa <handa@m17n.org>
7914
7915 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7916 UTF-16 by checking the dispersion of Eth and Oth bytes.
7917
7918 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7919
7920 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7921
7922 2009-06-15 Kenichi Handa <handa@m17n.org>
7923
7924 * process.c (status_message): Fix previous change. Be sure to
7925 decode a localized string.
7926
7927 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7928
7929 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7930 add comment explaining why.
7931
7932 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7933
7934 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7935
7936 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7937
7938 * nsfont.m (ns_attribute_value): Remove.
7939 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7940 (ns_has_attribute): Shrink the normal range.
7941 (ns_findfonts): Don't worry about requested spec in determining
7942 need for synthItal.
7943 (ns_get_covering_families): Retain scriptToFamilies.
7944
7945 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7946
7947 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7948
7949 2009-06-11 Kenichi Handa <handa@m17n.org>
7950
7951 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7952 overhang for the static composition case.
7953
7954 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7955
7956 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7957 overhang for the automatic composition case.
7958
7959 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7960 composition case.
7961
7962 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7963
7964 * xdisp.c (get_next_display_element): When handling wrap-prefix
7965 and line-prefix, treat \n as a control character (bug#3502).
7966
7967 2009-06-10 Kenichi Handa <handa@m17n.org>
7968
7969 * font.c (font_parse_family_registry): Fix for one-char foundry.
7970 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7971
7972 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7973
7974 * process.c (status_message): Fix handling of multibyte signal
7975 string (Bug#3499).
7976
7977 2009-06-09 Jim Meyering <meyering@redhat.com>
7978
7979 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7980 color name is missing.
7981
7982 2009-06-09 Kenichi Handa <handa@m17n.org>
7983
7984 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7985 FROM-CODE and TO-CODE are codepoints of CHARSET.
7986
7987 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7988
7989 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7990
7991 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7992
7993 Changes to support :script/:lang/:otf in NS font driver.
7994 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7995 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7996 indicate not part of font driver interface, and change callers.
7997 (ns_get_family): Remove pointless null check.
7998 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7999 ns_spec_to_descriptor, ns_descriptor_to_entity.
8000 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8001 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8002 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8003 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8004 (ns_get_req_script, ns_accumulate_script_ranges)
8005 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8006 New functions.
8007 (nsfont_list, nsfont_match): Use ns_findfonts.
8008 (nsfont_open): Use font descriptor instead of traits.
8009 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8010 (dump_glyphstring): Rename to ns_dump_glyphstring.
8011
8012 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8013
8014 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8015
8016 * fontset.c (fontset_from_font): Remove NS-specific code.
8017
8018 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
8019
8020 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8021 nonactive windows.
8022
8023 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
8024
8025 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
8026
8027 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8028
8029 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8030
8031 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
8032
8033 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8034 account for the overflowing of newlines into the last glyph on the
8035 display line (Bug#3482).
8036
8037 2009-06-05 David Reitter <david.reitter@gmail.com>
8038
8039 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8040 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
8041 Fns_selection_exists_p, Fns_selection_owner_p.
8042
8043 2009-06-03 Jason Rumney <jasonr@gnu.org>
8044
8045 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8046 available. (Bug#3379)
8047
8048 2009-05-29 Kenichi Handa <handa@m17n.org>
8049
8050 * coding.c (get_translation_table):
8051 Check Venable_character_translation.
8052
8053 2009-05-26 David Reitter <david.reitter@gmail.com>
8054
8055 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8056 (x_make_frame_visible): Move frame to front rather than calling
8057 ns_raise_frame().
8058 (keyDown:): Do not swallow events that aren't re-sent if frame
8059 isn't key window.
8060 (drawRect:): Do not set visibility/iconified flags because
8061 drawRect may be called by NSView even if the frame is hidden.
8062
8063 * nsfns.m (Fx_create_frame): Follow other ports in
8064 determining visibility; default to t. Ensure async_visible is set.
8065
8066 2009-05-23 Eli Zaretskii <eliz@gnu.org>
8067
8068 * dired.c (Ffile_attributes): Doc fix.
8069
8070 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
8071
8072 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8073
8074 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8075
8076 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8077 and xfont_scratch_props.
8078 (syms_of_xfont): Do it here instead.
8079 (xfont_find_ccl_program): Delete, unused.
8080 (xfont_open): Delete unused var `i'.
8081
8082 2009-05-21 Kenichi Handa <handa@m17n.org>
8083
8084 * fontset.c (Qlatin): Don't make it static.
8085
8086 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8087 New functions.
8088 (xfont_scripts_cache, xfont_scratch_props): New variables.
8089 (Qlatin, Vscalable_fonts_allowed): Extern it.
8090 (xfont_list_pattern): Argument changed. Callers changed.
8091 Check Vscalable_fonts_allowed. Check the support of a script.
8092 (xfont_list): Don't reject a font spec with :script property.
8093 (xfont_has_char): Fix setting of encoding.
8094 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8095 xfont_scratch_props.
8096
8097 2009-05-19 Kenichi Handa <handa@m17n.org>
8098
8099 * font.c (font_sort_entities): Rename from font_sort_entites.
8100 Callers changed.
8101
8102 2009-05-18 Kenichi Handa <handa@m17n.org>
8103
8104 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8105
8106 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8107
8108 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8109 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8110
8111 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8112
8113 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8114 (x_delete_terminal): Dissociate resource database from display and
8115 then call XrmDestroyDatabase before closing display.
8116
8117 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8118
8119 * nsterm.m (ns_read_socket): Remove unused variable.
8120 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8121 whether selected frame is viable before raising it (based on patch
8122 by David Reitter), and improve commentary.
8123 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
8124
8125 2009-05-15 Kenichi Handa <handa@m17n.org>
8126
8127 * font.c (Ffont_spec): Check arguments.
8128
8129 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
8130
8131 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8132 weight when testing attributes (Bug#3282).
8133
8134 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8135
8136 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8137 what we expect to get in the next ConfigureNotify event.
8138
8139 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8140 before Xft one (Bug#1696).
8141
8142 2009-05-07 David Reitter <david.reitter@gmail.com>
8143
8144 * nsfns.m (Fx_display_planes): Compute bitplanes using
8145 NSBitsPerPixelFromDepth (Bug#3207).
8146
8147 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
8148
8149 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8150
8151 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
8152
8153 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8154
8155 2009-05-07 David Reitter <david.reitter@gmail.com>
8156
8157 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8158 Respect mouse face background.
8159
8160 2009-05-07 David Reitter <david.reitter@gmail.com>
8161
8162 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8163 Mouse movement/highlight: bracket drawing operations
8164 in ns_update_begin and ns_update_end.
8165
8166 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8167
8168 * nsfns.m (ns_get_screen): Rewrite.
8169 Don't presume selected-frame is of type `ns'.
8170
8171 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8172 all drivers.
8173
8174 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8175
8176 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8177
8178 * keyboard.h (add_user_signal): Fix typo in extern.
8179
8180 * lisp.h (add_user_signal): Remove extern.
8181
8182 * unexelf.c (unexec): Consider a section to precede the .bss section
8183 if its addresses overlap that of .bss.
8184 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8185 instead of dumping process.
8186
8187 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8188
8189 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8190
8191 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8192
8193 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8194
8195 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8196
8197 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8198 any statements.
8199
8200 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8201
8202 * process.c (read_process_output): Make sure the current buffer is
8203 always restored.
8204
8205 * coding.c (record_conversion_result): Don't modify
8206 Vlast_code_conversion_error for successful result.
8207 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8208
8209 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8210
8211 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8212 (load_charset_map): Remove unnecessary code.
8213
8214 2009-04-30 David Reitter <david.reitter@gmail.com>
8215
8216 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8217 through f24.
8218
8219 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8220
8221 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8222
8223 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8224 face_at_buffer_position.
8225 (face_before_or_after_it_pos, get_next_display_element)
8226 (note_mouse_highlight): Update face_at_buffer_position call.
8227
8228 * term.c (term_mouse_highlight):
8229 * msdos.c (IT_note_mouse_highlight):
8230 * fontset.c (Finternal_char_font):
8231 * font.c (font_at, font_range): Update face_at_buffer_position call.
8232
8233 * dispextern.h (face_at_buffer_position): Update prototype.
8234
8235 2009-04-30 Kenichi Handa <handa@m17n.org>
8236
8237 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8238
8239 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8240
8241 * callproc.c (Fcall_process): Fix GC protection. Make sure
8242 current buffer is always restored.
8243
8244 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8245
8246 * atimer.c (init_atimer): Also clear stopped_atimers.
8247
8248 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8249
8250 * process.c (create_process): Clean up merger residues of
8251 2008-07-17 change.
8252
8253 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8254
8255 * lread.c (Vread_circle): New variable.
8256 (read1): Disable recursive read if Vread_circle is nil.
8257
8258 2009-04-29 Kenichi Handa <handa@m17n.org>
8259
8260 * fontset.h (set_default_ascii_font): Delete extern.
8261
8262 * fontset.c (set_default_ascii_font): Delete this unused function.
8263
8264 * frame.c (x_set_font): When ARG is a font-object, check if the
8265 font-object matches with the ASCII font-spec of the frame's
8266 fontset. If not, create a new fontset for the frame. (Bug #3075)
8267
8268 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8269
8270 * fns.c (Flocale_info): Protect vector from GC during decoding.
8271
8272 * process.c (Fstart_process): Protect argv strings from GC during
8273 encoding.
8274
8275 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8276
8277 * sysdep.c: Include <ctype.h>.
8278
8279 2009-04-27 David Reitter <david.reitter@gmail.com>
8280
8281 * nsfont.m (nsfont_open): Remove unused variable shrink.
8282 Remove commented-out code.
8283
8284 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8285
8286 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8287
8288 2009-04-25 Jason Rumney <jasonr@gnu.org>
8289
8290 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8291
8292 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8293
8294 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8295 Swap bytes in short integer if fringe bitmap width > 8.
8296
8297 2009-04-23 Kenichi Handa <handa@m17n.org>
8298
8299 * xfaces.c (Fx_list_fonts): If a font size is specified in
8300 PATTERN, set it in returned scalable fonts.
8301
8302 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * keyboard.c (Fset_input_meta_mode): Doc fix.
8305
8306 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8307
8308 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
8309
8310 * coding.c (Fterminal_coding_system): Doc fix.
8311
8312 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8313 (Fx_display_pixel_height, Fx_display_planes)
8314 (Fx_display_color_cells, Fx_server_max_request_size)
8315 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8316 (Fx_display_mm_height, Fx_display_mm_width)
8317 (Fx_display_backing_store, Fx_display_visual_class)
8318 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8319 Doc fixes, replacing "terminal id" with "terminal object".
8320 (check_x_display_info): Handle terminal objects instead of
8321 terminal ids.
8322
8323 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8324 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
8325 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8326 Doc fixes, replacing "terminal id" with "terminal object".
8327
8328 2009-04-21 Kenichi Handa <handa@m17n.org>
8329
8330 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
8331 (font_score): Check AVGWIDTH too.
8332
8333 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8334 worst case.
8335 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8336 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
8337
8338 2009-04-19 Jason Rumney <jasonr@gnu.org>
8339
8340 The following changes fix Bug#3005 for wide glyphs on each platform,
8341 without reintroducing Bug#1258 for stretch glyphs.
8342
8343 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8344 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8345 get_phys_cursor_geometry.
8346
8347 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
8348 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8349 using get_phys_cursor_geometry.
8350
8351 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8352 correctly calculated.
8353
8354 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8355
8356 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8357 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
8358 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8359 is deprecated.
8360
8361 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8362
8363 * font.c (font_put_frame_data): Use xfree instead of free.
8364
8365 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
8366
8367 * w32font.c (Qja, Qko): Remove declarations.
8368 (syms_of_w32font): Don't DEFSYM them.
8369
8370 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
8371
8372 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8373
8374 * font.h (Qja, Qko): Extern them.
8375
8376 * ftfont.c (Qja, Qko): Remove declarations.
8377
8378 * xfont.c (Qja, Qko): Remove declarations.
8379
8380 2009-04-17 Kenichi Handa <handa@m17n.org>
8381
8382 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8383 string from a vector to handle Latin-1 characters correctly.
8384
8385 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8386 entity even if the cache hits.
8387
8388 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8389
8390 * search.c (boyer_moore): Use zero as marker value for a possible
8391 match instead of depending on overflow behavior. (Bug#2844)
8392
8393 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8394 * lisp.h: Adjust prototypes.
8395
8396 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
8397
8398 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8399 change (Bug#3003).
8400
8401 2009-04-16 Kenichi Handa <handa@m17n.org>
8402
8403 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
8404
8405 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8406 adstyle.
8407
8408 * ftfont.c (Qja, Qko): Don't make them static.
8409 (enum ftfont_cache_for): New enum.
8410 (fc_charset_table): Undo the previous change.
8411 (ftfont_get_latin1_charset): Delete it.
8412 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8413 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
8414 non-scarable font, try to get AVERAGE_WIDTH.
8415 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8416 Change ft_face_cache from a list of a hash-table. Don't check
8417 `ja' and `ko' adstyle here.
8418 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8419 FTFONT_CACHE_FOR_CHARET.
8420 (ftfont_get_charset): Undo the previous change.
8421 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
8422 (ftfont_close): Likewise.
8423 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8424
8425 * font.c (font_sort_entites): Change the meaning of the arg
8426 BEST-ONLY. Don't optimize for VEC of lenght 1.
8427 (font_select_entity): Just return the value of font_sort_entites.
8428
8429 * xfaces.c (merge_face_vectors): Reflect font properties in
8430 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8431 font_clear_prop if a face attribute doesn't change.
8432
8433 * charset.h (charset_ksc5601): Extern it.
8434
8435 * charset.c (charset_ksc5601): New variable.
8436 (Fdefine_charset_internal): Set charset_ksc5601.
8437 (init_charset_once): Initialize charset_ksc5601 to -1.
8438
8439 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8440
8441 * fileio.c (history_delete_duplicates): Remove unused declaration.
8442
8443 * callint.c (history_delete_duplicates): New declaration.
8444 (Fcall_interactively): Remove command history duplicates when
8445 history_delete_duplicates is true.
8446
8447 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8448
8449 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8450
8451 2009-04-14 Kenichi Handa <handa@m17n.org>
8452
8453 * font.c (Ffont_info): Fix docstring. Fix the second element of
8454 the returned value (bug#2949).
8455
8456 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8457
8458 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8459
8460 2009-04-14 Kenichi Handa <handa@m17n.org>
8461
8462 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8463 encoding charset is ascii_compatible.
8464
8465 * charset.c (Fdefine_charset_internal): Make charset
8466 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8467 code_offset is 0, and covers all ASCII characters.
8468
8469 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8470
8471 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8472 (ns_string_to_pasteboard_internal):
8473 * nsmenu.m (process_dialog):
8474 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8475 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8476 * lisp.h (Fx_load_color_file): Declare.
8477
8478 2009-04-13 Kenichi Handa <handa@m17n.org>
8479
8480 * font.c (font_delete_unmatched): Preserve the order of list elements.
8481 (font_select_entity): Suppress the code to optimize for the same
8482 kind of fonts.
8483 (font_load_for_lface): Get a font that supports at least ASCII
8484 characters.
8485
8486 * ftfont.c (Qja, Qko): New variables.
8487 (fc_charset_table): Delete uniquifier data for iso8859-1.
8488 (ftfont_get_latin1_charset): New function.
8489 (get_adstyle_property): New function.
8490 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8491 bitmap fonts.
8492 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8493 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8494 `ko' or `ja'.
8495 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8496 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8497 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8498 property.
8499 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8500 (syms_of_ftfont): DEFSYM Qja and Qko.
8501
8502 2009-04-09 Kenichi Handa <handa@m17n.org>
8503
8504 * charset.c (map_charset_chars): For a charset of `superset'
8505 method, fix calculation of code range.
8506
8507 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8508 from the list of extra properties.
8509 (font_clear_prop): Be sure to delete `:name' font property.
8510
8511 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8512
8513 * dispnew.c (redraw_overlapping_rows): Fix detection of
8514 overlapping for topmost and bottommost rows.
8515
8516 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8517
8518 2009-04-06 Jason Rumney <jasonr@gnu.org>
8519
8520 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8521
8522 2009-04-06 Kenichi Handa <handa@m17n.org>
8523
8524 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8525
8526 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8527
8528 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8529
8530 * ftfont.c (ftfont_open): Fix checking of the return value of
8531 FT_Load_Char. Fix setting font->underline_thickness.
8532
8533 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8534
8535 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8536 (Fterminal_parameters, Fterminal_parameter)
8537 (Fset_terminal_parameter): In doc string, refer to terminal
8538 objects rather than terminal ids.
8539
8540 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8541
8542 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8543 ret_lim_data. (Bug#2867)
8544
8545 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8546
8547 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8548 so they don't get wider than the window, matching 2006-01-23
8549 change to the partner function in xdisp.c (Bug#2800).
8550
8551 2009-04-03 Kenichi Handa <handa@m17n.org>
8552
8553 * print.c (print_object): Make each lowest sub_char_table start a
8554 new line (Bug#2866).
8555
8556 2009-04-02 Kenichi Handa <handa@m17n.org>
8557
8558 * fontset.c (fontset_font): Record no-font when a fontset
8559 explicitly tells not to try another font-specs.
8560
8561 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8562
8563 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8564
8565 2009-03-30 Kenichi Handa <handa@m17n.org>
8566
8567 * fontset.c (fontset_from_font): Specify only registry in a
8568 font-spec for all characters supported by that registry.
8569
8570 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8571 even if HAVE_M17N_FLT is not defined.
8572
8573 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8574
8575 * ftfont.c: Conditionalize prototyping and use of
8576 ftfont_variation_glyphs.
8577
8578 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8579
8580 * frame.c (delete_frame): Work around compiler bug.
8581
8582 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8583 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8584 Some more EMACS_INT.
8585 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8586
8587 * xdisp.c (dump_glyph): Fix typo.
8588
8589 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8590 (adjust_markers_gap_motion, adjust_markers_for_delete)
8591 (adjust_markers_for_insert, adjust_point)
8592 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8593 (make_gap, copy_text, count_size_as_multibyte, insert)
8594 (insert_and_inherit, insert_before_markers)
8595 (insert_before_markers_and_inherit, insert_1)
8596 (count_combining_before, count_combining_after, insert_1_both)
8597 (insert_from_string, insert_from_string_before_markers)
8598 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8599 (insert_from_buffer_1, adjust_after_replace)
8600 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8601 (replace_range_2, del_range, del_range_1, del_range_byte)
8602 (del_range_both, del_range_2, modify_region)
8603 (prepare_to_modify_buffer, signal_before_change)
8604 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8605 for buffer positions and sizes.
8606 * lisp.h: Adjust prototypes accordingly.
8607
8608 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8609 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8610 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8611
8612 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8613
8614 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8615
8616 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8617 lines and columns so we keep the same pixel height and width.
8618
8619 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8620 the property _NET_WM_STATE has changed.
8621 (x_handle_net_wm_state): New function to update frame parameter
8622 fullscreen.
8623 (x_term_init): Initialize atoms for _NET_WM_STATE.
8624
8625 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8626
8627 2009-03-27 Kevin Ryde <user42@zip.com.au>
8628
8629 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8630 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8631 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8632 (Fgpm_mouse_stop): Pass that new parameter.
8633 * termhooks.h (close_gpm): Adjust prototype.
8634
8635 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 * lisp.h (Fx_focus_frame): Declare.
8638
8639 * callint.c (Fcall_interactively): For '^' just delegate the work to
8640 handle-shift-selection.
8641 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8642
8643 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8644
8645 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8646
8647 * data.c (Qinteractive_form): New variable.
8648 (Finteractive_form): Use it.
8649
8650 * eval.c (Fcommandp): Use Qinteractive_form.
8651
8652 2009-03-24 Jason Rumney <jasonr@gnu.org>
8653
8654 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8655 Calculate total size precisely. Decode environment variables
8656 before substituting. (Bug#38)
8657
8658 2009-03-24 Kenichi Handa <handa@m17n.org>
8659
8660 * font.c (find_font_encoding): Return Qnil for unsupported
8661 encoding (Bug#2722).
8662
8663 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8664
8665 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8666 that gdpy is set.
8667
8668 2009-03-22 Alan Mackenzie <acm@muc.de>
8669
8670 * callint.c (Finteractive): Clarify the doc string - even
8671 promptless elements need \n separators.
8672
8673 2009-03-22 Jason Rumney <jasonr@gnu.org>
8674
8675 * w32term.c (syms_of_w32term): Doc fix for
8676 x-use-underline-position-properties.
8677
8678 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8679
8680 * w32.c (getpwuid): Change argument type to unsigned.
8681 (struct w32_id): Change type of `rid' member to unsigned.
8682 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8683 argument ID to unsigned. All callers changed.
8684 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8685
8686 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8687
8688 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8689 negative, produce a float value.
8690
8691 * dired.c (make_uid, make_gid): New functions.
8692 (Ffile_attributes): Use them to avoid negative UID and GID.
8693
8694 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8695
8696 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8697 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8698 Fix typos in docstrings.
8699
8700 2009-03-19 Kenichi Handa <handa@m17n.org>
8701
8702 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8703 changed, use font_load_for_lface to get a new font object.
8704 Call free_realized_fontset after handling ASCII font change.
8705
8706 * frame.c (x_set_font): Handle the case that ARG is a cons.
8707
8708 2009-03-19 Glenn Morris <rgm@gnu.org>
8709
8710 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8711
8712 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8713
8714 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8715
8716 2009-03-19 Kenichi Handa <handa@m17n.org>
8717
8718 * charset.c (load_charset_map_from_file): When a mapfile can't be
8719 loaded, signal an error.
8720
8721 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8722
8723 * dired.c (Ffile_attributes): Make sure UID and GID are always
8724 positive, even if the value is too large for a positive EMACS_INT.
8725 Doc fix.
8726
8727 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8728
8729 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8730
8731 * xmenu.c (xdialog_show): Move Fredisplay call ...
8732 (Fx_popup_dialog): ... here.
8733
8734 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8735
8736 * dired.c (file_name_completion): Disable the first optimization just
8737 installed, since it is not implemented correctly.
8738
8739 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8740
8741 * dired.c (file_name_completion): Check completion-ignored-extensions
8742 only if the entry can affect bestmatch.
8743 Stop the search early, as Ftry_completion already does.
8744
8745 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8746
8747 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8748
8749 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8750
8751 * keyboard.c (parse_menu_item): Don't display remappings as menu
8752 equivalent bindings (Bug#788).
8753
8754 2009-03-15 Jason Rumney <jasonr@gnu.org>
8755
8756 * w32term.h (WM_EMACS_PAINT): New message.
8757 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8758 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8759 before passing to lisp thread. (Bug#950)
8760
8761 2009-03-14 David Reitter <david.reitter@gmail.com>
8762
8763 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8764 variable as it was never reset.
8765 (ns_term_init): Remove initialization of Lisp-settable defaults
8766 and ns_expand_space.
8767 (-setPanelFromDefaultValues): Remove ns_expand_space.
8768 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8769 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8770 i.e. no additional spacing, similar to Carbon port.
8771
8772 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8773 * nsfns.m (ns-popup-prefs-panel): Remove.
8774
8775 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8776
8777 * sound.c (alsa_configure): Remove call to deprecated
8778 snd_pcm_sw_params_set_xfer_align.
8779
8780 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8781
8782 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8783 after clicking in a detached tool bar.
8784 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8785
8786 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8787
8788 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8789 int/Lisp_Object mixup).
8790
8791 2009-03-13 Kenichi Handa <handa@m17n.org>
8792
8793 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8794 Handle NAME nil and t correctly. Callers changed.
8795 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8796 (set_fontset_font): Change ARG to a vector. Handle range_list in
8797 ARG correctly.
8798 (Fset_fontset_font): Fix the case that TARGET is both a script
8799 name and charset name. Adjust the arg to set_fontset_font for
8800 the above change.
8801 (fontset_from_font): Fix previous change.
8802 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8803 entry. If FONTSET is the default fontset, don't set the extra
8804 slot of the returning char-table.
8805
8806 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8807
8808 * nsfns.m (Fx_close_connection): Doc fix.
8809 (Fns_do_applescript): Reflow docstring.
8810 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8811 (Fx_display_pixel_width, Fx_display_pixel_height)
8812 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8813 Fix typos in docstrings.
8814 (Fns_set_alpha): Fix typos in error messages.
8815
8816 2009-03-12 David Reitter <david.reitter@gmail.com>
8817
8818 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8819 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8820 were used for such events.
8821
8822 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8823 (toggleToolbar, performDragOperation, runHelp): Use it.
8824
8825 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8826 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8827
8828 2009-03-11 Kenichi Handa <handa@m17n.org>
8829
8830 * font.h (font_open_by_spec): Extern it.
8831
8832 * font.c (font_open_by_spec): New function.
8833 (font_open_by_name): Use font_open_by_spec.
8834
8835 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8836 fontset of the frame.
8837
8838 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8839 modify the default font of frames that use this fontset.
8840 (num_auto_fontsets): New variable.
8841 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8842 name. Be sure to set FONTSET_ASCII to the correct font name.
8843 (update_auto_fontset_alist): New function.
8844
8845 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8846
8847 * makefile.w32-in: Update dependencies.
8848
8849 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8850
8851 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8852
8853 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8854
8855 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8856
8857 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8858
8859 * lread.c (Feval_buffer): Doc fix.
8860
8861 2009-03-09 Kenichi Handa <handa@m17n.org>
8862
8863 * charset.c (Qfile_name_handler_alist): Extern it.
8864 (load_charset_map_from_file): Temporarily bind
8865 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8866
8867 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8868
8869 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8870 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8871
8872 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8873
8874 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8875 (x_set_window_size): Change back to calculated method of setting
8876 toolbar height under Cocoa. (Bug#2546)
8877 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8878 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8879
8880 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8881
8882 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8883 accelerator in parens under GNUstep.
8884
8885 2009-03-06 Kenichi Handa <handa@m17n.org>
8886
8887 These changes are to detect incorrect composition sequence without
8888 looking ahead the source. (Bug#2370)
8889
8890 * coding.h: Include "composite.h".
8891 (enum compisition_state): New enum.
8892 (struct compisition_status): New struct.
8893 (struct iso_2022_spec): New member cmp_status.
8894 (struct emacs_mule_spec): New struct.
8895 (struct coding_system): New members ctext_extended_segment_len and
8896 embedded_utf_8. Change the union member
8897 spec.emacs_mule_full_support to spec.emacs_mule.
8898
8899 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8900 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8901 (MAX_ANNOTATION_LENGTH): Define to 5.
8902 (ADD_COMPOSITION_DATA): New arg nbytes.
8903 (emacs_mule_char): New arg cmp_status.
8904 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8905 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8906 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8907 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8908 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8909 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8910 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8911 (EMACS_MULE_COMPOSITION_END): New macro.
8912 (emacs_mule_finish_composition): New function.
8913 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8914 (decode_coding_emacs_mule): Avoid long looking ahead while
8915 handling composition.
8916 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8917 (ENCODE_COMPOSITION_RULE): New macro.
8918 (finish_composition): New function.
8919 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8920 (DECODE_COMPOSITION_START): New implementation.
8921 (DECODE_COMPOSITION_END): Likewise.
8922 (STORE_COMPOSITION_RULE): New macro.
8923 (decode_coding_iso_2022): Avoid long looking ahead while handling
8924 composition, CTEXT extended segment, and embedded UTF-8.
8925 (setup_coding_system): For a coding of type iso-2022, reset
8926 CODING_ISO_EXTSEGMENT_LEN (coding) and
8927 CODING_ISO_EMBEDDED_UTF_8 (coding).
8928 (get_translation): Delete arguments last_block, from_nchars,
8929 to_nchars. Callers changed.
8930 (produce_chars): Don't modify charbuf. Adjusted for the change of
8931 get_translation.
8932 (produce_composition): Adjust for the new annotation sequence.
8933 (handle_composition_annotation): Likewise.
8934 (consume_chars): Adjust for the change of get_translation.
8935
8936 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8937
8938 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8939
8940 2009-03-05 Kenichi Handa <handa@m17n.org>
8941
8942 * font.c (font_select_entity): New function.
8943 (font_find_for_lface): Use font_select_entity to select a font.
8944
8945 * fontset.c (fontset_find_font): If a font found without
8946 restricting to the characters C doesn't support C, try to find a
8947 font with C restriction.
8948
8949 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8950
8951 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8952
8953 2009-03-04 Jason Rumney <jasonr@gnu.org>
8954
8955 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8956 characters that have already been read. (Bug#2569)
8957
8958 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8959 Log an error message if check_image_size failed.
8960 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8961 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8962
8963 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8964
8965 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8966 when decoding process output.
8967
8968 2009-03-01 Richard M Stallman <rms@gnu.org>
8969
8970 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8971
8972 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8973
8974 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8975
8976 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8977 (decode_coding_emacs_mule, decode_coding_iso_2022)
8978 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8979 (decode_coding_raw_text, decode_coding_charset)
8980 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8981 Honor inhibit-eol-conversion. (Bug #2186)
8982
8983 2009-02-28 Jason Rumney <jasonr@gnu.org>
8984
8985 * coding.c (detect_coding_charset): If not checking latin extra,
8986 fail on characters between 0x80 and 0xA0. (Bug#2354)
8987
8988 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8989
8990 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8991 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
8992
8993 2009-02-27 Glenn Morris <rgm@gnu.org>
8994
8995 * callint.c (Finteractive): Doc fix.
8996
8997 2009-02-27 Kenichi Handa <handa@m17n.org>
8998
8999 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9000
9001 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
9002
9003 * font.c (font_style_to_value): Set value for unknown symbols to
9004 100 instead of 255.
9005 (weight_table, slant_table, width_table): Treat "unspecified" as
9006 the default value.
9007
9008 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
9009
9010 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9011
9012 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
9013
9014 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9015 error as soon as a recursive load is detected.
9016
9017 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9018
9019 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9020 before caching.
9021
9022 2009-02-24 Kenichi Handa <handa@m17n.org>
9023
9024 * fontset.c (fontset_find_font): Fix the condition for checking
9025 unavailable font.
9026
9027 2009-02-24 Glenn Morris <rgm@gnu.org>
9028
9029 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9030 whitespace that confuses documentation.
9031
9032 2009-02-23 Miles Bader <miles@gnu.org>
9033
9034 * process.c (Flist_system_processes, Fprocess_attributes)
9035 (syms_of_process): Rename `system-process-attributes' to
9036 `process-attributes'.
9037
9038 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9039
9040 * coding.h (struct coding_system): Make safe_charsets a pointer to
9041 unsigned char.
9042 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9043 being 255.
9044 (SAFE_CHARSET_P): Likewise.
9045 (setup_iso_safe_charsets): Properly setup safe_charsets.
9046 (Fdefine_coding_system_internal): Likewise.
9047 (setup_coding_system): Likewise. Remove unneeded casts.
9048 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9049 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9050 unneeded casts.
9051
9052 * insdel.c (del_range_2): Don't modify gap contents when called
9053 from decode_coding_object. (Bug#1809)
9054
9055 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
9056
9057 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9058 Qfont_object.
9059 (Ftype_of): Recognize font objects.
9060
9061 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9062
9063 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9064 moved to data.c.
9065
9066 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9067
9068 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9069 async_iconified. Based on a patch by Christian Lynbech
9070 <christian.lynbech@tieto.com>.
9071 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9072
9073 2009-02-20 Glenn Morris <rgm@gnu.org>
9074
9075 * syntax.c (Fskip_chars_forward): Fix doc typo.
9076
9077 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
9078
9079 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9080
9081 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
9082
9083 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9084
9085 2009-02-19 Kenichi Handa <handa@m17n.org>
9086
9087 * coding.c (detect_coding): Preserve coding->mode.
9088 Don't overflow coding->carryover. (Bug#2370)
9089
9090 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9091
9092 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9093
9094 2009-02-18 Kenichi Handa <handa@m17n.org>
9095
9096 * font.c (font_check_otf_features): Fix handling of `nil' element.
9097 (Ffont_spec): Describe :lang and :otf in the docstring.
9098
9099 2009-02-16 Andreas Schwab <schwab@suse.de>
9100
9101 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9102 string.
9103
9104 2009-02-16 Kenichi Handa <handa@m17n.org>
9105
9106 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
9107 (Bug#1723)
9108
9109 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
9110
9111 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
9112
9113 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9114 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9115
9116 2009-02-14 Eli Zaretskii <eliz@gnu.org>
9117
9118 * msdos.c (MAX_SCREEN_BUF): New macro.
9119 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9120 Encode the entire run of glyphs sharing the same face, instead of
9121 doing that one glyph at a time (fixes a bug with displaying
9122 double-size characters).
9123
9124 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9125
9126 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9127
9128 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9129 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
9130 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
9131
9132 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
9133 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
9134
9135 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9136
9137 * keyboard.c (adjust_point_for_property): Allow stopping between two
9138 invisible areas.
9139
9140 2009-02-12 Jason Rumney <jasonr@gnu.org>
9141
9142 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9143 (add_font_entity_to_list): Call check_face_name even when family
9144 is unspecified.
9145
9146 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9147 Release DC when finished. Use NULL window to refer to desktop.
9148 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
9149
9150 * w32font.c (add_font_entity_to_list): Fix check for substituted
9151 raster fonts. (Bug#2219)
9152
9153 2009-02-12 Kenichi Handa <handa@m17n.org>
9154
9155 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9156 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9157 (autocmp_chars): Use fast_looking_at. Don't compose more
9158 characters than MAX_COMPOSITION_COMPONENTS.
9159 (find_automatic_composition): While looking forward and backward,
9160 check static composition. Fix where to stop looking forward.
9161 (composition_adjust_point): Fix checking of static composition.
9162 (Fcomposition_get_gstring): Pay attention to
9163 MAX_COMPOSITION_COMPONENTS.
9164
9165 * lisp.h (fast_looking_at): Extern it.
9166
9167 * search.c (fast_looking_at): New function.
9168
9169 * term.c (encode_terminal_code): Adjust for the change of
9170 <struct glyph>.u.cmp.to.
9171 (append_composite_glyph): Likewise.
9172
9173 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9174 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9175 composition.
9176 (append_composite_glyph): Adjust for the change of
9177 <strcut glyph>.u.cmp.to.
9178
9179 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9180
9181 * casetab.c (init_casetab_once):
9182 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9183 * font.c (font_update_lface):
9184 * fontset.c (Fnew_fontset):
9185 * ftfont.c (ftfont_drive_otf):
9186 * xfont.c (xfont_open):
9187 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9188
9189 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9190
9191 * fileio.c (Fwrite_region): !NILP -> CONSP.
9192
9193 2009-02-10 Andreas Schwab <schwab@suse.de>
9194
9195 * process.c (send_process): Properly relocate pointer into data
9196 when using encoded data. (Bug#2272)
9197
9198 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9199
9200 * coding.c (detect_coding_charset): Fix previous change.
9201
9202 2009-02-08 Jason Rumney <jasonr@gnu.org>
9203
9204 * w32fns.c (w32_hide_hourglass): Handle case where frame
9205 disappeared while hourglass was displayed. (Bug #2193)
9206
9207 2009-02-07 Andreas Schwab <schwab@suse.de>
9208
9209 * unexelf.c (unexec): Fix error message.
9210
9211 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9212
9213 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9214 when modal window is active. (Bug #2152)
9215 (applicationShouldTerminate:): Remove now-unneeded while loop
9216 around NSRunAlertPanel.
9217
9218 * nsmenu.m (popupSession): New file-global variable.
9219 (pop_down_menu): End the popupSession before closing dialog.
9220 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9221 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9222 don't query NSApp for events (just sleep instead).
9223
9224 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9225
9226 * coding.c (syms_of_coding) <translation-table-for-input>:
9227 Modify doc string to discourage use for character code unification.
9228
9229 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9230
9231 * atimer.c (run_timers): Update pending_atimers.
9232
9233 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9234
9235 * image.c (svg_load_image): Fix last change.
9236
9237 * xfns.c (Fx_create_frame): Signal an error if no font is
9238 found (Bug#2147).
9239
9240 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9241
9242 * character.c (syms_of_character) <script-representative-chars>:
9243 Fix typo in docstring.
9244
9245 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9246
9247 * nsmenu.m (pop_down_menu): New function.
9248 (ns_popup_dialog): Call it on unwind.
9249 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9250 call timer_check() (Bug#2154).
9251 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9252 handling_signal is set.
9253 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9254
9255 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9256
9257 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9258
9259 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9260
9261 * keyboard.c (poll_for_input_1, handle_async_input):
9262 Set handling_signal under HAVE_NS.
9263
9264 2009-02-04 Glenn Morris <rgm@gnu.org>
9265
9266 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9267
9268 2009-02-04 Kenichi Handa <handa@m17n.org>
9269
9270 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9271
9272 * charset.c (Fchar_charset): New optional arg restriction.
9273
9274 * coding.h (coding_system_charset_list): Extern it.
9275
9276 * coding.c (coding_system_charset_list): New function.
9277
9278 * composite.c: Include coding.h and termhooks.h.
9279 (composition_gstring_p): Fix for the terminal case.
9280 (composition_gstring_width): Likewise.
9281 (fill_gstring_body): Likewise.
9282 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9283 the frame.
9284 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9285 is within a composition.
9286 (Fcomposition_get_gstring): Fix the terminal case.
9287
9288 * term.c (encode_terminal_code): Fix handling of composition.
9289 (produce_composite_glyph): For static composition, get pixel_width
9290 from struct composition.
9291
9292 2009-02-02 Andreas Schwab <schwab@suse.de>
9293
9294 * unexelf.c (unexec): Handle unaligned bss offset.
9295
9296 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9297
9298 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9299 XT,w32read_socket changes to ns_read_socket.
9300
9301 * keyboard.c (handle_interrupt): Don't call
9302 quit_throw_to_read_char() under NS.
9303
9304 * blockinput.h: Remove NS-specific code.
9305
9306 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9307
9308 * dispnew.c (window_change_signal): Don't try to get the size of a
9309 suspended tty frame.
9310 * term.c (Fresume_tty): Resize if the size has changed while the
9311 tty was suspended.
9312
9313 * alloc.c (mark_stack): Properly conditionalize previous change.
9314
9315 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9316
9317 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9318 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9319 Remove; this code is not used on Windows.
9320
9321 2009-01-30 Eli Zaretskii <eliz@gnu.org>
9322
9323 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9324 EOLs that also has stray ^M characters.
9325
9326 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9327
9328 * atimer.c (run_timers, alarm_signal_handler):
9329 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9330 * w32inevt.c (w32_console_read_socket):
9331 * w32term.c (w32_read_socket):
9332 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9333
9334 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
9335
9336 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9337 Initialize it as a relative filename pattern.
9338 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9339 (Fcall_process_region): Simplify temp file creation using
9340 temporary-file-directory.
9341
9342 2009-01-29 Eli Zaretskii <eliz@gnu.org>
9343
9344 * msdos.c: Rename pending_signals to msdos_pending_signals.
9345 (sig_suspender, sigprocmask): Adjust.
9346
9347 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
9348
9349 * keyboard.c (pending_signals): New var.
9350 (poll_for_input, input_available_signal, init_keyboard): Set it.
9351 (process_pending_signals): New function.
9352
9353 * lisp.h (QUIT): Check pending_signals instead of
9354 interrupt_input_pending. Use process_pending_signals.
9355
9356 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
9357
9358 * process.c (wait_reading_process_output): Use process_pending_signals.
9359
9360 * sysdep.c (emacs_write): Use process_pending_signals.
9361
9362 * xterm.c (XTread_socket): Update pending_signals.
9363
9364 * w32term.c (w32_read_socket): Update pending_signals.
9365
9366 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9367
9368 2009-01-29 Kenichi Handa <handa@m17n.org>
9369
9370 * xftfont.c (xftfont_has_char): New function.
9371 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9372
9373 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9374
9375 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9376 under GNUstep.
9377 (ns_query_color): New declaration.
9378
9379 * nsterm.m (ns_confirm_quit): New variable.
9380 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9381 (EmacsApp-applicationShouldTerminate:): Use it.
9382 (EmacsPrefsController): Let user set it.
9383 (ns_query_color): New function.
9384 (ns_defined_color): Use it.
9385 (ns_initialize): Drop.
9386 (ns_term_init): Add two lines from ns_initialize(), and set
9387 input_interrupt_mode to nil.
9388
9389 * image.c (svg_load_image): Don't right-shift background RGB when
9390 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
9391
9392 2009-01-28 Kenichi Handa <handa@m17n.org>
9393
9394 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9395 (fontset_get_font_group): Remember that no font-group is specified
9396 for C.
9397
9398 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
9399
9400 * fns.c (concat): Check for string overflow (bug#1787).
9401
9402 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9403 Quadruple undo limits (bug#1501).
9404
9405 2009-01-27 Kenichi Handa <handa@m17n.org>
9406
9407 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9408 directly use GT_Get_Char_index.
9409
9410 * xftfont.c (struct xftfont_info): New member `index'.
9411
9412 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9413 (Ffontset_font): Adjust for the change of fontset entry.
9414
9415 2009-01-26 Kenichi Handa <handa@m17n.org>
9416
9417 * fontset.c (fontset_find_font): Fix handling of non-cons return
9418 value of fontset_get_font_group.
9419 (fontset_font): Revert last change.
9420
9421 2009-01-26 Jason Rumney <jasonr@gnu.org>
9422
9423 * w32font.c (w32font_list_internal): Return quickly if registry is
9424 unknown. Simplify final return.
9425 (add_font_entity_to_list): Break complex logic down into more
9426 manageable chunks. Move unknown registry check to
9427 w32font_list_internal.
9428
9429 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9430
9431 Changes to remove Feval calls from GUI under NS.
9432
9433 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9434 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
9435 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9436
9437 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9438 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9439 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9440 instead of NON_ASCII_KEYSTROKE_EVENT.
9441 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9442 (EmacsApp-applicationShouldTerminate:): Query user.
9443 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9444 instead of Feval.
9445
9446 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9447
9448 * keyboard.c (kbd_buffer_get_event): Check for it.
9449 (keys_of_keyboard): Define lispy keys for
9450 ns-put/unput-working-text.
9451
9452 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9453 versions.
9454 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9455
9456 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9457
9458 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9459 setting current_buffer directly. (Bug#2044)
9460
9461 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9462
9463 * fontset.c (fontset_font): If we know there is no font, don't do
9464 any work. (Bug#1952, bug#1990).
9465
9466 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9467
9468 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9469
9470 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9471 (ns_no_defaults): New declaration.
9472 (main): Use it.
9473
9474 * nsterm.h (ns_no_defaults): New declaration.
9475
9476 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9477
9478 * nsterm.m (ns_no_defaults): New variable.
9479 (ns_initialize): Don't read defaults when ns_no_defaults.
9480 (EmacsView-readSelectionFromPasteboard:)
9481 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9482 NSServicesRequests protocol. (Bug#1435)
9483 (ns_dumpglyphs_stretch): New function.
9484 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9485 of 2008-11-15 to other terms. (Bug#615)
9486
9487 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9488
9489 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9490
9491 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9492 call for Sparc64.
9493
9494 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9495
9496 * nsfns.m:
9497 * nsgui.h:
9498 * nsmenu.m:
9499 * nsselect.m:
9500 * nsterm.h:
9501 * nsterm.m: Remove '23' comments that indicated code added during
9502 update from emacs-20 -> emacs-23.
9503
9504 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9505
9506 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9507 ns_alternate_modifier. (Bug#1217)
9508
9509 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9510 Display all shortcuts, including those w/o super modifier.
9511
9512 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9513
9514 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9515
9516 * fileio.c (Vwrite_region_post_annotation_function)
9517 (Vwrite_region_annotation_buffers): New vars.
9518 (build_annotations_unwind): Just reset
9519 Vwrite_region_annotation_buffers.
9520 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9521 Call write-region-post-annotation-function.
9522 (build_annotations): Add to Vwrite_region_annotation_buffers if
9523 buffer changes.
9524
9525 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9526
9527 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9528 Tiger.
9529 * nsfns.m (ns_do_applescript):
9530 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9531
9532 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9533
9534 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9535
9536 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9537
9538 * nsmenu.m (NSMENUPROFILE): Change #if style.
9539
9540 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9541
9542 * nsterm.m (x_set_frame_alpha): Add prototype.
9543 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9544 handle Ctrl-tab. (Bug#1841)
9545 (ns_get_color): Use unsigned long long for scanned hex string value.
9546 (ns_term_shutdown): Abort on non SIGTERM signals.
9547 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9548 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9549 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9550 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9551 (ns_defined_color): Fix settings of the XColor variable fields:
9552 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9553
9554 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9555 DPI. (Bug#1316)
9556 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9557 values in onTiger section.
9558
9559 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9560
9561 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9562 Check return value of font_spec_from_name.
9563 (Fx_list_fonts): Doc fix. (Bug#1951)
9564
9565 * font.c (font_spec_from_name): Return Qnil if font name could not
9566 be parsed.
9567 (font_parse_name): Treat a `?' character as part of an XLFD.
9568
9569 * fns.c (Fsubstring): Doc fix.
9570
9571 2009-01-19 Kenichi Handa <handa@m17n.org>
9572
9573 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9574 (ftfont_list): Likewise.
9575
9576 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9577
9578 * dbusbind.c (Fdbus_register_signal):
9579 * process.c (conv_sockaddr_to_lisp):
9580 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9581
9582 * callproc.c (Fgetenv_internal): Doc fix.
9583
9584 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9585
9586 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9587 it is not even used.
9588
9589 2009-01-16 Glenn Morris <rgm@gnu.org>
9590
9591 * font.c (Ffont_variation_glyphs): Silence compiler.
9592
9593 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9594
9595 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9596 Reported by David Robinow <drobinow@gmail.com>.
9597
9598 2009-01-15 Kenichi Handa <handa@m17n.org>
9599
9600 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9601
9602 2009-01-14 Jason Rumney <jasonr@gnu.org>
9603
9604 * frame.c (x_set_font): Always store a font to the font parameter,
9605 never a fontset. (Bug#1562)
9606
9607 2009-01-14 Kenichi Handa <handa@m17n.org>
9608
9609 * coding.c (TWO_MORE_BYTES): New macro.
9610 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9611
9612 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9613
9614 * font.c (font_clear_prop): If clearing the family, clear the font
9615 width index too.
9616
9617 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9618
9619 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9620
9621 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9622 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9623 functions, use sizeof.
9624
9625 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9626
9627 * keyboard.c (read_char): Fix case where last_nonmenu_event
9628 returned a bad value with submenus. (Bug#447)
9629
9630 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9631
9632 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9633 family, clear the font width index too.
9634
9635 2009-01-11 Jason Rumney <jasonr@gnu.org>
9636
9637 * keyboard.c (cmd_error_internal): Exit when errors occur before
9638 frame creation and not in daemon mode. (Bug#1836)
9639
9640 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9641
9642 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9643 of a display vector, backtrack.
9644 (try_window_reusing_current_matrix): Check glyph type before
9645 referencing charpos member.
9646
9647 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9648
9649 Fix Bug #876:
9650
9651 * coding.c (inhibit_null_byte_detection): New variable.
9652 (detect_coding, detect_coding_system): Don't pay attention to null
9653 bytes if inhibit_null_byte_detection is non-zero.
9654 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9655 <inhibit-iso-escape-detection>: Doc fix.
9656
9657 2009-01-09 Jason Rumney <jasonr@gnu.org>
9658
9659 * w32font.c (add_font_entity_to_list): Don't report unknown
9660 Windows charset as any unrecognized registry. (Bug#1548)
9661 Only report Unicode Plane 2 fonts as unicode-sip.
9662
9663 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9664
9665 * xfaces.c (Fx_font_family_list): Delete function.
9666 Move compatibility version to faces.el.
9667
9668 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9669
9670 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9671
9672 * frame.c (x_set_frame_parameters): Remember requested value for
9673 fullscreen before it's reset by the parameter handler.
9674
9675 2009-01-09 Glenn Morris <rgm@gnu.org>
9676
9677 * keyboard.c (last_command_char): For clarity, rename to...
9678 (last_command_event): ... and update all users.
9679 (last_input_char): For clarity, rename to...
9680 (last_input_event): ... and update all users.
9681 (last-command-char, last-input-char): Move to subr.el as aliases.
9682 * cmds.c, commands.h: Update for last_command_char rename.
9683
9684 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * font.c (font_open_for_lface): Handle unspecified height attribute.
9687
9688 2009-01-08 Jason Rumney <jasonr@gnu.org>
9689
9690 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9691 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9692 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9693 Don't declare.
9694 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9695 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9696
9697 2009-01-07 Kenichi Handa <handa@m17n.org>
9698
9699 * fileio.c (Finsert_file_contents): In the case of replace,
9700 remember the coding system used for decoding in
9701 coding_system (Bug#1039).
9702
9703 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9704 breaking the loop. (Bug#870)
9705 (decode_coding_utf_16, decode_coding_emacs_mule)
9706 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9707 (decode_coding_charset): Likewise.
9708
9709 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9710
9711 * frame.c (x_set_frame_parameters): Make sure height (width) get
9712 applied when fullwidth (fullheight) is set. (Bug#1522)
9713
9714 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9715
9716 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9717 (utc_base): Declare as ULONGLONG, not long double.
9718 (convert_time_raw): Delete.
9719 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9720 (initialize_utc_base): New function.
9721 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9722 (convert_from_time_t): Use initialize_utc_base; compute result with
9723 64-bit arithmetic.
9724 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9725
9726 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9727
9728 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9729 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9730 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9731 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9732 [!subprocesses]: Define.
9733 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9734 (Flist_system_processes, Fsystem_process_attributes)
9735 [!subprocesses]: Call list_system_processes and
9736 system_process_attributes instead of returning Qnil.
9737
9738 * dosfns.c (system_process_attributes, list_system_processes):
9739 New functions.
9740
9741 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9742
9743 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9744 Don't use the default (no-op) implementation.
9745
9746 2009-01-03 Jason Rumney <jasonr@gnu.org>
9747
9748 * keyboard.c (parse_modifiers_uncached): Wheel events are
9749 clicks (bug#687).
9750
9751 * w32term.c (x_query_colors, x_query_color): New functions.
9752
9753 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9754 (svg_load_image): Cast returned pointers from dynamically loaded
9755 functions. Eliminate W32 specific code.
9756
9757 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9758
9759 * nsfns.m (x_set_foreground_color, x_set_background_color)
9760 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9761 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9762 x_ prefix instead of ns_. Update references.
9763 (syms_of_nsfns): Add a FIXME comment.
9764
9765 * nsterm.m (x_set_cursor_type): New prototype.
9766 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9767
9768 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9769 for Solaris instead of incorrectly providing Qutime and Qcutime.
9770
9771 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9772
9773 * w32.c (process_times): Compute sum of utime and stime.
9774 (system_process_attributes): Add Qtime to the alist.
9775
9776 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9777 and add them to the alist.
9778
9779 * process.c (top level) <Qtime, Qctime>: New variables.
9780 (syms_of_process): staticpro them.
9781 (Fsystem_process_attributes): Add their documentation to the doc
9782 string.
9783
9784 * process.h: Declare Qtime and Qctime.
9785
9786 2009-01-02 Jason Rumney <jasonr@gnu.org>
9787
9788 * image.c (Qgobject): New symbol.
9789 (syms_of_image): Initialize it.
9790 (init_svg_functions): Load some functions from gobject library.
9791
9792 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9793
9794 * frame.c (make_terminal_frame): Remove redundant code and useless
9795 block.
9796
9797 2009-01-01 Andreas Schwab <schwab@suse.de>
9798
9799 * process.c (conv_sockaddr_to_lisp): Add workaround for
9800 getsockname bug on BSD.
9801
9802 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9803
9804 * xfns.c (x_create_tip_frame): Set border width of the X window.
9805
9806 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9807
9808 2009-01-01 Jason Rumney <jasonr@gnu.org>
9809
9810 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9811 Don't block input, as per earlier xterm.c changes.
9812
9813 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9814
9815 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9816 (ns_appkit_version_int): New function.
9817 (x-server-version): Use ns_appkit_version_int and follow 21+
9818 convention of returning 3 integers.
9819
9820 2008-12-30 Kenichi Handa <handa@m17n.org>
9821
9822 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9823 (CHAR_SURROGATE_PAIR_P): New macro.
9824
9825 * font.h (struct font_driver): New member get_variation_glyphs.
9826
9827 * font.c (font_range): Don't require a font for a variation selector.
9828 (Ffont_variation_glyphs): New function.
9829 (syms_of_font): Defsubr it.
9830
9831 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9832 ftfont_variation_glyphs.
9833 (setup_otf_gstring): New function.
9834 (ftfont_drive_otf): Use it.
9835 (ftfont_shape_by_flt): Handle variation selector.
9836 (ftfont_variation_glyphs): New function.
9837
9838 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9839
9840 * frame.c (Vemacs_iconified): Remove.
9841
9842 2008-12-30 Jason Rumney <jasonr@gnu.org>
9843
9844 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9845 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9846
9847 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9848
9849 * indent.c (Fvertical_motion): Don't advance iterator if we have
9850 reseated to the desired position.
9851
9852 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9853 checking for pos match.
9854
9855 2008-12-30 Kenichi Handa <handa@m17n.org>
9856
9857 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9858 just get the low 8-bit of the code.
9859
9860 * font.c (font_intern_prop): Validate str as multibyte.
9861
9862 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9863
9864 * dispextern.h (struct face): Move lface and hash from the middle
9865 of bitfields.
9866
9867 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9868
9869 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9870
9871 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9872 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9873 instead of intervals.h.
9874
9875 2008-12-26 Andreas Schwab <schwab@suse.de>
9876
9877 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9878 cons.
9879
9880 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9881
9882 * textprop.c (Qminibuffer_prompt): New variable.
9883 (syms_of_textprop): Initialize it.
9884 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9885 in minibuffer-prompt face. (Bug#1662)
9886
9887 2008-12-25 Jason Rumney <jasonr@gnu.org>
9888
9889 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9890
9891 2008-12-24 Jason Rumney <jasonr@gnu.org>
9892
9893 * ralloc.c (r_alloc_reset_variable): New function.
9894
9895 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9896 record of what points where. (Bug#716)
9897
9898 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9899
9900 * minibuf.c (read_minibuf): Follow the non-interactive case when
9901 running as a daemon, before detaching.
9902
9903 2008-12-22 Andreas Schwab <schwab@suse.de>
9904
9905 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9906 * gtkutil.c (free_widget_value): Use xfree instead of free.
9907
9908 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9909
9910 * frame.c (delete_frame): New function derived from
9911 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9912 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9913 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9914 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9915 * frame.h: Extern delete_frame.
9916 * window.c (window_loop):
9917 * terminal.c (delete_terminal):
9918 * xterm.c (x_connection_closed):
9919 * xfns.c (Fx_hide_tip):
9920 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9921
9922 2008-12-21 Jason Rumney <jasonr@gnu.org>
9923
9924 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9925 when character maps to .notdef character.
9926
9927 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9928
9929 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9930
9931 2008-12-20 Jason Rumney <jasonr@gnu.org>
9932
9933 * frame.c (Fmake_terminal_frame): Raise an error when called from
9934 a graphical frame on Windows. (Bug#1325)
9935
9936 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9937
9938 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9939
9940 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9941
9942 * minibuf.c (Fread_buffer): Doc fix.
9943
9944 2008-12-20 Jason Rumney <jasonr@gnu.org>
9945
9946 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9947 server name in UNC paths. (Bug#719)
9948
9949 * coding.c (decode_coding): Clear chars_at_source flag when using
9950 charbuf. (Bug#1035)
9951
9952 2008-12-19 Daniel Engeler <engeler@gmail.com>
9953
9954 * sysdep.c (serial_configure): Fix typo.
9955
9956 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9957
9958 * sysdep.c: Include alloca.h.
9959 (system_process_attributes): Add implementation for Solaris.
9960
9961 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9962
9963 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9964
9965 Reorganize implementation of Flist_system_processes and
9966 Fsystem_process_attributes. No functional changes.
9967 * process.c: Don't #include pwd.h, grp.h and limits.h.
9968 (Flist_system_processes): Just call list_system_processes.
9969 (Fsystem_process_attributes): Just call system_process_attributes.
9970 (procfs_list_system_processes, time_from_jiffies)
9971 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9972 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9973
9974 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9975 (list_system_processes): Rename from
9976 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9977 Provide a do nothing implementation.
9978 (system_process_attributes): Rename from
9979 procfs_list_system_processes.
9980 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9981 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9982
9983 * w32.c (list_system_processes): Rename from
9984 w32_list_system_processes.
9985 (system_process_attributes): Rename from
9986 w32_system_process_attributes.
9987
9988 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9989
9990 * process.h (w32_list_system_processes)
9991 (w32_system_process_attributes): Remove.
9992 (list_system_processes, system_process_attributes):
9993 New prototypes.
9994
9995 2008-12-19 Kenichi Handa <handa@m17n.org>
9996
9997 * xfont.c (xfont_decode_coding_xlfd): New function.
9998 (xfont_encode_coding_xlfd): New function.
9999 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10000 (xfont_list): Decode and encode XLFD by iso-8859-1.
10001 (xfont_match): Likewise.
10002 (xfont_list_family): Likewise.
10003 (xfont_open): Likewise.
10004
10005 * ftfont.c (ftfont_open): Generate a multibyte string if given
10006 names are utf-8.
10007
10008 * xftfont.c (xftfont_open): Generate a multibyte string if given
10009 names are utf-8.
10010
10011 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10012
10013 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10014 changed.
10015 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10016 clicked on a detached tool bar button.
10017
10018 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10019
10020 * emacs.c (main): Print and error and exit when no data is read
10021 from the pipe.
10022
10023 2008-12-17 Jason Rumney <jasonr@gnu.org>
10024
10025 * w32font.c (w32font_has_char): Always return -1.
10026
10027 2008-12-16 Kenichi Handa <handa@m17n.org>
10028
10029 * font.c (font_open_entity): Fix previous change.
10030
10031 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10032
10033 * process.c: Include <limits.h>.
10034
10035 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
10036
10037 * font.c (font_update_drivers): Fix mistake in reconstructing the
10038 driver list.
10039
10040 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
10041
10042 * font.c (font_clear_cache): Fix format of font cache data.
10043
10044 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
10045
10046 * xftfont.c (xftfont_open): Free Xft font pattern if
10047 XftFontOpenPattern fails.
10048
10049 * xterm.c (x_free_frame_resources): Remove extraneous call to
10050 free_frame_faces.
10051
10052 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10053
10054 * xterm.c (x_delete_display): Move xim_close_dpy call to
10055 x_delete_terminal.
10056 (x_delete_terminal): Call xim_close_dpy.
10057
10058 2008-12-13 Jason Rumney <jasonr@gnu.org>
10059
10060 * w32font.c (intern_font_name): New function.
10061 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10062 (w32font_open_internal, Fx_select_font): Decode font name.
10063 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10064
10065 * w32font.h (intern_font_name): Declare new function.
10066
10067 * w32uniscribe.c (add_opentype_font_name_to_list):
10068 Use intern_font_name.
10069
10070 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10071
10072 * frame.c (Fdelete_frame): Call free_font_driver_list.
10073
10074 * font.c (free_font_driver_list): Implement missing function.
10075
10076 * w32term.c (w32_term_init): Don't initialize the image cache
10077 here; it will be done in init_frame_faces.
10078
10079 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10080 (struct x_display_info): Remove unused member null_pixel. New
10081 member xim_callback_data.
10082
10083 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10084 (xim_initialize): Save pointer to callback function data.
10085 (xim_close_dpy): Free callback function data. Call XCloseIM,
10086 reverting 2008-11-04 change by David Smith.
10087 (x_term_init): Don't initialize the image cache here; it will be
10088 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10089 (x_delete_display): Free x_dnd_atoms member.
10090
10091 2008-12-13 Kenichi Handa <handa@m17n.org>
10092
10093 * font.c (font_rescale_ratio): Moved from xfaces.c.
10094 Argument type changed. Handle a font-spec too.
10095 (font_score): Check Vface_font_rescale_alist.
10096 (font_open_entity): Likewise. (Bug#1547)
10097
10098 * xfaces.c (font_rescale_ratio): Moved to font.c.
10099
10100 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10101
10102 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10103
10104 2008-12-12 Jason Rumney <jasonr@gnu.org>
10105
10106 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10107 Vwindow_system_version to the real w32 major version.
10108
10109 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10110
10111 * term.c (init_tty): Move setting the terminal name before the
10112 potential user: maybe_fatal.
10113
10114 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
10115
10116 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10117 all callers changed. Call free_frame_faces to free the face cache.
10118
10119 2008-12-11 Jason Rumney <jasonr@gnu.org>
10120
10121 * w32font.c (fill_in_logfont): Don't assume symbol script means
10122 SYMBOL_CHARSET. (Bug#547)
10123
10124 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
10125 size for surrogates. (Bug#1096, bug#872)
10126
10127 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10128
10129 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10130
10131 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10132
10133 * process.c (Fsystem_process_attributes, syms_of_process):
10134 Fix typo in name of Ssystem_process_attributes.
10135 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10136
10137 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10138
10139 * syntax.c (Fmodify_syntax_entry): Doc fix.
10140
10141 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10142
10143 * font.c (Ffont_spec): Move usage to end of docstring.
10144
10145 2008-12-10 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32font.c (Qcham): New symbol.
10148 (font_supported_scripts): Add cham, and comments for other new
10149 scripts in bitfield from OpenType spec.
10150 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10151 contain characters beyond the bmp.
10152
10153 2008-12-10 Kenichi Handa <handa@m17n.org>
10154
10155 * ftfont.c (fc_charset_table): Add "unicode-sip".
10156 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
10157 Qunicode_sip.
10158
10159 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10160
10161 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10162 (Fcoding_system_put): Use QCdefault_char.
10163 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10164
10165 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
10166
10167 * xftfont.c (syms_of_xftfont): Fix typo.
10168
10169 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10170
10171 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10172
10173 * emacs.c (main): Close daemon_pipe on exec.
10174
10175 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10176
10177 * termchar.h (struct tty): New members termcap_term_buffer and
10178 termcap_strings_buffer.
10179
10180 * term.c (encode_terminal_code): Free any previous memory blocks
10181 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10182 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10183 All callers changed.
10184 (init_tty): Store termcap data and string buffers in new struct
10185 tty members termcap_term_buffer and termcap_strings_buffer.
10186 (delete_tty): Free them.
10187 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10188
10189 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10190
10191 * nsfns.m (ns_set_background_color): Remove code duplication.
10192 It was a substitute for face-transparency on OS X 10.3.
10193
10194 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * coding.c (make_conversion_work_buffer): Disable buffer
10197 modification hooks in the work buffer.
10198
10199 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10200
10201 * process.c (procfs_system_process_attributes): If `nread' has a
10202 negative value, assign zero to it.
10203
10204 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10205
10206 * eval.c (Vdebug_on_error): Doc fix.
10207
10208 2008-12-05 Kenichi Handa <handa@m17n.org>
10209
10210 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10211 second character is a combining character.
10212
10213 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10214
10215 * process.c (procfs_system_process_attributes): Don't use cmd,
10216 cmdsize, and q without initializing them first.
10217
10218 2008-12-04 Jason Rumney <jasonr@gnu.org>
10219
10220 * w32font.c (w32font_draw): Initialize orig_clip before getting
10221 it, and delete it when finished.
10222
10223 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10224
10225 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10226 case when running as a daemon before detaching.
10227
10228 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10229
10230 * w32.c (init_environment): Don't unload library shell32.dll.
10231
10232 2008-12-03 Kenichi Handa <handa@m17n.org>
10233
10234 * font.c (font_at): Set `multibyte' at first.
10235
10236 * coding.c (decode_coding_charset): Check type of an element of
10237 vector VALIDS.
10238 (encode_coding_emacs_mule): Be sure to set `code'.
10239
10240 * fontset.c (face_for_char): Handle invalid charset property correctly.
10241 (font_for_char): Likewise.
10242
10243 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10244
10245 * font.c (Fopen_font): Compute pixel size correctly.
10246 (font_update_lface): Handle fonts with corrupted size specs,
10247 i.e. non-int and non-float.
10248
10249 * ftfont.c (ftfont_match): Initialize entity variable.
10250 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10251 (ftfont_list_family): Initialize list var earlier.
10252
10253 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10254
10255 * xterm.c (x_draw_glyph_string): Fall back on
10256 underline_minimum_offset for underline position.
10257
10258 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10259
10260 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10261
10262 * character.c (c_string_width): Specify the type for LEN.
10263
10264 2008-12-03 Kenichi Handa <handa@m17n.org>
10265
10266 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10267 (decode_coding_utf_8): Likewise.
10268 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10269 (produce_chars): Initialize consumed_chars to 0.
10270
10271 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10272
10273 * keyboard.c (make_lispy_position): Only use PT if the selected
10274 window is current.
10275
10276 2008-12-02 Andreas Schwab <schwab@suse.de>
10277
10278 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10279
10280 * doprnt.c (doprnt1): Fix size of charbuf.
10281
10282 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10283
10284 * keyboard.c (timer_check): Revert last change.
10285
10286 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10287
10288 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10289
10290 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10291
10292 * makefile.w32-in: Update dependencies.
10293 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10294
10295 2008-12-01 Andreas Schwab <schwab@suse.de>
10296
10297 * font.c (register_font_driver): Use xmalloc.
10298 (font_put_frame_data): Likewise.
10299
10300 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10301
10302 * xfaces.c (realize_x_face): Make abort condition clearer.
10303
10304 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10305
10306 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10307
10308 * keyboard.c (timer_check): After a timer runs, ensure that the
10309 selected window's buffer is current.
10310
10311 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
10312
10313 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10314 It was accidentally restored by the Unicode merge.
10315
10316 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10317
10318 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
10319
10320 * w32proc.c: Include "coding.h".
10321 (Fw32_short_file_name): Encode filename passed to Windows API.
10322 (Fw32_long_file_name): Encode filename passed to Windows API and
10323 decode back the result. (Bug#1433)
10324
10325 2008-11-29 Kenichi Handa <handa@m17n.org>
10326
10327 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10328 not before accessing it.
10329
10330 * charset.c (Fdefine_charset_internal): After calculating
10331 min_char, max_char, and fastmap, copy the charset structure again.
10332 (encode_char): Fix the previous change.
10333
10334 2008-11-28 Seiji Zenitani <zenitani@mac.com>
10335
10336 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10337
10338 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10339
10340 * nsterm.m (x_set_frame_alpha): New function.
10341
10342 2008-11-27 Eli Zaretskii <eliz@gnu.org>
10343
10344 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10345
10346 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
10347
10348 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10349 pointer to check_face_name.
10350
10351 2008-11-27 Kenichi Handa <handa@m17n.org>
10352
10353 * category.h (SET_CATEGORY_SET): Call set_category_set.
10354 (set_category_set): Extern it.
10355
10356 * category.c (hash_get_category_set): New function.
10357 (Fmodify_category_entry): Adjusted for the change of
10358 char_table_ref_and_range. Call hash_get_category_set to get a
10359 category set to store in the table.
10360
10361 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10362 Funify_charset.
10363
10364 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
10365 (DECODE_CHAR): Check if the decoder vector is ready.
10366 (ENCODE_CHAR): Check if the encoder char-table is ready.
10367 (maybe_unify_char): Extern it.
10368
10369 * charset.c (Vchar_unified_charset_table): Delete it.
10370 (inhibit_load_charset_map): New variable.
10371 (temp_charset_work): New variable.
10372 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10373 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10374 New macros.
10375 (load_charset_map): Meaning of control_flag changed. If
10376 inhibit_load_charset_map is nonzero, setup a table in
10377 temp_charset_work.
10378 (load_charset): New argument control_flag.
10379 (map_charset_for_dump): New function.
10380 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10381 map_charset_for_dump.
10382 (Fdefine_charset_internal): If the charset method is MAP, load
10383 mapping tables by calling load_charset.
10384 (Funify_charset): Don't load a mapping table but directly set
10385 Vchar_unify_table.
10386 (maybe_unify_char): New function.
10387 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10388 Handle the case of inhibit_load_charset_map being nonzero.
10389 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10390 Handle the case of inhibit_load_charset_map being nonzero.
10391 (Fclear_charset_maps): Just free temp_charset_work.
10392 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10393 variable.
10394
10395 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10396 change of char_table_ref_and_range.
10397 (char_table_ref_and_range): Change the meaning of argument FROM
10398 and TO. Now the caller must provide initial values for *FROM
10399 and *TO.
10400
10401 * fontset.c (fontset_add): Adjusted for the change of
10402 char_table_ref_and_range.
10403 (fontset_get_font_group): Likewise.
10404 (Ffontset_info): Likewise.
10405
10406 * keymap.c (describe_vector): Adjusted for the change of
10407 char_table_ref_and_range. For char-table, put boundary between
10408 non-ASCII and 8-bit characters.
10409
10410 * print.c (print_object): For bool-vector, delete unnecessary
10411 check of ASCII_BYTE_P.
10412
10413 2008-11-26 Jason Rumney <jasonr@gnu.org>
10414
10415 * w32font.c (w32font_open_internal): Don't include external
10416 leading in font height. (Bug#879)
10417
10418 2008-11-26 Glenn Morris <rgm@gnu.org>
10419
10420 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10421 redefinition with ifdef. (Bug#1383)
10422
10423 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10424
10425 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10426
10427 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10428
10429 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10430 New EmacsView methods.
10431 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10432 Fixes bug #1048,1357,1414.
10433
10434 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10435
10436 Fix bug #1362.
10437 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10438 is not an indexed color.
10439 * nsterm.m (free_indexed_color): Add argument checking.
10440 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10441
10442 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
10443
10444 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10445 Document confirm-after-completion value for
10446 minibuffer-completion-confirm.
10447
10448 2008-11-24 Jason Rumney <jasonr@gnu.org>
10449
10450 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10451 warning.
10452
10453 2008-11-23 Jason Rumney <jasonr@gnu.org>
10454
10455 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10456 restored before returning.
10457
10458 * w32font.c (check_face_name): New function.
10459 (add_font_entity_to_list): Use it to filter out common substituted
10460 fonts. (Bug#642)
10461
10462 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10463
10464 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10465 confirm-nonexistent-file-or-buffer in doc-string.
10466
10467 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10468
10469 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10470 Fix copy/paste typo. Add checks.
10471
10472 2008-11-21 Kenichi Handa <handa@m17n.org>
10473
10474 * coding.c (detect_coding_iso_2022): Reject invalid composition
10475 sequence.
10476 (DECODE_COMPOSITION_START): If the current source is the last
10477 block, and the current composition doesn't end, regard this
10478 sequence as invalid.
10479 (decode_coding_iso_2022): Handle invalid composition sequence.
10480
10481 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10482
10483 * window.c (coordinates_in_window): Don't return
10484 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10485 line when the window is not the rightmost one. (Bug#1372)
10486
10487 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10488
10489 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10490
10491 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10492
10493 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10494 and bright_bg if noninteractive is non-zero.
10495
10496 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10497
10498 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10499 x_draw_glyph_string_background.
10500
10501 * w32term.c (x_draw_glyph_string): Likewise.
10502
10503 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10504
10505 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10506 the next glyph string once past the overhang width.
10507
10508 * nsterm.m (ns_draw_glyph_string): Likewise.
10509
10510 * w32term.c (x_draw_glyph_string): Likewise.
10511
10512 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10513
10514 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10515 double file close.
10516
10517 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10518
10519 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10520 dedicated status of window before attempting to display another
10521 buffer in it.
10522
10523 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10524
10525 * msdos.c (Fmsdos_long_file_names):
10526 (syms_of_msdos) <dos-unsupported-char-glyph>:
10527 * dosfns.c (Fint86): Fix typos in docstrings.
10528
10529 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10530
10531 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10532
10533 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10534
10535 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10536
10537 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10538
10539 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10540
10541 * frame.h: Negative alpha means "don't touch".
10542
10543 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10544
10545 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10546
10547 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10548
10549 * hftctl.c:
10550 * chpdef.h:
10551 * acldef.h: Remove files used only for systems no longer supported.
10552
10553 * Makefile.in: Fix .o alphabetical ordering.
10554 (hftctl.o): Remove dependency, file removed.
10555 (keymap.o, print.o): Depend on charset.h.
10556
10557 2008-11-10 Kenichi Handa <handa@m17n.org>
10558
10559 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10560
10561 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10562
10563 * dired.c (file_name_completion): If completion_ignore_case is
10564 enabled, ignore case when checking completion-regexp-list.
10565
10566 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10567
10568 * vm-limit.c (get_lim_data): Fix last change.
10569
10570 2008-11-08 Kenichi Handa <handa@m17n.org>
10571
10572 * character.c (Fget_byte): New function.
10573 (syms_of_character): Defsubr Fget_byte.
10574
10575 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10576
10577 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10578 cursor position is valid after scrolling.
10579
10580 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10581
10582 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10583
10584 2008-11-06 Glenn Morris <rgm@gnu.org>
10585
10586 * xterm.c (handle_one_xevent): Don't let popup menus cause
10587 mouse-autoselect-window related window switching. (Bug#1261)
10588
10589 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10590
10591 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10592
10593 2008-11-04 Andreas Schwab <schwab@suse.de>
10594
10595 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10596
10597 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10598
10599 * xfns.c (Fx_wm_set_size_hint): New function.
10600
10601 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10602
10603 * textprop.c (Fprevious_single_char_property_change): Return 0
10604 when there's no change in a string. (Bug#1301)
10605
10606 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10607
10608 * frame.c (do_switch_frame): New argument NORECORD passed to
10609 Fselect_window.
10610 (Fselect_frame): New argument NORECORD passed to
10611 do_switch_frame.
10612 (Fset_frame_selected_window): New argument NORECORD passed to
10613 Fselect_frame.
10614 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10615 in call of do_switch_frame.
10616 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10617 Handle NORECORD argument in call of Fselect_frame.
10618 * lisp.h (do_switch_frame, Fselect_frame)
10619 (Fset_frame_selected_window): Adjust declarations.
10620 * window.c (select_frame_norecord): New function.
10621 (run_window_configuration_change_hook): Use it and call
10622 Fselect_frame with NORECORD set.
10623 (Fselect_window): Pass NORECORD to Fselect_frame.
10624 (Fset_window_configuration): Handle NORECORD argument in call of
10625 do_switch_frame.
10626 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10627 Fset_frame_selected_window.
10628 * keyboard.c (command_loop_1): Handle NORECORD in call of
10629 Fselect_frame (currently ifdefd).
10630
10631 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10632
10633 * emacs.c (USAGE2): Untabify.
10634
10635 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10636
10637 * composite.c (fill_gstring_header): Fix copy/paste typo.
10638
10639 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10640
10641 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10642 (Fother_window): Rename argument and rewrite doc-string.
10643 (select_window_norecord): Fix return value. (Bug#1276)
10644
10645 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10646
10647 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10648 new frames overriding foreground for tooltips. Based on similar patch
10649 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10650
10651 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10652
10653 * emacs.c (Fdaemon_initialized): Initialize nfd.
10654
10655 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10656
10657 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10658 (Fwindow_text_height): Clarify doc-strings.
10659 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10660 doc-string of window-scroll-functions.
10661
10662 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10663
10664 * category.c (syms_of_category): Fix typo in docstring.
10665
10666 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10667
10668 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10669 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10670 Fix typos in docstrings.
10671
10672 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10673
10674 * emacs.c (daemon_pipe): Make non-static.
10675 (IS_DAEMON): Move definition ...
10676 * lisp.h (IS_DAEMON): ... here.
10677 (daemon_pipe): Declare.
10678 (is_daemon): Remove.
10679 * dispnew.c (init_display): Use IS_DAEMON.
10680
10681 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10682
10683 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10684 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10685
10686 * emacs.c (is_daemon): Remove.
10687 (main): Don't set is_daemon.
10688 (IS_DAEMON): New macro.
10689 (Fdaemonp, Fdaemon_initialized): Use it.
10690 (Fdaemon_initialized): Write a char into the pipe to make sure the
10691 parent exits.
10692 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10693
10694 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10695
10696 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10697 over-sized glyph, draw it with the default glyph width.
10698
10699 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10700 glyph, draw it with the default glyph width.
10701
10702 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10703 glyph, draw it with the default glyph width.
10704
10705 * xdisp.c (try_scrolling): When computing the distance from the
10706 scroll margin to PT, try moving some distance past the window
10707 bottom before giving up.
10708
10709 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10710
10711 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10712 (Fset_window_buffer): Explain in doc-string that a window can be
10713 "strongly" dedicated to its buffer.
10714
10715 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10716
10717 * emacs.c (daemon_name): New variable.
10718 (main): Deal with --daemon=SERVER_NAME.
10719 (Fdaemonp): Return a name if one was passed to --daemon.
10720
10721 2008-10-26 Romain Francoise <romain@orebokech.com>
10722
10723 * emacs.c (daemon_pipe): New variable.
10724 (main): Create a pipe before forking, make the parent exit only after
10725 the child has closed its end of the pipe. Move closing the
10726 descriptors ...
10727 (Fdaemon_initialized): ... here. New function.
10728
10729 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10730
10731 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10732 the previous unoptimized table.
10733
10734 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10735 the distinction between non-nil and non-t value of `dedicated'.
10736
10737 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10738
10739 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10740 read_char_minibuf_menu_text is large enough to hold the menu string.
10741
10742 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10743
10744 * window.c (Fget_buffer_window, Fdelete_windows_on)
10745 (Freplace_buffer_in_windows): Make buffer argument optional and
10746 rename to buffer_or_name.
10747
10748 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10749
10750 * xdisp.c (handle_single_display_spec, handle_display_prop):
10751 Undo 2005-05-16 change.
10752 (handle_stop): Pop iterator if it's loaded with an empty string.
10753 (get_overlay_strings_1): Don't save iterator if it's loaded with
10754 an empty string (bug#1201).
10755
10756 2008-10-24 Kenichi Handa <handa@m17n.org>
10757
10758 * ftfont.c (ftfont_otf_features): Fix previous change.
10759 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10760 calling ftfont_otf_features.
10761
10762 2008-10-24 Kenichi Handa <handa@m17n.org>
10763
10764 * font.c (font_match_p): Fix for the case that a vector of
10765 characters is in script-representative-chars.
10766
10767 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10768
10769 * dbusbind.c (xd_in_read_queued_messages): New variable.
10770 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10771 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10772 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10773 macro. (Bug#1186)
10774
10775 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10776
10777 * s/sol2-10.h: New file.
10778
10779 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10780
10781 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10782 poor beast has survived 9+ years and the jump from xterm.c!).
10783
10784 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10785
10786 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10787 Reword doc-string.
10788 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10789
10790 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10791
10792 * character.c (syms_of_character) <script-representative-chars>:
10793 <unicode-category-table>: Doc fixes.
10794
10795 2008-10-23 Noah Friedman <friedman@splode.com>
10796
10797 * coding.c (make_conversion_work_buffer): Check that
10798 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10799 Fget_buffer_create.
10800
10801 2008-10-23 Kenichi Handa <handa@m17n.org>
10802
10803 * font.c (font_add_log): Check the values of extra properties.
10804
10805 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10806
10807 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10808 Reword doc-string.
10809 (Fset_window_parameter): Use NILP.
10810 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10811 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10812
10813 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10814
10815 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10816
10817 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10818
10819 * nsfns.m (ns_appkit_version): New function.
10820 (x-server-version): Use it.
10821 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10822 (x-server-vendor): Don't check_ns().
10823
10824 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10825
10826 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10827
10828 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10829 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10830
10831 2008-10-22 Kenichi Handa <handa@m17n.org>
10832
10833 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10834 scripts.
10835
10836 * category.c (word_boundary_p): Check scripts instead of charset.
10837 Handle nil value in word-separating-categories and
10838 word-combining-categories.
10839 (syms_of_category): Fix docstrings of word-separating-categories
10840 and word-combining-categories.
10841
10842 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10843
10844 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10845 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10846
10847 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10848
10849 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10850 Rename arg "buffer" to "buffer_or_name".
10851 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10852 it optional.
10853 (no_switch_window): Remove since the return value is not used.
10854 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10855 Consider window as dedicated when Fwindow_dedicated_p returns a
10856 non-nil value.
10857 * lisp.h: Remove prototype for no_switch_window.
10858
10859 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10860
10861 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10862 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10863
10864 2008-10-21 Kenichi Handa <handa@m17n.org>
10865
10866 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10867 check Vlatin_extra_code_table.
10868
10869 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10870
10871 * fileio.c (Fset_file_modes): Doc fix.
10872
10873 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10874
10875 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10876 in arrays.
10877
10878 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10879
10880 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10881 Mention kill-buffer in doc-string.
10882 (Fset_window_buffer): Reinsert tem check removed in last commit.
10883 (Fenlarge_window, Fshrink_window): Have argument names and
10884 doc-string follow Elisp manual more closely.
10885
10886 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10887
10888 * fileio.c (Fset_file_modes): Doc fix.
10889
10890 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10891
10892 * window.c (Fwindow_width, Fset_window_start)
10893 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10894 (Fdelete_windows_on, Freplace_buffer_in_windows):
10895 Make doc-strings follow code and Elisp manual more closely.
10896 (Fwindow_dedicated_p): Make window argument optional.
10897 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10898 (Fset_window_buffer): Respect any non-nil dedicated value for
10899 window. Rename "buffer" argument to "buffer_or_name".
10900
10901 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10902
10903 * m/sh3.h: New file, machine description for SuperH.
10904
10905 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10906
10907 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10908
10909 2008-10-17 Kenichi Handa <handa@m17n.org>
10910
10911 * ftfont.c (ftfont_otf_features): Fix indexing
10912 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10913
10914 2008-10-16 Magnus Henoch <mange@freemail.hu>
10915
10916 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10917 (Fdbus_call_method_asynchronously): Ditto.
10918 This change makes C-h f display the argument list.
10919
10920 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10921
10922 * fileio.c (Fexpand_file_name): Doc fix.
10923
10924 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10925 of :foreground and :background equivalent to unspecified (20.x
10926 compatibility).
10927
10928 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10929
10930 * buffer.c (syms_of_buffer): Doc fix.
10931
10932 2008-10-14 Kenichi Handa <handa@m17n.org>
10933
10934 * font.c (font_clear_prop): When clearing font width, clear the
10935 average width field too.
10936
10937 2008-10-12 Andreas Schwab <schwab@suse.de>
10938
10939 * ftfont.c (ftfont_shape_by_flt): Make static.
10940 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10941
10942 * font.c: Don't include <m17n-flt.h>.
10943
10944 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10945
10946 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10947
10948 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10949
10950 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10951 away code.
10952
10953 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10954
10955 * dispnew.c (update_text_area): Avoid looping due to large glyph
10956 overhangs (bug#1070).
10957
10958 2008-10-09 Kenichi Handa <handa@m17n.org>
10959
10960 * fontset.c (face_for_char): If face->fontset is negative, just
10961 return ascii_face.
10962
10963 * font.c (font_delete_unmatched): Fix previous change.
10964 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10965
10966 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10967
10968 * frame.c (Fraise_frame): On text-only terminals select frame in
10969 order to make it visible. (Bug#1061)
10970
10971 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10972
10973 * fontset.c (fontset_find_font): Check frame validity.
10974
10975 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10976
10977 * gtkutil.c (xg_display_open): Reset default display if none exists.
10978 (xg_display_close): Allow Emacs to close all displays (bug#985).
10979
10980 2008-10-06 Andreas Schwab <schwab@suse.de>
10981
10982 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10983
10984 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10985
10986 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10987
10988 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10989
10990 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10991 during initialization.
10992
10993 2008-10-04 Eli Zaretskii <eliz@gnu.org>
10994
10995 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10996 whole thing on MSDOS frames as well as on a TTY.
10997
10998 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10999 well as for TTY.
11000 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11001 well as on a TTY.
11002
11003 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11004 as well as for TTY.
11005
11006 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11007
11008 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11009 MSDOS frames as well.
11010
11011 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11012
11013 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11014 correct arguments.
11015 * menu.c (find_and_return_menu_selection): Add cast.
11016
11017 2008-10-03 Glenn Morris <rgm@gnu.org>
11018
11019 * emacs.c (USAGE1): Add --daemon.
11020
11021 2008-10-02 Eli Zaretskii <eliz@gnu.org>
11022
11023 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11024 100, so it's in percents as advertised.
11025
11026 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11027
11028 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11029 (ns_output.current_cursor, ns_output.desired_cursor)
11030 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11031 (FRAME_NEW_CURSOR_COLOR): Remove.
11032
11033 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
11034 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
11035 enumeration (HOLLOW_BOX_CURSOR, etc.).
11036
11037 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11038 (draw_window_cursor): Simplify code.
11039 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11040 Don't change cursor type. In latter, call rehighlight instead of doing
11041 updates manually.
11042 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11043 Use core Emacs cursor types.
11044
11045 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
11046
11047 2008-10-02 Martin Rudalics <rudalics@gmx.at>
11048
11049 * process.c (Faccept_process_output): Fix doc-string.
11050
11051 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11052
11053 * gmalloc.c (__sbrk): Also define for uClibc.
11054
11055 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11056 for uClibc.
11057
11058 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11059
11060 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11061 styles.
11062 (nsfont_open): Reenable the cache.
11063
11064 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11065
11066 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11067 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11068
11069 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11070
11071 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11072 a suspended terminal.
11073
11074 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
11075
11076 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11077
11078 2008-09-30 Eli Zaretskii <eliz@gnu.org>
11079
11080 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11081
11082 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
11083
11084 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11085 in a continued line coincides with a line beginning.
11086
11087 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11088
11089 * nsfont.m (nsfont_trait_distance): Fix bug.
11090 (nsfont_list): Return a list rather than a vector (syncs with Handa
11091 changes of 2008-05-14).
11092 (nsfont_open): Improve logging.
11093
11094 2008-09-29 Andreas Schwab <schwab@suse.de>
11095
11096 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11097
11098 2008-09-28 Martin Rudalics <rudalics@gmx.at>
11099
11100 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11101 name as char-resolve-modifiers.
11102 Reported by: Markus Triska <markus.triska@gmx.at>
11103
11104 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11105
11106 * dispnew.c (init_display): Return earlier when running as a daemon.
11107
11108 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11109
11110 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11111
11112 2008-09-27 Eli Zaretskii <eliz@gnu.org>
11113
11114 * composite.c (Fcomposition_get_gstring)
11115 (Fcompose_region_internal, Fcompose_string_internal)
11116 (Ffind_composition_internal): Doc fix.
11117 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11118 (syms_of_composite) <auto-composition-function>: Doc fix.
11119 (syms_of_composite) <composition-function-table>: Doc fix.
11120
11121 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
11122
11123 * search.c (wordify): New argument for lax word-ends.
11124 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11125
11126 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11127
11128 * lisp.h (is_daemon): Declare.
11129 * dispnew.c (init_display): Do not try to initialize the terminal
11130 when running as a daemon.
11131
11132 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
11133
11134 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11135 x_display_pixel_height.
11136
11137 2008-09-22 Martin Rudalics <rudalics@gmx.at>
11138
11139 * undo.c (record_point): Don't call Fundo_boundary for first
11140 change. (Bug#731)
11141
11142 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
11143
11144 * emacs.c (Fdaemonp): Doc fix.
11145
11146 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11147
11148 * emacs.c (main): Place #ifdef in the proper place.
11149
11150 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11151
11152 * emacs.c (standard_args): Add --daemon.
11153 (main): Disconnect from the terminal when --daemon is passed.
11154 (is_daemon): New variable.
11155 (Fdaemonp): New function.
11156 (syms_of_emacs): Defsubr it.
11157
11158 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
11159
11160 * xdisp.c (get_next_display_element): Handle string display
11161 correctly when checking for the end of a box run.
11162
11163 2008-09-20 Glenn Morris <rgm@gnu.org>
11164
11165 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11166 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11167 (Frename_file): Avoid copying to trash if a rename involves
11168 a delete. (Bug#964).
11169
11170 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11171
11172 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11173 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11174 frames as well as termcap frames.
11175 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11176 get_named_tty.
11177
11178 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11179
11180 * process.c (procfs_system_process_attributes): Fix cmdline in
11181 case /proc/PID/cmdline is empty.
11182
11183 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11184 x_display_pixel_height.
11185
11186 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11187
11188 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11189
11190 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11191 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11192
11193 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11194
11195 * dispextern.h (struct it): Move line_wrap away from the middle of
11196 bitfields. Move voffset in struct iterator_stack_entry after the
11197 bitfields. Move tab_width near after another short.
11198
11199 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11200
11201 * frame.h (struct frame): Move alpha from the middle of bitfields.
11202
11203 * window.h (struct window): Move frozen_window_start_p after the
11204 rest of the bitfields to reduce padding.
11205
11206 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11207
11208 * xterm.h (x_display_info): Remove `height' and `width' members.
11209
11210 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11211
11212 * w32term.h (w32_display_info): Remove `height', `width',
11213 `height_in', and `width_in' members.
11214
11215 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11216 New functions.
11217 (x_calc_absolute_position): Use them.
11218 (x_term_init): Omit removed `height' and `width' members.
11219
11220 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11221 New functions.
11222 (w32_read_socket, x_calc_absolute_position): Use them.
11223 (w32_initialize_display_info, w32_term_init): Omit removed members
11224 of w32_display_info.
11225
11226 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11227 New functions.
11228 (ns_initialize_display_info): Omit removed members of ns_display_info.
11229
11230 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11231 New functions.
11232 (x_calc_absolute_position): Use them.
11233 (x_term_init): Omit removed `height' and `width' members.
11234
11235 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11236 (compute_tip_xy):
11237 * frame.c (x_fullscreen_adjust):
11238 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11239 x_display_pixel_width.
11240
11241 2008-09-18 Kenichi Handa <handa@m17n.org>
11242
11243 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11244 (composition_compute_stop_pos): Fix handling of static composition.
11245 (Fcomposition_get_gstring): Check FROM and TO at first.
11246
11247 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11248
11249 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11250 mixup (YAILOM).
11251
11252 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11253
11254 * indent.c (Fvertical_motion): Use position reported by iterator
11255 instead of PT for determining screen motion (bug#943).
11256
11257 2008-09-17 Romain Francoise <romain@orebokech.com>
11258
11259 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11260
11261 2008-09-17 Kenichi Handa <handa@m17n.org>
11262
11263 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11264
11265 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11266 if necessary.
11267
11268 2008-09-16 Kenichi Handa <handa@m17n.org>
11269
11270 * coding.c (make_conversion_work_buffer): Avoid calling
11271 Fget_buffer_create if it is not necessary.
11272
11273 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11274
11275 * window.c (Fselect_window): Don't update window_select_count and
11276 use_time when norecord is not nil.
11277
11278 2008-09-14 Kenichi Handa <handa@m17n.org>
11279
11280 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11281 specpdl_ptr.
11282
11283 2008-09-12 Kenichi Handa <handa@m17n.org>
11284
11285 * indent.c (scan_for_column): Don't handle automatic composition
11286 if the current buffer is not associated with a window.
11287
11288 * composite.c (composition_reseat_it): If the current buffer is
11289 not associated with a window, ignore the automatic composition.
11290 (find_automatic_composition): Likewise.
11291
11292 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11293
11294 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11295 (Fgpm_mouse_stop): Use it.
11296 * termhooks.h (close_gpm): Declare.
11297 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11298 connection if Gpm_GetEvent fails.
11299
11300 * window.c (set_window_buffer): Always preserve current-buffer.
11301
11302 2008-09-12 Glenn Morris <rgm@gnu.org>
11303
11304 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11305
11306 2008-09-11 Glenn Morris <rgm@gnu.org>
11307
11308 * charset.c (charset-map-path): Doc fix.
11309
11310 2008-09-10 Kenichi Handa <handa@m17n.org>
11311
11312 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11313
11314 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11315 compose a grapheme cluster with the preceding base glyph.
11316
11317 * composite.c (composition_compute_stop_pos): Fix previous change.
11318 Reset cmp_it->id to -1 at first.
11319
11320 2008-09-10 Glenn Morris <rgm@gnu.org>
11321
11322 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11323
11324 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
11325
11326 * keyboard.c (read_key_sequence): Reapply translation maps when
11327 switching keyboards.
11328
11329 2008-09-09 Kenichi Handa <handa@m17n.org>
11330
11331 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11332 characters.
11333
11334 * composite.c (FORWARD_CHAR): Fix calculation
11335 of (POSITION).pos_byte.
11336 (composition_compute_stop_pos): Limit the search of composition to
11337 at most 500 characters ahead. If we reach the limit or find a
11338 newline, set cmp_it->ch to -2 and return 0.
11339 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11340
11341 2008-09-08 Kenichi Handa <handa@m17n.org>
11342
11343 * indent.c (Fvertical_motion): Be sure to set
11344 it_overshoot_expected if it.cmp_it.id is non-negative.
11345
11346 2008-09-07 Andreas Schwab <schwab@suse.de>
11347
11348 * callproc.c (Fcall_process): Don't hold references to string data
11349 across garbage collection. Move initialisation of new_argv down
11350 to avoid compiler bug.
11351
11352 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11353
11354 * process.c (Fsystem_process_attributes): Doc fix.
11355
11356 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
11357
11358 * callproc.c (Fcall_process): Canonicalize current directory name.
11359
11360 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11361 iterator advances to the next line if the current line ends in a
11362 continued tab.
11363
11364 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11365
11366 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11367 member to point to cmp_from.
11368
11369 * xdisp.c: Doc fix for references to gidx data member.
11370
11371 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11372
11373 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11374
11375 2008-09-07 Kenichi Handa <handa@m17n.org>
11376
11377 * composite.c (FORWARD_CHAR): Check STOP after
11378 incrementing (POSITION).pos.
11379
11380 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11381
11382 * process.c (Fsystem_process_attributes): Doc fix.
11383
11384 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
11385
11386 * keyboard.c (Ftop_level): Doc fix.
11387
11388 2008-09-06 Eli Zaretskii <eliz@gnu.org>
11389
11390 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11391 minibuffer, don't let lower part of menu invade the echo area.
11392
11393 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11394 "char *q" to access menu text and advance through it. Revert the
11395 change that displayed ">" instead of ASCII character 0x10.
11396
11397 2008-09-05 Eli Zaretskii <eliz@gnu.org>
11398
11399 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11400 toggle boxes and radio buttons on MS-DOS as well.
11401
11402 2008-09-05 Kenichi Handa <handa@m17n.org>
11403
11404 * composite.c (autocmp_chars): Check lookback count.
11405 (composition_compute_stop_pos): Set cmp_it->lookback.
11406 (composition_reseat_it): Check lookback count.
11407 (struct position_record): New struct.
11408 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11409 (find_automatic_composition): New function.
11410 (composition_adjust_point): Use find_automatic_composition.
11411
11412 * dispextern.h (struct composition_it): New member lookback.
11413
11414 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
11415
11416 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11417 if moving by a single line.
11418
11419 2008-09-02 Andreas Schwab <schwab@suse.de>
11420
11421 * xterm.c (x_delete_display): Fix merge error.
11422
11423 * fileio.c (Fexpand_file_name): Remove unused variables.
11424
11425 2008-09-02 Eli Zaretskii <eliz@gnu.org>
11426
11427 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11428 storage on all platforms, not just on DOS_NT.
11429
11430 2008-09-02 Jason Rumney <jasonr@gnu.org>
11431
11432 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11433 Ensure mouse is not grabbed after menu is finished.
11434
11435 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
11436
11437 * xfaces.c (Finternal_set_alternative_font_family_alist)
11438 (Finternal_set_alternative_font_registry_alist): Properly copy
11439 entire alist structure.
11440
11441 2008-09-01 Kenichi Handa <handa@m17n.org>
11442
11443 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
11444 representative chars of the script is a vector.
11445 (ftfont_list): Handle the case where the representative chars of
11446 the script is a vector.
11447
11448 * character.c (syms_of_character): Docstring of
11449 script-representative-chars fixed.
11450
11451 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11452
11453 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11454 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11455 the menu. Allocate larger buffer for `text', to account for
11456 possible ^C characters.
11457
11458 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11459
11460 * xdisp.c (prepare_menu_bars): Don't call
11461 Vwindow_size_change_functions with arg Qt.
11462
11463 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11464
11465 * font.h (font_range):
11466 * fileio.c (report_file_error):
11467 * composite.c (composition_update_it): Yet another int/Lisp_Object
11468 mixup (YAILOM).
11469
11470 2008-08-30 Glenn Morris <rgm@gnu.org>
11471
11472 * data.c (Fmake_variable_frame_local): Doc fix.
11473
11474 * frame.c (Fmodify_frame_parameters): Doc fix.
11475
11476 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11477
11478 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11479 needed by GetTokenInformation.
11480 (w32_system_process_attributes): Check return values of all system
11481 APIs.
11482
11483 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11484 only when the state changes.
11485 (IT_update_begin, IT_update_end): Add termscript trace.
11486
11487 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11488 clipboard is unavailable. Set dst to NULL if it doesn't point to
11489 malloc'ed data.
11490 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11491 passing random values to xfree.
11492
11493 * dispnew.c (init_display): Set `tty's association in frame's
11494 parameters alist to the name of the terminal device, if that is known.
11495
11496 2008-08-29 Jason Rumney <jasonr@gnu.org>
11497
11498 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11499
11500 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11501
11502 * composite.c (fill_gstring_body): Avoid compiler warnings.
11503
11504 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11505 LGLYPH_SET_CODE to avoid compiler warnings.
11506
11507 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11508
11509 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11510
11511 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11512 LGLYPH_SET_CODE.
11513
11514 2008-08-29 Kenichi Handa <handa@m17n.org>
11515
11516 * fileio.c (report_file_error): Don't downcase the first character
11517 of errstring if it is still unibyte.
11518
11519 2008-08-29 Kenichi Handa <handa@m17n.org>
11520
11521 These changes are to re-implement the automatic composition so
11522 that it doesn't use text properties.
11523
11524 * Makefile.in (ftfont.o): Depend on composite.h.
11525 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11526
11527 * character.h (Vunicode_category_table): Extern it.
11528
11529 * character.c (Vunicode_category_table): New variable.
11530 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11531
11532 * chartab.c (optimize_sub_char_table): Perform more greedy
11533 optimization.
11534
11535 * composite.h (enum composition_method):
11536 Delete COMPOSITION_WITH_GLYPH_STRING.
11537 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11538 (Vcomposition_function_table): Extern it.
11539 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11540 (composition_gstring_put_cache, composition_gstring_from_id)
11541 (composition_gstring_p, composition_gstring_width)
11542 (composition_compute_stop_pos, composition_reseat_it)
11543 (composition_update_it, composition_adjust_point): Extern them.
11544 (Fcomposition_get_gstring): EXFUN it.
11545
11546 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11547 (Vcomposition_function_table)
11548 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11549 (gstring_hash_table, gstring_work, gstring_work_headers):
11550 New variables.
11551 (gstring_lookup_cache, composition_gstring_put_cache)
11552 (composition_gstring_from_id, composition_gstring_p)
11553 (composition_gstring_width, fill_gstring_header)
11554 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11555 (composition_reseat_it, composition_update_it)
11556 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11557 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11558 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11559 Defsubr composition_get_gstring.
11560
11561 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11562 cmp_id.
11563 (struct glyph_string): Delete the member gidx. New members
11564 cmp_id, cmp_from, and cmp_to.
11565 (enum it_method): Delete GET_FROM_COMPOSITION.
11566 (struct composition_it): New struct.
11567 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11568 Delete c, len, cmp_id, cmp_len in u.comp.
11569
11570 * font.h (enum lgstring_indices): Delete it.
11571 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11572 (enum lglyph_indices): Likewise.
11573 (font_range): Adjust extern.
11574 (font_fill_lglyph_metrics): Extern it.
11575
11576 * font.c (QCf): New variable.
11577 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11578 (font_prepare_composition): Delete this function.
11579 (font_range): Type and arguments changed.
11580 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11581 (font_fill_lglyph_metrics): New function.
11582 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11583 (syms_of_font): DEFSYM QCf. Delete defsubr for
11584 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11585 Defsubr Sfont_shape_gstring.
11586
11587 * fontset.h (font_for_char): Extern it.
11588
11589 * fontset.c (font_for_char): New function.
11590
11591 * ftfont.c: Include composite.h.
11592 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11593 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11594
11595 * indent.c: Include composite.h and dispextern.h.
11596 (check_composition): Delete this function.
11597 (scan_for_column): Handle composition by
11598 composition_compute_stop_pos, composition_reseat_it, and
11599 composition_update_it.
11600 (compute_motion): Likewise.
11601 (Fvertical_motion): Fix checking of composition.
11602
11603 * keyboard.c (adjust_point_for_property): Check composition by
11604 composition_adjust_point.
11605
11606 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11607 struct glyph_string.
11608
11609 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11610 (append_composite_glyph): Adjust for the change of struct it and
11611 struct glyph.
11612 (produce_composite_glyph): Likewise.
11613
11614 * w32term.c (x_draw_composite_glyph_string_foreground):
11615 Adjust for the change of struct glyph_string.
11616 (x_draw_glyph_string): Likewise.
11617
11618 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11619 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11620
11621 * xdisp.c: Include font.h.
11622 (it_props): Delete the entry for Qauto_composed.
11623 (init_iterator): Initialize it->cmp_it.id to -1.
11624 (compute_stop_pos): Call composition_compute_stop_pos.
11625 (face_before_or_after_it_pos): Adjust for the change of struct it.
11626 (handle_auto_composed_prop): Delete it.
11627 (handle_composition_prop): Handle only static composition.
11628 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11629 from xassert. Initialize it->cmp_it.stop_pos.
11630 (push_it): Adjust for the change of struct it.
11631 (pop_it): Likewise.
11632 (get_next_element): Delete next_element_from_composition.
11633 (CHAR_COMPOSED_P): New macro.
11634 (get_next_display_element): For automatic composition, get a face
11635 from the font in the glyph-string.
11636 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11637 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11638 (next_element_from_string): Check if the character at the current
11639 position is composed by CHAR_COMPOSED_P.
11640 (next_element_from_buffer): Likewise.
11641 (next_element_from_composition): Adjust for the change of struct it.
11642 Update it->cmp_it.
11643 (dump_glyph): Adjust for the change of struct glyph.
11644 (fill_composite_glyph_string): Adjust for the change of struct
11645 it and struct glyph. Don't handle automatic composition here.
11646 (fill_gstring_glyph_string): New function.
11647 (x_get_glyph_overhangs): Handle automatic composition.
11648 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11649 (BUILD_GSTRING_GLYPH_STRING): New macro.
11650 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11651 automatic composition.
11652 (append_composite_glyph): Adjust for the change of struct it and
11653 struct glyph.
11654 (x_produce_glyphs): Adjust for the change of struct it.
11655
11656 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11657 the change of struct glyph_string.
11658 (x_draw_glyph_string): Likewise.
11659
11660 2008-08-29 Glenn Morris <rgm@gnu.org>
11661
11662 * buffer.c (word-wrap): Doc fix.
11663 * xdisp.c (truncate-partial-width-windows): Doc fix.
11664 Increase default to 50.
11665
11666 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11667
11668 * xdisp.c (update_tool_bar_unwind): New function.
11669 (update_tool_bar): Temporarily set selected frame before building
11670 tool-bar items.
11671
11672 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11673
11674 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11675 snprintf, respectively.
11676 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11677
11678 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11679
11680 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11681 LDFLAGS to GNUstep CC invocation.
11682
11683 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11684
11685 * indent.c (Fvertical_motion): Revert last change. Handle the
11686 general case where we are moving forward, and PT spans multiple
11687 screen lines.
11688
11689 * eval.c (find_handler_clause): Temporarily increase
11690 max-lisp-eval-depth while printing the backtrace buffer, to
11691 guarantee that help-mode code can run.
11692
11693 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11694
11695 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11696 colors under -rv.
11697 (IT_set_frame_parameters): Don't swap foreground and background
11698 colors if `(reverse . t)' is present in the frame properties.
11699 (internal_terminal_init): Call init_frame_faces only for the
11700 initial frame.
11701
11702 2008-08-27 Andreas Schwab <schwab@suse.de>
11703
11704 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11705
11706 2008-08-27 Andreas Schwab <schwab@suse.de>
11707
11708 * search.c (search_buffer): Set char_base to zero only at the end.
11709
11710 2008-08-27 Kenichi Handa <handa@m17n.org>
11711
11712 * fileio.c (report_file_error): Fix handling of multibyte error string.
11713
11714 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11715
11716 * xterm.c (x_term_init): Temporarily hide the partially
11717 initialized terminal while calling vendor-specific-keysyms.
11718
11719 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11720
11721 * msdos.c (internal_terminal_init): Most initializations done only
11722 once, especially initial_screen_colors[] and termscript open.
11723
11724 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11725
11726 * eval.c (Fcondition_case): Doc fix.
11727
11728 * widgetprv.h (EmacsFramePart): Change font member to the new font
11729 struct.
11730
11731 * widget.c: Include character.h and font.h for XSETFONT.
11732 (setup_frame_gcs): Compute X font id from font struct, just once.
11733
11734 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11735
11736 * term.c (get_named_tty): Fix last change.
11737
11738 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * indent.c (Fvertical_motion): If moving forward starting from a
11741 multi-line string, move the iterator to the last line of that string.
11742
11743 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11744
11745 * frame.c (do_switch_frame): Mark previously displayed frame as
11746 obscured for FRAME_MSDOS_P frames as well.
11747
11748 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11749
11750 * frame.c (make_terminal_frame): Initialize f->terminal,
11751 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11752 Set the top frame to newly created frame.
11753 (Fmake_terminal_frame): Reuse the_only_display_info.
11754
11755 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11756 estimating available memory.
11757
11758 2008-08-23 David Reitter <david.reitter@gmail.com>
11759
11760 * nsterm.m (ns_draw_window_cursor): Don't call
11761 NSDisableScreenUpdates and NSEnableScreenUpdates on
11762 non-NS_IMPL_COCOA systems.
11763
11764 2008-08-23 Andreas Schwab <schwab@suse.de>
11765
11766 * process.c (procfs_system_process_attributes): Fix use of
11767 uninitialized variables.
11768
11769 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11770
11771 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11772
11773 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11774 calling tty-set-up-initial-frame-faces.
11775
11776 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11777 Allow MSDOS frames along with X frames.
11778
11779 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11780 addition to output_termcap.
11781
11782 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11783
11784 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11785 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11786 highlight.
11787
11788 * process.c [!subprocesses]: Define QCname.
11789 (syms_of_process): Intern and staticpro it.
11790
11791 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11792 Adjust for changes in encoding/decoding routines.
11793 Use encode_coding_object and decode_coding_object instead of
11794 encode_coding and decode_coding.
11795
11796 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11797
11798 * dosfns.c: Include frame.h before termhooks.h.
11799 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11800 variable termscript.
11801
11802 * s/msdos.h (USER_FULL_NAME): Define.
11803 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11804
11805 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11806 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11807 pw->pw_gecos.
11808
11809 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11810 SELECTED_FRAME as additional (1st) argument.
11811 (tty_read_avail_input): Handle output_msdos_raw in
11812 addition to output_termcap.
11813
11814 * msdos.c: Include frame.h before termhooks.h.
11815 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11816 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11817 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11818 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11819 (IT_set_terminal_modes, IT_reset_terminal_modes)
11820 (IT_set_frame_parameters): Use tty->termscript instead of a global
11821 variable termscript.
11822 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11823 global variable terminal_coding. Don't refer to
11824 Vnonascii_translation_table.
11825 (internal_terminal_init): Set Vwindow_system in current_kboard.
11826 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11827 Announce date and time of session start, if termscript is open.
11828 Don't zero out the_only_display_info (it is done in
11829 term.c:init_tty). Open termscript only of not already open.
11830 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11831 here instead of dos_ttraw. Don't initialize display if this is an
11832 initial tty. Don't set FRAME_FONT.
11833 (Vwindow_system_version): Bump to 23.
11834 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11835 is available, set up mouse_position_hook.
11836 (dos_ttraw, IT_set_terminal_modes): If called with initial
11837 terminal, do nothing.
11838 (IT_set_frame_parameters): Handle the Qtty_type frame
11839 parameter by calling internal_terminal_init.
11840 (dos_set_window_size, show_mouse_face)
11841 (clear_mouse_face, IT_note_mode_line_highlight)
11842 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11843 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11844 (initialize_msdos_display): New function.
11845 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11846 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11847 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11848 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11849 Accept additional argument: a pointer to a frame. Update all callers.
11850 (request_sigio, unrequest_sigio): Don't define, now defined on
11851 sysdep.c.
11852 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11853
11854 * term.c [MSDOS]: Include msdos.h.
11855 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11856 conditional to DOS_NT. Allow only one call to this function in a
11857 session. Don't allocate a new struct tty_display_info; instead,
11858 reuse the_only_display_info. Call get_tty_size to get screen
11859 dimensions. Call init_baud_rate to set bad_rate.
11860 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11861 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11862 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11863 (get_tty_terminal, get_named_tty, Ftty_type)
11864 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11865 output_termcap.
11866 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11867 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11868 only when subprocesses are supported.
11869
11870 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11871 f->output_data.x.
11872 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11873 terminal devices.
11874
11875 * msdos.h: Remove definition of struct x_display_info and struct
11876 x_output.
11877 (FRAME_FONT): Use output_data.tty.
11878 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11879 (struct x_display_info): Rename from display_info. Update all users in
11880 msdos.c.
11881 (struct x_output): Remove background_pixel and foreground_pixel.
11882 (the_only_display_info): Rename from the_only_x_display.
11883 (dos_ttraw): Update prototype.
11884
11885 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11886 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11887
11888 2008-08-23 Jason Rumney <jasonr@gnu.org>
11889
11890 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11891 (fn_TIFFSetDirectory): New library function used.
11892 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11893 (tiff_load): Use :index to select among multiple images. Set count
11894 property when multiple images exist.
11895 (gif_format): Use :index, not :image.
11896
11897 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11898
11899 * xdisp.c (try_scrolling): Check INT_MAX instead of
11900 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11901 to obtain INT_MAX.
11902
11903 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11904
11905 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11906
11907 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11908
11909 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11910 GNUstep library location.
11911
11912 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11913
11914 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11915 before using it.
11916
11917 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11918
11919 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11920
11921 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11922 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11923 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11924 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11925 (EmacsApp-cursor_blink_handler): Remove declaration.
11926 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11927 match 01 Feb 2008 changes in xterm.c.
11928 (ns_read_socket): Add cast to avoid warning.
11929 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11930 GNUstep.
11931
11932 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11933
11934 * xselect.c (x_get_foreign_selection): Return nil if desired
11935 selection could not be obtained, instead of signalling an error.
11936
11937 2008-08-20 David Reitter <david.reitter@gmail.com>
11938
11939 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11940 * nsterm.m: Remove ns-specific code for cursor blinking.
11941 (ns_draw_window_cursor): Clear cursor properly rather than
11942 redrawing the area. Respect width of bar cursors.
11943 These changes enable the use of generic blink-cursor-mode and
11944 generic cursor types in NS and support smooth cursor movements (do
11945 not blink off after command).
11946 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11947 Nextstep, too.
11948
11949 2008-08-19 Kenichi Handa <handa@m17n.org>
11950
11951 * font.c (Vfont_log_deferred): New variable.
11952 (font_add_log): Check Vfont_log_deferred.
11953 (font_deferred_log): New function.
11954
11955 * font.h (font_deferred_log): Extern it.
11956
11957 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11958 for sorting.
11959 (face_for_char): Use deferred log.
11960
11961 2008-08-18 Kenichi Handa <handa@m17n.org>
11962
11963 * fontset.c (face_for_char): Add font log.
11964
11965 * font.c (font_add_log): Add the font properties :script, :lang,
11966 and :otf in the log.
11967
11968 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11969
11970 * xdisp.c: Remove dead code.
11971 (handle_invisible_prop, next_overlay_string): Defer call to
11972 setup_for_ellipsis.
11973 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11974
11975 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11976
11977 * xfaces.c (lookup_derived_face): Properly handle possible zero
11978 return value of get_lface_attributes.
11979 (merge_faces): Don't tell lookup_derived_face to signal an error
11980 if face is not found.
11981
11982 * dired.c (Fdirectory_files): Doc fix.
11983
11984 * process.c (make_process): Initialize kill_without_query struct
11985 member.
11986
11987 2008-08-15 Eli Zaretskii <eliz@gnu.org>
11988
11989 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11990 Alternative calculation of totphys for Visual Studio 6.
11991
11992 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11993
11994 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11995 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11996 All users changed.
11997 (stat): Only root directory passed to GetDriveType. Allow RAM
11998 disk as well as local fixed disk when w32-get-true-file-attributes
11999 is set to `local'.
12000 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12001 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12002 (w32_cached_id, w32_add_to_cache): New functions.
12003 (get_name_and_id): Look account names in the cache before calling
12004 lookup_account_sid.
12005 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12006 New initialization flags.
12007 (globals_of_w32): Initialize them to zero.
12008 (w32_system_process_attributes): Use w32_cached_id and
12009 w32_add_to_cache.
12010
12011 2008-08-14 Lawrence Mitchell <wence@gmx.li>
12012
12013 * lread.c (Fread_char, Fread_char_exclusive): If no character
12014 event is read before timeout is reached, return nil, rather than
12015 converting to a number.
12016
12017 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
12018
12019 * fns.c (use_dialog_box): Doc fix.
12020
12021 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12022 on OS X.
12023
12024 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
12025
12026 * frame.c (Qns_parse_geometry): New var.
12027 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12028
12029 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
12030
12031 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12032 space character in calculating tabs.
12033
12034 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12035
12036 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12037
12038 2008-08-10 Glenn Morris <rgm@gnu.org>
12039
12040 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12041 silence gcc "limited range of data type" warnings in some
12042 make_fixnum_or_float calls.
12043
12044 2008-08-09 Eli Zaretskii <eliz@gnu.org>
12045
12046 * w32.c (w32_system_process_attributes): If the process does not
12047 exist, return nil.
12048
12049 * w32.c: Include thelp32.h, psapi.h and coding.h.
12050 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12051 declarations.
12052 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12053 (Process32Next_Proc): New typedefs.
12054 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12055 (g_b_init_process32_next, g_b_init_open_thread_token)
12056 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12057 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12058 (g_b_init_get_process_working_set_size)
12059 (g_b_init_global_memory_status_ex): New static variables.
12060 (globals_of_w32): Initialize them.
12061 (create_toolhelp32_snapshot, process32_first, process32_next)
12062 (open_thread_token, impersonate_self, revert_to_self)
12063 (get_process_memory_info, get_process_working_set_size)
12064 (global_memory_status, global_memory_status_ex): New wrapper
12065 functions.
12066 (w32_list_system_processes, w32_system_process_attributes)
12067 (enable_privilege, restore_privilege, ltime, process_times):
12068 New functions.
12069 (convert_time_raw): New function.
12070 (convert_time): Remove conversion of FILETIME into time in 100
12071 nsec units, call convert_time_raw instead.
12072
12073 * process.h (w32_list_system_processes, w32_system_process_attributes):
12074 Add prototypes.
12075 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12076 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12077 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12078 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12079
12080 * process.c (Fsystem_process_attributes): Doc fix.
12081
12082 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
12083
12084 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12085 a continued multi-char glyph; if so, advance to the actual glyph.
12086
12087 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12088
12089 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12090
12091 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12092 (.m.o): Use it.
12093 * config.in: Regenerate.
12094
12095 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
12096
12097 * xdisp.c (redisplay_window): Revert last change.
12098 (try_window): Check bottom scroll margin too.
12099
12100 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12101
12102 * config.in: Regenerate.
12103
12104 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12105 -list-load-path-shadows'.
12106 (nsgui.h): Reduce number of things depending on it.
12107
12108 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
12109
12110 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12111 instead of window-end which does the wrong thing at eob.
12112 (try_cursor_movement): Minor optimization.
12113 (redisplay_window): If scroll margin is defined, don't assume
12114 window doesn't need scrolling.
12115
12116 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12117
12118 * config.in: Regenerate.
12119
12120 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12121 (mostlyclean): Don't delete *.d under NS.
12122
12123 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12124
12125 2008-08-06 Kenichi Handa <handa@m17n.org>
12126
12127 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12128
12129 2008-08-06 Andreas Schwab <schwab@suse.de>
12130
12131 * config.in: Regenerate.
12132
12133 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
12134
12135 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12136 forcing a window start.
12137
12138 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12139 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12140
12141 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12142
12143 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12144 argument.
12145
12146 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
12147
12148 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12149 <scroll-down-aggressively, before-change-functions>:
12150 <after-change-functions>: Reflow docstrings.
12151
12152 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12153 Ken Raeburn <raeburn@gnu.org>
12154
12155 Dock menu customization, based on a patch by Ken Raeburn, plus some
12156 other fixes.
12157 * nsmenu.m (dockMenu): New variable.
12158 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12159
12160 * nsterm.h (dockMenu): Declare.
12161
12162 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12163 (ns_term_init): Initialize dockMenu.
12164 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12165 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12166 left.
12167
12168 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12169
12170 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12171
12172 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12173
12174 * config.in: Regenerate.
12175
12176 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12177
12178 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12179
12180 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12181
12182 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12183
12184 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12185
12186 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12187
12188 * keyboard.h: Comment an #endif.
12189
12190 * lisp.h (have_menus_p): Adjust comment.
12191
12192 * menu.c (find_and_return_menu_selection): Fix comparison with
12193 client_data.
12194
12195 * nsmenu.m (popup_activated_flag): New variable.
12196 (popup_activated): New function.
12197 (menu-or-popup-active-p): New exported lisp definition.
12198 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12199 when popup done.
12200 (ns_popup_dialog): Set popup_activated_flag.
12201
12202 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12203 version for GNUstep (handled by conditional typedef in nsterm.m).
12204 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12205 in rgb.txt).
12206
12207 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12208
12209 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12210
12211 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12212
12213 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12214 shortcircuit if popup_activated like GTK and X toolkit.
12215
12216 * m/inter386.h: Change DARWIN to DARWIN_OS.
12217
12218 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12219 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12220 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12221 comment on NO_SOCK_SIGIO.
12222
12223 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12224
12225 * nsterm.m (windowDidResize): Remove stopModal call.
12226
12227 2008-08-03 Andreas Schwab <schwab@suse.de>
12228
12229 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12230 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12231
12232 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12233
12234 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12235 Don't use uninitialized pointer variable when using getrlimit.
12236
12237 2008-08-02 Jason Rumney <jasonr@gnu.org>
12238
12239 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12240
12241 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12242
12243 * alloc.c (NSTATICS): Bump to 0x640.
12244
12245 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12246
12247 * lisp.h: Add prototype for directory_files_internal.
12248
12249 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12250 New functions.
12251 (syms_of_process): Defsubr them. Add initializations for various
12252 Q* symbols used in procfs_system_process_attributes.
12253 (procfs_list_system_processes, procfs_system_process_attributes)
12254 [HAVE_PROCFS]: New functions.
12255 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12256 (procfs_get_total_memory): New functions.
12257
12258 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12259
12260 * xfaces.c (Fx_load_color_file): Fix previous change;
12261 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12262
12263 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12264
12265 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12266
12267 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12268
12269 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12270
12271 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12272
12273 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12274
12275 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12276 define NSApplicationDelegateReplySuccess.
12277 (EmacsView -converstationIdentifier): Use long instead of
12278 NSInteger for GNUstep, since it doesn't have NSInteger.
12279
12280 * xmenu.c: Revert last change.
12281
12282 * keyboard.h: Fix last change.
12283
12284 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12285
12286 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12287 on Windows.
12288
12289 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12290
12291 Warning clearing and clean-up in NS port.
12292 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12293 Add prototypes.
12294 * nsgui.h (FACE_DEFAULT): Remove, unused.
12295 (XGCValues): Change colors to unsigned long.
12296 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12297 nsterm.m.
12298 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12299 (ns_list_fonts): Remove, unused.
12300 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12301 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12302 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12303 (nsfont_draw): Compare face colors to 0, not nil.
12304 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12305 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12306 (-addSubmenuWithTitle:): Use NSMenuItem class.
12307 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12308 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12309 (ns_clip_to_row): Make gc arg a BOOL.
12310 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12311 ns_clip_to_row() call.
12312 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12313 used). Cast FRAME_FONT assignments.
12314 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12315 (ns_string_to_lispmod): Change arg to const char.
12316 (ns_term_init): Use NSMenuItem class.
12317 (EmacsApp -openFile:): Move to different section of file.
12318 (EmacsApp -application:openFiles:): Don't return a value, call
12319 -replyToOpenOrPrint:.
12320 (EmacsView -keyDown:): Fix up cast.
12321 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12322 (EmacsView -menuDown:): Cast tag in call to
12323 find_and_call_menu_selection().
12324 (ns_list_fonts): Remove, unused.
12325 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12326 (ns_fontname_to_xlfd): Make static.
12327 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12328 Remove prototypes (now in keyboard.h).
12329 (next_menubar_widget_id): Remove, unused.
12330 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12331 Remove prototypes (now in keyboard.h).
12332 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12333
12334 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12335
12336 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12337 (floatfns.o): Depend on syssignal.h.
12338 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12339
12340 * systty.h: Fix previous change that removed BSD_TERMIOS.
12341 Add comments to #ifdefs.
12342
12343 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12344
12345 * w32fns.c (w32-load-color-file): Remove.
12346 (x-open-connection): Use renamed Fx_load_color_file.
12347 * xfaces.c (x-load-color-file): Add.
12348 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12349 Emacs.clr.
12350 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12351
12352 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
12353
12354 * dbusbind.c (Fdbus_call_method_asynchronously)
12355 (Fdbus_method_error_internal): New defuns.
12356 (xd_read_message): Handle also reply messages.
12357 (Vdbus_registered_functions_table): Extend docstring.
12358
12359 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
12360
12361 * keyboard.c (gobble_input): Fix previous change.
12362
12363 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12364
12365 * bitmaps/README:
12366 * xfns.c:
12367 * termcap.c:
12368 * term.c:
12369 * syswait.h:
12370 * systty.h:
12371 * systime.h:
12372 * syssignal.h:
12373 * sysdep.c:
12374 * process.h:
12375 * process.c:
12376 * print.c:
12377 * ndir.h:
12378 * lread.c:
12379 * keyboard.c:
12380 * getpagesize.h:
12381 * floatfns.c:
12382 * fileio.c:
12383 * emacs.c:
12384 * doc.c:
12385 * dispnew.c:
12386 * dired.c:
12387 * data.c:
12388 * callproc.c:
12389 * buffer.c:
12390 * README:
12391 * Makefile.in:
12392 * s/template.h:
12393 * s/msdos.h:
12394 * m/vax.h: Remove VMS support.
12395 * s/vms.h:
12396 * vlimit.h:
12397 * uaf.h:
12398 * temacs.opt:
12399 * param.h:
12400 * ioctl.h: Remove file.
12401
12402 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12403
12404 * s/ms-w32.h (MULTI_KBOARD): Remove.
12405 * xterm.c:
12406 * xselect.c:
12407 * xfns.c:
12408 * window.c:
12409 * w32term.c:
12410 * w32fns.c:
12411 * terminal.c:
12412 * termhooks.h:
12413 * term.c:
12414 * sysdep.c:
12415 * keyboard.h:
12416 * keyboard.c:
12417 * frame.h:
12418 * frame.c:
12419 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12420 * config.in: Regenerate.
12421
12422 2008-07-30 Jason Rumney <jasonr@gnu.org>
12423
12424 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12425
12426 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12427 (w32font_open_internal): Get unicode version of textmetrics.
12428 Don't enable or disable glyph indices here.
12429 (w32font_open): Disable use of glyph indices.
12430
12431 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12432
12433 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
12434
12435 * minibuf.c (Vread_buffer_function): Doc fix.
12436
12437 2008-07-30 John Paul Wallington <jpw@pobox.com>
12438
12439 * minibuf.c (read_buffer_completion_ignore_case): New var.
12440 (Fread_buffer): Use it.
12441
12442 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12443
12444 * systty.h (sensemode): Remove empty #if. Remove reference to
12445 BSD_TERMIOS, unused.
12446
12447 * sysdep.c: Remove reference to DGUX.
12448 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12449
12450 * config.in: Regenerate.
12451
12452 2008-07-30 Jason Rumney <jasonr@gnu.org>
12453
12454 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12455
12456 2008-07-29 Jason Rumney <jasonr@gnu.org>
12457
12458 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12459 is populated.
12460 (uniscribe_encode_char): Always use uniscribe.
12461 Avoid using context if cache is populated.
12462
12463 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12464
12465 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12466 open menu.
12467
12468 * gtkutil.c (menu_nav_ended): Remove.
12469 (create_menus): Remove signal connect for menu_nav_ended.
12470
12471 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12472
12473 * xdisp.c (redisplay_window): Check return value of
12474 compute_window_start_on_continuation_line before forcing a window
12475 start.
12476
12477 2008-07-28 Jason Rumney <jasonr@gnu.org>
12478
12479 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12480
12481 * w32term.c (w32_enable_unicode_output, cleartype_active):
12482 Remove obsolete display options.
12483 (x_draw_glyph_string_background): Don't use old cleartype_active
12484 workaround.
12485 (w32_initialize): Remove cleartype_active initialization.
12486 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12487
12488 2008-07-28 Andreas Schwab <schwab@suse.de>
12489
12490 * lisp.h (init_weak_hash_tables, syms_of_font)
12491 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12492 (remove_hash_entry): Don't declare.
12493 * eval.c (maybe_call_debugger): Make static and move before use.
12494 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12495 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12496 * xterm.h (x_set_frame_alpha): Declare.
12497
12498 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12499
12500 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12501 (create_menus): Connect selection-done to menu_nav_ended.
12502
12503 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12504
12505 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12506 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12507 parameter with read of 'alpha' one.
12508 (Qns_frame_parameter): Remove.
12509 * nsselect.m (selection-coding-system)
12510 (next-selection-coding-system, Vselection_coding_system)
12511 (Vnext_selection_coding_system): Drop.
12512
12513 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12514
12515 * nsfns.m (do-applescript, do_applescript): Rename to
12516 ns-do-applescript, ns_do_applescript, and move within file.
12517
12518 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12519
12520 Remove support for Mac Carbon.
12521 * mactoolbox.c:
12522 * macterm.h:
12523 * macterm.c:
12524 * macselect.c:
12525 * macmenu.c:
12526 * macgui.h:
12527 * macfns.c:
12528 * mac.c: Remove file.
12529 * s/darwin.h:
12530 * m/intel386.h:
12531 * xfaces.c:
12532 * xdisp.c:
12533 * window.c:
12534 * tparam.c:
12535 * termhooks.h:
12536 * termcap.c:
12537 * term.c:
12538 * syssignal.h:
12539 * sysselect.h:
12540 * sysdep.c:
12541 * process.c:
12542 * lread.c:
12543 * lisp.h:
12544 * keyboard.c:
12545 * image.c:
12546 * fringe.c:
12547 * frame.h:
12548 * frame.c:
12549 * fontset.c:
12550 * font.h:
12551 * font.c:
12552 * fns.c:
12553 * fileio.c:
12554 * emacs.c:
12555 * dispnew.c:
12556 * dispextern.h:
12557 * config.in:
12558 * atimer.c:
12559 * Makefile.in: Remove code for Carbon.
12560
12561 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12562
12563 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12564
12565 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12566
12567 * macterm.h (kCGBitmapByteOrder32Host): New define for
12568 non-universal SDKs.
12569
12570 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12571 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12572
12573 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12574 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12575
12576 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12577
12578 * w32inevt.c: Include dispextern.h.
12579
12580 2008-07-26 Andreas Schwab <schwab@suse.de>
12581
12582 * print.c (print_object): Fix off-by-one in last change.
12583
12584 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12585
12586 * term.c (syms_of_term): Don't initialize default_orig_pair,
12587 default_set_foreground and default_set_background on Windows.
12588
12589 2008-07-25 Jason Rumney <jasonr@gnu.org>
12590
12591 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12592 ScriptItemize. Clean up return value checking. Remove unused
12593 variables.
12594 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12595 shaping engine.
12596
12597 * w32font.c (w32font_has_char): Handle the case where we can't
12598 determine the script for a character.
12599
12600 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12601
12602 * term.c (syms_of_term): Initialize default_orig_pair,
12603 default_set_foreground, and default_set_background.
12604
12605 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12606 clash (bug#86).
12607 (getloadavg): Callers changed.
12608
12609 * image.c (svg_load_image): Fix last change.
12610 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12611 image size is valid. Use g_object_unref instead of deprecated
12612 rsvg_handle_free to free rsvg handle.
12613 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12614
12615 2008-07-25 Jason Rumney <jasonr@gnu.org>
12616
12617 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12618 surrogates before looking up glyph index.
12619 (w32font_text_extents): Encode as surrogates if falling back to
12620 functions that need UTF-16 wide chars.
12621
12622 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12623 BMP as surrogates before looking up glyph index.
12624
12625 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12626
12627 * image.c (svg_load_image): Check for failure in return value of
12628 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12629
12630 2008-07-25 Jason Rumney <jasonr@gnu.org>
12631
12632 * w32font.c (Fx_select_font): Reverse sense of second arg.
12633
12634 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12635
12636 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12637 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12638
12639 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12640 (PURESIZE): Use it.
12641
12642 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12643
12644 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12645 * m/alpha.h (TEXT_END):
12646 * m/ibmrs6000.h (TEXT_END):
12647 * m/macppc.h (TEXT_END):
12648 * s/darwin.h (TEXT_END):
12649 * s/msdos.h (TEXT_END): Remove, unused.
12650 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12651 * s/cygwin.h: Remove comment.
12652
12653 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12654 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12655 * m/intel386.h (DOT_GLOBAL_START):
12656 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12657 (USG): Remove, file not used on USG platforms.
12658
12659 * Makefile.in (HAVE_X11): Remove empty #else.
12660
12661 2008-07-24 Andreas Schwab <schwab@suse.de>
12662
12663 * fileio.c (Finsert_file_contents): Properly adjust undo list
12664 after format conversion.
12665
12666 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12667
12668 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12669 (menu_nav_ended): Remove.
12670 (create_menus): Remove signal connect for menu_nav_ended.
12671 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12672 create_menus.
12673 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12674
12675 2008-07-23 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12678 with opened font.
12679 (w32font_open): Set font type to gdi.
12680
12681 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12682
12683 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12684
12685 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12686 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12687 defines it.
12688 * unexec.c (ADDR_CORRECT): Define unconditionally.
12689
12690 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12691
12692 * unexec.c: Remove code depending on !COFF and USG, the file is
12693 not used for such systems.
12694
12695 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12696 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12697 (LD_SWITCH_SYSTEM_1): Remove, update users.
12698
12699 * s/darwin.h (DATA_END):
12700 * m/intel386.h (DATA_END):
12701 * m/ibmrs6000.h (DATA_END):
12702 * m/alpha.h (DATA_END): Remove, unused.
12703
12704 * config.in: Regenerate.
12705 * s/ms-w32.h (subprocesses): Define unconditionally.
12706 * s/template.h (subprocesses): Update comment.
12707 * s/vms.h (subprocesses):
12708 * s/usg5-4.h (subprocesses):
12709 * s/hpux10-20.h (subprocesses):
12710 * s/gnu-linux.h (subprocesses):
12711 * s/cygwin.h (subprocesses):
12712 * s/bsd-common.h (subprocesses):
12713 * s/aix4-2.h (subprocesses):
12714 * s/darwin.h (subprocesses): Do not define, defined by default now.
12715
12716 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12717 Remove all references.
12718 (temacs): Add GNUstep specific ld flags.
12719
12720 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12721 similarly to what X does.
12722
12723 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12724
12725 * nsfns.m (x-list-fonts): Remove.
12726 (syms_of_nsfns): Drop the x-list-fonts declaration.
12727 * nsterm.m: Get rid of remaining "//" comments.
12728
12729 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12730
12731 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12732
12733 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12734 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12735 (Fns_own_selection_internal, Fx_disown_selection_internal)
12736 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12737
12738 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12739 ... */' style of docstrings. Doc fixes.
12740
12741 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12742
12743 * terminfo.c (UP, BC, PC): Undo previous change.
12744
12745 * nsfns.m: Rename ns prefixed functions/variables to the
12746 corresponding x versions. Update references.
12747
12748 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12749
12750 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12751
12752 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12753
12754 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12755 Remove forwarding functions.
12756 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12757 non-static.
12758 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12759 non-static.
12760 (ns_frame_parm_handlers): Use the new names.
12761 (syms_of_nsfns): Move to the end of file.
12762
12763 * nsterm.m (syms_of_nsterm): Move to the end of file.
12764
12765 * dispnew.c (init_display): Remove code for X10.
12766
12767 2008-07-22 Jason Rumney <jasonr@gnu.org>
12768
12769 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12770 bare drive.
12771
12772 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12773
12774 * nsterm.m (syms_of_nsterm): Remove debugging println.
12775
12776 2008-07-22 David Reitter <david.reitter@gmail.com>
12777
12778 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12779 Carbon implementation of the same functionality: execute arbitrary
12780 AppleScript code.
12781
12782 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12783
12784 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12785 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12786 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12787 (Fx_display_mm_height, Fx_display_mm_width)
12788 (Fx_display_backing_store, Fx_display_visual_class)
12789 (Fx_display_save_under, Fx_open_connection)
12790 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12791 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12792 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12793 (Fx_display_pixel_width, Fx_display_pixel_height)
12794 (Fx_display_usable_bounds, Fx_display_planes)
12795 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12796 ... */' style of docstrings.
12797
12798 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12799
12800 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12801 on this platform.
12802 (mips):
12803 * m/iris4d.h (mips): Do not define.
12804 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12805
12806 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12807
12808 * image.c:
12809 * nsfns.m:
12810 * nsselect.m:
12811 * nsterm.h:
12812 * nsterm.m: Rename ns prefixed functions/variables to the
12813 corresponding x versions. Update references.
12814
12815 * m/ibms390x.h (NO_REMAP): Do not undefine.
12816
12817 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12818
12819 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12820
12821 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12822 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12823 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12824 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12825 (Fns_display_mm_height, Fns_display_mm_width)
12826 (Fns_display_backing_store, Fns_display_visual_class)
12827 (Fns_display_save_under, Fns_open_connection)
12828 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12829 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12830 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12831 (Fns_display_pixel_width, Fns_display_pixel_height)
12832 (Fns_display_usable_bounds, Fx_display_planes)
12833 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12834
12835 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12836
12837 * print.c (print_object): Check print_depth before searching for
12838 circularities.
12839
12840 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12841
12842 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12843 only sprintf.
12844
12845 2008-07-21 Kenichi Handa <handa@m17n.org>
12846
12847 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12848
12849 2008-07-20 Andreas Schwab <schwab@suse.de>
12850
12851 * syntax.c (find_start_pos, find_start_value)
12852 (find_start_value_byte, find_start_begv, find_defun_start)
12853 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12854
12855 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12856
12857 * s/sol2-3.h: Insert contents of s/sol2.h.
12858 (LD_SWITCH_SYSTEM): Remove redundant definition.
12859 * s/sol2.h: Remove, unused.
12860
12861 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12862
12863 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12864
12865 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12866
12867 * Makefile.in (ns_appdir): Fix typo in find command.
12868
12869 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12870
12871 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12872
12873 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12874 added not supported anymore.
12875
12876 * s/usg5-4-2.h (LIBS_SYSTEM):
12877 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12878
12879 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12880 * s/lynxos.h (GETPGRP_NO_ARG):
12881 * s/hpux10-20.h (NO_SIOCTL_H):
12882 * s/gnu.h (GETPGRP_NO_ARG):
12883 * s/gnu-linux.h (NO_SIOCTL_H):
12884 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12885 * s/cygwin.h (GETPGRP_NO_ARG):
12886 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12887 (C_DEBUG_SWITCH): Remove duplicate definition.
12888
12889 * m/ibms390.h: Remove boilerplate comments.
12890
12891 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12892
12893 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12894 (wait_reading_process_output): Remove code for SunOS, platform not
12895 supported anymore. Use SOLARIS2 instead of sun.
12896
12897 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12898
12899 * font.c (font_open_by_name): Under NS, default lface height to zero.
12900 (font_open_for_lface): Under NS, set size based on frame fontsize.
12901 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12902 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12903
12904 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12905
12906 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12907 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12908 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12909 YES/NO.
12910 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12911 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12912 * Makefile.in (clean): Clear out build destination dir.
12913
12914 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12915
12916 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12917 xterm, xselect.
12918 * lisp.h: Remove declaration of hash_remove.
12919 * nsgui.h: Remove redefinitions of hash_remove.
12920 * fns.c (hash_remove): Rename to hash_remove_from_table.
12921
12922 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12923
12924 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12925 strdup() the family UTF8String before modifying it.
12926
12927 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12928
12929 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12930 NS_FACE_BACKGROUND with 0 instead of nil.
12931 * nsfont.m (nsfont_draw): Same.
12932
12933 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12934
12935 * nsfns.m (ns_set_background_color): Fix crash.
12936
12937 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12938
12939 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12940
12941 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12942
12943 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12944
12945 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12946
12947 * gtkutil.c: Include <config.h> instead of "config.h".
12948
12949 * lisp.h (Foverlay_buffer): Add EXFUN.
12950
12951 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12952 child process to complete child_setup. Undo 2005-09-21 change.
12953
12954 * s/darwin.h: Mention setsid after vfork.
12955
12956 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12957
12958 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12959 Depend on macgui.h.
12960
12961 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12962 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12963
12964 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12965 and f19.
12966 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12967
12968 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12969 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12970 Remove enumerators.
12971
12972 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12973 Check if FACE_FROM_ID returns NULL.
12974
12975 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12976
12977 * w32inevt.c (change_frame_size): Remove extern declaration.
12978 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12979 change_frame_size.
12980
12981 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12982
12983 * getloadavg.c: Revert last change (2008-07-15).
12984
12985 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12986
12987 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12988 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12989 from configure.
12990
12991 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12992
12993 * s/sol2.h:
12994 * s/sol2-4.h: Reorganize conditionals.
12995
12996 * ecrt0.c: Remove code depending on m68000, not used anymore.
12997
12998 * fns.c (hash_remove): Make static.
12999 * lisp.h (hash_remove): Don't prototype.
13000
13001 * m/ibmrs6000.h:
13002 * m/ibms390x.h:
13003 * m/macppc.h: Remove boilerplate comments.
13004
13005 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13006 Solaris, which does not need them.
13007
13008 * m/vax.h: Remove comments about unsupported systems.
13009
13010 * s/darwin.h: Reorganize ifdefs.
13011
13012 2008-07-17 Andreas Schwab <schwab@suse.de>
13013
13014 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13015
13016 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13017
13018 Use SDATA. Follow coding convention of placing operators at
13019 beginning of next line rather than end of previous line, and placing
13020 spaces around infix operators.
13021
13022 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13023 in case it was defined already.
13024 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13025 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13026 ns_default.
13027 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13028 Lisp_Objects.
13029 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13030 (ns_defined_color, ns_color_to_lisp): Declare.
13031 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13032 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13033 it's accepted even with USE_LISP_UNION_TYPE.
13034 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13035 (update_frame_tool_bar): Remove apparently obsolete tests for
13036 non-integerness of f->tool_bar_lines.
13037 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13038 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13039 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13040 (nsfont_open): Don't confuse NULL for Qnil.
13041 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13042 * menu.h (find_and_call_menu_selection):
13043 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13044 (find_and_return_menu_selection): Always return something.
13045 * frame.h: Include dispextern.h for Display_Info.
13046 (display_x_get_resource): Declare.
13047
13048 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13049
13050 * syntax.c: Remove stdio.h include accidentally introduced in
13051 Emacs.app commit.
13052 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13053 NS_IMPL_COCOA.
13054 * keyboard.c (handle_async_input, input_available_signal): Remove
13055 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13056
13057 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13058
13059 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13060 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13061 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13062 Use SDATA.
13063
13064 * keymap.c: Remove all NS-specific code.
13065 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13066 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13067 where_is_preferred_modifier, return a different value depending on how
13068 preferred is the binding.
13069 (where_is_internal): Adjust accordingly.
13070 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13071 Adjust to new preferred_sequence_p.
13072 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13073 * keyboard.c (parse_solitary_modifier): Not static any more.
13074 * keyboard.h (parse_solitary_modifier): Declare.
13075
13076 2008-07-16 Andreas Schwab <schwab@suse.de>
13077
13078 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13079 of easymenu.
13080
13081 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
13082
13083 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13084 that we don't move off the line.
13085
13086 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13087
13088 * keyboard.c (Qsuper): Remove.
13089 (parse_menu_item): Don't call where_is_internal specially for NS.
13090
13091 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13092
13093 * s/gnu-linux.h: Remove boilerplate comments.
13094
13095 * m/alpha.h (__ELF__): Consolidate conditions.
13096
13097 * m/m68k.h (linux): Use GNU_LINUX instead.
13098 Remove boilerplate comments.
13099
13100 * m/intel386.h: Undo refactoring from previous change.
13101 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13102 too, remove dead code.
13103 (linux): Use GNU_LINUX instead.
13104
13105 2008-07-16 Jason Rumney <jasonr@gnu.org>
13106
13107 * w32gui.h: Repeat 26 June changes lost by last change.
13108
13109 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13110
13111 * systty.h: Remove code for Aix on 386, unsupported platform.
13112
13113 * s/ms-w32.h: Remove boilerplate comments.
13114 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13115
13116 * s/gnu-linux.h (TERM): Remove support.
13117 (HAVE_SYSVIPC): Remove, unused.
13118 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13119 for this system.
13120
13121 * process.c: Remove support for IRIS, unused.
13122 Remove support for TERM, not relevant anymore.
13123
13124 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13125 used with the definition.
13126
13127 * s/aix4-2.h (static): Do not undef.
13128
13129 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13130 only used on Aix.
13131 (HAVE_SYSVIPC): Remove, unused.
13132
13133 * m/hp800.h (CANNOT_DUMP): Do not undef.
13134
13135 * m/alpha.h: Fix comment.
13136
13137 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13138 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13139 used by this configuration.
13140 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13141 * unexec.c: Remove code depending on HPUX and
13142 USG_SHARED_LIBRARIES, not used with this file. Remove code
13143 depending on IRIS, unused. Remove if 0-ed code.
13144
13145 * s/template.h: Remove comments about static.
13146
13147 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13148 Remove if 0-ed code.
13149 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13150 were the same as the default.
13151 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13152 Remove boilerplate comments.
13153 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13154 (HAVE_SYSVIPC): Remove, unused.
13155 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13156
13157 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13158 Remove boilerplate comments.
13159 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13160 Remove boilerplate comments.
13161 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13162 Remove boilerplate comments.
13163 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13164
13165 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13166 USG systems which do not use DATA_SEG_BITS.
13167 Refactor code. Remove boilerplate comments.
13168
13169 * m/ibms390.h:
13170 * m/m68k.h:
13171 * s/bsd-common.h:
13172 * s/cygwin.h:
13173 * s/darwin.h:
13174 * s/freebsd.h:
13175 * s/gnu.h:
13176 * s/msdos.h: Remove boilerplate comments.
13177
13178 * m/iris4d.h: Remove boilerplate comments and code for systems that
13179 do not use this file.
13180 (IRIS_4D): Remove, unused.
13181
13182 * m/mips.h: Remove boilerplate comments and code for systems that
13183 do not use this file.
13184 (SIGN_EXTEND_CHAR):
13185 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13186 * unexmips.c: Remove file, unused.
13187
13188 * editfns.c (Fuser_full_name): Replace the only use of
13189 USER_FULL_NAME with its value.
13190 * config.in: Regenerate.
13191
13192 2008-07-16 David Reitter <david.reitter@gmail.com>
13193
13194 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13195 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13196
13197 2008-07-16 Glenn Morris <rgm@gnu.org>
13198
13199 * emacs.c (system-type): Doc fix.
13200
13201 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13202
13203 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13204 If the cache doesn't work, let's fix it, rather than work around it.
13205
13206 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13207
13208 * Makefile.in: Correct additions for nsfont.o in last commit.
13209 * nsfont.m: New file (forgot last commit).
13210
13211 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13212
13213 * callproc.c (set_initial_environment): Initialize
13214 Vprocess_environment under CANNOT_DUMP (fixes crash when
13215 batch-compiling for bootstrap).
13216
13217 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13218 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13219
13220 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13221 CANNOT_DUMP case -- fix crash due to different init order.
13222
13223 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13224
13225 Changes and additions for NeXTstep windowing system (Cocoa and
13226 GNUstep) support.
13227
13228 * Makefile.in:
13229 * config.in: Support defines and build commands for NS port.
13230 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13231 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13232 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13233 windowing.
13234 (struct face): Add synth_ital field.
13235 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13236 (init_display): Initialize Vinitial_window_system to "ns" when so
13237 compiled.
13238 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13239 (display_arg): Use under NS.
13240 (main): Under NS, allocate autorelease pool and handle command line
13241 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13242 (standard_args): Add NS-specific args.
13243 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13244 * font.c (DEFAULT_ENCODING): New variable.
13245 (font_find_for_lface): Use it.
13246 (syms_of_font): Load syms_of_nsfont under NS.
13247 * font.h: Declare nsfont_driver when compiled under NS.
13248 * fontset.c: When compiling under NS, include nsterm.h.
13249 (fontset_from_font): Autoconstruct fontset under NS.
13250 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13251 symbol, document and use it.
13252 (do_switch_frame): When for_deletion under Cocoa, add
13253 Fraise_frame(Qnil).
13254 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13255 (x_get_arg): Allow "yes" and "no" as boolean values.
13256 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13257 Qright under Cocoa.
13258 (focus-follows-mouse): Default to 0 under NS.
13259 * frame.h (enum output_method): Add output_ns.
13260 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13261 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13262 (FRAME_WINDOW_P): NS-specific definition.
13263 * fringe.c (max_used_fringe_bitmap): Make public.
13264 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13265 (getloadavg): Use NeXT code under descendant OS's.
13266 * image.c (includes and header section, x_create_bitmap_from_data)
13267 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13268 (image_background_transparent, x_clear_image_1)
13269 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13270 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13271 (x_to_xcolors, x_from_xcolors, x_disable_image)
13272 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13273 other GUIs, including XPM support using code originally written for
13274 Carbon GUI.
13275 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13276 using NS API.
13277 (image_ascent): Use font metrics macros instead of direct struct field
13278 access.
13279 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13280 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13281 Also, handle NS as GTK for menu bar purposes.
13282 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13283 toolkit where they differ.
13284 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13285 use cachelist, still needed under NS.
13286 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13287 (struct widget_value): Define it here for menu.c.
13288 * keymap.c (includes): Include modifier internals.
13289 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13290 NS.
13291 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13292 support for preferring sequences using certain modifiers, specified by
13293 the FIRSTONLY argument.
13294 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13295 under NS GNUstep implementation.
13296 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13297 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13298 * menu.c: Include nsterm.h under NS.
13299 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13300 (free_menubar_widget_tree_value, update_submenu_strings)
13301 (find_and_call_menu_selection): Treat NS as X and NT.
13302 (find_and_return_menu_selection): New function, used for popup menus.
13303 * nsgui.h:
13304 * nsterm.h:
13305 * nsfns.m:
13306 * nsimage.m:
13307 * nsmenu.m:
13308 * nsselect.m:
13309 * nsterm.m: New files.
13310 * process.c (wait_reading_process_output): Under NS, call ns_select()
13311 instead of plain select().
13312 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13313 beginning of buffer.
13314 * sysselect.h (init_process): Rename when compiling under Cocoa to
13315 avoid name conflict.
13316 * termhooks.h (display_info): Add ns_display_info to union.
13317 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13318 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13319 COCOA environment.
13320 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13321 unexec() signature. (Note, this will dump, but the resulting file
13322 crashes; unexosx is used instead; keeping around for reference and
13323 possible aid in getting dump working under GNUstep.)
13324 * w32gui.h (button_type, widget_value): Remove definitions (now in
13325 keyboard.h).
13326 * window.c: Include nsterm.h when compiling under NS.
13327 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13328 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13329 other GUI windowing systems.
13330 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13331 GTK.
13332 (x_consider_frame_title): Under NS, set icon type and frame
13333 modified-state indicator; use ns_set_name_as_filename() when using
13334 formatted title.
13335 (update_window_cursor): Make public when compiling under NS.
13336 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13337 (hourglass_atimer, Vhourglass_delay
13338 * xfaces.c (header section, init_frame_faces, clear_font_table)
13339 (defined_color, unload_color, x_face_list_fonts)
13340 (prepare_face_for_display): Add NS support parallel to other GUIs.
13341 Emulate GCs like other non-X GUIs.
13342 (split_font_name): Don't lowercase font name under NS.
13343 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13344 under NS.
13345 * s/darwin.h: Add support for compilation under NS.
13346
13347 2008-07-15 Jason Rumney <jasonr@gnu.org>
13348
13349 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13350 (w32_show_hourglass): Rename from show_hourglass.
13351 (w32_hide_hourglass): Rename from hide_hourglass.
13352 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13353 (Vhourglass_delay): Declare extern.
13354 (hourglass_started): Remove.
13355
13356 * xdisp.c (Vhourglass_delay): Remove static.
13357 (hourglass_started, start_hourglass, cancel_hourglass):
13358 Don't include these versions on WINDOWSNT.
13359
13360 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13361
13362 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13363 variables (formerly in xfns.c).
13364 (show_hourglass, hide_hourglass): New prototypes (same).
13365 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13366 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13367 in xfns.c).
13368 (syms_of_xdisp): Declare/initialize display-hourglass,
13369 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13370 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13371 formerly in xfns.c.
13372 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13373 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13374 (start_hourglass, cancel_hourglass): Remove.
13375 (show_hourglass, hide_hourglass): Remove prototypes and static
13376 modifiers.
13377 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13378 hourglass_atimer, hourglass_shown_p declaration/initialization.
13379 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13380 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13381 (start_hourglass, cancel_hourglass): Remove.
13382 (show_hourglass, hide_hourglass): Remove prototypes and static
13383 modifiers.
13384 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13385 hourglass_atimer, hourglass_shown_p declaration/initialization.
13386 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13387 (DEFAULT_HOURGLASS_DELAY): Remove.
13388 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13389 hourglass_shown_p declaration/initialization.
13390
13391 2008-07-14 Jason Rumney <jasonr@gnu.org>
13392
13393 * w32fns.c (w32_get_arg): Remove wrapper function.
13394 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13395 directly.
13396 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13397
13398 2008-07-14 Kenichi Handa <handa@m17n.org>
13399
13400 * xfont.c (xfont_open): Add workaround for X's bug.
13401
13402 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13403
13404 * fontset.c: Include <stdio.h> unconditionally.
13405
13406 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
13407
13408 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13409 for filtering.
13410
13411 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13412
13413 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13414
13415 * m/macppc.h:
13416 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13417
13418 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
13419 (SPECIAL_EMACS_INT):
13420 * m/ia64.h (SPECIAL_EMACS_INT):
13421 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13422 * s/gnu.h (NLIST_STRUCT):
13423 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13424 * s/gnu-linux.h (LINUX):
13425 * s/msdos.h (HAVE_FACES):
13426 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13427
13428 * systty.h:
13429 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13430 anymore.
13431
13432 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13433
13434 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13435 always defined as int.
13436
13437 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13438 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13439 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13440 * s/freebsd.h (HAVE_WAIT_HEADER):
13441 * s/bsd-common.h (HAVE_UNION_WAIT):
13442 * s/aix4-2.h (HAVE_WAIT_HEADER):
13443 * m/mips.h (HAVE_UNION_WAIT):
13444 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13445 (COFF, static): Do not define, they are undefined later in the file.
13446
13447 * process.c (update_status): Don't use a union.
13448 (status_convert):
13449 (sigchld_handler): Use int instead of WAITTYPE.
13450
13451 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13452
13453 * indent.c (Fvertical_motion): Restore hscroll before moving to
13454 goal column.
13455
13456 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13457
13458 * lisp.h: Remove left over code.
13459
13460 2008-07-11 Andreas Schwab <schwab@suse.de>
13461
13462 * lisp.h: Fix logic in last change.
13463
13464 * menu.h: New file.
13465 * menu.c: Include it.
13466 * xmenu.c: Likewise.
13467 * Makefile.in: Update dependencies.
13468
13469 2008-07-11 Kenichi Handa <handa@m17n.org>
13470
13471 * fontset.c (fontset_from_font): Cancel the previous change.
13472
13473 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13474
13475 * lisp.h:
13476 * w32heap.c:
13477 * emacs.c:
13478 * alloc.c: Replace all references of NO_UNION_TYPE with
13479 USE_LISP_UNION_TYPE.
13480
13481 * m/xtensa.h (NO_UNION_TYPE):
13482 * m/vax.h (NO_UNION_TYPE):
13483 * m/template.h (NO_UNION_TYPE):
13484 * m/sparc.h (NO_UNION_TYPE):
13485 * m/mips.h (NO_UNION_TYPE):
13486 * m/macppc.h (NO_UNION_TYPE):
13487 * m/m68k.h (NO_UNION_TYPE):
13488 * m/iris4d.h (NO_UNION_TYPE):
13489 * m/intel386.h (NO_UNION_TYPE):
13490 * m/ibms390x.h (NO_UNION_TYPE):
13491 * m/ibms390.h (NO_UNION_TYPE):
13492 * m/ibmrs6000.h (NO_UNION_TYPE):
13493 * m/ia64.h (NO_UNION_TYPE):
13494 * m/hp800.h (NO_UNION_TYPE):
13495 * m/arm.h (NO_UNION_TYPE):
13496 * m/amdx86-64.h (NO_UNION_TYPE):
13497 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13498 defining it the same.
13499
13500 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13501
13502 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13503
13504 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13505
13506 * fileio.c:
13507 * sysdep.c:
13508 * systty.h:
13509 * m/ibmrs6000.h:
13510 * m/iris4d.h:
13511 * s/aix4-2.h:
13512 * s/freebsd.h:
13513 * s/gnu-linux.h:
13514 * s/hpux10-20.h:
13515 * s/hpux11.h:
13516 * s/netbsd.h:
13517 * s/sol2-3.h:
13518 * s/sol2-4.h:
13519 * s/sol2.h:
13520 * s/usg5-4.h:
13521 * s/vms.h: Remove references to unused variables.
13522
13523 2008-07-10 Andreas Schwab <schwab@suse.de>
13524
13525 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13526 pattern before matching the generic family.
13527
13528 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13529
13530 * unexec.c:
13531 * s/vms.h:
13532 * s/usg5-4-2.h:
13533 * s/sol2-5.h:
13534 * s/freebsd.h:
13535 * s/darwin.h: Remove dead code.
13536
13537 * m/template.h:
13538 * m/sparc.h:
13539 * m/mips.h:
13540 * m/m68k.h:
13541 * m/iris4d.h:
13542 * m/intel386.h:
13543 * m/ibms390x.h:
13544 * m/ibms390.h:
13545 * m/ia64.h:
13546 * m/hp800.h:
13547 * m/arm.h:
13548 * m/amdx86-64.h: Remove dead code and references to unused
13549 and compiler defined symbols.
13550
13551 * unexmips.c:
13552 * unexelf.c: Remove references to desupported systems.
13553
13554 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13555
13556 * m/powermac.h: Remove boilerplate comments.
13557 (NO_REMAP): Remove unused definition.
13558
13559 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13560 define them.
13561
13562 2008-07-10 Kenichi Handa <handa@m17n.org>
13563
13564 * xfont.c (xfont_open): Log the reason of failure.
13565
13566 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13567
13568 * fontset.c (fontset_get_font_group):
13569 * font.c (font_check_otf): Specify argument types.
13570
13571 2008-07-09 Kenichi Handa <handa@m17n.org>
13572
13573 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13574 non-ASCII char is found.
13575
13576 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13577 (reorder_font_vector): Change the arg preferred_family to font.
13578 Prefer the spec matching with font.
13579 (fontset_get_font_group): New function.
13580 (fontset_find_font): Change the format of an element of a realized
13581 fontset. Use fontset_get_font_group.
13582 (fontset_font): Try the current fontset, the default fontset, the
13583 fallbacks of the current fontset, and the fallbacks of the default
13584 fontset in this order.
13585 (face_for_char): Delete the shortcut to use the current font.
13586 (fontset_from_font): Don't set fonts for Latin in the fontset.
13587
13588 * font.h (font_make_object, font_match_p): Adjust prototypes.
13589
13590 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13591
13592 * font.c (font_make_object): New arg entity and pixelsize.
13593 (font_check_otf_features, font_check_otf): New functions.
13594 (font_match_p): Check :lang, :script, and :otf properties.
13595
13596 * xfont.c (xfont_open): Adjust it for the change of
13597 font_make_object.
13598 (xfont_text_extents): Fix initial setting of metrics.
13599
13600 * ftfont.c (struct ftfont_info): New member index, delete member
13601 fc_charset_idx. Make the member order compatible with struct
13602 xftfont_info.
13603 (fc_charset_table): Change charset names to registry names.
13604 (ftfont_pattern_entity): Delete the args registry and
13605 fc_charset_idx. Change the value of :font-entity property
13606 to (FONTNAME . INDEX). Always set :registry property to
13607 `iso10646-1'.
13608 (struct ftfont_cache_data): New struct.
13609 (ftfont_lookup_cache): New arg for_face.
13610 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13611 (ftfont_driver): Set the member otf_capability.
13612 (ftfont_get_charset): Adjust it for the change of
13613 fc_charset_table.
13614 (OTF_TAG_SYM): New macro.
13615 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13616 for the change of fc_charset_table.
13617 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13618 ftfont_pattern_entity. Add FC_INDEX to objset.
13619 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13620 and ftfont_pattern_entity.
13621 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13622 font_make_object, struct ftfont_info.
13623 (ftfont_has_char): Use ftfont_get_fc_charset.
13624 (ftfont_otf_features, ftfont_otf_capability): New functions.
13625 (ftfont_shape): Use ftfont_get_otf.
13626 (ftfont_text_extents): Fix initial setting of metrics.
13627
13628 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13629 member order compatible with struct ftfont_info.
13630 (xftfont_open): Add FC_CHARSET to the pattern. Set
13631 xftfont_info->ft_size. Don't unlock the face. Check BDF
13632 properties if appropriate.
13633 (xftfont_close): Unlock the face.
13634 (xftfont_anchor_point, xftfont_shape): Deleted.
13635 (syms_of_xftfont): Don't set members anchor_point and shape of
13636 xftfont_driver.
13637
13638 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13639 font_make_object.
13640
13641 * w32font.c (w32font_open): Adjust it for the change of
13642 font_make_object.
13643 (w32font_open_internal): Don't set properties of font_object here.
13644
13645 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13646
13647 * macfns.c (x_create_tip_frame):
13648 * w32fns.c (x_create_tip_frame):
13649 * xfns.c (x_create_tip_frame): Pass parameter argument to
13650 face-set-after-frame-default.
13651
13652 * xfaces.c (Finternal_merge_in_global_face): Save merged
13653 attributes for the default face back into the face vector.
13654
13655 2008-07-08 Andreas Schwab <schwab@suse.de>
13656
13657 * fontset.h: Declare fontset_from_font. Don't declare
13658 new_fontset_from_font and fontset_from_font_name.
13659 * xterm.c: Include "fontset.h".
13660 * Makefile.in (xterm.o): Update dependencies.
13661
13662 2008-07-08 Glenn Morris <rgm@gnu.org>
13663
13664 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13665 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13666
13667 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13668
13669 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13670 (x_set_frame_parameters): Don't bind it.
13671
13672 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13673
13674 * w32fns.c (map_w32_filename): Declare extern.
13675
13676 2008-07-07 Jason Rumney <jasonr@gnu.org>
13677
13678 * w32term.c (WS_EX_LAYERED): Define if not already.
13679
13680 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13681
13682 * xfaces.c (set_font_frame_param): Don't try to set the font
13683 parameter if it is still unspecified in the lface.
13684
13685 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13686
13687 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13688 face if it didn't already exist.
13689
13690 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13691
13692 2008-07-05 Andreas Schwab <schwab@suse.de>
13693
13694 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13695
13696 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13697
13698 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13699 word-wrapping.
13700 (IT_DISPLAYING_WHITESPACE): New macro.
13701 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13702 when word-wrapping. Simplify word-wrapping logic. Use correct
13703 pixel positions when saving copies of the iterator.
13704 (display_line): Use proper wrap point if the last character on a
13705 line was preceded by whitespace.
13706
13707 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13708
13709 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13710
13711 2008-07-04 Kenichi Handa <handa@m17n.org>
13712
13713 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13714
13715 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13716
13717 2008-07-02 Jason Rumney <jasonr@gnu.org>
13718
13719 * xfns.c (syms_of_xfns): Only define x-select-font when both
13720 HAVE_FREETYPE and USE_GTK.
13721
13722 * xdisp.c (next_element_from_display_vector): Move assignment out
13723 of if statement.
13724
13725 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13726
13727 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13728
13729 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13730 (syms_of_fileio): Initialize and export them.
13731 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13732
13733 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13734 (Fsystem_move_file_to_trash): New function.
13735 (syms_of_w32fns): Export it to lisp.
13736
13737 2008-07-01 Jason Rumney <jasonr@gnu.org>
13738
13739 * w32font.c (w32font_text_extents): Don't count overhang as part
13740 of width.
13741
13742 2008-06-30 Miles Bader <miles@gnu.org>
13743
13744 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13745 Add `avoid_cursor_p' field.
13746
13747 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13748 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13749 (append_glyph, append_composite_glyph, produce_image_glyph)
13750 (append_stretch_glyph): Initialize avoid_cursor_p.
13751 (get_it_property): Rename from `get_line_height_property'.
13752 (x_produce_glyphs): Use get_it_property.
13753 (handle_line_prefix, push_display_prop): New functions.
13754 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13755 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13756 New variables.
13757 (syms_of_xdisp): Initialize them.
13758
13759 2008-06-30 Kenichi Handa <handa@m17n.org>
13760
13761 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13762 XftDefaultSubstitute (they are called in XftFontMatch).
13763 (xftfont_open): Fix args to ftfont_font_format.
13764
13765 * ftfont.c (fc_charset_table): New member lang.
13766 (ftfont_resolve_generic_family): New arg pattern.
13767 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13768 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13769 (ftfont_open): Fix args to ftfont_font_format.
13770 (ftfont_font_format): New arg filename.
13771
13772 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13773
13774 * xfaces.c (Finternal_merge_in_global_face): If default face was
13775 modified, realize it again. Update the font face attribute.
13776
13777 2008-06-29 Jason Rumney <jasonr@gnu.org>
13778
13779 * w32term.c (x_set_frame_alpha): Fix logic.
13780
13781 2008-06-29 Kenichi Handa <handa@m17n.org>
13782
13783 * fontset.c (Finternal_char_font): Return font-object instead of
13784 font-name.
13785
13786 * composite.c (get_composition_id): Fix the width calculation for TAB.
13787
13788 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13789
13790 * indent.c (Fvertical_motion): Properly handle float column arg.
13791
13792 2008-06-28 Jason Rumney <jasonr@gnu.org>
13793
13794 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13795 (pfnSetLayeredWindowAttributes): New function pointer.
13796 (w32_initialize): Initialize it when supported.
13797 (x_set_frame_alpha): New function.
13798
13799 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13800 (w32_frame_parm_handlers): Set alpha handler.
13801
13802 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13803
13804 2008-06-27 Jason Rumney <jasonr@gnu.org>
13805
13806 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13807 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13808 (w32_to_x_charset, x_to_w32_charset)
13809 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13810 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13811 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13812 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13813 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13814 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13815 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13816 (Qw32_charset_unicode): Remove.
13817 (syms_of_w32fns): Update for above changes.
13818
13819 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13820 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13821 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13822 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13823 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13824 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13825 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13826 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13827 (syms_of_w32font): Update for above changes.
13828
13829 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13830
13831 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13832 removed #if.
13833 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13834
13835 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13836 Eli Zaretskii <eliz@gnu.org>
13837
13838 * makefile.w32-in (LOCAL_FLAGS):
13839 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13840
13841 * sysdep.c (_spawnlp, _getpid):
13842 Declare with explicit _cdecl instead of _CRTAPI1.
13843
13844 * editfns.c (Fget_internal_run_time):
13845 Check for WINDOWSNT with #ifdef, not #if.
13846
13847 2008-06-26 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13850
13851 * w32term.c (x_draw_glyph_string_foreground)
13852 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13853 Use FONT_HANDLE macro.
13854 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13855
13856 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13857 (uniscribe_encode_char): Use FONT_HANDLE macro.
13858
13859 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13860 (w32font_text_extents): Use precast w32_font.
13861 (w32font_close): Free cached metrics.
13862 (w32font_open_internal): Allocate space for name on stack.
13863
13864 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13865
13866 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13867
13868 2008-06-26 Jason Rumney <jasonr@gnu.org>
13869
13870 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13871 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13872
13873 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13874
13875 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13876
13877 2008-06-26 Jason Rumney <jasonr@gnu.org>
13878
13879 * w32bdf.c, w32bdf.h: Remove obsolete files.
13880
13881 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13882
13883 * w32gui.h: Don't include w32bdf.h.
13884 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13885 Remove obsolete font support.
13886
13887 * w32font.h (struct w32font_info): Remove compat_w32_font.
13888 Add hfont member.
13889 (FONT_COMPAT): Remove obsolete macro.
13890
13891 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13892 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13893 (w32font_open_internal): Remove compat code. Set new hfont member.
13894 (Fx_select_font): Use new hfont member.
13895
13896 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13897 (uniscribe_encode_char): Use new hfont member.
13898
13899 * w32term.c (x_draw_glyph_string_foreground)
13900 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13901 (x_draw_glyph_string): Use metrics in w32font_info.
13902
13903 2008-06-26 Kenichi Handa <handa@m17n.org>
13904
13905 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13906
13907 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13908
13909 * unexnext.c:
13910 * m/ews4800.h:
13911 * m/hp9000s300.h:
13912 * m/ibm370aix.h:
13913 * m/mips-siemens.h:
13914 * m/ncr386.h:
13915 * m/next.h:
13916 * m/pmax.h:
13917 * m/powerpcle.h:
13918 * m/tandem-s2.h:
13919 * s/386bsd.h:
13920 * s/bsd386.h:
13921 * s/bsd4-1.h:
13922 * s/bsd4-2.h:
13923 * s/bsdos2-1.h:
13924 * s/bsdos2.h:
13925 * s/bsdos3.h:
13926 * s/bsdos4.h:
13927 * s/nextstep.h:
13928 * s/ultrix4-3.h:
13929 * s/usg5-0.h:
13930 * s/usg5-2-2.h:
13931 * s/usg5-2.h:
13932 * s/usg5-4-3.h:
13933 * s/ux4800.h:
13934 * s/uxpds.h:
13935 * s/uxpv.h: Remove support for obsolete systems.
13936 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13937 Remove, insert contents in s/hpux10-20.h.
13938 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13939 Remove, insert contents in s/aix4-2.h.
13940 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13941 * s/bsd4-3.h: Rename to ...
13942 * s/bsd-common.h: ... this.
13943 * data.c:
13944 * doc.c:
13945 * ecrt0.c:
13946 * emacs.c:
13947 * fileio.c:
13948 * floatfns.c:
13949 * keyboard.c:
13950 * mem-limits.h:
13951 * print.c:
13952 * process.c:
13953 * sysdep.c:
13954 * syssignal.h:
13955 * systty.h:
13956 * syswait.h:
13957 * term.c:
13958 * unexec.c:
13959 * unexelf.c:
13960 * unexhp9k800.c:
13961 * m/hp800.h:
13962 * m/ibmrs6000.h:
13963 * m/mips.h:
13964 * m/vax.h:
13965 * s/darwin.h:
13966 * s/freebsd.h:
13967 * s/gnu.h:
13968 * s/ms-w32.h:
13969 * s/msdos.h:
13970 * s/netbsd.h:
13971 * s/template.h: Remove references to obsolete variables.
13972
13973 * Makefile.in: Add dependencies for all unexec files.
13974 (admindir): Remove unused variable.
13975 (UNEXEC_SRC): Remove references.
13976
13977 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13978
13979 * xfns.c (x_default_font_parameter): If Xft is available, first
13980 try Monospace-12 for the default font.
13981
13982 2008-06-25 Jason Rumney <jasonr@gnu.org>
13983
13984 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13985
13986 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13987
13988 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13989
13990 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13991
13992 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
13993
13994 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13995 <scroll-conservatively>: Fix typo in docstring.
13996
13997 * xselect.c (Fx_send_client_event): Doc fix.
13998
13999 2008-06-25 Kenichi Handa <handa@m17n.org>
14000
14001 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14002
14003 * font.c (font_parse_fcname): Remove unused variables.
14004 (font_sort_entites): Delete the arg SPEC. Caller changed.
14005 Fix for the case of ! best_only.
14006 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14007
14008 * lisp.h (Fstring_to_unibyte): EXFUN it.
14009
14010 * character.h (str_to_unibyte): Extern it.
14011
14012 * character.c (str_to_unibyte): New function.
14013
14014 * fns.c (Fstring_to_unibyte): New function.
14015 (syms_of_fns): Defsubr it.
14016
14017 2008-06-24 Kenichi Handa <handa@m17n.org>
14018
14019 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14020 DPI too.
14021 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14022
14023 2008-06-24 Andreas Schwab <schwab@suse.de>
14024
14025 * Makefile.in (${lispsource}loaddefs.el): Rename from
14026 ../lisp/loaddefs.el.
14027 (bootstrap-clean): Do what distclean does but don't remove
14028 Makefile.
14029 (distclean): Depend on bootstrap-clean and remove Makefile.
14030
14031 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
14032
14033 * buffer.h (struct buffer): New member word_wrap.
14034
14035 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14036 word-wrap.
14037 (init_buffer_once): Initialize them.
14038
14039 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14040 line_wrap enum possessing three possible values.
14041
14042 * termopts.h: Replace truncate_partial_width_windows with
14043 Vtruncate_partial_width_windows.
14044
14045 * dispnew.c (direct_output_for_insert): Avoid direct output when
14046 inserting a space with word wrap on.
14047
14048 * indent.c (compute_motion): Obey integer values of
14049 truncate-partial-width-windows.
14050
14051 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14052 replacing truncate_partial_width_windows.
14053 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14054 truncate only if the window width is below that integer.
14055 (start_display, resize_mini_window, produce_stretch_glyph)
14056 (display_string, move_it_in_display_line_to): Use line_wrap.
14057 (back_to_previous_visible_line_start, reseat_1): Reset
14058 string_from_display_prop_p.
14059 (display_line): Extend default face to end of line when wrapping.
14060
14061 2008-06-24 Kim F. Storm <storm@cua.dk>
14062
14063 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14064 to wrap continued lines at word boundaries.
14065
14066 2008-06-24 Jason Rumney <jasonr@gnu.org>
14067
14068 * font.c (Ffont_face_attributes): Multiply pixel size before point
14069 conversion to avoid multiplying rounding error.
14070
14071 2008-06-23 Jason Rumney <jasonr@gnu.org>
14072
14073 * w32term.c (x_draw_glyph_string_background)
14074 (x_draw_glyph_string): Remove old bdf font code.
14075
14076 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14077
14078 2008-06-22 Kenichi Handa <handa@m17n.org>
14079
14080 * font.c (font_find_for_lface): Try the adstyle specified in
14081 the property of LFACE_FONT of LFACE (if any).
14082
14083 2008-06-21 Seiji Zenitani <zenitani@mac.com>
14084 Ryo Yoshitake <ryo@shiftmode.net>
14085
14086 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14087
14088 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14089
14090 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14091 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14092 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14093 (witness-emacs): Remove.
14094 (lisp, shortlisp): Move loaddefs.el earlier.
14095 (mostlyclean): Forget about witness-emacs.
14096
14097 2008-06-22 Glenn Morris <rgm@gnu.org>
14098
14099 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14100 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14101
14102 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14103
14104 * Makefile.in (PRECOMP): Remove.
14105 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14106 (witness-emacs): Run `compile-first'.
14107 (.el.elc): Use the new compile-onefile target.
14108
14109 2008-06-21 Kenichi Handa <handa@m17n.org>
14110
14111 * xftfont.c (xftfont_open): Handle QCembolden only when
14112 FC_EMBOLDEN is defined.
14113
14114 2008-06-21 Andreas Schwab <schwab@suse.de>
14115
14116 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14117 (.el.elc): Likewise.
14118
14119 2008-06-21 Miles Bader <miles@gnu.org>
14120
14121 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14122 build dir, not the lisp source dir.
14123
14124 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14125
14126 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14127 (bootstrapclean): Remove.
14128 (.el.elc): New rule.
14129 (PRECOMP): New var.
14130 (../lisp/subdirs.el): Remove.
14131 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14132 (witness-emacs): New target.
14133 (mostlyclean): Remove witness-emacs as well.
14134 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14135 Add witness-emacs dependency.
14136
14137 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
14138
14139 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14140 defined by the font.
14141
14142 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14143
14144 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14145 (bootstrap-clean): New target that keeps TAGS around.
14146 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14147 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14148
14149 2008-06-20 Jason Rumney <jasonr@gnu.org>
14150
14151 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14152 Remove obsolete font code.
14153
14154 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14155 to determine language support.
14156
14157 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14158
14159 * sysdep.c (cfsetspeed): New fun extracted from the code.
14160 (cfmakeraw): Move before first use.
14161
14162 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14163
14164 * sysdep.c (cfmakeraw): Provide fallback implementation.
14165 (serial_configure): Provide fallback implementation of cfsetspeed.
14166
14167 2008-06-20 Kenichi Handa <handa@m17n.org>
14168
14169 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14170 the pattern.
14171
14172 * fontset.c (fontset_from_font): Copy font_spec before changing
14173 the elements.
14174
14175 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14176
14177 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14178
14179 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14180 for explicit `font' parameters.
14181
14182 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14183
14184 2008-06-19 Kenichi Handa <handa@m17n.org>
14185
14186 * frame.c: Include <ctype.h>.
14187 (x_set_font_backend): Allow spacing characters in the X resource
14188 for FontBackend.
14189
14190 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14191
14192 * w32fns.c, xfns.c (Qfont_param): New var.
14193 (syms_of_w32fns): Initialize it.
14194 (x_default_font_parameter): Record explicit `font' into
14195 `font-parameter'.
14196
14197 2008-06-18 Kenichi Handa <handa@m17n.org>
14198
14199 * font.c (font_parse_xlfd): Fix previous change.
14200 (font_parse_fcname): Don't use :fc-unknown-spec.
14201 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14202 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14203 (font_add_log): Prepend the driver name to the resulting fonts.
14204
14205 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14206 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14207 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14208
14209 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14210 (QCembolden): New variables.
14211 (syms_of_xftfont): DEFSYM them.
14212 (xftfont_open): Call XftFontMatch. Don't trust the result of
14213 XftTextExtents8 if the pixel_size is less than 5.
14214
14215 2008-06-18 Andreas Schwab <schwab@suse.de>
14216
14217 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14218 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14219
14220 2008-06-18 Jason Rumney <jasonr@gnu.org>
14221
14222 * w32font.c (w32font_list, w32font_match): Add logging.
14223
14224 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14225
14226 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14227
14228 * font.c (font_parse_fcname): Store divider characters for
14229 unknown-spec list. For known key symbols, intern using correct
14230 symbol name.
14231
14232 2008-06-17 Kenichi Handa <handa@m17n.org>
14233
14234 * xfaces.c (realize_default_face): If the frame is not on window
14235 system, set the fontset of face to nil.
14236
14237 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14238
14239 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14240
14241 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14242
14243 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14244 (build_font_name_from_vector): Delete externs.
14245
14246 * xfaces.c (struct font_name): Don't declare.
14247
14248 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14249
14250 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14251
14252 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14253
14254 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14255
14256 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14257
14258 * font.c (Ffont_spec): Fix usage in docstring.
14259 (Ffont_face_attributes): Doc fix.
14260
14261 2008-06-16 Andreas Schwab <schwab@suse.de>
14262
14263 * font.c (Ffont_face_attributes): Fix definition.
14264
14265 2008-06-16 Jason Rumney <jasonr@gnu.org>
14266
14267 * font.h (font_style_symbolic_from_value): Remove.
14268
14269 * font.c (font_style_symbolic_from_value): Remove.
14270 (font_style_symbolic): Revert to pre 2008-06-13 version.
14271
14272 * w32font.c (w32_to_fc_weight): New function.
14273 (w32font_full_name, logfont_to_fcname): Use it.
14274
14275 2008-06-16 Kenichi Handa <handa@m17n.org>
14276
14277 * font.c (font_check_object): Delete it.
14278 (font_clear_cache): Check if a font-object is alive.
14279 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14280 font-object to nil.
14281 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14282 (font_at): Don't call font_check_object.
14283 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14284
14285 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14286
14287 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14288
14289 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14290
14291 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14292
14293 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14294
14295 * font.c (font_parse_fcname): Only one decimal point.
14296 (font_unparse_fcname): Handle data in family and foundry indices
14297 as symbols, not strings.
14298 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14299
14300 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14301
14302 * font.h (font_unparse_gtkname): Add prototype.
14303
14304 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14305
14306 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14307
14308 2008-06-15 Andreas Schwab <schwab@suse.de>
14309
14310 * font.c (font_update_drivers): Fix crash when no drivers match.
14311
14312 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14313
14314 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14315 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14316
14317 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14318
14319 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14320
14321 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14322
14323 * process.c (Fserial_process_configure, Fprocess_send_eof):
14324 Use EQ to compare Lisp_Objects.
14325
14326 2008-06-13 Jason Rumney <jasonr@gnu.org>
14327
14328 * w32fns.c (Fw32_select_font): Remove old font API function.
14329
14330 * w32font.c (logfont_to_fcname): New function.
14331 (Fx_select_font): New font dialog function compatible with
14332 GTK/fontconfig version.
14333
14334 * font.c (font_style_symbolic_from_value): New function.
14335 (font_style_symbolic): Use it.
14336
14337 * font.h (font_style_symbolic_from_value): Declare new function.
14338
14339 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
14340
14341 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14342 <font-width-table>: Fix typos in docstrings.
14343
14344 2008-06-13 Daniel Engeler <engeler@gmail.com>
14345
14346 These changes add serial port access.
14347 * process.c: Add HAVE_SERIAL.
14348 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14349 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14350 (list_processes_1, select_wrapper, Fstop_process)
14351 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14352 (status_notify): Modify to handle serial processes.
14353 [HAVE_SERIAL] (Fserial_process_configure)
14354 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14355 New functions.
14356 * process.h (struct Lisp_Process): Add `type'.
14357 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14358 New functions.
14359 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14360 serial ports.
14361 (serial_open, serial_configure): New functions.
14362 * w32.h: Add FILE_SERIAL.
14363 (struct _child_process): Add ovl_read, ovl_write.
14364
14365 2008-06-13 Kenichi Handa <handa@m17n.org>
14366
14367 * dispextern.h (enum lface_attribute_index): New member
14368 LFACE_FOUNDRY_INDEX.
14369
14370 * font.c (font_score): Delete arg alternate_families. Check only
14371 weight, slant, width, and size. Ignore the difference of alias
14372 style symbols.
14373 (font_sort_entites): Adjust for the above change. Reflect the
14374 order of font-driver to scores.
14375 (font_list_entities): Don't check alternate_familes here.
14376 (font_clear_prop): Handle foundry.
14377 (font_update_lface): Don't parse "foundry-family" form here.
14378 Handle FONT_FOUNDRY_INDEX.
14379 (font_find_for_lface): Likewise. Handle alternate families here.
14380 If registry is nil, try iso8859-1 and ascii-0.
14381 (font_open_for_lface): Pay attention to size in ENTITY.
14382 (font_open_by_name): Simplify by calling font_load_for_lface.
14383 (free_font_driver_list): Delete it.
14384 (font_update_drivers): Preserve the order of backends.
14385 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14386 of font_score and font_sort_entites.
14387 (font_update_sort_order): Likewise.
14388
14389 * xfaces.c (LFACE_FOUNDRY): New macro.
14390 (check_lface_attrs): Check foundry.
14391 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14392 (merge_face_vectors): Check foundry.
14393 (merge_face_ref): Likewise.
14394 (Finternal_set_lisp_face_attribute): Likewise.
14395 (x_update_menu_appearance): Likewise.
14396 (Finternal_get_lisp_face_attribute): Likewise.
14397 (lface_hash): Likewise.
14398 (lface_same_font_attributes_p): Likewise.
14399 (x_supports_face_attributes_p): Likewise.
14400 (tty_supports_face_attributes_p): Likewise.
14401 (Finternal_set_alternative_font_family_alist): Intern strings.
14402 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14403 (realize_default_face): Set LFACE_FOUNDRY (lface).
14404
14405 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14406 font-driver at first.
14407
14408 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14409
14410 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14411
14412 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14413
14414 2008-06-12 Jim Meyering <meyering@redhat.com>
14415
14416 Make unexec_free handle NULL the same way free does.
14417 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14418
14419 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14420
14421 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14422 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14423 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14424 (WEAK_ALIAS): Simplify.
14425 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14426 when searching a unibyte buffer.
14427
14428 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
14429
14430 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14431
14432 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
14433
14434 * w32font.c: Include ctype.h.
14435
14436 2008-06-11 Jason Rumney <jasonr@gnu.org>
14437
14438 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14439 misreported as space.
14440 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14441 as aliases for registry iso10646-1.
14442
14443 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14444
14445 * buffer.c (clone_per_buffer_values): Skip `name'.
14446
14447 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14448
14449 * font.c (font_parse_fcname): Fix last change; accept decimal
14450 points in font size.
14451
14452 2008-06-10 Jason Rumney <jasonr@gnu.org>
14453
14454 * w32uniscribe.c (add_opentype_font_name_to_list):
14455 Skip non unicode fonts.
14456
14457 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14458
14459 * xfns.c (Fx_font_dialog): New function.
14460
14461 * gtkutil.c (xg_dialog_response_cb): Rename from
14462 xg_file_response_callback.
14463 (pop_down_dialog): Rename from pop_down_file_dialog.
14464 (xg_get_file_name): Callers changed.
14465 (xg_get_font_name): New function.
14466
14467 * gtkutil.h (xg_get_font_name): Insert prototype.
14468
14469 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14470
14471 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14472 x_underline_minimum_display_offset.
14473 (syms_of_xdisp): Declare it here rather than in xterm.c.
14474 * dispextern.h (underline_minimum_offset): Declare it.
14475 * w32term.c (x_draw_glyph_string): Use it.
14476 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14477 (syms_of_xterm): Don't declare it any more.
14478 (x_draw_glyph_string): Adjust to the new name.
14479
14480 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14481
14482 * xterm.c (x_underline_minimum_display_offset): New var.
14483 (x_draw_glyph_string): Use it.
14484 (syms_of_xterm): Declare it.
14485
14486 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14487
14488 * font.c (font_parse_fcname): Accept GTK-style font names too.
14489
14490 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14491
14492 * dired.c (file_name_completion): Don't return t if the match is exact
14493 but with different capitalization.
14494 * minibuf.c (Ftry_completion): Simplify.
14495
14496 * window.c (Vwindow_point_insertion_type): New var.
14497 (set_window_buffer): Use it.
14498 (syms_of_window): Init and export it to Lisp.
14499
14500 2008-06-10 Kenichi Handa <handa@m17n.org>
14501
14502 * font.h (font_intern_prop): Prototype adjusted.
14503
14504 * font.c (font_intern_prop): New arg force_symbol.
14505 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14506 Adjust for the change of font_intern_prop.
14507
14508 * ftfont.c (ftfont_pattern_entity):
14509 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14510 (w32_registry):
14511 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14512 the change of font_intern_prop.
14513
14514 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14515
14516 * w32menu.c (digest_single_submenu): Declare extern.
14517
14518 2008-06-09 Jason Rumney <jasonr@gnu.org>
14519
14520 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14521
14522 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14523 (parse_single_submenu): Remove.
14524 (digest_single_submenu): Remove.
14525 (syms_of_w32menu): Don't initialise variables that have moved
14526 to menu.c.
14527 (set_frame_menubar): Sync with version in xmenu.c.
14528 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14529
14530 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14531 Make static again.
14532
14533 2008-06-09 Jason Rumney <jasonr@gnu.org>
14534
14535 Changes to w32 files related to the move of common menu code
14536 to menu.c on 2008-06-08 by Chong Yidong.
14537
14538 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14539 defs to w32gui.h.
14540 (single_keymap_panes, push_menu_item, push_menu_pane):
14541 Make globally visible.
14542
14543 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14544 (local_free, malloc_widget_value, free_widget_value)
14545 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14546 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14547 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14548 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14549 (menu_items, menu_items_allocated, menu_items_used)
14550 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14551 (init_menu_items, finish_menu_items, discard_menu_items)
14552 (grow_menu_items, push_submenu_start, push_submenu_end)
14553 (push_left_right_boundary, push_menu_pane, push_menu_item)
14554 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14555 (free_menubar_widget_tree_value, parse_single_submenu)
14556 (update_submenu_strings): Remove functions.
14557 (xmalloc_widget_value): Remove and declare extern.
14558
14559 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14560 (OBJ1): Build it.
14561
14562 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14563 (local_heap, local_alloc, local_free, malloc_widget_value)
14564 (free_widget_value): Define here.
14565
14566 2008-06-09 Kenichi Handa <handa@m17n.org>
14567
14568 * font.h (Qascii_0): Extern it.
14569
14570 * font.c (Qascii_0): New variable.
14571 (syms_of_font): DEFSYM it.
14572 (font_open_by_name): If the registry "iso8859-1" fails, try also
14573 "ascii-0".
14574
14575 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14576
14577 2008-06-08 Kenichi Handa <handa@m17n.org>
14578
14579 * .gdbinit (xfont): New command.
14580
14581 2008-06-08 Andreas Schwab <schwab@suse.de>
14582
14583 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14584 * Makefile.in (menu.o): Update dependencies.
14585
14586 * Makefile.in (obj): Always add menu.o.
14587 * emacs.c (main): Always call syms_of_menu.
14588 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14589
14590 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14591
14592 * Makefile.in: Compile menu.c.
14593
14594 * lisp.h: Declare syms_of_menu.
14595
14596 * emacs.c (main): Call syms_of_menu.
14597
14598 * keyboard.h: Relocate platform-independent menu definitions from
14599 xmenu.c.
14600
14601 * menu.c: New file. Relocate platform-independent menu
14602 definitions from xmenu.c. Suggested by Adrian Robert.
14603
14604 * xmenu.c: Remove platform-independent menu definitions.
14605 (menu_items, menu_items_inuse, menu_items_allocated)
14606 (menu_items_used, menu_items_n_panes)
14607 (menu_items_submenu_depth): Move to keyboard.h.
14608 (init_menu_items, finish_menu_items, unuse_menu_items)
14609 (discard_menu_items, restore_menu_items, save_menu_items)
14610 (grow_menu_items, push_submenu_start, push_submenu_end)
14611 (push_left_right_boundary, push_menu_pane, push_menu_item)
14612 (keymap_panes, single_keymap_panes, single_menu_item)
14613 (list_of_panes, list_of_items, find_and_call_menu_selection)
14614 (xmalloc_widget_value, free_menubar_widget_value_tree)
14615 (parse_single_submenu, digest_single_submenu)
14616 (update_submenu_strings): Move to menu.c.
14617
14618 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14619
14620 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14621
14622 2008-06-06 Miles Bader <miles@gnu.org>
14623
14624 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14625 face, not frame default.
14626
14627 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14628
14629 * window.c (pop_up_windows, pop_up_frames)
14630 (display_buffer_reuse_frames, Vpop_up_frame_function)
14631 (Vdisplay_buffer_function, Veven_window_heights)
14632 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14633 (Vspecial_display_function, Vsame_window_buffer_names)
14634 (Vsame_window_regexps, split_height_threshold)
14635 (Vsplit_window_preferred_function): Move those vars to window.el.
14636 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14637 (Fdisplay_buffer): Move those functions to window.el.
14638 (syms_of_window): Remove corresponding declarations.
14639 (display_buffer): New function.
14640 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14641 * dispnew.c (Flast_nonminibuf_frame): New function.
14642 * buffer.c (Fpop_to_buffer): Move to window.el.
14643
14644 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14645
14646 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14647
14648 2008-06-05 Kenichi Handa <handa@m17n.org>
14649
14650 * coding.c (detect_coding): Fix previous change.
14651 (detect_coding_system): Likewise.
14652
14653 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14654
14655 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14656
14657 * keymap.c (Vminibuffer_local_filename_must_match_map):
14658 Rename from Vminibuffer_local_must_match_filename_map.
14659 (syms_of_keymap):
14660 * minibuf.c (Fcompleting_read): Adjust accordingly.
14661 * commands.h: Rename declaration as well.
14662
14663 2008-06-05 Kenichi Handa <handa@m17n.org>
14664
14665 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14666 family name.
14667 (Ffont_put): Likewise.
14668
14669 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14670 current font-spec.
14671
14672 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14673 is unspecified.
14674
14675 * xfaces.c (realize_x_face): If the font-related face attributes
14676 are the same as those of default face, realize a new fontset from
14677 default->fontset.
14678 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14679
14680 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14681
14682 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14683 (move_it_in_display_line): New wrapper.
14684
14685 * window.c (window_scroll_pixel_based_preserve_x)
14686 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14687 (window_scroll_pixel_based, window_scroll_line_based):
14688 Use them to preserve column positions.
14689 (syms_of_window): Initialize them.
14690
14691 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14692 (HPOS . VPOS) pair.
14693
14694 * dispextern.h (move_it_in_display_line): Declare.
14695
14696 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14697
14698 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14699 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14700 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14701
14702 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14703
14704 * window.c (Fset_window_parameter): Doc fix.
14705 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14706
14707 2008-06-04 Joakim Verona <joakim@verona.se>
14708
14709 * window.h (struct window): Add new member window_parameters.
14710
14711 * window.c (Fwindow_parameters, Fwindow_parameter)
14712 (Fset_window_parameter): New defuns.
14713 (syms_of_window): Defsubr the new defuns.
14714 (make_window): Initialize window_parameters to nil.
14715
14716 2008-06-04 John Paul Wallington <jpw@pobox.com>
14717
14718 * eval.c (Fdefmacro): Doc fix.
14719
14720 2008-06-04 Kenichi Handa <handa@m17n.org>
14721
14722 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14723 Be sure to call setup_coding_system when we find a proper coding system.
14724 (detect_coding_system): Fix handling of coding->head_ascii.
14725
14726 2008-06-03 Andreas Schwab <schwab@suse.de>
14727
14728 * font.c (font_prop_validate_spacing): Fix last change.
14729
14730 2008-06-03 Kenichi Handa <handa@m17n.org>
14731
14732 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14733 (font_parse_fcname): Fix handling of unknown key.
14734
14735 * xfont.c (xfont_list): Try an alias.
14736
14737 * charset.c (char_charset): Return NULL if the arg charset_list is
14738 specified and C doesn't belong to any of them.
14739
14740 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14741
14742 * font.c (font_pixel_size): Don't take cdr of an integer.
14743
14744 2008-06-02 Jim Meyering <meyering@redhat.com>
14745
14746 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14747 * alloc.c (xfree): Return right away for a NULL arg.
14748 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14749 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14750 * mac.c (create_apple_event_from_event_ref): Likewise.
14751 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14752 Likewise.
14753 * doprnt.c (doprnt1): Likewise.
14754 * frame.c (frame): Likewise.
14755 * keyboard.c (wipe_kboard): Likewise.
14756 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14757 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14758 * term.c (tty_default_color_capabilities, maybe_fatal)
14759 (delete_tty): Likewise.
14760 * w16select.c (string): Likewise.
14761 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14762 * w32bdf.c (w32_free_bdf_font): Likewise.
14763 * w32fns.c (w32_unload_font): Likewise.
14764 * w32font.c (w32font_close): Likewise.
14765 * window.c (size_window): Likewise.
14766 * xselect.c (receive_incremental_selection): Likewise.
14767 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14768 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14769 * w32.c (stat): Likewise.
14770
14771 Remove useless if-before-free tests.
14772 * editfns.c (Fset_time_zone_rule): Likewise.
14773 * lread.c (nosuffix): Likewise.
14774 * ralloc.c (get_bloc): Likewise.
14775 * regex.c (reg_free): Likewise.
14776 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14777 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14778 * xsmfns.c (smc_save_yourself_CB): Likewise.
14779
14780 2008-06-02 Kenichi Handa <handa@m17n.org>
14781
14782 * font.c (font_find_for_lface): Handle float font size.
14783 (font_open_for_lface): Likewise.
14784
14785 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14786 comparing the properties.
14787
14788 2008-06-01 Jason Rumney <jasonr@gnu.org>
14789
14790 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14791 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14792 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14793 Don't add empty script list.
14794 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14795
14796 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14797
14798 * Makefile.in (dot, dotdot): Remove, update users.
14799 ".." has been used elsewhere in the file for a long time.
14800 (LIBXT_STATIC): Remove conditional based on unused variable.
14801
14802 2008-06-01 Miles Bader <miles@gnu.org>
14803
14804 * xfaces.c (Vface_remapping_alist): New variable.
14805 (syms_of_xfaces): Initialize it.
14806 (enum named_merge_point_kind): New type.
14807 (struct named_merge_point): Add `named_merge_point_kind' field.
14808 (push_named_merge_point): Make cycle detection respect different
14809 named-merge-point kinds.
14810 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14811 Remove face-name alias resolution.
14812 (lface_from_face_name): New definition using
14813 `lface_from_face_name_no_resolve'.
14814 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14815 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14816 (get_lface_attributes): New definition that layers face-remapping on
14817 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14818 (lookup_basic_face): New function.
14819 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14820 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14821 `get_lface_attributes'.
14822 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14823 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14824 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14825
14826 * xdisp.c (init_iterator): Pass base_face_id through
14827 `lookup_basic_face' when we actually use it as a face-id.
14828 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14829 DEFAULT_FACE_ID.
14830
14831 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14832 lookup the initial face-id.
14833
14834 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14835
14836 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14837
14838 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14839 (Fremove_text_properties): Fix typos in docstrings.
14840
14841 2008-05-31 Kenichi Handa <handa@m17n.org>
14842
14843 * font.c (font_list_entities): Fix the car part of data to be
14844 stored in the cache.
14845
14846 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14847
14848 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14849
14850 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14851 Add a `test' argument so another predicate than `equal' can be used.
14852 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14853 (map_char_table): Remove unused vars `c' and `i'.
14854 * lisp.h (Foptimize_char_table): Adjust declaration.
14855 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14856
14857 2008-05-30 Kenichi Handa <handa@m17n.org>
14858
14859 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14860 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14861 defined.
14862
14863 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14864
14865 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14866 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14867 frame-local settings for the same variable.
14868
14869 2008-05-30 Kenichi Handa <handa@m17n.org>
14870
14871 * fontset.c (Ffont_info): Move to font.c.
14872 (syms_of_fontset): Delete defsubr of Sfont_info.
14873
14874 * font.c (font_style_to_value, font_score): Delete casting of the
14875 args to xstcasecmp.
14876 (register_font_driver): Increment num_font_drivers only when
14877 registering the driver globally.
14878 (Ffont_info): Move from fontset.c. Handle a font object too.
14879 (syms_of_font): Defsubr Sfont_info.
14880
14881 2008-05-29 Kenichi Handa <handa@m17n.org>
14882
14883 * coding.h (enum define_coding_utf8_arg_index): New enum.
14884 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14885 coding_attr_utf_bom.
14886 (enum utf_bom_type): Rename from utf_16_bom_type.
14887 (struct utf_16_spec): Adjust for the above change.
14888 (struct coding_system): Add utf_8_bom in `spec' union.
14889
14890 * coding.c (CODING_UTF_8_BOM): New macro.
14891 (enum coding_category): Delete coding_category_utf_8, add
14892 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14893 coding_category_utf_8_sig.
14894 (CATEGORY_MASK_UTF_8): Delete it.
14895 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14896 (CATEGORY_MASK_UTF_8_SIG): New macros.
14897 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14898 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14899 CATEGORY_MASK_UTF_8_SIG.
14900 (CATEGORY_MASK_UTF_8): New macro.
14901 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14902 (detect_coding_utf_8): Check BOM.
14903 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14904 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14905 (encode_coding_utf_16): Likewise.
14906 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14907 (detect_coding, detect_coding_system): Handle utf-8-auto.
14908 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14909 (syms_of_coding): Fix setting up of Vcoding_category_table.
14910
14911 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14912
14913 * process.c (Faccept_process_output): If `millisec' is non-nil,
14914 `seconds' default to 0.
14915 (wait_reading_process_output): Also return non-nil if we read output
14916 from a non-running process.
14917
14918 2008-05-29 Jason Rumney <jasonr@gnu.org>
14919
14920 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14921 `raster' specified.
14922 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14923 in the uniscribe backend, but disallow any font that has no
14924 unicode subrange support.
14925
14926 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14927
14928 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14929 Fix typos in docstrings.
14930
14931 2008-05-29 Kenichi Handa <handa@m17n.org>
14932
14933 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14934 (Fx_family_fonts): Set frame correctly.
14935
14936 2008-05-28 Jason Rumney <jasonr@gnu.org>
14937
14938 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14939
14940 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14941
14942 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14943 calling build_annotations.
14944
14945 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14946
14947 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14948 (Fencode_coding_string):
14949 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14950 <latin-extra-code-table>: Fix typos in docstrings.
14951 (syms_of_coding) <coding-system-alist>: Doc fix.
14952 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14953
14954 2008-05-28 Kenichi Handa <handa@m17n.org>
14955
14956 * fontset.c (Ffont_info): Don't call font_close_object.
14957
14958 * font.c (font_parse_family_registry): Use Ffont_put to validate
14959 foundry and family.
14960 (font_delete_unmatched): Don't check spacing.
14961 (font_list_entities): Add spacing to the spec to list fonts.
14962
14963 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14964 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14965
14966 * coding.c (encode_coding_raw_text): Fix previous change.
14967 (encode_coding_object): When the dst_object is a buffer and is
14968 different from src_object, move gap to PT.
14969
14970 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14971
14972 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14973
14974 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14975
14976 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14977 all branches. Compute it differently.
14978
14979 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14980
14981 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14982
14983 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14984 into "else if () ... else ...".
14985
14986 2008-05-27 Jason Rumney <jasonr@gnu.org>
14987
14988 * w32font.c (w32font_open_internal): Determine if glyph indices
14989 are likely to work here.
14990
14991 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14992
14993 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14994 draw overlap glyphs with appropriate highlighting.
14995
14996 2008-05-27 Kenichi Handa <handa@m17n.org>
14997
14998 * xfont.c (xfont_open): Fix calculation of font->average_width.
14999
15000 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15001
15002 * casefiddle.c (casify_object): Try to guess better whether the
15003 argument is a byte or a char.
15004
15005 2008-05-26 Andreas Schwab <schwab@suse.de>
15006
15007 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15008 Always send multiples of format size.
15009
15010 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15011
15012 2008-05-26 Jason Rumney <jasonr@gnu.org>
15013
15014 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15015 (compute_metrics): Don't set failure if we just cleared the cache.
15016 (w32_weight_table): Remove unused variable.
15017 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15018 backwards compatibility.
15019
15020 2008-05-25 Kenichi Handa <handa@m17n.org>
15021
15022 * w32term.c (x_draw_glyph_string):
15023 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15024
15025 * xfaces.c: Delete unused function prototypes.
15026 (xstrlwr, font_frame): Delete them.
15027 (clear_face_cache): Delete unused variable.
15028
15029 * xftfont.c (xftfont_open): Delete unused variable.
15030 If underline_thickness is not 1, adjust underline_position.
15031
15032 * ftxfont.c (ftxfont_open): Delete unused variable.
15033
15034 * fontset.c (face_for_char): Optimize for the case of no charset
15035 property.
15036
15037 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15038 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15039 (otf_open, font_otf_capability, generate_otf_features)
15040 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15041 Comment out by surrounding "#if 0" and "#endif" for the moment.
15042 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15043 (syms_of_font): Codes for accessing above commented out.
15044
15045 2008-05-24 Eli Zaretskii <eliz@gnu.org>
15046
15047 * w32proc.c: Include dispextern.h.
15048
15049 * w32.c: Include dispextern.h.
15050
15051 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
15052
15053 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15054 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15055 Fix typos in docstrings.
15056
15057 2008-05-23 Jason Rumney <jasonr@gnu.org>
15058
15059 * xsmfns.c: Remove includes that are already included by config.h.
15060
15061 2008-05-23 Kenichi Handa <handa@m17n.org>
15062
15063 * charset.c (Qemacs, charset_emacs): New variables.
15064 (char_charset): Fix for non-Unicode characters.
15065 (syms_of_charset): Define charset_emacs.
15066
15067 * w32term.c (x_draw_glyph_string): Be sure to update
15068 s->underline_thickness and s->underline_position. Be sure to draw
15069 underline within the current line area.
15070
15071 * xterm.c (x_draw_glyph_string): Be sure to update
15072 s->underline_thickness and s->underline_position. Be sure to draw
15073 underline within the current line area.
15074
15075 * fontset.c: Delete unused variables and add casting for char *
15076 throughout the file.
15077 (fontset_font): Try the fallback fonts of the current fontset
15078 before consulting the default fontset.
15079
15080 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15081
15082 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15083
15084 2008-05-22 Jason Rumney <jasonr@gnu.org>
15085
15086 * font.c: Don't include strings.h.
15087
15088 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15089
15090 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15091 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15092 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15093 to call xstrcasecmp.
15094
15095 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15096
15097 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15098
15099 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15100
15101 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15102
15103 2008-05-22 Kenichi Handa <handa@m17n.org>
15104
15105 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15106
15107 * font.c (font_prop_validate_style): Adjust for the format
15108 change of font_style_table.
15109
15110 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15111 two args.
15112
15113 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15114 two args.
15115
15116 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15117
15118 * minibuf.c (keys_of_minibuf): Delete.
15119 * lisp.h (keys_of_minibuf): Delete.
15120 * emacs.c (main): Don't call keys_of_minibuf.
15121
15122 2008-05-22 Kenichi Handa <handa@m17n.org>
15123
15124 * ftfont.c (ftfont_resolve_generic_family): Rename from
15125 ftfont_list_generic_family. Return a single family for each
15126 generic family.
15127 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15128 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15129 Call font_add_log.
15130 (ftfont_match): Call font_add_log.
15131
15132 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15133 (FONT_DEBUG): Define it.
15134 (font_add_log): Extern it.
15135 (font_assert): Rename from xassert.
15136
15137 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15138 (xfont_list_family): Call font_add_log.
15139 (xfont_match): Likewise.
15140 (memq_no_quit): Delete.
15141
15142 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15143 call of Ffont_xlfd_name.
15144
15145 * xfaces.c (struct table_entry, slant_table, weight_table)
15146 (swidth_table): Move to font.c.
15147
15148 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15149 xassert are changed to font_assert. Delete many unused variables.
15150 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15151 New variables.
15152 (struct table_entry): Move from xfaces.c and modified.
15153 (weight_table, slant_table, width_table): Move from xfaces.c and
15154 contents adjusted for the change of struct table_entry.
15155 (font_style_to_value, font_style_symbolic): Adjust for the
15156 format change of font_style_table.
15157 (font_parse_family_registry): Don't overwrite existing foundry and
15158 family of font_spec.
15159 (font_score): Fix calculation of diff for sizes.
15160 (font_sort_entites): Call font_add_log.
15161 (font_delete_unmatched): Return a newly created list.
15162 (font_list_entities): Fix previous change. Call font_add_log.
15163 (font_matching_entity, font_open_entity, font_close_entity):
15164 Call font_add_log.
15165 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15166 (Finternal_set_font_style_table): Delete.
15167 (BUILD_STYLE_TABLE): New macro.
15168 (build_style_table): New function.
15169 (Vfont_log, font_log_env_checked): New variables.
15170 (font_add_log): New function.
15171 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15172 Declare Lisp variables "font-weight-table", "font-slant-table",
15173 "font-width-table", and "font-log". Initialize font_style_table.
15174
15175 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15176
15177 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15178
15179 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15180 Ryo Yoshitake <ryo@shiftmode.net>
15181
15182 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15183 (Vframe_alpha_lower_limit): New variable.
15184 (x_set_alpha): New function.
15185
15186 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15187
15188 * xfns.c (x-create-frame, Qalpha):
15189 Initialize the frame parameter `alpha'.
15190 * xterm.c (OPAQUE, OPACITY): New.
15191 (x_set_frame_alpha): New function.
15192 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15193
15194 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15195 * w32fns.c (w32_frame_parm_handlers): Likewise.
15196
15197 2008-05-20 Jason Rumney <jasonr@gnu.org>
15198
15199 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15200 truetype fonts to opentype list.
15201
15202 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15203
15204 * fontset.c (Ffontset_info): Doc fix.
15205 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15206 <ignore-relative-composition>: Fix typos in docstrings.
15207
15208 * font.c (syms-of-font) <font-encoding-alist>:
15209 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15210 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15211 (Ffont_otf_alternates): Doc fixes.
15212
15213 2008-05-20 Kenichi Handa <handa@m17n.org>
15214
15215 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15216 font.h through out the file.
15217 (FONT_DRIVERS): Rename from FONTOBJ.
15218 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15219 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15220
15221 * emacs.c (main): Call syms_of_font unconditionally.
15222
15223 * font.h (find_font_encoding): Extern it.
15224
15225 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15226 fontset.c.
15227 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15228 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15229 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15230 only when HAVE_WINDOW_SYSTEM is defined.
15231 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15232 when HAVE_WINDOW_SYSTEM is defined.
15233
15234 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15235 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15236
15237 * xfaces.c: Include font.h unconditionally.
15238 (merge_face_ref, merge_face_vectors)
15239 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15240
15241 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15242
15243 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15244 indirect_variable.
15245 * eval.c (lisp_indirect_variable): New fun.
15246 (Fuser_variable_p): Use it.
15247
15248 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15249
15250 * lisp.h (indirect_variable):
15251 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15252 Use Lisp_Symbol pointers rather than Lisp_Object.
15253 Adjust callers.
15254 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15255 To this end, change calling-convention.
15256
15257 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15258 if some non-hidden buffers are selected by string&pred.
15259
15260 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15261
15262 * process.c (wait_reading_process_output): Always check status
15263 when in batch mode.
15264
15265 2008-05-19 Kenichi Handa <handa@m17n.org>
15266
15267 * font.c (font_list_entities): Fix handling of cache.
15268 (font_matching_entity): Likewise.
15269
15270 * ftfont.c (cs_iso8859_1): Delete.
15271 (ft_face_cache): New variable.
15272 (struct ftfont_info): New member fc_charset_idx.
15273 (ftfont_build_basic_charsets): Delete.
15274 (fc_charset_table): New variable.
15275 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15276 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15277 Callers changed.
15278 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15279 (ftfont_spec_pattern): New argument fc_charset_idx.
15280 Check registry more rigidly. Change callers.
15281 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15282 change of :font-entity property of the font.
15283
15284 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15285 property of the font.
15286
15287 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15288
15289 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15290 (Funencodable_char_position, Fcheck_coding_systems_region)
15291 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15292 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15293 (Ffind_operation_coding_system, Fset_coding_system_priority)
15294 (Fcoding_system_eol_type): Doc fixes.
15295
15296 2008-05-17 Glenn Morris <rgm@gnu.org>
15297
15298 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15299
15300 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15301
15302 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15303 and st_gid.
15304
15305 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15306 HAVE_WINDOW_SYSTEM is not defined.
15307
15308 * xfaces.c (merge_face_ref, merge_face_vectors)
15309 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15310 HAVE_WINDOW_SYSTEM is defined.
15311 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15312
15313 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15314
15315 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15316
15317 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15318
15319 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15320
15321 2008-05-15 Kenichi Handa <handa@m17n.org>
15322
15323 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15324 preference.
15325
15326 2008-05-15 Glenn Morris <rgm@gnu.org>
15327
15328 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15329
15330 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
15331
15332 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15333 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15334
15335 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15336
15337 2008-05-15 Kenichi Handa <handa@m17n.org>
15338
15339 * ftfont.c (ftfont_list): Downcase family name to check generic
15340 families.
15341
15342 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15343 font-spec for QCfont value.
15344
15345 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15346 buffer. Check the return value of it.
15347
15348 2008-05-14 Jason Rumney <jasonr@gnu.org>
15349
15350 * w32term.c (w32_get_glyph_overhangs): Remove.
15351 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15352
15353 2008-05-14 Kenichi Handa <handa@m17n.org>
15354
15355 * font.c (font_prop_validate): Make nil a valid value.
15356 (font_clear_cache): Check if the cached vector of entities is nil
15357 or not.
15358
15359 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15360
15361 * emacs.c (main_thread): Conditionalize on
15362 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15363 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15364
15365 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15366 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15367 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15368
15369 2008-05-14 Kenichi Handa <handa@m17n.org>
15370
15371 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15372 has no corresponding coding system.
15373
15374 2008-05-14 Jason Rumney <jasonr@gnu.org>
15375
15376 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15377
15378 * w32font.h (w32font_open_internal): Update declaration.
15379
15380 * w32font.c (w32font_open_internal): Change last argument from
15381 w32font_info struct to font object. Fill in font object from
15382 font_entity. Get Outline metrics if possible. Use them to
15383 calculate underline position and thickness. Use xlfd name as name
15384 property. Don't set codepage.
15385 (w32font_open): Pass font_object to w32font_open_internal. Don't
15386 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15387 (w32font_draw): Use s->font.
15388 (clear_cached_metrics): Don't clear non-existent blocks.
15389
15390 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15391 font was not found.
15392 (x_draw_glyph_string): Use underline position and thickness from font.
15393
15394 * w32uniscribe.c (uniscribe_open): Pass font_object to
15395 w32font_open_internal.
15396
15397 2008-05-14 Kenichi Handa <handa@m17n.org>
15398
15399 These changes are to delete all legacy font-handling codes, and
15400 make Emacs use only font-backends.
15401
15402 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15403 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15404
15405 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15406
15407 * charset.h (Vcharset_non_preferred_head)
15408 (Vcurrent_iso639_language): Extern them.
15409
15410 * charset.c (Vcharset_non_preferred_head): New variable.
15411 (Vcurrent_iso639_language): New variable.
15412 (syms_of_charset): Declare it as a Lisp variable.
15413 (char_charset): Don't check non preferred charsets. As a last
15414 resort, return charset_unicode.
15415 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15416
15417 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15418 conditionals. Don't check enable_font_backend. Delete all codes
15419 used only when USE_FONT_BACKEND is not defined.
15420
15421 * dispextern.h (struct glyph_string): Change type of `font' to
15422 `struct font *'.
15423 (struct glyph_string): New member underline_position and
15424 underline_thickness.
15425 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15426 (struct face): Change type of `font' to `struct font *'. Remove
15427 members `font_name', `font_info_id'.
15428 (per_char_metric, encode_char): Delete externs.
15429 (calc_pixel_width_or_height): Adjust the prototype.
15430
15431 * emacs.c (enable_font_backend): Delete extern.
15432 (main): Don't set enable_font_backend. Don't check the command
15433 line argument "-disable-font-backend".
15434
15435 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15436 (enum font_property_index): New members FONT_DPI_INDEX,
15437 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15438 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15439 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15440 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15441 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15442 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15443 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15444 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15445 (struct font_spec, struct font_entity): New structs.
15446 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15447 (struct font): Many members from old "struct font_info" moved to
15448 here. Members font and entity deleted.
15449 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15450 the new font-related objects.
15451 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15452 (CHECK_FONT_GET_OBJECT): Likewise.
15453 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15454 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15455 (struct font_driver): New members case_sensitive anc check. Type
15456 of the member list and open changed.
15457 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15458 (font_symbolic_width, font_find_object, font_get_spec)
15459 (font_set_lface_from_name): Delete extern.
15460 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15461
15462 * font.c: Include <strings.h>.
15463 (enable_font_backend): Delete it.
15464 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15465 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15466 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15467 (null_string): Delete it.
15468 (null_vector): Make it static.
15469 (font_family_alist): Delete it.
15470 (Qnormal): Extern it.
15471 (QCextra, QClanguage): Delete it.
15472 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15473 (font_make_spec, font_make_entity, font_make_object)
15474 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15475 the string. Callers changed.
15476 (font_pixel_size): Adjusted for the format change of font-related
15477 objects.
15478 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15479 (font_style_to_value, font_style_symbolic): New function.
15480 (build_font_family_alist): Delete it.
15481 (font_registry_charsets): Use Fassoc_string instead of
15482 assq_no_quit.
15483 (font_prop_validate_symbol): Don't return null_string.
15484 (font_prop_validate_style): Adjusted for the change of
15485 style-related values in a font vector.
15486 (font_property_table): Delete entries for QClanguage and
15487 QCantialias, add entries for QCavgwidth.
15488 (get_font_prop_index): Delete the 2nd argument FROM.
15489 (font_prop_validate): Arguments changed.
15490 (font_put_extra): Adjusted for the change of font-related objects.
15491 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15492 (font_parse_fcname, font_unparse_fcname)
15493 (font_prepare_composition): Likewise.
15494 (font_parse_family_registry): Renamed from font_merge_old_spec.
15495 (otf_open): Delete the 1st arg entity.
15496 (font_otf_capability): Adjusted for the above change.
15497 (font_score): New arg alternate_families. Adjusted for the change
15498 of font-related objects.
15499 (font_sort_entites): New arg best_only.
15500 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15501 Delete them.
15502 (font_match_p): Check alternate families.
15503 (font_find_object): Delete it.
15504 (font_check_object): New function.
15505 (font_clear_cache): Adjusted for the change of font-related objects.
15506 (font_delete_unmatched): New arg.
15507 (font_list_entities): Call font_driver->list with a spec that
15508 doesn't specify style-related properties.
15509 (font_matching_entity): Arguments changed. Caller changed.
15510 (font_open_entity): Adjusted for the change of font-related objects.
15511 (font_close_object, font_has_char, font_encode_char)
15512 (font_get_name, font_get_spec): Likewise.
15513 (font_spec_from_name, font_clear_prop, font_update_lface):
15514 New functions.
15515 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15516 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15517 (font_at): Adjusted for the change of font-related objects.
15518 (font_range): New function.
15519 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15520 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15521 (Fcopy_font_spec, Fmerge_font_spec): New function.
15522 (Ffont_family_list): Renamed from list-families.
15523 (Finternal_set_font_style_table): Arguments changed.
15524 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15525 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15526 change of font-related objects.
15527 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15528
15529 * fontset.h (struct font_info): Delete it. Most members go to
15530 struct font.
15531 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15532 (enum FONT_SPEC_INDEX): Delete it.
15533 (font_info, list_fonts_func, load_font_func, query_font_func)
15534 (set_frame_fontset_func, find_ccl_program_func)
15535 (get_font_repertory_func, new_fontset_from_font_name): Delete
15536 externs.
15537 (fontset_from_font_name): Extern it.
15538 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15539 (FONT_INFO_FROM_FACE): Deleted.
15540 (face_for_font): Adjust prototype.
15541
15542 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15543 conditionals. Don't check enable_font_backend. Delete all codes
15544 used only when USE_FONT_BACKEND is not defined.
15545 (get_font_info_func, list_font_func, load_font_func)
15546 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15547 (get_font_repertory_func): Delete them.
15548 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15549 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15550 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15551 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15552 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15553 (fontset_compare_rfontdef): New function.
15554 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15555 rfont-defs by qsort. Adjusted for the change of font-group vector.
15556 (load_font_get_repertory): Deleted.
15557 (fontset_find_font): Use new macros to ref/set elements of
15558 font-def and rfont-def.
15559 (fontset_font): Fix the timing of remembering that no font for C.
15560 (free_face_fontset): Do nothing if the face has no fontset.
15561 (face_suitable_for_char_p): Use new macros to ref/set elements of
15562 rfont-def.
15563 (face_for_char): Likewise. Call face_for_char with font_object.
15564 (fs_load_font): Delete. Delete #pragma surrounding it.
15565 (fs_query_fontset): Use strcasecmp instead of strcmp.
15566 (generate_ascii_font_name): Adjusted for the format change of
15567 font-spec.
15568 (Fset_fontset_font): Likewise. Use new macros to set elements of
15569 font-def.
15570 (Fnew_fontset): Use font_unparse_xlfd to generate
15571 FONTSET_ASCII (fontset).
15572 (new_fontset_from_font_name): Deleted.
15573 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15574 a fontset is already created for the font. FIx updating of
15575 Vfontset_alias_alist.
15576 (fontset_ascii_font): Deleted.
15577 (Ffont_info): Adjusted for the format change of font-spec.
15578 (Finternal_char_font): Likewise.
15579 (Ffontset_info): Likewise.
15580 (syms_of_fontset): Don't check load_font_func.
15581
15582 * fns.c (internal_equal): Handle PREV_FONT.
15583
15584 * frame.h: Delete USE_FONT_BACKEND conditional.
15585
15586 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15587 conditionals. Don't check enable_font_backend. Delete all codes
15588 used only when USE_FONT_BACKEND is not defined.
15589 (x_set_font): Call x_new_font, not x_new_fontset2.
15590 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15591 already set for the frame.
15592
15593 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15594 a font-entity by font_make_entity. Use font_intern_prop instead
15595 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15596 font property. If a font is scalable, set avgwidth property to 0.
15597 Set font-entity property by font_put_extra.
15598 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15599 (ffont_driver): Adjusted for the change of struct font_driver.
15600 (ftfont_spec_pattern): New function.
15601 (ftfont_list): Return a list, not vector.
15602 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15603 (ftfont_list_family): Don't downcase names.
15604 (ftfont_free_entity): Deleted.
15605 (ftfont_open): Return a font-object. Adjusted for the change of
15606 struct font. Get underline_thickness and underline_position from
15607 font property. Don't update dpyinfo->smallest_font_height and
15608 dpyinfo->smallest_char_width.
15609 (ftfont_close): Don't free `struct font'.
15610 (ftfont_has_char): Adjusted for the format change of font-entity.
15611 (ftfont_encode_char, ftfont_text_extents): Likewise.
15612
15613 * ftxfont.c (ftxfont_list): Return a list, not vector.
15614 (ftxfont_open): Return a font-object. Adjusted for the change of
15615 struct font. Get underline_thickness and underline_position from
15616 font property. Don't update dpyinfo->smallest_font_height and
15617 dpyinfo->smallest_char_width.
15618 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15619 (ftxfont_draw): Adjusted for the change of struct font.
15620
15621 * image.c (image_ascent): Don't include "charset.h". Include
15622 "character.h" and "font.h".
15623
15624 * lisp.h (enum pvec_type): New member PREV_FONT.
15625 (Fassoc_string): EXFUN it.
15626
15627 * print.c: Include font.h.
15628 (print_object): Handle font-related objects.
15629
15630 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15631 conditionals. Don't check enable_font_backend. Delete all codes
15632 used only when USE_FONT_BACKEND is not defined.
15633 (handle_auto_composed_prop): Do nothing if it->f is not on a
15634 window system. Check how many following characters can be
15635 displayed by the same font.
15636 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15637 'struct font *'.
15638 (get_char_face_and_encoding): Assign the whole encoding task to
15639 the `encode-char' method of a font driver.
15640 (fill_composite_glyph_string): Adjusted for the change of `struct
15641 face' and `struct glyph_string'.
15642 (fill_glyph_string): Likewise.
15643 (get_per_char_metric): Arguments changed.
15644 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15645 and `struct glyph_string'.
15646 (produce_stretch_glyph, calc_line_height_property)
15647 (x_produce_glyphs): Likewise.
15648
15649 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15650 conditionals. Don't check enable_font_backend. Delete all codes
15651 used only when USE_FONT_BACKEND is not defined. Use
15652 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15653 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15654 (Qp): Extern them.
15655 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15656 Deleted.
15657 (struct font_name): Deleted.
15658 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15659 (compare_fonts_by_sort_order): New function.
15660 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15661 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15662 Deleted.
15663 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15664 compare_fonts_by_sort_order.
15665 (Fx_font_family_list): Call Ffont_family_list.
15666 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15667 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15668 (face_symbolic_slant, face_symbolic_swidth)
15669 (split_font_name_into_vector, build_font_name_from_vector)
15670 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15671 (font_rescale_ratio, split_font_name, build_font_name)
15672 (free_font_names, sort_fonts, x_face_list_fonts)
15673 (face_font_available_p, sorted_font_list, cmp_font_names)
15674 (font_list_1, concat_font_list, font_list, remove_duplicates):
15675 Deleted.
15676 (Fx_list_fonts): Use Ffont_list.
15677 (LFACE_AVGWIDTH): Deleted.
15678 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15679 by FONTP.
15680 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15681 (set_lface_from_font_name): Delete it.
15682 (set_lface_from_font): Renamed from
15683 set_lface_from_font_and_fontset. Caller changed. Don't set
15684 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15685 for face.
15686 (merge_face_vectors): Copy font-spec if necessary.
15687 Clear properties of the font-spec if necessary.
15688 (merge_face_ref): Clear properties of the font-spec if necessary.
15689 (Finternal_set_lisp_face_attribute): Likewise.
15690 (set_font_frame_param): Use font_load_for_lface to load a
15691 font-object, and call Fmodify_frame_parameters with it.
15692 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15693 font name by Ffont_xlfd_name.
15694 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15695 QCslant, and QCwidth.
15696 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15697 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15698 Compare fonts by EQ.
15699 (lookup_non_ascii_face): Deleted.
15700 (face_for_font): The 2nd argument changed.
15701 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15702 Check atomic font properties by case insensitive.
15703 (realize_non_ascii_face): Set face->overstrike correctly.
15704 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15705 (dump_realized_face): Get font name from
15706 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15707
15708 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15709 conditionals. Don't check enable_font_backend. Delete all codes
15710 used only when USE_FONT_BACKEND is not defined.
15711 (xic_create_xfontset): Original code deleted and renamed from
15712 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15713 (x_make_gc): Don't set GCFont in GCs.
15714 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15715 opened by "fixed".
15716 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15717 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15718 get_font_repertory_func.
15719
15720 * xfont.c: Include <stdlib.h> and "ccl.h".
15721 (struct xfont_info): New structure.
15722 (xfont_query_font): Deleted.
15723 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15724 moved from xterm.c.
15725 (xfont_driver): Adjusted for the change of struct font_driver.
15726 (compare_font_names): New function.
15727 (xfont_list_pattern): Sort font names case insensitively. Make
15728 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15729 (xfont_list): Return a list, not vector.
15730 (xfont_match): If the font doesn't have QCname property, generate
15731 a name from the other font properties.
15732 (xfont_open): Return a font-object. Adjusted for the change of
15733 struct font. Get underline_thickness and underline_position from
15734 font property. Don't update dpyinfo->smallest_font_height and
15735 dpyinfo->smallest_char_width.
15736 (xfont_close): Don't free struct font.
15737 (xfont_prepare_face): Adjusted for the change of struct font.
15738 (xfont_done_face): Deleted.
15739 (xfont_has_char): Adjusted for the change of struct font.
15740 (xfont_encode_char, xfont_draw): Likewise.
15741 (xfont_check): New function.
15742
15743 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15744 callback function.
15745 (xftfont_match): Adjusted for the format change of font-entity.
15746 (xftfont_open): Adjusted for the format change of font-entity and
15747 font-object. Adjusted for the change of struct font. Return a
15748 font-object. Don't update dpyinfo->smallest_font_height and
15749 dpyinfo->smallest_char_width.
15750 (xftfont_close): Block input while calling XftFontClose.
15751 (xftfont_prepare_face): Don't block input while calling
15752 xftfont_get_colors. Adjusted for the change of struct font.
15753 (xftfont_shape): Return value of error case fixed.
15754
15755 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15756
15757 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15758 conditionals.
15759 (FONT_WIDTH): Return (f)->max_width.
15760 (struct x_display_info): Delete member `font'.
15761 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15762 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15763 (struct x_output): Change type of `font' to `struct font *'.
15764
15765 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15766 conditionals. Don't check enable_font_backend. Delete all codes
15767 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15768 (x_per_char_metric, x_encode_char): Deleted.
15769 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15770 (x_compute_glyph_string_overhangs): Adjusted for the change of
15771 `struct face'.
15772 (x_draw_glyph_string_foreground)
15773 (x_draw_composite_glyph_string_foreground): Likewise.
15774 (x_draw_glyph_string): Likewise. Use font->underline_position and
15775 font->underline_thickness.
15776 (x_new_font): Renamed from x_new_fontset2.
15777 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15778 (x_check_font): Call `check' method of a font driver.
15779 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15780 (x_query_font, x_get_font_repertory): Deleted.
15781 (x_find_ccl_program): Renamed and moved to xfont.c.
15782 (x_redisplay_interface): Adjusted for the change of `struct
15783 redisplay_interface'.
15784
15785 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15786 conditionals. Don't check enable_font_backend. Delete all codes
15787 used only when USE_FONT_BACKEND is not defined. Surround non-used
15788 code by "#ifdef OLD_FONT" and "endif".
15789 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15790
15791 * w32font.h (struct w32font_info): New member.
15792 (FONT_COMPAT): New macro.
15793 (w32font_open_internal): Prototype adjusted.
15794
15795 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15796 OLD_FONT" and "endif".
15797
15798 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15799 conditionals. Don't check enable_font_backend. Delete all codes
15800 used only when USE_FONT_BACKEND is not defined.
15801 (w32font_open): Return a font-object. Make a font-object by
15802 font_make_object. Adjusted for the change of struct w32font_info.
15803 (w32font_close): Don't free struct font. Adjusted for the change
15804 of struct w32font_info.
15805 (w32font_encode_char, w32font_text_extents, w32font_draw):
15806 Adjusted for the change of struct w32font_info.
15807 (w32font_draw): Likewise.
15808 (w32font_list_internal): Return a list, not vector.
15809 (w32font_open_internal): Change the 4th arg to font-object.
15810 Adjusted for the change of struct w32font_info and font-object format.
15811 (add_font_name_to_list): Don't downcase names.
15812 (w32_enumfont_pattern_entity): Make a font-entity by
15813 font_make_entity. Adjusted for the format change of font-entity.
15814 Use FONT_SET_STYLE to set a style-related font property. If a
15815 font is scalable, set avgwidth property to 0. Set font-entity
15816 property by font_put_extra.
15817 (font_matches_spec): Adjusted for the format change of font-entity.
15818 (w32_weight_table, w32_decode_weight): New variables.
15819 (w32_encode_weight): New function.
15820 (fill_in_logfont): Adjusted for the format change of font-spec.
15821 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15822 weight value.
15823 (w32font_driver): Adjusted for the change of struct font_driver.
15824
15825 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15826 conditionals. Don't check enable_font_backend. Surround non-used
15827 code by "#ifdef OLD_FONT" and "endif".
15828 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15829 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15830
15831 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15832 conditionals. Don't check enable_font_backend. Delete all codes
15833 used only when USE_FONT_BACKEND is not defined. Surround non-used
15834 code by "#ifdef OLD_FONT" and "endif".
15835
15836 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15837 (uniscribe_open): Return value changed to font-object.
15838 Adjusted for the format change of font-object.
15839 (uniscribe_otf_capability): Adjusted for the change of struct font.
15840 (add_opentype_font_name_to_list): Don't downcase names.
15841 (uniscribe_font_driver): Adjusted for the change of struct
15842 font_driver.
15843
15844 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15845
15846 * dispnew.c (update_frame_1): Check if tty output is still valid
15847 before flushing it.
15848
15849 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15850
15851 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15852 to Gtk+ menus.
15853
15854 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15855
15856 * dired.c (file_name_completion): Tweak the code so as to always do it
15857 in a single pass. Tighten the scope of some variables.
15858
15859 * dired.c (Qdefault_directory): New var.
15860 (file_name_completion): Use it instead of Fexpand_file_name.
15861 (syms_of_dired): Initialize it.
15862
15863 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15864
15865 * fileio.c (double_dollars): Remove dead code.
15866
15867 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15868
15869 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15870 Mention w32-get-true-file-attributes in doc string.
15871
15872 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15873
15874 2008-05-09 Glenn Morris <rgm@gnu.org>
15875
15876 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15877 2008-04-23.
15878
15879 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15880
15881 Support for reporting owner and group of each file on MS-Windows:
15882 * dired.c (stat_uname, stat_gname): New functions, with special
15883 implementation for w32.
15884 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15885
15886 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15887 (dflt_group_name): New static variable.
15888 (dflt_group): Rename from the_group.
15889 (init_user_info): Init dflt_group fields. Get user's group name
15890 from LookupAccountSid.
15891 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15892 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15893 New initialization states.
15894 (globals_of_w32): Initialize them to zero. Initialize the default
15895 group name to "None".
15896 (GetFileSecurity_Name): New global var, the name of the function
15897 to call for GetFileSecurity.
15898 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15899 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15900 (get_file_security, get_security_descriptor_owner)
15901 (get_security_descriptor_group, is_valid_sid)
15902 (get_file_security_desc, get_rid, get_name_and_id)
15903 (get_file_owner_and_group): New functions.
15904 (stat): Use get_file_security_desc and get_file_owner_and_group to
15905 report the owner and primary group of each file. Don't ignore the
15906 high 32 bits of file's size, now that st_size is 64-bit wide.
15907 Fix test when to get true file attributes.
15908 (init_user_info): Use get_rid instead of equivalent inline code.
15909 (fstat): Don't ignore the high 32 bits of file's size.
15910
15911 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15912
15913 * image.c (png_load): Use correct bit-depth for setting background
15914 color.
15915
15916 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15917
15918 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15919 epa-hook.elc.
15920
15921 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15922
15923 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15924
15925 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15926
15927 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15928 because the original parameters are in pure storage now.
15929 (mac_window): Remove unused params. Update callers.
15930
15931 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15932
15933 * lread.c (substitute_object_recurse): Use lower-level primitives.
15934 Don't signal errors when traversing sub-char-tables.
15935 Don't loop over all the possible characters when traversing char-tables.
15936
15937 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15938 just like we do in print.c.
15939
15940 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15941
15942 * minibuf.c (Ftry_completion): Remove code left over from when we used
15943 scmp instead of Fcompare_strings.
15944
15945 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15946
15947 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15948
15949 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15950
15951 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15952 Create bitmap context in native byte order.
15953
15954 * macterm.c (XDrawLine)
15955 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15956 context in native byte order.
15957
15958 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15959
15960 * config.in: Regenerate.
15961
15962 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15963 New definitions for Image I/O support.
15964 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15965 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15966 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15967 (mac_data_provider_release_data, image_load_image_io)
15968 [USE_MAC_IMAGE_IO]: New functions.
15969 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15970 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15971 (init_image_func_pointer) [MAC_OSX]: Remove function.
15972 (image_load_quartz2d) [MAC_OSX]: Check availability of
15973 CGImageCreateWithPNGDataProvider at compile time.
15974 Use lowercase `false' for boolean constant.
15975 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15976 Use image_load_image_io.
15977 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15978 Don't check MyCGImageCreateWithPNGDataProvider.
15979 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15980 Don't call init_image_func_pointer.
15981
15982 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15983
15984 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15985 Make variable non-static.
15986 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15987 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15988
15989 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15990 (RED_FROM_ULONG): Mask off higher bits.
15991 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15992
15993 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15994 Include AvailabilityMacros.h.
15995 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15996 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15997
15998 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15999
16000 * chartab.c (Fset_char_table_range): If range is t, really set all
16001 chars to that value.
16002
16003 2008-05-03 Eli Zaretskii <eliz@gnu.org>
16004
16005 * dired.c (Ffile_attributes): Don't allow the device number become
16006 negative.
16007
16008 2008-05-02 Daiki Ueno <ueno@unixuser.org>
16009
16010 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16011
16012 2008-05-02 Juri Linkov <juri@jurta.org>
16013
16014 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16015 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16016 DEFAULT argument as a list of default values in docstrings.
16017
16018 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
16019
16020 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16021
16022 2008-05-01 Martin Rudalics <rudalics@gmx.at>
16023
16024 * dispnew.c (change_frame_size_1): Preserve small windows when
16025 shrinking frames by calling set_window_height|width with third
16026 arg 2.
16027
16028 * window.h (struct window): Replace field too_small_ok by field
16029 resize_proportionally.
16030
16031 * window.c (make_window): Initialize resize_proportionally.
16032 (enlarge_window): Temporarily set resize_proportionally to make
16033 sure that shrink_windows does scale the window proportionally.
16034 (shrink_windows): When window has resize_proportionally set try
16035 to shrink it proportionally by stealing from other windows.
16036 (struct saved_window, Fset_window_configuration)
16037 (compare_window_configurations): Handle resize_proportionally.
16038 (WINDOW_TOTAL_SIZE): New macro.
16039 (window_min_size, shrink_windows, size_window): Use it.
16040 (check_min_window_sizes): Remove. Invalid values of
16041 window-min-height|width are handled by window_min_size_2 now.
16042 (size_window, Fsplit_window, enlarge_window)
16043 (adjust_window_trailing_edge, grow_mini_window): Don't call
16044 check_min_window_sizes.
16045 (window_min_size_2, window_min_size_1, window_min_size):
16046 New argument safe_p for retrieving "safe" minimum sizes.
16047 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16048 (adjust_window_trailing_edge, grow_mini_window):
16049 Adjust arguments of window_min_size... functions.
16050 (shrink_windows): Argument min_size removed. New argument
16051 safe_p allows shrinking windows to their safe minimum sizes.
16052 Calculate minimum size and decide whether a window shall be
16053 deleted for each window individually.
16054 (size_window): When nodelete_p equals 2, tell shrink_windows to
16055 delete windows only if their new minimum size is no more safe.
16056 (shrink_window_lowest_first): Call window_min_size_1 to make
16057 sure to preserve modeline of bottom-most window when resizing
16058 the minibuffer.
16059 (Fset_window_configuration, Fcurrent_window_configuration)
16060 (compare_window_configurations): Do not handle
16061 window-min-height|width any more.
16062 (syms_of_window): Clarify window-min-height|width doc-strings.
16063
16064 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16065
16066 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16067 some more. Copy some of the code from Ftry_completions.
16068 Remove special case code that dates back to initial revision when the
16069 slash was only added when necessary and that can't trigger nowadays.
16070
16071 2008-04-27 Kenichi Handa <handa@m17n.org>
16072
16073 * font.c (font_prop_validate): Signal `error' instead of `font'.
16074
16075 2008-04-29 Jason Rumney <jasonr@gnu.org>
16076
16077 * w32fns.c (Fw32_battery_status): New defun.
16078 (syms_of_w32fns): Defsubr it.
16079
16080 2008-04-28 Andreas Schwab <schwab@suse.de>
16081
16082 * dired.c (file_name_completion): Fix another mixing of encoded
16083 and decoded names.
16084
16085 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
16086
16087 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16088
16089 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
16090
16091 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16092
16093 2008-04-27 Andreas Schwab <schwab@suse.de>
16094
16095 * dired.c (file_name_completion): Fix inappropriate mixing of
16096 encoded and decoded names.
16097
16098 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16099
16100 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16101
16102 2008-04-26 Eli Zaretskii <eliz@gnu.org>
16103
16104 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16105 2008-03-31, it's not needed anymore with `struct stat' definition
16106 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16107 for the same reasons.
16108
16109 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16110
16111 * m/sparc.h: Additional redefinitions for GNU/Linux.
16112
16113 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16114
16115 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16116 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16117 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16118 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16119 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16120 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16121 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16122 Likewise.
16123
16124 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16125 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16126 (mac_ax_number_of_characters): Add externs.
16127 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16128 [USE_MAC_TSM]: Likewise.
16129 (mac_handle_text_input_event) [MAC_OSX]:
16130 Handle kEventTextInputOffsetToPos for no active input area case.
16131 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16132 (mac_handle_document_access_event)
16133 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16134 (install_application_handler) [MAC_OSX]: Register handlers for
16135 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16136 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16137 Register mac_handle_document_access_event.
16138
16139 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16140 Make functions non-static.
16141
16142 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16143
16144 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16145 (read_file_name_completion_ignore_case, insert_default_directory)
16146 (Qdefault_directory): Move to minibuffer.el.
16147 (Fread_file_name): Call the new `read-file-name' instead.
16148
16149 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16150
16151 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16152 Make function non-static.
16153 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16154 Remove function.
16155 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16156 Move to mactoolbox.c.
16157 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16158
16159 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16160 (mac_rect_make): New macro.
16161
16162 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16163 instead of float.
16164 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16165 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16166 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16167 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16168 CGRectMake.
16169 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16170 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16171 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16172 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16173 instead of WindowRef in argument type.
16174 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16175 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16176 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16177 instead of DISPLAY. All uses changed.
16178 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16179 (x_calc_absolute_position): Simplify so as not to use
16180 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16181
16182 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16183 instead of WindowRef in argument type.
16184 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16185 [TARGET_API_MAC_CARBON]: Remove externs.
16186 (create_apple_event, mac_event_parameters_to_lisp)
16187 [TARGET_API_MAC_CARBON]: Add externs.
16188
16189 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16190 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16191 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16192 is clicked.
16193 (x_activate_menubar): Remove extern for saved_menu_event_location.
16194 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16195 Move from mac.c.
16196
16197 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16198
16199 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16200 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16201
16202 2008-04-23 Jason Rumney <jasonr@gnu.org>
16203
16204 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16205 attributes only for local files.
16206
16207 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16208 default to Qlocal.
16209
16210 2008-04-22 Juri Linkov <juri@jurta.org>
16211
16212 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16213 read-buffer-to-switch instead of using the letter "B".
16214
16215 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16216
16217 * fileio.c (Qdefault_directory): New variable.
16218 (Fread_file_name): Use it to pass `dir' to the completion functions.
16219
16220 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16221
16222 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16223
16224 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16225
16226 * keyboard.c (Vpre_help_message): Remove.
16227 (show_help_echo): Remove default C code.
16228
16229 * dired.c (directory_files_internal, file_name_completion):
16230 Only call ENCODE_FILE if the string is indeed decoded.
16231
16232 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16233
16234 * Makefile.in (TOOLKIT_DEFINES): Remove.
16235 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16236
16237 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16238
16239 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16240 (mactoolbox.o): New target.
16241
16242 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16243 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16244
16245 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16246 Use mac_set_frame_window_background instead of XSetWindowBackground.
16247 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16248 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16249 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16250 instead of SetWindowTitleWithCFString.
16251 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16252 Move function to mactoolbox.c.
16253 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16254 Use mac_set_window_modified instead of SetWindowModified.
16255 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16256 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16257 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16258 FrontNonFloatingWindow. Use mac_activate_window instead of
16259 ActivateWindow. Use mac_active_non_floating_window instead of
16260 ActiveNonFloatingWindow.
16261 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16262 Use mac_show_hourglass and mac_hide_hourglass.
16263 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16264 instead of GetGlobalMouse.
16265 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16266 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16267 Use mac_bring_window_to_front instead of BringToFront.
16268 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16269 mactoolbox.c.
16270 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16271 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16272 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16273 mactoolbox.c.
16274
16275 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16276 (XtPointer): Move typedef from macmenu.c.
16277 (enum button_type): Move enum from macmenu.c.
16278 (widget_value): Move typedef from macmenu.c.
16279 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16280 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16281 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16282 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16283 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16284 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16285 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16286 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16287 (Selection): Move typedef from macselect.c.
16288 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16289 macterm.c.
16290 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16291 (mac_is_window_collapsed, mac_bring_window_to_front)
16292 (mac_send_window_behind, mac_hide_window, mac_show_window)
16293 (mac_collapse_window, mac_front_non_floating_window)
16294 (mac_active_non_floating_window, mac_activate_window)
16295 (mac_move_window_structure, mac_move_window, mac_size_window)
16296 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16297
16298 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16299 (enum mac_menu_kind): Move enum to mactoolbox.c.
16300 (min_menu_id): Move variable to mactoolbox.c.
16301 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16302 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16303 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16304 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16305 [TARGET_API_MAC_CARBON]: Likewise.
16306 (XtPointer): Move typedef to macgui.h.
16307 (enum button_type): Move enum to macgui.h.
16308 (widget_value): Move typedef to macgui.h.
16309 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16310 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16311 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16312 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16313 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16314 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16315 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16316 (popup_activated_flag): Make variable non-static.
16317 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16318 (add_menu_item, fill_menu, dispose_menus):
16319 Move functions to mactoolbox.c.
16320 (restore_show_help_function, menu_target_item_handler)
16321 (install_menu_target_item_handler, mac_handle_dialog_event)
16322 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16323 [TARGET_API_MAC_CARBON]: Likewise.
16324 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16325 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16326 (find_and_call_menu_selection, name_is_separator): Make function
16327 non-static.
16328 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16329 to mactoolbox.c.
16330 (set_frame_menubar): Don't call install_menu_quit_handler.
16331 (menu_item_selection): New variable.
16332 (mac_menu_show): Use create_and_show_popup_menu.
16333 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16334 selection but set variable menu_item_selection. All uses changed.
16335 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16336 Call install_menu_quit_handler. Move to mactoolbox.c.
16337
16338 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16339 (Selection): Move typedef to macgui.h.
16340 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16341 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16342 Make variables non-static.
16343 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16344 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16345 Make functions non-static.
16346 (Vmac_service_selection) [MAC_OSX]: Likewise.
16347 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16348 (mac_valid_selection_target_p, mac_clear_selection)
16349 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16350 (mac_put_selection_value, mac_selection_has_target_p)
16351 (mac_get_selection_value, mac_get_selection_target_list)
16352 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16353 Move functions to mactoolbox.c.
16354 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16355 Likewise.
16356 (copy_scrap_flavor_data, mac_handle_service_event)
16357 (install_service_handler) [MAC_OSX]: Likewise.
16358 (syms_of_macselect) <Vmac_dnd_known_types>:
16359 Use mac_dnd_default_known_types.
16360
16361 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16362 Move to mactoolbox.c.
16363 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16364 (Fx_selection_owner_p): Add EXFUN.
16365 (install_window_handler, remove_window_handler, XSetWindowBackground):
16366 Remove externs.
16367 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16368 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16369 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16370 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16371 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16372 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16373 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16374 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16375 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16376 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16377 (mac_valid_selection_target_p, mac_clear_selection)
16378 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16379 (mac_put_selection_value, mac_selection_has_target_p)
16380 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16381 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16382 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16383 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16384 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16385 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16386 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16387 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16388 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16389
16390 * mactoolbox.c: New file.
16391
16392 2008-04-18 Jason Rumney <jasonr@gnu.org>
16393
16394 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16395
16396 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16397
16398 * character.c (Fmultibyte_char_to_unibyte):
16399 Return latin1 chars unchanged.
16400
16401 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16402 relocated if it points to `name'.
16403
16404 2008-04-17 Kenichi Handa <handa@m17n.org>
16405
16406 * data.c (Faset): Allow setting a multibyte character in an
16407 ASCII-only unibyte string.
16408
16409 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16410
16411 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16412
16413 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16414 done in config.h.
16415
16416 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
16417
16418 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16419 (Fchar_direction): Add usage in the docstring.
16420
16421 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
16422
16423 * keyboard.c (read_key_sequence): Remove always-true checks.
16424
16425 2008-04-14 Jason Rumney <jasonr@gnu.org>
16426
16427 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16428 compatibility struct, for better underline positioning.
16429
16430 2008-04-13 David Hansen <david.hansen@gmx.net>
16431
16432 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16433 string.
16434
16435 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16436
16437 * m/hp800.h (XUINT, XSET): Remove.
16438
16439 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
16440
16441 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16442 previous change.
16443
16444 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16445
16446 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16447 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16448
16449 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16450
16451 * keymap.h (map_keymap_canonical): Declare.
16452 * xmenu.c (single_keymap_panes): Use it.
16453
16454 2008-04-11 Glenn Morris <rgm@gnu.org>
16455
16456 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16457 set the target's value to that of the alias.
16458
16459 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16460
16461 * term.c (set_tty_color_mode): Left over typo.
16462
16463 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16464
16465 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16466 only after check for file name handler functions. Signal, when
16467 native functionality is not supported.
16468 (syms_of_fileio): Declare it unconditionally.
16469
16470 2008-04-10 Jason Rumney <jasonr@gnu.org>
16471
16472 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16473 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16474
16475 * w32.c (logon_network_drive): Also logon to remote drives that
16476 are mapped to drive letters.
16477
16478 2008-04-10 Glenn Morris <rgm@gnu.org>
16479
16480 * xdisp.c (truncate-partial-width-windows): Doc fix.
16481
16482 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16483
16484 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16485 Move functions to minibuffer.el.
16486 (syms_of_fileio): Don't declare them.
16487
16488 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16489
16490 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16491 (syms_of_minibuf): Remove its initialization.
16492
16493 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16494
16495 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16496
16497 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16498
16499 2008-04-09 Jason Rumney <jasonr@gnu.org>
16500
16501 * makefile.w32-in (distclean): Delete makefile too.
16502 (maintainer-clean): New target.
16503
16504 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16505
16506 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16507 for new font backend and composite cases.
16508
16509 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16510
16511 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16512 Most of the code moved to run_timers.
16513 (do_pending_atimers): Call run_timers.
16514 (run_timers): New function.
16515
16516 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16517 run atimers.
16518
16519 * process.c (wait_reading_process_output): The same as above.
16520
16521 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16522
16523 * minibuf.c (last_exact_completion): Remove variable.
16524 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16525 (complete_and_exit_1, complete_and_exit_2)
16526 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16527 (Fdisplay_completion_list, display_completion_list_1)
16528 (Fminibuffer_completion_help, Fself_insert_and_exit)
16529 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16530 minibuffer.el.
16531 (syms_of_minibuf): Remove corresponding initializations.
16532
16533 * keyboard.c (Qdeactivate_mark): New var.
16534 (command_loop_1): Use it to call `deactivate-mark'.
16535 (syms_of_keyboard): Initialize it.
16536
16537 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16538 to another frame.
16539 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16540 Don't call set_tty_color_mode.
16541 (store_frame_param): Reset previous_frame rather than call
16542 set_tty_color_mode.
16543 * term.c (set_tty_color_mode): Rewrite.
16544 * dispextern.h (set_tty_color_mode): New type.
16545 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16546
16547 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16548
16549 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16550 for generic chars, which do not exist any more in emacs-unicode.
16551
16552 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16553
16554 * coding.c (detect_coding_emacs_mule)
16555 (Ffind_operation_coding_system): Fix typo.
16556
16557 2008-04-08 Jason Rumney <jasonr@gnu.org>
16558
16559 * w32uniscribe.c (SNAME): Extract only symbol name.
16560
16561 * w32font.h (struct w32_metric_cache): New struct.
16562 (w32font_info): Use it.
16563 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16564 (CACHE_BLOCKSIZE): New constants.
16565
16566 * w32font.c (Qja, Qko, Qzh): New symbols.
16567 (syms_of_w32font): Initialise them.
16568 (font_matches_spec): Use them to filter by language.
16569 (recompute_cached_metrics): Remove function.
16570 (compute_metrics, clear_cached_metrics): New functions.
16571 (w32font_encode_char): Use them to manage metric cache.
16572 (w32font_text_extents): Cache metrics for all glyphs on demand.
16573 Delay converting glyph indices to WORD until needed.
16574 (w32font_open_internal): Initialize metric cache to empty.
16575 (registry_to_w32_charset): Charset should always be a symbol.
16576 (fill_in_logfont, list_all_matching_fonts): Family should
16577 always be a symbol.
16578
16579 2008-04-06 Jason Rumney <jasonr@gnu.org>
16580
16581 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16582 Give up if glyph indices not supported. Use uniscribe obtained
16583 ABC widths for individual metrics. Map glyph clusters back to
16584 characters using fClusterStart flag. Return number of glyphs
16585 produced, not chars processed.
16586 (uniscribe_shape): Map char at FROM to current glyph.
16587
16588 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16589
16590 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16591 Use SetMenuItemHierarchicalMenu.
16592
16593 2008-04-05 Jason Rumney <jasonr@gnu.org>
16594
16595 * image.c (pbm_load): Allow color values up to 65535.
16596 Throw an error if max_color_idx is outside the supported range.
16597 Report an error when image size is invalid.
16598 Read two bytes at a time when raw images have max_color_idx above 255.
16599
16600 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16601
16602 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16603 append "CCL: Quitted" when the CCL program is quitted.
16604 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16605
16606 * ccl.h (struct ccl_program): New member quit_silently.
16607
16608 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16609
16610 * search.c (compile_pattern_1): Treat non-nil and non-string of
16611 search-spaces-regexp as nil.
16612
16613 * minibuf.c (Fassoc_string): Tweak docstring.
16614
16615 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16616
16617 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16618 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16619 2008-03-14 to force inode be positive.
16620
16621 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16622 _S_* ones, since we now use our own sys/stat.h.
16623 (stat, fstat): Don't mangle the inode number.
16624 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16625
16626 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16627
16628 * frame.h (struct frame): Give one more bit to `visible' since we use
16629 values larger than 1 to indicate obscured frames on ttys.
16630
16631 * keymap.c (Qkeymap_canonicalize): New var.
16632 (Fmap_keymap_internal): New fun.
16633 (describe_map): Use keymap-canonicalize.
16634
16635 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16636 (Fundo_boundary): Set them.
16637 (syms_of_undo): Initialize them.
16638 (record_point): Use them instead of last_point_position*.
16639 (last_undo_buffer): Change type.
16640
16641 2008-04-04 Jason Rumney <jasonr@gnu.org>
16642
16643 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16644 (recompute_cached_metrics): Don't set ascent and descent per char.
16645
16646 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16647 (uniscribe_check_otf): Add GC protection before consing.
16648 Rearrange loop for counting features.
16649
16650 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16651
16652 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16653 buffer with byte-size of source buffer.
16654
16655 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16656
16657 * callint.c (Fcall_interactively): Handle temporary region even
16658 when shift-select-mode is off.
16659
16660 2008-04-03 Jason Rumney <jasonr@gnu.org>
16661
16662 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16663
16664 2008-04-03 Kenichi Handa <handa@m17n.org>
16665
16666 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16667 (CATEGORY_MASK_UTF_16): Likewise.
16668 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16669 binary file.
16670 (detect_coding): Add null-byte detection for a binary file.
16671 (detect_coding_system): Likewise.
16672
16673 2008-04-03 Jason Rumney <jasonr@gnu.org>
16674
16675 * w32uniscribe.c: New file.
16676
16677 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16678
16679 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16680
16681 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16682 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16683 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16684 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16685 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16686 (Qphonetic): New symbols.
16687 (syms_of_w32font): Initialize them.
16688 (font_supported_scripts): Use them.
16689 (w32font_list_family): List all charsets.
16690 (w32font_text_extents, recompute_cached_metrics): Fix metric
16691 calculations.
16692 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16693 Give opentype fonts their own format.
16694 (font_matches_spec): New arguments backend and logfont.
16695 Handle :otf spec for uniscribe backend.
16696 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16697 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16698
16699 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16700 font backend.
16701 (globals_of_w32fns): Initialize uniscribe font backend.
16702
16703 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16704 dependencies.
16705 (w32uniscribe.$(O)): New file to build.
16706 (FONT_OBJ): Include w32uniscribe.$(O).
16707 (LIBS): Add uniscribe libraries.
16708
16709 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16710
16711 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16712
16713 * callint.c (Vshift_select_mode): New var.
16714 (Finteractive): Document new ^ spec.
16715 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16716 is present.
16717
16718 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16719 (command_loop_1): Avoid running the direct display versions of
16720 forward-char and backward-char if shift-selection may occur.
16721 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16722 shift-translation takes place.
16723
16724 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16725 avoid clobbering by define-minor-mode.
16726
16727 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16728 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16729
16730 * syntax.c (Fforward_word): Add ^ interactive spec.
16731
16732 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16733 (Fscroll_right): Add ^ interactive spec.
16734
16735 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16736
16737 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16738
16739 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16740
16741 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16742
16743 2008-03-31 Juri Linkov <juri@jurta.org>
16744
16745 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16746
16747 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16748
16749 * gtkutil.c (xg_set_geometry): Fix indentation.
16750 (xg_resize_outer_widget): Remove.
16751 (x_wm_size_hint_off): Fix indentation.
16752 (xg_frame_set_char_size): Call flush_and_sync after
16753 gtk_window_resize.
16754 (x_wm_set_size_hint): Pass NULL as geometry window to
16755 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16756 Add menu bar and tool bar height to base height.
16757 (xg_update_frame_menubar, free_frame_menubar)
16758 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16759 (update_frame_tool_bar, free_frame_tool_bar):
16760 Change xg_resize_outer_widget to xg_frame_set_char_size.
16761
16762 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16763
16764 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16765 (Fdbus_call_method): New parameter TIMEOUT.
16766 (dbus-send-signal): Optimize UNGCPRO call.
16767
16768 2008-03-29 Juri Linkov <juri@jurta.org>
16769
16770 * window.c (Fdisplay_buffer): Move call to
16771 Vsplit_window_preferred_function out of conditions that check
16772 if window is eligible for vertical splitting.
16773 When Vsplit_window_preferred_function is non-nil, call it and use
16774 its non-nil return value as window. Otherwise, continue doing
16775 vertical splitting using Fsplit_window with arg horflag=nil.
16776 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16777 default value from `split-window' to nil.
16778
16779 2008-03-29 Juri Linkov <juri@jurta.org>
16780
16781 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16782 for interactive code letters 'b' and 'B'.
16783
16784 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16785
16786 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16787 multibyte string.
16788
16789 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16790
16791 * keyboard.c (pending_funcalls): New var.
16792 (timer_check): Run it.
16793 (syms_of_keyboard): Initialize it.
16794 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16795 (Vdelete_terminal_functions): New vars.
16796 (syms_of_terminal): Initialize them.
16797 (Fdelete_terminal): Run delete-terminal-functions.
16798 * xdisp.c (safe_eval): Rewrite.
16799 (safe_call2): New fun.
16800 * frame.c (Qdelete_frame_functions): New var.
16801 (syms_of_frame): Initialize it.
16802 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16803 * lisp.h (safe_call2, pending_funcalls): Declare.
16804
16805 2008-03-28 Andreas Schwab <schwab@suse.de>
16806
16807 * indent.c (Fmove_to_column): Move declaration before statements.
16808
16809 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16810
16811 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16812 (struct frame): Use bit fields for boolean vars.
16813
16814 * process.c (server_accept_connection): Simplify naming.
16815 (emacs_get_tty_pgrp): Use SDATA.
16816
16817 * coding.c (decode_coding_object): Fix last change.
16818
16819 2008-03-27 Jason Rumney <jasonr@gnu.org>
16820
16821 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16822
16823 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16824
16825 * charset.c (Fdefine_charset_internal): Change the way of
16826 registering charsets in Vcharset_order_list.
16827 (syms_of_charset): Make the charset `eight-bit' supplementary.
16828
16829 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16830
16831 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16832 operations, to avoid having the difference between pointers
16833 overflow.
16834
16835 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16836
16837 * indent.c (check_display_width): New fun.
16838 (scan_for_column): Use it.
16839
16840 * data.c (syms_of_data): Mark most-positive-fixnum and
16841 most-negative-fixnum as constants.
16842
16843 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16844
16845 * indent.c (scan_for_column): Extract from current_column_1.
16846 Merge with the same code from Fmove_to_column.
16847 (current_column_1, Fmove_to_column): Use it.
16848
16849 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16850
16851 * keymap.c (map_keymap_internal): New fun.
16852 (map_keymap): Use it.
16853 (Fmap_keymap_internal): New fun.
16854 (Fmap_keymap): Remove left-out test from before make_save_value.
16855
16856 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16857
16858 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16859 Use XCAR/XCDR.
16860
16861 * process.h (struct Lisp_Process): Remove filter_multibyte.
16862 * process.c (QCfilter_multibyte): Remove.
16863 (setup_process_coding_systems): Don't use filter_multibyte.
16864 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16865 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16866 (Fset_process_filter_multibyte): Change the coding-system to
16867 approximate the previous behavior.
16868 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16869 coding-system.
16870
16871 * coding.c (decode_coding_object): When not decoding into a buffer,
16872 obey the coding system's preference of (uni|multi)byte.
16873
16874 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16875
16876 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16877 every char is changed and has a different byte-length.
16878 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16879 Fix int -> EMACS_INT.
16880
16881 2008-03-23 David Hansen <david.hansen@gmx.net>
16882
16883 * dbusbind.c (xd_read_message): Remove extra copying of message
16884 strings. Check for NULL `interface' or `member'.
16885
16886 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16887
16888 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16889 cFileName a file name that includes `?' characters, use the 8+3
16890 alias in cAlternateFileName instead.
16891
16892 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16893
16894 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16895
16896 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16897
16898 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16899 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16900 work on current_buffer only instead (that was already the case
16901 for some of the code anyway).
16902 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16903 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16904 (SET_PT, SET_PT_BOTH): Adjust.
16905 * intervals.h (set_point, temp_set_point, set_point_both)
16906 (temp_set_point_both): Remove redundant declarations.
16907
16908 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16909
16910 * fileio.c (Finsert_file_contents):
16911 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16912 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16913 when buffer != current_buffer anyway.
16914
16915 2008-03-20 Andreas Schwab <schwab@suse.de>
16916
16917 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16918 as default.
16919
16920 2008-03-19 Jason Rumney <jasonr@gnu.org>
16921
16922 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16923 (syms_of_w32fns): Initialize them.
16924 (HOURGLASS_ID): New constant.
16925 (x_window_to_frame): Don't check hourglass_window.
16926 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16927 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16928 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16929 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16930 Only change the cursor if hourglass is not active.
16931 (Fx_create_frame): Initialize frame's current_cursor.
16932 (hourglass_atimer): Remove.
16933 (hourglass_started): New function.
16934 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16935 (show_hourglass): Adapt to w32, changing argument to frame.
16936
16937 * w32term.h (struct w32_output): Remove hourglass_window.
16938 Add current_cursor.
16939
16940 * eval.c (call_debugger, Fsignal):
16941 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16942 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16943 (Fexecute_extended_command, cancel_hourglass_unwind):
16944 * minibuf.c (read_minibuf):
16945 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16946
16947 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16948
16949 * window.c (run_funs): New fun.
16950 (run_window_configuration_change_hook): Use it to run the buffer-local
16951 and the global part of the hook.
16952
16953 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16954 (unwind_format_mode_line): Restore selected window.
16955 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16956
16957 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16958
16959 * editfns.c (Fchar_equal): Check they are valid characters.
16960
16961 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16962
16963 2008-03-17 Andreas Schwab <schwab@suse.de>
16964
16965 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16966 against a charset.
16967
16968 * lisp.h (Fbuffer_list): Declare.
16969
16970 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16971
16972 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16973 handlebox_widget is != 0.
16974
16975 2008-03-16 Juri Linkov <juri@jurta.org>
16976
16977 * callint.c (Fcall_interactively): For interactive code letters
16978 'b' and 'B' put the buffer list into the list of default "future"
16979 values of the minibuffer.
16980
16981 2008-03-16 Andreas Schwab <schwab@suse.de>
16982
16983 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16984 modifiers.
16985
16986 * regex.c (re_match_2_internal): Correct matching of a charset
16987 against latin-1 characters.
16988
16989 2008-03-16 Kenichi Handa <handa@m17n.org>
16990
16991 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16992 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16993 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16994 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16995 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16996 CHAR_STRING_ADVANCE.
16997 (produce_chars): Fix for the case that the source and the
16998 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16999 instead of CHAR_STRING_ADVANCE.
17000 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17001 STRING_CHAR_ADVANCE.
17002
17003 2008-03-15 Andreas Schwab <schwab@suse.de>
17004
17005 * regex.c (re_match_2_internal): Correct matching of eight bit
17006 characters in unibyte strings.
17007
17008 2008-03-15 Martin Rudalics <rudalics@gmx.at>
17009
17010 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17011 at end of range when it coincides with the end of the buffer.
17012
17013 2008-03-14 Eli Zaretskii <eliz@gnu.org>
17014
17015 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17016
17017 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17018
17019 2008-03-14 Jason Rumney <jasonr@gnu.org>
17020
17021 * editfns.c (initial_tz): New variable.
17022 (syms_of_editfns): Initialize it.
17023 (Fset_time_zone_rule): Set it when first called.
17024 Use it when TZSTRING is nil.
17025
17026 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17027 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17028 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17029 (globals_of_w32fns): Initialize them.
17030 (compute_tip_xy): Use them to position tooltips.
17031
17032 2008-03-14 Glenn Morris <rgm@gnu.org>
17033
17034 * emacs.c (main): Revert previous change.
17035 (standard_args): Revert -internal-script back to -scriptload,
17036 and remove the long-option form.
17037
17038 2008-03-13 Glenn Morris <rgm@gnu.org>
17039
17040 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17041 Remove option -enable-font-backend.
17042
17043 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17044
17045 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17046
17047 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17048
17049 * xterm.c (x_connection_closed): For GTK: If this is the last
17050 terminal just exit without closing the display.
17051
17052 2008-03-11 Jason Rumney <jasonr@gnu.org>
17053
17054 * w32font.c (w32font_full_name): Use floor to round.
17055
17056 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17057
17058 * sound.c (alsa_configure): Declare vol at beginning of block.
17059
17060 * fontset.c (Ffontset_info): Remove extra semicolon.
17061
17062 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17063
17064 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17065 size of resulting string.
17066
17067 2008-03-10 Jason Rumney <jasonr@gnu.org>
17068
17069 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17070
17071 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17072
17073 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17074 Don't pretend as if characters with display property haven't been
17075 consumed for string-replacing-string case.
17076
17077 2008-03-08 Kim F. Storm <storm@cua.dk>
17078
17079 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17080 (get_next_display_element, next_element_from_string)
17081 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17082
17083 2008-03-08 Andreas Schwab <schwab@suse.de>
17084
17085 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17086
17087 2008-03-06 Jason Rumney <jasonr@gnu.org>
17088
17089 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17090 when charset not specified. Only translate ANSI to unicode when
17091 font_type is truetype.
17092 (w32font_coverage_ok): New function.
17093 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17094
17095 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17096
17097 * lread.c (Fread_char): Resolve modifiers.
17098 (Fread_char_exclusive): Likewise.
17099
17100 * character.c (char_resolve_modifier_mask): New function.
17101 (char_string): Use char_resolve_modifier_mask.
17102 (Fchar_resolve_modifiers): New function.
17103 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17104 function.
17105
17106 2008-03-04 Jason Rumney <jasonr@gnu.org>
17107
17108 * makefile.w32-in: Always include w32font.c in the build.
17109 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17110
17111 2008-03-04 Andreas Schwab <schwab@suse.de>
17112
17113 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17114 (versionclean): Likewise.
17115
17116 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
17117
17118 * .cvsignore: Add oo.
17119
17120 2008-03-03 Andreas Schwab <schwab@suse.de>
17121
17122 * coding.c (decode_coding_object): Inhibit gap shrinking while
17123 decoding in place.
17124
17125 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17126
17127 * w32term.c: Remove unused include "gnu.h".
17128 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17129
17130 * gnu.h: Rename to ...
17131 * emacs-icon.h: ... this.
17132 * xterm.c: Use emacs-icon.h instead of gnu.h.
17133 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17134
17135 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
17136
17137 * w32font.c: Include math.h.
17138
17139 2008-03-03 Jason Rumney <jasonr@gnu.org>
17140
17141 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17142 Compute options separately.
17143 (w32font_open_internal): Set glyph_idx before caching metrics.
17144
17145 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17146 Define if system headers don't.
17147 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17148 (w32font_encode_char): Don't declare here.
17149
17150 * w32font.c (Quniscribe, QCformat): New symbols.
17151 (syms_of_w32font): Define them.
17152 (w32font_has_char): Indicate uncertainty.
17153 (w32font_encode_char): Encode as glyph point. Make static.
17154 (recompute_cached_metrics): New function.
17155 (w32font_open_internal): Use it. Set font to use glyph points
17156 initially. Set format based on type of font.
17157 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17158 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17159 on it. Set format based on information available here.
17160 (add_font_entity_to_list): Identify backend based on opentype_only.
17161
17162 2008-03-02 Andreas Schwab <schwab@suse.de>
17163
17164 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17165
17166 * coding.c (decode_coding_big5, produce_chars):
17167 Fix typos in last change.
17168
17169 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17170
17171 * gnu.h: New icon.
17172
17173 2008-03-02 Kenichi Handa <handa@m17n.org>
17174
17175 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17176 `dos', don't decode '\r' if that is the last in the source.
17177 (decode_coding_utf_16, decode_coding_emacs_mule)
17178 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17179 (decode_coding_raw_text, decode_coding_charset): Likewise.
17180 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17181
17182 2008-03-01 Jason Rumney <jasonr@gnu.org>
17183
17184 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17185
17186 2008-03-01 Kim F. Storm <storm@cua.dk>
17187
17188 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17189
17190 2008-03-01 Jason Rumney <jasonr@gnu.org>
17191
17192 * w32font.c (w32font_full_name): New function.
17193 (w32font_open_internal): Use it.
17194
17195 2008-03-01 Kim F. Storm <storm@cua.dk>
17196
17197 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17198
17199 2008-03-01 Jason Rumney <jasonr@gnu.org>
17200
17201 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17202
17203 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17204
17205 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17206 xg_frame_resized when the event is for the edit widget.
17207
17208 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17209
17210 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17211 set_char_size.
17212 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17213 operations on widgets here. Just set frame size if needed.
17214 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17215 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17216 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17217 the whole frame.
17218 (xg_create_tool_bar): Move attachment of the tool bar to
17219 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17220 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17221
17222 2008-03-01 Jason Rumney <jasonr@gnu.org>
17223
17224 * w32fns.c (w32_msg_pump): Disable debug code.
17225
17226 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17227
17228 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17229
17230 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17231
17232 * xdisp.c (next_overlay_string): Don't set
17233 overlay_strings_at_end_processed_p if we're currently reading from
17234 a display string.
17235
17236 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17237
17238 * xdisp.c (get_overlay_strings_1): Fix typo.
17239
17240 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17241
17242 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17243
17244 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17245
17246 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17247
17248 * xdisp.c (display_mode_element): Cancel the previous change.
17249 (decode_mode_spec): Likewise.
17250 (handle_auto_composed_prop): Don't make composition if it->string
17251 is a string.
17252
17253 2008-02-27 Kim F. Storm <storm@cua.dk>
17254
17255 * lisp.h (GLYPH): Change type from int to struct with separate char
17256 and face_id members.
17257 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17258 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17259 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17260 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17261 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17262 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17263 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17264 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17265 handle new Lisp glyph code encoding, either an integer or a cons.
17266
17267 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17268 (GLYPH_ALIAS): Delete.
17269 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17270 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17271 (GLYPH_FROM_CHAR): Replace macro by ...
17272 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17273
17274 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17275 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17276 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17277 (GLYPH_INVALID_P): New macro.
17278 (spec_glyph_lookup_face): Update prototype.
17279
17280 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17281 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17282 new glyph code encoding.
17283 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17284 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17285
17286 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17287 Adapt to new glyph type and new glyph code encoding.
17288
17289 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17290
17291 * indent.c (current_column, current_column_1, Fmove_to_column)
17292 (compute_motion): Adapt to new glyph code encoding.
17293
17294 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17295
17296 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17297
17298 * process.c (wait_reading_process_output): Check for window
17299 changes caused by timers.
17300 Suggested by Johan Bockgård.
17301
17302 2008-02-27 Glenn Morris <rgm@gnu.org>
17303
17304 * emacs.c (USAGE1): Add `--disable-font-backend'.
17305
17306 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17307
17308 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17309 is made to the buffer.
17310
17311 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17312
17313 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17314 (face_at_string_position):
17315 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17316 (face_at_string_position):
17317 * xdisp.c (display_string, next_overlay_change):
17318 * buffer.h (overlays_at):
17319 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17320 Update callers.
17321
17322 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
17323
17324 * editfns.c (Fformat): Doc fix.
17325
17326 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
17327
17328 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17329 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17330 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17331
17332 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17333
17334 * buffer.c (Fbuffer_swap_text): New function.
17335 (syms_of_buffer): Defsubr it.
17336
17337 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
17338
17339 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17340
17341 2008-02-25 Jason Rumney <jasonr@gnu.org>
17342
17343 * w32font.c (w32font_draw): Draw one character at a time when padding.
17344
17345 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17346
17347 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17348 Handle a nil arg. Use run_window_configuration_change_hook.
17349 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17350 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17351 Use run_window_configuration_change_hook.
17352
17353 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17354
17355 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17356 1-pixel width.
17357
17358 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17359
17360 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17361 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17362 if the glyph in the font is zero pixel with.
17363
17364 * dispextern.h (struct glyph_string): New member padding_p.
17365
17366 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17367
17368 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17369
17370 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17371
17372 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17373
17374 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17375
17376 2008-02-25 Jason Rumney <jasonr@gnu.org>
17377
17378 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17379
17380 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17381
17382 Allow fine-grained image-cache flushing.
17383 * dispextern.h (struct image): Add `dependencies' field.
17384 (clear_image_caches): Change arg to Lisp_Object.
17385 * image.c (make_image): Initialize `dependencies' field.
17386 (clear_image_cache): Change arg to allow fine-grained flushing.
17387 Perform the flush even if image-cache-eviction-delay is nil.
17388 (clear_image_caches): Change arg to Lisp_Object.
17389 (Fclear_image_cache): Expand meaning of the argument.
17390 (mark_image): Mark `dependencies' field.
17391 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17392 (lface_hash): Use XHASH rather than XFASTINT.
17393 (face_at_buffer_position): Fix int -> EMACS_INT position.
17394 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17395 (select_frame_for_redisplay): Remove code duplication.
17396 (redisplay_internal): Adapt arg to call to clear_image_caches.
17397
17398 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17399
17400 * s/vms4-0.h:
17401 * s/vms4-2.h:
17402 * s/vms4-4.h:
17403 * s/vms5-5.h: Remove, unused.
17404
17405 * s/irix5-2.h:
17406 * s/irix6-0.h:
17407 * s/riscos5.h:
17408 * s/mach-bsd4-3.h:
17409 * m/mips4.h: Remove files for obsolete systems.
17410
17411 * Makefile.in:
17412 * filelock.c:
17413 * unexmips.c:
17414 * m/hp9000s300.h:
17415 * m/iris4d.h:
17416 * s/aix3-1.h:
17417 * s/hpux.h:
17418 * s/msdos.h:
17419 * s/usg5-0.h:
17420 * s/usg5-2-2.h:
17421 * s/usg5-2.h:
17422 * s/usg5-3.h: Remove references to obsolete variables.
17423
17424 * s/irix5-0.h: Remove, move all the contents ...
17425 * s/irix6-5.h: ... here. Simplify.
17426 * config.in: Regenerate.
17427
17428 2008-02-24 Jason Rumney <jasonr@gnu.org>
17429
17430 * w32term.c (x_draw_glyph_string_background): Clear the background
17431 manually when cleartype is in use.
17432 (x_draw_glyph_string_foreground): Draw text transparently when
17433 cleartype is in use.
17434
17435 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17436 a font into it unless we have to.
17437
17438 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17439
17440 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17441 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
17442
17443 2008-02-18 Jason Rumney <jasonr@gnu.org>
17444
17445 * w32fns.c (Fw32_shell_execute): Encode parameters.
17446
17447 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17448
17449 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17450
17451 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17452
17453 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17454
17455 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17456
17457 * xterm.c (x_set_offset): Don't change the gravity if
17458 CHANGE_GRAVITY is -1.
17459
17460 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17461
17462 * fileio.c (auto_save_error_occurred): New var.
17463 (auto_save_error): Set it.
17464 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17465 error occurred.
17466
17467 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17468
17469 * w32.c (globals_of_w32): Add initializations for
17470 g_b_init_get_sid_sub_authority and
17471 g_b_init_get_sid_sub_authority_count.
17472
17473 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17474
17475 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17476 (font_parse_xlfd): Use them for sanity check.
17477 (Finternal_set_font_style_table): Make sure the table is bijective.
17478
17479 Consolidate the image_cache to the terminal struct.
17480 * termhooks.h (P_): Remove redundant def.
17481 (struct terminal): New field `image_cache'.
17482 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17483 of FRAME_X_IMAGE_CACHE.
17484 * xterm.h (struct x_display_info): Remove image_cache field.
17485 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17486 * w32term.h (struct w32_display_info): Remove image_cache field.
17487 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17488 * macterm.h (struct mac_display_info): Remove image_cache field.
17489 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17490 * xterm.c (x_term_init):
17491 * w32term.c (w32_term_init):
17492 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17493 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17494 Remove declarations.
17495 (clear_image_caches, mark_image_cache): New declarations.
17496 * xfaces.c (clear_face_cache):
17497 * xdisp.c (redisplay_internal): Use clear_image_caches.
17498 * image.c (clear_image_cache): Don't check that a frame is on
17499 a window-system before checking if it shares the same cache.
17500 (clear_image_caches): New function.
17501 (Fclear_image_cache): Use it.
17502 (mark_image): Move from allo.c.
17503 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17504 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17505 (mark_object): Don't call mark_image_cache for frames.
17506 (mark_terminals): Call mark_image_cache.
17507
17508 * lisp.h (Fdelete_terminal): Declare.
17509
17510 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17511 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17512 wrong_type_argument.
17513
17514 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17515
17516 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17517 malayalam.el, and tamil.el. Add sinhala.el.
17518
17519 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17520
17521 * xterm.c (x_connection_closed): Consolidate identical tests.
17522 (x_delete_terminal): Don't crash if called via x_connection_closed.
17523
17524 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17525
17526 * xdisp.c (decode_mode_spec): New arg string.
17527 (display_mode_element): Adjust for the above change.
17528
17529 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17530
17531 * callint.c (Fcall_interactively): Use AREF.
17532
17533 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17534
17535 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17536
17537 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17538
17539 * xfns.c (Fx_show_tip): Set string to " " if empty.
17540
17541 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17542
17543 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17544 with Qt.
17545
17546 2008-02-17 Kenichi Handa <handa@m17n.org>
17547
17548 * ftfont.c (ftfont_shape): Return Lispy number.
17549
17550 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17551 for GCs.
17552 (Finternal_set_font_selection_order): Call font_update_sort_order
17553 only when enable_font_backend is set.
17554 (realize_x_face): Set face->font_info to that of default face only
17555 when enable_font_backend is set.
17556
17557 * xdisp.c (handle_composition_prop): Set it->c to the fist
17558 character of the composed region.
17559 (fill_composite_glyph_string): Set base_face->font_info to
17560 s->font_info. Get a face for ascii from base_face->ascii_face.
17561 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17562 with a face already decided.
17563 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17564 non-negative.
17565 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17566 call font_prepare_composition unconditionally.
17567
17568 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17569
17570 * xterm.h (struct x_display_info): New member font.
17571
17572 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17573 (x_set_mouse_face_gc, x_new_font): Likewise.
17574 (x_term_init): Setup display_info->font.
17575 (x_delete_terminal): Free display_info->font.
17576
17577 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17578
17579 * ftxfont.c (ftxfont_default_fid): Delete it.
17580 (ftxfont_open): Set xfont->fid to 0.
17581 (ftxfont_end_for_frame): Clear data specific to the frame and the
17582 font-driver.
17583
17584 * xftfont.c (xftfont_default_fid): Delete it.
17585 (xftfont_open): Set xfont->fid to 0.
17586
17587 * fontset.c (FONTSET_OBJLIST): New macro.
17588 (fontset_find_font): Update font-object list of the fontset.
17589 (free_realized_fontset): New function.
17590 (free_face_fontset): Call free_realized_fontset.
17591 (Ffont_info): Call font_close_object only when enable_font_backend
17592 is set.
17593
17594 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17595 [HAVE_NTGUI]: Include w32term.h.
17596 [MAC_OS]: Include macterm.ch.
17597 (font_otf_ValueRecord): Use make_number.
17598 (font_finish_cache): Fix handling of reference count.
17599 (font_clear_cache): Update num_fonts.
17600 (font_open_entity): Update smallest_char_width and
17601 smallest_font_height of the frame.
17602 (font_close_object): Update num_fonts.
17603 (Fclear_font_cache): Fix finding the target cache data.
17604
17605 2008-02-16 Glenn Morris <rgm@gnu.org>
17606
17607 * fontset.c (Finternal_char_font): Fix compilation warning.
17608
17609 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17610
17611 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17612 instead of char arrays. Enlarge the size of array passed to
17613 get_token_information.
17614
17615 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17616 warnings.
17617
17618 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17619
17620 * .gdbinit: Don't set `args', it breaks gdb --args.
17621
17622 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17623
17624 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17625 within a narrowed buffer.
17626
17627 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17628
17629 * coding.c (decode_coding_object, encode_coding_object):
17630 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17631
17632 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17633
17634 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17635 hardcoding 1.
17636 (detect_coding_system):
17637 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17638 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17639 * insdel.c (insert_from_gap):
17640 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17641 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17642 (string_to_multibyte):
17643 * character.c (chars_in_text, multibyte_chars_in_text):
17644 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17645
17646 * character.h (FETCH_STRING_CHAR_ADVANCE)
17647 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17648 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17649 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17650
17651 * casefiddle.c (casify_region): Only call after-change and composition
17652 functions on the part of the region that was changed.
17653
17654 * keyboard.c (read_avail_input):
17655 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17656
17657 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17658
17659 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17660 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17661
17662 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17663
17664 * w32menu.c (push_submenu_start, push_submenu_end)
17665 (push_left_right_boundary, push_menu_pane, push_menu_item):
17666 * keyboard.c (read_key_sequence): Don't pass args with side effects
17667 to AREF, it fails when compiling with -DENABLE_CHECKING.
17668
17669 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17670
17671 * Makefile.in (${lispsource}international/charprop.el):
17672 Delete this target.
17673
17674 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17675 emacs-unicode-2.
17676
17677 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17678
17679 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17680
17681 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17682
17683 * frame.c (Qnoelisp): New symbol.
17684 (syms_of_frame): Initialize it.
17685 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17686 harmless Elisp code, from a strong `force' from x_connection_closed.
17687 * frame.h (Qnoelisp): Declare.
17688 * xterm.c (x_connection_closed): Pass `noelisp'.
17689
17690 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17691 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17692 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17693 rather than `int' for the type of `type'.
17694
17695 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17696
17697 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17698
17699 * Makefile.in (GNUC): Remove support for gcc-1.x.
17700
17701 2008-02-10 Richard Stallman <rms@gnu.org>
17702
17703 * lisp.h (ASET): Use AREF, not ASLOT.
17704
17705 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17706
17707 * lisp.h (ASET): Check bounds.
17708
17709 2008-02-10 Glenn Morris <rgm@gnu.org>
17710
17711 * buffer.c (mode-name): Doc fix.
17712
17713 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17714
17715 * Makefile.in:
17716 * emacs.c:
17717 * gmalloc.c:
17718 * keyboard.c:
17719 * lisp.h:
17720 * m/ibm370aix.h:
17721 * process.c:
17722 * regex.c:
17723 * s/hpux.h:
17724 * sysdep.c:
17725 * sysselect.h:
17726 * systty.h:
17727 * unexec.c:
17728 * w32term.c:
17729 * xsmfns.c:
17730 * xterm.c: Remove code that deals with obsolete variables.
17731
17732 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17733
17734 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17735 nothing else needs it anymore.
17736
17737 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17738
17739 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17740 instead of unibyte_char_to_multibyte.
17741
17742 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17743
17744 * s/gnu-linux.h: Remove commented out code.
17745
17746 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17747
17748 * Makefile.in: Update what RMS says about using autoconf.
17749 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17750 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17751 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17752 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17753
17754 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17755
17756 * keymap.c (Fkey_description): Move side effect outside of macro call.
17757
17758 * xfaces.c (Finternal_make_lisp_face):
17759 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17760
17761 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17762 (syms_of_fontset): Use ASET.
17763
17764 * fns.c (concat): Move side effect outside of macro call.
17765 (hash_clear): Use ASET.
17766
17767 2008-02-08 Richard Stallman <rms@gnu.org>
17768
17769 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17770 If FORCE, and frame has a surrogate minibuffer for another frame,
17771 delete the other frame first.
17772
17773 2008-02-07 Timo Savola <timo.savola@iki.fi>
17774
17775 * xterm.c (x_detect_focus_change): Handle embed client message.
17776 (handle_one_xevent): Ditto.
17777 (handle_one_xevent): If embedded and we get a button press/release,
17778 request focus.
17779 (xembed_set_info, xembed_send_message): New functions.
17780 (x_make_frame_visible): Call xembed_set_info if embedded.
17781 (x_make_frame_invisible): Call xembed_set_info if embedded.
17782 (x_term_init): Initialize Xatom_XEMBED.
17783 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17784 (x_iconify_frame): Ditto.
17785
17786 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17787 (enum xembed_info, enum xembed_message, enum xembed_focus)
17788 (enum xembed_modifier, enum xembed_accelerator): New.
17789 (xembed_set_info, xembed_send_message): Declare.
17790 (FRAME_X_EMBEDDED_P): New.
17791
17792 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17793 gtk_plug_new.
17794
17795 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17796 window ID of a frame.
17797 (x_window): Reparent frame if embedded.
17798 (Fx_create_frame): Don't set border width if embedded.
17799
17800 * emacs.c (USAGE3): Add --parent-id.
17801 (standard_args): Ditto.
17802
17803 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17804
17805 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17806
17807 2008-02-07 Jim Meyering <meyering@redhat.com>
17808
17809 Use "do...while (0)", not "if (1)...else" in macro definitions.
17810 The latter provokes a warning from gcc about the empty else, when
17811 followed by ";". Also, without that trailing semicolon, it would
17812 silently swallow up any following statement.
17813 * syntax.h (SETUP_SYNTAX_TABLE)
17814 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17815 * buffer.h (DECODE_POSITION): Likewise.
17816 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17817 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17818 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17819 (FETCH_CHAR_ADVANCE): Likewise.
17820 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17821
17822 2008-02-07 Jim Meyering <meyering@redhat.com>
17823
17824 * lread.c [lint]: Don't include <sys/inode.h>.
17825
17826 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17827
17828 * xselect.c (x_handle_dnd_message):
17829 * xmenu.c (digest_single_submenu, xmenu_show):
17830 * xdisp.c (with_echo_area_buffer_unwind_data)
17831 (format_mode_line_unwind_data, unwind_format_mode_line)
17832 (display_menu_bar):
17833 * eval.c (Ffetch_bytecode):
17834 * doc.c (store_function_docstring):
17835 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17836 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17837 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17838
17839 2008-02-07 Kenichi Handa <handa@m17n.org>
17840
17841 * ftxfont.c (ftxfont_open): Don't set
17842 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17843
17844 * ftfont.c (ftfont_open): Fix previous change.
17845
17846 2008-02-06 Jason Rumney <jasonr@gnu.org>
17847
17848 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17849 Use cached metrics for ASCII characters.
17850 (w32font_open_internal): Don't set font's owning_frame.
17851 Cache metrics for ASCII characters.
17852
17853 * w32font.h (struct w32font_info): Add ascii_metrics.
17854 Remove owning_frame.
17855
17856 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17857
17858 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17859 to negative value.
17860
17861 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17862
17863 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17864
17865 * charset.c (syms_of_charset): Set QCtest and Qeq.
17866
17867 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17868
17869 * process.c (Fstart_process):
17870 * callproc.c (Fcall_process): Handle the case where
17871 Funhandled_file_name_directory returns nil.
17872
17873 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17874 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17875 * font.c (check_gstring): Use them and AREF to access the vector before
17876 we know it's really a gstring.
17877 (Ffont_shape_text): Fix typo.
17878 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17879
17880 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17881 Declare.
17882
17883 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17884
17885 2008-02-05 Jason Rumney <jasonr@gnu.org>
17886
17887 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17888 Set smallest_font_height and smallest_char_width in display info.
17889
17890 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17891
17892 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17893
17894 2008-02-05 Miles Bader <miles@gnu.org>
17895
17896 * xfaces.c (get_lface_attributes, merge_named_face)
17897 (lookup_named_face, lookup_derived_face, realize_named_face):
17898 Revert 2008-02-01 change by cyd@stupidchicken.com.
17899
17900 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17901
17902 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17903 fallback fonts.
17904 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17905
17906 2008-02-04 Jason Rumney <jasonr@gnu.org>
17907
17908 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17909 set full_name.
17910 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17911
17912 2008-02-03 Jason Rumney <jasonr@gnu.org>
17913
17914 * makefile.w32-in (OBJ1): Include font.o here.
17915 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17916
17917 2008-02-02 Jason Rumney <jasonr@gnu.org>
17918
17919 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17920
17921 2008-02-01 Jason Rumney <jasonr@gnu.org>
17922
17923 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17924
17925 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17926
17927 2008-02-01 Andreas Schwab <schwab@suse.de>
17928
17929 * Makefile.in (shortlisp, lisp): Update for rename of
17930 ../lisp/language/myanmar.el.
17931
17932 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17933
17934 * xfaces.c (get_lface_attributes): Delete function.
17935 (merge_named_face, lookup_named_face, lookup_derived_face)
17936 (realize_named_face): Call lface_from_face_name directly, and use
17937 the fact that merge_face_vectors does not alter its FROM argument.
17938
17939 2008-02-01 Jason Rumney <jasonr@gnu.org>
17940
17941 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17942 input in the default locale. Handle non-Unicode multibyte input.
17943
17944 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17945
17946 * fontset.c (reorder_font_vector): Exclude nil elements from the
17947 font group. Don't try multiple fonts.
17948 (fontset_font): Adjust for the above change.
17949 (Finternal_char_font): Return nil if the found font doesn't
17950 contain the character ch.
17951
17952 * Makefile.in (lisp, shortlisp): Add cham.el.
17953
17954 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17955
17956 * font.h (FONTP): Make it return 1 also for a font-object.
17957
17958 * .gdbinit (xfontset): New function.
17959
17960 * font.c (font_find_for_lface): Check if the character C is
17961 supported or not only for the first font.
17962
17963 * fontset.c (reorder_font_vector): Fix typo.
17964 (fontset_find_font): Don't add a font-spec specifying a script.
17965 Use 0 (not Qt) for the indication of empty font-group. Change the
17966 format of RFONT-DEF. Return Qt if no font in the font-group
17967 support the character.
17968 (fontset_font): Adjust for the above change. If no font was
17969 found the character, remember that.
17970 (face_for_char): Adjust for the change of RFONT-DEF.
17971 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17972 no font for the target.
17973 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17974
17975 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17976
17977 * font.c (font_load_for_face): Handle the case that the font in
17978 face->lface is a string.
17979
17980 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17981
17982 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17983
17984 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17985
17986 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17987 Fix previous change. If the frame is not on a window system,
17988 signal an error.
17989
17990 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17991
17992 * coding.c (decode_coding_object, encode_coding_object): Adjust
17993 marker positions after conversion.
17994
17995 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17996
17997 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17998
17999 * font.c (font_find_for_lface): Fix the handling of the return
18000 value of font_has_char.
18001 (Ffont_shape_text): Fix previous change.
18002
18003 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18004 (fontset_ref_and_range): Delete it.
18005 (fontset_find_font): Call char_table_ref_and_range instead of
18006 FONTSET_REF_AND_RANGE.
18007 (make_fontset): Don't setup font groups of Latin here.
18008 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18009 (new_fontset_from_font): Make the specified font the default for
18010 all Latin characters.
18011
18012 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18013
18014 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18015 is on a window system before accessing the fontset of the frame.
18016
18017 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18018
18019 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18020
18021 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18022 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18023
18024 * font.c (Ffont_shape_text): If the font driver doesn't have a
18025 shaper function, make zero-width glyphs to have at least one-pixel
18026 width. Fix setting of `to' field of glyphs.
18027
18028 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18029
18030 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18031 glyphs.
18032
18033 * font.h (struct font_driver): Improve docstring of member `shape'.
18034
18035 2008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * composite.c (syms_of_composite): Fix docstring of
18038 auto-composition-function.
18039
18040 * font.h (LGLYPH_SIZE): New macro.
18041
18042 * font.c (Ffont_fill_gstring): Stop filling when a character not
18043 supported by the font is found.
18044 (Ffont_shape_text): When a shape callback function returns nil,
18045 try at most two more times with larger gstring.
18046 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18047
18048 * xdisp.c (handle_auto_composed_prop): Change the argument to
18049 auto-composition-function.
18050
18051 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18052 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18053 Lispy glyph and store it in the lgstring.
18054
18055 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18056
18057 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18058
18059 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18060
18061 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18062
18063 * fontset.c (Vfont_encoding_charset_alist): New variable.
18064 (syms_of_fontset): DEFVAR it.
18065 (reorder_font_vector, fontset_find_font): Optimize for the case of
18066 no need of reordering.
18067 (face_for_char): Map the charset property by
18068 Vfont_encoding_charset_alist.
18069
18070 2008-02-01 Jason Rumney <jasonr@gnu.org>
18071
18072 * w32font.c (logfonts_match): Don't check adstyle here.
18073 (font_matches_spec): Check here against physical font instead.
18074 (add_font_entity_to_list): Avoid some substitutions.
18075
18076 * font.c (font_parse_fcname): Default weight and slant to normal.
18077 (font_score): Prefer normal fonts if weight or slant unspecified.
18078 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18079 match freetype scores.
18080
18081 2008-02-01 Jason Rumney <jasonr@gnu.org>
18082
18083 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18084 font, as it may have been deleted.
18085 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18086 most common hyphenless variation.
18087 (logfonts_match): Check generic family.
18088 (font_matches_spec): Don't check generic family here.
18089 (fill_in_logfont): Set generic family based on adstyle.
18090
18091 * w32font.h (w32font_get_cache): Update declaration.
18092
18093 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18094
18095 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18096
18097 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18098 If none of the new drivers are available, call font_update_drivers
18099 with the old drivers.
18100
18101 * w32font.c (w32font_get_cache): Adjust the argument type.
18102
18103 * xfont.c (xfont_get_cache): Adjust the argument type.
18104
18105 * font.h (struct font_driver): Change argument type of get_cache.
18106
18107 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18108
18109 * font.c (Ffont_get): Fix arguments to Fassoc.
18110 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18111 (font_clear_cache): New function.
18112 (font_list_entities, font_matching_entity): Use font_get_cache.
18113 (font_update_drivers): Call font_clear_cache when finishing a driver.
18114
18115 * fontset.c (fontset_find_font): Fix previous change.
18116
18117 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18118
18119 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18120 dpyinfo->font_table.
18121 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18122 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18123
18124 * font.c (font_at): Handle the case that the arg C is negative.
18125 Handle the unibyte case.
18126 (Ffont_at): Call font_at with the arg C -1.
18127
18128 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18129 the position here, and call font_at with the arg C -1.
18130 Don't check the range of the existing composition at the point.
18131
18132 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18133
18134 * fontset.c (fontset_add): New args charset_id and family.
18135 Change caller.
18136 (load_font_get_repertory, fontset_find_font): Assume that
18137 font_spec is always a font-spec object.
18138 (Fset_fontset_font): Always store a font-spec object in a fontset.
18139
18140 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18141 instead of get_property_and_range.
18142
18143 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18144
18145 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18146 (xftfont_open): Don't keep locking face.
18147 (xftfont_close): Don't unlock face.
18148 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18149
18150 * fontset.c (fontset_find_font): Don't prefer a font of
18151 supplementary charset.
18152
18153 2008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18156 script, langsys_tag to langsys, new member script.
18157 (OTF_TAG_STR): Terminate by '\0'.
18158 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
18159 listing to the script specified in that property. Fix arg to
18160 OTF_check_features.
18161
18162 2008-02-01 Jason Rumney <jasonr@gnu.org>
18163
18164 * w32font.h: New file.
18165
18166 * w32font.c: Include it.
18167 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18168 (w32font_open): Set owning_frame.
18169 (w32font_text_extents): Use owning_frame.
18170 (struct font_callback_data): Add opentype_only field.
18171 (add_font_entity_to_list): Use it to filter fonts.
18172 Don't check against full name.
18173 (w32font_list_internal): New function.
18174 (w32font_list): Use it.
18175 (w32font_match_internal): New function.
18176 (w32font_match): Use it.
18177 (w32font_open_internal): New function.
18178 (w32font_open): Use it.
18179 (w32font_get_cache, w32font_close, w32font_has_char)
18180 (w32font_encode_char, w32font_text_extents, w32font_draw):
18181 Make non-static.
18182
18183 * makefile.w32-in (w32font.o): Depend on w32font.h.
18184
18185 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18186
18187 * charset.c (Fdefine_charset_internal): Record a supplementary
18188 charset at the tail of Vcharset_order_list.
18189
18190 * font.c (Ffont_shape_text): Fix the return value.
18191
18192 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18193
18194 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18195
18196 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18197
18198 * ftfont.c (struct OpenTypeSpec): New struct.
18199 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18200 (ftfont_get_open_type_spec): New function.
18201 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18202
18203 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18204
18205 2008-02-01 Jason Rumney <jasonr@gnu.org>
18206
18207 * w32font.c (add_font_entity_to_list): Compare only the beginning
18208 of full name.
18209
18210 2008-02-01 Kenichi Handa <handa@m17n.org>
18211
18212 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18213 Never return HANDLED_RECOMPUTE_PROPS.
18214
18215 2008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * font.c (font_gstring_produce): Delete it.
18218
18219 * composite.h (COMPOSITION_METHOD):
18220 Handle COMPOSITION_WITH_GLYPH_STRING.
18221
18222 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18223
18224 * xfont.c (Qx): Delete.
18225 (syms_of_xfont): Don't initialize Qx.
18226
18227 * composite.h (enum composition_method):
18228 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18229
18230 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18231
18232 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18233 (choose_face_font): Accept new form of font-spec.
18234
18235 * frame.h (font_driver_list): Declare it unconditionally.
18236 (struct frame): Define members font_driver_list and font_data_list
18237 unconditionally.
18238
18239 * fontset.c: Include "font.h" unconditionally.
18240 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18241 (Fset_fontset_font): Accept a font-spec object.
18242
18243 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18244 PIXEL_SIZE part a wild card.
18245
18246 * dispextern.h (struct glyph_string): Define members clip and
18247 num_clips unconditionally.
18248 (struct face): Define members font_info and extra unconditionally.
18249
18250 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18251 ftfont_info only when HAVE_LIBOTF is defined.
18252
18253 2008-02-01 Andreas Schwab <schwab@suse.de>
18254
18255 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18256 and end.
18257
18258 2008-02-01 Jason Rumney <jasonr@gnu.org>
18259
18260 * w32font.c (w32font_driver): Add new fields.
18261
18262 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18263
18264 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18265 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18266 (LIBES): Add @M17N_FLT_CFLAGS@.
18267
18268 * composite.c (compose_text): Don't treat the new style
18269 composition specially.
18270
18271 * emacs.c (main): Call syms_of_font unconditionally.
18272
18273 * font.h (FONT_ENTITY_NOT_LOADABLE)
18274 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18275 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18276 (struct font_driver): New member shape.
18277 (font_registry_charsets): Extern it.
18278 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18279 (font_otf_capability, font_drive_otf): Delete their externs.
18280
18281 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18282 (font_charset_alist, font_registry_charsets): Move from xfont.c
18283 and rename.
18284 (font_prop_validate_otf): New function.
18285 (font_property_table): Register it for QCotf.
18286 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18287 (font_drive_otf): Delete.
18288 (font_prepare_composition): New arg F. Adjust for the change of
18289 lispy gstring.
18290 (font_find_for_lface): New arg C.
18291 (font_load_for_face): Adjust for the change of font_find_for_lface.
18292 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18293 lispy gstring.
18294 (Ffont_shape_text): New function.
18295 (Fopen_font): If the font size is not given, use 12-pixel.
18296 (Ffont_at): New arg STRING.
18297 (syms_of_font): Initalize font_charset_alist.
18298 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18299 conditionally.
18300
18301 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18302 fonts of the same font-spec. Change the format of RFONT-DEF.
18303 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18304 Adjust for the change of RFONT-DEF.
18305 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18306
18307 * ftfont.h: New file.
18308
18309 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18310 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18311 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18312 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18313 font_otf_capability and font_drive_otf, set ftfont_shape.
18314 (ftfont_list): Adjust for the change of :otf property value.
18315 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18316 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18317 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18318 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18319 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18320 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18321
18322 * w32term.c (x_draw_composite_glyph_string_foreground):
18323 Adjust for the change of lispy gstring.
18324
18325 * xdisp.c (handle_composition_prop): Adjust for the change of
18326 lispy gstring. Call a function for auto-composition with the
18327 third arg it->window.
18328 (fill_composite_glyph_string): Adjust for the change of lispy string.
18329 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18330
18331 * xfaces.c (set_font_frame_param): Adjust for the change of
18332 font_find_for_lface.
18333
18334 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18335 (xfont_registry_charsets): Likewise. Change caller.
18336 (syms_of_xfont): Don't handle x_font_charset_alist.
18337
18338 * xftfont.c: Include "ftfont.h".
18339 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18340 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18341 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18342 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18343 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18344 Set xftfont_driver.shape to xftfont_shape.
18345
18346 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18347 the change of lispy gstring.
18348
18349 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18350
18351 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18352
18353 2008-02-01 Jason Rumney <jasonr@gnu.org>
18354
18355 * w32font.c (w32font_draw): Fill background manually.
18356
18357 2008-02-01 Jason Rumney <jasonr@gnu.org>
18358
18359 * font.c (Qfontp): Remove unused symbol.
18360 (QCantialias): New symbol.
18361 (syms_of_font): Define it.
18362 (font_property_table): Set a validator for QCantialias.
18363
18364 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18365 Define if not already.
18366 (QCfamily): Share with xfaces.c.
18367 (Qstandard, Qsubpixel, Qnatural): New symbols.
18368 (syms_of_w32font): Define them. Don't define QCfamily here.
18369 (w32_antialias_type, lispy_antialias_type): New functions.
18370 (w32_enumfont_pattern_entity): New arg requested_font.
18371 Set antialias parameter if non-default was requested.
18372 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18373
18374 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18375
18376 * lread.c (read1): Undo the previous change.
18377
18378 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18379
18380 * frame.c (Fdelete_frame): Call font_update_drivers only when
18381 USE_FONT_BACKEND is defined.
18382
18383 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18384
18385 * font.h (struct font_bitmap): New member bits_per_pixel.
18386 (struct font_driver): New members start_for_frame and end_for_frame.
18387 (struct font_data_list): New struct.
18388 (font_put_frame_data, font_get_frame_data): Extern them.
18389
18390 * frame.h (struct frame): New member font_data_list.
18391
18392 * font.c (font_update_drivers): Call driver->start_for_frame and
18393 driver->end_for_frame at proper timings.
18394 (font_put_frame_data, font_get_frame_data): New functions.
18395 (Ffont_spec): Add usage in the docstring.
18396
18397 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18398 (Fdelete_frame): Call font_update_drivers.
18399
18400 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18401 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18402 (xftfont_get_xft_draw): New function.
18403 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18404 (xftfont_end_for_frame): New function.
18405 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18406
18407 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18408 Change argument. Cache GCs in the per-frame data.
18409 (struct ftxfont_frame_data): New struct.
18410 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18411 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18412 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18413 (ftxfont_end_for_frame): New function.
18414 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18415
18416 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18417
18418 2008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * xselect.c (Vselection_coding_system)
18421 (Vnext_selection_coding_system): Delete them.
18422 (syms_of_xselect): Don't declare selection-coding-system and
18423 next-selection-coding-system. They are declared in select.el.
18424
18425 2008-02-01 Jason Rumney <jasonr@gnu.org>
18426
18427 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18428
18429 * w32fns.c: Include imm.h.
18430 (get_composition_string_fn, get_ime_context_fn): New optional
18431 system functions.
18432 (globals_of_w32fns): Load them from imm32.dll.
18433 (ignore_ime_char): New flag.
18434 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18435 WM_IME_ENDCOMPOSITION messages.
18436
18437 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18438 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18439
18440 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18441
18442 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18443 (READCHAR_REPORT_MULTIBYTE): New macro.
18444 (readchar): New 2nd arg MULTIBYTE.
18445 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18446 Make symbol's name multibyte according to the multibyteness of the
18447 source.
18448
18449 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18450
18451 * xfaces.c (face_for_overlay_string): Call lookup_face with
18452 correct arguments (fix of synching with the trunk).
18453
18454 2008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18457 (font_prop_validate_non_neg, font_prop_validate_spacing):
18458 Delete argument prop_index.
18459 (font_property_table): Change arguments to validater. Change Callers.
18460 (font_lispy_object): Delete.
18461 (font_at): Use font_find_object instead fo font_lispy_object.
18462
18463 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18464
18465 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18466 and file names.
18467
18468 2008-02-01 Jason Rumney <jasonr@gnu.org>
18469
18470 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18471 (font_matches_spec): Remove debug output.
18472 (add_font_entity_to_list): Avoid using substituted fonts.
18473
18474 2008-02-01 Jason Rumney <jasonr@gnu.org>
18475
18476 * doc.c (Fsnarf_documentation):
18477 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18478
18479 2008-02-01 Miles Bader <miles@gnu.org>
18480
18481 * dispextern.h (struct glyph_row): Only define "clip" field if
18482 HAVE_WINDOW_SYSTEM is defined.
18483
18484 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18485
18486 Fix up multi-tty merge.
18487
18488 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18489 and indentation.
18490
18491 * xfaces.c (free_realized_face, clear_face_gcs):
18492 Include font_done_for_face in the input_blocked section, just in case.
18493
18494 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18495 (get_char_face_and_encoding): Undo last change and remove the *other*
18496 duplicate definition (i.e. keep the one that's better scoped and that
18497 includes code for the font-backend).
18498
18499 * terminal.c (create_terminal): Default keyboard_coding to
18500 `no-conversion' and terminal_coding to `undecided'.
18501
18502 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18503
18504 * fontset.c (free_realized_fontsets): Check that the table entry does
18505 contain a fontset before trying to compare it to `base'.
18506
18507 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18508 syms_of_charset, and syms_of_coding earlier because init_window_once
18509 now needs Vcoding_system_hash_table to be setup.
18510
18511 * coding.h (default_buffer_file_coding): Remove.
18512
18513 * coding.c (default_buffer_file_coding): Remove.
18514 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18515 than ->symbol, and use the terminal-local coding system.
18516 (syms_of_coding): Don't setup the coding-systems that are not
18517 terminal-local.
18518 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18519
18520 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18521 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18522
18523 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18524 in chartab.c and were re-added here by mistake.
18525 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18526
18527 * doc.c (Fsnarf_documentation):
18528 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18529 src to etc.
18530
18531 * ChangeLog.10: Add mistakenly removed entry.
18532
18533 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18534
18535 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18536
18537 2008-02-01 Miles Bader <miles@gnu.org>
18538
18539 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18540 Add extra args to FACE_FOR_CHAR.
18541
18542 2008-02-01 Kenichi Handa <handa@m17n.org>
18543
18544 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18545 in sequence.
18546
18547 * chartab.c (map_sub_char_table, map_char_table): If the range
18548 contains just one character, call the function with that character
18549 even if the depth is not 3.
18550
18551 2008-02-01 Jason Rumney <jasonr@gnu.org>
18552
18553 * w32font.c (w32font_text_extents): Calculate metrics for the
18554 whole string.
18555
18556 2008-02-01 Jason Rumney <jasonr@gnu.org>
18557
18558 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18559
18560 2008-02-01 Jason Rumney <jasonr@gnu.org>
18561
18562 * w32term.c (x_set_glyph_string_clipping): Use
18563 get_glyph_string_clip_rects.
18564 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18565 Adjust for the change of struct glyph_string.
18566
18567 * w32font.c (w32font_draw): Do clipping here.
18568
18569 2008-02-01 Kenichi Handa <handa@m17n.org>
18570
18571 * xftfont.c (xftfont_draw): Adjust for the change of struct
18572 glyph_string.
18573
18574 * xterm.c (x_set_glyph_string_clipping): Use
18575 get_glyph_string_clip_rects.
18576 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18577 Adjust for the change of struct glyph_string.
18578
18579 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18580 the resulting clip(s}.
18581 (expose_overlaps): Add arg r. Change callers. Set it to
18582 row->clip temporarily.
18583 (expose_window): Redraw rows overlapping the exposed area.
18584
18585 * dispextern.h (struct glyph_row): New member clip.
18586 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18587 clip_height, new member clip, and num_clips.
18588
18589 2008-02-01 Kenichi Handa <handa@m17n.org>
18590
18591 * data.c (Fchar_or_string_p): Fix docstring.
18592
18593 2008-02-01 Kenichi Handa <handa@m17n.org>
18594
18595 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18596 create a temporary XftDraw object.
18597
18598 2008-02-01 Kenichi Handa <handa@m17n.org>
18599
18600 * font.c (Ffontp): Fix docstring.
18601
18602 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18603 strong evidence of ISO-2022.
18604
18605 2008-02-01 Kenichi Handa <handa@m17n.org>
18606
18607 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18608 SYNTAX_ENTRY_FOLLOW_PARENT.
18609
18610 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18611
18612 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18613 its type.
18614 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18615 Update to the new type of weak_hash_tables and next_weak.
18616
18617 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18618 a plain C pointer to Lisp_Hash_Table.
18619
18620 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18621 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18622 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18623 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18624 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18625 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18626 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18627 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18628 (GC_EQ): Remove since they've been identical to their non-GC_
18629 alter-egos ever since the markbit was eradicated.
18630
18631 * alloc.c:
18632 * buffer.c:
18633 * buffer.h:
18634 * data.c:
18635 * fileio.c:
18636 * filelock.c:
18637 * fns.c:
18638 * frame.h:
18639 * lisp.h:
18640 * macterm.c:
18641 * print.c:
18642 * process.c:
18643 * w32fns.c:
18644 * w32menu.c:
18645 * w32term.c:
18646 * xfns.c:
18647 * xmenu.c:
18648 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18649
18650 2008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * chartab.c (map_sub_char_table): Make it work for the top-level
18653 char-table. Fix handling of parent char-table.
18654 (map_char_table): Adjust for the above change.
18655
18656 2008-02-01 Jason Rumney <jasonr@gnu.org>
18657
18658 * w32font.c (Qgdi): Rename from Qw32.
18659
18660 2008-02-01 Jason Rumney <jasonr@gnu.org>
18661
18662 * w32bdf.c (get_quoted_string): Make function static.
18663
18664 2008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18667 bigger ascent and descent than those of the font, use them as
18668 font's ascent and descent.
18669
18670 2008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * Makefile.in (${lispsource}international/charprop.el): Move this
18673 target within "#ifdef HAVE_UNIDATA" and "#endif".
18674
18675 2008-02-01 Kenichi Handa <handa@m17n.org>
18676
18677 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18678 (shortlisp): Add ../lisp/language/tai-viet.el.
18679
18680 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18681
18682 * Makefile.in (${lispsource}international/charprop.el): Depend on
18683 temacs${EXEEXT}.
18684
18685 2008-02-01 Jason Rumney <jasonr@gnu.org>
18686
18687 * w32font.c (w32font_close): Delete the GDI font object.
18688
18689 * w32menu.c: Include character.h.
18690
18691 * w32proc.c: Likewise.
18692
18693 * w32select.c: Likewise.
18694
18695 * makefile.w32-in (w32proc.o): Depend on character.h.
18696
18697 2008-02-01 Jason Rumney <jasonr@gnu.org>
18698
18699 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18700
18701 * w32menu.c (syms_of_w32menu): Likewise.
18702
18703 * w32proc.c (syms_of_ntproc): Likewise.
18704
18705 * w32select.c (syms_of_w32select): Likewise.
18706
18707 * w32term.c (syms_of_w32term): Likewise.
18708
18709 2008-02-01 Jason Rumney <jasonr@gnu.org>
18710
18711 * w32font.c (w32font_draw): Delete brush after using it.
18712
18713 2008-02-01 Jason Rumney <jasonr@gnu.org>
18714
18715 * w32font.c (w32font_open): Don't set font_idx.
18716 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18717 to font settings.
18718 (w32font_draw): Fill background explicitly.
18719
18720 2008-02-01 Jason Rumney <jasonr@gnu.org>
18721
18722 * w32term.c (w32_initialize): Don't call w32font_initialize.
18723
18724 * w32font.c (w32font_info): Remove subranges.
18725 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18726 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18727 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18728 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18729 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18730 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18731 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18732 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18733 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18734 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18735 New symbols.
18736 (font_callback_data): New struct.
18737 (w32font_list, w32font_match): Use it.
18738 (w32font_open): Don't populate subranges.
18739 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18740 (w32font_encode_char): Always return unicode code-point as-is.
18741 (w32font_text_extents): Supply a transformation matrix to
18742 GetGlyphOutline. Never look up by glyph index. Avoid looping
18743 twice. Use unicode version of GetTexExtentPoint32 instead of
18744 glyph index version.
18745 (set_fonts_frame): Remove.
18746 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18747 set frame parameter. Use backward compatible fake foundries.
18748 Save generic family in extra slot under QCfamily. Make width slot
18749 constant. Save QCspacing value. Save list of scripts instead of
18750 binary subranges.
18751 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18752 (add_font_entity_to_list): Use font_callback_data struct. Filter
18753 unwanted fonts.
18754 (add_one_font_entity_to_list): Use font_callback_data struct.
18755 (w32_registry): Default to iso10646_1.
18756 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18757 string font registries. Don't fill in font name if it is a generic
18758 family name, fill family instead. Use spacing, family and script
18759 extra info to fill pitch, family and charset fields.
18760 (list_all_matching_fonts): Use font_callback_data struct.
18761 (unicode_range_for_char): Remove.
18762 (font_supported_scripts): New function.
18763 (w32font_initialize): Remove.
18764 (syms_of_w32font): Update which symbols are defined.
18765
18766 2008-02-01 Jason Rumney <jasonr@gnu.org>
18767
18768 * font.c (font_pixel_size): Reverse assq_no_quit args.
18769
18770 * w32term.h (FONT_WIDTH): Report max width, not average.
18771 (FONT_MAX_WIDTH): Remove.
18772 (FONT_AVG_WIDTH): New macro.
18773
18774 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18775 redefinition of FONT_WIDTH.
18776
18777 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18778 (w32_cache_char_metrics): Use FONT_WIDTH.
18779
18780 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18781
18782 2008-02-01 Jason Rumney <jasonr@gnu.org>
18783
18784 * w32font.c (w32font_open): Make lfHeight negative.
18785
18786 * w32fns.c (x_default_font_parameter): Use new style font name.
18787 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18788
18789 2008-02-01 Jason Rumney <jasonr@gnu.org>
18790
18791 * w32font.c (QCsubranges): New symbol.
18792 (w32font_open, w32font_has_char): Get subranges from subproperty
18793 of extra.
18794 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18795 (syms_of_w32font): Define :subranges symbol.
18796
18797 * font.c (font_put_extra): Expose externally.
18798
18799 * font.h (font_put_extra): Move declaration from font.c.
18800
18801 * font.c (Ffont_get): Use font driver to determine otf capability.
18802 (adjust_anchor): Check if driver defines anchor_point before using.
18803
18804 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18805 (w32font_draw): Use options.
18806 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18807 Fix detection of truetype fonts.
18808 (registry_to_w32_charset): Handle charsets other than iso8859-1
18809 expressed as lisp symbols.
18810 (w32_registry): Express charset as lisp symbol.
18811 (fill_in_logfont): Reverse pixel and point height logic.
18812 Don't set width here. Set quality to default.
18813
18814 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18815 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18816
18817 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18818 Remove redundant loop and allocation.
18819
18820 * makefile.w32-in (font.o, w32font.o): New objects.
18821 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18822 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18823
18824 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18825 STORE_XCHARB a valid l-value.
18826
18827 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18828 calculations for non-Truetype fonts.
18829 (x_draw_glyph_string): Sync with xterm.c.
18830 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18831 Remove redundant code.
18832 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18833
18834 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18835 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18836
18837 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18838 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18839
18840 * w32font.c: New file for w32 font backend.
18841
18842 2008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * term.c: Don't include "buffer.h" twice.
18845
18846 2008-02-01 Kenichi Handa <handa@m17n.org>
18847
18848 * character.c (Funibyte_string): New function.
18849 (syms_of_character): Defsubr it.
18850
18851 2008-02-01 Jason Rumney <jasonr@gnu.org>
18852
18853 * w32term.c [USE_FONT_BACKEND]:
18854 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18855 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18856 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18857 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18858 (x_free_frame_resources): Sync with xterm.c.
18859
18860 2008-02-01 Andreas Schwab <schwab@suse.de>
18861
18862 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18863 char-table size.
18864
18865 2008-02-01 Kenichi Handa <handa@m17n.org>
18866
18867 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18868
18869 2008-02-01 Kenichi Handa <handa@m17n.org>
18870
18871 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18872 font_otf_gpos, add font_drive_otf.
18873
18874 * fontset.c (fontset_find_font): Pay attention to font size
18875 specified for a font.
18876 (reorder_font_vector): Check contents of font_def.
18877
18878 * font.c (struct otf_list): Delete it.
18879 (otf_list): Make it a lisp variable.
18880 (otf_open): Use lispy otf_list.
18881 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18882 (check_otf_features): New function.
18883 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18884 New functions.
18885 (font_drive_otf): New function merging font_otf_gsub and
18886 font_otf_gpos.
18887 (font_open_for_lface): New arg spec. Change argument order.
18888 (font_load_for_face): Adjust for the change of font_open_for_lface.
18889 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18890 Ffont_otf_gpos.
18891 (syms_of_font): Staticpro otf_list. Delete defsubr of
18892 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18893
18894 * xfaces.c (set_font_frame_param): Adjust for the change of
18895 font_open_for_lface.
18896
18897 * font.h (font_open_for_lface): Adjust prototype.
18898 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18899 member otf_drive.
18900 (font_otf_gsub, font_otf_gpos): Delete externs.
18901 (font_drive_otf): Extern it.
18902
18903 2008-02-01 Kenichi Handa <handa@m17n.org>
18904
18905 * font.c (font_at): If the window W is not on a window system,
18906 return Qnil.
18907
18908 * coding.c (produce_chars, encode_coding): Don't call
18909 insert_from_gap if no characters to produce.
18910
18911 2008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18914 Fclear_face_cache.
18915
18916 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18917
18918 2008-02-01 Miles Bader <miles@gnu.org>
18919
18920 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18921 Parse "--disable-font-backend" option.
18922 (standard_args): Add "--disable-font-backend" option.
18923
18924 2008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * fontset.c (fontset_find_font): New function.
18927 (fontset_font): Use fontset_find_font.
18928 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18929 Register the specified font for all Latin characters.
18930 (new_fontset_from_font): Register the specified font for all Latin
18931 characters.
18932 (dump_fontset): For a realized fontset, include the base fontset
18933 name in the returned vector.
18934
18935 2008-02-01 Kenichi Handa <handa@m17n.org>
18936
18937 * character.h (CHAR_STRING): Cast C to unsigned on calling
18938 char_string.
18939
18940 * character.c (char_string): Type of arg C changed to unsigned.
18941 Signal an error if C is an invalid character code.
18942
18943 * editfns.c (general_insert_function, Fchar_to_string):
18944 Use CHARACTERP, not INTEGERP.
18945
18946 2008-02-01 Kenichi Handa <handa@m17n.org>
18947
18948 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18949 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18950
18951 * regex.c (analyse_first): Fix for multibyte characters in "case
18952 charset:" and "case categoryspec:".
18953
18954 2008-02-01 Andreas Schwab <schwab@suse.de>
18955
18956 * Makefile.in (LIBES): Move standard libraries to the end.
18957
18958 2008-02-01 Kenichi Handa <handa@m17n.org>
18959
18960 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18961 nonzero, don't shrink the buffer nextb.
18962
18963 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18964
18965 * coding.c (coding_alloc_by_making_gap): New arg offset.
18966 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18967 offset.
18968 (decode_coding_iso_2022): Update coding->safe_charsets.
18969 (decode_coding_gap): Temporarily set
18970 current_buffer->text->inhibit_shrinking to 1.
18971
18972 2008-02-01 Kenichi Handa <handa@m17n.org>
18973
18974 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18975 indexing into elements of s->cmp and s->char2b.
18976
18977 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18978
18979 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18980
18981 2008-02-01 Kenichi Handa <handa@m17n.org>
18982
18983 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18984 target_multibyte instead of multibyte.
18985 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18986 (bcmp_translate): Change the argument name from multibyte to
18987 target_multibyte.
18988
18989 2008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 These changes are to compile a regexp into a pattern that can be
18992 used both for multibyte and unibyte targets.
18993
18994 * Makefile.in (search.o): Depend on charset.h.
18995
18996 * character.c (multibyte_char_to_unibyte_safe): New function.
18997
18998 * search.c: Include "charset.h".
18999 (compile_pattern_1): Delete argument multibyte. Don't set
19000 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19001 (compile_pattern): Don't compare cp->buf.target_multibyte.
19002 Compare cp->buf.charset_unibyte.
19003 (compile_pattern): Set cp->buf.target_multibyte.
19004
19005 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19006
19007 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19008
19009 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19010 multibyte. Change callers.
19011 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19012 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19013 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19014 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19015 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19016 (regex_compile): Make the compiled pattern usable both for
19017 multibyte and unibyte targets.
19018 (analyse_first): Make the fastmap usable both for multibyte and
19019 unibyte targets.
19020 (TRANSLATE_VIA_MULTIBYTE): Delete.
19021 (re_match_2_internal): Pay attention to the case that the
19022 multibyteness of bufp and target may be different.
19023
19024 2008-02-01 Kenichi Handa <handa@m17n.org>
19025
19026 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19027 empty box occupy at least one column width.
19028
19029 2008-02-01 Miles Bader <miles@gnu.org>
19030
19031 * Makefile.in: Remove redundant HAVE_XFT clause.
19032
19033 2008-02-01 Kenichi Handa <handa@m17n.org>
19034
19035 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19036
19037 2008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19040 being nil.
19041
19042 2008-02-01 Kenichi Handa <handa@m17n.org>
19043
19044 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19045
19046 2008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19049
19050 2008-02-01 Kenichi Handa <handa@m17n.org>
19051
19052 * search.c (simple_search): Fix previous change.
19053
19054 2008-02-01 Kenichi Handa <handa@m17n.org>
19055
19056 * xftfont.c (ftfont_font_format): Extern declaration.
19057
19058 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19059
19060 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19061 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19062
19063 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19064 (ftfont_font_format): Fix previous change.
19065
19066 * font.h (Ffont_xlfd_name): EXFUN it.
19067
19068 * font.c (font_parse_xlfd): Fix the array size of `f'.
19069 (register_font_driver): Use EQ to compare driver->type.
19070
19071 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19072 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19073 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19074
19075 2008-02-01 Kenichi Handa <handa@m17n.org>
19076
19077 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19078 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19079
19080 2008-02-01 Kenichi Handa <handa@m17n.org>
19081
19082 * xfont.c (xfont_open): Set font->format.
19083
19084 * xftfont.c (xftfont_open): Set font->format.
19085
19086 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19087 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19088 (ftfont_open): Set font->format.
19089 (ftfont_font_format): New function.
19090
19091 * font.h (struct font): New member format.
19092
19093 * font.c (Qopentype): New variable.
19094 (syms_of_font): Defsym it.
19095 (Fquery_font): Change the format of the last element of the return
19096 value.
19097
19098 2008-02-01 Kenichi Handa <handa@m17n.org>
19099
19100 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19101 last resort.
19102
19103 2008-02-01 Kenichi Handa <handa@m17n.org>
19104
19105 * coding.c (detect_coding_charset): Fix detection of multi-byte
19106 charset.
19107
19108 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19109
19110 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19111
19112 2008-02-01 Kenichi Handa <handa@m17n.org>
19113
19114 * xdisp.c (get_next_display_element): Set it->face_id for the
19115 first component of a composition.
19116 (x_produce_glyphs): Check if the font is changed or not for composition.
19117
19118 2008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * fontset.c (Qlatin): New variable.
19121 (syms_of_fontset): Define it as a lisp symbol.
19122 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19123
19124 2008-02-01 Kenichi Handa <handa@m17n.org>
19125
19126 * font.c (font_unparse_fcname): Pay attention to the case that
19127 some of font property is a null string.
19128
19129 2008-02-01 Kenichi Handa <handa@m17n.org>
19130
19131 * term.c: Include "composite.h".
19132 (encode_terminal_code): Output all components of composition.
19133 Check the size of encode_terminal_src.
19134 (produce_glyphs): For composition, call produce_composite_glyph.
19135 (append_composite_glyph, produce_composite_glyph): New functions.
19136
19137 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19138 is not found, get font_info from the current ascii face.
19139
19140 2008-02-01 Kenichi Handa <handa@m17n.org>
19141
19142 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19143 buffer-file-name to Qnil before calling insert_from_buffer.
19144
19145 * font.c (font_unparse_fcname): Pay attention to the case that
19146 foundry is a null string.
19147
19148 2008-02-01 Kenichi Handa <handa@m17n.org>
19149
19150 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19151
19152 * font.c (Qunicode_sip): New variable.
19153 (syms_of_font): Declare it as a Lisp symbol.
19154
19155 * font.h (Qunicode_sip): Extern it.
19156
19157 2008-02-01 Kenichi Handa <handa@m17n.org>
19158
19159 * composite.c (get_composition_id): Pay attention to TAB component.
19160
19161 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19162 TAB. Adjust for the change of s->char2b which always points to
19163 the first element of allocated memory.
19164
19165 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19166
19167 * xdisp.c (handle_composition_prop): Set it->c to the first
19168 non-TAB component.
19169 (fill_composite_glyph_string): Change argument.
19170 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19171 (x_produce_glyphs): Fix handling of left/right padding.
19172
19173 2008-02-01 Kenichi Handa <handa@m17n.org>
19174
19175 * coding.c (detect_coding_system): Fix for handling off
19176 inhibit_iso_escape_detection. Fix for the case that no coding
19177 system is defined for a specific coding category.
19178
19179 2008-02-01 Kenichi Handa <handa@m17n.org>
19180
19181 * font.c (font_matching_entity): Delete unused local var.
19182
19183 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19184 opening a font.
19185
19186 * fileio.c (Finsert_file_contents): On recovering a file, assume
19187 Unix-like eol.
19188 (choose_write_coding_system): On auto-saving a file, force
19189 Unix-like eol.
19190
19191 * coding.c (setup_coding_system): Fix setting of
19192 coding->common_flags based on eol_type.
19193 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19194 inherit from it.
19195
19196 2008-02-01 Kenichi Handa <handa@m17n.org>
19197
19198 * alloc.c (NSTATICS): Increas to 0x600.
19199
19200 2008-02-01 Kenichi Handa <handa@m17n.org>
19201
19202 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19203 (ftfont_list): Don't check :name property.
19204 (ftfont_match): New function.
19205 (ftfont_pattern_entity): If the pattern doesn't contain
19206 FC_SPACING, don't assume FC_MONO.
19207
19208 * font.h (struct font_driver): New member `match'.
19209 (font_update_drivers): Adjust prototype.
19210
19211 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19212 property of FONT.
19213 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19214 them unconditionally.
19215 (font_matching_entity): New function.
19216 (font_open_by_name): Try font_matching_entity if exact match is
19217 not found.
19218 (font_update_drivers): Delete the arg FONT. Return a list of
19219 actually used backends. Don't free faces, font caches here.
19220 Don't store data in frame parameters. Don't call x_set_font.
19221 (Ffont_spec): Store :name property as is.
19222 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19223 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19224 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19225 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19226 Call font->driver->otf_gsub instead of font_otf_gsub.
19227
19228 * frame.c (x_set_font_backend): Do more works that were done in
19229 font_update_drivers before.
19230
19231 * xfont.c (xfont_match): New function.
19232 (xfont_driver): Set xfont_driver.match to xfont_match.
19233 (xfont_draw): Set font in GC if necessary.
19234
19235 * ftxfont.c (ftxfont_match): New function.
19236 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19237
19238 * xftfont.c (xftfont_match): New function.
19239 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19240
19241 2008-02-01 Kenichi Handa <handa@m17n.org>
19242
19243 * font.h (struct font): New member scalable.
19244 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19245 (font_otf_gsub): Adjust prototype.
19246
19247 * font.c (font_otf_capability): Fix handling of the default langsys.
19248 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19249 Check the contents of SPEC.
19250 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19251 (check_gstring): New function.
19252 (REPLACEMENT_CHARACTER): New macro.
19253 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19254 glyph codes of GSTRING.
19255 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19256 (font_prepare_composition): Set cmp->glyph_len.
19257 (font_open_entity): Set font->scalable.
19258 (Ffont_get): Handle :otf property.
19259 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19260 functions.
19261 (Fquery_font): Use font->font.full_name.
19262 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19263 Sfont_otf_alternates.
19264
19265 * ftfont.c (ftfont_open): Set font->font.full_name and
19266 font->font.name properly. Fix calculation of font->font.height
19267 and font->min_width.
19268
19269 * ftxfont.c (ftxfont_create_gcs): New function.
19270 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19271 (ftxfont_draw_backgrond): Fix filling region.
19272 (ftxfont_default_fid): New function.
19273 (ftxfont_open): Set xfont->fid to the return value of
19274 ftxfont_default_fid.
19275 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19276 (ftxfont_done_face): Free only GCs that are created by
19277 ftxfont_create_gcs.
19278 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19279
19280 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19281 Clip to src->width, etc (not src->clip_XXX).
19282
19283 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19284 FontBackend frame parameter.
19285
19286 2008-02-01 Kenichi Handa <handa@m17n.org>
19287
19288 * font.h (struct font_driver_list): New member `on'.
19289 (Fclear_font_cache): EXFUN it.
19290 (font_update_drivers): Extern it.
19291
19292 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19293 (font_list_entities): Check driver_list->on.
19294 (register_font_driver): Initalize `on' member to 0.
19295 (font_update_drivers): New function.
19296 (Fclear_font_cache): Check driver_list->on.
19297
19298 * frame.h (Qfont_backend): Extern it.
19299 (x_set_font_backend): Extern it.
19300
19301 * frame.c (Qfont_backend): New variable.
19302 (frame_parms): New element for font-backend.
19303 (x_set_font_backend): New function.
19304
19305 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19306 FontBackend frame parameter.
19307 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19308 x_set_font_backend.
19309
19310 * xfont.c (xfont_list): Don't try listing by :name property if the
19311 name is not for XLFD.
19312
19313 2008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19316 (LGLYPH_SET_TO): New macros.
19317 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19318 element of G is vector or not.
19319 (font_at): Extern it.
19320
19321 * font.c: Include window.h.
19322 (font_lispy_object): New function.
19323 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19324 end of valid glyph.
19325 (font_close_object): Fix getting (struct font *).
19326 (font_at): New function.
19327 (Ffont_get): If FONT is a font-object, get entity from it.
19328 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19329 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19330 range check.
19331 (Ffont_at): New function.
19332 (syms_of_font): Defsubr Sfont_at.
19333
19334 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19335 before the entry for Qcomposition.
19336 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19337 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19338 the font in gstring.
19339 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19340 LGLYPH_FORM (g) to detect the end of valid glyph.
19341 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19342 we are composing with gstring.
19343
19344 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19345 Check if adjustment is vector or not.
19346
19347 * Makefile.in (font.o): Make it depends on window.h.
19348
19349 2008-02-01 Kenichi Handa <handa@m17n.org>
19350
19351 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19352 adjustment is vector or not.
19353
19354 2008-02-01 Miles Bader <miles@gnu.org>
19355
19356 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19357
19358 2008-02-01 Kenichi Handa <handa@m17n.org>
19359
19360 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19361 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19362 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19363
19364 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19365 (DEVICE_DELTA): Fix typo.
19366 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19367 LGLYPH format.
19368
19369 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19370 the change of LGLYPH format.
19371
19372 2008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * ftfont.c (ftfont_list): Fix typo.
19375 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19376
19377 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19378
19379 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19380
19381 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19382 xftface_info is non-NULL.
19383
19384 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19385
19386 * ftfont.c (ftfont_list): Move misplaced #endif.
19387
19388 2008-02-01 Kenichi Handa <handa@m17n.org>
19389
19390 * ftfont.c (ftfont_list): Pay attention to the case that
19391 FC_CAPABILITY is not defined.
19392
19393 2008-02-01 Kenichi Handa <handa@m17n.org>
19394
19395 * xftfont.c (xftfont_open): Set charset related members to -1.
19396
19397 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19398 QCname.
19399 (ftfont_open): Set charset related members to -1.
19400
19401 * fontset.c (Votf_script_alist): New variable.
19402 (syms_of_fontset): Initialize it.
19403 (fontset_font): Delete unused variable.
19404
19405 * fontset.h (Votf_script_alist): Extern it.
19406
19407 * font.c (font_find_for_lface): Optimize code.
19408
19409 * font.h (font_close_object, font_merge_old_spec): Extern them.
19410
19411 2008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19414 (syms_of_font): Initialize them.
19415 (font_pixel_size): Allow float value in dpi.
19416 (font_prop_validate_type): Delete.
19417 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19418 Change caller.
19419 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19420 (font_prop_validate_extra): Delete.
19421 (font_prop_validate_spacing): New function.
19422 (font_property_table): Add elements for all known properties.
19423 (get_font_prop_index): Rename from check_font_prop_name. New
19424 argument FROM. Change caller.
19425 (font_prop_validate): Validate all known properties.
19426 (font_put_extra): Delete argument force. Change caller.
19427 (font_expand_wildcards): Make it static. Fix the way of shrinking
19428 the possible range.
19429 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19430 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19431 Change caller.
19432 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19433 (font_parse_fcname): Delete argument merge. Fix parsing of point
19434 size. Don't validate properties values here. Change caller.
19435 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19436 (font_open_by_name): Delete unused variable.
19437 (Ffont_spec): Likewise. Validate property values.
19438 (Ffont_match_p): New function.
19439
19440 * font.h (QCscalable): Extern it.
19441 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19442
19443 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19444
19445 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19446 (xfont_list_pattern): New function.
19447 (xfont_list): Use xfont_list_pattern.
19448
19449 2008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * font.h (Flist_fonts): EXFUN it.
19452
19453 2008-02-01 Jason Rumney <jasonr@gnu.org>
19454
19455 * w32term.c (w32_initialize): Add back smoothing_type and
19456 smoothing_enabled definitions.
19457
19458 2008-02-01 Kenichi Handa <handa@m17n.org>
19459
19460 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19461 s->face->font on determining underline position.
19462
19463 2008-02-01 Kenichi Handa <handa@m17n.org>
19464
19465 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19466 (font_has_char): Accept font-object too.
19467 (font_find_for_lface): Try at first with a size specified in face.
19468
19469 2008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19472 font_open_by_name.
19473
19474 2008-02-01 Kenichi Handa <handa@m17n.org>
19475
19476 * font.h (QCspacing, QCdpi): Extern them.
19477 (enum font_spacing): New enum.
19478 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19479
19480 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19481 (QCspacing, QCdpi): New variables.
19482 (syms_of_font): Initialize them.
19483 (font_pixel_size): New function.
19484 (font_put_extra): New function.
19485 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19486 in FONT_EXTRA.
19487 (font_parse_fcname): Handle enumerated values (e.g. bold).
19488 Fix handling font size. Add QCname property that contains only
19489 unknown properties.
19490 (font_score): Change argument. Change caller. Pay attention to
19491 FONT_PIXEL_SIZE_QUANTUM.
19492 (font_sort_entites, font_list_entities, font_find_for_lface)
19493 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19494 (Ffont_spec): Add QCname property that contains only unknown properties.
19495
19496 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19497 include weight in listing pattern, instead check weight of each
19498 listed font. Don't include scalable in pattern. Pay attention to
19499 FONT_PIXEL_SIZE_QUANTUM.
19500
19501 2008-02-01 Kenichi Handa <handa@m17n.org>
19502
19503 * font.c (font_parse_fcname): Fix parsing of point-size.
19504 (font_unparse_fcname): Produce symbolic names for style properties.
19505 (font_list_entities): Handle float size correctly.
19506 (font_open_by_name): Prefer `normal' property values if the name
19507 doesn't specify them.
19508
19509 * fontset.c (Finternal_char_font): Use font_get_name, not
19510 Ffont_xlfd_name.
19511
19512 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19513 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19514 pattern. Don't force scalable.
19515
19516 * xftfont.c (xftfont_open): For generating a name, start from
19517 96-byte buffer.
19518
19519 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19520
19521 * frame.h (x_new_fontset2): Fix prototype.
19522
19523 2008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * font.h (struct font_driver): Delete member parse_name.
19526 (font_match_p, font_get_spec, font_parse_fcname)
19527 (font_unparse_fcname): Extern them.
19528 (font_get_name): Adjust prototype.
19529
19530 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19531 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19532 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19533 unnecessary checks for weight, slant, and swidth.
19534 (font_parse_fcname): New function.
19535 (font_unparse_fcname): New function.
19536 (font_parse_name): New function.
19537 (font_match_p): New function.
19538 (font_get_name): Change return value to Lisp string.
19539 (font_get_spec): New function.
19540 (Qunspecified, Qignore_defface): Don't extern them.
19541 (font_find_for_lface): Assume that LFACE is fully specified.
19542 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19543 object, use it for FACE.
19544 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19545 driver->parse_name.
19546 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19547
19548 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19549 prototype.
19550
19551 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19552 argument F. Don't call Fnew_fontset. Instead, directly call
19553 make_fontset.
19554
19555 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19556
19557 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19558 of x_new_fontset2.
19559
19560 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19561 (Qsans__serif): New variables.
19562 (ftfont_generic_family_list): New variable.
19563 (syms_of_ftfont): Initialize the above variables.
19564 (ftfont_pattern_entity): Delete argument NAME.
19565 (ftfont_list_generic_family): New function.
19566 (ftfont_parse_name): Delete this function.
19567 (ftfont_list): Try generic family only when FcFontList found no font.
19568 (ftfont_list_family): Fix args to FcObjectSetBuild.
19569
19570 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19571 object in attrs[LFACE_FONT_INDEX].
19572 (set_lface_from_font_name): Cancel all changes for font-backend.
19573 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19574 function.
19575 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19576 font object in QCfont attribute.
19577 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19578 (realize_default_face) [USE_FONT_BACKEND]: Call
19579 set_lface_from_font_and_fontset.
19580
19581 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19582 "fixed", and signal error here if no suitable font was found.
19583
19584 * xfont.c (xfont_parse_name): Delete this function.
19585
19586 * xftfont.c (xftfont_open): Change coding style of error
19587 handling. Generate fontconfig's fontname pattern.
19588
19589 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19590 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19591
19592 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19593 Both args FONTSET and FONT_OBJECT must be existing ones.
19594
19595 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19596
19597 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19598
19599 2008-02-01 Kenichi Handa <handa@m17n.org>
19600
19601 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19602
19603 * font.h (struct font): Fix typo.
19604
19605 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19606 XLFD_XXX_INDEX.
19607 (enum xlfd_field_mask): New enum.
19608 (intern_font_field): Changed argument. Change caller. If digits
19609 are followed by non-digits, return a symbol.
19610 (font_expand_wildcards): New function.
19611 (font_parse_xlfd): Fix wildcard handling.
19612 (Ffont_spec): If :name is specified, reflect the info in the other
19613 properties.
19614
19615 * ftfont.c (ftfont_pattern_entity): Fix typo.
19616 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19617 locale.
19618
19619 2008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19622
19623 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19624 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19625 registry doesn't specify encoding part.
19626 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19627 (font_open_by_name): At first try parsing the name.
19628 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19629 as Lisp symbols.
19630
19631 * fontset.c (reorder_font_vector): Pay attention to the case that
19632 the 3rd element of font_def is nil.
19633 (fontset_font): For the default fontset, append one more fontset
19634 elements for a script-based font specification. Don't add script
19635 attribute on finding a font.
19636 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19637 font name.
19638 (fontset_ascii_font): If a font can't be opened, return nil.
19639
19640 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19641 (ftfont_pattern_entity): New function.
19642 (ftfont_get_cache): Assume that freetype_font_cache is already
19643 initialized.
19644 (ftfont_list): Handle the case that a file is specified in font
19645 name. Use ftfont_pattern_entity to generate entities.
19646 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19647 (syms_of_ftfont): Initialize freetype_font_cache.
19648
19649 * xftfont.c (xftfont_open): Make the font name fontconfig's
19650 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19651 (xftfont_close): Free font->font.name if not NULL.
19652
19653 * xfont.c (xfont_list): If script is specified for a font, return
19654 null_vector.
19655 (xfont_list_family): Declare argument type.
19656
19657 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19658 name, set LFACE_FONT (lface) to nil.
19659
19660 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19661 return Qnil.
19662
19663 2008-02-01 Kenichi Handa <handa@m17n.org>
19664
19665 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19666 (standard_args): Add "-enable-font-backend".
19667
19668 2008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19671 (struct xftdraw_list, xftdraw_list): Delete them.
19672 (register_xftdraw, check_xftdraw): Delete them.
19673 (xftfont_prepare_face): Don't call register_xftdraw.
19674 (xftfont_done_face): Don't call check_xftdraw.
19675 (xftfont_draw): Get background color only when with_background is
19676 nonzero.
19677
19678 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19679
19680 2008-02-01 Kenichi Handa <handa@m17n.org>
19681
19682 These changes are for the new font handling codes.
19683
19684 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19685 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19686 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19687 (FONTSRC, FONTOBJ): New variables.
19688 (obj): Add $(FONTOBJ).
19689 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19690 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19691 @LIBOTF_LIBS@.
19692 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19693 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19694
19695 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19696
19697 * character.h (Vscript_representative_chars): Extern it.
19698
19699 * character.c (Vscript_representative_chars): New variable.
19700 (syms_of_character): Declare it as a Lisp variable.
19701
19702 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19703 enable_font_backend is nonzero, accept the composition method
19704 COMPOSITION_WITH_GLYPH_STRING.
19705
19706 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19707 enumeration COMPOSITION_WITH_GLYPH_STRING.
19708
19709 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19710 members clip_x, clip_y, clip_width, and clip_height.
19711 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19712
19713 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19714 --enable-font-backend. Call syms_of_font.
19715
19716 * fns.c (assoc_no_quit): New function.
19717
19718 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19719 (face_for_font, new_fontset_from_font)
19720 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19721
19722 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19723 (fontset_font, fontset_ascii, face_for_char)
19724 (make_fontset_for_ascii_face, Ffont_info)
19725 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19726 is nonzero, use font-backend mechanism.
19727 (find_font_encoding): Make it non-static.
19728 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19729 New functions.
19730
19731 * frame.h (struct frame): New members resx and resy.
19732 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19733 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19734
19735 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19736 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19737
19738 * lisp.h (assoc_no_quit): Extern it.
19739
19740 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19741 Through out the file, use FONT_INFO_FROM_FACE instead of
19742 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19743 rif->per_char_metric.
19744 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19745 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19746 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19747 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19748 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19749 nonzero, use font-backend mechanism.
19750 (get_per_char_metric): New function.
19751
19752 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19753 (set_lface_from_font_name)
19754 (set_font_frame_param, free_realized_face)
19755 (prepare_face_for_display, clear_face_gcs)
19756 (Finternal_set_font_selection_order, realize_x_face)
19757 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19758 font-backend mechanism.
19759 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19760 (load_face_font) [USE_FONT_BACKEND]: Abort.
19761 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19762 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19763
19764 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19765 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19766 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19767 nonzero, register all available font drivers. Call
19768 x_default_font_parameter for deciding a font.
19769 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19770
19771 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19772 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19773 (x_set_glyph_string_clipping_exactly)
19774 (x_compute_glyph_string_overhangs)
19775 (x_draw_glyph_string_foreground)
19776 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19777 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19778 enable_font_backend is nonzero, use font-backend mechanism.
19779 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19780
19781 2008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19784 system_eol_type.
19785 (syms_of_coding): Initialize system_eol_type.
19786
19787 * process.c (Fset_process_coding_system): Inherit system's eol
19788 format if necessary.
19789
19790 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19791
19792 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19793
19794 2008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * coding.c (decode_eol): Pay attention to buffer relocation in
19797 del_range_2.
19798 (decode_coding): Call decode_eol before restoring undo_list.
19799
19800 2008-02-01 Kenichi Handa <handa@m17n.org>
19801
19802 * charset.c (Fdefine_charset_internal): Fix setting of
19803 emacs_mule_bytes.
19804
19805 2008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * keyboard.c (read_char): Check if C is a character or not before
19808 looking up Vkeyboard_translate_table.
19809
19810 2008-02-01 Kenichi Handa <handa@m17n.org>
19811
19812 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19813 condition to terminate the loop.
19814
19815 2008-02-01 Kenichi Handa <handa@m17n.org>
19816
19817 * coding.c (produce_composition): Compare charbuf[i] instead of
19818 args[i] against 0.
19819 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19820
19821 2008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19824 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19825 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19826 detect_coding.
19827 (emacs_mule_char): Handle old style (Emacs 20) component character
19828 of a composition.
19829 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19830 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19831 composition rule.
19832 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19833
19834 2008-02-01 Kenichi Handa <handa@m17n.org>
19835
19836 * coding.c (encode_coding_ccl): Allocate destination dynamically
19837 when necessary.
19838
19839 2008-02-01 Kenichi Handa <handa@m17n.org>
19840
19841 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19842 the loop. When quitted, show a proper error message.
19843
19844 2008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19847 src->clip_head and src->clip_tail temporarily instead of src->hl.
19848
19849 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19850 character sequence.
19851 (Fccl_execute_on_string): Use ASET, not XSET.
19852
19853 2008-02-01 Kenichi Handa <handa@m17n.org>
19854
19855 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19856
19857 2008-02-01 Kenichi Handa <handa@m17n.org>
19858
19859 * coding.c (decode_coding): Fix the condition of terminating the
19860 decoding loop.
19861
19862 2008-02-01 Kenichi Handa <handa@m17n.org>
19863
19864 * data.c (Faset): On setting a character bigger than 255 in a
19865 unibyte string, signal an error instead of make the string multibyte.
19866
19867 2008-02-01 Kenichi Handa <handa@m17n.org>
19868
19869 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19870 made by a mapping table.
19871
19872 2008-02-01 Kenichi Handa <handa@m17n.org>
19873
19874 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19875 not.
19876 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19877 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19878
19879 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19880 s->face is NULL or not.
19881
19882 2008-02-01 Kenichi Handa <handa@m17n.org>
19883
19884 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19885 (x_draw_glyph_string): Fix drawing of right_overhang and
19886 left_overhang around/on cursor.
19887
19888 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19889
19890 2008-02-01 Kenichi Handa <handa@m17n.org>
19891
19892 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19893
19894 2008-02-01 Kenichi Handa <handa@m17n.org>
19895
19896 * coding.c (Fdefine_coding_system_internal)
19897 (Fdefine_coding_system_alias): Avoid a duplicated element in
19898 Vcoding_system_alist.
19899
19900 2008-02-01 Kenichi Handa <handa@m17n.org>
19901
19902 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19903
19904 * coding.c (Qcoding_system_define_form): New variable.
19905 (syms_of_coding): Intern and staticpro it.
19906 (Fcoding_system_p): Check Qcoding_system_define_form.
19907 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19908
19909 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19910 Fcoding_system_p.
19911 (CHECK_CODING_SYSTEM): If ID is not available, call
19912 Fcheck_coding_system.
19913 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19914 Try also Fcheck_coding_system.
19915
19916 2008-02-01 Kenichi Handa <handa@m17n.org>
19917
19918 * coding.c (code_conversion_restore): GCPRO arg.
19919
19920 2008-02-01 Kenichi Handa <handa@m17n.org>
19921
19922 * character.c (lisp_string_width): Check multibyteness of STRING.
19923
19924 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19925
19926 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19927 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19928 (decode_mac_font_name): Use decode_coding_c_string instead of
19929 decode_coding.
19930 (x_load_font): Initialize fontp->fontset to -1. Set
19931 fontp->encoding_type.
19932
19933 2008-02-01 Kenichi Handa <handa@m17n.org>
19934
19935 * search.c (search_buffer): Give up BM search on case-fold-search
19936 if one of a target character has a case-equivalence of different
19937 byte length even if that target charcter is an ASCII.
19938 (simple_search): Fix calculation of byte length of matched text.
19939 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19940
19941 2008-02-01 Kenichi Handa <handa@m17n.org>
19942
19943 * coding.c (decode_coding): Fix handling of invalid bytes.
19944
19945 2008-02-01 Kenichi Handa <handa@m17n.org>
19946
19947 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19948 Unicode characters.
19949
19950 2008-02-01 Kenichi Handa <handa@m17n.org>
19951
19952 * coding.c (encode_coding_object): If a pre-write-conversion
19953 function makes a new buffer, kill it.
19954
19955 2008-02-01 Kenichi Handa <handa@m17n.org>
19956
19957 * coding.c (QCascii_compatible_p): New variable.
19958 (syms_of_coding): Initialize it.
19959 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19960 calling string_char.
19961 (record_conversion_result): Add `default:' case.
19962 (coding_charset_list): Delete unused variable `coding_type'.
19963 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19964 property in the plist of the coding system.
19965 (Fcoding_system_put): Check QCascii_compatible_p.
19966
19967 2008-02-01 Miles Bader <miles@gnu.org>
19968
19969 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19970 removed calculation of frame `f', as it's now used.
19971
19972 2008-02-01 Kenichi Handa <handa@m17n.org>
19973
19974 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19975 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19976 (UNIDATA): New variable.
19977 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19978 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19979 $(RUN_TEMACS) unconditionally.
19980
19981 2008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19984 (admindir): New variable.
19985 ($(lispsource)international/charprop.el): New target.
19986
19987 2008-02-01 Miles Bader <miles@gnu.org>
19988
19989 * character.c (chars-in-region): Remove obsolete function.
19990 (syms_of_character): Remove its initialization.
19991
19992 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19993
19994 * w32select.c (validate_coding_system)
19995 (setup_windows_coding_system): New functions.
19996 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19997 setup_windows_coding_system.
19998 (setup_config, Fw32_get_clipboard_data): Use
19999 validate_coding_system.
20000 (Fx_selection_exists): Move call to setup_config to a place
20001 where signals are allowed.
20002
20003 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20004 (Fcheck_coding_system): Add declarations.
20005
20006 2008-02-01 Kenichi Handa <handa@m17n.org>
20007
20008 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20009
20010 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20011
20012 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20013 string as the second argument for x_new_fontset.
20014
20015 2008-02-01 Kenichi Handa <handa@m17n.org>
20016
20017 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20018 (encode_coding_object): Use safe_call instead of call2.
20019
20020 2008-02-01 Kenichi Handa <handa@m17n.org>
20021
20022 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20023
20024 * Makefile.in (lisp): Include charprop.el.
20025
20026 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20027
20028 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20029 Not sure if it's unnecessary.
20030
20031 2008-02-01 Steven Tamm <steventamm@mac.com>
20032
20033 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20034 some possibly unnecessary fontset checking code that crashed
20035 when creating a new frame.
20036
20037 2008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20040 lookup_face.
20041
20042 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20043
20044 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20045
20046 2008-02-01 Kenichi Handa <handa@m17n.org>
20047
20048 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20049 (coding_charset_list): New function.
20050
20051 * coding.h (coding_charset_list): Extern it.
20052
20053 2008-02-01 Kenichi Handa <handa@m17n.org>
20054
20055 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20056 concatenation of family and registry.
20057
20058 2008-02-01 Kenichi Handa <handa@m17n.org>
20059
20060 * character.h (BYTE8_STRING): Fix typo.
20061
20062 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20063 string to multibyte (sync to HEAD).
20064
20065 * casefiddle.c (casify_region): Handle changes in byte-length
20066 using replace_range_2 (sync to HEAD).
20067
20068 2008-02-01 Andreas Schwab <schwab@suse.de>
20069
20070 * chartab.c (map_char_table): GCPRO table and arg.
20071
20072 2008-02-01 Kenichi Handa <handa@m17n.org>
20073
20074 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20075 already at limit.
20076
20077 2008-02-01 Kenichi Handa <handa@m17n.org>
20078
20079 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20080 instead of fast_c_string_match_ignore_case.
20081 (find_font_encoding): Change argument to Lisp_Object. Use
20082 fast_string_match_ignore_case instead of
20083 fast_c_string_match_ignore_case. Change caller.
20084
20085 2008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * xdisp.c (get_next_display_element): In unibyte case, decide to
20088 display in octal form by checking a character by
20089 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20090
20091 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20092
20093 * character.c (unibyte_has_multibyte_table): New variable.
20094
20095 * character.h (unibyte_has_multibyte_table): Extern it.
20096 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20097
20098 2008-02-01 Kenichi Handa <handa@m17n.org>
20099
20100 * coding.c (encode_coding_iso_2022): Fix handling of charset
20101 annotation.
20102
20103 2008-02-01 Kenichi Handa <handa@m17n.org>
20104
20105 * coding.c (setup_coding_system): If coding_system is nil, use
20106 Qundecided.
20107 (Fterminal_coding_system): Return nil if terminal coding system is
20108 `undecided'.
20109 (syms_of_coding): Define coding-system `undecided' here. Setup
20110 terminal_coding as `undecided'.
20111
20112 2008-02-01 Kenichi Handa <handa@m17n.org>
20113
20114 * xdisp.c (message_dolog, set_message_1): Call
20115 unibyte_char_to_multibyte with arg type int.
20116
20117 * lread.c (read1): Fix reading of a char-table.
20118
20119 * print.c (print_object): Include sub char-table in circularities
20120 detection.
20121
20122 2008-02-01 Kenichi Handa <handa@m17n.org>
20123
20124 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20125 Append the found sequences in car of ARGS instead of prepending.
20126
20127 2008-02-01 Kenichi Handa <handa@m17n.org>
20128
20129 * fileio.c (report_file_error): Make a unibyte string from
20130 strerror (errorno).
20131 (Fsubstitute_in_file_name): Fix the arg to
20132 unibyte_char_to_multibyte. It is evaluated twice.
20133
20134 2008-02-01 Kenichi Handa <handa@m17n.org>
20135
20136 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20137
20138 2008-02-01 Kenichi Handa <handa@m17n.org>
20139
20140 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20141 BOM is not found.
20142 (detect_coding, detect_coding_system): Optimization for ISO-2022
20143 when no 8-bit data is found.
20144
20145 2008-02-01 Jason Rumney <jasonr@gnu.org>
20146
20147 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20148
20149 2008-02-01 Kenichi Handa <handa@m17n.org>
20150
20151 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20152 CHARS.
20153
20154 2008-02-01 Steven Tamm <steventamm@mac.com>
20155
20156 * macterm.c (mac_encode_char): Add charset argument and update
20157 to use encoding_type.
20158 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20159 switch to pure fontset.
20160 (decode_mac_font_name): Temporarily remove decoding.
20161 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20162 (x_load_font): Temporarily remove encoding.
20163
20164 2008-02-01 Kenichi Handa <handa@m17n.org>
20165
20166 * xfaces.c (Fface_font): If frame is not on a window system,
20167 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20168 refer to face->font.
20169 (split_font_name_into_vector, build_font_name_from_vector)
20170 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20171 when HAVE_WINDOW_SYSTEM is defined.
20172
20173 2008-02-01 Kenichi Handa <handa@m17n.org>
20174
20175 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20176 (x_produce_glyphs): Fix setting of members of cmp in case
20177 cmp->glyph_len is zero.
20178
20179 * fontset.c (Fset_fontset_font): Fix docstring.
20180 (Ffontset_info): Make it backward compatible. New arg ALL.
20181
20182 2008-02-01 Kim F. Storm <storm@cua.dk>
20183
20184 * process.c (read_process_output): Grow decoding_buf when needed;
20185 this could cause a crash in allocate_string and compact_small_strings.
20186
20187 2008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20190
20191 2008-02-01 Kenichi Handa <handa@m17n.org>
20192
20193 * coding.c (setup_coding_system): Set coding->common_flags
20194 correctly for raw-text.
20195 (consume_chars): On encoding unibyte text by raw-text, don't check
20196 multibyte form.
20197 (encode_coding): On encoding by raw-text, never use translation tables.
20198
20199 * fileio.c (e_write): Short cut for the case of no encoding.
20200
20201 2008-02-01 Kenichi Handa <handa@m17n.org>
20202
20203 * coding.c (detect_coding, detect_coding_system): Delete unused
20204 variables.
20205
20206 2008-02-01 Kenichi Handa <handa@m17n.org>
20207
20208 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20209 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20210
20211 2008-02-01 Kenichi Handa <handa@m17n.org>
20212
20213 * coding.c (Ffind_coding_systems_region_internal): Include
20214 raw-text and no-conversion in the result.
20215
20216 2008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20219 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20220 FONT_DEF.
20221 (font_def_arg, add_arg, from_arg, to_arg): New args.
20222 (set_fontset_font): Change argument.
20223 (Fset_fontset_font): Fix for the case that TARGET is a script
20224 name and charset name.
20225 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20226
20227 2008-02-01 Kenichi Handa <handa@m17n.org>
20228
20229 * fontset.c (fontset_font): Rename from fontset_face. Change return
20230 value.
20231 (face_suitable_for_char_p, face_for_char): Adjust for the change
20232 of fontset_font.
20233 (make_fontset_for_ascii_face): Fix setting of the fontset element
20234 for ASCII.
20235 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20236 to get a font name.
20237 (Ffontset_info): Adjust for the change of fontset_font.
20238
20239 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20240
20241 * character.h (LEADING_CODE_LATIN_1_MIN)
20242 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20243
20244 2008-02-01 Kenichi Handa <handa@m17n.org>
20245
20246 * editfns.c (check_translation): New function.
20247 (Ftranslate_region_internal): Handle M:N mapping.
20248
20249 2008-02-01 Kenichi Handa <handa@m17n.org>
20250
20251 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20252
20253 2008-02-01 Kenichi Handa <handa@m17n.org>
20254
20255 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20256 goto invalid_code.
20257 (decode_coding_iso_2022): Fix handling of invalid designation.
20258
20259 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20260 after calling code_conversion_save.
20261
20262 2008-02-01 Kenichi Handa <handa@m17n.org>
20263
20264 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20265
20266 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20267
20268 * fontset.c: Include "intervals.h".
20269 (fontset_face): Fix comparing of Lisp_Objects.
20270 (free_face_fontset, new_fontset_from_font_name): Fix
20271 Lisp_Object/int mixup.
20272
20273 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20274
20275 * coding.c: Add many prototypes for static functions.
20276 (get_translation_table): Allow max_lookup to be NULL.
20277 (decode_coding, Ffind_coding_systems_region_internal)
20278 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20279 get_translation_table with max_lookup NULL.
20280
20281 2008-02-01 Kenichi Handa <handa@m17n.org>
20282
20283 * coding.c (get_translation_table): Declare it as Lisp_Object.
20284 (LOOKUP_TRANSLATION_TABLE): New macro.
20285 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20286 instead of CHAR_TABLE_REF.
20287
20288 2008-02-01 Kenichi Handa <handa@m17n.org>
20289
20290 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20291 annotation data format.
20292 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20293 Change arguments FROM and TO to single argument NCHARS. Change caller.
20294 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20295 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20296 (decode_coding_ccl, decode_coding_charset): Pay attention to
20297 coding->charbuf_used.
20298 (get_translation): New function.
20299 (produce_chars): New arguments translation_table and last_block.
20300 Translate characters here. Return number of carryover chars.
20301 Change caller.
20302 (produce_composition): New argument pos. Change caller.
20303 Adjust for the change of annotation data format.
20304 (produce_charset, produce_annotation): Likewise.
20305 (decode_coding, encode_coding): Don't call translate_chars.
20306 (consume_chars): New arg translation_table. Change caller.
20307 (translate_chars): Delete.
20308 (syms_of_coding): Make translation-table's number of extra slots 2.
20309
20310 2008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * search.c (simple_search): Fix setting this_pos_byte in backward
20313 search.
20314
20315 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20316 byte sequence.
20317 (detect_coding_ccl): Fix setting of the variable valids.
20318
20319 2008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20322
20323 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20324
20325 * editfns.c (Ftranslate_region_internal): Rename from
20326 Ftranslate_region. Accept a char-table in TABLE.
20327 (syms_of_editfns): Defsubr Stranslate_region_internal.
20328
20329 * xfaces.c (set_lface_from_font_name): If a font is specified for
20330 a frame, generate a fontset from the font.
20331 (build_scalable_font_name): If the scalable font is requested for
20332 a specific size, don't change that size.
20333 (try_font_list): Try a scalable font also in the case that a
20334 pattern string is specified.
20335
20336 2008-02-01 Kenichi Handa <handa@m17n.org>
20337
20338 * xfaces.c (Fface_font): New optional arg CHARACTER.
20339
20340 2008-02-01 Kenichi Handa <handa@m17n.org>
20341
20342 * charset.h (CHARSET_OFFSET): New macro.
20343
20344 2008-02-01 Kenichi Handa <handa@m17n.org>
20345
20346 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20347
20348 * fontset.c (fontset_face): Handle the case that repertory is a
20349 char-table.
20350 (find_font_encoding): Return nil for unknown encoding.
20351 (Fset_fontset_font): Ignore a font of unknown encoding.
20352
20353 2008-02-01 Kenichi Handa <handa@m17n.org>
20354
20355 * keymap.c (describe_vector): Handle default value of a char table.
20356
20357 * fontset.c (fontset_face): Handle fallback fonts correctly.
20358 (Ffontset_info): Return infomation about fallback fonts.
20359
20360 2008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * fontset.c (FONTSET_DEFAULT): New macro.
20363 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20364 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20365 the case that it is nil.
20366 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20367 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20368
20369 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20370 subset or superset.
20371
20372 2008-02-01 Kenichi Handa <handa@m17n.org>
20373
20374 * emacs.c (main): Call init_charset after syms_of_XXX.
20375
20376 * charset.c (Vcharset_map_directory): Delete.
20377 (Vcharset_map_path): New variable.
20378 (load_charset_map_from_file): Use Vcharset_map_path instead.
20379 (init_charset): Initialize Vcharset_map_path.
20380 (syms_of_charset): Delete declaration of "charset-map-directory",
20381 add declaration of "charset-map-path".
20382
20383 2008-02-01 Kenichi Handa <handa@m17n.org>
20384
20385 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20386 ASCII only string.
20387
20388 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20389
20390 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20391 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20392
20393 2008-02-01 Kenichi Handa <handa@m17n.org>
20394
20395 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20396
20397 * coding.c (QCmnemonic, QCdefalut_char)
20398 (QCdecode_translation_table, QCencode_translation_table)
20399 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20400 (get_translation_table): Return a list of translation tables if
20401 necessary.
20402 (decode_coding): Call get_translation_table with ENCODEP 0.
20403 (char_encodable_p): If translation_table is non-nil, always call
20404 translate_char.
20405 (Fdefine_coding_system_internal): Accept list of translation
20406 tables as :encode-translation-table and :decode-translation-table.
20407 (Fcoding_system_put): New function.
20408 (syms_of_coding): Declare new symbols. Defsubr
20409 Scoding_system_put.
20410 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20411 typically JISX0212.
20412
20413 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20414 when the charset is superset type.
20415
20416 * character.c (translate_char): Accept list of translation tables.
20417
20418 2008-02-01 Kenichi Handa <handa@m17n.org>
20419
20420 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20421 (CODING_ATTR_TRANS_TBL): New macro.
20422
20423 * coding.c (get_translation_table): New function.
20424 (translate_chars): Fix the bug of skipping annotation data.
20425 (decode_coding, encode_coding): Utilize get_translation_table.
20426 (char_encodable_p, Funencodable_char_position): Translate char if
20427 necessary.
20428 (Ffind_coding_systems_region_internal)
20429 (Fcheck_coding_systems_region): Setup translation table for encode
20430 in a coding system attribute vector in advance.
20431 (Fdefine_coding_system_internal): Allow a symbol as translation
20432 table. For shift-jis type coding system, allow 4th charset.
20433
20434 2008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20437
20438 * xdisp.c (get_next_display_element): Pass -1 as POS to
20439 FACE_FOR_CHAR if displaying a C-string.
20440
20441 2008-02-01 Kenichi Handa <handa@m17n.org>
20442
20443 * composite.c (get_composition_id): Handle xoff and yoff in a
20444 composition rule.
20445
20446 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20447 (struct composition): New member lbearing and rbearing.
20448
20449 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20450 (x_get_glyph_overhangs): Handle a composition glyph.
20451 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20452
20453 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20454 composition glyph.
20455
20456 2008-02-01 Kenichi Handa <handa@m17n.org>
20457
20458 * print.c: Include charset.h.
20459 (Vprint_charset_text_property): New variable.
20460 (Qdefault): Extern it.
20461 (PRINT_STRING_NON_CHARSET_FOUND)
20462 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20463 (print_check_string_result): New variable.
20464 (print_check_string_charset_prop): New function.
20465 (print_prune_charset_plist): New variable.
20466 (print_prune_string_charset): New function.
20467 (print_object): Call print_prune_string_charset if
20468 Vprint_charset_text_property is not t.
20469 (print_interval): Print nothing if interval->plist is nil.
20470 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20471 variable. Init and staticpro print_prune_charset_plist.
20472
20473 2008-02-01 Kenichi Handa <handa@m17n.org>
20474
20475 * fontset.c (new_fontset_from_font_name): Use the specified font
20476 for all characters in the new fontset.
20477
20478 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20479 OBJECT args.
20480
20481 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20482 OBJECT args for composition too.
20483
20484 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20485 OBJECT args.
20486
20487 2008-02-01 Kenichi Handa <handa@m17n.org>
20488
20489 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20490
20491 * fontset.c (reorder_font_vector): Adjust for the change of
20492 FONT_DEF format.
20493 (fontset_face): New arg id. Change caller.
20494 (face_for_char): New args pos and object.
20495 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20496 (fs_query_fontset): Check NAME by Fassoc too.
20497 (Fset_fontset_font): Allow non-XLFD font name.
20498 (Ffontset_info): Adjust for the change of FONT_DEF format.
20499
20500 * fontset.h (face_for_char): Adjust prototype.
20501
20502 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20503 (append_space, extend_face_to_end_of_line)
20504 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20505 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20506
20507 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20508 POS and OBJECT args.
20509
20510 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20511 POS and OBJECT args.
20512
20513 2008-02-01 Jason Rumney <jasonr@gnu.org>
20514
20515 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20516 of GlobalAlloc'ed memory.
20517
20518 2008-02-01 Kenichi Handa <handa@m17n.org>
20519
20520 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20521
20522 * charset.h (charset_table_used): Delete extern.
20523
20524 * charset.c (charset_table_used): Make it static.
20525 (map_charset_chars): Fix args to c_function with.
20526
20527 * chartab.c (map_sub_char_table_for_charset): Fix args to
20528 c_function with.
20529
20530 * coding.h (enum coding_result_code): Delete
20531 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20532
20533 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20534 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20535 (Vlast_code_conversion_error): New variables.
20536 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20537 (ONE_MORE_BYTE): Record error if any instead of signaling an
20538 error. If non-ASCII multibyte char is found, return the negative
20539 value of the code. All callers changed to check it.
20540 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20541 (record_conversion_result): New function. Change all codes setting
20542 coding->result to call this function.
20543 (detect_coding_utf_8, decode_coding_utf_8)
20544 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20545 Don't use the local variable incomplete.
20546 (emacs_mule_char): Change the second arg to `const'.
20547 (decode_coding): Fix of flushing out unprocessed data.
20548 (make_conversion_work_buffer): Fix making of a work buffer.
20549 (decode_coding_object): Return coding->dst_object.
20550
20551 * fontset.c (set_fontset_font): Fix args.
20552
20553 * lisp.h (CHARACTERBITS): Define as 22.
20554
20555 * process.c (send_process): Be sure to set coding->src_multibyte.
20556
20557 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20558
20559 2008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * xdisp.c (handle_auto_composed_prop): Give limit to
20562 Fnext_single_char_property_change.
20563
20564 2008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * composite.c (syms_of_composite): Don't make the composition hash
20567 table weak.
20568
20569 * fontset.c (Fset_fontset_font): Fix docstring.
20570
20571 * lisp.h (detect_coding_system): Adjust prototype.
20572
20573 * fileio.c (kill_workbuf_unwind): Delete this function.
20574 (Finsert_file_contents): Adjust the call of detect_coding_system.
20575 Get conversion_buffer by code_conversion_save. Use the macro
20576 CODING_MAY_REQUIRE_DECODING. After decoding, update
20577 coding_system.
20578
20579 * coding.h (make_conversion_work_buffer): Delete extern.
20580 (code_conversion_save): Extern it.
20581
20582 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20583 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20584 (decode_coding_utf_8): Don't do eol converion.
20585 (detect_coding_utf_16): Check coding->src_chars, not
20586 coding->src_bytes. Add heuristics for those that have no signature.
20587 (decode_coding_emacs_mule, decode_coding_iso_2022)
20588 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20589 Don't do eol converion.
20590 (adjust_coding_eol_type): Return a new coding system.
20591 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20592 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20593 each change.
20594 (decode_coding): Pay attention to undo_list. Do eol conversion for
20595 all types of coding-systems (if necessary).
20596 (Vcode_conversion_work_buf_list): Delete it.
20597 (Vcode_conversion_reused_workbuf): Rename from
20598 Vcode_conversion_reused_work_buf.
20599 (Vcode_conversion_workbuf_name): New variable.
20600 (reused_workbuf_in_use): New variable.
20601 (make_conversion_work_buffer): Delete the arg DEPTH.
20602 (code_conversion_restore): Change argument to cons.
20603 (code_conversion_save): Delete the argument BUFFER. Change callers.
20604 (detect_coding_system): New argument src_chars. Change callers.
20605 Fix for utf-16 detection.
20606 (init_coding_once): Don't use ISO_carriage_return.
20607 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20608 reused_workbuf_in_use.
20609
20610 2008-02-01 Kenichi Handa <handa@m17n.org>
20611
20612 * keymap.c (store_in_keymap): Pay attention to the case that idx
20613 is a cons specifying a character range.
20614
20615 2008-02-01 Kenichi Handa <handa@m17n.org>
20616
20617 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20618 HANDLED_RECOMPUTE_PROPS.
20619
20620 * coding.c (Fdefine_coding_system_internal): Fix checking of
20621 ascii compatibility.
20622
20623 2008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * charset.c (find_charsets_in_text): Delete unused locale variable.
20626 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20627
20628 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20629 Resync charset_list to Vemacs_mule_charset_list.
20630
20631 * keymap.c (store_in_keymap): Pay attention to the case that idx
20632 is a cons specifying a character range.
20633
20634 2008-02-01 Kenichi Handa <handa@m17n.org>
20635
20636 * composite.c (update_compositions): Bind inhibit-read-only, etc
20637 to t before calling remove-list-of-text-properties.
20638
20639 * print.c (print_object): Always print ASCII chars as is.
20640
20641 2008-02-01 Kenichi Handa <handa@m17n.org>
20642
20643 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20644
20645 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20646 is a char table.
20647
20648 2008-02-01 Kenichi Handa <handa@m17n.org>
20649
20650 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20651
20652 2008-02-01 Kenichi Handa <handa@m17n.org>
20653
20654 * xfaces.c (set_lface_from_font_name): Fix for the case that
20655 FONTNAME is not fontset name.
20656
20657 2008-02-01 Kenichi Handa <handa@m17n.org>
20658
20659 * fns.c (base64_encode_1): Fix previous change.
20660
20661 2008-02-01 Kenichi Handa <handa@m17n.org>
20662
20663 * fontset.c (set_fontset_font): New function.
20664 (Fset_fontset_font): If a font is specified for a charset, use
20665 map_charset_chars to store the font spec in a fontset.
20666
20667 2008-02-01 Kenichi Handa <handa@m17n.org>
20668
20669 * fontset.c (fontset_face): Create a fallback fontset on demand.
20670 (make_fontset): Don't create a fallback fontset here.
20671 (free_face_fontset): Free a fallback fontset (if any) too.
20672 (n_auto_fontsets): Delete this variable.
20673 (auto_fontset_alist): New variable.
20674 (new_fontset_from_font_name): Check auto_fontset_alist.
20675 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20676 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20677 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20678 Defsubr Sfontset_list_all.
20679
20680 2008-02-01 Kenichi Handa <handa@m17n.org>
20681
20682 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20683
20684 2008-02-01 Kenichi Handa <handa@m17n.org>
20685
20686 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20687
20688 2008-02-01 Kenichi Handa <handa@m17n.org>
20689
20690 * editfns.c (Fgoto_char): Fix docstring.
20691
20692 2008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * insdel.c (insert_from_gap): Adjust intervals correctly.
20695
20696 2008-02-01 Jason Rumney <jasonr@gnu.org>
20697
20698 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20699 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20700 (w32_initialize): Try to load it.
20701 (x_get_font_repertory): Use it if available.
20702 (w32_encode_char): Add shortcut for unicode output.
20703
20704 * w32fns.c (w32_load_system_font): Default charset to -1.
20705 (x_to_w32_charset): Match all fonts for unicode.
20706 (w32_to_x_charset): New parameter matching. Don't return partial
20707 or wildcard charsets.
20708 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20709 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20710 (w32_to_x_font): Match charset to real charset.
20711 (enum_font_cb2): Always list unicode versions.
20712
20713 * makefile.w32-in (temacs): Increase EMHEAP.
20714
20715 2008-02-01 Jason Rumney <jasonr@gnu.org>
20716
20717 * w32term.c (w32_encode_char): New charset parameter.
20718 font_info.encoding becomes encoding_type.
20719 (x_get_font_repertory): New function. Warning: stub only!
20720 (x_new_font): Return quickly if font already set.
20721 (x_new_fontset): fontsetname parameter is Lisp_Object.
20722 Use new fs_query_fontset. Try new_fontset_from_font_name.
20723 Use fontset_name for return value.
20724
20725 * w32term.h: Declare x_get_font_repertory.
20726
20727 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20728 place of find_charset_in_text. Use encode_coding_object in place
20729 of encode_coding.
20730 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20731 decode_coding.
20732
20733 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20734 of x_new_fontset.
20735 (w32_load_system_font): Initialize charset as unicode.
20736 font_info.encoding becomes encoding_type.
20737 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20738 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20739 (syms_of_w32fns): Set get_font_repertory_func.
20740
20741 * w32console.c: Include character.h. Use terminal_encode_buffer
20742 from term.c.
20743 (write_glyphs): Use new version of encode_terminal_code. Use
20744 encode_coding_object in place of encode_coding.
20745
20746 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20747 encoding becomes encoding_type.
20748
20749 * term.c (terminal_encode_buffer): Make externally visible.
20750
20751 * makefile.w32-in: Add character.h dependancies.
20752 (character.o, chartab.o): New targets.
20753
20754 2008-02-01 Kenichi Handa <handa@m17n.org>
20755
20756 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20757 CODING_ID_EOL_TYPE.
20758
20759 2008-02-01 Andreas Schwab <schwab@suse.de>
20760
20761 * coding.c (produce_chars): Revert last change.
20762
20763 2008-02-01 Kenichi Handa <handa@m17n.org>
20764
20765 * charset.h (charset_unicode): Extern it.
20766
20767 * charset.c (string_xstring_p): Check by (C >= 0x100).
20768 (find_charsets_in_text): Change format of the arc CHARSETS. New
20769 arg MULTIBYTE.
20770 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20771 change of find_charsets_in_text.
20772 (Fsplit_char): Fix doc. Never return unknown.
20773
20774 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20775
20776 * coding.c (Fdefine_coding_system_alias): Update
20777 Vcoding_system_list.
20778
20779 * fontset.c (load_font_get_repertory): Pay attention to the case
20780 that ENCODING of a font is specified by a char-table.
20781
20782 * xterm.c (x_get_font_repertory): Handle the case that the
20783 encoding of font is other than Unicode.
20784
20785 2008-02-01 Kenichi Handa <handa@m17n.org>
20786
20787 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20788 if a character is encodable by the terminal coding system. If
20789 not, produces proper number of `?'s. Update
20790 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20791 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20792
20793 2008-02-01 Kenichi Handa <handa@m17n.org>
20794
20795 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20796 variables.
20797 (encode_terminal_code): Change argument. Encode multiple
20798 characters at once. Store the result of encoding in
20799 terminal_encode_buffer.
20800 (write_glyphs, insert_glyphs): Adjust for the change of
20801 encode_terminal_code.
20802 (term_init): Initialize terminal_encode_buffer and
20803 terminal_encode_buf_size.
20804
20805 * coding.c (consume_chars): If coding->src_object is nil, don't
20806 check annotation.
20807
20808 2008-02-01 Kenichi Handa <handa@m17n.org>
20809
20810 * character.c (char_string): Use ASCII_CHAR_P instead of
20811 SINGLE_BYTE_CHAR_P.
20812
20813 2008-02-01 Kenichi Handa <handa@m17n.org>
20814
20815 * xdisp.c (handle_auto_composed_prop): Check if the last
20816 characters of auto-composed region is newly composed with the
20817 following characters.
20818 (handle_composition_prop): Fix checking of point being inside
20819 composition.
20820
20821 2008-02-01 Kenichi Handa <handa@m17n.org>
20822
20823 * fns.c (concat): Don't change multibyteness of the result by
20824 concatenating an 8-bit character.
20825
20826 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20827 multibyteness of the result when newelt is an 8-bit character.
20828
20829 2008-02-01 Dave Love <fx@gnu.org>
20830
20831 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20832 EMACS_INT.
20833
20834 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20835
20836 * xfaces.c (face_numeric_value): Declare dim size_t.
20837 (Finternal_lisp_face_equal_p): Remove unused f.
20838
20839 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20840 (MATRIX_ROW): Remove unused vars.
20841 (draw_glyphs, x_insert_glyphs, fast_find_position)
20842 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20843 byte/char counts.
20844
20845 * regex.c (regex_compile): Remove unused var.
20846
20847 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20848
20849 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20850 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20851
20852 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20853
20854 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20855
20856 * fileio.c (Fwrite_region): Remove unused var.
20857
20858 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20859 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20860
20861 * composite.c (Fremove_list_of_text_properties): Declare.
20862
20863 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20864 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20865 (coding_inherit_eol_type): Remove unused attrs.
20866 (detect_coding): Cast arg of detect_eol.
20867
20868 * charset.c (syms_of_charset): Remove unused var p.
20869 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20870 byte/char counts.
20871
20872 * casetab.c (set_case_table): Remove unused var.
20873
20874 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20875 unused vars.
20876
20877 2008-02-01 Dave Love <fx@gnu.org>
20878
20879 * xterm.c (x_bitmap_mask): Declare.
20880
20881 2008-02-01 Dave Love <fx@gnu.org>
20882
20883 * xterm.c (x_term_init): Fix type error.
20884
20885 * lisp.h: Add Funibyte_char_to_multibyte.
20886
20887 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20888 (Fset_coding_system_priority): Doc fix.
20889
20890 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20891
20892 * indent.c (check_composition): Make start and end EMACS_INT.
20893
20894 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20895
20896 * xdisp.c (handle_composition_prop, check_point_in_composition):
20897 Make buffer positions EMACS_INT.
20898
20899 * composite.c (find_composition, run_composition_function)
20900 (update_compositions, Ffind_composition_internal): Make buffer
20901 positions EMACS_INT.
20902
20903 * composite.h (find_composition, update_compositions): Make
20904 position args EMACS_INT.
20905
20906 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20907
20908 * intervals.c (get_property_and_range):
20909 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20910
20911 * unexalpha.c: Don't include varargs.h.
20912
20913 2008-02-01 Dave Love <fx@gnu.org>
20914
20915 * coding.h (ENCODE_UTF_8): New.
20916
20917 * Makefile.in (gtkutil.o): Depend on coding.h.
20918
20919 * coding.c (Fset_coding_system_priority): Doc fix.
20920
20921 2008-02-01 Kenichi Handa <handa@m17n.org>
20922
20923 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20924 the case of auto saving.
20925
20926 2008-02-01 Andreas Schwab <schwab@suse.de>
20927
20928 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20929 `range' from GC.
20930
20931 2008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20934
20935 2008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 * fileio.c (choose_write_coding_system): Return a decided coding system.
20938 (Fwrite_region): Set Vlast_coding_system_used to the return value
20939 of choose_write_coding_system.
20940
20941 2008-02-01 Kenichi Handa <handa@m17n.org>
20942
20943 * charset.c (Fset_charset_priority): Pay attention to duplicated
20944 arguments.
20945
20946 * coding.c (QCcategory): New variable.
20947 (syms_of_coding): Defsym it. Set all elements of
20948 Vcoding_category_table and their symbol values.
20949 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20950 coding-category-XXX, and coding-category-list.
20951 (Fdefine_coding_system_internal): Add category in the plist.
20952
20953 2008-02-01 Kenichi Handa <handa@m17n.org>
20954
20955 * callproc.c (Fcall_process): Handle carryover correctly.
20956
20957 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20958 (raw_text_coding_system): Check NILP (coding_system).
20959 (coding_inherit_eol_type): Check NILP (coding_system) and
20960 NILP (parent).
20961 (consume_chars): Fix for the case of raw-text.
20962
20963 * process.c (read_process_output): Handle carryover correctly.
20964
20965 2008-02-01 Dave Love <fx@gnu.org>
20966
20967 * regex.c (re_search_2): Fix last change.
20968
20969 2008-02-01 Kenichi Handa <handa@m17n.org>
20970
20971 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20972 target_multibyte. Even in a unibyte case, return a converted
20973 multibyte char.
20974 (GET_CHAR_AFTER): New macro.
20975 (PATFETCH): Translate via multibyte char.
20976 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20977 (SETUP_MULTIBYTE_RANGE): New macro.
20978 (regex_compile): Setup compiled code so that its multibyteness
20979 matches that of a target. Fix the handling of "[X-YZ]" using
20980 SETUP_MULTIBYTE_RANGE.
20981 (analyse_first) <charset>: For filling fastmap for all multibyte
20982 characters, don't check by BASE_LEADING_CODE_P.
20983 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20984 the same as RE_MULTIBYTE_P (bufp) now.
20985 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20986 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20987 (TRANSLATE_VIA_MULTIBYTE): New macro.
20988 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20989 It is the same as RE_MULTIBYTE_P (bufp) now.
20990 <exactn>: Translate via multibyte.
20991 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20992 translate it.
20993 <charset, charset_not>: Fetch a character by
20994 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20995 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20996 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20997 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20998 by GET_CHAR_AFTER.
20999 (bcmp_translate): Likewise.
21000
21001 * search.c (compile_pattern): Check the member target_multibyte,
21002 not the member multibyte of buf.
21003
21004 * lread.c (read1): While reading a string, set force_singlebyte
21005 and force_multibyte correctly.
21006
21007 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21008 up of unibyte_to_multibyte_table.
21009
21010 2008-02-01 Kenichi Handa <handa@m17n.org>
21011
21012 * coding.c (setup_coding_system): If coding has
21013 post-read-conversion or pre-write-conversion, set
21014 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21015 respectively.
21016 (decode_coding_gap): Run post-read-conversion if any.
21017
21018 * fileio.c (Finsert_file_contents): Even if we read into a
21019 unibyte buffer, check if we must decode the result or not.
21020
21021 2008-02-01 Kenichi Handa <handa@m17n.org>
21022
21023 * coding.c (make_conversion_work_buffer): Change the work buffer
21024 name to the same one as that of Emacs 21.
21025
21026 2008-02-01 Kenichi Handa <handa@m17n.org>
21027
21028 * coding.h (make_conversion_work_buffer): Adjust prototype.
21029 (code_conversion_restore): Don't extern it.
21030
21031 * coding.c (detected_mask): Delete unused variable.
21032 (decode_coding_iso_2022): Pay attention to the byte sequence of
21033 CTEXT extended segment, and retain those bytes as is.
21034 (decode_coding_ccl): Delete unused variable `valids'.
21035 (setup_coding_system): Delete unused variable `category'.
21036 (consume_chars): Delete unused variable `category'. Make it work
21037 for non-multibyte case.
21038 (make_conversion_work_buffer): Change argument.
21039 (saved_coding): Delete unused variable.
21040 (code_conversion_restore): Don't check saved_coding->destination.
21041 (code_conversion_save): New function.
21042 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21043 instead of record_unwind_protect.
21044 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21045 (detect_coding_system): Delete unused variable `mask'.
21046 (Fdefine_coding_system_internal): Delete unused variable id.
21047
21048 * fileio.c (kill_workbuf_unwind): New function.
21049 (Finsert_file_contents): On replacing, call
21050 make_conversion_work_buffer with correct args, and call
21051 record_unwind_protect with the first arg kill_workbuf_unwind.
21052
21053 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21054
21055 2008-02-01 Kenichi Handa <handa@m17n.org>
21056
21057 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21058 (fontset_add): Fix for the case that TO is less than TO1.
21059 (Ffontset_info): Don't use fallback fontset on checking the
21060 default fontset.
21061 (dump_fontset): New function for debugging.
21062
21063 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21064 coding_type is Qcharset.
21065
21066 2008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21069 (map_char_table): Don't inherit the value from the parent on
21070 initializing VAL. Adjust for the above change.
21071
21072 2008-02-01 Kenichi Handa <handa@m17n.org>
21073
21074 * coding.c (Qsignature, Qendian): Delete these variables.
21075 (syms_of_coding): Don't initialize them.
21076 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21077 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21078 detect_info->found.
21079 (decode_coding_utf_16): Don't detect BOM here.
21080 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21081 is NOT utf_16_without_bom.
21082 (setup_coding_system): For a coding system of type utf-16, check
21083 if the attribute :endian is Qbig or not (not nil or not), and set
21084 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21085 (detect_coding): If coding type is utf-16 and BOM detection is
21086 required, detect it.
21087 (Fdefine_coding_system_internal): For a coding system of type
21088 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21089
21090 2008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * coding.c (coding_set_source): Fix for the case that the current
21093 buffer is different from coding->src_object.
21094 (decode_coding_object): Don't use the conversion work buffer if
21095 DST_OBJECT is a buffer.
21096
21097 2008-02-01 Dave Love <fx@gnu.org>
21098
21099 * lread.c (read_emacs_mule_char) [len==2]: Index
21100 emacs_mule_charset correctly.
21101
21102 2008-02-01 Dave Love <fx@gnu.org>
21103
21104 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21105 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21106 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21107 treated specially.)
21108 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21109 (detected_mask): Remove Big5 bits.
21110
21111 2008-02-01 Kenichi Handa <handa@m17n.org>
21112
21113 The following changes are to make the font rescaling facility
21114 compatible with Emacs 21.
21115
21116 * xfaces.c (Vface_font_rescale_alist): Rename from
21117 Vface_resizing_fonts.
21118 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21119 (font_rescale_ratio): Rename from font_resizing_ratio.
21120 (split_font_name): Set font->rescale_ratio.
21121 (better_font_p): Pay attention to font->rescale_ratio.
21122 (build_scalable_font_name): Likewise. Change RESX, and RESY
21123 fields.
21124 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21125
21126 2008-02-01 Kenichi Handa <handa@m17n.org>
21127
21128 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21129 (Qutf_16_le): Remove these variables.
21130 (syms_of_coding): Don't DEFSYM them.
21131 (decode_coding_utf_16): Fix handling of BOM.
21132 (encode_coding_utf_16): Fix handling of BOM.
21133
21134 2008-02-01 Kenichi Handa <handa@m17n.org>
21135
21136 * fileio.c (Finsert_file_contents): On replacing, before decoding
21137 the file into the work buffer, set point of the work buffer to the end.
21138
21139 2008-02-01 Dave Love <fx@gnu.org>
21140
21141 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21142
21143 2008-02-01 Dave Love <fx@gnu.org>
21144
21145 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21146 and fix C types.
21147
21148 2008-02-01 Kenichi Handa <handa@m17n.org>
21149
21150 * xdisp.c (SKIP_GLYPHS): New macro.
21151 (set_cursor_from_row): Pay attention to string display properties.
21152
21153 * category.c (copy_category_entry): Fix for the case that RANGE
21154 is an integer.
21155
21156 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21157
21158 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21159
21160 2008-02-01 Kenichi Handa <handa@m17n.org>
21161
21162 * charset.c (Fcharset_id_internal): New function.
21163 (syms_of_charset): Defsubr it.
21164
21165 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21166 with the last arg charset_list acquired from coding.
21167 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21168 the attribute coding_attr_ccl_valids.
21169
21170 * coding.h (enum define_coding_ccl_arg_index): Set the first
21171 member coding_arg_ccl_decoder to coding_arg_max.
21172
21173 * ccl.h (ccl_driver): Adjust prototype.
21174
21175 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21176 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21177 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21178 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21179 last arg Qnil.
21180
21181 2008-02-01 Kenichi Handa <handa@m17n.org>
21182
21183 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21184 call encode_char.
21185
21186 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21187
21188 2008-02-01 Dave Love <fx@gnu.org>
21189
21190 * composite.c (syms_of_composite): Make composition_hash_table weak.
21191
21192 2008-02-01 Kenichi Handa <handa@m17n.org>
21193
21194 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21195 (font_name_registry): Don't extern them.
21196 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21197
21198 * fontset.h (Qfontset): Don't extern it.
21199 (new_fontset_from_font_name): Extern it.
21200
21201 * fontset.c: Give 8 extra slots to fontset objects.
21202 (Qfontset_info): New variable.
21203 (syms_of_fontset): Defsym it.
21204 (FONTSET_FALLBACK): New macro.
21205 (fontset_face): Try also the default fontset.
21206 (make_fontset): Realize a fallback fontset from the default fontset.
21207 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21208 using split_font_name_into_vector and build_font_name_from_vector.
21209 (Fset_fontset_font): Access the elements of font_spec by enum
21210 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21211 name by using split_font_name_into_vector.
21212 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21213 generate a proper font name from the fontset name. Update
21214 Vfontset_alias_alist.
21215 (n_auto_fontsets): New variable.
21216 (new_fontset_from_font_name): New function.
21217 (Ffont_info): Store the information about fonts generated from the
21218 default fontset in the first extra slot of the returned char-table.
21219
21220 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21221 (font_name_registry): Delete function.
21222 (split_font_name_into_vector): New function.
21223 (build_font_name_from_vector): New function.
21224 (font_list): The argument REGISTRY is now a list of registry names.
21225 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21226 specifies an explicit font name, return the name as is. Make a
21227 list of registy names.
21228
21229 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21230 of x_new_fontset.
21231 (Fx_create_frame): Don't call x_new_fontset here. Just use
21232 x_list_fonts to check the existence of fonts.
21233
21234 * xterm.h (x_new_fontset): Adjust prototype.
21235
21236 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21237 string. Use new_fontset_from_font_name to create a fontset from a
21238 font name.
21239
21240 2008-02-01 Kenichi Handa <handa@m17n.org>
21241
21242 * syntax.c (Vfind_word_boundary_function_table): New name for
21243 Vnext_word_boundary_function_table.
21244 (find-word-boundary-function-table): New name for
21245 next-word-boundary-function-table.
21246
21247 2008-02-01 Dave Love <fx@gnu.org>
21248
21249 * Makefile.in: Fix some dependencies.
21250
21251 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21252 set it to nil before returning.
21253
21254 * composite.c (update_compositions): Fix type error.
21255
21256 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21257
21258 2008-02-01 Kenichi Handa <handa@m17n.org>
21259
21260 * xterm.c (x_new_font): Optimize for the case that the font is
21261 already set for the frame.
21262
21263 2008-02-01 Kenichi Handa <handa@m17n.org>
21264
21265 * chartab.c (char_table_ascii): Check if the char table contents
21266 is sub-char-table or not.
21267 (char_table_set, char_table_set_range): Fix argument to
21268 char_table_ascii.
21269
21270 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21271 (detect_coding_utf_8, detect_coding_utf_16)
21272 (detect_coding_emacs_mule, detect_coding_iso_2022)
21273 (detect_coding_sjis, detect_coding_big5)
21274 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21275 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21276 sequence is valid in this coding system. Change callers.
21277 (MAX_ANNOTATION_LENGTH): New macro.
21278 (ADD_ANNOTATION_DATA): New macro.
21279 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21280 ADD_ANNOTATION_DATA. Change the format of annotation data.
21281 (ADD_CHARSET_DATA): New macro.
21282 (emacs_mule_char): New argument ID. Change callers.
21283 (decode_coding_emacs_mule, decode_coding_iso_2022)
21284 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21285 Produce charset annotation data in coding->charbuf.
21286 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21287 to charset annotation data in coding->charbuf.
21288 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21289 coding->common_flags if the coding system is iso-2022 based and
21290 uses designation.
21291 (produce_composition): Adjust for the new annotation data format.
21292 (produce_charset): New function.
21293 (produce_annotation): Handle charset annotation.
21294 (handle_composition_annotation, handle_charset_annotation): New
21295 functions.
21296 (consume_chars): Handle charset annotation. Utilize the above two
21297 functions.
21298 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21299 buffer, get the deleted text as a string and set
21300 coding->src_object to that string.
21301 (detect_coding, detect_coding_system): Use the new struct
21302 coding_detection_info.
21303
21304 * coding.h (struct coding_detection_info): New structure.
21305 (struct coding_system): Adjust prototype of the member `detector'.
21306 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21307
21308 2008-02-01 Kenichi Handa <handa@m17n.org>
21309
21310 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21311
21312 2008-02-01 Dave Love <fx@gnu.org>
21313
21314 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21315 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21316 to new local and nullify apropos_accumulate before returning.
21317 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21318
21319 2008-02-01 Kenichi Handa <handa@m17n.org>
21320
21321 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21322 correctly.
21323
21324 2008-02-01 Dave Love <fx@gnu.org>
21325
21326 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21327
21328 2008-02-01 Kenichi Handa <handa@m17n.org>
21329
21330 The following changes are to make character composition happen
21331 automatically on displaying.
21332
21333 * Makefile.in (lisp, shortlisp): Add composite.elc.
21334
21335 * composite.h (Qauto_composed, Vauto_composition_function)
21336 (Qauto_composition_function): Extern them.
21337
21338 * composite.c (Vcomposition_function_table)
21339 (Qcomposition_function_table): Delete variables.
21340 (Qauto_composed, Vauto_composition_function)
21341 (Qauto_composition_function): New variables.
21342 (run_composition_function): Don't call
21343 compose-chars-after-function.
21344 (update_compositions): Clear `auto-composed' text property.
21345 (compose_chars_in_text): Delete this function.
21346 (syms_of_composite): Staticpro Qauto_composed and
21347 Qauto_composition_function. Declare Vauto_composition_function as
21348 a Lisp variable.
21349
21350 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21351
21352 * xdisp.c (it_props): Add an entry for Qauto_composed.
21353 (handle_auto_composed_prop): New function.
21354
21355 * xselect.c (selection_data_to_lisp_data): Don't call
21356 compose_chars_in_text.
21357
21358 2008-02-01 Dave Love <fx@gnu.org>
21359
21360 * keyboard.c (read_char): Modify checking around use of
21361 Vkeyboard_translate_table.
21362
21363 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21364 and fix C types.
21365
21366 2008-02-01 Kenichi Handa <handa@m17n.org>
21367
21368 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21369 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21370 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21371 the case that the last byte is '\r' correctly.
21372 (decode_coding): Flush out the unprocessed data correctly.
21373 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21374
21375 2008-02-01 Dave Love <fx@gnu.org>
21376
21377 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21378 Add XK_ISO... case.
21379 (xaw_scroll_callback): Revert last change.
21380
21381 2008-02-01 Kenichi Handa <handa@m17n.org>
21382
21383 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21384
21385 2008-02-01 Kenichi Handa <handa@m17n.org>
21386
21387 * xfaces.c (Vface_resizing_fonts): New variable.
21388 (struct font_name): New member `resizing_ratio'.
21389 (font_resizing_ratio): New function.
21390 (split_font_name): Set font->resizing_ratio.
21391 (better_font_p): Pay attention to font->resizing_ratio.
21392 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21393 RESX, and RESY fields.
21394 (try_alternative_families): Try scalable fonts if
21395 Vscalable_fonts_allowed is not Qt.
21396 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21397
21398 2008-02-01 Dave Love <fx@gnu.org>
21399
21400 * xterm.c (xaw_scroll_callback): Cast correctly.
21401
21402 2008-02-01 Dave Love <fx@gnu.org>
21403
21404 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21405 (lispy_kana_keys): Comment out.
21406 (make_lispy_event) [XK_kana_A]: Comment out.
21407
21408 * xterm.c (xaw_scroll_callback): Cast call_data.
21409 (XTread_socket): Deal with ASCII keysyms.
21410 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21411
21412 2008-02-01 Dave Love <fx@gnu.org>
21413
21414 * xterm.c (Vx_keysym_table): New.
21415 (syms_of_xterm): Initialize it.
21416 (XTread_socket): Use it.
21417 From head: Eliminate incorrect optimization that tried to avoid
21418 decoding the output of X*LookupString.
21419 (x_get_font_repertory): Delete charset declaration.
21420
21421 2008-02-01 Kenichi Handa <handa@m17n.org>
21422
21423 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21424 return 0.
21425 (Fdefine_coding_system_internal): Setup
21426 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21427
21428 2008-02-01 Dave Love <fx@gnu.org>
21429
21430 * coding.c (Fcheck_coding_system): Doc fix.
21431
21432 * editfns.c (Finsert_byte): Return a proper value.
21433
21434 2008-02-01 Kenichi Handa <handa@m17n.org>
21435
21436 * coding.c (decode_coding): Fix args to translate_chars. Pay
21437 attention to Vstandard_translation_table_for_decode.
21438 (encode_coding): Fix args to translate_chars. Pay attention to
21439 Vstandard_translation_table_for_encode.
21440
21441 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21442 SINGLE_BYTE_CHAR_P.
21443
21444 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21445 not by SINGLE_BYTE_CHAR_P.
21446
21447 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21448 SINGLE_BYTE_CHAR_P.
21449
21450 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21451 SINGLE_BYTE_CHAR_P.
21452
21453 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21454 by SINGLE_BYTE_CHAR_P.
21455
21456 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21457 SINGLE_BYTE_CHAR_P.
21458
21459 2008-02-01 Dave Love <fx@gnu.org>
21460
21461 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21462
21463 2008-02-01 Dave Love <fx@gnu.org>
21464
21465 * fns.c (Flanginfo): Fix typo.
21466
21467 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21468
21469 2008-02-01 Kenichi Handa <handa@m17n.org>
21470
21471 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21472 (detect_coding_emacs_mule, detect_coding_iso_2022)
21473 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21474 incomplete byte sequence. Don't update *mask when correctly detected.
21475 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21476 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21477 (detect_coding, detect_coding_system): Adjust for the changes above.
21478
21479 2008-02-01 Kenichi Handa <handa@m17n.org>
21480
21481 * character.c (char_string): Rename from
21482 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21483 (string_char): Rename from string_char.
21484
21485 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21486 if C is greater than MAX_3_BYTE_CHAR.
21487 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21488 string_char instead of string_char_with_unification.
21489
21490 2008-02-01 Dave Love <fx@gnu.org>
21491
21492 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21493
21494 2008-02-01 Kenichi Handa <handa@m17n.org>
21495
21496 * keymap.c (push_key_description): Pay attention to force_multibyte.
21497
21498 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21499
21500 2008-02-01 Dave Love <fx@gnu.org>
21501
21502 * charset.c (define_charset_internal): Rename `supprementary'.
21503
21504 * Makefile.in (lisp, shortlisp): Remove latin-N.
21505
21506 2008-02-01 Dave Love <fx@gnu.org>
21507
21508 * xfns.c (x_window, x_window): Use use_xim.
21509
21510 * xterm.c (use_xim): Initialize.
21511 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21512 (x_term_init): Maybe set use_xim.
21513
21514 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21515
21516 2008-02-01 Kenichi Handa <handa@m17n.org>
21517
21518 * search.c (search_buffer): Fix case-fold-search of multibyte
21519 characters.
21520 (boyer_moore): Rename the last argument to char_high_bits.
21521
21522 2008-02-01 Kenichi Handa <handa@m17n.org>
21523
21524 * xdisp.c (display_string): Fix for the case of zero width glyph.
21525
21526 * xfns.c (x_set_font): Change the error message of the case that
21527 x_new_fontset returns Qt.
21528
21529 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21530 (Finternal_set_lisp_face_attribute): Use signal_error for the
21531 error of invalid fontset.
21532
21533 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21534 fontset, return Qt.
21535
21536 2008-02-01 Dave Love <fx@gnu.org>
21537
21538 * unexelf.c (unexec): Make .got handling not SGI-specific.
21539
21540 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21541
21542 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21543
21544 * keyboard.c (read_key_sequence): Fix type error.
21545
21546 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21547 type error.
21548
21549 * fontset.c (fontset_add): Return Lisp_Object.
21550
21551 2008-02-01 Dave Love <fx@gnu.org>
21552
21553 * charset.h (charset_ordered_list_tick): Declare extern.
21554
21555 2008-02-01 Kenichi Handa <handa@m17n.org>
21556
21557 The following changes (and some of 2008-02-01 changes of mine) are
21558 for handling syntax, category, and case conversion for unibyte
21559 characters by converting them to multibyte on the fly. With these
21560 changes, we don't have to setup syntax and case tables for unibyte
21561 characters in each language environment.
21562
21563 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21564 multibyte if necessary.
21565
21566 * bytecode.c (Fbyte_code): Likewise.
21567
21568 * character.h (LEADING_CODE_LATIN_1_MIN)
21569 (LEADING_CODE_LATIN_1_MAX): New macros.
21570 (unibyte_to_multibyte_table): Extern it.
21571 (unibyte_char_to_multibyte): New macro.
21572 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21573 (CHAR_LEADING_CODE): New macro.
21574 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21575
21576 * character.c (unibyte_to_multibyte_table): New variable.
21577 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21578 (multibyte_char_to_unibyte): If C is an eight-bit character,
21579 convert it to the corresponding byte value.
21580
21581 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21582 not 1, signals an error. Update the elements of
21583 unibyte_to_multibyte_table.
21584 (init_charset_once): Initialize unibyte_to_multibyte_table.
21585 (syms_of_charset): Define the charset `iso-8859-1'.
21586
21587 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21588 as is without converting it to unibyte. In a unibyte buffer,
21589 convert C to multibyte before checking the syntax.
21590
21591 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21592
21593 * minibuf.c (Fminibuffer_complete_word): Use the macro
21594 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21595
21596 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21597
21598 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21599 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21600 that is zero, convert an eight-bit char to multibyte.
21601 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21602 non-emacs case.
21603 (PATFETCH): Convert an eight-bit char to multibyte.
21604 (HANDLE_UNIBYTE_RANGE): New macro.
21605 (regex_compile): Setup the compiled pattern for multibyte chars
21606 even if the given regex string is unibyte. Use PATFETCH_RAW
21607 instead of PATFETCH in many places. To handle `charset'
21608 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21609 only for ASCII chars.
21610 (analyse_first) <exactn>: Simplify because the compiled pattern
21611 is multibyte.
21612 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21613 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21614 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21615 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21616 multibyte always 1.
21617 (re_search_2): In emacs, set the locale variable multibyte to 1,
21618 otherwise to 0. New local variable target_multibyte. Check it
21619 to decide the multibyteness of STR1 and STR2. If
21620 target_multibyte is zero, convert unibyte chars to multibyte
21621 before translating and checking fastmap.
21622 (TARGET_CHAR_AND_LENGTH): New macro.
21623 (re_match_2_internal): In emacs, set the locale variable multibyte
21624 to 1, otherwise to 0. New local variable target_multibyte. Check
21625 it to decide the multibyteness of STR1 and STR2. Use
21626 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21627 <charset, charset_not>: If multibyte is nonzero, check fastmap
21628 only for ASCII chars. Call bcmp_translate with
21629 target_multibyte, not with multibyte.
21630 <begline>: Declare the local variable C as `unsigned'.
21631 (bcmp_translate): Change the last arg name to target_multibyte.
21632
21633 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21634 the regexp pattern and the matching target. Set cp->buf.multibyte
21635 to the multibyteness of the regexp pattern. Set
21636 cp->but.target_multibyte to the multibyteness of the matching target.
21637 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21638 FETCH_STRING_CHAR_ADVANCE.
21639 (Freplace_match): Convert unibyte chars to multibyte.
21640
21641 * syntax.c (char_quoted, back_comment, scan_words)
21642 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21643 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21644 unibyte chars to multibyte.
21645 (skip_chars): Delete the arg syntaxp, and move the code for
21646 handling syntaxes to skip_syntaxes. Change callers.
21647 Fix the case that the multibyteness of STRING and the current
21648 buffer doesn't match.
21649 (skip_syntaxes): New function.
21650 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21651 SINGLE_BYTE_CHAR_P.
21652
21653 2008-02-01 Kenichi Handa <handa@m17n.org>
21654
21655 * xfaces.c (QCfontset): New variable.
21656 (LFACE_FONTSET): New macro.
21657 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21658 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21659 (Finternal_set_lisp_face_attribute)
21660 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21661 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21662 check also LFACE_FONTSET_INDEX.
21663 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21664 attrs[LFACE_FONT_INDEX].
21665 (syms_of_xfaces): Intern and staticpro QCfontset.
21666
21667 * dispextern.h (enum lface_attribute_index): New member
21668 LFACE_FONTSET_INDEX.
21669
21670 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21671
21672 2008-02-01 Kenichi Handa <handa@m17n.org>
21673
21674 * coding.c (coding_set_destination): Fix coding->destination for
21675 the case converting a region.
21676 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21677 (encode_coding_object): Fix coding->dst_pos and
21678 coding->dst_pos_byte for the case converting a region.
21679
21680 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21681
21682 * character.h (BYTE8_STRING): New macro.
21683
21684 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21685
21686 2008-02-01 Kenichi Handa <handa@m17n.org>
21687
21688 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21689 characters by octal form.
21690
21691 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21692
21693 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21694 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21695 _fetch_multibyte_char_len.
21696 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21697
21698 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21699
21700 * casefiddle.c (casify_object): Simplify. Handle the case that
21701 the case conversion change the byte length.
21702 (casify_region): Likewise.
21703
21704 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21705
21706 * character.c (_fetch_multibyte_char_len): Delete this variable.
21707 (syms_of_character): Setup Vprintable_chars.
21708
21709 * editfns.c (Fchar_equal): Fix for the unibyte case.
21710 (Finsert_byte): New function.
21711 (syms_of_editfns): Defsubr it.
21712
21713 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21714 of direct code 0x3ffff.
21715
21716 * search.c (Freplace_match): Fix for the unibyte case.
21717
21718 2008-02-01 Kenichi Handa <handa@m17n.org>
21719
21720 * lread.c (safe_to_load_p): Fix the logic.
21721
21722 * syntax.c (scan_words): Don't treat characters belonging to
21723 different scripts as constituting a word.
21724
21725 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21726
21727 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21728
21729 * emacs.c (main): In the case of --unibyte, instead of aborting on
21730 finding non-empty buffer, make it unibyte.
21731
21732 2008-02-01 Kenichi Handa <handa@m17n.org>
21733
21734 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21735 to create a fontset.
21736
21737 2008-02-01 Dave Love <fx@gnu.org>
21738
21739 * character.c (Funibyte_char_to_multibyte): Doc fix.
21740
21741 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21742
21743 2008-02-01 Kenichi Handa <handa@m17n.org>
21744
21745 * fontset.c (fontset_add): Make the type `int'.
21746 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21747
21748 * character.c (unibyte_char_to_multibyte)
21749 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21750 charset_unibyte, not charset_primary.
21751
21752 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21753
21754 * charset.c (charset_unibyte): Rename from charset_primary.
21755 (Funibyte_charset): Rename from Fprimary_charset.
21756 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21757 (syms_of_charset): Adjust for the above changes.
21758
21759 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21760 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21761 it->multibyte_p is zero.
21762
21763 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21764 Delete extern.
21765
21766 2008-02-01 Kenichi Handa <handa@m17n.org>
21767
21768 * coding.c (Fdefine_coding_system_internal): Fix category setting
21769 for a coding system of type iso-2022.
21770
21771 2008-02-01 Kenichi Handa <handa@m17n.org>
21772
21773 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21774
21775 2008-02-01 Kenichi Handa <handa@m17n.org>
21776
21777 * syntax.c (Vnext_word_boundary_function_table): New variable.
21778 (next-word-boundary-function-table): Declare it as a Lisp variable
21779 in syms_of_syntax.
21780 (scan_words): Call functions in Vnext_word_boundary_function_table
21781 if any.
21782
21783 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21784
21785 * fontset.c (fs_load_font): If fontp->charset is not negative,
21786 return fontp without setting its members.
21787
21788 2008-02-01 Dave Love <fx@gnu.org>
21789
21790 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21791
21792 * m/sparc.h (HAVE_ALLOCA): Delete.
21793
21794 * s/irix6-5.h: Don't include strings.h.
21795 (bcopy, bzero, bcmp): Don't undef.
21796
21797 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21798
21799 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21800 (TIOCSIGSEND): Don't test IRIX6.
21801 (bcopy, bzero, bcmp): Define conditionally.
21802
21803 2008-02-01 Kenichi Handa <handa@m17n.org>
21804
21805 * buffer.c (Qas, Qmake, Qto): New variables.
21806 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21807 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21808
21809 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21810 we are inserting a process output into a multibyte buffer.
21811
21812 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21813 multibyte_char_to_unibyte.
21814
21815 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21816 by the primary charset, make it eight-bit char.
21817 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21818
21819 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21820 (charset_8_bit__control, charset_8_bit_graphic)
21821 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21822 (define_charset_internal): New function.
21823 (syms_of_charset): Call define_charset_internal for pre-defined
21824 charsets.
21825
21826 * charset.h (charset_8_bit): Extern it.
21827
21828 * coding.c (make_conversion_work_buffer): Adjust for the change
21829 of Fset_buffer_multibyte.
21830 (encode_coding_raw_text): Increment p0 in the loop.
21831
21832 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21833
21834 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21835 for the change of Fset_buffer_multibyte.
21836
21837 * fns.c (Fstring_to_multibyte): New function.
21838 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21839
21840 2008-02-01 Dave Love <fx@gnu.org>
21841
21842 * xfns.c (x_put_x_image): Declare args.
21843
21844 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21845 (try_font_list): Declare an arg.
21846
21847 * xdisp.c (message2_nolog, set_message): Declare an arg.
21848
21849 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21850
21851 * syntax.c (scan_sexps_forward): Declare an arg.
21852
21853 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21854 Declare an arg.
21855
21856 * lisp.h (Fnew_fontset): Declare.
21857
21858 * keymap.c (push_key_description): Call CHARACTERP correctly.
21859
21860 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21861 (face_for_char): Delete unused vars.
21862 (Fset_fontset_font): Doc fix. Delete unused vars.
21863
21864 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21865
21866 * composite.c (update_compositions): Declare arg.
21867
21868 * cm.c (calccost, cmgoto): Declare args.
21869
21870 * charset.c: Remove `emacs' conditional. Doc fixes.
21871 (map_char_table_for_charset): Declare.
21872
21873 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21874
21875 * ccl.c: Remove `emacs' conditional.
21876
21877 2008-02-01 Kenichi Handa <handa@m17n.org>
21878
21879 The following changes are to allow specifying multiple font
21880 patterns for a character range (specified by script or charset).
21881
21882 * Makefile.in (abbrev.o): Depend on syntax.h.
21883 (xfaces.o): Depend on charset.h.
21884
21885 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21886 SINGLE_BYTE_CHAR_P.
21887
21888 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21889
21890 * character.h (Vchar_script_table): Extern it.
21891
21892 * character.c (Vscript_alist): Delete.
21893 (Vchar_script_table, Qchar_script_table): New variable.
21894 (syms_of_character): Declare Vchar_script_table as a lisp variable
21895 and initialize it.
21896
21897 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21898 have property char-table-extra-slots, make no extra slot.
21899
21900 * dispextern.h (struct face): Delete member `charset'.
21901 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21902 SINGLE_BYTE_CHAR_P.
21903 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21904 Add prototypes.
21905 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21906 (generate_ascii_font_name): Rename from generate_ascii_font.
21907
21908 * fontset.h (get_font_repertory_func): New prototype.
21909 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21910 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21911
21912 * fontset.c (Qprepend, Qappend): New variables.
21913 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21914 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21915 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21916 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21917 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21918 (load_font_get_repertory): New functions.
21919 (fontset_set): Delete.
21920 (fontset_face): New arg FACE. Return face ID, not face.
21921 Complete re-write to handle new fontset structure. Change caller.
21922 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21923 (face_for_char): Don't call lookup_face.
21924 (make_fontset_for_ascii_face): New arg FACE.
21925 (fs_load_font): New arg CHARSET_ID. Don't check
21926 Vfont_encoding_alist here.
21927 (find_font_encoding): New function.
21928 (list_fontsets): Use STRINGP, not ! NILP.
21929 (accumulate_script_ranges): New function.
21930 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21931 re-written to handle new fontset structure.
21932 (Ffontset_font): Return a copy of element.
21933 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21934 docstring of font-encoding-alist.
21935
21936 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21937 (Fset_fotset_font): Fix arguments to 5.
21938
21939 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21940
21941 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21942 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21943 (highlight_trailing_whitespace): Adjust for the change of
21944 lookup_named_face.
21945
21946 * xfaces.c: Include charset.h.
21947 (load_face_font): Delete argument C. Change caller.
21948 (generate_ascii_font_name): Rename from generate_ascii_font.
21949 (font_name_registry): New function.
21950 (cache_face): Store ascii faces before non-ascii faces in buckets.
21951 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21952 Lookup only ascii faces.
21953 (lookup_non_ascii_face): New function.
21954 (lookup_named_face): Delete argument C. Change caller.
21955 (lookup_derived_face): Delete argument C. Change caller.
21956 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21957 a string, just call font_list with it.
21958 (choose_face_font): Delete arguments FACE and C. New arg
21959 FONT_SPEC. Change caller.
21960 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21961 Change caller.
21962 (realize_non_ascii_face): New function.
21963 (realize_x_face): Call load_face_font here.
21964 (realize_tty_face): Delete argument C. Change caller.
21965 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21966 get a face ID.
21967 (dump_realized_face): Don't print charset of FACE.
21968
21969 * xfns.c (x_set_font): Always call x_new_fontset and
21970 store_frame_parameter.
21971 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21972 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21973
21974 * xterm.h (x_get_font_repertory): Extern it.
21975
21976 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21977 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21978 it->multibyte_p is zero.
21979 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21980 (x_new_fontset): If FONTSETNAME doesn't match any existing
21981 fontsets, create a new one.
21982 (x_get_font_repertory): New function.
21983
21984 2008-02-01 Kenichi Handa <handa@m17n.org>
21985
21986 * coding.c (Ffind_coding_systems_region_internal): Detect an
21987 ASCII only string correctly.
21988
21989 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21990 version is 0.
21991
21992 2008-02-01 Kenichi Handa <handa@m17n.org>
21993
21994 * lread.c: Include "coding.h".
21995 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21996 (load_each_byte, unread_char): New variables.
21997 (readchar_backlog): Delete.
21998 (readchar): Return a character unless load_each_byte is nonzero.
21999 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22000 cons. If unread_char is not -1, simply return it.
22001 (unreadchar): Handle the case that readcharfun is
22002 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22003 (read_multibyte): Delete.
22004 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22005 (read_emacs_mule_char): New functions.
22006 (Fload): Even if the file doesn't have the extension ".elc", if
22007 safe_to_load_p returns a positive version number, assume that the
22008 file contains bytecompiled code. If the version is less than 22,
22009 load the file while decoding multibyte sequences by emacs-mule.
22010 (readevalloop): Don't use readchar_backlog.
22011 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22012 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22013 (read_escape): Delete the arg BYTEREP.
22014 (read1): Set load_each_byte to 1 temporarily while handling
22015 #@NUMBER. Don't call read_multibyte.
22016 (read_vector): Call Fread with a cons. If readcharfun is
22017 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22018 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22019 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22020 and Qload_force_doc_strings.
22021
22022 2008-02-01 Kenichi Handa <handa@m17n.org>
22023
22024 * xdisp.c (face_before_or_after_it_pos): Call
22025 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22026
22027 2008-02-01 Kenichi Handa <handa@m17n.org>
22028
22029 * character.h (TRAILING_CODE_P): New macro.
22030 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22031 (string_char_with_unification): Fix prototype.
22032 (Vscript_alist): Extern it.
22033
22034 * character.c (Vscript_alist): New variable.
22035 (string_char_with_unification, str_as_unibyte)
22036 (string_escape_byte8): Add `const' to local variables.
22037 (syms_of_character): Declare script-alist as a Lisp variable.
22038
22039 * charset.h (Vcharset_ordered_list): Extern it.
22040 (charset_ordered_list_tick): Extern it.
22041 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22042 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22043 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22044 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22045 (Funify_charset): Adjust for the change of Funify_charset.
22046
22047 * charset.c (charset_ordered_list_tick): New variable.
22048 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22049 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
22050 deunify instead of unify a charset.
22051 (string_xstring_p): Add `const' to local variables.
22052 (find_charsets_in_text): Add `const' to arguments and local variables.
22053 (encode_char): Adjust for the change of Funify_charset. Fix
22054 detecting of invalid code.
22055 (Fset_charset_priority): Increment charset_ordered_list_tick.
22056 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22057 and TO_CODE.
22058
22059 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22060 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22061 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22062 (decode_coding_ccl, consume_chars)
22063 (Ffind_coding_systems_region_internal)
22064 (Fcheck_coding_systems_region): Add `const' to local variables.
22065
22066 * print.c (print_object): Use octal form for printing the
22067 contents of a bool vector.
22068
22069 2008-02-01 Dave Love <fx@gnu.org>
22070
22071 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22072 <version == 20>: Refuse to load.
22073
22074 2008-02-01 Dave Love <fx@gnu.org>
22075
22076 * fns.c: Move coding.h.
22077 (Qcodeset, Qdays, Qmonths): New.
22078 (concat): Use CHARACTERP instead of INTEGERP.
22079 (Flocale_codeset): Delete.
22080 (Flanginfo): New function.
22081 (syms_of_fns): Change accordingly.
22082
22083 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22084
22085 2008-02-01 Dave Love <fx@gnu.org>
22086
22087 * casetab.c (init_casetab_once, init_casetab_once): Fix
22088 CHAR_TABLE_SET call.
22089
22090 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22091
22092 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22093
22094 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22095 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22096 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22097
22098 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22099
22100 * coding.c (ENCODE_DESIGNATION, decode_eol)
22101 (make_conversion_work_buffer, code_conversion_restore)
22102 (Fdefine_coding_system_internal): Convert Lisp types.
22103 (code_conversion_restore): Use EQ, not ==.
22104 (Fencode_coding_string): Fix code_convert_string call.
22105
22106 * coding.h (code_convert_region): Fix prototype.
22107
22108 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22109
22110 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22111 (Ffontset_info): Convert Lisp types.
22112
22113 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22114
22115 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22116
22117 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22118
22119 * chartab.c: Include "...h", not <...h> in some cases.
22120
22121 * callproc.c (Fcall_process): Remove unused variables.
22122
22123 2008-02-01 Dave Love <fx@gnu.org>
22124
22125 * coding.c (Fset_coding_system_priority): Allow null arg list.
22126
22127 2008-02-01 Dave Love <fx@gnu.org>
22128
22129 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22130 (Fself_insert_and_exit): Use CHARACTERP.
22131
22132 * callproc.c (Fcall_process): Remove unused vars.
22133
22134 * xterm.c (XTread_socket): Add extra dead keysyms.
22135
22136 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22137
22138 * dispextern.h: Remove prototypes for redraw_frame,
22139 redraw_garbaged_frames.
22140
22141 * cmds.c (Fself_insert_command): Use CHARACTERP.
22142
22143 * chartab.c (make_sub_char_table): Remove unused var.
22144 (Fset_char_table_default, Fmap_char_table): Doc fix.
22145
22146 * keymap.c (access_keymap): Remove generic char code.
22147 (push_key_description): Use CHARACTERP.
22148
22149 2008-02-01 Dave Love <fx@gnu.org>
22150
22151 * charset.c: Doc fixes.
22152 (Funify_charset): Extra checking.
22153
22154 2008-02-01 Dave Love <fx@gnu.org>
22155
22156 * lread.c: Remove some unused variables.
22157 (safe_to_load_p): If safe, return the magic number version byte.
22158 (Fload): Maybe use load-with-code-conversion.
22159
22160 2008-02-01 Kenichi Handa <handa@m17n.org>
22161
22162 * category.c (Fmodify_category_entry): Don't modify the contents
22163 of category_set for characters out of the range. Avoid
22164 unnecessary modification.
22165
22166 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22167 Vchar_unify_table. The default value of the table is now nil.
22168
22169 * character.c (syms_of_character): Setup Vchar_width_table for
22170 eight-bit-control and raw-byte chars.
22171
22172 * charset.h (enum define_charset_arg_index): Delete
22173 charset_arg_parents and add charset_arg_subset and
22174 charset_arg_superset.
22175 (enum charset_attr_index): Delete charset_parents and add
22176 charset_subset and charset_superset.
22177 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22178 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22179 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22180 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22181 (CHARSET_SUPERSET): New macros.
22182 (charset_work): Extern it.
22183 (ENCODE_CHAR): Use charset_work.
22184 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22185 (map_charset_chars): Extern it.
22186
22187 * charset.c (load_charset_map): Set the default value of encoder
22188 and deunifier char-tables to nil.
22189 (map_charset_chars): Change argument. Change callers. Use
22190 map_char_table_for_charset instead of map_char_table.
22191 (Fmap_charset_chars): New optional args from_code and to_code.
22192 (Fdefine_charset_internal): Adjust for the change of
22193 `define-charset' (:parents -> :subset or :superset).
22194 (charset_work): New variable.
22195 (encode_char, syms_of_charset): Adjust for the change of
22196 Fdefine_charset_internal.
22197 (Ffind_charset_string): Setup the vector `charsets' correctly.
22198
22199 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22200 the previous change.
22201 (char_table_ref_and_range): Adjust for the above change.
22202 (map_sub_char_table_for_charset): New function.
22203 (map_char_table_for_charset): New function.
22204
22205 * keymap.c (describe_vector): Handle a char-table directly here.
22206 (describe_char_table): Delete.
22207
22208 * lisp.h (map_charset_chars): Delete.
22209
22210 2008-02-01 Dave Love <fx@gnu.org>
22211
22212 * fns.c (count_combining): Comment out (unused).
22213 (Flocale_codeset): New.
22214 (syms_of_fns): Defsubr it.
22215
22216 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22217 (size_t): Remove.
22218
22219 2008-02-01 Dave Love <fx@gnu.org>
22220
22221 * Makefile.in (chartab.o): Depend on charset.h.
22222
22223 2008-02-01 Kenichi Handa <handa@m17n.org>
22224
22225 * character.c (syms_of_character): Set the default value of
22226 Vprintable_chars to Qnil.
22227
22228 2008-02-01 Dave Love <fx@gnu.org>
22229
22230 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22231
22232 2008-02-01 Kenichi Handa <handa@m17n.org>
22233
22234 * charset.c (load_charset_map): Handle the case that from < to
22235 correctly.
22236
22237 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22238 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22239 Pay attention to raw-8-bit chars.
22240
22241 2008-02-01 Kenichi Handa <handa@m17n.org>
22242
22243 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22244 It is not bytecompiled now.
22245
22246 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22247 (charset_jisx0208): New variables.
22248 (Fdefine_charset_internal): Setup them if appropriate.
22249 (init_charset_once): Initialize them to -1.
22250
22251 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22252 (charset_jisx0208): Extern them.
22253
22254 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22255 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22256 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22257 (setup_iso_safe_charsets): Fix arguments to Fassq.
22258 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22259 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22260 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22261 (encode_coding_iso_2022): Change the 1st arg to
22262 ENCODE_ISO_CHARACTER to a variable.
22263
22264 2008-02-01 Kenichi Handa <handa@m17n.org>
22265
22266 * charset.h (enum define_charset_arg_index): New enums
22267 charset_arg_min_code and charset_arg_max_code.
22268 (struct charset): New member char_index_offset.
22269
22270 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22271 Take charset->char_index_offset into account.
22272 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22273 args[charset_arg_max_code]. Setup charset.char_index_offset.
22274 (syms_of_charset): Fix args to Fdefine_charset_internal.
22275
22276 2008-02-01 Dave Love <fx@gnu.org>
22277
22278 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22279
22280 2008-02-01 Dave Love <fx@gnu.org>
22281
22282 * coding.c: Doc fixes.
22283 (Fcoding_system_aliases): Fix return value.
22284 (Qmac): Remove (duplicated) definition.
22285
22286 2008-02-01 Dave Love <fx@gnu.org>
22287
22288 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22289 New functions.
22290
22291 * character.c (Fstring): Doc fix.
22292
22293 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22294
22295 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22296 (font-encoding-alist): Doc fix.
22297
22298 2008-02-01 Dave Love <fx@gnu.org>
22299
22300 * term.c (costs_set): Declare static, non-initialized for pcc.
22301 (encode_terminal_code): Remove unused var.
22302
22303 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22304 for K&R.
22305
22306 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22307
22308 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22309 (suffixes): Move out of make_subsidiaries for K&R.
22310
22311 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22312
22313 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22314
22315 2008-02-01 Dave Love <fx@gnu.org>
22316
22317 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22318
22319 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22320
22321 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22322
22323 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22324
22325 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22326
22327 2008-02-01 Kenichi Handa <handa@m17n.org>
22328
22329 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22330 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22331
22332 2008-02-01 Kenichi Handa <handa@m17n.org>
22333
22334 * coding.c (decode_coding_charset): Adjust for the change of
22335 Fdefine_coding_system_internal.
22336 (Fdefine_coding_system_internal): For a coding system of
22337 `charset' type, store a list of charset IDs in
22338 `charset_attr_charset_valids' element of coding attributes.
22339
22340 2008-02-01 Kenichi Handa <handa@m17n.org>
22341
22342 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22343 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22344 caller. Handle 2-byte and 3-byte charsets correctly.
22345 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22346 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22347 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22348 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22349 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22350 sequence.
22351 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22352 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22353 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22354 and alt&rule composition.
22355 (decode_coding_iso_2022): Handle composition correctly.
22356 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22357
22358 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22359 re-defining a charset. If the charset has :emacs-mule-id, setup
22360 emacs_mule_bytes.
22361 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22362
22363 2008-02-01 Kenichi Handa <handa@m17n.org>
22364
22365 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22366 (encode_coding_big5, encode_coding_charset): If coding requires safe
22367 encoding, produce a character specified by
22368 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22369
22370 2008-02-01 Dave Love <fx@gnu.org>
22371
22372 * xterm.c (XSetIMValues): Declare.
22373
22374 * process.c: Conditionally include sys/wait.h, pty.h.
22375
22376 * print.c (print_object): Fix print format for 64-bit systems.
22377
22378 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22379
22380 * buffer.c (emacs_strerror): Declare.
22381
22382 * fontset.c (Fclear_face_cache): Declare.
22383 (accumulate_font_info): Comment-out (unused).
22384 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22385 variables.
22386
22387 * character.h (string_escape_byte8): Declare.
22388
22389 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22390 unused vars.
22391 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22392 (Fmap_charset_chars): Doc fix.
22393
22394 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22395 (Fset_coding_system_priority, Fset_coding_system_priority)
22396 (Fdefine_coding_system_internal): Doc fix.
22397
22398 2008-02-01 Dave Love <fx@gnu.org>
22399
22400 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22401
22402 2008-02-01 Kenichi Handa <handa@m17n.org>
22403
22404 * character.c (string_escape_byte8): Make multibyte string with
22405 correct size.
22406
22407 * charset.c (Fmake_char): Delete unnecessary code.
22408
22409 2008-02-01 Kenichi Handa <handa@m17n.org>
22410
22411 * xfns.c (x_encode_text): Allocate coding.destination here, and
22412 call encode_coding_object with dst_object Qnil.
22413
22414 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22415 multibyte form correctly.
22416
22417 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22418 against Vfont_encoding_alist.
22419
22420 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22421 handling of charset list.
22422 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22423 (decode_coding_object): Move point to coding->dst_pos before
22424 calling post-read-conversion function.
22425 (encode_coding_object): Give correct arguments to
22426 pre-write-conversion. Ignore the return value of
22427 pre-write-conversion function. Pay attention to the case that
22428 pre-write-conversion changes the current buffer. If dst_object is
22429 Qt, even if coding->src_bytes is zero, allocate at least one byte
22430 to coding->destination.
22431
22432 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22433
22434 * charset.c (Fmake_char): Make it more backward compatible.
22435 (Fmap_charset_chars): Fix docstring.
22436
22437 2008-02-01 Dave Love <fx@gnu.org>
22438
22439 * coding.c: Doc fixes.
22440 (Fdefine_coding_system_alias): Use names, not symbols, in
22441 coding-system-alist.
22442
22443 2008-02-01 Kenichi Handa <handa@m17n.org>
22444
22445 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22446 of calling free_realized_face.
22447
22448 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22449
22450 * charset.c (read_hex): Don't treat SPC as a comment starter.
22451 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22452 (Fdecode_char): Fix typo.
22453
22454 2008-02-01 Kenichi Handa <handa@m17n.org>
22455
22456 * charset.h (struct charset): New member `code_space_mask'.
22457
22458 * coding.c (coding_set_source): Delete the local variable beg_byte.
22459 (encode_coding_charset, Fdefine_coding_system_internal):
22460 Delete the local variable charset.
22461 (Fdefine_coding_system_internal): Setup
22462 attrs[coding_attr_charset_valids] correctly.
22463
22464 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22465 member to check if CODE is valid or not.
22466 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22467 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22468 is within the range of charset->min_code and carset->max_code.
22469
22470 2008-02-01 Dave Love <fx@gnu.org>
22471
22472 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22473
22474 * dispextern.h (generate_ascii_font): Fix return type.
22475
22476 * xfaces.c (generate_ascii_font): Fix arg declaration.
22477
22478 * coding.c (coding_inherit_eol_type)
22479 (Fset_terminal_coding_system_internal)
22480 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22481
22482 2008-02-01 Kenichi Handa <handa@m17n.org>
22483
22484 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22485 multiple charsets correctly.
22486
22487 2008-02-01 Kenichi Handa <handa@m17n.org>
22488
22489 * search.c (boyer_moore): Fix handling of multibyte character
22490 translation.
22491
22492 * xdisp.c (display_mode_element): When the variable `elt' is
22493 changed, update `this' and `lisp_string'.
22494
22495 2008-02-01 Kenichi Handa <handa@m17n.org>
22496
22497 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22498
22499 * callproc.c (Fcall_process): Be sure to give the current buffer
22500 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22501
22502 * charset.c (struct charset_map_entries): New struct.
22503 (load_charset_map): Rename from parse_charset_map. New args
22504 entries and n_entries. Change caller.
22505 (load_charset_map_from_file): Rename from load_charset_map.
22506 Change caller. New arg control_flag. Call load_charset_map at
22507 the tail.
22508 (load_charset_map_from_vector): New function.
22509 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22510 (encode_char): If the charset is compact, change a character index
22511 to a code point.
22512
22513 * coding.c (coding_alloc_by_making_gap): Check the case that the
22514 source and destination are the same correctly.
22515 (decode_coding_raw_text): Set coding->consumed_char and
22516 coding->consumed to 0.
22517 (produce_chars): If coding->chars_at_source is nonzero, update
22518 coding->consumed_char and coding->consumed before calling
22519 alloc_destination.
22520 (Fdefine_coding_system_alias): Register ALIAS in
22521 Vcoding_system_alist.
22522 (syms_of_coding): Define `no-conversion' coding system at the tail.
22523
22524 * fileio.c (Finsert_file_contents): Set coding_system instead of
22525 val. If the current buffer is multibyte, always call
22526 decode_coding_gap.
22527
22528 * xfaces.c (try_font_list): Give higher priority to fontset's
22529 family than face's family.
22530
22531 2008-02-01 Kenichi Handa <handa@m17n.org>
22532
22533 * callproc.c (Fcall_process): Be sure to give the current buffer
22534 to decode_coding_c_string.
22535
22536 * xfaces.c (try_font_list): Give a family specified in a fontset
22537 higher priority than a family specified in a face.
22538
22539 2008-02-01 Kenichi Handa <handa@m17n.org>
22540
22541 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22542 Fix arguments to insert_from_buffer.
22543
22544 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22545
22546 2008-02-01 Kenichi Handa <handa@m17n.org>
22547
22548 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22549 (decode_coding_gap): Set coding->dst_multibyte correctly.
22550
22551 2008-02-01 Kenichi Handa <handa@m17n.org>
22552
22553 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22554 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22555 (encode_coding_utf_16): Substitute coding->default_char for
22556 non-Unicode characters.
22557 (decode_coding): Don't call record_insert here.
22558 (setup_coding_system): Initialize `surrogate' of
22559 coding->spec.utf_16 to 0.
22560 (EMIT_ONE_BYTE): Fix for multibyte case.
22561
22562 * insdel.c (insert_from_gap): Call record_insert.
22563
22564 2008-02-01 Kenichi Handa <handa@m17n.org>
22565
22566 * casefiddle.c (casify_region): Fix multibyte case.
22567
22568 * character.c (c_string_width): Add return type `int'.
22569 (char_string_with_unification): Delete arg ADVANCED.
22570
22571 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22572 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22573 (CHAR_STRING_ADVANCE): Make it do-while statement.
22574
22575 * chartab.c (sub_char_table_set_range): Optimize for the case
22576 DEPTH == 3. Add workaround code for a GCC optimization bug.
22577
22578 * charset.c (parse_charset_map): Remove an unused variable.
22579
22580 * coding.c: Delete unused variables.
22581
22582 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22583 earlier. If inserted is zero and the coding system doesn't
22584 require flushing, don't call decode_coding_gap.
22585
22586 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22587
22588 2008-02-01 Kenichi Handa <handa@m17n.org>
22589
22590 The following changes are for using Unicode as an internal
22591 character model, and use UTF-8 format for buffer/string
22592 representation.
22593
22594 * .gdbinit (xchartable): Adjust for the change of char table structure.
22595 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22596
22597 * Makefile.in (obj): Add character.o and chartab.o.
22598 (lisp, shortlisp): Remove utf-8.elc.
22599 (*.o): For many files, change dependency on charset.h to
22600 character.h, and add dependency on character.h.
22601 (character.o, chartab.o): New targets.
22602
22603 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22604 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22605 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22606 of "charset.h".
22607
22608 * dired.c, filelock.c: Include "character.h".
22609
22610 * alloc.c: Include "character.h" instead of "charset.h".
22611 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22612 (syms_of_alloc): Remove defsubr for Smake_char_table.
22613
22614 * buffer.c: Include "character.h" instead of "charset.h", don't
22615 include "coding.h".
22616 (Fset_buffer_multibyte): Adjust for UTF-8.
22617
22618 * buffer.h: EXFUN Fbuffer_live_p.
22619
22620 * callproc.c: Include "character.h" instead of "charset.h".
22621 (Fcall_process): Big change for the new code-conversion APIs.
22622
22623 * casetab.c: Include "character.h" instead of "charset.h".
22624 (set_canon, set_identity, shuffle): Adjust for the new
22625 map_char_table spec.
22626 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22627 accessing the char table structure.
22628
22629 * chartab.c: New file that implements char table.
22630
22631 * category.c: Include "character.h".
22632 (copy_category_entry): New function.
22633 (copy_category_table): Call map_char_table and copy_category_entry.
22634 (Fmake_category_table): Initialize all top-level slots.
22635 (char_category_set): New function.
22636 (modify_lower_category_set): Delete.
22637 (Fmodify_category_entry): Call char_table_ref_and_range.
22638
22639 * category.h (CATEGORY_SET): Just call char_category_set.
22640
22641 * ccl.c: Include "character.h".
22642 (Qccl, Qcclp): New variables.
22643 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22644 it's less than 256.
22645 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22646 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22647 and DST type.
22648 (ccl_driver): Change types of argument, adjust code accordingly.
22649 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22650 ccl_driver.
22651 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22652
22653 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22654 New members src_multibyte, dst_multibyte, consumed, and produced.
22655 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22656 (CODING_SPEC_CCL_PROGRAM): New macro.
22657 (ccl_driver): Update prototype.
22658 (Qccl, Qcclp, Fccl_program_p): Extern them.
22659 (CHECK_CCL_PROGRAM): New macro.
22660
22661 * character.c, character.h, chartab.c: New files.
22662
22663 * charset.c: Mostly re-written. Move character and multibyte sequence
22664 handling codes to character.c.
22665
22666 * charset.h: Mostly re-written. Move character and multibyte sequence
22667 handling codes to character.h.
22668
22669 * coding.c, coding.h: Mostly re-written.
22670
22671 * composite.c: Include "character.h" instead of "charset.h".
22672 (CHAR_WIDTH): Move to character.h.
22673 (HASH_KEY, HASH_VALUE): Delete.
22674
22675 * composite.h (enum composition_method): Change order of enumeration
22676 symbols.
22677
22678 * data.c: Include "character.h" instead of "charset.h".
22679 (Faref): Call CHAR_TABLE_REF for a char table.
22680 (Faset): Call CHAR_TABLE_SET for a char table.
22681
22682 * dispextern.h (free_realized_face, check_face_attribytes)
22683 (generate_ascii_font): Extern them.
22684 (free_realized_multibyte_face): Delete extern.
22685
22686 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22687 table structure.
22688
22689 * editfns.c: Include "character.h" instead of "charset.h".
22690 (Fchar_to_string): Always call CHAR_STRING.
22691
22692 * emacs.c (main): Call init_charset_once, init_charset,
22693 syms_of_chartab, and syms_of_character.
22694
22695 * fileio.c: Include "character.h" instead of "charset.h".
22696 (Finsert_file_contents): Big change for the new code-conversion API.
22697 (choose_write_coding_system, Fwrite_region): Likewise.
22698 (build_annotations_2): Delete.
22699 (e_write): Big change for the new code-conversion API.
22700
22701 * fns.c: Include "character.h" instead of "charset.h".
22702 (copy_sub_char_table): Move to chartab.c.
22703 (Fcopy_sequence): Call copy_char_table for a char table.
22704 (concat): Delete codes calling count_multibyte.
22705 (string_char_to_byte, string_byte_to_char): Adjust for the new
22706 multibyte form.
22707 (internal_equal): Adjust for the change of char table structure.
22708 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22709 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22710 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22711 (char_table_translate, optimize_sub_char_table)
22712 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22713 chartab.c.
22714 (char_table_ref_and_index): Delete.
22715 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22716 (Fmd5): Call preferred_coding_system instead of accessing
22717 Vcoding_category_list. Adjust for the new code-conversion API.
22718 (syms_of_fns): Move defsubr for char table related functions to
22719 chartab.c.
22720
22721 * fontset.c: Mostly re-written.
22722
22723 * fontset.h (struct font_info): Change type of the member encoding_type.
22724 (enum FONT_SPEC_INDEX): New enum.
22725 (fontset_font_pattern, fs_load_font): Update prototype.
22726 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22727
22728 * indent.c: Include "character.h" instead of "charset.h".
22729 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22730
22731 * insdel.c: Include "character.h" instead of "charset.h".
22732 (copy_text): Don't refer to Vnonascii_translation_table.
22733 (insert_from_gap): New function.
22734
22735 * keyboard.c: Include "character.h" instead of "charset.h".
22736 (command_loop_1): Never call direct_output_forward_char before
22737 a non-ASCII character.
22738 (read_char): If Vkeyboard_translate_table is a char table, always
22739 translate a character.
22740
22741 * keymap.c: Include "character.h".
22742 (store_in_keymap): Handle the case that IDX is a cons.
22743 (Fdefine_key): Handle the case that KEY is a cons and the car part
22744 is also a cons (range).
22745 (push_key_description): Adjust for the new character code.
22746 (describe_vector): Call describe_char_table for a char table.
22747 (describe_char_table): New function.
22748
22749 * keymap.h (describe_char_table): Extern it.
22750
22751 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22752 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22753 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22754 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22755 Delete.
22756 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22757 structure.
22758 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22759 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22760 (CHARTAB_SIZE_BITS_3): New macros.
22761 (chartab_size): Extern it.
22762 (struct Lisp_Char_Table): Re-design.
22763 (struct Lisp_Sub_Char_Table): New structure.
22764 (HASH_KEY, HASH_VALUE): Move from fns.c.
22765 (CHARACTERBITS): Define as 22.
22766 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22767 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22768 (GC_SUB_CHAR_TABLE_P): New macro.
22769 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22770 (code_convert_string_norecord): Deleted extern.
22771 (init_character_once, syms_of_character, init_charset)
22772 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22773
22774 * lread.c: Include "character.h".
22775 (read_multibyte): New arg NBYTES.
22776 (read_escape): Change the meaning of returned *BYTEREP.
22777 (to_multibyte): Delete.
22778 (read1): Adjust the handling of char table and string.
22779
22780 * print.c: Include "character.h" instead of "charset.h".
22781 (print_string): Convert 8-bit raw bytes to octal form by
22782 string_escape_byte8.
22783 (print_object): Adjust for the new multibyte form. Print 8-bit
22784 raw bytes always in octal form. Handle sub char table correctly.
22785
22786 * process.c: Include "character.h" instead of "charset.h".
22787 (read_process_output, send_process): Adjust for the new
22788 code-conversion API.
22789
22790 * puresize.h (BASE_PURESIZE): Increase.
22791
22792 * regex.c: Include "character.h" instead of "charset.h".
22793 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22794 (regex_compile): Accept a range whose starting and ending
22795 character have different leading bytes.
22796 (analyse_first): Adjust for the above change.
22797
22798 * search.c: Include "character.h" instead of "charset.h".
22799 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22800 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22801
22802 * syntax.c: Include "character.h" instead of "charset.h".
22803 (syntax_parent_lookup): Delete.
22804 (Fmodify_syntax_entry): Accept a cons as CHAR.
22805 (skip_chars): Adjust for the new multibyte form.
22806 (init_syntax_once): Call char_table_set_range instead of directly
22807 accessing the structure of a char table.
22808
22809 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22810 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22811 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22812 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22813
22814 * term.c: Include "buffer.h" and "character.h".
22815 (encode_terminal_code, write_glyphs): Adjust for the new
22816 code-conversion API.
22817 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22818
22819 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22820
22821 * xdisp.c: Include "character.h".
22822 (get_next_display_element): Adjust for the new multibyte form.
22823 (disp_char_vector): Adjust for the new char table structure.
22824 (decode_mode_spec_coding): Adjust for the new structure of
22825 coding system.
22826 (decode_mode_spec): Adjust for the new code-conversion API.
22827
22828 * xfaces.c: Include "character.h" instead of "charset.h".
22829 (load_face_font): Adjust for the change of choose_face_font and
22830 FS_LOAD_FONT.
22831 (generate_ascii_font): New function.
22832 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22833 (set_font_frame_param): Adjust for the change of choose_face_font.
22834 (free_realized_face): Make it public.
22835 (free_realized_faces_for_fontset): Rename from
22836 free_realized_multibyte_face. Free also faces realized for ASCII.
22837 (choose_face_font): Change arguments. Adjust for the change of
22838 fontset_font_pattern and FS_LOAD_FONT.
22839
22840 * xfns.c: Include "character.h".
22841 (x_encode_text): Adjust for the new code-conversion API.
22842
22843 * xselect.c: Don't include "charset.h".
22844 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22845
22846 * xterm.c: Include "character.h".
22847 (x_encode_char): New argument CHARSET. Change caller.
22848 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22849 Call ENCODE_CHAR instead of SPLIT_CHAR.
22850 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22851 CHAR_WIDTH instead of CHARSET_WIDTH.
22852 (XTread_socket): Adjust for the new code-conversion API.
22853 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22854 (x_load_font): Adjust for the change of struct font.
22855
22856 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22857
22858 * xfaces.c (face_at_buffer_position): Remove unused vars.
22859
22860 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22861
22862 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22863 Fix overflow checking.
22864
22865 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22866
22867 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22868 Cancel previous change.
22869
22870 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22871
22872 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22873 ccl->eight_bit_control. Fix check for buffer overflow.
22874 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22875 (ccl_driver): Initialize extra_bytes to 0.
22876
22877 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22878
22879 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22880 return it ORed with ctrl_modifier.
22881
22882 2008-01-29 Miles Bader <miles@gnu.org>
22883
22884 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22885
22886 2008-01-28 Jason Rumney <jasonr@gnu.org>
22887
22888 * w32.c (stat): Don't double check for networked drive.
22889
22890 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22891
22892 * window.c (run_window_configuration_change_hook): New function.
22893 Code extracted from set_window_buffer. Set the selected frame.
22894 (set_window_buffer): Use it.
22895 * window.h (run_window_configuration_change_hook): Declare.
22896 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22897
22898 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22899
22900 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22901
22902 * Makefile.in: Remove references to unused macros.
22903
22904 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22905
22906 * w32.c (g_b_init_get_sid_sub_authority)
22907 (g_b_init_get_sid_sub_authority_count): New static variables.
22908 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22909 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22910 (init_user_info): Use them to retrieve uid and gid.
22911 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22912 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22913 st_uid and st_gid of the file.
22914
22915 2008-01-26 Jason Rumney <jasonr@gnu.org>
22916
22917 * w32.c (logon_network_drive): New function.
22918 (stat): Use it.
22919
22920 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22921
22922 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22923 invisible text covered with an ellipsis.
22924
22925 2008-01-25 Richard Stallman <rms@gnu.org>
22926
22927 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22928 jump back to beginning. Move some other initializations after that.
22929 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22930 New variables.
22931 (syms_of_xdisp): Init them.
22932
22933 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22934
22935 * buffer.c (reset_buffer_local_variables):
22936 Implement `permanent-local-hook'.
22937 (Qpermanent_local_hook): New variable.
22938 (syms_of_buffer): Init and staticpro it.
22939
22940 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22941
22942 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22943
22944 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22945
22946 * fns.c (Fclrhash): Return TABLE.
22947
22948 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22949
22950 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22951 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22952 is set even without positional changes.
22953 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22954
22955 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22956
22957 2008-01-23 Jason Rumney <jasonr@gnu.org>
22958
22959 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22960
22961 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22962 the unicode range available in MULE by locale-coding-system.
22963 Improve dbcs lead byte detection. Set event timestamp and modifiers
22964 earlier.
22965
22966 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22967
22968 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22969 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22970 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22971 when used on child processes.
22972
22973 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22974
22975 * dbusbind.c (Fdbus_method_return_internal): Rename from
22976 Fdbus_method_return.
22977 (Fdbus_unregister_object): Move to dbus.el.
22978 (Fdbus_call_method, Fdbus_method_return_internal)
22979 (Fdbus_send_signal): Improve debug messages.
22980
22981 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22982
22983 * undo.c (undo_inhibit_record_point): New variable.
22984 (syms_of_undo): Initialize it.
22985 (record_point): Don't record point when undo_inhibit_record_point
22986 is set.
22987
22988 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22989
22990 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22991
22992 * xdisp.c (Qauto_hscroll_mode): New var.
22993 (syms_of_xdisp): Initialize it.
22994 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22995 window's buffer.
22996 (hscroll_windows): Don't check automatic_hscrolling_p here.
22997
22998 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22999 vscroll if we're setting window-buffer to the value it already has.
23000
23001 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23002
23003 * m/intel386.h: Remove references to XENIX.
23004
23005 2008-01-17 Andreas Schwab <schwab@suse.de>
23006
23007 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23008 instead of HAVE_X86_64_LIB64_DIR.
23009 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23010
23011 2008-01-17 Glenn Morris <rgm@gnu.org>
23012
23013 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23014 to HAVE_X86_64_LIB64_DIR.
23015
23016 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23017
23018 * s/irix3-3.h:
23019 * s/irix4-0.h:
23020 * s/386-ix.h:
23021 * s/domain.h:
23022 * s/hpux9-x11r4.h:
23023 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23024
23025 * sysdep.c: Remove code containing references to symbols defined
23026 by unsupported systems.
23027
23028 2008-01-16 Glenn Morris <rgm@gnu.org>
23029
23030 * coding.c (select-safe-coding-system-function): Doc fix.
23031
23032 2008-01-15 Glenn Morris <rgm@gnu.org>
23033
23034 * config.in: Revert 2008-01-13 change: this is a generated file.
23035
23036 2008-01-13 Tom Tromey <tromey@redhat.com>
23037
23038 * lisp.h: Fix typo.
23039
23040 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23041
23042 * m/sequent-ptx.h:
23043 * m/sequent.h:
23044 * s/ptx.h:
23045 * s/ptx4-2.h:
23046 * s/ptx4.h: Remove files for systems no longer supported.
23047
23048 * callproc.c (Fcall_process): Fix previous change.
23049
23050 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23051
23052 * unexsunos4.c: Remove file, system not supported anymore.
23053
23054 * m/mips.h:
23055 * m/intel386.h:
23056 * callproc.c:
23057 * config.in:
23058 * ecrt0.c:
23059 * emacs.c:
23060 * fileio.c:
23061 * frame.c:
23062 * getpagesize.h:
23063 * keyboard.c:
23064 * lread.c:
23065 * process.c:
23066 * puresize.h:
23067 * sysdep.c:
23068 * systty.h:
23069 * syswait.h:
23070 * unexec.c:
23071 * xdisp.c:
23072 * alloc.c: Remove code containing references to symbols defined by
23073 unsupported systems.
23074
23075 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23076
23077 * coding.c (detect_coding_mask): Fix previous change.
23078
23079 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23080
23081 * coding.c (detect_coding_iso2022): New arg
23082 latin_extra_code_state. Allow Latin extra codes only
23083 when *latin_extra_code_state is nonzero.
23084 (detect_coding_mask): If there is a NULL byte, detect the encoding
23085 as UTF-16 or binary. If Latin extra codes exist, detect the
23086 encoding as ISO-2022 only when there's no other proper encoding is
23087 found.
23088
23089 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23090
23091 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23092 #ifdef MAC_OS.
23093
23094 2008-01-08 Richard Stallman <rms@gnu.org>
23095
23096 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23097
23098 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
23099
23100 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23101 menu bar in parentheses.
23102
23103 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23104
23105 * m/7300.h:
23106 * m/acorn.h:
23107 * m/alliant-2800.h:
23108 * m/alliant.h:
23109 * m/alliant1.h:
23110 * m/alliant4.h:
23111 * m/altos.h:
23112 * m/amdahl.h:
23113 * m/apollo.h:
23114 * m/att3b.h:
23115 * m/aviion-intel.h:
23116 * m/aviion.h:
23117 * m/celerity.h:
23118 * m/clipper.h:
23119 * m/cnvrgnt.h:
23120 * m/convex.h:
23121 * m/cydra5.h:
23122 * m/delta88k.h:
23123 * m/dpx2.h:
23124 * m/dual.h:
23125 * m/elxsi.h:
23126 * m/f301.h:
23127 * m/gould-np1.h:
23128 * m/gould.h:
23129 * m/i860.h:
23130 * m/ibmps2-aix.h:
23131 * m/ibmrt-aix.h:
23132 * m/ibmrt.h:
23133 * m/irist.h:
23134 * m/is386.h:
23135 * m/isi-ov.h:
23136 * m/mega68.h:
23137 * m/mg1.h:
23138 * m/news-r6.h:
23139 * m/news-risc.h:
23140 * m/news.h:
23141 * m/nh3000.h:
23142 * m/nh4000.h:
23143 * m/ns16000.h:
23144 * m/ns32000.h:
23145 * m/nu.h:
23146 * m/orion.h:
23147 * m/orion105.h:
23148 * m/paragon.h:
23149 * m/pfa50.h:
23150 * m/plexus.h:
23151 * m/pyramid.h:
23152 * m/pyrmips.h:
23153 * m/sh3el.h:
23154 * m/sps7.h:
23155 * m/sr2k.h:
23156 * m/stride.h:
23157 * m/sun1.h:
23158 * m/sun2.h:
23159 * m/sun3-68881.h:
23160 * m/sun3-fpa.h:
23161 * m/sun3-soft.h:
23162 * m/sun3.h:
23163 * m/sun386.h:
23164 * m/symmetry.h:
23165 * m/tad68k.h:
23166 * m/tahoe.h:
23167 * m/targon31.h:
23168 * m/tek4300.h:
23169 * m/tekxd88.h:
23170 * m/tower32.h:
23171 * m/tower32v3.h:
23172 * m/ustation.h:
23173 * m/wicat.h:
23174 * m/xps100.h:
23175 * s/cxux.h:
23176 * s/cxux7.h:
23177 * s/dgux.h:
23178 * s/dgux4.h:
23179 * s/dgux5-4-3.h:
23180 * s/dgux5-4r2.h:
23181 * s/esix.h:
23182 * s/esix5r4.h:
23183 * s/hiuxmpp.h:
23184 * s/hiuxwe2.h:
23185 * s/iris3-5.h:
23186 * s/iris3-6.h:
23187 * s/isc2-2.h:
23188 * s/isc3-0.h:
23189 * s/isc4-0.h:
23190 * s/isc4-1.h:
23191 * s/newsos5.h:
23192 * s/newsos6.h:
23193 * s/osf1.h:
23194 * s/osf5-0.h:
23195 * s/riscix1-1.h:
23196 * s/riscix12.h:
23197 * s/sco4.h:
23198 * s/sco5.h:
23199 * s/sunos4-0.h:
23200 * s/sunos4-1.h:
23201 * s/sunos413.h:
23202 * s/sunos4shr.h:
23203 * s/umax.h:
23204 * s/unipl5-2.h:
23205 * s/xenix.h:
23206 * cxux-crt0.s:
23207 * unexapollo.c:
23208 * unexconvex.c:
23209 * unexenix.c:
23210 * unexsni.c: Remove files for systems no longer supported.
23211
23212 * m/intel386.h: Remove references to unsupported systems.
23213
23214 * w32.c (get_emacs_configuration): Remove reference to i860.
23215
23216 * sysdep.c: Remove dead code.
23217
23218 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23219
23220 * s/rtu.h:
23221 * m/masscomp.h: Remove files. Platform is obsolete.
23222
23223 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23224
23225 * dbusbind.c (Fdbus_method_return): New function.
23226 (xd_read_message): Add the serial number to the event.
23227 (Fdbus_register_method): Activate the function.
23228
23229 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23230
23231 * keyboard.c (read_key_sequence): Fix typo.
23232
23233 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23234
23235 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23236 (xd_signature, xd_append_arg): Handle element type detection for
23237 empty arrays.
23238 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23239 SDATA () calls; this must be solved more general.
23240 (Fdbus_register_signal): Use SBYTES instead of strlen.
23241
23242 2008-01-03 Magnus Henoch <magnus@zemdatav>
23243
23244 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23245 unsigned int for byte values (necessary for big-endian platform).
23246 (Fdbus_call_method): Handle the case of no returned arguments.
23247
23248 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23249
23250 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23251
23252 2007-12-31 Magnus Henoch <mange@freemail.hu>
23253
23254 * dbusbind.c (xd_signature): Signature of variant is just "v".
23255
23256 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23257
23258 * dbusbind.c: Fix several errors and compiler warnings.
23259 Reported by Tom Tromey <tromey@redhat.com>.
23260 (XD_ERROR, XD_DEBUG_MESSAGE)
23261 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23262 (xd_append_arg): Part for basic D-Bus types rewritten.
23263 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23264 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23265 appropriate.
23266 (xd_read_message): Return Qnil. Don't signal an error; it is not
23267 useful during event reading.
23268 (Fdbus_register_signal): Signal an error if the check for
23269 FUNCTIONP fails.
23270 (Fdbus_register_method): New function. The implementation is not
23271 complete, the call of the function signals an error therefore.
23272 (Fdbus_unregister_object): New function, renamed from
23273 Fdbus_unregister_signal. The initial check signals an error, if
23274 the object is not well formed.
23275
23276 2007-12-30 Richard Stallman <rms@gnu.org>
23277
23278 * textprop.c (get_char_property_and_overlay):
23279 Signal error if POSITION is out of range in a buffer.
23280
23281 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23282
23283 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23284 because the original parameters are in pure storage now.
23285
23286 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23287
23288 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23289
23290 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23291
23292 * callint.c (syms_of_callint) <command-history>: Add reference to
23293 history-length in the doc string.
23294
23295 2007-12-17 Jason Rumney <jasonr@gnu.org>
23296
23297 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23298 before passing as wParam.
23299
23300 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23301
23302 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23303 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23304 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23305 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23306 as number.
23307 (Fdbus_call_method): Fix docstring.
23308
23309 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
23310
23311 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23312 New macros.
23313 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23314 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23315 Simplify.
23316 (xd_signature): New function.
23317 (xd_append_arg): Compute also signatures. Major rewrite.
23318 (xd_retrieve_arg): Make debug messages friendly.
23319 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23320 Check for signatures of arguments.
23321
23322 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
23323
23324 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23325 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23326 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23327 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23328 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23329 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23330 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23331 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23332 (xd_retrieve_value): Remove. Functionality included in ...
23333 (xd_append_arg): New function.
23334 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23335
23336 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
23337
23338 * dbusbind.c (top): Include <stdio.h>.
23339 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23340 dbus_message_new_method_call and dbus_message_new_signal.
23341 (Fdbus_register_signal): Rename unique_name to uname.
23342 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23343 non-existing unique name. Fix typos in matching rule. Return an
23344 object which is useful in Fdbus_unregister_signal.
23345 (Fdbus_unregister_signal): Reimplementation, in order to remove
23346 only the corresponding entry.
23347 (Vdbus_registered_functions_table): Change the order of entries.
23348 Apply these changes in xd_read_message and Fdbus_register_signal.
23349
23350 2007-12-16 Andreas Schwab <schwab@suse.de>
23351
23352 * fileio.c (Finsert_file_contents): Fix overflow check to not
23353 depend on undefined integer overflow.
23354
23355 2007-12-14 Jason Rumney <jasonr@gnu.org>
23356
23357 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23358 for characters above 127.
23359
23360 2007-12-13 Jason Rumney <jasonr@gnu.org>
23361
23362 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23363 before dereferencing array.
23364 (lookup_vk_code): Remove zero comparison.
23365
23366 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
23367
23368 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23369 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23370 Use `unsigned int' instead of `uint'.
23371 (xd_read_message, Fdbus_register_signal): Split expressions into
23372 multiple lines before operators "&&" and "||", according to the
23373 GNU Coding Standards.
23374
23375 2007-12-14 Eli Zaretskii <eliz@gnu.org>
23376
23377 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23378
23379 2007-12-12 Juri Linkov <juri@jurta.org>
23380
23381 * buffer.c (Frename_buffer): In interactive spec replace
23382 `read-buffer' with `read-string' that uses `buffer-name-history'
23383 as history, and the current buffer's name as default.
23384
23385 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23386
23387 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23388 manipulating the backtrace manually.
23389 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23390 (struct backtrace, backtrace_list): Remove.
23391 (command_loop_1): Remove dead var `no_direct'.
23392
23393 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23394 preserve non-built-in buffer-local variables.
23395 (Fkill_all_local_variables): Don't re-create&re-set permanent
23396 buffer-local variables.
23397
23398 2007-12-09 Juri Linkov <juri@jurta.org>
23399
23400 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23401 Lisp code that uses `read-buffer' with current buffer as default.
23402
23403 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
23404
23405 * dbusbind.c (xd_read_message): Generate an event for every
23406 registered handler. There might be several handlers registered
23407 for the same signal.
23408 (Fdbus_register_signal): Don't overwrite a registration for the
23409 same signal. Add a new registration if handlers are different.
23410 (Vdbus_registered_functions_table): Rework doc string.
23411
23412 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
23413
23414 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23415 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23416 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23417 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23418 Unify argument lists.
23419 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23420 arguments and hash table keys. Use unique name for service.
23421 (Fdbus_unregister_signal): Remove checks.
23422 (Vdbus_registered_functions_table): Fix doc string.
23423
23424 2007-12-05 Magnus Henoch <mange@freemail.hu>
23425
23426 * process.c (make_process): Initialize pty_flag to 0.
23427
23428 2007-12-05 Jason Rumney <jasonr@gnu.org>
23429
23430 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23431 specified XBMs.
23432
23433 2007-12-05 Richard Stallman <rms@gnu.org>
23434
23435 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23436
23437 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23438
23439 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23440 New variable.
23441 (mac_try_close_socket) [MAC_OSX]: New function.
23442 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23443 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23444
23445 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23446 Use mac_try_close_socket.
23447
23448 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23449
23450 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23451 reloc_base.
23452 (copy_dysymtab): Compute relocation base here.
23453 (rebase_reloc_address) [__ppc64__]: New function.
23454 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23455 changed.
23456
23457 2007-12-05 Jason Rumney <jasonr@gnu.org>
23458
23459 * w32proc.c (sys_spawnve): Quote args with wildcards.
23460
23461 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23462
23463 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23464 __objc_* sections.
23465 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23466
23467 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23468
23469 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23470 Move check for Vdbus_registered_functions_table to
23471 xd_read_queued_messages.
23472 (xd_read_queued_messages): Protect xd_read_message calls by
23473 internal_condition_case_1.
23474
23475 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23476
23477 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23478 Qdbus_system_bus and Qdbus_session_bus, respectively.
23479 (Vdbus_intern_symbols): Remove.
23480 (Vdbus_registered_functions_table): New hash table.
23481 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23482 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23483 Rewrite in order to manage registered functions by hash table
23484 Vdbus_registered_functions_table.
23485
23486 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23487
23488 * xterm.c: Update URL to Window Manager Specification in comment.
23489
23490 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23491
23492 * config.in (HAVE_DBUS): Add.
23493
23494 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23495 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23496 (obj): Add $(DBUS_OBJ).
23497 (LIBES): Add $(DBUS_LIBS).
23498 (dbusbind.o): New target.
23499
23500 * dbusbind.c: New file.
23501
23502 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23503
23504 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23505 (Qdbus_event): New Lisp symbol.
23506 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23507 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23508 (keys_of_keyboard): Define dbus-event.
23509
23510 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23511
23512 2007-12-01 Richard Stallman <rms@gnu.org>
23513
23514 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23515
23516 2007-11-30 Jason Rumney <jasonr@gnu.org>
23517
23518 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23519 (w32con_reset_terminal_modes): Clear screen buffer.
23520 (w32_face_attributes): Don't use color indexes that are out of range.
23521 Only reverse the default colors.
23522
23523 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23524 WINDOWSNT.
23525
23526 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23527
23528 2007-11-29 Jason Rumney <jasonr@gnu.org>
23529
23530 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23531 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23532 if the terminal colors are initialized.
23533 (unspecified_fg, unspecified_bg): Remove unused declarations.
23534
23535 2007-11-29 Andreas Schwab <schwab@suse.de>
23536
23537 * keyboard.c (apply_modifiers): Fix typo.
23538
23539 2007-11-29 Richard Stallman <rms@gnu.org>
23540
23541 * keymap.c (Fcurrent_local_map): Doc fix.
23542
23543 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23544
23545 * s/gnu-kfreebsd.h: New file.
23546
23547 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23548
23549 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23550 Don't cast redundantly.
23551
23552 * keyboard.c (KEY_TO_CHAR): New macro.
23553 (parse_modifiers, apply_modifiers): Accept integer arguments.
23554 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23555 for chars and symbol keys.
23556 After doing such remapping, apply function-key-map again.
23557
23558 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23559
23560 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23561 compiled anymore.
23562
23563 2007-11-26 Andreas Schwab <schwab@suse.de>
23564
23565 * process.c (list_processes_1): Fix indentation level of the
23566 command column.
23567
23568 2007-11-23 Andreas Schwab <schwab@suse.de>
23569
23570 * editfns.c (Fformat): Handle %c specially since it requires the
23571 argument to be of type int.
23572
23573 2007-11-23 Markus Triska <markus.triska@gmx.at>
23574
23575 * emacs.c (main): Call init_editfns before init_process, since
23576 init_process sets Vprocess_connection_type depending on OS release.
23577
23578 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23579
23580 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23581 (find_symbol_value): Use do_symval_forwarding.
23582
23583 * data.c (set_internal): Set the value in the `cons-cell' (for
23584 Buffer_Local_values) not only for frame-local variables.
23585
23586 2007-11-22 Andreas Schwab <schwab@suse.de>
23587
23588 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23589 values to sprintf.
23590 * keymap.c (Fsingle_key_description): Likewise.
23591 * print.c (print_object): Likewise.
23592
23593 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23594
23595 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23596 file for image is nil.
23597
23598 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23599
23600 * term.c: Include stdarg.h.
23601 (fatal): Implement using varargs.
23602 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23603
23604 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23605
23606 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23607 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23608 Update call to buffer_slot_type_mismatch.
23609 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23610 (buffer_slot_type_mismatch): Update.
23611 * buffer.c (buffer_local_types): Remove.
23612 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23613 (defvar_per_buffer): Set the type in the buffer_objfwd.
23614
23615 2007-11-21 Jason Rumney <jasonr@gnu.org>
23616
23617 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23618 CreateFileMapping returns NULL on failure.
23619
23620 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23621
23622 * search.c (Fset_match_data): Remove the `evaporate' feature.
23623 (unwind_set_match_data): Don't use the `evaporate' feature.
23624
23625 2007-11-21 Jason Rumney <jasonr@gnu.org>
23626
23627 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23628
23629 * w32console.c (w32con_write_glyphs): Remove unused variables.
23630
23631 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23632
23633 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23634
23635 * s/darwin.h (MULTI_KBOARD): Remove.
23636
23637 * macfns.c (x_create_tip_frame, Fx_create_frame)
23638 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23639
23640 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23641
23642 * buffer.c (Fbuffer_local_value): Remove redundant test.
23643 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23644 than in `current-buffer' to match the comment.
23645 Do the swap using swap_in_global_binding.
23646
23647 * data.c (store_symval_forwarding, set_internal):
23648 * eval.c (specbind): Remove dead code.
23649
23650 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23651 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23652 Since we do not want to see internal Lisp_*fwd objects here.
23653
23654 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23655
23656 * sysdep.c (init_system_name): Use getaddrinfo if available.
23657
23658 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23659 (x_scroll_bar_note_movement): start, end, with, height in struct
23660 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23661
23662 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23663
23664 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23665
23666 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23667
23668 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23669 This undoes Richard's change of 14-Oct-2002.
23670
23671 * alloc.c (allocate_other_vector):
23672 * lisp.h (allocate_other_vector): Remove.
23673
23674 * window.c (struct save_window_data): Move non-lisp data to the end
23675 and make it `int' rather than Lisp_Object.
23676 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23677 Done wrap/unwrap integer values.
23678 (Fset_window_configuration, compare_window_configurations):
23679 Update use of fields to their new types.
23680
23681 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23682 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23683 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23684 (SET_SCROLL_BAR_X_WINDOW): Remove.
23685 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23686 Access the new x_window field directly.
23687 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23688 Don't wrap/unwrap integers into Lisp_Objects.
23689 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23690 (x_scroll_bar_report_motion):
23691 Don't wrap/unwrap integers into Lisp_Objects.
23692 (x_term_init): Use SDATA.
23693 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23694 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23695 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23696 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23697 * xfns.c (x_set_background_color):
23698 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23699 Access the new x_window field directly.
23700
23701 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23702 (allocate_pseudovector): Make non-static.
23703
23704 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23705 (allocate_pseudovector): Declare.
23706 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23707
23708 2007-11-15 Andreas Schwab <schwab@suse.de>
23709
23710 * editfns.c (Fformat): Correctly format EMACS_INT values.
23711 Also take precision into account when formatting an integer.
23712
23713 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23714
23715 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23716
23717 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23718 (syms_of_keyboard): Defsubr it.
23719
23720 * data.c (swap_in_global_binding): Fix longstanding bug where
23721 store_symval_forwarding was not called with the right second argument,
23722 thus causing objfwd-ing from being dropped.
23723
23724 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23725
23726 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23727 (Fx_display_pixel_height, Fx_display_planes)
23728 (Fx_display_color_cells, Fx_server_max_request_size)
23729 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23730 (Fx_display_visual_class, Fx_display_save_under):
23731 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23732 (Fx_display_pixel_height, Fx_display_planes)
23733 (Fx_display_color_cells, Fx_server_max_request_size)
23734 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23735 (Fx_display_mm_height, Fx_display_mm_width)
23736 (Fx_display_backing_store, Fx_display_visual_class)
23737 (Fw32_select_font, Fx_display_save_under):
23738 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23739 (Fx_display_pixel_height, Fx_display_planes)
23740 (Fx_display_color_cells, Fx_server_max_request_size)
23741 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23742 (Fx_display_save_under): Fix typos in docstrings.
23743
23744 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23745
23746 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23747 corresponding to deleted entries; they are an implementation detail.
23748 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23749 Remove variables.
23750 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23751 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23752 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23753 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23754 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23755 (Fw32_define_rgb_color, Fw32_load_color_file)
23756 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23757 Fix typos in docstrings.
23758 (Fx_server_version): Reflow docstring.
23759 (Fw32_shell_execute): Doc fixes.
23760
23761 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23762
23763 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23764 if w32_parse_hot_key returned nil.
23765
23766 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23767
23768 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23769
23770 2007-11-09 Jason Rumney <jasonr@gnu.org>
23771
23772 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23773
23774 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23775
23776 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23777 Remove W32_SCROLL_BAR_CLICK_EVENT.
23778
23779 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23780 Add MULTIMEDIA_KEY_EVENT.
23781
23782 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23783 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23784 (make_lispy_event) [WINDOWSNT]: Use it to translate
23785 MULTIMEDIA_KEY_EVENT.
23786
23787 * w32term.h (WM_APPCOMMAND): Define if not already.
23788 (GET_APPCOMMAND_LPARAM): Likewise.
23789
23790 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23791 WM_APPCOMMAND.
23792
23793 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23794 (syms_of_w32fns): Export and initialize it.
23795 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23796
23797 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23798
23799 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23800 twice.
23801
23802 * xdisp.c (handle_face_prop): Fix last change.
23803
23804 2007-11-09 Richard Stallman <rms@gnu.org>
23805
23806 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23807 not just for after-strings and before-strings.
23808 Call face_for_overlay_string and pass the overlay to it.
23809 (handle_display_prop): Determine whether property came from an overlay.
23810 Pass OVERLAY arg to handle_single_display_spec.
23811 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23812 (load_overlay_strings): Fill in it->string_overlays.
23813 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23814
23815 * xfaces.c (face_for_overlay_string): Function renamed from
23816 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23817
23818 * dispextern.h (struct it): New elt string_overlays.
23819 New elt from_overlay, also in stack.
23820 Rearrange a few elements.
23821 (face_for_overlay_string): Decl renamed from
23822 face_at_buffer_position_no_overlays, and add argument.
23823
23824 2007-11-09 Richard Stallman <rms@gnu.org>
23825
23826 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23827 to get the base face for an overlay string.
23828
23829 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23830
23831 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23832
23833 * xdisp.c (handle_stop): Move some code out of loop.
23834
23835 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23836
23837 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23838 Fix conversion from Lisp object to ATSUFontID.
23839
23840 2007-11-09 Jason Rumney <jasonr@gnu.org>
23841
23842 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23843
23844 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23845
23846 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23847 Don't assume regions are aligned to page boundary.
23848 (print_load_command_name): Add LC_UUID if defined.
23849
23850 2007-11-09 Richard Stallman <rms@gnu.org>
23851
23852 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23853
23854 2007-11-07 Jason Rumney <jasonr@gnu.org>
23855
23856 * s/windows95.h: Remove.
23857
23858 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23859
23860 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23861 abort with a message on unhandled store_type values.
23862
23863 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23864
23865 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23866 Remove HAVE_X11R5 and HAVE_X11R4.
23867
23868 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23869
23870 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23871
23872 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23873
23874 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23875 Don't set s->stippled_p here, since it has already been set by
23876 x_set_glyph_string_gc from x_draw_glyph_string.
23877
23878 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23879
23880 * sunfns.c: Remove file.
23881
23882 * m/sun386.h:
23883 * m/sun2.h:
23884 * m/sparc.h: Remove Sun windows code.
23885
23886 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23887
23888 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23889 (init_keyboard): Set current_kboard's window-system to nil.
23890 (tty_read_avail_input): Typo.
23891 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23892
23893 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23894
23895 * s/usg5-4.h:
23896 * s/usg5-3.h:
23897 * s/ptx.h:
23898 * m/is386.h:
23899 * m/ibmps2-aix.h:
23900 * Makefile.in: Remove all mentions of X10.
23901
23902 * dispnew.c (syms_of_display): Don't mention version 10.
23903
23904 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23905
23906 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23907 ($(BLD)/abbrev.$(O)): Remove.
23908
23909 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23910
23911 Rewrite abbrev.c in Elisp.
23912 * image.c (Qcount): Don't declare as extern.
23913 (syms_of_image): Initialize and staticpro `Qcount'.
23914 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23915 * emacs.c (main): Don't call syms_of_abbrev.
23916 * Makefile.in (obj): Remove abbrev.o.
23917 (abbrev.o): Remove.
23918 * abbrev.c: Remove.
23919
23920 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23921
23922 * window.c (window_min_size_2): Don't count header-line.
23923
23924 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23925
23926 * frame.h (struct frame): Move all bit fields after the first bit
23927 field to take advantage of the available space. Group all the
23928 chars together to reduce wasted space due to padding.
23929
23930 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23931
23932 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23933
23934 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23935 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23936 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23937 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23938 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23939 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23940 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23941 (last_marked, mark_object_loop_halt): Make static.
23942
23943 * frame.c (syms_of_frame) <delete-frame-functions>:
23944 Fix typo in docstring.
23945
23946 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23947
23948 * w32.c (init_environment): Fix tiny memory leak.
23949 (w32_get_resource): Remove unused variable `ok'.
23950
23951 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23952
23953 Make `window-system' into a keyboard-local variable (rather than
23954 frame-local as done originally by multi-tty).
23955
23956 * keyboard.h (struct kboard): Add Vwindow_system.
23957 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23958 (mark_kboards): Mark Vwindow_system.
23959
23960 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23961 (init_display): Don't set the obsolete `window-system' frame-param.
23962
23963 * xterm.c (x_term_init):
23964 * w32term.c (w32_create_terminal):
23965 * term.c (init_tty): Set Vwindow_system.
23966 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23967 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23968
23969 * xfns.c (Fx_create_frame, x_create_tip_frame):
23970 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23971 * macfns.c (Fx_create_frame):
23972 Don't set the obsolete `window-system' frame-param.
23973
23974 * frame.h (Qwindow_system): Remove.
23975 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23976 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23977
23978 2007-10-24 Richard Stallman <rms@gnu.org>
23979
23980 * frame.c (x_figure_window_size): For fullscreen case,
23981 set USPosition | PPosition without clobbering rest of window_prompting.
23982
23983 * keyboard.c (Fcurrent_idle_time): Doc fix.
23984
23985 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23986
23987 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23988
23989 * process.c (unwind_request_sigio): Only define if __ultrix__.
23990
23991 * callproc.c (child_setup): Remove spurious *.
23992
23993 * lisp.h (Fget_text_property): Declare.
23994 (have_menus_p): Declare it here rather than in sys-dep header files.
23995 * macterm.h (have_menus_p):
23996 * msdos.h (have_menus_p):
23997 * xterm.h (have_menus_p): Remove.
23998
23999 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24000 (Fmake_variable_frame_local): Just check the variable's const-ness
24001 rather than checking nil or t.
24002
24003 2007-10-22 Jason Rumney <jasonr@gnu.org>
24004
24005 * w32fns.c: Include math.h.
24006 (w32_abort): Declaration moved to nt/config.nt.
24007
24008 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24009 (abort): Redefinition moved to nt/config.nt.
24010
24011 * m/windowsnt.h: Remove.
24012
24013 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
24014
24015 * emacs.c (Fdump_emacs): Fix typo in message.
24016 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24017 <installation-directory>: Reflow docstring.
24018
24019 2007-10-22 Juri Linkov <juri@jurta.org>
24020
24021 * minibuf.c: Allow minibuffer default to be a list of default values.
24022 With empty input use the first element of this list as returned default.
24023 (string_to_object)
24024 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24025 (read_minibuf): If defalt is cons, set histstring to its car.
24026 (Fread_string): If default_value is cons, set val to its car.
24027 (Fread_buffer): If def is cons, use its car.
24028 (Fcompleting_read): If defalt is cons, set val to its car.
24029
24030 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
24031
24032 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24033
24034 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
24035
24036 * doc.c (Fdocumentation): Check for advice in all cases.
24037
24038 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
24039
24040 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24041
24042 2007-10-19 Richard Stallman <rms@gnu.org>
24043
24044 * doc.c (Fdocumentation): Check for and handle an advised function.
24045
24046 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
24047
24048 * process.c (Fset_process_filter): Doc fix.
24049
24050 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24051
24052 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24053 which caused key-translation-map to applied repeatedly (thus breaking
24054 double-mode).
24055
24056 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24057
24058 * xselect.c (x_own_selection, x_handle_selection_clear)
24059 (x_clear_frame_selections):
24060 * w32menu.c (list_of_panes, list_of_items):
24061 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24062 * textprop.c (validate_plist, interval_has_all_properties)
24063 (interval_has_some_properties, interval_has_some_properties_list)
24064 (add_properties, text_property_list):
24065 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24066 * minibuf.c (Fassoc_string):
24067 * macselect.c (x_own_selection, x_clear_frame_selections)
24068 (Fx_disown_selection_internal):
24069 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24070 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24071
24072 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
24073
24074 * process.c: Link to libs for calling res_init() if available.
24075 (Fmake_network_process): Call res_init() before getaddrinfo or
24076 gethostbyname, if possible.
24077
24078 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24079
24080 * lread.c (read1): Set pvectype for char_tables.
24081
24082 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24083 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24084 Add type checks.
24085 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24086
24087 * alloc.c (free_misc): Use XMISCTYPE.
24088 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24089
24090 2007-10-17 Glenn Morris <rgm@gnu.org>
24091
24092 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24093 (syms_of_minibuf): Add Qcompletion_ignore_case.
24094 * dired.c (Qcompletion_ignore_case): Change to external.
24095 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24096 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24097 (Fread_file_name): Use it rather than intern'ing.
24098
24099 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24100 (Fread_coding_system): Ignore case of user input.
24101
24102 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24103
24104 * xdisp.c (handle_display_prop): Ignore display specs after
24105 replacing one when string text is being replaced.
24106 (handle_single_display_spec): Pretend as if characters with display
24107 property haven't been consumed only when buffer text is being replaced.
24108
24109 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24110
24111 * xfns.c (Fx_create_frame, Fx_display_list):
24112 * window.c (window_fixed_size_p, enlarge_window)
24113 (shrink_window_lowest_first):
24114 * macterm.c (init_font_name_table):
24115 * macfns.c (Fx_create_frame, Fx_display_list):
24116 * lread.c (close_load_descs):
24117 * keyboard.c (read_char_x_menu_prompt):
24118 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24119 * coding.c (code_convert_region_unwind): Test the type of an object
24120 rather than just !NILP before extracting data from it.
24121
24122 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24123
24124 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24125 (XMISCANY): New macro.
24126 (XMISCTYPE): Use it.
24127 (struct Lisp_Misc_Any): New type.
24128 (union Lisp_Misc): Use it.
24129 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24130 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24131 (find_symbol_value, set_internal, default_value, Fset_default)
24132 (Fmake_variable_buffer_local, Fmake_local_variable)
24133 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24134 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24135 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24136 * alloc.c (allocate_buffer): Set the size and tag.
24137 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24138 Use XMISCANY.
24139 (die): Follow the GNU convention for error messages.
24140 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24141 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24142 tag any more.
24143 (set_buffer_internal_1):
24144 * frame.c (store_frame_param):
24145 * eval.c (specbind):
24146 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24147
24148 * doc.c (Fsnarf_documentation): Simplify.
24149
24150 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24151
24152 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24153 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24154
24155 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24156
24157 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24158
24159 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24160
24161 * eval.c (do_autoload): Don't save autoloads.
24162
24163 * data.c (Ffset): Save autoload of the function being set.
24164
24165 2007-10-07 John Paul Wallington <jpw@pobox.com>
24166
24167 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24168 parameter before setting up faces.
24169
24170 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24171
24172 * ccl.c (Fregister_code_conversion_map):
24173 * keyboard.c (append_tool_bar_item): Reformat last change.
24174
24175 * lisp.h (eabs): Rename from `abs'. All callers changed.
24176
24177 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24178
24179 * buffer.c (add_overlay_mod_hooklist):
24180 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24181 * fontset.c (make_fontset):
24182 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24183 (append_tool_bar_item):
24184 * macmenu.c (grow_menu_items):
24185 * w32menu.c (grow_menu_items):
24186 * xmenu.c (grow_menu_items): Use larger_vector.
24187
24188 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24189
24190 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24191 selected frame'' on MSDOS).
24192
24193 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24194
24195 * frame.c (Qexplicit_name): New variable.
24196 (x_report_frame_params): Report it in parameter alist.
24197 (syms_of_frame): Intern and staticpro it.
24198
24199 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24200
24201 * macfns.c (x_create_tip_frame): Set terminal for frame.
24202
24203 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24204
24205 * frame.c (Qenvironment): Remove.
24206 (syms_of_frame) <Qenvironment>: Don't initialize.
24207 (Fdelete_frame): Don't treat the `environment' param specially.
24208 * frame.h (Qenvironment): Don't declare.
24209 * callproc.c (set_initial_environment): Don't set unused frame param.
24210
24211 * frame.c (Fframe_with_environment): Remove.
24212 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24213
24214 * lisp.h (Fframe_with_environment): Don't declare.
24215
24216 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24217
24218 * indent.c (indent_tabs_mode, last_known_column)
24219 (last_known_column_modified): Make static.
24220 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24221
24222 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24223
24224 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24225
24226 2007-10-09 Jason Rumney <jasonr@gnu.org>
24227
24228 * w32term.c (x_set_window_size): Disable code that attempts to tell
24229 Lisp code about a size change before it actually happens.
24230
24231 2007-10-09 Richard Stallman <rms@gnu.org>
24232
24233 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24234 return HANDLED_RETURN.
24235
24236 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24237
24238 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24239 when there's an unread command event.
24240
24241 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24242 window autoselection act appropriately when leaving selected frame.
24243 (syms_of_frame): Initialize focus_follows_mouse.
24244 * frame.h (focus_follows_mouse): Extern it.
24245 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24246 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24247 * msdos.c (dos_rawgetc): Likewise.
24248 * w32term.c (w32_read_socket): Likewise.
24249 * xterm.c (handle_one_xevent): Likewise.
24250 * xdisp.c (syms_of_xdisp): In doc-string of
24251 mouse-autoselect-window mention focus-follows-mouse.
24252
24253 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24254
24255 * macterm.c (mac_load_query_font): Fix missing return value.
24256 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24257 Add BLOCK_INPUT.
24258
24259 2007-10-08 Richard Stallman <rms@gnu.org>
24260
24261 * xdisp.c (get_window_cursor_type): Implement documented behavior
24262 for cursor-in-non-selected-windows = t.
24263
24264 2007-10-08 Jason Rumney <jasonr@gnu.org>
24265
24266 * w32.c (w32_get_resource): Always close registry keys.
24267
24268 2007-10-08 Jason Rumney <jasonr@gnu.org>
24269
24270 * makefile.w32-in (LIBS): Add COMCTL32.
24271
24272 * w32fns.c (globals_of_w32fns): Init common controls.
24273
24274 2007-10-08 Richard Stallman <rms@gnu.org>
24275
24276 * image.c (our_memory_buffer): Rename from omfib_buffer.
24277
24278 2007-10-08 Richard Stallman <rms@gnu.org>
24279
24280 * buffer.c (Foverlays_at): Doc fix.
24281
24282 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24283
24284 * fns.c (Fplist_put): Preserve uneven tail data.
24285
24286 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24287
24288 * termhooks.h (enum event_kind): Remove trailing comma.
24289
24290 * frame.h (enum): Remove trailing comma.
24291
24292 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24293
24294 * w32proc.c (delete_child): Don't terminate threads of zombies.
24295
24296 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24297
24298 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24299
24300 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24301 last-repeatable-command.
24302 (init_kboard): Initialize Vlast_repeatable_command.
24303 (command_loop_1): Set it to real_this_command unless that was
24304 bound to an input event.
24305 (mark_kboards): Mark it.
24306
24307 2007-10-08 Richard Stallman <rms@gnu.org>
24308
24309 * eval.c (condition-case): Doc fix.
24310
24311 2007-10-08 Masatake YAMATO <jet@gyve.org>
24312
24313 * xfaces.c (tty_supports_face_attributes_p): Fix code
24314 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24315 was copied and not edited.
24316
24317 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24318
24319 Add new `input-decode-map' keymap and use it for terminal
24320 escape sequences.
24321 * keyboard.h (struct kboard): Add Vinput_decode_map.
24322 Remove Vlocal_key_translation_map.
24323 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24324 (init_kboard): Init input-decode-map.
24325 Replace local-key-translation-map back with key-translation-map.
24326 (syms_of_keyboard): Declare input-decode-map.
24327 Remove local-key-translation-map. Update docstrings.
24328 (mark_kboards): Mark Vinput_decode_map.
24329 Don't mark Vlocal_key_translation_map.
24330 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24331 Replace local-key-translation-map back with key-translation-map.
24332 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24333 Bind in input-decode-map rather than function-key-map.
24334
24335 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24336 This was made redundant by the previous introduction of XSETPVECTYPE.
24337
24338 2007-10-09 Richard Stallman <rms@gnu.org>
24339
24340 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24341
24342 2007-09-29 Richard Stallman <rms@gnu.org>
24343
24344 * eval.c (internal_condition_case_2, internal_condition_case_1)
24345 (internal_condition_case): Reenable abort if x_catching_errors ()
24346 to see if that really happens and why.
24347
24348 2007-10-06 Andreas Schwab <schwab@suse.de>
24349
24350 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24351
24352 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
24353
24354 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24355
24356 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24357
24358 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24359
24360 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24361
24362 * window.h (struct window):
24363 * window.c (struct save_window_data, struct saved_window):
24364 * termhooks.h (struct terminal):
24365 * process.h (struct Lisp_Process):
24366 * frame.h (struct frame):
24367 * buffer.h (struct buffer):
24368 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24369 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24370 The size field of (pseudo)vectors is now unsigned.
24371 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24372
24373 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24374 Turn `count' into an integer.
24375
24376 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24377 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24378 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24379 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24380 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24381
24382 * alloc.c (allocate_pseudovector): New fun.
24383 (ALLOCATE_PSEUDOVECTOR): New macro.
24384 (allocate_window, allocate_terminal, allocate_frame)
24385 (allocate_process): Use it.
24386 (mark_vectorlike): New function.
24387 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24388 (mark_terminals): Use it.
24389 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24390 (Fmake_byte_code): Use XSETPVECTYPE.
24391
24392 * frame.c (Fframe_parameters): Minor simplification.
24393
24394 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24395
24396 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24397
24398 * buffer.c (Fget_buffer_create, init_buffer_once):
24399 * lread.c (defsubr):
24400 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24401
24402 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24403 defined differently in the m/*.h files.
24404 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24405 (XSETPVECTYPE): New macro.
24406 (XSETPSEUDOVECTOR): Use it.
24407
24408 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24409 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24410
24411 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24412 * lread.c (defvar_per_buffer):
24413 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24414
24415 * window.c (candidate_window_p): Only consider as visible frames that
24416 are on the same terminal.
24417
24418 * m/ibms390x.h (MARKBIT): Remove unused macro.
24419
24420 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
24421
24422 * lread.c (Fload): Fix typo in docstring.
24423
24424 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24425
24426 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24427 of a non-zero value can't yield zero.
24428
24429 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24430
24431 * term.c (term_clear_mouse_face, term_mouse_highlight)
24432 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24433
24434 * print.c (safe_debug_print): Use XHASH.
24435
24436 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24437 Lisp elements such as tags.
24438 (XHASH): New macro.
24439 (EQ): Use it.
24440 (SREF, SSET, STRING_COPYIN): Use SDATA.
24441 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24442
24443 * alloc.c (mark_terminal): Remove left-over declaration.
24444 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24445 (allocate_vectorlike): Remove type argument. Adjust callers.
24446 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24447 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24448
24449 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24450 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24451 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24452 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24453 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24454 Use them.
24455
24456 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24457 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24458 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24459
24460 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24461
24462 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24463 loaded by default.
24464
24465 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24466
24467 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24468 on this tty.
24469 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24470
24471 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24472 Update all users.
24473 (handle_one_term_event): Use Gpm_DrawPointer.
24474 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24475 Signal errors instead of returning nil. Always return nil.
24476 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24477 Make it a noop if gpm-mouse was not activated.
24478 (syms_of_term): Update names.
24479
24480 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24481
24482 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24483 (init_sys_modes): Check that gpm_tty is the current tty.
24484
24485 * alloc.c (allocate_terminal): Set the vector size to only count the
24486 lisp fields. Initialize those to nil.
24487 (mark_object): Don't treat terminals specially.
24488 (mark_terminal): Remove.
24489 (mark_terminals): Use mark_object instead.
24490
24491 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24492 the GC to the beginning.
24493
24494 * indent.h:
24495 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24496
24497 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24498
24499 2007-09-25 Jason Rumney <jasonr@gnu.org>
24500
24501 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24502
24503 * w32console.c (create_w32cons_output): Remove.
24504
24505 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24506
24507 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24508 (reset_sys_modes): Use reset_terminal_modes_hook.
24509
24510 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24511
24512 * eval.c (do_autoload): Don't output any message.
24513
24514 2007-09-24 Juri Linkov <juri@jurta.org>
24515
24516 * emacs.c (standard_args): Change priority of "--no-splash"
24517 from 40 to 3. Add "--no-desktop" with the same priority.
24518
24519 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24520
24521 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24522 and optimize the case where they are all 1.
24523
24524 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24525
24526 * lisp.h (abs): Define if not defined.
24527 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24528 Don't define `abs', since it's defined in lisp.h.
24529
24530 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24531
24532 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24533 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24534 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24535 (init_tty): Use DEV_TTY instead of "/dev/tty".
24536 [WINDOWSNT]: No need to protect from NAME arg being null.
24537
24538 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24539
24540 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24541 up the tty state.
24542
24543 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24544
24545 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24546 (gpm_tty): Change its type.
24547 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24548 (gpm_tty): Change its type and initialize it.
24549 (Fterm_open_connection): Check the frame is indeed a tty.
24550 Use the new gpm_tty.
24551 (Fterm_close_connection): Use the new gpm_tty.
24552 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24553 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24554
24555 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24556
24557 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24558 underline_color, to draw strike-through.
24559
24560 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24561
24562 * lisp.h (allocate_terminal): Declare.
24563
24564 * window.c (candidate_window_p): Consider frames that are being placed
24565 by the user as somewhere between visible and iconified.
24566 (window_loop): Prefer windows on the current frame.
24567 (Fselect_window): Move the use of select-frame to the beginning so we
24568 can just delegate all the work (it'll call us back anyway).
24569
24570 * frame.c (Qdisplay_environment_variable):
24571 * frame.h (Qdisplay_environment_variable): Delete.
24572
24573 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24574 of the first arg, since that value may be a union.
24575
24576 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24577 parameter rather than Qdisplay_environment_variable. If all else
24578 fails, look for DISPLAY in initial-environment.
24579
24580 2007-09-21 Glenn Morris <rgm@gnu.org>
24581
24582 * Makefile.in (emacstool): Remove target.
24583 (lisp, shortlisp): Remove termdev.elc.
24584
24585 2007-09-21 Markus Triska <markus.triska@gmx.at>
24586
24587 * xterm.c (x_delete_display): Compile session management conditionally.
24588
24589 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24590
24591 * callproc.c (getenv_internal_1): New function.
24592 (getenv_internal): Use it.
24593 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24594
24595 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24596 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24597 (Fset_terminal_parameter): Work with dead terminals as well.
24598 (Fmodify_terminal_parameters): Remove.
24599
24600 * terminal.c (get_terminal): Handle terminals.
24601 Make sure the terminal returned is live.
24602 (create_terminal): Use allocate_terminal.
24603 (mark_terminals): Move to alloc.c.
24604 (delete_terminal): Use terminal->name as liveness status.
24605 NULL out fields after freeing their contents.
24606 Don't deallocate the object.
24607 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24608 rather than an int.
24609 (Fterminal_live_p): Accept non-integer arguments.
24610 (Fterminal_list): Return terminal objects rather than an ints.
24611
24612 * alloc.c (enum mem_type): New member for `terminal' objects.
24613 (allocate_terminal): New function.
24614 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24615 Handle terminals.
24616 (mark_terminal): New fun.
24617 (mark_terminals): Move from terminal.c.
24618
24619 * term.c (get_tty_terminal): Don't treat output_initial specially.
24620 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24621 (delete_tty): Use terminal->name as liveness status.
24622
24623 * termhooks.h (struct terminal): Make it into a pseudovector.
24624 Remove `deleted' replaced by checking `name's nullness.
24625
24626 * print.c (print_object): Handle terminals.
24627
24628 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24629 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24630
24631 * frame.c (make_terminal_frame):
24632 * keyboard.c (tty_read_avail_input):
24633 * w32term.c (x_delete_terminal):
24634 * xfns.c (Fx_create_frame, x_create_tip_frame):
24635 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24636
24637 2007-09-20 Glenn Morris <rgm@gnu.org>
24638
24639 * process.c (Fmake_network_process): Doc fix.
24640
24641 2007-09-19 Jason Rumney <jasonr@gnu.org>
24642
24643 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24644
24645 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24646
24647 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24648 Fix a C warning regarding variable constness.
24649
24650 * xterm.c (handle_one_xevent): Fix a C warning.
24651
24652 2007-09-18 Jason Rumney <jasonr@gnu.org>
24653
24654 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24655
24656 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24657
24658 * gtkutil.c (gdpy_def): New variable.
24659 (xg_initialize): Initialize gdpy_def.
24660 (xg_display_close): If no other display exists, set gdpy_def to a
24661 new connection.
24662
24663 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24664
24665 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24666 when we have no file name for the icon.
24667 (xg_tool_bar_expose_callback): Remove.
24668 (xg_create_tool_bar): Don't connect expose signal to
24669 xg_tool_bar_expose_callback.
24670 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24671
24672 2007-09-16 Andreas Schwab <schwab@suse.de>
24673
24674 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24675 values instead of zapping them.
24676
24677 2007-09-14 Glenn Morris <rgm@gnu.org>
24678
24679 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24680 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24681 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24682 scope and rename to omfib_buffer for clarity.
24683 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24684
24685 2007-09-14 Kenichi Handa <handa@m17n.org>
24686
24687 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24688
24689 2007-09-13 Jason Rumney <jasonr@gnu.org>
24690
24691 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24692
24693 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24694
24695 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24696 (mac_term_init): Call here instead, passing rif.
24697
24698 2007-09-13 Glenn Morris <rgm@gnu.org>
24699
24700 * s/hpux.h: No longer define `static' as nothing.
24701
24702 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24703
24704 * callint.c (Fcall_interactively): Remove unused var `fun'.
24705
24706 2007-09-12 Romain Francoise <romain@orebokech.com>
24707
24708 * window.c (prefer_window_split_horizontally, display_buffer):
24709 Revert 2007-09-08 change.
24710
24711 2007-09-12 Glenn Morris <rgm@gnu.org>
24712
24713 * alloca.c: Remove file.
24714 * Makefile.in (alloca): Do not undef.
24715 (allocaobj, alloca.o): Remove.
24716 (otherobj): Remove allocaobj.
24717 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24718 * regex.c (C_ALLOCA): Remove all references and code that was only
24719 used when this was defined.
24720 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24721 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24722 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24723
24724 * Makefile.in (SOURCES, unlock, relock): Delete.
24725
24726 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24727 (menu_grab_callback): All uses changed.
24728
24729 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24730 (x_reply_selection_request): All uses changed.
24731
24732 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24733
24734 * lread.c (load_warn_old_style_backquotes): Change message to look
24735 better when it appears in the middle of byte-compiler messages.
24736
24737 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24738
24739 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24740
24741 * xterm.c (x_create_terminal): Add comment.
24742
24743 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24744
24745 2007-09-10 Richard Stallman <rms@gnu.org>
24746
24747 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24748
24749 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24750
24751 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24752 (DEFUN): Document `intspec', use it instead of `prompt'.
24753
24754 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24755
24756 * data.c (Finteractive_form): If the interactive specification starts
24757 with a `(', use it as a Lisp form.
24758
24759 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24760 name and file modes.
24761
24762 * callint.c (Fcall_interactively): Comment fixes.
24763
24764 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24765
24766 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24767 and compiled functions.
24768
24769 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24770
24771 * window.c (prefer_window_split_horizontally): New variable.
24772 (display_buffer): Consider splitting window horizontally depending
24773 on prefer_window_split_horizontally.
24774
24775 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24776
24777 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24778
24779 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24780
24781 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24782
24783 * frame.c (x_set_frame_parameters): Check number is positive before
24784 using XFASTINT.
24785
24786 * window.c (freeze_window_start): Don't presume selected_window holds
24787 a window object.
24788 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24789
24790 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24791
24792 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24793
24794 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24795
24796 * window.c (Vsplit_window_preferred_function): New var.
24797 (Fdisplay_buffer): Use it.
24798 (syms_of_window): Export, and initialize it.
24799
24800 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24801
24802 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24803
24804 2007-09-06 Glenn Morris <rgm@gnu.org>
24805
24806 * gtkutil.c (menu_grab_callback) <cnt>:
24807 * xselect.c (x_reply_selection_request) <cnt>: Move static
24808 variable to file scope.
24809
24810 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24811
24812 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24813 consistent values of selected_frame and selected_window.
24814
24815 2007-09-04 Jason Rumney <jasonr@gnu.org>
24816
24817 * w32console.c (initialize_w32_display): Zero unused hooks.
24818
24819 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24820
24821 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24822 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24823
24824 2007-09-04 Jason Rumney <jasonr@gnu.org>
24825
24826 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24827 in w32console.c. Set up input. Remove XXX comments that have been
24828 confirmed as correct.
24829
24830 * s/ms-w32.h (MULTI_KBOARD): Define.
24831
24832 * w32console.c (one_and_only_w32cons): Remove.
24833 (initialize_w32_display): Take terminal argument.
24834
24835 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24836 initialize_w32_display.
24837 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24838
24839 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24840
24841 * keyboard.c (discard_mouse_events): Discard it.
24842 (make_lispy_event): Translate it to a lisp event.
24843 (lispy_wheel_names): Add wheel-left and right events.
24844 (syms_of_keyboard): Enlarge wheel_syms.
24845
24846 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24847 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24848
24849 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24850
24851 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24852 from WM_MOUSEHWHEEL.
24853 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24854
24855 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24856 terminal.
24857
24858 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24859 keyboard for the terminal.
24860
24861 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24862
24863 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24864 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24865 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24866 and resume-tty-function to resume-tty-hook.
24867 (Fsuspend_tty, Fresume_tty): Use new names.
24868
24869 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24870
24871 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24872 if it starts with "n:".
24873
24874 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24875
24876 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24877
24878 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24879
24880 * frame.h:
24881 * frame.c (Qterm_environment_variable): Remove.
24882 (syms_of_frame): Don't init and staticpro it.
24883
24884 * callproc.c (getenv_internal): Remove special case for $TERM.
24885
24886 * callproc.c (Vinitial_environment): New variable.
24887 (set_initial_environment): Initialize it.
24888 (syms_of_callproc): Declare it.
24889 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24890 TERM under which a process runs is never related to the TERM in which
24891 Emacs is running.
24892
24893 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24894
24895 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24896 * s/darwin.h: ... do it here.
24897
24898 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24899
24900 * lisp.h (set_initial_environment): Rename from set_global_environment.
24901
24902 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24903 removed by mistake on the multi-tty branch.
24904
24905 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24906 (Fmodify_frame_parameters): Return a value.
24907
24908 * image.c (png_load): Comment-out var only used in commented-out code.
24909
24910 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24911 before passing it to mark_object.
24912
24913 * xfaces.c (internal_resolve_face_name): Return a value.
24914 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24915
24916 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24917 (x_icon): Comment-out var only used in commented-out code.
24918
24919 2007-08-29 Romain Francoise <romain@orebokech.com>
24920
24921 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24922 QUIT hasn't been provided.
24923
24924 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24925
24926 * callproc.c (child_setup, getenv_internal): Use the
24927 display-environment-variable and term-environment-variable frame params.
24928 (set_initial_environment): Initialise Vprocess_environment.
24929
24930 * config.in: Disable multi-keyboard support on a mac.
24931
24932 * frame.c (Qterm_environment_variable)
24933 (Qdisplay_environment_variable): New variables.
24934 (syms_of_frame): Intern and staticpro them.
24935 (Fmake_terminal_frame): Disable output method test.
24936
24937 * frame.h: Declare them here.
24938
24939 * macfns.c (x_set_mouse_color): Get rif from the frame.
24940 (x_set_tool_bar_lines): Don't use updating_frame.
24941 (mac_window): Add 2 new parameters for consistency with other systems.
24942 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24943 frame parameters following what is done in X11 and w32. Don't use
24944 FRAME_MAC_DISPLAY_INFO.
24945 (Fx_open_connection, start_hourglass): Remove window-system check.
24946 (x_create_tip_frame): Get the keyboard from the terminal.
24947
24948 * macmenu.c: Reorder includes.
24949 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24950
24951 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24952 terminal parameter.
24953 (x_clear_frame): Add a frame parameter.
24954 (note_mouse_movement): Get rif from the frame.
24955 (mac_term_init): Initialize the terminal.
24956 (mac_initialize): Make static and move terminal initialization ...
24957 (mac_create_terminal): ... to this new function.
24958
24959 * macterm.h (struct mac_display_info): Add terminal.
24960 (mac_initialize): Delete declaration.
24961
24962 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24963
24964 * sysdep.c: Comment out text after #endif.
24965
24966 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24967 is defined. Better initialize ttys in windows. Use terminal
24968 specific mouse_position_hook.
24969
24970 * termhooks.h (union display_info): Add mac_display_info.
24971
24972 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24973 Set the default minibuffer frame, window_system and the rest of the
24974 frame parameters following what is done in X11.
24975
24976 * w32term.c (w32_initialize): Make static.
24977
24978 * xselect.c (x_handle_selection_clear): Only access
24979 terminal->kboard when MULTI_KBOARD is defined.
24980
24981 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24982 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24983
24984 2007-08-29 Jason Rumney <jasonr@gnu.org>
24985
24986 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24987 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24988
24989 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24990 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24991
24992 * keyboard.c (restore_kboard_configuration): Only define when
24993 MULTI_KBOARD defined.
24994
24995 * makefile.w32-in: Update dependancies from Makefile.in.
24996 (OBJ1): Add terminal.$(O)
24997
24998 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24999 Don't define function body.
25000 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25001
25002 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25003
25004 * w32.c (request_sigio, unrequest_sigio): Remove.
25005
25006 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25007 (w32con_clear_frame, w32con_clear_end_of_line)
25008 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25009 (w32con_delete_glyphs, w32con_set_terminal_window)
25010 (scroll_line, w32_sys_ring_bell): Add frame arg.
25011 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25012 Add terminal arg.
25013 (PICK_FRAME): Remove.
25014 (w32con_write_glyphs): Use frame specific terminal coding.
25015 (one_and_only_w32cons): New global variable.
25016 (initialize_w32_display): Use it for storing hooks.
25017 (create_w32cons_output): New function.
25018
25019 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25020 arg a frame.
25021
25022 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25023 Set window_system.
25024 (x_set_tool_bar_lines): Don't use updating_frame.
25025 (Fx_create_frame): Set terminal and ref count.
25026 (Fx_open_connection): Remove window-system check.
25027
25028 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25029
25030 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25031 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25032 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25033 Add frame arg.
25034 (x_delete_terminal, w32_create_terminal): New functions.
25035 (w32_term_init): Create a terminal.
25036 (w32_initialize): Move terminal specific initialization to
25037 w32_create_terminal.
25038
25039 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25040 (w32_clear_rect, w32_clear_area): Use background from frame.
25041 (w32_display_info): Add terminal.
25042 (w32_sys_ring_bell, x_delete_display): Declare here.
25043
25044 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25045
25046 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25047
25048 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25049
25050 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25051 Fix get_named_tty calls for the controlling tty.
25052
25053 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25054
25055 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
25056
25057 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25058
25059 * term.c (tty_insert_glyphs): Add missing first parameter.
25060
25061 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25062
25063 * buffer.c (Fbuffer_list, Fbury_buffer):
25064 Take frame->buried_buffer_list into account.
25065
25066 * cm.c (current_tty): New variable, for cmputc().
25067 (cmputc): Use it.
25068 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25069 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25070 (cmgoto): Add tty parameter. Pass it on to calccost().
25071 Use emacs_tputs() instead of tputs().
25072
25073 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25074 tputs().
25075 (current_tty): New variable, for cmputc().
25076 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25077
25078 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25079 (internal_condition_case, internal_condition_case_1)
25080 (internal_condition_case_2): Don't abort when x_catching_errors.
25081
25082 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25083 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25084 prevent crashes caused by bogus longjmps in read_char.
25085
25086 * keymap.h (Fset_keymap_parent): Add EXFUN.
25087
25088 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25089 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25090 Remove redundant definition.
25091
25092 * macfns.c (x_set_mouse_color, x_make_gc):
25093 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25094
25095 * w32term.c (x_free_frame_resources):
25096 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25097 (w32_initialize): Use the accessor macros for terminal characteristics.
25098
25099 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25100 Use the accessor macros for terminal characteristics.
25101 * msdos.c (internal_terminal_init): Use the accessor macros for
25102 terminal characteristics.
25103 (ScreenVisualBell, internal_terminal_init):
25104 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25105
25106 * termopts.h (no_redraw_on_reenter): Declare.
25107
25108 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25109 (mark_terminals, mark_ttys): Declare.
25110 (Fgarbage_collect): Call them.
25111 (mark_object): Mark buried_buffer_list.
25112
25113 * prefix-args.c: Include stdlib.h for exit.
25114
25115 * syssignal.h: Add comment.
25116
25117 * indent.c: Include stdio.h.
25118
25119 * window.h (Vinitial_window_system): Declare.
25120 (Vwindow_system): Delete declaration.
25121
25122 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25123
25124 * image.c (lookup_image): Don't initialize `c' until the xasserts
25125 have been run.
25126
25127 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25128 FRAME_FOREGROUND_PIXEL.
25129
25130 * print.c (print_preprocess): Don't lose print_depth levels while
25131 iterating.
25132
25133 * widget.c (update_from_various_frame_slots):
25134 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25135
25136 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25137 frames.
25138 (window_internal_height): Remove bogus make_number call.
25139 (init_window_once): Call make_terminal_frame with two zero parameters.
25140
25141 * fileio.c (Fread_file_name): Update comment.
25142
25143 * callint.c (Fcall_interactively):
25144 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25145 Make sure it is correctly unwound.
25146
25147 * xsmfns.c (x_session_close): New function.
25148
25149 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25150 Delete declarations.
25151
25152 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25153 (x_output): Remove background_pixel and foreground_pixel fields.
25154 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25155 (x_delete_device, x_session_close): Declare.
25156
25157 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25158 (read_filtered_event): Call `read_char' with a local
25159 `wrong_kboard_jmpbuf'.
25160
25161 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25162 Don't call single_kboard_state. Use FRAME_RIF.
25163
25164 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25165 systems.
25166
25167 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25168 (Fframe_with_environment, Fset_input_meta_mode)
25169 (Fset_quit_char): EXFUN.
25170 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25171 (init_sys_modes, reset_sys_modes): Update prototypes.
25172 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25173
25174 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25175 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25176 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25177 Delete declarations.
25178 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25179 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25180 New declarations.
25181
25182 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25183 already does that during init_display(). Call syms_of_keymap
25184 before syms_of_keyboard. Call `syms_of_terminal'.
25185 Call set_initial_environment, not set_process_environment.
25186 (shut_down_emacs): Call reset_all_sys_modes() instead of
25187 reset_sys_modes().
25188
25189 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25190 (internal_resolve_face_name, resolve_face_name_error): New functions.
25191 (resolve_face_name): Protect against loops and errors thrown by Fget.
25192 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25193 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25194
25195 * scroll.c: Replace CURTTY() with local variables throughout the
25196 file (where applicable).
25197 (calculate_scrolling, calculate_direct_scrolling)
25198 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25199 characteristics.
25200
25201 * keymap.c (Vfunction_key_map): Remove.
25202 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25203 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25204 (Vkey_translation_map): Remove.
25205 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25206 (Fdescribe_buffer_bindings)
25207 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25208 Update for terminal-local key-translation-map.
25209
25210 * Makefile.in (callproc.o): Update dependencies.
25211 (lisp, shortlisp): Add termdev.elc.
25212 (obj): Add terminal.o.
25213 (terminal.o): Add dependencies.
25214 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25215 (data.o, fns.o): Add termhooks.h dependency.
25216 (SOME_MACHINE_LISP): Add dnd.elc.
25217 (minibuf.o): Fix typo.
25218 Update dependencies.
25219
25220 * data.c (do_symval_forwarding, store_symval_forwarding)
25221 (find_symbol_value): Use the selected frame's keyboard, not
25222 current_kboard.
25223
25224 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25225 Vwindow_system.
25226
25227 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25228 Fmenu_bar_open.
25229 (syms_of_xmenu): Update defsubr.
25230 (mouse_position_for_popup, Fx_popup_menu)
25231 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25232 (set_frame_menubar, free_frame_menubar)
25233 (create_and_show_popup_menu, xmenu_show)
25234 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25235 an X frame.
25236
25237 * xselect.c (x_own_selection): Abort if not an X frame.
25238 (some_frame_on_display): Check if it is an X frame.
25239 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25240
25241 * coding.c: Include frame.h and termhooks.h.
25242 (terminal_coding, keyboard_coding): Delete.
25243 (Fset_terminal_coding_system_internal)
25244 (Fset_keyboard_coding_system_internal)
25245 (Fkeyboard_coding_system)
25246 (Fterminal_coding_system): Add a terminal parameter.
25247 Get terminal_coding from the terminal.
25248 (init_coding_once): Don't call setup_coding_system here.
25249
25250 * dispextern.h (set_scroll_region, turn_off_insert)
25251 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25252 (tty_clear_end_of_line, tty_setup_colors)
25253 (delete_tty, updating_frame)
25254 (produce_special_glyphs, produce_glyphs, write_glyphs)
25255 (insert_glyphs): Remove.
25256 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25257 (tty_turn_off_highlight, get_tty_size): Add declaration.
25258 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25259
25260 * frame.h (enum output_method): Add output_initial.
25261 (struct x_output): Delete.
25262 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25263 Access foreground_pixel and background_pixel directly from the frame.
25264 (tty_display): Delete.
25265 (struct frame): Add buried_buffer_list, foreground_pixel,
25266 background_pixel and terminal. Delete kboard.
25267 (union output_data): Add tty.
25268 (FRAME_KBOARD): Get the kboard from the terminal.
25269 (FRAME_INITIAL_P): New macro.
25270 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25271 (Qterm_environment_variable, Qdisplay_environment_variable)
25272 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25273 New declarations.
25274
25275 * termchar.h (tty_output, tty_display_info): New structures.
25276 (tty_list): Declare.
25277 (FRAME_TTY, CURTTY): New macros.
25278 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25279 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25280 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25281 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25282
25283 * callproc.c: Include frame.h and termhooks.h, for terminal
25284 parameters.
25285 (add_env): New function.
25286 (child_setup): Use it.
25287 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25288 (getenv_internal): Fix get_terminal_param call.
25289 (Fgetenv_internal, egetenv): Update doc.
25290 (syms_of_callproc): Initialize Vprocess_environment to nil.
25291 Register and initialize them. Remove obsolete defvars. Update doc
25292 strings.
25293 (child_setup): Handle Vlocal_environment_variables.
25294 (getenv_internal): Add terminal parameter.
25295 Handle Vlocal_environment_variables.
25296 (Fgetenv_internal): Add terminal parameter.
25297 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25298 environment in a frame (not terminal) parameter. Update doc strings.
25299 (set_initial_environment): Rename from set_global_environment.
25300 Store Emacs environment in initial frame parameter.
25301
25302 * xdisp.c (redisplay_internal): Update references to
25303 `previous_terminal_frame'.
25304 (display_mode_line, Fformat_mode_line): Replace calls to
25305 `push_frame_kboard' with `push_kboard'.
25306 (get_glyph_string_clip_rects): Add extra parentheses and
25307 braces to prevent compiler warnings.
25308 (calc_pixel_width_or_height): Add xassert to check that the
25309 frame is alive. Don't call `lookup_image' on a termcap frame.
25310 (message2_nolog, message3_nolog, redisplay_internal)
25311 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25312 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25313 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25314 (Fx_display_pixel_width, Fx_display_pixel_height)
25315 (Fx_display_planes, Fx_display_color_cells)
25316 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25317 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25318 (Fx_display_backing_store, Fx_display_visual_class)
25319 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25320 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25321
25322 * xfns.c (x_set_foreground_color x_set_background_color)
25323 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25324 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25325 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25326 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25327 terminal that is being deleted.
25328 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25329 frame parameter, and make sure it overrides any user-supplied setting.
25330 (Fx_close_connection, Fx_synchronize): Unify argument names with
25331 the rest of the DEFUNs.
25332
25333 * dispnew.c (Fsend_string_to_terminal): Update call to
25334 `get_tty_terminal'.
25335 (Fredraw_frame, Fsend_string_to_terminal)
25336 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25337 FRAME_TERMCAP_P and FRAME_TTY.
25338 (window_change_signal): Don't believe width/height values that are
25339 impossibly small.
25340 (Vinitial_window_system): Rename from Vwindow_system.
25341 (termscript, Wcm, rif): Delete.
25342
25343 * termhooks.h (struct terminal): New struct containing the
25344 previously global text display hooks and new members NAME,
25345 DELETED and PARAM_ALIST.
25346 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25347 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25348 (FRAME_RIF): New macros.
25349 (get_terminal_param, get_device): New declarations.
25350 (termscript): Delete declaration.
25351
25352 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25353 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25354 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25355 FRAME_FOREGROUND_PIXEL.
25356 (x_fully_uncatch_errors): Disable definition.
25357 (x_scroll_bar_expose): Fix reference to foreground pixel.
25358 (XTread_socket): Disable loop on all X displays.
25359 (x_delete_terminal): Don't set terminal->deleted and let
25360 delete_terminal delete the frames on the terminal.
25361 (x_delete_display): Doc update to reflect changes in
25362 delete_terminal.
25363 (x_display_info) <terminal>: Move member earlier in the struct.
25364 (deleting_tty): Remove old variable.
25365 (Fsuspend_tty): Call clear_tty_hooks.
25366 (Fresume_tty, init_tty): Call set_tty_hooks.
25367 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25368 errors on X frames.
25369 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25370 (handle_one_xevent): Initialize `f' to NULL.
25371 (x_delete_terminal, x_create_terminal): New functions.
25372 (XTset_terminal_modes, XTreset_terminal_modes)
25373 (XTread_socket, x_connection_closed, x_term_init)
25374 (x_term_init, x_delete_display): Add terminal parameter.
25375 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25376 X connections.
25377
25378 * frame.c: Include termchar.h.
25379 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25380 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25381 (Qdisplay_environment_variable): New vars.
25382 (Fframep): Deal with output_initial.
25383 (Fframe-live-p): Doc fix.
25384 (Fwindow-system): New function.
25385 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25386 (make_terminal_frame): Don't create frames on a terminal that is
25387 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25388 (store_frame_param): Check for found_for_frame before calling XFRAME.
25389 (Fmake_terminal_frame): Handle NULL tty names correctly.
25390 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25391 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25392 frames to refer to a deleted frame in their 'environment parameter.
25393 (Fframe_with_environment): New function.
25394 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25395 (get_future_frame_param): New function.
25396 (Fmake_terminal_frame): Use it.
25397 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25398
25399 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25400 * sysdep.c (reset_sys_modes): Update for renames.
25401
25402 * keyboard.c (tty_read_avail_input): New function.
25403 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25404 (syms_of_keyboard): Defsubr them.
25405 (Fset_input_meta_mode, Fset_quit_char): New functions.
25406 (Fset_input_mode): Split to above functions.
25407 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25408 parameter. Use it in call to `read_char'.
25409 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25410 Set wrong_kboard_jmpbuf correctly in recursive calls.
25411 Use current_kboard to access Vkeyboard_translate_table.
25412 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25413 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25414 Update longjmp invocations. Remember the original current_kboard,
25415 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25416 changes it. Comment out unnecessary calls to
25417 `record_single_kboard_state' and `any_kboard_state'.
25418 Update recursive calls.
25419 (wrong_kboard_jmpbuf): Remove global variable.
25420 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25421 Handle deleted interrupted_kboards correctly; that is a legal
25422 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25423 and read_char calls. Abort if interrupted_kboard died in read_char.
25424 (any_kboard_state, single_kboard_state)
25425 (push_frame_kboard): Remove function.
25426 (pop_kboard): Switch out of single_kboard mode if the kboard has
25427 been deleted. Remove unused variable. Help debugging by not
25428 changing current_kboard unnecessarily. Set current_kboard to the
25429 kboard of the selected frame when the stored kboard object has
25430 been deleted before pop_kboard.
25431 (temporarily_switch_to_single_kboard): Change first parameter to a
25432 frame pointer. Throw an error when caller wants to change kboards
25433 while in single_kboard mode. Don't push_kboard if we weren't in
25434 single kboard state. Don't pop_kboard if we popped into any
25435 kboard state.
25436 (restore_kboard_configuration): Abort if pop_kboard changed the
25437 kboard in single_kboard mode. Call pop_kboard only after setting
25438 up single_kboard mode.
25439 (Frecursive_edit): Switch to single_kboard mode only in nested
25440 command loops.
25441 (cmd_error, command_loop, command_loop_1, timer_check):
25442 Comment out unnecessary call to `any_kboard_state' and
25443 `record_single_kboard_state'.
25444 (delete_kboard): Exit single_kboard mode if we have just deleted
25445 that kboard. Use FRAME_KBOARD.
25446 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25447 `fatal_error_signal'.
25448 (record_single_kboard_state): Don't push_kboard if we weren't in
25449 single kboard state. Don't pop_kboard if we popped into any
25450 kboard state.
25451 (push_frame_kboard): Rename to push_kboard.
25452 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25453 (read_avail_input): Read input from all terminals.
25454 (mark_kboards): Also mark Vkeyboard_translate_table.
25455 (kbd_buffer_store_event_hold): Simplify condition.
25456 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25457 (Vkeyboard_translate_table): Move to struct kboard.
25458 (init_kboard): Initialize Vkeyboard_translate_table.
25459 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25460 Vkeyboard_translate_table. Update doc strings. Update docs of
25461 local-function-key-map and function-key-map.
25462
25463 * terminal.c: New file.
25464
25465 * term.c: Include errno.h.
25466 (Vring_bell_function, device_list, initial_device)
25467 (next_device_id, ring_bell, update_begin, update_end)
25468 (set_terminal_window, cursor_to, raw_cursor_to)
25469 (clear_to_end, clear_frame, clear_end_of_line)
25470 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25471 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25472 (syms_of_term): Move their initialization to terminal.c.
25473 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25474 (Ftty_display_color_cells)
25475 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25476 (clear_tty_hooks, set_tty_hooks)
25477 (init_tty, maybe_fatal): New functions.
25478 (Ftty_type): Return nil if terminal is not on a tty instead of
25479 throwing an error. Doc update.
25480 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25481 Doc update. Initialize new subrs and variables.
25482 (delete_tty): Use terminal->deleted.
25483 (tty_set_terminal_modes): Rename from set_terminal_modes.
25484 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25485 (set_scroll_region): Rename to `tty_set_scroll_region'.
25486 (turn_on_insert): Rename to `tty_turn_on_insert'.
25487 (turn_off_insert): Rename to `tty_turn_off_insert'.
25488 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25489 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25490 (toggle_highligh): Rename to `tty_toggle_highlight'.
25491 (background_highlight): Rename to `tty_background_highlight'.
25492 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25493 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25494 (tty_set_scroll_region, tty_background_highlight)
25495 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25496 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25497 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25498 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25499 Add static modifier.
25500 (tty_reset_terminal_modes, tty_set_terminal_window)
25501 (tty_set_scroll_region, tty_background_highlight)
25502 (tty_highlight_if_desired, tty_cursor_to)
25503 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25504 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25505 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25506 renames.
25507
25508 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25509
25510 * keyboard.c: Qrtl is new.
25511 (parse_tool_bar_item): Handle :rtl keyword.
25512 (syms_of_keyboard): Intern :rtl keyword.
25513
25514 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25515
25516 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25517 so no Lisp code is executed.
25518 (file_for_image, find_rtl_image): New functions.
25519 (xg_get_image_for_pixmap): Use file_for_image.
25520 (update_frame_tool_bar): If direction is RTL, use RTL image if
25521 defined. Use Gtk stock images if defined.
25522
25523 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25524
25525 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25526 for nonexistent or zero-width glyph in composition glyph.
25527
25528 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25529
25530 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25531
25532 * xdisp.c (Finvisible_p): New function.
25533 (syms_of_xdisp): defsubr it.
25534
25535 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25536
25537 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25538 Doc fixes.
25539
25540 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25541
25542 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25543
25544 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25545
25546 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25547 whether decoding has modified buffer contents.
25548
25549 2007-08-24 Jason Rumney <jasonr@gnu.org>
25550
25551 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25552 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25553 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25554 (init_svg_functions) [HAVE_NTGUI]: New function.
25555 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25556 (svg_load_image): Use them.
25557 (svg_load_image) [HAVE_NTGUI]: Implement background.
25558
25559 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25560
25561 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25562 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25563 (LIBX): Remove @RSVG_LIBS@.
25564 (LIBES): Add $(RSVG_LIBS).
25565
25566 * image.c (svg_load_image): Blend with specified background if exists.
25567 Use IMAGE_BACKGROUND. Add Mac OS Support.
25568
25569 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25570 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25571 Remove macros.
25572 [MAC_OSX] (socket_callback): Do nothing.
25573 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25574 ReceiveNextEvent.
25575 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25576 socket_callback.
25577 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25578
25579 2007-08-22 Glenn Morris <rgm@gnu.org>
25580
25581 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25582
25583 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25584
25585 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25586
25587 * image.c: Add support for SVG images. Some additional comments
25588 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25589 (svg_image_p): New function to test for SVG image.
25590 (svg_load): New function to load SVG image.
25591 (svg_load_image): New function, helper for svg_load.
25592 (Qsvg): New Lisp_object.
25593 (svg_keyword_index): New enum.
25594 (svg_format): New static `image_keyword' struct.
25595 (svg_type): New static `image_type' struct.
25596 (librsvg/rsvg.h): Include it.
25597
25598 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25599
25600 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25601
25602 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25603
25604 * lread.c (Qold_style_backquotes): New var.
25605 (syms_of_lread): Init and staticpro it.
25606 (load_warn_old_style_backquotes): New fun.
25607 (Fload): Use them to warn about old style backquotes.
25608 (end_of_file_error, Fload): Remove unused vars.
25609
25610 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25611
25612 * lread.c (Vold_style_backquotes): New var.
25613 (syms_of_lread): Init and export it to Elisp.
25614 (read1): Set it when we find an old-style (back)quote.
25615
25616 2007-08-22 Jason Rumney <jasonr@gnu.org>
25617
25618 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25619
25620 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25621
25622 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25623
25624 2007-08-19 Richard Stallman <rms@gnu.org>
25625
25626 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25627
25628 2007-08-19 Andreas Schwab <schwab@suse.de>
25629
25630 * alloc.c (pure): Round PURESIZE up.
25631
25632 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25633
25634 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25635 active frame.
25636
25637 2007-08-16 Richard Stallman <rms@gnu.org>
25638
25639 * eval.c (Fcommandp): Add parens to clarify.
25640
25641 * minibuf.c (Fall_completions): Use enum for type of table.
25642
25643 * emacs.c (USAGE2): Improve text.
25644
25645 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25646
25647 * term.c (tty_default_color_capabilities): Declare static
25648 variables in file scope, to avoid HPUX compiler problem.
25649
25650 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25651
25652 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25653 to gtk_toolbar_insert.
25654
25655 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25656
25657 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25658
25659 * insdel.c (reset_var_on_error): New fun.
25660 (signal_before_change, signal_after_change):
25661 Use it to reset (after|before)-change-functions to nil in case of error.
25662 Bind inhibit-modification-hooks to t.
25663 Don't bind (after|before)-change-functions to nil while they run.
25664
25665 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25666
25667 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25668 filling pixmap with stippled background.
25669
25670 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25671
25672 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25673 Don't use invisible frame as parent window for repositioning.
25674
25675 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25676
25677 * print.c (new_backquote_output): Rename from old_backquote_output.
25678 (print): Inverse its logic (according to its name) so as to match the
25679 behavior of new_backquote_flag in lread.c.
25680
25681 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25682
25683 * gmalloc.c (posix_memalign): New function.
25684
25685 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25686 ActivateControl/DeactivateControl here.
25687 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25688 frame-notice-user-settings is non-nil.
25689 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25690 for kEventParamFMFontStyle.
25691 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25692 mac_pass_command_to_system and mac_pass_control_to_system here.
25693 (XTread_socket): Call ActivateControl/DeactivateControl here.
25694 (XTread_socket) [TARGET_API_MAC_CARBON]:
25695 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25696 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25697 for window repositioning.
25698
25699 2007-08-08 Glenn Morris <rgm@gnu.org>
25700
25701 * Replace `iff' in doc-strings and comments.
25702
25703 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25704
25705 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25706
25707 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25708
25709 * fileio.c (Finsert_file_contents): Run format-decode and
25710 after_insert_file_functions on entire buffer when REPLACE is
25711 non-nil and inhibit modification_hooks and point_motion_hooks.
25712 For consistency, run after_insert_file_functions iff something
25713 got inserted. Move signal_after_change and update_compositions
25714 after code running after_insert_file_functions. Make sure that
25715 undo_list doesn't record intermediate steps of the decoding process.
25716
25717 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25718
25719 * emacs.c (main)
25720 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25721 Call malloc_enable_thread on interactive startup.
25722
25723 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25724 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25725 [USE_PTHREAD]: Conditionalize with it.
25726 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25727 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25728 New functions.
25729
25730 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25731
25732 * xdisp.c (redisplay_window): When restoring original buffer
25733 position, make sure it is still valid.
25734
25735 * image.c (png_load): Ignore png-supplied background color.
25736
25737 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25738
25739 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25740 Use kCFAbsoluteTimeIntervalSince1970.
25741
25742 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25743 New variable.
25744 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25745 event loop should be quit.
25746 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25747 Quit dialog event loop if quit_dialog_event_loop is set.
25748
25749 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25750 (Selection): New typedef. Use instead of ScrapRef.
25751 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25752 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25753 (mac_clear_selection): Rename from clear_scrap.
25754 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25755 scrap_has_target_type. All uses changed.
25756 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25757 (mac_selection_has_target_p): New functions.
25758 (mac_put_selection_value): Rename from put_scrap_string.
25759 (mac_get_selection_value): Rename from get_scrap_string.
25760 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25761 (put_scrap_private_timestamp, scrap_has_target_type)
25762 (get_scrap_private_timestamp): Remove functions.
25763 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25764 (x_own_selection, x_get_local_selection):
25765 Use mac_valid_selection_value_p.
25766 (x_own_selection): Don't use put_scrap_private_timestamp.
25767 Record OWNERSHIP-INFO into Vselection_alist instead.
25768 (x_get_local_selection): Don't check type if request is local.
25769 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25770 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25771
25772 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25773
25774 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25775 add comment explaining why.
25776
25777 2007-08-03 Richard Stallman <rms@gnu.org>
25778
25779 * fileio.c (Fvisited_file_modtime): Use make_time.
25780
25781 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25782
25783 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25784 build.
25785
25786 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25787
25788 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25789
25790 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25791
25792 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25793
25794 2007-07-30 Richard Stallman <rms@gnu.org>
25795
25796 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25797
25798 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25799
25800 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25801
25802 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25803
25804 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25805 remote default-directory.
25806
25807 * buffer.c (mode-line-format): Update doc string.
25808
25809 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25810
25811 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25812 scroll bar gap.
25813 (x_scroll_bar_create): Set bar->fringe_extended_p.
25814 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25815 on frame edge. Check fringe background extension. Don't clear
25816 extended fringe background area.
25817
25818 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25819 (w32_fill_area): Enclose multiple statements with do ... while (0).
25820
25821 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25822 Extend fringe background to scroll bar gap.
25823 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25824 Set bar->fringe_extended_p.
25825 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25826 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25827 background extension. Don't clear extended fringe background area.
25828
25829 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25830 New member fringe_extended_p.
25831
25832 2007-07-25 Glenn Morris <rgm@gnu.org>
25833
25834 * Relicense all FSF files to GPLv3 or later.
25835
25836 * COPYING: Switch to GPLv3.
25837
25838 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25839
25840 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25841
25842 * data.c (Finteractive_form): Check for the presence of an
25843 `interactive-form' symbol property more thoroughly.
25844
25845 * data.c (Finteractive_form): Use an `interactive-form' property if
25846 present, analogous to the function-documentation property.
25847
25848 2007-07-24 Jason Rumney <jasonr@gnu.org>
25849
25850 * w32fns.c (x_real_positions): Get real position from OS instead of
25851 calculating it.
25852
25853 2007-07-23 Jason Rumney <jasonr@gnu.org>
25854
25855 * filelock.c (current_lock_owner): Allow for @ sign in username.
25856
25857 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25858
25859 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25860 remote default-directory.
25861
25862 * buffer.c (mode-line-format): Describe above case in doc string.
25863
25864 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25865
25866 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25867 Define if not defined.
25868
25869 2007-07-18 Jason Rumney <jasonr@gnu.org>
25870
25871 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25872
25873 2007-07-18 Richard Stallman <rms@gnu.org>
25874
25875 * data.c (Fsetq_default): Doc fix.
25876
25877 * eval.c (Fsetq): Doc fix.
25878
25879 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25880
25881 * coding.c (Ffind_operation_coding_system):
25882 * eval.c (For, Fand): Doc fixes.
25883 Reported by Johan Bockgård.
25884
25885 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25886
25887 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25888
25889 * xterm.h: Declare x_ewmh_activate_frame.
25890
25891 * xterm.c (x_ewmh_activate_frame): New function.
25892 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25893
25894 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25895
25896 * window.c (Fdisplay_buffer): If largest or LRU window is the
25897 only window, split it even if it is not eligible for splitting.
25898 This restores the original behavior broken by the 2007-07-15
25899 change.
25900
25901 2007-07-17 Glenn Morris <rgm@gnu.org>
25902
25903 * abbrev.c (abbrev_check_chars): New function.
25904 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25905 Call abbrev_check_chars to check abbrev characters are word
25906 constituents. Doc fix.
25907
25908 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25909
25910 * process.c (Fstart_process, Fmake_network_process)
25911 (read_process_output): Fix up last changes.
25912
25913 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25914
25915 * makefile.w32-in (clean): Don't delete *~.
25916
25917 2007-07-16 Andreas Schwab <schwab@suse.de>
25918
25919 * window.c (Fdisplay_buffer): Use NILP.
25920 (Fset_window_scroll_bars): Likewise.
25921
25922 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25923
25924 * window.c (window_min_size_2): New function.
25925 (window_min_size_1, size_window, Fdisplay_buffer)
25926 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25927 windows without mode- or header-lines when window-min-height is
25928 too small.
25929 (size_window): Reset nodelete_p after testing it, following an
25930 earlier note by Kim F. Storm.
25931 (display_buffer): Do not set split_height_threshold to twice the
25932 value of window_min_height to avoid changing the value of a
25933 customizable variable. Rather explicitly check whether the
25934 height of the window that shall be splitted is at least as large
25935 as split_height_threshold.
25936 (Fwindow_full_width_p): New defun.
25937 (syms_of_window): Defsubr it.
25938
25939 * window.h: Add EXFUN for Fwindow_full_width_p.
25940
25941 2007-07-14 Jason Rumney <jasonr@gnu.org>
25942
25943 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25944
25945 2007-07-14 Richard Stallman <rms@gnu.org>
25946
25947 * eval.c (maybe_call_debugger): New function.
25948 (find_handler_clause): Use maybe_call_debugger.
25949 Call it when the handler says `debug'.
25950 Eliminate DEBUGGER_VALUE_PTR.
25951 (Fsignal): Eliminate debugger_value.
25952 (Qdebug): New variable.
25953 (syms_of_eval): Initialize it.
25954
25955 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25956
25957 * eval.c (Fprogn):
25958 * keyboard.c (Ftrack_mouse):
25959 * print.c (Fwith_output_to_temp_buffer):
25960 * window.c (Fsave_window_excursion): Doc fix.
25961
25962 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25963
25964 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25965
25966 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25967
25968 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25969 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25970 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25971 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25972 Remove unused encoding_carryover.
25973 * process.c: Adjust all functions accordingly.
25974
25975 2007-07-12 Richard Stallman <rms@gnu.org>
25976
25977 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25978
25979 2007-07-11 Jason Rumney <jasonr@gnu.org>
25980
25981 * makefile.w32-in (LIBS): Include OLE32.
25982
25983 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25984 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25985
25986 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25987
25988 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25989 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25990 from a Lisp_Object into a bare pointer.
25991 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25992 Adjust the code correspondingly.
25993
25994 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25995
25996 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25997 (term_show_mouse_face): Remove unused var `j'.
25998 (handle_one_term_event): Remove unused vars `i' and `j'.
25999 Don't cast return value of ttyname since it's not necessary.
26000
26001 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26002
26003 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26004 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26005
26006 * fns.c (map_char_table): Use an array of int for `indices' rather than
26007 an array of Lisp_Objects (which are only ever integers anyway).
26008 (Fmap_char_table): Update caller.
26009 * lisp.h: Update prototype.
26010 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26011 * fontset.c (Ffontset_info):
26012 * casetab.c (set_case_table): Update callers.
26013
26014 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26015
26016 * keymap.c (struct accessible_keymaps_data)
26017 (struct where_is_internal_data): New structures.
26018 (accessible_keymaps_1, where_is_internal_1): Use them to change
26019 interface to adhere to the one used by map_keymap.
26020 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26021 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26022
26023 * keymap.h (map_keymap_function_t): More informative prototype.
26024
26025 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26026
26027 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26028 (looking_at_1): Don't change search_regs and last_thing_searched
26029 if `inhibit-changing-match-data' is non-nil.
26030 (string_match_1, search_buffer, set_search_regs): Likewise.
26031 (syms_of_search): Add Lisp level definition for
26032 `inhibit-changing-match-data' and set it to nil.
26033 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26034 start and end of the match, instead of using values in search_regs.
26035
26036 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26037
26038 * minibuf.c (Fcompleting_read): New value `confirm-only'
26039 for `require-match'.
26040
26041 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26042
26043 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26044 part of the 2007-06-27 change to syms_of_fileio.
26045
26046 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26047
26048 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26049 Check WINDOWP before using XWINDOW. Consolidate return statements.
26050
26051 2007-06-27 Richard Stallman <rms@gnu.org>
26052
26053 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26054
26055 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
26056
26057 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26058
26059 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26060
26061 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26062 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26063 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26064 (_free_internal, memalign): Use them.
26065 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26066 Initialize to PTHREAD_MUTEX_INITIALIZER.
26067 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26068 (morecore_nolock): Rename from morecore. All uses changed.
26069 Use only nolock versions of internal allocation functions.
26070 (_malloc_internal_nolock, _realloc_internal_nolock)
26071 (_free_internal_nolock): New functions created from
26072 _malloc_internal, _realloc_internal, and _free_internal.
26073 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26074 Copy hook value to automatic variable before its use.
26075 (memalign): Copy hook value to automatic variable before its use.
26076
26077 2007-06-26 Kenichi Handa <handa@m17n.org>
26078
26079 * coding.c (Ffind_operation_coding_system): Docstring improved.
26080 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26081
26082 2007-06-25 David Kastrup <dak@gnu.org>
26083
26084 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26085 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26086 cater for additional parameter.
26087
26088 * keymap.h: Adjust number of parameters to `current-active-maps'.
26089
26090 * doc.c (Fsubstitute_command_keys): Adjust call of
26091 `current-active-maps'.
26092
26093 2007-06-25 David Kastrup <dak@gnu.org>
26094
26095 * callint.c (Fcall_interactively): Make the parsing of interactive
26096 specs somewhat more readable.
26097
26098 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26099
26100 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26101 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26102 if extended background has already been filled.
26103
26104 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26105
26106 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26107 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26108
26109 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26110 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26111 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26112 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26113 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26114 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26115 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26116 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26117 Run timers during dialog popup.
26118 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26119
26120 2007-06-21 Jason Rumney <jasonr@gnu.org>
26121
26122 * image.c (convert_mono_to_color_image): Swap fore and background.
26123
26124 2007-06-20 Jason Rumney <jasonr@gnu.org>
26125
26126 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26127 (w32_free_bdf_font): Unmap memory not handle.
26128
26129 2007-06-20 Sam Steingold <sds@gnu.org>
26130
26131 * gmalloc.c (__morecore): Fix the declaration to comply with the
26132 definition.
26133
26134 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
26135
26136 * w32term.c (w32_delete_display): Remove leftover declaration.
26137 (w32_define_cursor, w32_initialize): Make static.
26138
26139 * w32.c (_wsa_errlist): Fix typo in error message.
26140 (init_environment): Ignore any environment variable from the
26141 registry having a null value.
26142
26143 2007-06-20 Glenn Morris <rgm@gnu.org>
26144
26145 * Makefile.in (LIBGIF): Default to -lgif.
26146
26147 2007-06-17 Jason Rumney <jasonr@gnu.org>
26148
26149 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26150 unicode strings.
26151
26152 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
26153
26154 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26155 Fix typo in docstring.
26156
26157 2007-06-16 Eli Zaretskii <eliz@gnu.org>
26158
26159 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26160 and their keybindings.
26161
26162 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
26163
26164 * composite.c (update_compositions): Fix last fix.
26165
26166 2007-06-14 Jason Rumney <jasonr@gnu.org>
26167
26168 * w32.c (get_process_times_fn): New function pointer.
26169 (globals_of_w32): Intialize it if present in kernel32.dll.
26170 (w32_get_internal_run_time): New function.
26171
26172 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26173
26174 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26175
26176 * composite.c (update_compositions): Check the validness of
26177 compositions.
26178
26179 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26180
26181 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26182 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26183
26184 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26185 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26186
26187 * macgui.h (USE_MAC_TOOLBAR): New define.
26188
26189 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26190 Return immediately unless popup is activated.
26191
26192 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26193 background to scroll bar gap.
26194 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26195 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26196 scroll bars on frame edge. Check fringe background extension.
26197 Don't clear extended fringe background area.
26198 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26199 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26200 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26201 [USE_MAC_TOOLBAR]: New macros.
26202 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26203 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26204 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26205 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26206 [USE_MAC_TOOLBAR]: New functions.
26207 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26208 manually if previous repositioning has failed.
26209 (mac_handle_keyboard_event): Use precomputed event kind.
26210 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26211 as tool bar item click. Handle mouse movement over tool bar items.
26212
26213 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26214 toolbar_win_gravity.
26215 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26216 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26217 Add externs.
26218
26219 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26220 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26221
26222 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26223
26224 * image.c (search_image_cache): Remove unused variable.
26225
26226 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26227
26228 * xfns.c, xmenu.c: Link to xaw3d if available.
26229
26230 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26231
26232 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26233 frame_foreground and frame_background.
26234
26235 * image.c (lookup_image): Save frame foreground and background colors.
26236 (search_image_cache): Check if saved and current frame colors match.
26237
26238 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26239
26240 * regex.c (regex_compile): Remove the `regnum' counter.
26241 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26242
26243 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26244
26245 * term.c: Include intervals.h to declare Fget_text_property.
26246
26247 2007-06-10 Jason Rumney <jasonr@gnu.org>
26248
26249 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26250
26251 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26252
26253 * callint.c (Fcall_interactively):
26254 * editfns.c (Fdelete_and_extract_region):
26255 * fileio.c (Fread_file_name):
26256 * fns.c (Fmapconcat):
26257 * keyboard.c (cmd_error_internal):
26258 * keymap.c (Fkey_description):
26259 * lread.c (openp):
26260 * minibuf.c (read_minibuf):
26261 * search.c (wordify):
26262 * sunfns.c (sel_read):
26263 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26264 * xfns.c (x_default_scroll_bar_color_parameter):
26265 * xmenu.c (menu_help_callback):
26266 * xselect.c (Fx_get_atom_name):
26267 * xterm.c (x_term_init): Use empty_unibyte_string.
26268
26269 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26270
26271 * alloc.c (init_strings): Initialize canonical empty strings.
26272 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26273 canonical empty string when the requested size is 0.
26274
26275 * emacs.c (empty_unibyte_string): Rename from empty_string.
26276 (empty_multibyte_string): New canonical empty string.
26277 (syms_of_emacs): Don't initialize empty_string.
26278
26279 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26280 string, if appropriate.
26281 (empty_unibyte_string, empty_multibyte_string): New externs.
26282 (empty_string): Remove extern.
26283
26284 * lread.c (syms_of_lread): Use empty_unibyte_string.
26285
26286 2007-06-07 Jason Rumney <jasonr@gnu.org>
26287
26288 * s/ms-w32.h: Don't define HAVE_TZNAME.
26289
26290 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26291
26292 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26293
26294 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26295
26296 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26297 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26298
26299 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26300 Don't call next handler.
26301 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26302 Remove argument. Install handler to application.
26303 (set_frame_menubar): Don't change deep_p.
26304 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26305 FRAME_OUTER_TO_INNER_DIFF_Y.
26306 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26307 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26308 [HAVE_DIALOGS]: New macros.
26309 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26310 Use them.
26311 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26312
26313 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26314 init_service_handler. All callers changed. Return OSStatus value.
26315
26316 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26317 All callers changed so as not to call SetPortWindowPort.
26318 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26319 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26320 mac_draw_string_common.
26321 (mac_draw_image_string_qd): Likewise.
26322 (mac_draw_string_common): Use them. Add INLINE.
26323 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26324 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26325 GetGlobalMouse.
26326 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26327 and FRAME_OUTER_TO_INNER_DIFF_Y.
26328 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26329 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26330 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26331 repositioning window to mac_handle_window_event.
26332 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26333 saving window location to mac_handle_window_event
26334 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26335 (install_menu_target_item_handler): Remove argument in extern.
26336 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26337 Also accept command events.
26338 (do_keystroke): New function created from XTread_socket.
26339 (init_command_handler): Remove functions.
26340 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26341 and save window location by kEventWindowShowing and kEventWindowHiding
26342 handlers here. Don't call next handler for window state change and
26343 focus events.
26344 (mac_handle_application_event, mac_handle_keyboard_event)
26345 [TARGET_API_MAC_CARBON]: New functions.
26346 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26347 kEventWindowShowing and kEventWindowHiding events. Move installation
26348 of mouse, font, text input and menu target item handlers to
26349 install_application_handler.
26350 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26351 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26352 New function.
26353 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26354 Register it.
26355 (XTread_socket) [TARGET_API_MAC_CARBON]:
26356 Consolidate SendEventToEventTarget calls.
26357 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26358 Move application activation handler to mac_handle_application_event.
26359 Move keyboard handler to mac_handle_keyboard_event.
26360 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26361 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26362 init_command_handler. Call install_application_handler.
26363
26364 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26365 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26366
26367 2007-06-07 Glenn Morris <rgm@gnu.org>
26368
26369 * emacs.c (main): Use `emacs-copyright' in --version output.
26370
26371 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
26372
26373 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26374
26375 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26376
26377 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26378
26379 * macgui.h: Replace WindowPtr with WindowRef.
26380
26381 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26382 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26383 Replace ControlHandle with ControlRef.
26384 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26385
26386 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26387 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26388 Replace ControlHandle with ControlRef.
26389 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26390 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26391
26392 * macterm.h (struct scroll_bar): Rename member control_handle_low
26393 and control_handle_high to control_ref_low and control_ref_high.
26394 All uses changed.
26395 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26396 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26397 respectively. All uses changed.
26398 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26399 (install_window_handler, remove_window_handler): Replace WindowPtr
26400 with WindowRef in externs.
26401
26402 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
26403
26404 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26405
26406 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
26407
26408 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26409
26410 * frame.c (Fmouse_position, Fmouse_pixel_position):
26411 Condition on HAVE_GPM too.
26412
26413 * term.c (term_mouse_highlight): Remove unused variables.
26414 (Fterm_open_connection): Set gpm_zerobased to 1.
26415 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26416 Use zero based co-ordinates.
26417 (handle_one_term_event): Report a drag as mouse movement too.
26418
26419 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26420
26421 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
26422
26423 * image.c (search_image_cache): New function. Require background
26424 color match if background color is unspecified in the image spec.
26425 (uncache_image, lookup_image): Use it.
26426
26427 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
26428
26429 * window.c (Fshrink_window): Reflow docstring.
26430
26431 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
26432
26433 * Version 22.1 released.
26434
26435 2007-06-01 Richard Stallman <rms@gnu.org>
26436
26437 * xfns.c (x_encode_text): Add GCPRO.
26438
26439 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26440
26441 * xfns.c (x_set_name_internal): Save encoded name before
26442 x_encode_text in case string data is relocated.
26443
26444 2007-05-31 Richard Stallman <rms@gnu.org>
26445
26446 * buffer.c (syms_of_buffer): Doc fix.
26447
26448 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26449
26450 * sysdep.c (init_sys_modes): Add rather than replace with
26451 O_NONBLOCK.
26452
26453 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26454 term_mouse_moveto.
26455
26456 * termhooks.h (term_mouse_moveto): New extern.
26457
26458 * term.c (mouse_face_window): Rename...
26459 (Qmouse_face_window): ...to this.
26460 (term_show_mouse_face, term_clear_mouse_face)
26461 (term_mouse_highlight): Use Qmouse_face_window.
26462 (term_mouse_moveto): New function.
26463 (term_mouse_position): Make it work.
26464 (syms_of_term): Uncomment assignment to mouse_position_hook.
26465 Staticpro Qmouse_face_window.
26466
26467 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26468
26469 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26470 around current_column call.
26471
26472 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26473
26474 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26475 * xdisp.c (next_element_from_buffer):
26476 * window.c (delete_window):
26477 * term.c (term_mouse_highlight):
26478 * msdos.c (getdefdir):
26479 * macterm.c (mac_create_bitmap_from_bitmap_data)
26480 (init_font_name_table):
26481 * fns.c (Fsxhash):
26482 * data.c (Fmake_local_variable):
26483 * ccl.c (ccl_driver): Likewise.
26484
26485 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26486
26487 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26488 Call mac_wakeup_from_rne on window size change.
26489
26490 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26491
26492 * image.c (uncache_image): Fix typo.
26493
26494 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26495
26496 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26497
26498 2007-05-22 Richard Stallman <rms@gnu.org>
26499
26500 * xterm.c (x_connection_closed): Remove NO_RETURN.
26501
26502 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26503
26504 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26505
26506 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26507
26508 * image.c (uncache_image): New function.
26509 (Fimage_refresh): New function.
26510
26511 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26512
26513 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26514
26515 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26516
26517 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26518 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26519
26520 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26521
26522 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26523 conditional on [HAVE_GPM_H].
26524
26525 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26526
26527 * syntax.c (skip_chars): Update syntax-table only after we checked that
26528 the new location is valid.
26529
26530 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26531
26532 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26533 mac_get_window_bounds.
26534
26535 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26536
26537 * Makefile.in (LIBGPM): Allow it to be set from configure.
26538 If set then link Emacs with it.
26539
26540 * config.in: Regenerate.
26541
26542 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26543 New externs.
26544
26545 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26546 Include gpm.h.
26547 (handle_one_term_event, term_gpm): New externs.
26548
26549 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26550 and allow it to be interrupted by SIGIO.
26551
26552 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26553 (wait_reading_process_output): Wait on gpm_fd too.
26554 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26555 (add_gpm_wait_descriptor_called_flag): New variable.
26556 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26557
26558 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26559 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26560 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26561 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26562 (make_lispy_event): Add case GPM_CLICK_EVENT.
26563 (read_avail_input): Handle mouse input.
26564
26565 * term.c (write_glyphs_with_face): New function.
26566 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26567 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26568 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26569 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26570 (last_mouse_x, last_mouse_y): New variables.
26571 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26572 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26573 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26574 (Fterm_close_connection): New functions.
26575 (term_init): Initialise mouse_face_window.
26576
26577 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26578
26579 * xdisp.c (redisplay_window): If first window line is a
26580 continuation line, recompute the new window start instead of
26581 recentering.
26582
26583 2007-05-18 Glenn Morris <rgm@gnu.org>
26584
26585 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26586 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26587
26588 2007-05-17 Glenn Morris <rgm@gnu.org>
26589
26590 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26591
26592 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26593
26594 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26595 dead key repeat and up events.
26596
26597 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26598
26599 * image.c (pbm_load): Check image size for monochrome pbm.
26600
26601 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26602
26603 * xterm.c (XTread_socket): Revert last change.
26604
26605 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26606
26607 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26608
26609 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26610
26611 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26612
26613 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26614 mixup (YAILOM).
26615
26616 2007-05-07 Andreas Schwab <schwab@suse.de>
26617
26618 * keymap.c (Flookup_key): Fix typo in last change.
26619
26620 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26621
26622 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26623 mapping for unibyte strings.
26624
26625 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26626
26627 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26628 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26629
26630 2007-04-29 Richard Stallman <rms@gnu.org>
26631
26632 * insdel.c (replace_range): For undo, record insertion first.
26633
26634 2007-04-29 Andreas Schwab <schwab@suse.de>
26635
26636 * lisp.h (VECSIZE): Use OFFSETOF.
26637
26638 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26639
26640 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26641 disabled lines.
26642
26643 2007-04-28 Richard Stallman <rms@gnu.org>
26644
26645 * lread.c (read_escape): In a string, \s is always space.
26646
26647 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26648
26649 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26650
26651 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26652 submenu for menu bar items.
26653
26654 See ChangeLog.10 for earlier changes.
26655
26656 ;; Local Variables:
26657 ;; coding: utf-8
26658 ;; add-log-time-zone-rule: t
26659 ;; End:
26660
26661 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26662
26663 This file is part of GNU Emacs.
26664
26665 GNU Emacs is free software: you can redistribute it and/or modify
26666 it under the terms of the GNU General Public License as published by
26667 the Free Software Foundation, either version 3 of the License, or
26668 (at your option) any later version.
26669
26670 GNU Emacs is distributed in the hope that it will be useful,
26671 but WITHOUT ANY WARRANTY; without even the implied warranty of
26672 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26673 GNU General Public License for more details.
26674
26675 You should have received a copy of the GNU General Public License
26676 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26677
26678 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40