* xdisp.c: conform to C89 pointer rules
[bpt/emacs.git] / src / ChangeLog
1 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 * xdisp.c: conform to C89 pointer rules
4 (store_mode_line_noprop, display_string, reseat_to_string):
5 (c_string_pos, number_of_chars, message_dolog):
6 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
7 (display_mode_element, display_string):
8 Switch between char * and unsigned char * to stay compatible wth
9 C89 pointer rules.
10
11 * regex.c: conform to C89 pointer rules
12 (re_wctype): Add cast, as C89 does not allow assigning between
13 char * and unsigned char *.
14 (regex_compile): Likewise.
15
16 sync from gnulib to remove HAVE_STDBOOL_H
17 * config.in: Regenerate.
18
19 2011-02-04 Eli Zaretskii <eliz@gnu.org>
20
21 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
22 Replace all uses of lisp.h with $(LISP_H), and all uses of
23 process.h with $(PROCESS_H).
24 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
25 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
26
27 * deps.mk: Update for recent changes: gnutls support, gnulib
28 imports, addition of globals.h.
29
30 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
31 ../lib/ignore-value.h.
32
33 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
34
35 allow C code to suppress warnings about ignored return values
36
37 We need to go through the code and for each such warning, either
38 fix the code to pay attention to the returned value, or tell GCC
39 that we really do want to ignore the returned value. Here is one
40 example of how to do the latter.
41 * sysdep.c: Include <ignore-value.h>.
42 (sys_subshell): Suppress an undesirable warning about not checking
43 the returned value of 'write', as there's nothing useful one can
44 do with that returned value.
45
46 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
47
48 * xterm.c (x_connection_closed): Remove all calls that calls
49 XSync (Bug#7949).
50
51 2011-02-01 Eli Zaretskii <eliz@gnu.org>
52
53 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
54 TIFFClientOpen.
55
56 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
57
58 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
59 (x_session_check_input): Change args and return type so it can be used
60 as argument to add_read_fd. Make static. Remove call to select.
61 Call kbd_buffer_store_event for emacs_event.
62 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
63 (ice_conn_watch_CB): Call add_read_fd.
64
65 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
66 x_session_check_input.
67 (x_session_initialized): Remove definition.
68 (x_initialize): Remove setting of x_session_initialized.
69
70 * xterm.h (x_session_check_input): Remove declaration.
71
72 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
73
74 format-time-string now supports subsecond time stamp resolution
75 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
76 for consistency with its new argument and with gnulib nstrftime.
77 All callers changed. New argument NS.
78 (Fformat_time_string): Check that the time argument's microseconds
79 component, if any, is in range; this avoids integer overflow and
80 also nstrftime needs this. Document %N.
81
82 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
83
84 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
85 of int. All uses adjusted.
86 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
87 (svg_load_image): Remove casts.
88
89 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
90
91 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
92 function definitions for compiling with libpng-1.5.
93 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
94 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
95 (Bug#7908).
96
97 2011-01-31 Eli Zaretskii <eliz@gnu.org>
98
99 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
100
101 * makefile.w32-in (OBJ2): Remove strftime.$(O).
102 ($(BLD)/strftime.$(O)): Remove prerequisites.
103
104 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
105
106 src/emacs.c now gets version number from configure.in
107 * emacs.c (emacs_version): Set to VERSION so that it
108 is determined automatically from ../configure.in.
109
110 2011-01-31 Jim Meyering <meyering@redhat.com>
111
112 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
113 Use xmalloc rather than malloc.
114
115 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
116
117 strftime: import from gnulib
118 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
119 * deps.mk (strftime.o): Remove.
120 * editfns.c: Include <strftime.h>, supplied by gnulib.
121 (emacs_strftimeu): Remove decl.
122 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
123 emacs_strftimeu.
124 * config.in: Regenerate.
125 * strftime.c: Remove; we now use strftime from gnulib.
126
127 Use SSDATA when the context wants char *.
128 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
129 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
130 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
131 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
132 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
133 Use SSDATA (not SDATA) when the context of the expression wants
134 char * (not unsigned char *).
135
136 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
137
138 * .gdbinit: Read global lisp variables as globals.f_V*.
139
140 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
141
142 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
143 All uses changed.
144 (PROP_SAVE): Likewise.
145
146 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
147
148 * keyboard.c (make_lispy_position): Fix typo in last change
149 (Bug#7935).
150
151 2011-01-29 Eli Zaretskii <eliz@gnu.org>
152
153 * s/ms-w32.h (HAVE_MKTIME): Remove.
154
155 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
156 (GNULIB): New variable.
157 (LIBS): Add $(GNULIB).
158 $(TEMACS): Depend on $(GNULIB).
159 <top-level>: Fix font-lock disrupted by a lone `"'.
160
161 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
162
163 * nsselect.m (ns_string_from_pasteboard): Get length of string
164 and use make_string instead of build_string (Bug#7934).
165 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
166 instead of stringWithUTF8String (Bug#7934).
167
168 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
169
170 * nsfont.m (nsfont_open): Ensure that fonts with inexact
171 descenders would not become one pixel too tall (Bug#7887).
172
173 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
174
175 * keyboard.c (make_lispy_position): For clicks on right fringe or
176 margin, compute text position using the X coordinate relative to
177 the left of the text area (Bug#7839).
178
179 2011-01-28 Kenichi Handa <handa@m17n.org>
180
181 * ftfont.c (ftfont_spec_pattern): Check each extra property
182 value.
183
184 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
185
186 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
187
188 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
189
190 * font.c (font_parse_fcname): Undefine a temporary macro.
191
192 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
193
194 Let the debugger continue to the normal handler (bug#7825).
195 * eval.c (maybe_call_debugger): Declare before new use.
196 (find_handler_clause): Don't call debugger any more.
197 Ignore Vstack_trace_on_error.
198 Use XCAR/XCDR.
199 (syms_of_eval): Remove Vstack_trace_on_error.
200 (Fsignal): Only modify handlerlist when we know we need to do it.
201 Call the debugger when necessary.
202 * globals.h (Vstack_trace_on_error): Remove.
203
204 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
205
206 * font.c (font_parse_fcname): Rewrite GTK font name parser.
207
208 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
209
210 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
211 the buffer's point-max (bug#7876).
212
213 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
214
215 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
216 Remove unused case (Bug#6811).
217
218 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
219
220 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
221 setFrameTopLeftPoint is constrained.
222
223 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
224
225 Check return values of some library calls.
226 * emacs.c (main): Check dup result.
227 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
228 (frame_name_fnn_p): Check strtol result.
229
230 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
231 when calling XpmCreatePixmapFromData.
232
233 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
234 * lisp.h (SSDATA): New macro.
235 All uses of (char *) SDATA (x) replaced with SSDATA (x),
236 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
237 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
238 * xsmfns.c (SSDATA): Likewise.
239
240 2011-01-22 Martin Rudalics <rudalics@gmx.at>
241
242 * window.c (select_window): New function.
243 (Fselect_window): Call it.
244 (inhibit_point_swap): Variable deleted.
245 (Fset_window_configuration): Call select_window directly.
246
247 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
248
249 * nsterm.m (constrainFrameRect): Only constrain the first time called.
250
251 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
252
253 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
254 screen, not the window screen.
255 (x_set_window_size): Remove constraints.
256 Calculate origin.y only if zooming is 0 and without referring to a
257 screen.
258 (windowWillResize): Don't modify frameSize.
259 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
260 (initFrameFromEmacs): Initialize ns_userRect.
261 (windowShouldZoom): Set zooming to one. Remove all other code.
262 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
263 Zero it after restore.
264 (constrainFrameRect): New method for EmacsWindow.
265 (mouseDragged): Always post NSWindowDidResizeNotification after call to
266 windowWillResize.
267
268 * nsterm.h (ns_output): Add dont_constrain and zooming.
269 (EmacsView): Add ns_userRect.
270
271 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
272 if ns_alternate_modifier is none.
273
274 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
275
276 * unexmacosx.c: Add comment about include order.
277
278 2011-01-20 Glenn Morris <rgm@gnu.org>
279
280 * minibuf.c (syms_of_minibuf) <read-expression-history>:
281 Give it a doc string.
282 * globals.h: Add Vread_expression_history.
283
284 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
285 Give it a doc string.
286 * globals.h: Add Vkbd_macro_termination_hook.
287
288 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
289
290 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
291
292 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
293
294 Fix X11 compilation failure.
295 * globals.h (struct emacs_globals): Document f_Vselection_alist.
296 * xselect.c (Vselection_alist): Remove declaration, moving its
297 documentation to globals.h. This fixes a compilation failure
298 induced by the earlier change to globals.h today.
299
300 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
301
302 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
303
304 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
305 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
306 (ns_input_spi_name, ns_input_spi_arg)
307 (ns_alternate_modifier, ns_right_alternate_modifier)
308 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
309 (ns_right_control_modifier, ns_function_modifier)
310 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
311 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
312 (x_underline_at_descent_line): Remove declaration.
313 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
314
315 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
316 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
317 (syms_of_nsselect): Remove & from DEFVAR_LISP.
318
319 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
320 Remove declaration.
321
322 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
323 globals.h.
324 (syms_of_nsfont): Remove & from DEFVAR_LISP.
325
326 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
327 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
328 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
329
330 * globals.h (struct emacs_globals): Add f_ns_input_file,
331 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
332 f_ns_input_color, f_ns_input_text, f_ns_working_text,
333 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
334 f_ns_right_alternate_modifier, f_ns_command_modifier,
335 f_ns_right_command_modifier, f_ns_control_modifier,
336 f_ns_right_control_modifier, f_ns_function_modifier,
337 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
338 f_Vns_version_string, f_Vns_sent_selection_hooks,
339 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
340 and corresponding defines.
341
342
343 2011-01-19 Sam Steingold <sds@gnu.org>
344
345 * w32.c (check_windows_init_file): Remove declarations of
346 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
347 * w32fns.c: Fix an error introduced by the previous patch.
348
349 2011-01-19 Tom Tromey <tromey@redhat.com>
350
351 * window.c: Fix error introduced by previous patch.
352
353 2011-01-18 Tom Tromey <tromey@parfait>
354
355 * globals.h: New file.
356 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
357 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
358 (Vwindow_system_version): Remove declaration.
359 * w32term.h (Vw32_enable_palette)
360 (Vx_pixel_size_width_font_regexp): Remove declaration.
361 * w32menu.c (Voverriding_local_map)
362 (Voverriding_local_map_menu_flag): Remove declaration.
363 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
364 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
365 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
366 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
367 (Vw32_phantom_key_code, Vw32_recognize_altgr)
368 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
369 (w32_use_full_screen_buffer): Remove declaration.
370 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
371 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
372 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
373 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
374 (no_redraw_on_reenter, visible_bell): Remove declaration.
375 * sysdep.c (Vsystem_name): Remove declaration.
376 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
377 * menu.h (Vmenu_updating_frame): Remove declaration.
378 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
379 Remove declaration.
380 * lisp.h (Vafter_init_time, Vafter_load_alist)
381 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
382 (Vcompletion_regexp_list, Vcurrent_load_list)
383 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
384 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
385 (Vexec_directory, Vexec_path, Vexec_suffixes)
386 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
387 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
388 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
389 (Vinstallation_directory, Vinvocation_directory)
390 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
391 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
392 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
393 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
394 (Vscalable_fonts_allowed, Vselect_active_regions)
395 (Vshell_file_name, Vstandard_input, Vstandard_output)
396 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
397 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
398 (Vuser_login_name, Vwindow_scroll_functions)
399 (Vwindow_system_version, Vx_no_window_manager)
400 (Vx_resource_class, Vx_resource_name, baud_rate)
401 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
402 (history_delete_duplicates, inhibit_x_resources)
403 (last_nonmenu_event, load_in_progress, max_specpdl_size)
404 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
405 (use_dialog_box, use_file_dialog): Remove declaration. Include
406 globals.h.
407 * keymap.h (Voverriding_local_map)
408 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
409 declaration.
410 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
411 (Vinput_method_function, Vkey_translation_map)
412 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
413 (do_mouse_tracking, extra_keyboard_modifiers)
414 (num_nonmacro_input_events): Remove declaration.
415 * intervals.h (Vchar_property_alias_alist)
416 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
417 (Vtext_property_default_nonsticky): Remove declaration.
418 * gtkutil.h (x_gtk_file_dialog_help_text)
419 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
420 (x_gtk_whole_detached_tool_bar): Remove declaration.
421 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
422 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
423 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
424 (focus_follows_mouse): Remove declaration.
425 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
426 (Vignore_relative_composition, Votf_script_alist)
427 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
428 declaration.
429 * font.h (Vfont_log): Remove declaration.
430 * dosfns.h (Vdos_display_scancodes, Vdos_version)
431 (Vdos_windows_version, dos_codepage, dos_country_code)
432 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
433 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
434 declaration.
435 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
436 declaration.
437 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
438 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
439 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
440 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
441 (inverse_video, mode_line_in_non_selected_windows)
442 (tool_bar_button_relief, tool_bar_max_label_size)
443 (underline_minimum_offset)
444 (unibyte_display_via_language_environment, x_stretch_cursor_p):
445 Remove declaration.
446 * composite.h (Vauto_composition_function)
447 (Vcomposition_function_table): Remove declaration.
448 * commands.h (Vexecuting_kbd_macro)
449 (Vminibuffer_local_completion_map)
450 (Vminibuffer_local_filename_completion_map)
451 (Vminibuffer_local_filename_must_match_map)
452 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
453 (Vminibuffer_local_ns_map, Vthis_command)
454 (Vunread_command_events, cursor_in_echo_area)
455 (last_command_event, last_nonmenu_event, unread_command_char):
456 Remove declaration.
457 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
458 (Vdefault_file_name_coding_system)
459 (Vdefault_process_coding_system, Vfile_name_coding_system)
460 (Vlast_coding_system_used, Vlocale_coding_system)
461 (Vselect_safe_coding_system_function)
462 (Vtranslation_table_for_input, coding_system_require_warning)
463 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
464 (eol_mnemonic_unix, inherit_process_coding_system): Remove
465 declaration.
466 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
467 declaration.
468 * character.h (Vauto_fill_chars, Vchar_direction_table)
469 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
470 (Vscript_representative_chars, Vtranslation_table_vector)
471 (Vunicode_category_table): Remove declaration.
472 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
473 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
474 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
475 (inhibit_modification_hooks): Remove declaration.
476 * xterm.c (syms_of_xterm): Update.
477 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
478 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
479 (x_mouse_click_focus_ignore_position)
480 (x_underline_at_descent_line)
481 (x_use_underline_position_properties): Remove.
482 * xsmfns.c (syms_of_xsmfns): Update.
483 (Vx_session_id, Vx_session_previous_id): Remove.
484 * xsettings.c (syms_of_xsettings): Update.
485 (Vxft_settings, use_system_font): Remove.
486 * xselect.c (syms_of_xselect): Update.
487 (Vselection_converter_alist, Vx_lost_selection_functions)
488 (Vx_sent_selection_functions, x_selection_timeout): Remove.
489 * xfns.c (syms_of_xfns): Update.
490 (Vgtk_version_string, Vmotif_version_string)
491 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
492 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
493 (Vx_no_window_manager, Vx_nontext_pointer_shape)
494 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
495 (Vx_sensitive_text_pointer_shape)
496 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
497 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
498 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
499 Remove.
500 * xfaces.c (syms_of_xfaces): Update.
501 (Vface_default_stipple, Vface_font_rescale_alist)
502 (Vface_ignored_fonts, Vface_new_frame_defaults)
503 (Vface_remapping_alist, Vfont_list_limit)
504 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
505 * xdisp.c (syms_of_xdisp): Update.
506 (Vauto_resize_tool_bars, Vblink_cursor_alist)
507 (Vdisplay_pixels_per_inch, Vfontification_functions)
508 (Vframe_title_format, Vglobal_mode_string)
509 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
510 (Vicon_title_format, Vinhibit_redisplay)
511 (Vline_number_display_limit, Vline_prefix)
512 (Vmax_mini_window_height, Vmenu_bar_update_hook)
513 (Vmenu_updating_frame, Vmessage_log_max)
514 (Vmouse_autoselect_window, Vnobreak_char_display)
515 (Voverlay_arrow_position, Voverlay_arrow_string)
516 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
517 (Vresize_mini_windows, Vshow_trailing_whitespace)
518 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
519 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
520 (Vwindow_scroll_functions, Vwindow_size_change_functions)
521 (Vwindow_text_change_functions, Vwrap_prefix)
522 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
523 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
524 (highlight_nonselected_windows, hscroll_margin)
525 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
526 (inhibit_menubar_update, inhibit_try_cursor_movement)
527 (inhibit_try_window_id, inhibit_try_window_reusing)
528 (line_number_display_limit_width)
529 (make_cursor_line_fully_visible_p, message_truncate_lines)
530 (mode_line_inverse_video, multiple_frames, overline_margin)
531 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
532 (tool_bar_max_label_size, underline_minimum_offset)
533 (unibyte_display_via_language_environment, x_stretch_cursor_p):
534 Remove.
535 * window.c (syms_of_window): Update.
536 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
537 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
538 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
539 (Vwindow_point_insertion_type, auto_window_vscroll_p)
540 (mode_line_in_non_selected_windows, next_screen_context_lines)
541 (window_min_height, window_min_width): Remove.
542 (scroll_margin): Remove declaration.
543 * w32term.c (syms_of_w32term): Update.
544 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
545 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
546 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
547 (w32_use_visible_system_caret, x_underline_at_descent_line)
548 (x_use_underline_position_properties): Remove.
549 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
550 Remove declaration.
551 * w32select.c (syms_of_w32select): Update.
552 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
553 * w32proc.c (syms_of_ntproc): Update.
554 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
555 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
556 (Vw32_start_process_inherit_error_mode)
557 (Vw32_start_process_share_console)
558 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
559 (Vsystem_name): Remove declaration.
560 * w32font.c (syms_of_w32font): Update.
561 (Vw32_charset_info_alist): Remove.
562 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
563 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
564 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
565 (Vw32_enable_palette, Vw32_lwindow_modifier)
566 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
567 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
568 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
569 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
570 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
571 (Vx_no_window_manager, Vx_nontext_pointer_shape)
572 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
573 (Vx_sensitive_text_pointer_shape)
574 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
575 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
576 (w32_mouse_move_interval)
577 (w32_pass_extra_mouse_buttons_to_system)
578 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
579 (w32_strict_fontnames, w32_strict_painting): Remove.
580 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
581 (Vw32_recognize_altgr, Vwindow_system_version)
582 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
583 declaration.
584 * w32console.c (syms_of_ntterm): Update.
585 (w32_use_full_screen_buffer): Remove.
586 (Vtty_defined_color_alist): Remove declaration.
587 * w16select.c (syms_of_win16select): Update.
588 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
589 * undo.c (syms_of_undo): Update.
590 (Vundo_outer_limit, Vundo_outer_limit_function)
591 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
592 Remove.
593 * textprop.c (syms_of_textprop): Update.
594 (Vchar_property_alias_alist, Vdefault_text_properties)
595 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
596 Remove.
597 * terminal.c (syms_of_terminal): Update.
598 (Vdelete_terminal_functions, Vring_bell_function): Remove.
599 * term.c (syms_of_term): Update.
600 (Vresume_tty_functions, Vsuspend_tty_functions)
601 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
602 Remove.
603 * syntax.c (syms_of_syntax): Update.
604 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
605 (open_paren_in_column_0_is_defun_start)
606 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
607 (words_include_escapes): Remove.
608 * search.c (syms_of_search): Update.
609 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
610 * process.c (syms_of_process): Update.
611 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
612 (delete_exited_processes): Remove.
613 * print.c (syms_of_print): Update.
614 (Vfloat_output_format, Vprint_charset_text_property)
615 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
616 (Vprint_length, Vprint_level, Vprint_number_table)
617 (Vstandard_output, print_escape_multibyte)
618 (print_escape_newlines, print_escape_nonascii, print_quoted):
619 Remove.
620 * msdos.c (syms_of_msdos): Update.
621 (Vdos_unsupported_char_glyph): Remove.
622 (unibyte_display_via_language_environment): Remove declaration.
623 * minibuf.c (syms_of_minibuf): Update.
624 (Vcompletion_regexp_list, Vhistory_add_new_input)
625 (Vhistory_length, Vminibuffer_completing_file_name)
626 (Vminibuffer_completion_confirm)
627 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
628 (Vminibuffer_exit_hook, Vminibuffer_help_form)
629 (Vminibuffer_history_position, Vminibuffer_history_variable)
630 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
631 (Vread_buffer_function, Vread_expression_map)
632 (completion_ignore_case, enable_recursive_minibuffers)
633 (history_delete_duplicates, minibuffer_allow_text_properties)
634 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
635 Remove.
636 * marker.c (syms_of_marker): Update.
637 (byte_debug_flag): Remove.
638 * macros.c (syms_of_macros): Update.
639 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
640 * lread.c (syms_of_lread): Update.
641 (Vafter_load_alist, Vbyte_boolean_vars)
642 (Vbytecomp_version_regexp, Vcurrent_load_list)
643 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
644 (Vload_history, Vload_path, Vload_read_function)
645 (Vload_source_file_function, Vload_suffixes, Vobarray)
646 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
647 (Vread_symbol_positions_list, Vread_with_symbol_positions)
648 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
649 (force_load_messages, load_convert_to_unibyte)
650 (load_dangerous_libraries, load_force_doc_strings)
651 (load_in_progress): Remove.
652 * keymap.c (syms_of_keymap): Update.
653 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
654 (Vminibuffer_local_completion_map)
655 (Vminibuffer_local_filename_completion_map)
656 (Vminibuffer_local_filename_must_match_map)
657 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
658 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
659 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
660 Remove.
661 * keyboard.c (syms_of_keyboard): Update.
662 (Vauto_save_timeout, Vcommand_error_function)
663 (Vcommand_hook_internal, Vdeactivate_mark)
664 (Vdeferred_action_function, Vdeferred_action_list)
665 (Vdisable_point_adjustment, Vdouble_click_time)
666 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
667 (Vfunction_key_map, Vglobal_disable_point_adjustment)
668 (Vhelp_char, Vhelp_event_list, Vhelp_form)
669 (Vinput_method_function, Vinput_method_previous_message)
670 (Vkey_translation_map, Vlast_event_frame)
671 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
672 (Vminibuffer_message_timeout, Voverriding_local_map)
673 (Voverriding_local_map_menu_flag, Vpost_command_hook)
674 (Vpre_command_hook, Vprefix_help_command)
675 (Vsaved_region_selection, Vselect_active_regions)
676 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
677 (Vthis_command, Vthis_command_keys_shift_translated)
678 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
679 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
680 (Vtty_erase_char, Vunread_command_events)
681 (Vunread_input_method_events, Vunread_post_input_method_events)
682 (auto_save_interval, cannot_suspend, do_mouse_tracking)
683 (double_click_fuzz, extra_keyboard_modifiers)
684 (inhibit_local_menu_bar_menus, last_command_event)
685 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
686 (menu_prompting, meta_prefix_char, num_input_keys)
687 (num_nonmacro_input_events, polling_period, unread_command_char):
688 Remove.
689 * insdel.c (syms_of_insdel): Update.
690 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
691 * indent.c (syms_of_indent): Update.
692 (indent_tabs_mode): Remove.
693 * image.c (syms_of_image): Update.
694 (Vimage_cache_eviction_delay, Vimage_types)
695 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
696 (cross_disabled_images): Remove.
697 * fringe.c (syms_of_fringe): Update.
698 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
699 * frame.c (syms_of_frame): Update.
700 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
701 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
702 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
703 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
704 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
705 Remove.
706 * fontset.c (syms_of_fontset): Update.
707 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
708 (Vfontset_alias_alist, Vignore_relative_composition)
709 (Votf_script_alist, Vuse_default_ascent)
710 (Vvertical_centering_font_regexp): Remove.
711 * font.c (syms_of_font): Update.
712 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
713 (Vfont_weight_table, Vfont_width_table): Remove.
714 * fns.c (syms_of_fns): Update.
715 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
716 * filelock.c (syms_of_filelock): Update.
717 (Vtemporary_file_directory): Remove.
718 * fileio.c (syms_of_fileio): Update.
719 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
720 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
721 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
722 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
723 (Vinhibit_file_name_operation, Vset_auto_coding_function)
724 (Vwrite_region_annotate_functions)
725 (Vwrite_region_annotations_so_far)
726 (Vwrite_region_post_annotation_function)
727 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
728 (Vw32_get_true_file_attributes): Remove declaration.
729 * eval.c (syms_of_eval): Update.
730 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
731 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
732 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
733 (debug_on_next_call, debug_on_quit, debugger_may_continue)
734 (max_lisp_eval_depth, max_specpdl_size): Remove.
735 * emacs.c (syms_of_emacs): Update.
736 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
737 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
738 (Vinstallation_directory, Vinvocation_directory)
739 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
740 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
741 (Vsystem_configuration, Vsystem_configuration_options)
742 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
743 (inhibit_x_resources, noninteractive1): Remove.
744 * editfns.c (syms_of_editfns): Update.
745 (Vbuffer_access_fontified_property)
746 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
747 (Voperating_system_release, Vsystem_name, Vuser_full_name)
748 (Vuser_login_name, Vuser_real_login_name): Remove.
749 * dosfns.c (syms_of_dosfns): Update.
750 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
751 (dos_codepage, dos_country_code, dos_decimal_point)
752 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
753 (dos_super_key, dos_timezone_offset): Remove.
754 * doc.c (syms_of_doc): Update.
755 (Vbuild_files, Vdoc_file_name): Remove.
756 * dispnew.c (syms_of_display): Update.
757 (Vglyph_table, Vinitial_window_system)
758 (Vredisplay_preemption_period, Vstandard_display_table)
759 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
760 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
761 * dired.c (syms_of_dired): Update.
762 (Vcompletion_ignored_extensions): Remove.
763 (Vw32_get_true_file_attributes): Remove declaration.
764 * dbusbind.c (syms_of_dbusbind): Update.
765 (Vdbus_debug, Vdbus_registered_buses)
766 (Vdbus_registered_objects_table): Remove.
767 * data.c (syms_of_data): Update.
768 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
769 * composite.c (syms_of_composite): Update.
770 (Vauto_composition_function, Vauto_composition_mode)
771 (Vcompose_chars_after_function, Vcomposition_function_table):
772 Remove.
773 * coding.c (syms_of_coding): Update.
774 (Vcharset_revision_table, Vcoding_category_list)
775 (Vcoding_system_alist, Vcoding_system_for_read)
776 (Vcoding_system_for_write, Vcoding_system_list)
777 (Vdefault_process_coding_system, Venable_character_translation)
778 (Vfile_coding_system_alist, Vlast_code_conversion_error)
779 (Vlast_coding_system_used, Vlatin_extra_code_table)
780 (Vlocale_coding_system, Vnetwork_coding_system_alist)
781 (Vprocess_coding_system_alist)
782 (Vselect_safe_coding_system_function)
783 (Vstandard_translation_table_for_decode)
784 (Vstandard_translation_table_for_encode)
785 (Vtranslation_table_for_input, coding_system_require_warning)
786 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
787 (eol_mnemonic_unix, inherit_process_coding_system)
788 (inhibit_eol_conversion, inhibit_iso_escape_detection)
789 (inhibit_null_byte_detection): Remove.
790 * cmds.c (syms_of_cmds): Update.
791 (Vpost_self_insert_hook): Remove.
792 * charset.c (syms_of_charset): Update.
793 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
794 (inhibit_load_charset_map): Remove.
795 * character.c (syms_of_character): Update.
796 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
797 (Vchar_width_table, Vprintable_chars)
798 (Vscript_representative_chars, Vtranslation_table_vector)
799 (Vunicode_category_table): Remove.
800 * ccl.c (syms_of_ccl): Update.
801 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
802 (Vtranslation_hash_table_vector): Remove.
803 * category.c (syms_of_category): Update.
804 (Vword_combining_categories, Vword_separating_categories): Remove.
805 * callproc.c (syms_of_callproc): Update.
806 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
807 (Vexec_directory, Vexec_path, Vexec_suffixes)
808 (Vinitial_environment, Vprocess_environment)
809 (Vshared_game_score_directory, Vshell_file_name): Remove.
810 * callint.c (syms_of_callint): Update.
811 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
812 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
813 * bytecode.c (syms_of_bytecode): Update.
814 (Vbyte_code_meter, byte_metering_on): Remove.
815 * buffer.c (syms_of_buffer): Update.
816 (Vafter_change_functions, Vbefore_change_functions)
817 (Vchange_major_mode_hook, Vfirst_change_hook)
818 (Vinhibit_read_only, Vkill_buffer_query_functions)
819 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
820 * alloc.c (syms_of_alloc): Update.
821 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
822 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
823 (cons_cells_consed, floats_consed, garbage_collection_messages)
824 (gc_cons_threshold, gcs_done, intervals_consed)
825 (misc_objects_consed, pure_bytes_used, string_chars_consed)
826 (strings_consed, symbols_consed, vector_cells_consed): Remove.
827
828 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
829 (DEFVAR_INT): Assume global is in `globals'.
830 * alloc.c (globals): Define.
831
832 2011-01-18 Tom Tromey <tromey@redhat.com>
833
834 * image.c (Vimagemagick_render_type): Remove redundant
835 definition.
836
837 2011-01-18 Tom Tromey <tromey@redhat.com>
838
839 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
840 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
841 (redisplay_window): Update.
842 (syms_of_xdisp): Update.
843
844 2011-01-18 Tom Tromey <tromey@redhat.com>
845
846 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
847 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
848 Declare.
849 * gtkutil.c (xg_uses_old_file_dialog):
850 (xg_get_file_with_chooser):
851 (xg_tool_bar_detach_callback): Don't redeclare globals.
852
853 2011-01-18 Tom Tromey <tromey@redhat.com>
854
855 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
856 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
857
858 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
859
860 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
861 defined __GNUC__. ../configure now checks for this GCC feature,
862 which is now also supported by IBM and Oracle compilers.
863 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
864 since Solaris malloc returns mult-of-8.
865
866 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
867
868 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
869
870 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
871
872 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
873 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
874 * data.c (Fnumber_to_string): Use it.
875 * print.c (float_to_string, print_object): Likewise.
876
877 Include <unistd.h> unilaterally.
878 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
879 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
880 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
881 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
882 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
883 * xterm.c:
884 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
885 unistd.h is always present now, possibly supplied by gnulib.
886
887 * mktime.c: Remove; moving to ../lib.
888
889 Use gnulib's mktime module.
890 * deps.mk (mktime.o): Remove rule.
891
892 Use gnulib's ftoastr module.
893 * print.c: Include ftoastr.h.
894 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
895 Remove; no longer needed.
896 (float_to_string): Use dtoastr rather than rolling our own code,
897 which had an off-by-one bug on non-IEEE hosts.
898
899 Automate syncing from gnulib.
900 * Makefile.in (lib): New macro.
901 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
902 ($(lib)/libgnu.a): New rule.
903 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
904
905 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
906 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
907 so change the type of 'ign' to unsigned int from int.
908
909 * regex.c (analyse_first): Remove unreachable 'continue' statement.
910
911 * xterm.h (struct x_display_info): Remove stray semicolon.
912 The extra semicolon didn't conform to the C standard.
913 Problem reported by Sun cc.
914
915 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
916 These changes make compilation easier to follow with Sun cc.
917 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
918 EMACS_INT values without provoking overflow diagnostics.
919 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
920 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
921 diagnostic with signed left shift.
922
923 * fileio.c (make_temp_name): Remove unreachable code.
924
925 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
926 Previously it was marked by preceding it with "return;", but
927 Sun cc complains about this.
928
929 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
930 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
931 which fixed Bug#2370. Caught by Sun cc.
932
933 2011-01-15 Martin Rudalics <rudalics@gmx.at>
934
935 * window.c (inhibit_point_swap): New variable.
936 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
937 point this time.
938 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
939 of setting selected_window to nil (Bug#7728).
940
941 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
942
943 * image.c (imagemagick_load_image, Finit_image_library):
944 Free intermediate image after creating a MagickWand from it.
945 Terminate MagickWand environment after image loading.
946
947 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
948
949 * dbusbind.c (Fdbus_register_service): Raise an error in case of
950 unexpected return values.
951 (Fdbus_register_method): Remove connection initialization.
952
953 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
954
955 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
956 used by Fdbus_register_service.
957 (QCdbus_request_name_replace_existing): Likewise.
958 (QCdbus_request_name_do_not_queue): Likewise.
959 (QCdbus_request_name_reply_primary_owner): Likewise.
960 (QCdbus_request_name_reply_in_queue): Likewise.
961 (QCdbus_request_name_reply_exists): Likewise.
962 (QCdbus_request_name_reply_already_owner): Likewise.
963 (Fdbus_register_service): New function.
964 (Fdbus_register_method): Use Fdbus_register_service to do the name
965 registration.
966 (syms_of_dbusbind): Add symbols dbus-register-service,
967 :allow-replacement, :replace-existing, :do-not-queue,
968 :primary-owner, :existing, :in-queue and :already-owner.
969
970 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
971
972 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
973 when removing extra buttons.
974
975 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
976
977 * fns.c (Fyes_or_no_p): Doc fix.
978
979 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
980
981 * fns.c (Fyes_or_no_p): Add usage.
982
983 2011-01-08 Glenn Morris <rgm@gnu.org>
984
985 * makefile.w32-in ($(EMACS)):
986 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
987
988 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
989 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
990
991 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
992
993 * image.c (imagemagick_load_image): Fix some resource leaks and
994 error handling.
995
996 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
997
998 * fns.c (Fyes_or_no_p): Accept format string args.
999
1000 2011-01-07 Glenn Morris <rgm@gnu.org>
1001
1002 * emacs.c (no_site_lisp): New int.
1003 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1004 (main): Set no_site_lisp.
1005 (standard_args): Add --no-site-lisp.
1006 * lisp.h (no_site_lisp): New int.
1007 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1008 directories to Vload_path.
1009
1010 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1011
1012 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1013
1014 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1015
1016 * dbusbind.c (Fdbus_register_method): Add optional parameter
1017 dont_register_service. Updated docstring accordingly.
1018
1019 2011-01-04 Glenn Morris <rgm@gnu.org>
1020
1021 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1022
1023 2011-01-03 Eli Zaretskii <eliz@gnu.org>
1024
1025 * image.c (png_jmpbuf): Remove definition.
1026 (my_png_error, png_load): Don't use png_jmpbuf.
1027
1028 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1029
1030 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1031
1032 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1033
1034 * image.c <Qlibpng_version>: New variable.
1035 (syms_of_image): Intern and staticpro it. Set its value to the
1036 version of PNG library we were compiled with.
1037 (my_png_error, png_load): Avoid GCC warnings about direct access
1038 to png_ptr->jmpbuf. (Bug#7716)
1039 (png_jmpbuf): New macro.
1040 (my_png_error, png_load): Use it instead of #ifdef'ing according
1041 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
1042
1043 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1044
1045 * .gdbinit (xgetptr): Fix the union+lsb case.
1046 (xbacktrace): Fix the union case.
1047
1048 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1049
1050 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1051 different from selected-window's.
1052
1053 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1054
1055 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1056 equivalent of a menu item when the key sequence is given by the
1057 `:keys' attribute. (Bug#7662)
1058
1059 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1060 the basic faces are supported.
1061
1062 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
1063
1064 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1065
1066 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1067
1068 * xdisp.c (Fformat_mode_line): Fix last change.
1069
1070 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
1071
1072 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1073 faces (Bug#7587).
1074
1075 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1076
1077 * fileio.c (Fexpand_file_name): One more doc fix.
1078
1079 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
1080
1081 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1082 image or label in the container.
1083 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1084 (xg_show_toolbar_item): Function deleted.
1085 (xg_tool_item_stale_p): New function.
1086 (update_frame_tool_bar): Calculate tool-bar style once per call.
1087 Instead of hiding text labels, omit them. Don't use
1088 xg_show_toolbar_item; create new GtkToolItems from scratch if
1089 necessary, instead of trying to re-use them. This avoids an
1090 annoying animation when changing tool-bars.
1091
1092 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1093
1094 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1095 title and buffer filename only for RepresentedFilename.
1096 Handle bad UTF-8 in buffer name (Bug#7517).
1097
1098 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1099
1100 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1101
1102 * nsfns.m (ns_set_name_iconic): Remove.
1103 (ns_set_name_internal): New function (Bug#7517).
1104 (Vicon_title_format): Extern declare.
1105 (ns_set_name): Call ns_set_name_internal.
1106 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1107 (x_implicitly_set_name): Ditto.
1108 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1109 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1110
1111 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1112
1113 * window.c (syms_of_window): Add missing defsubr for
1114 window-use-time.
1115
1116 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1117
1118 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1119 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1120
1121 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1122
1123 * buffer.c: Remove unused declarations.
1124 * buffer.h: Likewise.
1125 * charset.h: Likewise.
1126 * composite.h: Likewise.
1127 * dispextern.h: Likewise.
1128 * dispnew.c: Likewise.
1129 * font.h: Likewise.
1130 * fontset.c: Likewise.
1131 * fontset.h: Likewise.
1132 * intervals.h: Likewise.
1133 * keymap.h: Likewise.
1134 * lisp.h: Likewise.
1135 * syntax.c: Likewise.
1136 * syntax.h: Likewise.
1137 * termhooks.h: Likewise.
1138 * window.h: Likewise.
1139 * xsettings.h: Likewise.
1140 * xterm.c: Likewise.
1141 * xterm.h: Likewise.
1142
1143 * chartab.c (sub_char_table_ref): Make static.
1144 * dispnew.c (line_hash_code, required_matrix_height)
1145 (required_matrix_width): Likewise.
1146 * eval.c (interactive_p, apply_lambda): Likewise.
1147 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1148 Likewise.
1149 * font.c (QCadstyle, QCregistry, font_make_spec)
1150 (font_parse_fcname, font_encode_char, font_at): Likewise.
1151 * frame.c (x_frame_get_arg): Likewise.
1152 * keymap.c (get_keyelt): Likewise.
1153 * lread.c (read_filtered_event): Likewise.
1154 * print.c (write_string_1): Likewise.
1155 * window.c (delete_window, window_height, window_width)
1156 (foreach_window): Likewise.
1157 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1158 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1159 (xembed_send_message): Likewise.
1160
1161 * eval.c (run_hook_list_with_args): Delete.
1162 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1163 * terminal.c (get_terminal_param): Likewise.
1164 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1165
1166 * scroll.c: Fix comment.
1167
1168 * dispnew.c (add_window_display_history)
1169 (add_frame_display_history, glyph_row_slice_p)
1170 (find_glyph_row_slice, flush_stdout)
1171 (check_matrix_pointer_lossage, matrix_row)
1172 (check_matrix_invariants, check_window_matrix_pointers)
1173 (check_matrix_pointers, window_to_frame_vpos)
1174 (window_to_frame_hpos): Prototize.
1175 * textprop.c (erase_properties): Likewise.
1176
1177 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1178
1179 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1180 (print_preprocess): Fix handling of uninterned symbols in last change.
1181
1182 * print.c (print, print_preprocess, print_object): Use a hash table
1183 rather than a linear table for Vprint_number_table.
1184
1185 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1186
1187 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1188
1189 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1190
1191 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1192 (parse_tool_bar_item): Use it to obtain image separators for
1193 displays not using native tool-bar separators.
1194
1195 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1196 specially, since this is now done in parse_tool_bar_item.
1197
1198 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1199
1200 Minor clean up to silence some gcc warnings.
1201 * window.c (Fset_window_buffer):
1202 * xterm.c (x_set_frame_alpha): Restructure code to silence
1203 compiler warning.
1204 (handle_one_xevent): Remove unused var `p'.
1205 (do_ewmh_fullscreen): Remove unused var `lval'.
1206 (xembed_set_info): Remove unused var `atom'.
1207 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1208 compiler warning.
1209 * fontset.c (fontset_id_valid_p, dump_fontset):
1210 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1211 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1212 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1213 label only when it's used.
1214 * image.c (x_create_bitmap_from_xpm_data):
1215 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1216 its callers.
1217 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1218 `consumed_chars'.
1219 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1220 (decode_coding_emacs_mule): Remove unused label `retry'.
1221 (detect_eol): Add parens to silence compiler warning.
1222 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1223 it's used to silence the compiler.
1224 (make_number): Modernize k&r declaration.
1225 (mark_char_table): Add parens to silence compiler warning.
1226
1227 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
1228
1229 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1230 tool-bar maps.
1231 (menu_separator_name_p): New function, from gtkutil.c.
1232 (separator_names): Move from gtkutil.c.
1233
1234 * keyboard.h (menu_separator_name_p): Add prototype.
1235
1236 * gtkutil.c (XG_BIN_CHILD): New macro.
1237 (xg_get_menu_item_label, xg_update_menubar)
1238 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1239 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1240 (separator_names, xg_separator_p): Move to keyboard.c.
1241 (create_menus, xg_update_submenu, update_frame_tool_bar):
1242 Use menu_separator_name_p.
1243
1244 * nsmenu.m (name_is_separator): Function deleted.
1245 (addItemWithWidgetValue): Use menu_separator_name_p.
1246
1247 * w32menu.c (name_is_separator): Function deleted.
1248 (add_menu_item): Use menu_separator_name_p.
1249
1250 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1251
1252 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1253 same as the background, use the face forground as cursor.
1254
1255 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1256
1257 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1258
1259 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1260
1261 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1262 (face_before_or_after_it_pos, next_element_from_string)
1263 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1264 calculations of maximum string length before calling
1265 string_char_and_length and STRING_CHAR_AND_LENGTH.
1266 (string_char_and_length): Update commentary: MAXLEN is no longer
1267 needed.
1268
1269 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1270
1271 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1272 as (Qsave_session arg).
1273
1274 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1275 (smc_die_CB): Make an event with arg Qt.
1276 (Fhandle_save_session): If event has Qt as argument,
1277 call Fkill_emacs (Bug#7552).
1278
1279 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1280
1281 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1282
1283 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1284
1285 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1286
1287 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1288
1289 * dispextern.h (struct it): New member overlay_strings_charpos.
1290
1291 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1292 charpos where we computed n_overlay_strings.
1293 (next_overlay_string): Load overlay strings at recorded position,
1294 which may not be the same as the iterator's charpos (Bug#7016).
1295
1296 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1297
1298 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1299 obscured due to a vscroll (Bug#7537).
1300
1301 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
1302
1303 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1304
1305 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1306 Use FRAME_TOOLBAR_HEIGHT.
1307 (x_set_offset): Handle XNegative and YNegative in
1308 f->size_hint_flags (Bug#7510).
1309
1310 2010-12-11 Eli Zaretskii <eliz@gnu.org>
1311
1312 * w32fns.c (Fx_show_tip): Call try_window with last argument
1313 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1314 solved. Round up the tip height to an integral multiple of the
1315 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1316 (Bug#7398)
1317
1318 2010-12-08 Glenn Morris <rgm@gnu.org>
1319
1320 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1321
1322 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1323
1324 * xml.c (parse_region): Ignore blank HTML nodes.
1325 (make_dom): Return CDATA sections (like <style>foo</style>) as
1326 text nodes.
1327
1328 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1329
1330 * lread.c (read1): Allow newstyle unquote outside of backquote.
1331 Disallow old-style backquotes inside new-style backquotes.
1332 Don't count unquotes to figure out when we're "syntactically inside
1333 but semantically outside of a backquote" any more.
1334 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1335 to all contexts.
1336
1337 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
1338
1339 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1340
1341 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1342
1343 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1344 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1345 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1346
1347 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1348
1349 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1350 bit-field.
1351 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1352 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1353 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1354 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1355 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1356 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1357 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1358 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1359 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1360 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1361 * m/hp800.h: Remove file.
1362 * m/mips.h: Remove file.
1363
1364 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1365
1366 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1367 with cursor color and draw a rectangle around the image (Bug#7412).
1368
1369 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1370
1371 * frame.c (x_set_font): Remove unused variable.
1372
1373 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1374
1375 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1376
1377 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1378 drawing text under filled box cursor (Bug#7479).
1379
1380 2010-11-27 Kenichi Handa <handa@m17n.org>
1381
1382 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1383 i.e. integer.
1384 (Fdefine_charset_internal): Adjust for the above change.
1385 (init_charset_once): Likewise.
1386
1387 * charset.h (emacs_mule_charset): Adjust the prototype.
1388 Delete duplicated extern.
1389
1390 * coding.c (emacs_mule_char): Adjust for the change of
1391 emacs_mule_charset.
1392
1393 * lread.c (read_emacs_mule_char): Adjust for the change of
1394 emacs_mule_charset.
1395
1396 2010-11-27 Eli Zaretskii <eliz@gnu.org>
1397
1398 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1399 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1400
1401 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1402
1403 * alloc.c (mark_terminals): Ensure that the image cache is marked
1404 even if the terminal object was marked earlier (Bug#6301).
1405
1406 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
1407
1408 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1409
1410 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
1411
1412 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1413 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1414 Use 23 as menubar height if 0. (Bug#7425).
1415
1416 2010-11-26 Eli Zaretskii <eliz@gnu.org>
1417
1418 * xdisp.c (set_message_1): Force paragraph direction in echo area
1419 be left-to-right.
1420
1421 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1422 when the click is on the header or mode line.
1423
1424 2010-11-25 Eli Zaretskii <eliz@gnu.org>
1425
1426 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1427 `cursor' property of the first character in overlay strings.
1428 (Bug#7474) (Bug#7481)
1429
1430 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1431
1432 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1433 (NSLeftAlternateKeyMask): New defines.
1434 (keyDown): Parse left and right keys separately (Bug#7458).
1435 Compare Left key masks exactly (Bug#7458).
1436
1437 2010-11-23 Eli Zaretskii <eliz@gnu.org>
1438
1439 * intervals.c (temp_set_point_both): Define before calling, to
1440 avoid GCC warnings.
1441
1442 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1443
1444 * nsmenu.m: Use #include <config.h> instead of "config.h".
1445
1446 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1447 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1448 Move declarations ...
1449 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1450 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1451 ... here.
1452
1453 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1454 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1455 (gdb_pvec_type):
1456 * print.c (print_output_debug_flag):
1457 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1458 (safe_debug_print): New declaration.
1459
1460 * xterm.c:
1461 * systty.h:
1462 * sound.c: Include <sys/ioctl.h> unconditionally.
1463
1464 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1465
1466 * alloc.c (mark_maybe_object): Return early if given a Lisp
1467 integer (Bug#6301).
1468
1469 2010-11-21 Ken Brown <kbrown@cornell.edu>
1470
1471 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1472
1473 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1474
1475 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1476 Define (Bug#7458).
1477 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1478 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1479 NSRightControlKeyMask also (Bug#7458).
1480 (keyDown): Ditto (Bug#7458).
1481 (syms_of_nsterm): Defvar ns-right-command-modifier and
1482 ns-right-control-modifier (Bug#7458).
1483
1484 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1485
1486 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1487 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1488
1489 * intervals.h (temp_set_point, temp_set_point_both):
1490 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1491
1492 2010-11-20 Ken Brown <kbrown@cornell.edu>
1493
1494 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1495
1496 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1497
1498 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1499 \xNNNNNN for hex-code display of glyphless characters.
1500
1501 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1502
1503 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1504 Set important to ! vert_only.
1505 (xg_show_toolbar_item): Don't show label horizontally if
1506 tool item isn't important.
1507 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1508 xg_make_tool_item, or update important on existing tool item.
1509
1510 * keyboard.c (QCvert_only): New variable.
1511 (parse_tool_bar_item): Check for QCvert_only.
1512 (syms_of_keyboard): Initialize QCvert_only.
1513
1514 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1515
1516 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1517
1518 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1519 same in-line.
1520
1521 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1522
1523 * xfaces.c (lookup_face): Make static.
1524 * dispnew.c (copy_row_except_pointers): Likewise.
1525 * syntax.c (dec_bytepos): Likewise.
1526 (inc_bytepos): Remove.
1527 * dispextern.h (lookup_face): Remove declaration.
1528
1529 2010-11-19 Eli Zaretskii <eliz@gnu.org>
1530
1531 * xdisp.c (set_cursor_from_row): Display cursor after all the
1532 glyphs that come from an overlay. Don't overstep the last glyph
1533 when skipping glyphs from an overlay. (Bug#6687)
1534
1535 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1536
1537 * alloc.c (refill_memory_reserve): Move declaration ...
1538 * lisp.h (refill_memory_reserve): ... here.
1539
1540 * strftime.c (_strftime_copytm): Add declaration.
1541
1542 * callproc.c (syms_of_callproc): Use intern_c_string.
1543
1544 Move declarations from .c files to .h files.
1545 * process.c (timers_run):
1546 * minibuf.c (quit_char):
1547 * lread.c (read_emacs_mule_char):
1548 * keyboard.c (minibuf_level, message_enable_multibyte)
1549 (pending_malloc_warning):
1550 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1551 (Qonly): Remove declarations.
1552 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1553 (Vselect_active_regions):
1554 * keyboard.h (timers_run): Add declarations.
1555
1556 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1557 (tm_diff): Convert definitions to standard C.
1558 (extra_args_spec_iso): Remove, unused.
1559
1560 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
1561
1562 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1563
1564 * config.in (HAVE_G_TYPE_INIT): New symbol.
1565
1566 2010-11-18 Eli Zaretskii <eliz@gnu.org>
1567
1568 * lread.c (Fload): Mention `load-in-progress' and
1569 `load-file-name'. (Bug#7346)
1570
1571 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1572 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1573 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1574 subprocesses. Use buffer_free only ifdef subprocesses.
1575
1576 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1577 the subprocesses version, not in the non-subprocesses one.
1578
1579 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1580
1581 2010-11-17 Eli Zaretskii <eliz@gnu.org>
1582
1583 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1584 lines on text-mode terminals. (bug#7417)
1585
1586 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1587
1588 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1589 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1590
1591 2010-11-17 Kenichi Handa <handa@m17n.org>
1592
1593 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1594 change (set charset-ID list instead of charset-symbol list).
1595
1596 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
1597
1598 * keyboard.c (make_lispy_position): For text area clicks, record Y
1599 pixel position relative to the text area, excluding header line.
1600 Also change X and Y to Lisp_Objects, not pointers; don't return
1601 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1602 buffer_posn_from_coords counting from the start of the text area.
1603 (Fposn_at_x_y, make_lispy_event): Callers changed.
1604
1605 * window.c (coordinates_in_window): Change X and Y to ints rather
1606 than pointers; don't return coordinates via pointers.
1607 (struct check_window_data): Change X and Y from pointers to ints.
1608 (window_from_coordinates): Remove args WX and WY; don't return
1609 coordinates via pointers.
1610 (Fcoordinates_in_window_p, window_from_coordinates):
1611 (check_window_containing, Fwindow_at): Callers changed.
1612 (window_relative_x_coord): New function.
1613
1614 * window.h (window_from_coordinates, window_relative_x_coord):
1615 Update prototypes.
1616
1617 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1618 the start of the text area.
1619
1620 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1621 call. Use window_relative_x_coord.
1622 (note_mouse_highlight): Change window_from_coordinates call.
1623
1624 * w32term.c (w32_read_socket):
1625 * msdos.c (dos_rawgetc):
1626 * xterm.c (handle_one_xevent): Likewise.
1627
1628 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1629
1630 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1631 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1632 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1633 Convert definitions to standard C.
1634 * regex.c: Do not include <stdlib.h>, config.h does it.
1635 Include unistd.h.
1636 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1637 (regerror, regfree): Convert definitions to standard C.
1638 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1639 (__mktime_internal): Convert definitions to standard C.
1640
1641 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1642
1643 * w32proc.c:
1644 * w32inevt.c:
1645 * w32heap.c:
1646 * w32.c: Remove config.h include guards.
1647
1648 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1649 No code changes.
1650
1651 * process.c: Include <sys/ioctl.h> unconditionally,
1652 keyboard.c already does it.
1653
1654 * keyboard.c (pending_malloc_warning): Add const to match
1655 definition in alloc.c.
1656 (Fset_input_interrupt_mode): Simplify #ifdefs.
1657
1658 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1659
1660 Clean up systty.h macros.
1661 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1662 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1663 definition in all uses.
1664 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1665 * sysdep.c (discard_tty_input, child_setup_tty)
1666 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1667 * emacs.c (shut_down_emacs):
1668 * callproc.c (child_setup):
1669 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1670
1671 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1672
1673 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1674
1675 * w32fns.c (Fx_create_frame):
1676 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1677 resource here; it's now done at startup.
1678
1679 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1680
1681 * xterm.c (set_wm_state): Add Qnil to final cons.
1682
1683 * xselect.c (x_send_client_event): Remove unused variables cons and
1684 size.
1685
1686 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1687
1688 * keyboard.c (modify_event_symbol) : Add const to array elements of
1689 arg NAME_TABLE.
1690 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1691 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1692 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1693 Add const to array elements.
1694 (scroll_bar_parts): Make static. Fix position of const.
1695
1696 * w32fns.c (lispy_function_keys): Add const to extern.
1697
1698 * w32inevt.c (lispy_function_keys): Likewise.
1699
1700 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1701
1702 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1703 resource here; it's now done at startup.
1704
1705 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1706
1707 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
1708
1709 Fix compilation on Solaris.
1710 * sysdep.c: Do not #include <term.h>.
1711 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1712
1713 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1714
1715 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1716
1717 * xterm.c (set_wm_state): Don't put Atom in cons, call
1718 make_fixnum_or_float on them first.
1719 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1720 Xatom_net_supported correctly.
1721
1722 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1723 (Fx_send_client_event): to here.
1724
1725 2010-11-13 Martin Rudalics <rudalics@gmx.at>
1726
1727 * window.c (Fwindow_use_time): New function.
1728
1729 2010-11-13 Eli Zaretskii <eliz@gnu.org>
1730
1731 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1732 zero-width characters.
1733
1734 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1735
1736 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1737 box before drawing the glyphs inside it.
1738
1739 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1740
1741 * dispextern.h (enum glyphless_display_method):
1742 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1743 All users changed.
1744
1745 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1746 Fix comments.
1747 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1748 whitespace in "[]", to simulate a box. Don't use uninitialized
1749 variable `width'.
1750
1751 2010-11-11 Julien Danjou <julien@danjou.info>
1752
1753 * xsettings.c (init_xsettings): Use already fetch atoms.
1754
1755 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1756 from dpyinfo.
1757
1758 * xselect.c (Fx_send_client_event): Split and create
1759 x_send_client_event.
1760
1761 * lisp.h: Do not EXFUN Fx_send_client_event.
1762
1763 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1764 from dpyinfo.
1765 (wm_supports): Use atoms from dpyinfo.
1766 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1767 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1768 (xembed_set_info): Use atoms from dpyinfo.
1769 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1770 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1771 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1772 Get all atoms in one round-trip.
1773 (set_wm_state): Use x_send_client_event rather than
1774 Fx_send_client_event, using Atom directly.
1775 (x_ewmh_activate_frame): Ditto.
1776 (x_set_sticky): Pass atoms to set_wm_state.
1777 (do_ewmh_fullscreen): Ditto.
1778
1779
1780 * xterm.h (x_display_info): Add Xatom_net_supported,
1781 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1782 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1783
1784 * xfns.c (Fx_show_tip): Fix typo in docstring.
1785
1786 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1787
1788 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1789 it's not negative.
1790
1791 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1792
1793 * font.c (font_filter_properties): Add const to array elements of
1794 properties args.
1795
1796 * font.h (font_filter_properties): Likewise.
1797
1798 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1799 elements.
1800
1801 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1802
1803 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
1804
1805 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1806 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1807 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1808 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1809 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1810
1811 2010-11-10 Glenn Morris <rgm@gnu.org>
1812
1813 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1814
1815 2010-11-09 Eli Zaretskii <eliz@gnu.org>
1816
1817 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
1818
1819 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
1820
1821 * image.c (free_image): Don't garbage the frame here, since this
1822 function can be called while redisplaying (Bug#7210).
1823 (uncache_image): Garbage the frame here (Bug#6426).
1824
1825 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
1826
1827 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1828 parent is the root window. Check this after traversing window tree.
1829
1830 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
1831
1832 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
1833
1834 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1835 before traversing window tree (Bug#5721).
1836
1837 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1838
1839 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1840
1841 * xdisp.c (note_mode_line_or_margin_highlight):
1842 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
1843
1844 2010-11-06 Eli Zaretskii <eliz@gnu.org>
1845
1846 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1847 adjust width of tool-tip frame to the width of text, excluding the
1848 stretch glyph at the beginning of R2L glyph rows.
1849
1850 * w32fns.c (Fx_show_tip): Likewise.
1851
1852 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1853
1854 * nsfont.m: Include termchar for new mouse-highlight.
1855 (nsfont_draw): Use MOUSE_HL_INFO.
1856
1857 2010-11-05 Eli Zaretskii <eliz@gnu.org>
1858
1859 Unify mouse-highlight code for all GUI and TTY sessions.
1860
1861 * term.c: Remove static mouse_face_* variables. All users
1862 changed.
1863 (term_show_mouse_face, term_clear_mouse_face)
1864 (fast_find_position, term_mouse_highlight): Functions deleted.
1865 (tty_draw_row_with_mouse_face): New function.
1866 (term_mouse_movement): Call note_mouse_highlight instead of
1867 term_mouse_highlight.
1868
1869 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1870 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1871 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1872 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1873 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1874 Replace Display_Info with Mouse_HLInfo everywhere where
1875 mouse_face_* members were accessed for mouse highlight purposes.
1876
1877 * xterm.c (x_update_window_begin, x_update_window_end)
1878 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
1879 (handle_one_xevent, x_free_frame_resources, x_term_init):
1880 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
1881 members were accessed for mouse highlight purposes.
1882
1883 * w32term.c (x_update_window_begin, x_update_window_end)
1884 (x_update_end, w32_read_socket, x_free_frame_resources)
1885 (w32_initialize_display_info): Replace Display_Info with
1886 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1887 for mouse highlight purposes.
1888
1889 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1890 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1891 unless the frame is on a window-system.
1892 (get_tool_bar_item, handle_tool_bar_click)
1893 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1894 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1895 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1896 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1897 Replace Display_Info with Mouse_HLInfo everywhere where
1898 mouse_face_* members were accessed for mouse highlight purposes.
1899 (coords_in_mouse_face_p): Move prototype out of the
1900 HAVE_WINDOW_SYSTEM conditional.
1901 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1902 HAVE_WINDOW_SYSTEM block.
1903 (try_window_id) [HAVE_GPM || MSDOS]:
1904 Call x_clear_window_mouse_face.
1905 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
1906 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1907 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1908 calling draw_glyphs directly.
1909 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1910 (cursor_in_mouse_face_p, rows_from_pos_range)
1911 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1912 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1913 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1914 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1915 fragments.
1916 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1917 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1918 integer.
1919 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
1920 (x_consider_frame_title, tool_bar_lines_needed):
1921 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
1922 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1923 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1924 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1925 part.
1926
1927 * dispnew.c (mirror_make_current): Set Y coordinate of the
1928 mode-line and header-line rows.
1929 (init_display): Setup initial frame's output_data for text
1930 terminal frames.
1931
1932 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1933 its own definition on msdos.c.
1934
1935 * msdos.c (show_mouse_face, clear_mouse_face)
1936 (fast_find_position, IT_note_mode_line_highlight)
1937 (IT_note_mouse_highlight): Functions deleted.
1938 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1939 instead of IT_note_mouse_highlight.
1940 (draw_row_with_mouse_face, popup_activated): New functions.
1941 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1942 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1943 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1944 where mouse_face_* members were accessed for mouse highlight
1945 purposes.
1946
1947 * msdos.h (initialize_msdos_display): Add prototype.
1948
1949 * frame.h (MOUSE_HL_INFO): New macro.
1950
1951 * lisp.h (Mouse_HLInfo): New data type.
1952
1953 * xterm.h (struct x_display_info):
1954 * w32term.h (struct w32_display_info):
1955 * nsterm.h (struct ns_display_info):
1956 * termchar.h (struct tty_display_info): Use it instead of
1957 mouse_face_* members.
1958
1959 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1960 1st argument.
1961 (frame_to_window_pixel_xy, note_mouse_highlight)
1962 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
1963 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
1964 HAVE_WINDOW_SYSTEM conditional.
1965 (draw_row_with_mouse_face): Declare prototype.
1966 (tty_draw_row_with_mouse_face): Declare prototype.
1967
1968 2010-11-05 Eli Zaretskii <eliz@gnu.org>
1969
1970 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1971 Remove unused variables.
1972
1973 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1974
1975 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
1976 logic pointed out by Eli Zaretskii.
1977
1978 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
1979
1980 * coding.c (coding-category-list): Refer to set-coding-system-priority
1981 instead of the obsolete set-coding-priority in the doc string.
1982
1983
1984 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1985
1986 * nsfont.m (nsfont_draw): Correct previous patch to return
1987 correct value.
1988 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
1989 don't change the method signature, change the return.
1990
1991 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
1992
1993 * nsfont.m (nsfont_draw)
1994 * nsimage.m (EmacsImage-setXBMColor:)
1995 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
1996
1997 2010-11-03 Julien Danjou <julien@danjou.info>
1998
1999 * image.c (gif_load): Add support for transparency and specified
2000 :background.
2001
2002 2010-11-01 Kenichi Handa <handa@m17n.org>
2003
2004 * dispextern.h (lookup_glyphless_char_display): Extern it.
2005
2006 * termhooks.h (struct terminal): New member charset_list.
2007
2008 * coding.c (Fset_terminal_coding_system_internal): Set the
2009 `charset_list' member of struct terminal.
2010
2011 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
2012 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2013
2014 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2015 (lookup_glyphless_char_display): Set it->what at the end.
2016 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2017 (last_glyphless_glyph_merged_face_id): Make them non-static.
2018
2019 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2020 Fix the arg with_background for font->driver->draw.
2021
2022 2010-11-01 Kenichi Handa <handa@m17n.org>
2023
2024 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2025 Surround chp by parentheses.
2026
2027 2010-11-01 Kenichi Handa <handa@m17n.org>
2028
2029 Implement various display methods for glyphless characters.
2030
2031 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2032 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2033 (Qzero_width): New variables.
2034 (THIN_SPACE_WIDTH): New macro.
2035 (lookup_glyphless_char_display): New funciton.
2036 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2037 (last_glyphless_glyph_merged_face_id): New variables.
2038 (get_next_display_element): Check glyphless characters.
2039 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2040 last_glyphless_glyph_face_id.
2041 (fill_glyphless_glyph_string): New function.
2042 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2043 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2044 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2045 (x_produce_glyphs): If a suitable font is not found, produce a
2046 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2047 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2048 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2049 Qzero_width.
2050 (Vglyphless_char_display): Declare it as a Lisp variable.
2051
2052 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
2053 (struct glyph): Change the size of the member "type" to 3.
2054 Add glyphless to the union slice and u.
2055 (enum display_element_type): Add IT_GLYPHLESS.
2056 (enum glyphless_display_method): New enum.
2057 (struct it): New member glyphless_method.
2058 (Vglyphless_char_display): Extern it.
2059
2060 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2061 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2062
2063 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
2064 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2065
2066 * nsterm.m (ns_draw_glyph_string): Handle the case
2067 GLYPHLESS_GLYPH (the detail is not yet implemented).
2068
2069 2010-10-31 Glenn Morris <rgm@gnu.org>
2070
2071 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2072
2073 * frame.c (syms_of_frame) <tool-bar-mode>:
2074 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2075
2076 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
2077
2078 * xterm.c (x_connection_closed): Print informative error message
2079 when aborting on GTK. This requires using shut_down_emacs
2080 directly instead of Fkill_emacs.
2081
2082 2010-10-29 Eli Zaretskii <eliz@gnu.org>
2083
2084 * emacs.c (main): Call syms_of_filelock unconditionally.
2085
2086 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2087 clause, but keep part of it conditioned on CLASH_DETECTION.
2088
2089 2010-10-29 Glenn Morris <rgm@gnu.org>
2090
2091 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2092 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2093 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2094 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2095 Sync docs between X, W32, NS.
2096
2097 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2098 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2099
2100 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
2101
2102 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2103 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2104
2105 2010-10-26 Eli Zaretskii <eliz@gnu.org>
2106
2107 * cmds.c (internal_self_insert): Don't insert if argument N is
2108 zero or negative. (Bug#7281)
2109
2110 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2111
2112 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2113
2114 2010-10-25 Glenn Morris <rgm@gnu.org>
2115
2116 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2117
2118 2010-10-24 Glenn Morris <rgm@gnu.org>
2119
2120 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2121 (Fx_window_property, Fx_file_dialog):
2122 * xfns.c (Fx_synchronize, Fx_change_window_property)
2123 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2124
2125 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
2126
2127 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2128
2129 2010-10-24 Eli Zaretskii <eliz@gnu.org>
2130
2131 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2132
2133 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2134 Deprecate use as a boolean flag.
2135
2136 2010-10-24 Jim Meyering <jim@meyering.net>
2137
2138 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2139
2140 2010-10-24 Glenn Morris <rgm@gnu.org>
2141
2142 * w16select.c (syms_of_win16select) <selection-coding-system>:
2143 <next-selection-coding-system>:
2144 * w32select.c (syms_of_w32select) <selection-coding-system>:
2145 <next-selection-coding-system>:
2146 Sync docs with select.el.
2147
2148 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2149 Lisp version.
2150
2151 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2152 Sync doc with the xterm.c version.
2153
2154 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2155 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2156
2157 2010-10-23 Glenn Morris <rgm@gnu.org>
2158
2159 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2160 * frame.c (syms_of_frame) <menu-bar-mode>:
2161 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
2162 <hourglass-delay>: Sync docs with Lisp.
2163
2164 2010-10-23 Eli Zaretskii <eliz@gnu.org>
2165
2166 Implement mouse highlight for bidi-reordered lines.
2167
2168 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2169 (mouse_face_from_string_pos): New function, replaces
2170 fast_find_string_pos.
2171 (note_mouse_highlight): Call it instead of fast_find_string_pos.
2172 (note_mode_line_or_margin_highlight): Support bidi-reordered
2173 strings and R2L glyph rows. Fix comments.
2174 (note_mouse_highlight): When bidi reordering is turned on in a
2175 buffer, call next-single-property-change and
2176 previous-single-property-change with last argument nil.
2177 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
2178 glyph that stands for no text beyond the line end.
2179 (row_containing_pos): Don't return too early when CHARPOS is in a
2180 bidi-reordered continued line. Return immediately when the first
2181 hit is found in a line that is not continued, or when an exact
2182 match for CHARPOS is found.
2183 (rows_from_pos_range): New function.
2184 (mouse_face_from_buffer_pos): Use it instead of calling
2185 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2186 function to support mouse highlight in bidi-reordered lines and
2187 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2188 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2189 that the former is always above the latter or identical to it.
2190 (show_mouse_face): Support drawing highlighted R2L lines.
2191 (coords_in_mouse_face_p): New function, bidi-aware.
2192 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2193 Call it instead of comparing with mouse-face members of dpyinfo.
2194 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2195 usage of hpos and vpos.
2196
2197 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2198
2199 * xrdb.c: Include keyboard.h for MOTIF.
2200
2201 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2202 MOTIF (Bug#7263).
2203
2204 * xfns.c: Include Xm/TextF and Xm/List.
2205 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2206 Make ANSI prototypes.
2207
2208 2010-10-22 Glenn Morris <rgm@gnu.org>
2209
2210 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2211 Remove ccl and duplicate mouse.
2212
2213 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2214
2215 * insdel.c (prepare_to_modify_buffer): Don't set
2216 saved-region-selection if modification hooks are disabled.
2217
2218 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
2219
2220 * cmds.c (Fdelete_char): Doc fix.
2221
2222 2010-10-19 Ken Brown <kbrown@cornell.edu>
2223
2224 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2225
2226 2010-10-19 Kenichi Handa <handa@m17n.org>
2227
2228 Fix incorrect font metrics when the same font is opened with
2229 different pixelsizes.
2230
2231 * xftfont.c: Include composite.h.
2232 (xftfont_shape): New function.
2233 (syms_of_xftfont): Set xftfont_driver.shape.
2234
2235 2010-10-18 Julien Danjou <julien@danjou.info>
2236
2237 * frame.c (Fframe_pointer_visible_p):
2238 Add `frame-pointer-visible-p' to get the pointer visibility.
2239
2240 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2241
2242 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2243 non-"EAGAIN"-like error to signal to Emacs that the socket should
2244 be closed.
2245
2246 2010-10-15 Eli Zaretskii <eliz@gnu.org>
2247
2248 * unexcoff.c (make_hdr): Fix prototype according to changes in
2249 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2250
2251 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2252
2253 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2254
2255 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2256 made building the X menu fail.
2257 (really-oldXMenu): Fix my previous fix.
2258
2259 2010-10-14 Damyan Pepper <damyanp@gmail.com>
2260
2261 Fix handling of font properties on Windows (bug#6303).
2262 * font.c (font_filter_properties): New function, refactored from
2263 ftfont_filter_properties.
2264 * font.h (font_filter_properties): Declare.
2265 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2266 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2267 (w32font_filter_properties): New function.
2268 (w32font_driver): Add w32font_filter_properties.
2269
2270 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2271
2272 * font.c (Ffont_variation_glyphs):
2273 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2274
2275 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2276
2277 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2278 * w32font.c (w32_generic_family):
2279 * w32inevt.c (key_event):
2280 * w32menu.c (fill_in_menu):
2281 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2282 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2283 * w32term.c (w32_read_socket): Make static.
2284
2285 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2286
2287 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2288 prototypes; all callers changed.
2289
2290 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2291
2292 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2293 (OBJ2): New macro.
2294 (WIN32OBJ, FONTOBJ): Remove.
2295 (OBJ1): Redistribute object files with OBJ2.
2296 (LIBS, $(TEMACS)): Use TLIB2.
2297 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2298 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2299
2300 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2301
2302 * emacs.c (Vdynamic_library_alist)
2303 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2304 Doc fix.
2305
2306 * lisp.h (Vdynamic_library_alist): Declare extern.
2307
2308 * image.c (Vimage_library_alist)
2309 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2310 (lookup_image_type): Use Vdynamic_library_alist.
2311 (Finit_image_library): Doc fix.
2312
2313 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2314
2315 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2316 (lispdir): Remove trailing /, update all uses.
2317
2318 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
2319
2320 * nsterm.m (Qleft): Declare.
2321 (ns_right_alternate_modifier): New variable
2322 (NSRightAlternateKeyMask): New define.
2323 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2324 ns_right_alternate_modifier isn't Qleft.
2325 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2326 as emacs modifier for NSRightAlternateKeyMask.
2327 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2328
2329 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2330
2331 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2332 gnutls is ready, return EAGAIN as the errno.
2333
2334 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2335
2336 * vm-limit.c:
2337 * unexhp9k800.c:
2338 * unexelf.c:
2339 * unexaix.c:
2340 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2341
2342 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2343 (PROFILING_LDFLAGS): Remove, not needed anymore.
2344
2345 * Makefile.in: Use $(...) everywhere instead of ${...}
2346 (CRT_DIR): Move near potential user.
2347 (START_FILE): Move near CRT_DIR, it might use it.
2348
2349 * sysdep.c (LPASS8): Remove, unused.
2350 (emacs_ospeed): Change from being a global to a local in the only
2351 user: init_baud_rate.
2352
2353 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2354
2355 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
2356 (emacs_gnutls_write): Remove the debuggin fsync call.
2357 (emacs_gnutls_read): Return -1 if we got an error from
2358 gnutls_read. This allows us to actually read lots of data from
2359 the GnuTLS stream.
2360 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2361 According to the documentation, this is correct, and it seems to
2362 make things work.
2363
2364 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
2365
2366 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2367
2368 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2369
2370 * keyboard.c: Revert last change; it was not intended to be
2371 synchronized with the trunk.
2372
2373 2010-10-08 Kenichi Handa <handa@m17n.org>
2374
2375 * coding.c (complement_process_encoding_system): Fix previous change.
2376
2377 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2378
2379 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2380 (Fdbus_init_bus): ... here. (Bug#7113)
2381
2382 2010-10-08 Glenn Morris <rgm@gnu.org>
2383
2384 * buffer.c (before-change-functions, after-change-functions):
2385 Three-year overdue doc fix following 2007-08-13 change.
2386
2387 2010-10-08 Kenichi Handa <handa@m17n.org>
2388
2389 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2390 eol-format, inherit from the system's default.
2391 (complement_process_encoding_system): Make a new coding system
2392 inherit the original eol-format.
2393
2394 2010-10-08 Kenichi Handa <handa@m17n.org>
2395
2396 * coding.c (complement_process_encoding_system): New function.
2397
2398 * coding.h (complement_process_encoding_system): Extern it.
2399
2400 * callproc.c (Fcall_process): Complement the coding system for
2401 encoding arguments.
2402 (Fcall_process_region): Complement the coding system for encoding
2403 the input to the process.
2404
2405 * process.c (Fstart_process): Complement the coding system for
2406 encoding arguments.
2407 (send_process): Complement the coding system for encoding what
2408 sent to the process.
2409
2410 2010-10-08 Kenichi Handa <handa@m17n.org>
2411
2412 * xfont.c (xfont_open): Fix setting of font->average_width from
2413 :avgwidth property (Bug#7123).
2414
2415 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2416
2417 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2418 is more portable.
2419
2420 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2421 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2422 has not defined SIGIO.
2423
2424 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
2425
2426 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2427 draw the outermost line using the black relief, for legibility.
2428 Omit drawing the four corner pixels.
2429
2430 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
2431
2432 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2433 (read_key_sequence): Inline echo_prompt.
2434 (echo_dash): Add a dash only if key is continued (Bug#7137).
2435
2436 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2437
2438 Remove O_RDONLY, O_WRONLY definitions, not needed.
2439 * unexcoff.c:
2440 * lread.c:
2441 * fileio.c:
2442 * doc.c:
2443 * callproc.c:
2444 * alloc.c:
2445 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2446
2447 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2448
2449 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2450
2451 * gnutls.c: Add property list symbol holders.
2452 (emacs_gnutls_handshake): Clarify how sockets are passed to
2453 GnuTLS.
2454 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2455 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2456 and keyfiles to be a list of file names. Default to "NORMAL" for
2457 the priority string. Improve logging.
2458
2459 2010-10-03 Glenn Morris <rgm@gnu.org>
2460
2461 * fileio.c (Vdirectory_sep_char): Remove.
2462
2463 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2464
2465 * termhooks.h: Remove #ifdef CONSP.
2466
2467 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2468
2469 Include <fcntl.h> unconditionally.
2470 * termcap.c:
2471 * sysdep.c:
2472 * lread.c:
2473 * keyboard.c:
2474 * filelock.c:
2475 * fileio.c:
2476 * doc.c:
2477 * callproc.c:
2478 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2479 does it.
2480
2481 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2482
2483 * sysdep.c (flush_pending_output): Remove code, does not do
2484 anything on any platform.
2485
2486 Remove unused code.
2487 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2488 Remove select emulation, all systems support select.
2489 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2490 * process.c (create_process): Remove #if 0 code.
2491
2492 Remove unused arguments for unexec.
2493 The third one is never used, and the last two are always passed as zero.
2494 * emacs.c (unexec): Add declaration.
2495 (Fdump_emacs): Only pass the first two arguments to unexec.
2496 Simplify #ifdef.
2497 * unexw32.c (unexec):
2498 * unexsol.c (unexec):
2499 * unexhp9k800.c (unexec):
2500 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2501 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2502 (find_section): Use const.
2503 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2504 (unexec_error): Declare it NO_RETURN.
2505 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2506 it as an argument, remove data_start and entry_address arguments, unused.
2507 (unexec): Remove bss_start, data_start and
2508 entry_address arguments.
2509 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2510 it as an argument, remove data_start and entry_address arguments, unused.
2511 (unexec): Remove bss_start, data_start and
2512 entry_address arguments.
2513
2514 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
2515
2516 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2517
2518 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2519 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2520 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2521 Fix typos in docstrings.
2522 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2523 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2524
2525 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
2526
2527 * keyboard.c (command_loop_1): Make sure the mark is really alive
2528 before using it (Bug#7044).
2529
2530 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
2531
2532 * makefile.w32-in (tags): Rename target to full-tags.
2533
2534 2010-10-02 Eli Zaretskii <eliz@gnu.org>
2535
2536 * emacs.c (main): Remove !WINDOWSNT conditional.
2537 (Fkill_emacs): Don't mention exemption on MS-Windows.
2538
2539 2010-10-02 Glenn Morris <rgm@gnu.org>
2540
2541 * character.c (Fchar_bytes): Remove obsolete function.
2542 (syms_of_character): Remove Schar_bytes.
2543
2544 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2545 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2546 in batch-mode.
2547 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2548 (kill-emacs-hook): Doc fix.
2549
2550 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2551
2552 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
2553 (parse_region): Rework to take regions instead of strings, and
2554 renamed to reflect that these are the libxml functions.
2555
2556 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2557
2558 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2559 screen dimensions in tty->Wcm.
2560
2561 * xdisp.c (set_cursor_from_row): When the row is truncated and
2562 point is outside the range of displayed characters, position the
2563 cursor inside the scroll margin. (Bug#6349)
2564
2565 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2566
2567 Do not include stdlib.h and string.h, config.h does it.
2568 * xfont.c:
2569 * w32term.c:
2570 * w32reg.c:
2571 * w32inevt.c:
2572 * w32heap.c:
2573 * w32console.c:
2574 * w16select.c:
2575 * unexsol.c:
2576 * term.c:
2577 * sound.c:
2578 * scroll.c (m):
2579 * gtkutil.c:
2580 * font.c:
2581 * filelock.c:
2582 * fileio.c:
2583 * dosfns.c:
2584 * dbusbind.c:
2585 * bidi.c:
2586 * callproc.c:
2587 * process.c:
2588 * msdos.c:
2589 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2590
2591 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2592 defines it.
2593
2594 * process.c: Move #include <pty.h> earlier.
2595 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2596 (pty_name): Move definition later.
2597
2598 * nsselect.m (syms_of_nsselect):
2599 * nsmenu.m (syms_of_nsmenu):
2600 * nsfns.m (syms_of_nsfns):
2601 * msdos.c (syms_of_msdos):
2602
2603 * image.c (syms_of_image):
2604 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2605
2606 * point.h: Remove, unused.
2607
2608 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2609
2610 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2611 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2612 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2613
2614 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2615
2616 * xml.c (parse_string): Use const.
2617
2618 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2619
2620 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2621 Also only override Vprint_level if it isn't already bound, and increase
2622 the level to 8 to produce more useful backtraces for bug reports.
2623
2624 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2625
2626 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2627
2628 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
2629
2630 * w32console.c (vga_stdcolor_name): Remove unused function;
2631 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2632
2633 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2634
2635 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2636 (Fgnutls_boot): Start the handshake.
2637 (emacs_gnutls_read): Perform the handshake from the reader loop.
2638 (Fgnutls_boot): Remove some debugging messages.
2639 Change indentation throughout to use the Emacs style.
2640 (emacs_gnutls_handshake): Cast the fds to something that's
2641 possibly the expected length.
2642 (emacs_gnutls_write): Return -1 if we try to write before handshake.
2643
2644 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2645
2646 * process.c (make_process): Set the gnutls_p field to zero by
2647 default.
2648 (read_process_output): Always call the gnutls_read function if the
2649 stream is a gnutls stream.
2650 (send_process): Ditto for writes.
2651
2652 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2653 or write anything until the state is GNUTLS_STAGE_READY.
2654 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2655
2656 2010-09-29 Eli Zaretskii <eliz@gnu.org>
2657
2658 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2659 NEUTRAL_DIR.
2660 (handle_invisible_prop, iterate_out_of_display_property)
2661 (next_element_from_buffer): If bidi_it.first_elt is set, call
2662 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2663 (Bug#7128)
2664
2665 * print.c (print_object): Fix format string and argument types for
2666 printing a Lisp_Misc_Marker.
2667
2668 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2669 (load_overlay_strings, get_overlay_strings_1)
2670 (get_overlay_strings, forward_to_next_line_start)
2671 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2672 (get_next_display_element, next_element_from_string)
2673 (next_element_from_c_string, next_element_from_buffer)
2674 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2675 (message_dolog, message_log_check_duplicate, message2_nolog)
2676 (message3, message3_nolog, vmessage, set_message, set_message_1)
2677 (hscroll_window_tree, text_outside_line_unchanged_p)
2678 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2679 (find_last_unchanged_at_beg_row)
2680 (find_first_unchanged_at_end_row, row_containing_pos)
2681 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
2682 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2683 Use EMACS_INT for buffer and string positions.
2684
2685 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2686 (row_containing_pos): Adjust prototype.
2687
2688 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2689 (message2_nolog, set_message): Adjust prototypes.
2690
2691 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2692
2693 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2694 (Fgnutls_boot): Use SDATA.
2695 (Fgnutls_handshake): Remove unused var `max_log_level'.
2696
2697 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2698
2699 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
2700 (Bug#7113)
2701
2702 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2703
2704 * xgselect.c (xg_select): Clear file descriptors not set from
2705 rfds and wfds.
2706
2707 * process.c (wait_reading_process_output): Add missing FD_CLR
2708 for write_mask (must mirror connect_wait_mask).
2709
2710 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2711
2712 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2713 prefix.
2714 (Fgnutls_boot): Use changed process members. Use log level with a
2715 function parameter to set it. Bring back Emacs-level debugging
2716 messages at log level 1 and 2.
2717
2718 * process.c (make_process): Initialize gnutls_log_level.
2719
2720 * process.h: Add gnutls_log_level and rename x509_cred and
2721 anon_cred to have the gnutls_ prefix for consistency.
2722
2723 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2724
2725 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
2726
2727 * w32.c (g_b_init_get_sid_identifier_authority)
2728 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2729 Remove, not used.
2730 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2731 (init_winsock): Remove useless assignment.
2732 (open_process_token, get_token_information, lookup_account_sid)
2733 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2734 (get_security_descriptor_owner, get_security_descriptor_group)
2735 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2736 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2737 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2738 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2739 (unc_volume_file_attributes, convert_from_time_t)
2740 (create_toolhelp32_snapshot, process32_first, process32_next)
2741 (open_thread_token, impersonate_self, revert_to_self)
2742 (get_process_memory_info, get_process_working_set_size)
2743 (global_memory_status, global_memory_status_ex, socket_to_fd)
2744 (shutdown_handler): Make static.
2745
2746 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2747
2748 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2749 (xd_pending_messages): Functions removed.
2750 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2751 order to be compatible with add_read_fd. Determine bus from data,
2752 and call xd_read_message just for this bus.
2753 (xd_add_watch): Use xd_read_queued_messages as callback function.
2754 Add data.
2755
2756 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2757
2758 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2759
2760 * gnutls.c (gnutls_log_function): Add more debugging.
2761 (emacs_gnutls_read): Don't infloop while reading.
2762
2763 2010-09-27 Kenichi Handa <handa@m17n.org>
2764
2765 These changes are to remove restriction on the number of glyphs in
2766 one composition.
2767
2768 * dispextern.h (struct glyph): Change the member "slice" to union.
2769 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
2770 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
2771
2772 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2773 instead of glyph->slice.
2774 (marginal_area_string): Likewise.
2775
2776 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2777 glyph->u.cmp.
2778 (append_composite_glyph): Likewise.
2779
2780 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2781 glyph->u.cmp.
2782 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2783 (append_composite_glyph): Likewise.
2784 (fill_image_glyph_string): Use glyph->slice.img instead of
2785 glyph->slice.
2786 (append_glyph, produce_image_glyph, append_stretch_glyph)
2787 (note_mouse_highlight): Likewise.
2788
2789 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2790
2791 * process.c (add_keyboard_wait_descriptor)
2792 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
2793 (wait_reading_process_output): Don't pass write_mask to select
2794 if SELECT_CANT_DO_WRITE_MASK is defined.
2795 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
2796
2797 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2798 (delete_write_fd): Declare.
2799
2800 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2801 (write_mask): New variable.
2802 (max_input_desc): Rename from max_keyboard_desc.
2803 (fd_callback_info): New variable.
2804 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2805 New functions.
2806 (Fmake_network_process): FD_SET write_mask.
2807 (deactivate_process): FD_CLR write_mask.
2808 (wait_reading_process_output): Connecting renamed to Writeok.
2809 check_connect removed. check_write is new. Remove references to gpm.
2810 Use Writeok/check_write unconditionally (i.e. no #ifdef
2811 NON_BLOCKING_CONNECT) instead of Connecting.
2812 Loop over file descriptors and call callbacks in fd_callback_info
2813 if file descriptor is ready for I/O.
2814 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2815 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2816 (keyboard_bit_set): Use max_input_desc.
2817 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2818 Remove #ifdef subprocesses. Use max_input_desc.
2819 (init_process): Initialize write_mask and fd_callback_info.
2820
2821 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2822
2823 * dbusbind.c: Include process.h.
2824 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2825 (xd_read_message_1): New functions.
2826 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2827 Handle watch for both read and write.
2828 (Fdbus_init_bus): Also register xd_toggle_watch.
2829 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2830 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2831 to dbus_connection_flush.
2832 (xd_read_message): Move most of the code to xd_read_message_1.
2833 Call xd_read_message_1 until status is COMPLETE.
2834
2835 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2836
2837 * term.c: Do not include sys/ioctl.h, not needed.
2838 (init_tty): Reorder code to reduce the number of #ifdefs.
2839 No code changes.
2840
2841 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2842
2843 * process.h: Set up GnuTLS support.
2844
2845 * process.c (make_process, Fstart_process)
2846 (read_process_output, send_process): Set up GnuTLS support for
2847 process input/output file descriptors.
2848
2849 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2850
2851 * gnutls.c: The source code for GnuTLS support in Emacs.
2852
2853 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2854
2855 * config.in: Set up GnuTLS support.
2856
2857 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2858 (obj, LIBES): Set up GnuTLS support.
2859
2860 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
2861
2862 * w32.c (get_emacs_configuration_options): Fix previous change.
2863
2864 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
2865
2866 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2867 alive before using it (Bug#6977).
2868
2869 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2870
2871 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2872
2873 * dispextern.h: EMACS_INT/int fixup.
2874
2875 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2876 fixup.
2877
2878 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2879
2880 2010-09-25 Eli Zaretskii <eliz@gnu.org>
2881
2882 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2883 (Fselect_window, window_scroll_pixel_based)
2884 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2885 Use EMACS_INT for buffer positions.
2886
2887 * textprop.c (validate_interval_range, interval_of)
2888 (property_change_between_p, Fadd_text_properties)
2889 (set_text_properties_1, Fremove_text_properties)
2890 (Fremove_list_of_text_properties, Ftext_property_any)
2891 (Ftext_property_not_all, copy_text_properties)
2892 (text_property_list, extend_property_ranges)
2893 (verify_interval_modification): Use EMACS_INT for buffer
2894 positions.
2895
2896 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2897 for buffer positions.
2898
2899 * process.c (read_process_output, send_process)
2900 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2901 and string positions and size.
2902
2903 * print.c (print_object, print_string, strout): Use EMACS_INT for
2904 string indices.
2905
2906 * minibuf.c (string_to_object): Use EMACS_INT for string position
2907 and size.
2908
2909 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2910
2911 * lread.c <read_from_string_index, read_from_string_index_byte>
2912 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2913 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2914 buffer positions and string length.
2915
2916 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2917 EMACS_INT.
2918 (echo_truncate, adjust_point_for_property, read_char)
2919 (gen_help_event, make_lispy_event, modify_event_symbol)
2920 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2921 for buffer positions and string length.
2922
2923 * keyboard.h (gen_help_event): Adjust prototype.
2924
2925 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2926
2927 * commands.h <last_point_position>: Declare EMACS_INT.
2928
2929 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2930 (truncate_echo_area): Accept EMACS_INT argument.
2931
2932 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2933
2934 * lisp.h (truncate_echo_area): Adjust prototype.
2935
2936 * composite.c (composition_adjust_point): Return EMACS_INT.
2937
2938 * composite.h (composition_adjust_point): Adjust prototype.
2939
2940 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
2941
2942 * process.c (Fmake_network_process): When arg :host is 'local,
2943 use address 127.0.0.1, not name "localhost". (Bug#6781)
2944
2945 2010-09-24 Eli Zaretskii <eliz@gnu.org>
2946
2947 * indent.c (Fcurrent_indentation, indented_beyond_p)
2948 (compute_motion): Use EMACS_INT for buffer position variables.
2949
2950 * lisp.h (indented_beyond_p): Adjust prototype.
2951
2952 * buffer.c (overlay_strings): Return EMACS_INT.
2953
2954 * buffer.h (overlay_strings): Adjust prototype.
2955
2956 * region-cache.c (pp_cache): Adjust format to arguments.
2957
2958 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
2959 (call_debugger): Use EMACS_INT for specpdl_size related variables.
2960 (verror): Use EMACS_INT for size of allocated buffer.
2961
2962 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
2963 positions.
2964
2965 * xdisp.c (redisplay_internal, try_window_id)
2966 (set_cursor_from_row, find_first_unchanged_at_end_row):
2967 Use EMACS_INT for buffer positions.
2968
2969 * dispextern.h (set_cursor_from_row): Adjust prototype.
2970
2971 * dispnew.c (increment_matrix_positions)
2972 (increment_row_positions, copy_glyph_row_contents)
2973 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
2974 positions.
2975
2976 * dispextern.h (mode_line_string, marginal_area_string)
2977 (increment_matrix_positions, increment_row_positions):
2978 Adjust prototypes.
2979
2980 * data.c (Faref, Faset): Use EMACS_INT for string length and
2981 positions.
2982
2983 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
2984 characters to insert.
2985
2986 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
2987 position and size.
2988
2989 * syntax.c (scan_words, update_syntax_table)
2990 (prev_char_comend_first, back_comment, skip_chars)
2991 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
2992 Use EMACS_INT for buffer and string positions.
2993
2994 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
2995
2996 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
2997 positions.
2998
2999 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3000
3001 * scroll.c (calculate_scrolling, line_ins_del)
3002 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3003 conversion.
3004
3005 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3006 (region_cache_backward, region_cache_forward)
3007 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3008 conversion.
3009
3010 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3011
3012 * eval.c (verror): Fix EMACS_INT/int conversion.
3013
3014 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
3015 (print_preprocess, print_check_string_charset_prop)
3016 (print_object): Fix EMACS_INT/int conversion.
3017
3018 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3019
3020 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3021
3022 * callproc.c (Fcall_process): Use EMACS_INT for count of
3023 characters read from the subprocess.
3024
3025 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3026 positions.
3027 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3028 positions.
3029
3030 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3031 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3032 length.
3033 (advance_to_char_boundary, Fset_buffer_multibyte)
3034 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3035 (overlay_touches_p, record_overlay_string, overlay_strings)
3036 (recenter_overlay_lists, fix_start_end_in_overlays)
3037 (modify_overlay, Fmove_overlay, report_overlay_modification)
3038 (evaporate_overlays): Use EMACS_INT for buffer positions.
3039
3040 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3041 Adjust prototypes.
3042
3043 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3044 positions.
3045
3046 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3047 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3048 (Fsubstring_no_properties, substring_both, Ffillarray)
3049 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3050 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3051 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3052 (Fmd5): Use EMACS_INT for buffer and string positions and length
3053 variables and arguments.
3054
3055 * lisp.h (substring_both): Adjust prototype.
3056
3057 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
3058
3059 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3060 * w32fns.c (clipboard_sequence_fn): Don't declare.
3061 (globals_of_w32fns): Don't initialize it.
3062
3063 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
3064
3065 * syntax.c (back_comment): Detect the case where a 1-char comment
3066 starter is also the 2nd char of a 2-char comment ender.
3067
3068 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
3069
3070 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3071
3072 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3073
3074 * eval.c (verror): EMACS_INT/int cleanup.
3075
3076 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3077 unwind_protect more than 2GB worth of functions.
3078
3079 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3080
3081 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3082 string and avoid compiler warnings.
3083 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3084 all users.
3085
3086 * lread.c (oblookup): EMACS_INT/int cleanup.
3087
3088 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3089
3090 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3091
3092 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3093
3094 * lisp.h (clip_to_bounds): Adjust prototype.
3095
3096 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3097
3098 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3099
3100 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3101
3102 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3103
3104 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3105 cleanup.
3106
3107 * lisp.h: Change the definition of all marker.c functions that
3108 take and return buffer stuff to be EMACS_INT instead of int.
3109
3110 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3111 (buf_charpos_to_bytepos, bytepos_to_charpos)
3112 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3113 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3114 for all buffer positions.
3115
3116 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
3117
3118 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3119 (split_interval_right, find_interval, next_interval)
3120 (delete_node, delete_interval, interval_deletion_adjustment)
3121 (adjust_intervals_for_deletion, merge_interval_right)
3122 (merge_interval_left, graft_intervals_into_buffer)
3123 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3124
3125 * intervals.h (traverse_intervals): Update prototype.
3126
3127 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3128
3129 * indent.c (compute_motion): Use EMACS_INT for arguments to
3130 region_cache_forward.
3131
3132 * region-cache.c (struct boundary, struct region_cache):
3133 Use EMACS_INT for positions.
3134 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3135 (delete_cache_boundaries, set_cache_region)
3136 (invalidate_region_cache, know_region_cache)
3137 (region_cache_forward, region_cache_backward, pp_cache):
3138 Use EMACS_INT for buffer positions.
3139
3140 * region-cache.h (know_region_cache, invalidate_region_cache)
3141 (region_cache_forward, region_cache_backward): Adjust prototypes.
3142
3143 * search.c (string_match_1, fast_c_string_match_ignore_case)
3144 (looking_at_1, scan_buffer, scan_newline)
3145 (find_next_newline_no_quit, find_before_next_newline)
3146 (search_command, trivial_regexp_p, search_buffer, simple_search)
3147 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3148 and string positions and length.
3149
3150 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3151 (find_before_next_newline): Adjust prototypes.
3152
3153 * editfns.c (transpose_markers, update_buffer_properties)
3154 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3155 (get_pos_property, Fconstrain_to_field)
3156 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3157 (Fchar_after, Fchar_before, Finsert_char)
3158 (Finsert_buffer_substring, Fcompare_buffer_substrings)
3159 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3160 Use EMACS_INT for buffer and string position variables.
3161 (Finsert_char): Protect against too large insertions.
3162
3163 * lisp.h (clip_to_bounds): Adjust prototype.
3164
3165 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3166 (balance_an_interval, split_interval_right, split_interval_left)
3167 (find_interval, next_interval, update_interval)
3168 (adjust_intervals_for_insertion, delete_node, delete_interval)
3169 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3170 (offset_intervals, merge_interval_right, merge_interval_left)
3171 (graft_intervals_into_buffer, adjust_for_invis_intang)
3172 (move_if_not_intangible, get_local_map, copy_intervals)
3173 (copy_intervals_to_string, compare_string_intervals)
3174 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
3175 and for interval tree size.
3176
3177 * intervals.h (traverse_intervals, split_interval_right)
3178 (split_interval_left, find_interval, offset_intervals)
3179 (graft_intervals_into_buffer, copy_intervals)
3180 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3181 (update_interval): Adjust prototypes.
3182
3183 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3184 Use EMACS_INT for buffer position variables and arguments.
3185
3186 * composite.c (get_composition_id, find_composition)
3187 (run_composition_function, compose_text)
3188 (composition_gstring_width, autocmp_chars)
3189 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3190 for buffer positions and string length variables and arguments.
3191
3192 * composite.h (get_composition_id, find_composition, compose_text)
3193 (composition_gstring_width): Adjust prototypes.
3194
3195 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3196
3197 * xdisp.c (store_mode_line_noprop, display_mode_element):
3198 Use EMACS_INT for string positions.
3199
3200 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3201 position arguments.
3202
3203 * intervals.h (get_property_and_range): Adjust prototype.
3204
3205 * character.c (parse_str_as_multibyte, str_as_multibyte)
3206 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3207 (string_count_byte8, string_escape_byte8, c_string_width)
3208 (strwidth, lisp_string_width, multibyte_chars_in_text):
3209 Use EMACS_INT for string length variables and arguments.
3210
3211 * character.h (parse_str_as_multibyte, str_as_multibyte)
3212 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3213 (c_string_width, strwidth, lisp_string_width):
3214 Adjust prototypes.
3215
3216 * font.c (font_intern_prop): Use EMACS_INT for string length
3217 variables.
3218
3219 * font.c (font_intern_prop): Use EMACS_INT for string length
3220 variables.
3221
3222 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3223 variables.
3224
3225 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3226 (Fmake_string): Protect against too large strings.
3227 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3228 (live_misc_p): Use ptrdiff_t instead of int for pointer
3229 differences.
3230 (string_bytes, check_sblock, check_string_free_list)
3231 (allocate_string_data, compact_small_strings, Fmake_string)
3232 (Fmake_bool_vector, make_string, make_unibyte_string)
3233 (make_multibyte_string, make_string_from_bytes)
3234 (make_specified_string_string, Fmake_list, Fmake_vector):
3235 Use EMACS_INT for string length variables and arguments.
3236 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3237 (Fpurecopy): Use EMACS_INT for string size.
3238 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3239 for vector size.
3240
3241 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3242 (make_string_from_bytes, make_specified_string_string)
3243 (make_pure_string, string_bytes, check_point_in_composition):
3244 Adjust prototypes.
3245
3246 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3247
3248 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3249 (check_translation): Use EMACS_INT for buffer positions and
3250 length.
3251
3252 * undo.c (record_marker_adjustment, record_delete)
3253 (record_change, record_point, record_insert)
3254 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3255 buffer positions.
3256
3257 * lisp.h (record_marker_adjustment, record_delete)
3258 (record_change, record_point, record_insert)
3259 (record_property_change, Fprimitive_undo): Adjust prototypes.
3260
3261 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
3262 Eli Zaretskii <eliz@gnu.org>
3263
3264 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3265
3266 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3267
3268 * minibuf.c (Fminibuffer_contents)
3269 (Fminibuffer_contents_no_properties)
3270 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3271 positions.
3272
3273 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3274 mark.
3275
3276 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3277 (allocate_string_data): Accept EMACS_INT for string length.
3278
3279 * editfns.c (Ffield_string, Ffield_string_no_properties)
3280 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3281 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3282 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3283 (Ffield_end): Use EMACS_INT for buffer positions.
3284
3285 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3286 point with mark.
3287
3288 * lisp.h (allocate_string_data, make_uninit_string)
3289 (make_uninit_multibyte_string, make_buffer_string)
3290 (make_buffer_string_both): Adjust prototypes.
3291
3292 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
3293
3294 * xml.c: Switch to GNU indentation.
3295 (make_dom): Change parse tree format to match xml.el.
3296 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3297 (Fxml_parse_string_internal): Rename from xml-parse-string.
3298
3299 2010-09-22 Kenichi Handa <handa@m17n.org>
3300
3301 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3302 only if we are not at a composition.
3303 (set_iterator_to_next): Give it->end_charpos to
3304 composition_compute_stop_pos.
3305 (set_iterator_to_next, next_element_from_buffer): Likewise.
3306
3307 * dispnew.c (buffer_posn_from_coords): Fix position when the
3308 current display element is a grapheme cluster in bidi-reordered
3309 region.
3310
3311 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3312
3313 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3314 the regions may overlap.
3315
3316 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
3317
3318 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3319
3320 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3321
3322 * emacs.c: Do not include sys/ioctl.h, not needed.
3323
3324 * doprnt.c: Do not include stdlib.h, config.h does it.
3325 Move #include before macro definition.
3326
3327 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3328
3329 * Makefile.in (temacs): Link using $(CC) not $(LD).
3330 (LD_FIRSTFLAG): Define using autoconf.
3331 (LD): Remove.
3332
3333 Remove HAVE_TERMIOS definitions.
3334 * s/usg5-4-common.h (HAVE_TERMIOS):
3335 * s/template.h (HAVE_TERMIOS):
3336 * s/gnu-linux.h (HAVE_TERMIOS):
3337 * s/darwin.h (HAVE_TERMIOS):
3338 * s/cygwin.h (HAVE_TERMIOS):
3339 * s/bsd-common.h (HAVE_TERMIOS):
3340 * s/aix4-2.h (HAVE_TERMIOS):
3341 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3342 defined on all non-MS platforms.
3343 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3344
3345 * xterm.c (xt_action_hook): Use const.
3346
3347 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
3348
3349 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3350 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3351 (gethostname) [!HAVE_SOCKETS]: Remove.
3352 (SOCK_REPLACE_HANDLE): Remove macro.
3353 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3354 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3355 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3356 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3357
3358 2010-09-18 Eli Zaretskii <eliz@gnu.org>
3359
3360 * deps.mk (xml.o): Add dependencies.
3361
3362 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3363 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
3364
3365 * bidi.c (bidi_paragraph_init): Accept an additional argument
3366 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3367 search back until a paragraph with a strong directional character
3368 is found, and use that to determine paragraph's base direction.
3369
3370 * dispextern.h (bidi_paragraph_init): Update prototype.
3371
3372 2010-09-17 Eli Zaretskii <eliz@gnu.org>
3373
3374 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3375 of w32api >= 3.15. (Bug#6989)
3376
3377 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3378
3379 * process.c (wait_reading_process_output): Don't message about
3380 accept-process-output unless the time limit really is zero.
3381
3382 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3383
3384 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3385 int/Lisp_Object mixup).
3386
3387 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3388
3389 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3390 not HELP.
3391
3392 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
3393
3394 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3395 bar's pixel width to Lisp (Bug#7048).
3396
3397 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3398
3399 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3400
3401 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3402
3403 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3404 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3405
3406 2010-09-17 Kenichi Handa <handa@m17n.org>
3407
3408 * ftfont.c (ftfont_check_otf): Fix previous change.
3409
3410 2010-09-14 Kenichi Handa <handa@m17n.org>
3411
3412 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3413 existence of GSUB or GPOS.
3414
3415 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3416
3417 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3418
3419 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3420
3421 * xml.c (parse_buffer): Rename to parse_string(), since that's
3422 what it does.
3423 (parse_string): Return nil when the document can't be parsed.
3424
3425 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
3426
3427 * xterm.c (get_current_vm_state): New function.
3428 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3429 want_fullscreen so set_wm_state calls are few (Bug#7013).
3430 (x_handle_net_wm_state): Move code to get_current_vm_state and
3431 call that function.
3432
3433 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
3434
3435 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3436
3437 2010-09-14 Kenichi Handa <handa@m17n.org>
3438
3439 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3440 we may use designation or locking-shift.
3441
3442 2010-09-14 Kenichi Handa <handa@m17n.org>
3443
3444 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3445 sequence when the source is multibyte.
3446
3447 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3448
3449 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3450 Don't make first argument optional. Doc fix.
3451
3452 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3453
3454 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3455 parameters for the doc string.
3456
3457 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3458
3459 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3460
3461 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3462
3463 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3464 (syms_of_fns): Don't defsubr Sy_or_n_p.
3465 * lisp.h: Don't declare Fy_or_n_p.
3466 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3467
3468 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3469
3470 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3471
3472 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3473
3474 * xml.c: New file.
3475 (Fhtml_parse_buffer): New function to interface to the libxml2
3476 html parsing function.
3477
3478 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
3479
3480 * biditype.h: Regenerate.
3481
3482 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3483
3484 * nsimage.m (ns_load_image): Check argument types.
3485
3486 * image.c: Remove all uses of gcpro.
3487 (xpm_load): Check all lisp types.
3488 (pbm_load): Likewise.
3489 (png_load): Likewise.
3490 (jpeg_load): Likewise.
3491 (tiff_load): Likewise.
3492 (gif_load): Likewise.
3493 (imagemagick_load_image): Likewise.
3494 (imagemagick_load): Likewise.
3495 (svg_load): Likewise.
3496 (gs_load): Likewise.
3497
3498 2010-09-04 Eli Zaretskii <eliz@gnu.org>
3499
3500 * w32uniscribe.c (uniscribe_shape): Update commentary.
3501 Don't try to reorder grapheme clusters, since LGSTRING should always
3502 hold them in the logical order.
3503 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3504 return glyph codes in the logical order.
3505
3506 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3507
3508 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
3509 (imagemagick_load_image): Fix type mismatch.
3510 (Fimagemagick_types): Likewise. Doc fix.
3511
3512 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3513
3514 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3515
3516 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3517
3518 * xselect.c: Remove declaration of cut-buffer objects and functions.
3519 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3520 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3521 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3522 (Fx_rotate_cut_buffers_internal): Remove.
3523 (syms_of_xselect): Remove defsubr of above.
3524 Remove intern of QCUT_BUFFERn.
3525
3526 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3527
3528 * cmds.c (Vblink_paren_function): Remove.
3529 (internal_self_insert): Make it insert N chars at a time.
3530 Don't call blink-paren-function.
3531 (Fself_insert_command): Adjust accordingly.
3532 (syms_of_cmds): Don't declare blink-paren-function.
3533
3534 2010-08-31 Kenichi Handa <handa@m17n.org>
3535
3536 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3537 characters.
3538
3539 * term.c (encode_terminal_code): Fix the previous change.
3540 (produce_glyphs): Don't set it->char_to_display here.
3541 Don't handle unibyte-display-via-language-environment here.
3542 (produce_special_glyphs): Set temp_it.char_to_display before
3543 calling produce_glyphs.
3544
3545 * xdisp.c (get_next_display_element): Set it->char_to_display
3546 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3547 characters.
3548 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3549 calling PRODUCE_GLYPHS.
3550 (append_space_for_newline): Save and store it->char_to_display.
3551 Set it->char_to_display before calling PRODUCE_GLYPHS.
3552 (extend_face_to_end_of_line): Set it->char_to_display before
3553 calling PRODUCE_GLYPHS.
3554 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3555 character to its byte value.
3556 (get_char_glyph_code): New function.
3557 (produce_stretch_glyph): Set it2.char_to_display too before
3558 calling x_produce_glyphs.
3559 (x_produce_glyphs): Simplify by using the same code for ASCII and
3560 non-ASCII characters. Don't set it->char_to_display here.
3561 Don't handle unibyte-display-via-language-environment here. For a
3562 character of no glyph, use font->space_width instead of FONT_WIDTH.
3563
3564 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3565
3566 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3567
3568 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
3569
3570 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3571
3572 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3573
3574 * marker.c (Fcopy_marker): Make the first arg optional.
3575
3576 2010-08-30 Kenichi Handa <handa@m17n.org>
3577
3578 * composite.c (composition_update_it): Fix computing of
3579 cmp_it->width.
3580
3581 2010-08-29 Kenichi Handa <handa@m17n.org>
3582
3583 * term.c (encode_terminal_code): Encode byte chars to the
3584 corresponding bytes.
3585
3586 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3587
3588 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3589
3590 2010-08-26 Kenichi Handa <handa@m17n.org>
3591
3592 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3593 on calling composition_compute_stop_pos.
3594
3595 2010-08-25 Kenichi Handa <handa@m17n.org>
3596
3597 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3598 :otf.
3599
3600 * composite.c (composition_compute_stop_pos): Don't break
3601 composition at PT.
3602 (composition_reseat_it): Likewise. Fix calculation of character
3603 position starting a composition.
3604 (Fcomposition_get_gstring): Don't limit the number of components
3605 for automatic composition.
3606
3607 2010-08-25 Kenichi Handa <handa@m17n.org>
3608
3609 * composite.c (composition_compute_stop_pos): In forward search,
3610 pay attention to the possibility that some character after ENDPOS
3611 will be composed with charactrs before ENDPOS.
3612
3613 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
3614
3615 * keyboard.c (command_loop_1): Don't clobber primary selection
3616 during handle-switch-frame (Bug#6872).
3617
3618 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
3619
3620 * dbusbind.c: Accept UNIX domain sockets as bus address.
3621 (Fdbus_close_bus): New function.
3622 (Vdbus_registered_buses): New variable.
3623 (xd_initialize): Implement string as bus address.
3624 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3625 (Fdbus_get_unique_name, Fdbus_call_method)
3626 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3627 (Fdbus_method_error_internal, Fdbus_send_signal)
3628 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3629 check. This is done in xd_initialize_bus. Adapt doc string, if
3630 necessary.
3631 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3632 Vdbus_registered_buses.
3633 (Vdbus_registered_objects_table): Create hash.
3634
3635 2010-08-22 Juri Linkov <juri@jurta.org>
3636
3637 * keyboard.c (Fexecute_extended_command): Move reading a command name
3638 with `completing-read' to a new Elisp function `read-extended-command'.
3639 Call it to read a command to `function' (bug#5364, bug#5214).
3640
3641 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3642
3643 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3644
3645 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
3646
3647 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3648 instead of SAFE_ALLOCA.
3649
3650 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3651
3652 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3653 (Bug#6214).
3654
3655 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3656
3657 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3658
3659 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3660
3661 * doc.c (Fsnarf_documentation): Initialize skip_file before
3662 build-files test.
3663
3664 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
3665
3666 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3667 New definitions.
3668 (HAVE_TERMIO): Remove.
3669
3670 2010-08-22 Eli Zaretskii <eliz@gnu.org>
3671
3672 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3673
3674 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3675 for w32.
3676
3677 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3678 it's done in nt/config.nt.
3679
3680 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3681
3682 * unexcoff.c (report_error, make_hdr, write_segment)
3683 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3684 Convert argument lists and prototypes to ANSI C.
3685 (make_hdr, write_segment): Remove unused variables.
3686 (unexec): Remove commented-out line. Initialize `new' to shut up
3687 compiler warnings.
3688
3689 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3690
3691 Simplify termio code.
3692 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3693 HAVE_TERMIO code is obsolete.
3694 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3695 * systty.h: Do not define HAVE_TCATTR.
3696 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3697 Do not define EMACS_HAVE_TTY_PGRP. Only define
3698 EMACS_GET_TTY_PGRP for !DOS_NT.
3699 * sysdep.c: Include sysselect.h unconditionally. Do not include
3700 sys/ioctl.h and termios.h, systty.h does it.
3701 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
3702 (init_baud_rate): Remove HAVE_TERMIO code.
3703 (child_setup_tty): Remove HAVE_TERMIO code.
3704 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3705 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3706 (new_ltchars, new_tchars): Remove, unused.
3707 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
3708 code. Remove special casing for __mips__, it was a no-op.
3709 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
3710 (init_sys_modes): Remove HPUX special case.
3711 * process.c: Include stdlib.h unconditionally. Do not include
3712 fcntl.h, systty.h does it. Remove conditional code for
3713 HAVE_SERIAL, it is always true.
3714 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3715 always true when SIGNALS_VIA_CHARACTERS is true.
3716 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3717 !WINDOWSNT means HAVE_TERMIOS.
3718 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3719 conditional, which is true for all HAVE_TERMIOS systems.
3720 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3721 instead of HAVE_TERMIOS.
3722 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3723 EMACS_HAVE_TTY_PGRP.
3724 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3725 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3726 anyway.
3727
3728 2010-08-21 Eli Zaretskii <eliz@gnu.org>
3729
3730 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3731 mirroring pixel positions.
3732
3733 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3734
3735 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3736 write only.
3737 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3738 malloc_sbrk_used, nothing uses them.
3739
3740 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3741 defined, unconditionally defined in lisp.h.
3742
3743 * term.c: Do not include <termios.h>, systty.h does it.
3744
3745 * s/unixware.h (HAVE_TCATTR):
3746 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3747 systty.h defines it when HAVE_TERMIOS is defined.
3748
3749 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3750
3751 * dispnew.c (buffer_posn_from_coords): Fix last change for text
3752 terminals: add one-character offset for R2L lines.
3753
3754 * emacs.c <emacs_version>: Add a comment regarding
3755 msdos/mainmake.v2's dependency on the syntax of this declaration.
3756
3757 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3758
3759 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3760 position for R2L lines by mirroring the pixel position wrt the
3761 text are box. Improve commentary.
3762
3763 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3764
3765 * image.c (imagemagick_clear_image): Remove debugging output.
3766
3767 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3768
3769 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3770 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3771 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3772 self-insert-face.
3773 (syms_of_cmds): Initialize the new vars.
3774
3775 2010-08-19 Jason Rumney <jasonr@gnu.org>
3776
3777 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3778
3779 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3780
3781 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3782
3783 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3784
3785 2010-08-18 Eli Zaretskii <eliz@gnu.org>
3786
3787 * xterm.c (x_draw_bar_cursor):
3788 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3789 R2L, draw the bar cursor on its right rather than on its left.
3790
3791 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3792
3793 * eval.c (Fdefmacro): Only obey one declaration.
3794
3795 * casefiddle.c (casify_region): Setup gl_state.
3796
3797 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3798
3799 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3800
3801 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3802
3803 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
3804
3805 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
3806
3807 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3808 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3809 QPRIMARY => NXPrimaryPboard.
3810 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3811 NXPrimaryPboard => QPRIMARY.
3812 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3813 NXSecondaryPboard = SecondarySelection.
3814 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3815
3816 2010-08-18 Joakim Verona <joakim@verona.se>
3817
3818 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3819 defined:
3820 (imagemagick_image_p): New function to test for ImageMagic image.
3821 (imagemagick_load): New function to load ImageMagick image.
3822 (imagemagick_load_image): New function, helper for imagemagick_load.
3823 (imagemagick-types): New function.
3824 (Qimagemagick): New Lisp_object.
3825 (imagemagick-render-type): New variable, decides which renderer to use.
3826
3827 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3828
3829 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3830 is a string.
3831
3832 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3833
3834 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3835 x_set_tool_bar_position handler.
3836
3837 2010-08-17 Eli Zaretskii <eliz@gnu.org>
3838
3839 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3840 x_set_tool_bar_position handler, needed to support changes from
3841 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3842
3843 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3844
3845 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3846 declaration (Bug#6863).
3847 (syms_of_nsselect): Don't intern QPRIMARY.
3848
3849 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3850
3851 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3852
3853 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
3854
3855 * keyboard.c (command_loop_1): Avoid setting selection twice,
3856 since it's done in deactivate-mark as well.
3857 (Vselect_active_regions): Change default to t. Replace `lazy'
3858 with non-default value `only', meaning only set PRIMARY for
3859 temporarily active regions.
3860
3861 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3862 select-active-regions.
3863
3864 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3865
3866 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3867 isn't a string.
3868
3869 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3870
3871 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3872
3873 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3874
3875 * keyboard.c (parse_tool_bar_item): malloc buf.
3876 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3877 new_lbl (Bug#6855).
3878
3879 2010-08-14 Eli Zaretskii <eliz@gnu.org>
3880
3881 * xterm.c (x_draw_stretch_glyph_string):
3882 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3883 the cursor on the right edge of the stretch glyph.
3884
3885 * xdisp.c (window_box_right_offset, window_box_right):
3886 Fix commentary.
3887
3888 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3889 direction when point is inside a run of whitespace characters.
3890
3891 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3892
3893 2010-08-14 Jason Rumney <jasonr@gnu.org>
3894
3895 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3896
3897 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
3898
3899 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3900
3901 2010-08-13 Jason Rumney <jasonr@gnu.org>
3902
3903 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3904 (MessageBoxW_Proc): New function typedef.
3905 (unicode-message-box): New function pointer.
3906 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3907
3908 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3909
3910 * frame.h (Qtool_bar_position): Declare.
3911
3912 * xfns.c (Fx_create_frame): Call x_default_parameter for
3913 Qtool_bar_position.
3914
3915 2010-08-13 Eli Zaretskii <eliz@gnu.org>
3916
3917 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3918 (report_error, report_error_1): Ditto.
3919 (write_segment): Remove "#if 0" unused code.
3920 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3921 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3922 (start_of_text): Remove unused function (was used only if NO_REMAP
3923 was NOT defined).
3924
3925 * msdos.c (IT_set_face): Fix format string to match argument
3926 types.
3927 (IT_write_glyphs, IT_note_mode_line_highlight)
3928 (IT_set_frame_parameters): Remove unused variables.
3929 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3930 (IT_set_terminal_modes): Disambiguate expression in if clause.
3931 (Fmsdos_remember_default_colors): Return Qnil.
3932 (IT_set_frame_parameters): Add parens to disambiguate boolean
3933 expression for logging the cursor type to termscript.
3934 (keyboard_layout_list, keypad_translate_map)
3935 (grey_key_translate_map): Add braces in inner initializers.
3936 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3937 (dos_rawgetc): Remove unused label.
3938 (XMenuActivate): Add braces to remove ambiguous `else'.
3939 (dos_ttraw): Always return a value.
3940 (spawnve): Declare.
3941 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3942
3943 * dosfns.h (x_set_title): Declare.
3944
3945 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
3946 Remove unused variables.
3947
3948 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
3949 variables.
3950 (init_dosfns): Declare get_lim_data.
3951 (system_process_attributes): Declare Fget_internal_run_time.
3952
3953 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
3954 list to be consistent with menu.h.
3955
3956 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
3957 warnings due to mixing of "char *" and "const char *".
3958
3959 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3960
3961 Introduce a new comment style "c" flag.
3962 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
3963 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
3964 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
3965 (syntax_prefix_flag_p): New function.
3966 (Fstring_to_syntax): Understand new "c" flag.
3967 (Finternal_describe_syntax_value): Recognize new flag; use the
3968 SYNTAX_FLAGS_* macros.
3969 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
3970 comment style to accomodate the new styles.
3971 (back_comment, forw_comment, Fforward_comment, scan_lists)
3972 (scan_sexps_forward): Update code to obey the new comment style flag.
3973
3974 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
3975
3976 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
3977
3978 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
3979
3980 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
3981 first.
3982 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3983
3984 * gtkutil.h (xg_check_special_colors): Declare.
3985
3986 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
3987 (xg_create_frame_widgets): Connect theme name changes to
3988 style_changed_cb.
3989
3990 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
3991 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
3992 (x_term_init): Use char[] display_opt and name_opt instead of
3993 string literal. file is const char*.
3994
3995 * xsmfns.c (NOSPLASH_OPT): Change to char[].
3996 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
3997 props. Free them at the end.
3998
3999 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4000
4001 * xrdb.c (get_system_app): Make path const and use char *p for
4002 non-const char.
4003
4004 * xmenu.c (Fx_popup_dialog): error_name is const char*.
4005 (xmenu_show): error parameter is const char **. pane_string is const
4006 char *.
4007 (button_names): Is const char *.
4008 (xdialog_show): error_name and pane_string is const.
4009
4010 * process.h (synch_process_death): Is const char*.
4011
4012 * w32menu.c (w32_menu_show):
4013 * nsmenu.m (ns_menu_show): error parameter is const char **.
4014
4015 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4016 is const char **.
4017
4018 * menu.c (Fx_popup_menu): error_name is const.
4019
4020 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4021 with unsigned char and XtPointer with void *.
4022
4023 * gtkutil.h: Replace widget_value with struct _widget_value.
4024 (enum button_type, struct _widget_value): Remove and use the one from
4025 keyboard.h.
4026
4027 * gtkutil.c (get_utf8_string): Always return an allocated string.
4028 Parameter is const.
4029 (create_dialog, xg_create_one_menuitem, create_menus)
4030 (xg_item_label_same_p, xg_update_menu_item): Free result from
4031 get_utf8_string.
4032 (xg_separator_p, xg_item_label_same_p): label is const.
4033
4034 * font.h (font_open_by_name): Make name const.
4035
4036 * font.c (font_open_by_name): Make name const.
4037
4038 * floatfns.c (matherr): Use a const char* variable for x->name.
4039
4040 * emacs.c (main): Pass char[] to putenv instead of literal.
4041
4042 * callproc.c (synch_process_death): Make const.
4043 (Fcall_process): Make signame const.
4044
4045 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4046 (addDisplayItemWithImage): Use const char*.
4047
4048 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4049 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4050
4051 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4052
4053 * keyboard.h (_widget_value): name, value and key are const char*.
4054
4055 * unexmacosx.c (unexec_error): Use const char *.
4056
4057 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4058
4059 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4060 (font_parse_name, font_open_by_name):
4061 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4062 (font_parse_name, font_open_by_name): Remove const.
4063
4064 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4065
4066 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4067 definition.
4068
4069 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4070 * m/amdx86-64.h: Likewise.
4071 * m/arm.h: Likewise.
4072 * m/hp800.h: Likewise.
4073 * m/ia64.h: Likewise.
4074 * m/ibmrs6000.h: Likewise.
4075 * m/ibms390.h: Likewise.
4076 * m/intel386.h: Likewise.
4077 * m/iris4d.h: Likewise.
4078 * m/m68k.h: Likewise.
4079 * m/macppc.h: Likewise.
4080 * m/mips.h: Likewise.
4081 * m/sh3.h: Likewise.
4082 * m/sparc.h: Likewise.
4083 * m/template.h: Likewise.
4084 * m/vax.h: Likewise.
4085 * m/xtensa.h: Likewise.
4086 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4087 WORDS_BIG_ENDIAN.
4088 * lisp.h: Likewise.
4089 * md5.c: Likewise.
4090 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4091
4092 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4093
4094 Use const char* instead of char*.
4095 Reduce the number of warnings with -Wwrite-strings.
4096 * xrdb.c (get_environ_db, get_system_name):
4097 * unexelf.c (find_section):
4098 * term.c (string_cost, string_cost_one_line, per_line_cost)
4099 (get_named_tty, init_tty):
4100 * sysdep.c (sys_subshell):
4101 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4102 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4103 * search.c (Freplace_match):
4104 * process.c (Fmake_network_process, send_process, init_process):
4105 * lread.c (Fload, init_lread):
4106 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4107 * keyboard.c (parse_tool_bar_item, struct event_head):
4108 * gtkutil.h (xg_get_font_name):
4109 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4110 (make_widget_for_menu_item, make_menu_item, create_menus)
4111 (xg_make_tool_item):
4112 * font.c (parse_matrix, font_parse_name):
4113 * floatfns.c (rounding_driver, float_error_fn_name):
4114 * filelock.c (get_boot_time_1, lock_file_1):
4115 * fileio.c (barf_or_query_if_file_exists, check_writable):
4116 * editfns.c (get_system_name, get_operating_system_release)
4117 (Fencode_time, Fset_time_zone_rule):
4118 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4119 * buffer.c (defvar_per_buffer): Use const.
4120
4121 2010-08-08 Kenichi Handa <handa@m17n.org>
4122
4123 * charset.c: Include <stdlib.h>.
4124 (struct charset_sort_data): New struct.
4125 (charset_compare): New function.
4126 (Fsort_charsets): New function.
4127 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4128
4129 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4130 number in CTEXT extended segment.
4131
4132 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4133
4134 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4135 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4136
4137 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4138
4139 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4140 (Fhash_table_size): Fix typos in docstrings.
4141 (Fmake_hash_table): Doc fix.
4142
4143 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4144
4145 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4146 Doc fix (bug#5625).
4147
4148 2010-08-08 Ken Brown <kbrown@cornell.edu>
4149
4150 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4151 the MSDOS definition.
4152
4153 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4154
4155 Use const char* instead of char*.
4156 * xterm.c (x_create_toolkit_scroll_bar):
4157 * xfont.c (xfont_list_pattern):
4158 * xfns.c (x_default_scroll_bar_color_parameter)
4159 (xic_create_fontsetname, x_default_font_parameter)
4160 (x_screen_planes):
4161 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4162 (store_mode_line_string, decode_mode_spec, display_string):
4163 * menu.c (digest_single_submenu):
4164 * keymap.h (initial_define_key, initial_define_lispy_key):
4165 * keymap.c (initial_define_key, initial_define_lispy_key):
4166 * image.c (image_error, image_keyword):
4167 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4168 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4169 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4170 (ftfont_list, ftfont_match):
4171 * frame.c (frame_parm_table):
4172 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4173 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4174 (font_add_log, font_deferred_log):
4175 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4176 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4177 (font_add_log, font_deferred_log):
4178 * emacs.c (argmatch):
4179 * dispextern.h (struct it):
4180 * coding.c (ENCODE_DESIGNATION):
4181 * charset.c (define_charset_internal): Use const.
4182
4183 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4184
4185 * xrdb.c: Remove include guard.
4186 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
4187 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4188 realloc->xrealloc instead of using #defines.
4189
4190 2010-08-08 Eli Zaretskii <eliz@gnu.org>
4191
4192 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4193 * editfns.c (Fline_beginning_position, Fline_end_position):
4194 State in the doc strings that start and end of line are in the
4195 logical order.
4196
4197 * xdisp.c (display_line): Move the handling of overlay arrow after
4198 the call to find_row_edges. (Bug#6699)
4199
4200 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4201
4202 * keyboard.c (command_loop_1):
4203 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4204
4205 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4206
4207 * insdel.c (prepare_to_modify_buffer): Save active region text to
4208 Vsaved_region_selection.
4209
4210 * xselect.c (QPRIMARY): Move to keyboard.c.
4211
4212 * keyboard.c (Vselect_active_regions): Move from simple.el.
4213 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4214 (command_loop_1): Set window selection prior to deactivating the mark.
4215
4216 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
4217
4218 * alloc.c (lisp_malloc):
4219 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4220 * charset.h (emacs_mule_charset):
4221 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4222 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4223 (bitch_at_user):
4224 * lisp.h (Fcheck_coding_system, Fget_text_property)
4225 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4226 Remove duplicate declarations.
4227
4228 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4229
4230 * process.c: Simplify include logic.
4231
4232 * keyboard.h (quit_char): Add declaration.
4233 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
4234 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4235 Add declarations.
4236 * sysdep.c:
4237 * w32.c: Remove the above declarations.
4238
4239 Remove extern declarations in .c files, .h files have them.
4240 * xterm.c:
4241 * xdisp.c:
4242 * msdos.c:
4243 * image.c:
4244 * gtkutil.c:
4245 * fileio.c:
4246 * eval.c: Remove declarations.
4247
4248 * frame.c (frame_params): Make const.
4249
4250 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4251
4252 * emacs.c (emacs_copyright, emacs_version): Make static.
4253 (Vinitial_window_system, Vauto_save_list_file_name)
4254 (Vinhibit_redisplay): Remove declarations.
4255 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4256 for AIX.
4257
4258 Use const for some arrays and functions.
4259 * xterm.h (xg_set_icon_from_xpm_data):
4260 * xfns.c (xg_set_icon_from_xpm_data):
4261 * term.c (fkeys):
4262 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4263 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4264 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4265 (frame.c frame_parms):
4266 * emacs-icon.h (gnu_xpm_bits):
4267 * callint.c (callint_argfuns): Use const.
4268
4269 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4270
4271 * sysdep.c: Move include term.h last of includes (Bug#6812).
4272
4273 2010-08-06 Eli Zaretskii <eliz@gnu.org>
4274
4275 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4276
4277 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4278
4279 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4280
4281 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4282
4283 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4284
4285 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4286
4287 * xterm.h (x_get_focus_frame): Declare.
4288
4289 * keyboard.h (poll_for_input_1): Unconditionally declare.
4290
4291 * nsterm.h (x_set_menu_bar_lines): Declare.
4292
4293 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4294
4295 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4296
4297 * window.c: Include menu.h.
4298
4299 * unexmacosx.c (print_region_list, print_regions)
4300 (build_region_list, find_emacs_zone_regions)
4301 (unexec_regions_merge, read_load_commands, dump_it)
4302 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4303
4304 * term.c: Check HAVE_SYS_IOCTL_H.
4305
4306 * sysdep.c: Check HAVE_TERM_H.
4307
4308 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
4309
4310 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4311 (ns_ring_bell, ns_defined_color, hide_hourglass)
4312 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4313 Convert to ANSI C prototypes.
4314 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4315 before code.
4316
4317 * nsterm.h : Include sysselect.h.
4318 (x_sync, x_get_focus_frame, x_set_mouse_position)
4319 (x_set_mouse_pixel_position, x_make_frame_visible)
4320 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4321 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4322 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4323 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
4324 Declare.
4325
4326 * nsmenu.m (popup_activated, name_is_separator)
4327 (syms_of_nsmenu): Convert to ANSI C prototypes.
4328 (runMenuAt): Prototypes and move declarations before code.
4329
4330 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4331
4332 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4333 prototypes.
4334
4335 * nsfns.m (have_menus_p, ns_display_info_for_name)
4336 (x_set_cursor_type, ns_appkit_version_str)
4337 (ns_appkit_version_int, ns_do_applescript)
4338 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4339 (syms_of_nsfns): Convert to ANSI C prototypes.
4340
4341 * menu.h (x_set_menu_bar_line): Declare.
4342 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4343
4344 * lisp.h (fmod_float): Declare.
4345
4346 * image.c (xpm_scan, xpm_make_color_table_v)
4347 (xpm_put_color_table_v, xpm_get_color_table_v)
4348 (xpm_make_color_table_h, xpm_put_color_table_h)
4349 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4350 (xpm_load): Convert to ANSI C prototypes.
4351
4352 * emacs.c: Include nsterm.h if HAVE_NS.
4353
4354 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4355
4356 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4357
4358 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4359 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4360 (socket_options): Use const char* for name.
4361
4362 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4363
4364 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4365
4366 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4367 Don't declare xmalloc_widget_value and digest_single_submenu.
4368
4369 * w32font.c (Qlatin): Remove declaration.
4370
4371 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4372
4373 * dired.c (compile_pattern): Restore declaration.
4374
4375 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4376
4377 Remove extern declarations in .c files, .h files have them.
4378 * data.c:
4379 * dired.c:
4380 * editfns.c:
4381 * filelock.c:
4382 * fns.c:
4383 * font.c:
4384 * fontset.c:
4385 * frame.c:
4386 * fringe.c:
4387 * ftfont.c:
4388 * gtkutil.c:
4389 * indent.c:
4390 * keyboard.c:
4391 * keymap.c:
4392 * lread.c:
4393 * menu.c:
4394 * print.c:
4395 * search.c:
4396 * sound.c:
4397 * window.c:
4398 * xdisp.c:
4399 * xfaces.c:
4400 * xfns.c:
4401 * xfont.c:
4402 * xftfont.c:
4403 * xmenu.c:
4404 * xterm.c: Remove declarations.
4405
4406 Cleanup syssignal.h.
4407 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4408 (main_thread): Move down to remove #ifdef.
4409 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4410 Remove conditional definition following unconditional ones.
4411
4412 * lisp.h: Remove HAVE_SHM code, unused.
4413 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4414 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4415 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4416 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4417 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4418 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4419 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4420 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4421 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4422 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4423 (Qwindow_scroll_functions, Vafter_load_alist)
4424 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4425 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4426 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4427 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4428 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4429 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4430 (initial_argv, last_nonmenu_event, load_in_progress)
4431 (noninteractive_need_newline, scroll_margin): Add declarations.
4432
4433 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4434 Remove declarations, menu.h has them.
4435 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4436 (Vinput_method_function, Qinput_method_function)
4437 (Qevent_symbol_element_mask, last_event_timestamp):
4438 * dispextern.h (Voverflow_newline_into_fringe):
4439 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4440 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4441 (syms_of_w32font, syms_of_nsfont):
4442 * fontset.h (find_font_encoding, Qlatin):
4443 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4444 (Vtool_bar_mode, set_frame_menubar):
4445 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4446 * xterm.h (Qx_gtk_map_stock):
4447 * keymap.h (meta_prefix_char): Add declarations.
4448
4449 * term.c: Remove dead code.
4450
4451 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4452 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4453 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4454 which is what was there before BSD_PGRPS was removed.
4455
4456 2010-08-05 Eli Zaretskii <eliz@gnu.org>
4457
4458 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4459
4460 * unexcoff.c: Renamed from unexec.c.
4461
4462 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4463
4464 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4465
4466 2010-08-03 Johan Bockgård <bojohan@gnu.org>
4467
4468 * data.c (Flocal_variable_p): Handle variable aliases correctly.
4469 (Bug#6744)
4470
4471 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4472
4473 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4474 to TRUE if depth of screen is < 16.
4475
4476 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4477 USE_GTK_TOOLTIP.
4478 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4479 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4480 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
4481 USE_GTK_TOOLTIP.
4482 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4483
4484 * xterm.h (USE_GTK_TOOLTIP): New define.
4485 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4486
4487 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4488 to Control-D (Bug#6771).
4489
4490 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
4491
4492 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4493 Wording by Drew Adams <drew.adams@oracle.com>.
4494
4495 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4496
4497 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4498 ttip_lbl.
4499
4500 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4501 calling gtk_widget_queue_draw.
4502 (x_free_frame_resources): Call xg_free_frame_widgets.
4503
4504 * xfns.c (x_gtk_use_system_tooltips): New variable.
4505 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4506 new gtkutil tooltip functions to show the tooltip.
4507 (Fx_hide_tip): Call xg_hide_tooltip.
4508 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4509
4510 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4511 (xg_show_tooltip, xg_hide_tooltip): Declare.
4512
4513 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
4514 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4515 New functions.
4516 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4517 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4518 Remove code that is commented out.
4519
4520 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4521
4522 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4523
4524 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
4525
4526 * xselect.c (x_own_selection): Use list4.
4527
4528 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4529
4530 * buffer.c (Qwindow): Do not define, already defined in data.c.
4531 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4532
4533 2010-07-29 Chad Brown <yandros@mit.edu>
4534
4535 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4536 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4537 * config.in: Undef HAVE_DIRENT_H.
4538 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
4539 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
4540
4541 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4542
4543 Rename s/usg5-4.h -> s/usg5-4-common.h.
4544 * s/usg5-4.h: Rename file to ...
4545 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4546 * s/unixware.h:
4547 * s/sol2-6.h:
4548 * s/irix6-5.h: Update includes accordingly.
4549
4550 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4551
4552 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4553
4554 * xterm.h (struct x_output): Add toolbar_top_height,
4555 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4556 Remove toolbar_height.
4557 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
4558 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4559 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4560 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4561
4562 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4563
4564 * xfns.c (x_set_tool_bar_position): New function.
4565 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4566 (x_frame_parm_handlers): Add x_set_tool_bar_position.
4567 (syms_of_xfns): If USE_GTK, provide move-toolbar.
4568
4569 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4570 and FRAME_TOOLBAR_LEFT_WIDTH.
4571
4572 * gtkutil.h (xg_change_toolbar_position): Declare.
4573
4574 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4575 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4576 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4577 (xg_create_frame_widgets): Create a hobox for placing widgets
4578 vertically. Use gtk_box_pack_start.
4579 (xg_height_or_width_changed): Rename from xg_height_changed.
4580 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4581 (xg_update_frame_menubar, free_frame_menubar): Change to
4582 xg_height_or_width_changed.
4583 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4584 size correctly. Remove hardcoded 4, instead use handlebox size -
4585 toolbar size.
4586 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
4587 size correctly. Use handlebox size + toolbar size as additional size.
4588 (xg_pack_tool_bar): POS is a new parameter.
4589 Set orientation of tool bar based on pos.
4590 Only make handlebox_widget if NULL.
4591 Check if tool bar goes to vbox or hbox depending on pos.
4592 (xg_update_tool_bar_sizes): New function.
4593 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
4594 height, call xg_update_tool_bar_sizes instead.
4595 (free_frame_tool_bar): Remove from hbox or vbox depending on
4596 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4597 (xg_change_toolbar_position): New function.
4598
4599 * frame.h (struct frame): Add tool_bar_position.
4600 (Qbottom): Declare.
4601
4602 * frame.c (Qtool_bar_position): New variable.
4603 (make_frame): Set tool_bar_position to Qtop.
4604 (frame_parms): Add tool-bar-position.
4605 (x_report_frame_params): Store tool_bar_position.
4606 (x_set_fringe_width): Reset wm size hint after fringe changes.
4607
4608 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4609
4610 Make lisp_time_argument declaration work on all systems.
4611 * lisp.h (lisp_time_argument): Move declaration ...
4612 * systime.h (lisp_time_argument): ... here
4613 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4614
4615 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4616
4617 * vm-limit.c (POINTER): Add typedef for it.
4618 (start_of_data): Change return type from POINTER to char *.
4619
4620 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4621 HAVE_WINDOW_SYSTEM.
4622
4623 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4624
4625 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4626 Remove reference to __osf__, unused.
4627
4628 * mem-limits.h: Remove duplicated includes.
4629 (NULL): Remove definition, unused.
4630 (POINTER): Remove definition.
4631 (start_of_data): Use char* in prototype, as the function
4632 definition does.
4633
4634 Remove extern declarations from .c files, and them to .h files.
4635 * keyboard.h (Qhelp_echo, waiting_for_input)
4636 (input_available_clear_time, ignore_mouse_drag_p)
4637 (Vdouble_click_time, real_this_command, Vthis_original_command):
4638 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4639 (Voverriding_local_map_menu_flag):
4640 * lisp.h (Qinteractive_form, use_file_dialog)
4641 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4642 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4643 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4644 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4645 (Qfunction, debug_on_next_call, Qfield)
4646 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4647 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4648 (Qfile_directory_p, Qinsert_file_contents)
4649 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4650 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4651 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4652 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4653 (Qminibuffer_prompt)
4654 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4655 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4656 (gray_bitmap_bits, xic_create_fontsetname):
4657 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4658
4659 * xsmfns.c (Vuser_login_name):
4660 * xrdb.c (Vdouble_click_time):
4661 * xfaces.c (xic_create_fontsetname):
4662 * w32select.c (waiting_for_input):
4663 * print.c (minibuffer_auto_raise):
4664 * msdos.c (Qhelp_echo):
4665 * macros.c (real_this_command):
4666 * keymap.c (Voverriding_local_map):
4667 * xterm.c (poll_for_input_1, gray_bitmap_width)
4668 (gray_bitmap_height, gray_bitmap_bits;
4669 * xmenu.c ( Voverriding_local_map)
4670 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4671 (use_file_dialog, Xt_app_con):
4672 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4673 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4674 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4675 (Qtool_bar_lines, ignore_mouse_drag_p):
4676 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4677 (Qrear_nonsticky, nconc2):
4678 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4679 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4680 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4681 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4682 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4683 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4684 (gc_in_progress):
4685 * doc.c (Voverriding_local_map, Qremap):
4686 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4687 (Vcompletion_regexp_list):
4688 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4689 (Qcompletion_ignore_case):
4690 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4691 (Vhistory_length, Vthis_original_command, real_this_command)
4692 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4693 * image.c (Qrisky_local_variable):
4694 * fontset.c (QCname):
4695 * fns.c (minibuffer_auto_raise, QCname):
4696 * dispnew.c (char_ins_del_cost):
4697 * composite.c (font_fill_lglyph_metrics):
4698 * cmds.c (Qface, Vtranslation_table_for_input):
4699 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4700 * ccl.c (charset_unicode):
4701 * callproc.c (Vtemporary_file_directory):
4702 * buffer.c (emacs_strerror): Remove extern declarations.
4703
4704 * data.c (Qwindow): Make non-static, used from other files too.
4705 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4706
4707 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4708 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4709 * s/usg5-4.h (COFF):
4710 * s/template.h:
4711 * s/msdos.h (COFF, NO_REMAP):
4712 * s/ms-w32.h (NO_REMAP):
4713 * s/hpux10-20.h (NO_REMAP):
4714 * m/sparc.h (SEGMENT_MASK):
4715 * m/m68k.h (NO_REMAP):
4716 * m/intel386.h (SEGMENT_MASK):
4717 * m/arm.h (NO_REMAP):
4718 * m/alpha.h (COFF):
4719 * m/template.h: Remove references to unused defines.
4720
4721 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4722
4723 * xsettings.c (Ftool_bar_get_system_style): Also check for
4724 Qtext_image_horiz.
4725
4726 * xdisp.c (Qtext_image_horiz): Define.
4727 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
4728 to documentation of tool-bar-style.
4729
4730 * lisp.h (Qtext_image_horiz): Declare.
4731
4732 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4733 style text_image_horiz.
4734
4735 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4736
4737 * emacs.c (Fkill_emacs): Remove return statement.
4738
4739 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4740 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
4741 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4742 Remove local extern declarations.
4743
4744 * xmenu.c: Do not included lwlib.h, not needed.
4745
4746 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4747
4748 * process.c: Move definitions earlier to minimize #ifdefs.
4749
4750 * xterm.h (x_get_customization_string, x_load_resources)
4751 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4752 (x_check_errors, x_property_data_to_lisp, defined_color)
4753 (xic_set_xfontset, x_defined_color): Use const.
4754
4755 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4756 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4757
4758 * xselect.c (selection_data_to_lisp_data)
4759 (x_property_data_to_lisp):
4760 * xrdb.c (x_get_string_resource, file_p)
4761 (x_get_customization_string, magic_file_p, search_magic_path)
4762 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4763 (x_get_string_resource): Use const.
4764
4765 * xfns.c: Include xlwmenu.h when USE_LUCID.
4766 (x_defined_color, xic_set_xfontset): Use const.
4767 (Fx_hide_tip): Remove local extern declaration.
4768
4769 * xfaces.c (Qmouse_face): Remove declaration.
4770 (face_color_gray_p, tty_defined_color, defined_color)
4771 (face_color_gray_p, face_color_supported_p): Add const.
4772
4773 * xdisp.c (do_mouse_tracking): Remove declaration.
4774 (add_to_log): Use const.
4775
4776 * minibuf.c (Qmouse_face): Remove declaration.
4777
4778 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4779
4780 * keyboard.h (do_mouse_tracking): Add declaration.
4781
4782 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4783 (QCdata, QCtype, Qcenter): Remove declarations.
4784
4785 * frame.c (x_get_resource_string, x_get_string_resource)
4786 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4787 (x_default_parameter): Use const.
4788
4789 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4790 (QCheight, QCsize, QCname): Remove declarations.
4791
4792 * emacs.c (main): Remove local extern declaration.
4793
4794 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4795 declarations.
4796
4797 * dispnew.c: Remove duplicate #include <unistd.h>.
4798 (update_window, update_frame_1, init_display): Remove local extern
4799 declarations.
4800
4801 * dispextern.h (add_to_log): Remove declaration.
4802 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4803 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4804
4805 * dired.c (scmp): Add const.
4806 (directory_files_internal): Remove local extern declaration.
4807
4808 * data.c (Finteractive_form): Use const.
4809
4810 * composite.c (syms_of_composite): Remove local extern declarations.
4811
4812 * charset.c (add_to_log): Remove declaration.
4813
4814 * character.c (strwidth, parse_str_to_multibyte): Add const.
4815
4816 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4817
4818 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4819
4820 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
4821 (Lisp_Subr): Make doc and intspec constant.
4822 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4823 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4824 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4825 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4826 (display_arg): Add declarations.
4827
4828 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
4829
4830 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4831
4832 * window.c (Fwindow_height): Doc fix (bug#6518).
4833
4834 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
4835
4836 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4837
4838 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4839
4840 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4841 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4842 functions.
4843
4844 * frame.h (Qtty_color_mode): Add declaration.
4845
4846 * lisp.h (Ftop_level, Fexit_recursive_edit)
4847 (Fabort_recursive_edit): Mark as NO_RETURN.
4848
4849 2010-07-26 Kenichi Handa <handa@m17n.org>
4850
4851 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
4852 number of glyphs gets smaller than the original length. (Bug#6621)
4853
4854 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
4855
4856 * lread.c (unreadpure, mapatoms_1): Make static.
4857
4858 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4859
4860 * terminfo.c (tparam): Fix prototype of tparm.
4861
4862 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4863
4864 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4865 find start of text segment.
4866 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4867 is defined.
4868
4869 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4870
4871 2010-07-25 Ken Brown <kbrown@cornell.edu>
4872
4873 * vm-limit.c (check_memory_limits): Fix previous change;
4874 accidentally reverted an earlier change.
4875
4876 2010-07-25 Ken Brown <kbrown@cornell.edu>
4877
4878 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4879 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4880
4881 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4882
4883 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4884 * dired.c (opendir, readdir): Fix prototypes.
4885 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4886 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4887 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4888 (telldir): Remove declaration.
4889 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4890 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4891 * syssignal.h (strsignal): Fix prototype.
4892 * term.c (tparam): Fix prototype.
4893 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4894 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4895 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4896 and __morecore.
4897 * w32gui.h (XParseGeometry): Fix prototype.
4898 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4899 * w32term.c (my_set_focus): Declare inside #if 0.
4900 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4901 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4902 (drain_message_queue, get_next_msg, post_msg, parse_button)
4903 (ClipboardSequence_Proc): Fix prototypes.
4904 (wait_for_sync): Remove declaration.
4905
4906 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
4907
4908 * w32fns.c (w32_to_x_color): Remove, unused.
4909
4910 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4911
4912 * lisp.h: Remove leftover P_.
4913
4914 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4915
4916 * ecrt0.c, unexalpha.c: Remove files, unused.
4917
4918 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4919
4920 * cmds.c (internal_self_insert): Make static.
4921 * lisp.h (internal_self_insert): Remove declaration.
4922
4923 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
4924
4925 * alloc.c (free_float):
4926 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4927 * frame.c (delete_frame_handler):
4928 * ralloc.c (reorder_bloc):
4929 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4930 Remove unused static functions.
4931
4932 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4933 it is called only from NS code.
4934
4935 * w32term.c (my_set_focus): #ifdef away; it is called only from
4936 "#ifdef 0" code.
4937
4938 * w32fns.c (x_edge_detection):
4939 * xfaces.c (may_use_scalable_font_p):
4940 Remove obsolete static declarations.
4941
4942 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
4943
4944 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4945 (emacs_blocked_realloc, uninterrupt_malloc):
4946 * fringe.c (w32_reset_fringes):
4947 * image.c (convert_mono_to_color_image, lookup_rgb_color)
4948 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
4949 * sound.c (be2hs, do_play_sound):
4950 * vm-limit.c (get_lim_data, ret_lim_data):
4951 * w32term.c (x_free_frame_resources):
4952 * xfaces.c (x_create_gc, x_free_gc):
4953 Convert definitions to standard C.
4954
4955 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
4956
4957 * eval.c (Feval, Ffuncall): Use the new names.
4958
4959 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
4960 (DEFUN): Add braces around the union initialisation and use ## to
4961 specify the right union alternative and avoid a cast.
4962
4963 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
4964
4965 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4966
4967 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
4968
4969 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
4970
4971 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
4972
4973 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
4974 is related to the menu bar (Bug#6499).
4975 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
4976
4977 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
4978
4979 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
4980
4981 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
4982
4983 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
4984 i.e. don't put back ButtonRelease (Bug#6608).
4985
4986 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
4987 instead of Window. Call xg_event_is_for_menubar when
4988 USE_GTK (Bug#6499).
4989
4990 * gtkutil.h (xg_event_is_for_menubar): Declare.
4991
4992 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
4993
4994 2010-07-16 Eli Zaretskii <eliz@gnu.org>
4995
4996 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
4997 when it's the same as the old foreground. (Bug#6609)
4998
4999 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5000
5001 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5002 widget is non-null (Bug#6645).
5003
5004 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5005
5006 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5007 Convert old-style definition.
5008
5009 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5010 timestamp argument.
5011
5012 2010-07-15 Eli Zaretskii <eliz@gnu.org>
5013
5014 * fringe.c (update_window_fringes): Restore mistakenly reverted
5015 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5016
5017 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5018
5019 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5020 (SET_SAVED_KEY_EVENT): Remove (not used).
5021 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5022 remove size parameter.
5023 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5024 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5025 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5026 ButtonRelease.
5027 (x_set_window_size_1): scroll_bar_actual_width is always
5028 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
5029
5030 * xdisp.c (pending_menu_activation): Remove extern declaration.
5031 (prepare_menu_bars): Remove setting of pending_menu_activation.
5032
5033 * xmenu.c (pending_menu_activation): Remove.
5034 (x_activate_menubar): Set popup_activated_flag for Xt also.
5035 Remove setting of pending_menu_activation.
5036 (set_frame_menubar): Remove check of pending_menu_activation.
5037 Declare menubar_size before code. Correct spelling in comment.
5038
5039 2010-07-14 Kenichi Handa <handa@m17n.org>
5040
5041 * font.c (font_open_entity): Cancel previous change.
5042 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5043
5044 2010-07-13 Eli Zaretskii <eliz@gnu.org>
5045
5046 Remove subprocesses #ifdefs.
5047 * process.c <inhibit_sentinels>: Move to the common part.
5048 (Fwaiting_for_user_input_p): Move to the common part; return nil
5049 if async subprocesses aren't supported.
5050 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5051 MS-DOS. Remove "#ifdef subprocesses".
5052 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5053 (gettimeofday): Remove "#ifdef subprocesses".
5054 (wait_without_blocking): Remove function.
5055 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5056 Remove "#ifdef subprocesses".
5057 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5058 compiled on MS-DOS.
5059 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5060 wait_for_termination on MS-DOS.
5061 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5062 initialization of inhibit_sentinels.
5063 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5064 subprocesses" conditional.
5065 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5066 wait_for_termination, since `buffer' cannot be an integer when
5067 async subprocesses are not supported
5068 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5069 for ifdefing away the call to Fprocess_status.
5070
5071 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5072 away the entire body of the function.
5073
5074 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5075
5076 Remove subprocesses #ifdefs from term.c.
5077 * process.c (add_keyboard_wait_descriptor)
5078 (delete_keyboard_wait_descriptor): Move to common section, do
5079 nothing when subprocesses is not defined.
5080 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5081 Remove subprocesses #ifdefs.
5082
5083 Convert maybe_fatal to standard C.
5084 * lisp.h (verror): Declare.
5085 * eval.c (verror): New function containing the code from ...
5086 (error): ... this. Call verror.
5087 * term.c (vfatal): New function containing the code from ...
5088 (fatal): ... this. Call vfatal.
5089 (maybe_fatal): Convert to standard C, use variable number of
5090 arguments. Declare as non-return.
5091 (init_tty): Fix maybe_fatal call.
5092
5093 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5094
5095 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5096 (_scroll_bar_note_movement): Convert definitions to standard C.
5097 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5098 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5099
5100 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5101
5102 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5103 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5104 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5105 (xaw_jump_callback, xaw_scroll_callback)
5106 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
5107 (x_wm_set_size_hint, x_activate_timeout_atimer):
5108 Convert definitions to standard C.
5109 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5110 (popup_activate_callback, popup_deactivate_callback)
5111 (menu_highlight_callback, menubar_selection_callback)
5112 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5113 (free_frame_menubar, popup_selection_callback, as)
5114 (create_and_show_popup_menu, dialog_selection_callback)
5115 (create_and_show_dialog):
5116 * xfns.c (hack_wm_protocols, x_window):
5117 * xfaces.c (x_update_menu_appearance):
5118 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5119 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5120 (set_frame_size, update_wm_hints, setup_frame_gcs)
5121 (update_various_frame_slots, update_from_various_frame_slots)
5122 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5123 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5124 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5125
5126 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5127
5128 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
5129
5130 2010-07-12 Eli Zaretskii <eliz@gnu.org>
5131
5132 * process.c (setup_process_coding_systems): Move to the part
5133 shared by non-subprocesses systems, and make its body empty when
5134 subprocesses is not defined.
5135 (close_process_descs): Move to the part shared by non-subprocesses
5136 systems.
5137 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5138 ANSI C.
5139
5140 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5141
5142 * editfns.c (transpose_markers): Convert old-style definition.
5143 * emacs.c (abort, shut_down_emacs, fixup_locale)
5144 (synchronize_system_time_locale)
5145 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5146 * floatfns.c (extract_float, matherr, init_floatfns)
5147 (syms_of_floatfns): Likewise.
5148 * fns.c (make_hash_table): Likewise.
5149 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5150 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5151 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5152 (ftfont_variation_glyphs): Likewise.
5153 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5154 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5155 * lread.c (read_filtered_event): Likewise.
5156 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5157 * process.c (wait_reading_process_output): Likewise.
5158 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5159 * search.c (search_buffer, boyer_moore): Likewise.
5160 * syntax.c (scan_sexps_forward): Likewise.
5161 * xdisp.c (try_scrolling): Likewise.
5162 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5163 (face_at_string_position): Likewise.
5164 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5165 * xselect.c (x_get_window_property, receive_incremental_selection)
5166 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5167 Likewise.
5168 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5169
5170 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5171
5172 * callproc.c (child_setup): Remove subprocesses conditional.
5173 Remove code dealing with SET_EMACS_PRIORITY, unused.
5174
5175 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
5176 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5177
5178 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5179 (__do_global_dtors, __main): Use void in definition.
5180 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5181 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5182 the only users from ...
5183 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5184 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5185 (HAVE_VOLATILE): Remove, unused.
5186
5187 Convert more function definitions to standard C.
5188 * xdisp.c (window_box_edges, handle_single_display_spec)
5189 (display_string): Convert definition to standard C.
5190 * scroll.c (do_direct_scrolling, scrolling_1):
5191 * dispnew.c (allocate_matrices_for_frame_redisplay)
5192 (mirrored_line_dance):
5193 * coding.c (code_convert_string):
5194 * charset.c (map_charset_chars):
5195 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5196 (Fregister_ccl_program, Fregister_code_conversion_map):
5197 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5198 (head_table): Make static and const.
5199
5200 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5201
5202 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5203 (PROFILING_LDFLAGS): Set from substitution.
5204 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5205 CFLAGS last.
5206
5207 2010-07-12 Kenichi Handa <handa@m17n.org>
5208
5209 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5210 (shortlisp): Likewise.
5211
5212 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5213
5214 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5215 of FONT_ENTITY_INDEX.
5216 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5217 property, get the property value dynamically.
5218 (Ffont_put): Accept font-entity and font-object too.
5219 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
5220 return value changed.
5221 (syms_of_font): Adjust for the above change.
5222
5223 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5224
5225 * blockinput.h: Remove obsolete comment.
5226
5227 * lisp.h: Include <stddef.h>.
5228 (OFFSETOF): Don't define.
5229 (VECSIZE): Use offsetof instead of OFFSETOF.
5230 (PSEUDOVECSIZE): Likewise.
5231 * process.c (conv_sockaddr_to_lisp): Likewise.
5232 * alloc.c: Don't include <stddef.h>.
5233 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5234
5235 * process.c: Remove obsolete comment.
5236
5237 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
5238
5239 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5240
5241 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5242
5243 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5244 index, rindex.
5245 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5246 * editfns.c (Fuser_full_name, Fformat): Likewise.
5247 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5248 * fileio.c (Ffile_symlink_p): Likewise.
5249 * filelock.c (current_lock_owner): Likewise.
5250 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5251 * fontset.c (fontset_pattern_regexp): Likewise.
5252 * lread.c (read1): Likewise.
5253 * sysdep.c (init_system_name): Likewise.
5254 * xfns.c (select_visual): Likewise.
5255 * s/hpux10-20.h (index, rindex): Don't define.
5256 * s/ms-w32.h (index): Likewise.
5257 * s/usg5-4.h: Likewise.
5258
5259 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5260
5261 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5262 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5263 (egetenv): Likewise.
5264 * doprnt.c (doprnt): Likewise.
5265 * editfns.c (set_time_zone_rule, format2): Likewise.
5266 * emacs.c (decode_env_path): Likewise.
5267 * eval.c (signal_error, error): Likewise.
5268 * insdel.c (replace_range_2): Likewise.
5269 * keyboard.c (cmd_error_internal): Likewise.
5270 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5271 * print.c (write_string, write_string_1, print_error_message):
5272 Likewise.
5273 * vm-limit.c (warn_function, memory_warnings): Likewise.
5274 * xdisp.c (message1, message1_nolog, message_with_string)
5275 (vmessage, message, message_nolog): Likewise.
5276 * emacs.c: Remove duplicate declaration.
5277 * keyboard.h: Likewise.
5278 * lisp.h: Update prototypes.
5279
5280 * eval.c: Fix indentation problem.
5281
5282 * keyboard.c: Include "process.h"
5283
5284 * eval.c: Remove obsolete noinline declaration.
5285 * fns.c: Likewise.
5286
5287 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
5288
5289 * doprnt.c (doprnt): Take a va_list argument instead of count and
5290 pointer.
5291 * eval.c (error): Change to a standard-C variadic function.
5292 * xdisp.c (vmessage): Rename from message, made static, and
5293 changed to take a va_list argument.
5294 (message): New variadic wrapper.
5295 (message_nolog): Now a variadic function, calling vmessage.
5296 * lisp.h: Include stdarg.h for va_list.
5297 (doprnt, error, message, message_nolog): Decls updated.
5298
5299 2010-07-11 Eli Zaretskii <eliz@gnu.org>
5300
5301 * process.c (syms_of_process) <delete-exited-processes>: Define
5302 even if !subprocesses.
5303 (delete_exited_processes): Ditto.
5304
5305 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5306 (delete_exited_processes): Don't define.
5307
5308 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
5309
5310 * frame.c (make_frame): Initialize menu_bar_lines and
5311 tool_bar_lines members.
5312 (make_initial_frame, make_terminal_frame):
5313 Initialize menu_bar_lines using value of menu-bar-mode.
5314
5315 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5316
5317 2010-07-10 Eli Zaretskii <eliz@gnu.org>
5318
5319 * process.c: Reshuffle #include's. Condition some of the global
5320 and static variables on `subprocesses'.
5321 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5322 Leave only one implementation.
5323 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5324 (kill_buffer_processes, Flist_system_processes)
5325 (Fprocess_attributes, init_process, syms_of_process): Unify the
5326 implementations for with subprocesses and without them.
5327
5328 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5329
5330 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5331 correct size for Motif.
5332 (free_frame_menubar): Call x_set_window_size to update frame size.
5333
5334 * xfns.c (x_window): Set borderWidth to 0 for pane and
5335 EmacsFrame. Frame size calculation is wrong otherwise.
5336
5337 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
5338
5339 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5340 allows to suppress errors when polling in Emacs' main loop.
5341 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5342 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5343 (Fdbus_method_error_internal, Fdbus_send_signal)
5344 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5345 (Fdbus_register_method): Use it. (Bug#6579)
5346
5347 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5348
5349 * alloc.c: Convert DEFUNs to standard C.
5350 * buffer.c:
5351 * bytecode.c:
5352 * callint.c:
5353 * callproc.c:
5354 * casefiddle.c:
5355 * casetab.c:
5356 * category.c:
5357 * character.c:
5358 * charset.c:
5359 * chartab.c:
5360 * cmds.c:
5361 * coding.c:
5362 * composite.c:
5363 * data.c:
5364 * dbusbind.c:
5365 * dired.c:
5366 * dispnew.c:
5367 * doc.c:
5368 * dosfns.c:
5369 * editfns.c:
5370 * emacs.c:
5371 * eval.c:
5372 * fileio.c:
5373 * filelock.c:
5374 * floatfns.c:
5375 * fns.c:
5376 * font.c:
5377 * fontset.c:
5378 * frame.c:
5379 * fringe.c:
5380 * image.c:
5381 * indent.c:
5382 * insdel.c:
5383 * keyboard.c:
5384 * keymap.c:
5385 * lread.c:
5386 * macros.c:
5387 * marker.c:
5388 * menu.c:
5389 * minibuf.c:
5390 * msdos.c:
5391 * nsfns.m:
5392 * nsmenu.m:
5393 * nsselect.m:
5394 * print.c:
5395 * process.c:
5396 * search.c:
5397 * sound.c:
5398 * syntax.c:
5399 * term.c:
5400 * terminal.c:
5401 * textprop.c:
5402 * undo.c:
5403 * w16select.c:
5404 * w32console.c:
5405 * w32fns.c:
5406 * w32font.c:
5407 * w32menu.c:
5408 * w32proc.c:
5409 * w32select.c:
5410 * window.c:
5411 * xdisp.c:
5412 * xfaces.c:
5413 * xfns.c:
5414 * xmenu.c:
5415 * xselect.c:
5416 * xsettings.c:
5417 * xsmfns.c: Likewise.
5418
5419 2010-07-08 Eli Zaretskii <eliz@gnu.org>
5420
5421 * process.c (kbd_is_on_hold, hold_keyboard_input)
5422 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5423
5424 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5425
5426 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5427 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5428 unless USE_LUCID.
5429
5430 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5431
5432 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5433 declaration.
5434
5435 Clean up include guards.
5436 * tparam.c: Remove include guards for config.h, string.h and code
5437 that assumes #ifndef emacs.
5438 * termcap.c:
5439 * unexalpha.c:
5440 * sysdep.c:
5441 * filemode.c:
5442 * filelock.c:
5443 * bidi.c: Likewise.
5444
5445 Remove prefix-args.c
5446 * prefix-args.c: Remove file.
5447 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5448 * Makefile.in (temacs${EXEEXT}): Remove references to
5449 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5450 (mostlyclean): Remove reference to prefix-args.
5451 (prefix-args): Remove.
5452
5453 Simplify cstart_of_data, start_of_code and related code.
5454 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5455 (start_of_data): Merge into start_of_data function.
5456 * sysdep.c (start_of_text): Remove. Move simplified versions of
5457 it in the only users: unexaix.c and unexec.c.
5458 (read_input_waiting): Remove local declaration of quit_char.
5459 (start, etext): Remove declarations.
5460 (start_of_data): Merge with the version in mem-limits.h and move
5461 to vm-limits.c.
5462 * vm-limit.c (start_of_data): Merged and simplified version of the
5463 code formerly in mem-limits.h and sysdep.c.
5464 * unexec.c (start): New declaration, moved from sysdep.c.
5465 (start_of_text): Simplified version of the code formerly in sysdep.c.
5466 * unexaix.c (start_of_text): Simplified version of the code
5467 formerly in sysdep.c.
5468 * m/alpha.h (HAVE_TEXT_START): Remove.
5469 (TEXT_START): Move ...
5470 * unexalpha.c (TEXT_START): ... here.
5471 * s/hpux10-20.h (TEXT_START): Remove.
5472 * s/darwin.h (TEXT_START):
5473 * m/mips.h (TEXT_START):
5474 * m/macppc.h (HAVE_TEXT_START):
5475 * m/m68k.h (TEXT_START):
5476 * m/iris4d.h (TEXT_START):
5477 * m/intel386.h (TEXT_START):
5478 * m/ibmrs6000.h (TEXT_START):
5479 * m/ia64.h (HAVE_TEXT_START):
5480 * s/msdos.h (TEXT_START): Likewise.
5481
5482 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5483
5484 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5485 (overrun_check_free, xstrdup, allocate_string)
5486 (allocate_string_data, compact_small_strings, Fmake_string)
5487 (make_unibyte_string, make_multibyte_string)
5488 (make_string_from_bytes, make_specified_string, make_float)
5489 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5490 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5491 memcpy, memmove, memset, memcmp.
5492 * atimer.c (start_atimer, set_alarm): Likewise.
5493 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5494 (mmap_realloc, init_buffer_once): Likewise.
5495 * callint.c (Fcall_interactively): Likewise.
5496 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5497 (getenv_internal_1): Likewise.
5498 * casefiddle.c (casify_object): Likewise.
5499 * ccl.c (ccl_driver): Likewise.
5500 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5501 * charset.c (load_charset_map_from_file)
5502 (load_charset_map_from_file, load_charset_map_from_vector)
5503 (Fdefine_charset_internal): Likewise.
5504 * cm.c (Wcm_clear): Likewise.
5505 * coding.c (decode_eol, decode_coding_object)
5506 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5507 * data.c (Faset): Likewise.
5508 * dired.c (directory_files_internal, file_name_completion_stat):
5509 Likewise.
5510 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5511 (clear_glyph_row, copy_row_except_pointers)
5512 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5513 (save_current_matrix, restore_current_matrix)
5514 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5515 (mirror_line_dance, scrolling_window): Likewise.
5516 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5517 Likewise.
5518 * doprnt.c (doprnt): Likewise.
5519 * editfns.c (Fuser_full_name, make_buffer_string_both)
5520 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5521 * emacs.c (sort_args): Likewise.
5522 * eval.c (Fapply, Ffuncall): Likewise.
5523 * fileio.c (Ffile_name_directory, make_temp_name)
5524 (Fexpand_file_name, search_embedded_absfilename)
5525 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5526 (auto_save_error): Likewise.
5527 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5528 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5529 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5530 (Fmake_hash_table): Likewise.
5531 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5532 * ftfont.c (ftfont_text_extents): Likewise.
5533 * getloadavg.c (getloadavg): Likewise.
5534 * image.c (define_image_type, make_image, make_image_cache)
5535 (x_create_x_image_and_pixmap, xbm_image_p)
5536 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5537 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5538 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5539 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5540 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5541 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5542 Likewise.
5543 * indent.c (scan_for_column, compute_motion): Likewise.
5544 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5545 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5546 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5547 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5548 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5549 (store_user_signal_events, menu_bar_items, tool_bar_items)
5550 (process_tool_bar_item, append_tool_bar_item)
5551 (read_char_minibuf_menu_prompt, read_key_sequence)
5552 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5553 Likewise.
5554 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5555 Likewise.
5556 * lisp.h (STRING_COPYIN): Likewise.
5557 * lread.c (Fload, read1, oblookup): Likewise.
5558 * msdos.c (Frecent_doskeys): Likewise.
5559 * nsfns.m (Fx_create_frame): Likewise.
5560 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5561 Likewise.
5562 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5563 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5564 Likewise.
5565 * nsmenu.m (ns_update_menubar): Likewise.
5566 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5567 * print.c (print_unwind, printchar, strout, print_string)
5568 (print_error_message): Likewise.
5569 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5570 (Fmake_network_process, Fnetwork_interface_list)
5571 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5572 (init_process): Likewise.
5573 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5574 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5575 Likewise.
5576 * scroll.c (do_scrolling, do_direct_scrolling)
5577 (scrolling_max_lines_saved): Likewise.
5578 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5579 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5580 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5581 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5582 (emacs_set_tty): Likewise.
5583 * term.c (encode_terminal_code, calculate_costs)
5584 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5585 Likewise.
5586 * termcap.c (tgetst1, gobble_line): Likewise.
5587 * termhooks.h (EVENT_INIT): Likewise.
5588 * tparam.c (tparam1): Likewise.
5589 * unexalpha.c (unexec): Likewise.
5590 * unexec.c (write_segment): Likewise.
5591 * unexmacosx.c (unexec_write_zero): Likewise.
5592 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5593 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5594 * w32font.c (w32font_list_family, w32font_text_extents)
5595 (w32font_list_internal, w32font_match_internal)
5596 (w32font_open_internal, compute_metrics, Fx_select_font):
5597 Likewise.
5598 * w32menu.c (set_frame_menubar, add_menu_item)
5599 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5600 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5601 * w32uniscribe.c (uniscribe_list_family): Likewise.
5602 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5603 * window.c (make_window, replace_window, set_window_buffer)
5604 (Fsplit_window): Likewise.
5605 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5606 (add_to_log, message3, x_consider_frame_title)
5607 (append_space_for_newline, extend_face_to_end_of_line)
5608 (decode_mode_spec_coding, init_glyph_string): Likewise.
5609 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5610 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5611 (face_attr_equal_p, make_realized_face, make_face_cache)
5612 (free_realized_faces, lookup_named_face, smaller_face)
5613 (face_with_height, lookup_derived_face)
5614 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5615 (Finternal_set_font_selection_order, realize_default_face)
5616 (compute_char_face, face_at_buffer_position)
5617 (face_for_overlay_string, face_at_string_position, merge_faces):
5618 Likewise.
5619 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5620 (Fx_window_property, x_create_tip_frame)
5621 (Fx_backspace_delete_keys_p): Likewise.
5622 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5623 (xfont_text_extents): Likewise.
5624 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5625 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5626 * xselect.c (x_queue_event, x_get_window_property)
5627 (receive_incremental_selection): Likewise.
5628 * xsmfns.c (x_session_check_input): Likewise.
5629 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5630 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5631 Likewise.
5632 * character.h (BCOPY_SHORT): Removed.
5633 * config.in: Regenerate.
5634 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5635 * emacs.c (main) [PROFILING]: Don't declare
5636 dump_opcode_frequencies.
5637 * lisp.h (safe_bcopy): Remove declaration.
5638 (memset) [!HAVE_MEMSET]: Declare.
5639 (memcpy) [!HAVE_MEMCPY]: Likewise.
5640 (memmove) [!HAVE_MEMMOVE]: Likewise.
5641 (memcmp) [!HAVE_MEMCMP]: Likewise.
5642 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5643 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5644 Don't define.
5645 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5646 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5647 (BCOPY_DOWNWARD_SAFE): Don't define.
5648 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5649 (memcpy) [!HAVE_MEMCPY]: Define.
5650 (memmove) [!HAVE_MEMMOVE]: Define.
5651 (memcmp) [!HAVE_MEMCMP]: Define.
5652
5653 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5654
5655 * process.c (kbd_is_on_hold): New variable.
5656 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5657 New functions.
5658 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5659 select on empty input mask.
5660 (init_process): Initialize kbd_is_on_hold to 0.
5661
5662 * process.h (hold_keyboard_input, unhold_keyboard_input)
5663 (kbd_on_hold_p): Declare.
5664
5665 * keyboard.c (input_available_signal): Declare.
5666 (kbd_buffer_nr_stored): New function.
5667 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5668 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5669 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5670 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5671 (tty_read_avail_input): If input is on hold, return.
5672 Don't read more that free slots in kbd_buffer (Bug#6571).
5673
5674 2010-07-07 Eli Zaretskii <eliz@gnu.org>
5675
5676 * msdos.h:
5677 * msdos.c:
5678 * dosfns.c:
5679 * w16select.c: Convert function definitions to ANSI C.
5680
5681 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5682 Remove unused prototypes.
5683
5684 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5685
5686 * coding.c, sysdep.c: Convert some more functions to standard C.
5687
5688 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5689
5690 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5691 (encode_coding_object): Use SPECPDL_INDEX.
5692 (syms_of_coding): Use DOS_NT.
5693
5694 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5695
5696 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5697
5698 Make the function member of Lisp_Subr use standard C prototypes.
5699 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5700 (DECL_ALIGN): Add a cast for the function.
5701 * eval.c (Feval, Ffuncall): Use the proper type for each type
5702 function call.
5703
5704 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
5705
5706 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5707 fringe face id, so face-remapping-alist works (Bug#6091).
5708
5709 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
5710
5711 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5712 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5713 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5714
5715 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5716
5717 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5718 * lisp.h: Declare x_get_keysym_name.
5719 * keyboard.c (modify_event_symbol): Don't declare
5720 x_get_keysym_name here.
5721
5722 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5723
5724 * ecrt0.c: Revert conversion to standard C.
5725
5726 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5727
5728 * vm-limit.c (memory_warnings):
5729 * keyboard.c (modify_event_symbol):
5730 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5731 (round2, emacs_rint):
5732 * process.c (send_process, old_sigpipe): Convert function
5733 definitions and declarations to standard C.
5734
5735 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
5736
5737 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5738 * xdisp.c: Convert function definitions to standard C.
5739
5740 * cm.c (cmputc): Arg C is now int, not char.
5741 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5742
5743 2010-07-05 James Cloos <cloos@jhcloos.com>
5744
5745 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5746
5747 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5748 _NET_WM_ICON_NAME atoms.
5749
5750 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5751 and _NET_WM_ICON_NAME properties, too, matching what is
5752 done in the Gtk+ case.
5753
5754 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5755
5756 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5757
5758 * xsmfns.c (SSDATA): New macro.
5759 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5760 passed to strlen/strcpy/strcat.
5761 (create_client_leader_window): Surround with #ifndef USE_GTK.
5762 Cast 7:th arg to XChangeProperty to (unsigned char *).
5763
5764 * xsettings.c (something_changedCB, parse_settings)
5765 (apply_xft_settings): Reformat prototype.
5766 (something_changedCB, init_gconf): Remove unused variable i.
5767 (read_settings): Remove unused variable long_len.
5768
5769 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5770 (xg_get_image_for_pixmap, create_dialog)
5771 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5772 (menuitem_highlight_callback, make_menu_item)
5773 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5774 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5775 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5776 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5777 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5778 (xg_tool_bar_item_expose_callback): Reformat prototype.
5779 (xg_update_menubar): GList *group => GSList *group.
5780 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5781 before use.
5782 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5783 to GTK_IMAGE (wimage).
5784
5785 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5786
5787 * atimer.c: Use "" instead of <> for local includes for
5788 consistency with the rest of the code.
5789
5790 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5791 * xrdb.c (get_system_name):
5792 * window.c (shrink_windows):
5793 * syntax.c (forw_comment):
5794 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5795 (ins_del_costs):
5796 * mem-limits.h (start_of_data):
5797 * lread.c (readevalloop):
5798 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5799 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5800 * frame.c (x_get_focus_frame):
5801 * floatfns.c (fmod_float):
5802 * fileio.c (choose_write_coding_system):
5803 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5804 (malloc_initialize_hook, sort_args, synchronize_locale):
5805 * doprnt.c (doprnt):
5806 * dired.c (compile_pattern):
5807 * data.c (fmod_float):
5808 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5809 (map_char_table_for_charset):
5810 * charset.c (define_charset_internal):
5811 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5812 to standard C.
5813
5814 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
5815 Stefan Monnier <monnier@iro.umontreal.ca>
5816
5817 * lread.c (read1): Fix up last change to not mess up `c'.
5818
5819 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5820
5821 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5822
5823 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5824
5825 Fix prototypes.
5826
5827 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
5828 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
5829 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5830 arg, as required by internal_condition_case_1.
5831 * print.c (strout): Use const char* for arg PTR.
5832 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5833 (analyse_first): Fix "const const".
5834 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
5835 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
5836 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
5837
5838 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5839
5840 * alloc.c: Convert function definitions to standard C.
5841 * atimer.c:
5842 * bidi.c:
5843 * bytecode.c:
5844 * callint.c:
5845 * callproc.c:
5846 * casefiddle.c:
5847 * casetab.c:
5848 * category.c:
5849 * ccl.c:
5850 * character.c:
5851 * charset.c:
5852 * chartab.c:
5853 * cmds.c:
5854 * coding.c:
5855 * composite.c:
5856 * data.c:
5857 * dbusbind.c:
5858 * dired.c:
5859 * dispnew.c:
5860 * doc.c:
5861 * doprnt.c:
5862 * ecrt0.c:
5863 * editfns.c:
5864 * fileio.c:
5865 * filelock.c:
5866 * filemode.c:
5867 * fns.c:
5868 * font.c:
5869 * fontset.c:
5870 * frame.c:
5871 * fringe.c:
5872 * ftfont.c:
5873 * ftxfont.c:
5874 * gtkutil.c:
5875 * indent.c:
5876 * insdel.c:
5877 * intervals.c:
5878 * keymap.c:
5879 * lread.c:
5880 * macros.c:
5881 * marker.c:
5882 * md5.c:
5883 * menu.c:
5884 * minibuf.c:
5885 * prefix-args.c:
5886 * print.c:
5887 * ralloc.c:
5888 * regex.c:
5889 * region-cache.c:
5890 * scroll.c:
5891 * search.c:
5892 * sound.c:
5893 * strftime.c:
5894 * syntax.c:
5895 * sysdep.c:
5896 * termcap.c:
5897 * terminal.c:
5898 * terminfo.c:
5899 * textprop.c:
5900 * tparam.c:
5901 * undo.c:
5902 * unexelf.c:
5903 * window.c:
5904 * xfaces.c:
5905 * xfns.c:
5906 * xfont.c:
5907 * xftfont.c:
5908 * xgselect.c:
5909 * xmenu.c:
5910 * xrdb.c:
5911 * xselect.c:
5912 * xsettings.c:
5913 * xsmfns.c:
5914 * xterm.c: Likewise.
5915
5916 2010-07-03 Eli Zaretskii <eliz@gnu.org>
5917
5918 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5919 frames other than the initial one. Fix reversal of colors when
5920 `reverse' is specified in the frame parameters.
5921 Call update_face_from_frame_parameter instead of
5922 internal-set-lisp-face-attribute. Initialize screen colors from
5923 initial_screen_colors[] when f->default_face_done_p is zero,
5924 instead of depending on being called with default-frame-alist as
5925 the alist argument.
5926
5927 * xfaces.c (update_face_from_frame_parameter): Move out of
5928 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5929 with HAVE_WINDOW_SYSTEM.
5930
5931 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5932 to menu-bar-mode, if not set in the frame parameters or in
5933 default-frame-alist.
5934
5935 * w32console.c (sys_tputs): Adjust argument list to prototype in
5936 term.c.
5937
5938 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
5939
5940 * lisp.h (memory_warnings): Fix prototype.
5941
5942 * cm.h (evalcost): Fix prototype.
5943
5944 * cm.c (evalcost): Fix arg type.
5945
5946 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5947
5948 * term.c (term_clear_mouse_face, Fidentity):
5949 * syssignal.h (signal_handler_t):
5950 * lisp.h (memory_warnings):
5951 * coding.h (preferred_coding_system):
5952 * cm.h (evalcost):
5953 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
5954
5955 2010-07-02 Eli Zaretskii <eliz@gnu.org>
5956
5957 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
5958 from prototypes.
5959
5960 * msdos.h (load_pixmap): Don't define away.
5961
5962 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
5963
5964 * lisp.h:
5965 * atimer.h: Remove define for P_.
5966
5967 * alloc.c: Remove __P and P_ from .c and .m files.
5968 * atimer.c:
5969 * buffer.c:
5970 * callint.c:
5971 * category.c:
5972 * charset.c:
5973 * chartab.c:
5974 * cm.c:
5975 * coding.c:
5976 * composite.c:
5977 * data.c:
5978 * dired.c:
5979 * dispnew.c:
5980 * doc.c:
5981 * editfns.c:
5982 * emacs.c:
5983 * eval.c:
5984 * fileio.c:
5985 * filelock.c:
5986 * fns.c:
5987 * font.c:
5988 * fontset.c:
5989 * frame.c:
5990 * ftfont.c:
5991 * ftxfont.c:
5992 * gmalloc.c:
5993 * gtkutil.c:
5994 * image.c:
5995 * indent.c:
5996 * intervals.c:
5997 * keyboard.c:
5998 * keymap.c:
5999 * lread.c:
6000 * marker.c:
6001 * menu.c:
6002 * minibuf.c:
6003 * print.c:
6004 * process.c:
6005 * scroll.c:
6006 * search.c:
6007 * sound.c:
6008 * strftime.c:
6009 * syntax.c:
6010 * sysdep.c:
6011 * term.c:
6012 * terminal.c:
6013 * textprop.c:
6014 * unexalpha.c:
6015 * w32console.c:
6016 * w32fns.c:
6017 * w32font.c:
6018 * w32menu.c:
6019 * w32term.c:
6020 * w32uniscribe.c:
6021 * window.c:
6022 * xdisp.c:
6023 * xfaces.c:
6024 * xfns.c:
6025 * xfont.c:
6026 * xftfont.c:
6027 * xmenu.c:
6028 * xselect.c:
6029 * xterm.c: Likewise.
6030
6031 Remove P_ and __P macros.
6032 * atimer.h: Remove P_ and __P macros.
6033 * buffer.h:
6034 * category.h:
6035 * ccl.h:
6036 * character.h:
6037 * charset.h:
6038 * cm.h:
6039 * coding.h:
6040 * composite.h:
6041 * dispextern.h:
6042 * disptab.h:
6043 * dosfns.h:
6044 * font.h:
6045 * fontset.h:
6046 * frame.h:
6047 * gtkutil.h:
6048 * indent.h:
6049 * intervals.h:
6050 * keyboard.h:
6051 * keymap.h:
6052 * lisp.h:
6053 * macros.h:
6054 * md5.h:
6055 * menu.h:
6056 * msdos.h:
6057 * nsterm.h:
6058 * puresize.h:
6059 * region-cache.h:
6060 * syntax.h:
6061 * syssignal.h:
6062 * systime.h:
6063 * termhooks.h:
6064 * w32font.h:
6065 * w32term.h:
6066 * widget.h:
6067 * window.h:
6068 * xgselect.h:
6069 * xsettings.h:
6070 * xterm.h: Likewise.
6071
6072 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6073
6074 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6075
6076 Cleanup old code.
6077 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6078 * syssignal.h: Remove code for Lynx, not supported anymore.
6079 * vm-limit.c: Remove unused code the depends on emacs not being
6080 defined and NO_LIM_DATA being defined.
6081 * mem-limits.h: Remove dead code.
6082
6083 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6084
6085 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6086
6087 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6088 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6089
6090 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6091 parameters, they are already absolute.
6092
6093 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6094 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
6095
6096 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
6097
6098 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6099 Update FRAME_TOOLBAR_HEIGHT.
6100
6101 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6102 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
6103
6104 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
6105
6106 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6107 Don't check default-frame-alist.
6108
6109 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6110
6111 * process.c (create_process): Avoid using invalid file descriptors.
6112
6113 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6114
6115 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6116
6117 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6118 Improve documentation. Return font regardless of use_system_font.
6119 (syms_of_xsettings): Improve documentation for font-use-system-font.
6120
6121 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6122
6123 * xfaces.c (realize_face): Garbage the frame if a face is removed
6124 (Bug#6593).
6125
6126 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6127
6128 * keyboard.c: Remove duplicate <setjmp.h>.
6129 (read_key_sequence): Remove volatile qualifiers.
6130
6131 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6132
6133 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6134 (struct glyph_row): New members left_fringe_offset and
6135 right_fringe_offset.
6136
6137 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6138 specially.
6139 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6140 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6141
6142 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
6143 Take account of bitmap offset.
6144 (draw_window_fringes): Take account of window vscroll.
6145 (update_window_fringes): Likewise. Extend top-aligned top indicator
6146 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6147 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6148 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6149
6150 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6151
6152 * w32fns.c (Qtooltip): Declare.
6153 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6154
6155 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6156
6157 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6158 grab on just Press (Bug#6499).
6159
6160 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
6161
6162 * frame.c (Qtooltip): New var.
6163 (delete_frame): Use it. Fix faulty if statement. Don't update
6164 mode line for tooltip frames. Suggested by Martin Rudalics.
6165
6166 * xfns.c (x_create_tip_frame):
6167 * w32fns.c (x_create_tip_frame): Use it.
6168
6169 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
6170
6171 * xftfont.c (xftfont_open): Check font width one by one also when
6172 spacing is dual.
6173
6174 * ftfont.c (ftfont_open): Ditto.
6175
6176 2010-06-30 Glenn Morris <rgm@gnu.org>
6177
6178 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6179
6180 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6181
6182 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6183 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6184 * s/darwin.h (SYSTEM_MALLOC):
6185 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6186
6187 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6188
6189 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6190 (ns_get_screen): Don't assign integer to f.
6191 (Fx_display_color_cells): Declarations before statements.
6192
6193 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6194
6195 * xfns.c (x_default_font_parameter): Remove got_from_system
6196 (Bug#6526).
6197
6198 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
6199 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6200 New defines based on what configure finds.
6201
6202 * xterm.c (XTflash): Use gtk_widget_get_window.
6203 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6204 gtk_adjustment_get_page_size.
6205 (handle_one_xevent): Use gtk_widget_get_mapped.
6206 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6207 messages.
6208
6209 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6210
6211 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6212 HAVE_GTK_FILE_SELECTION_NEW.
6213
6214 * gtkutil.c (xg_display_open, xg_display_close):
6215 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
6216 (xg_display_open): Return type is void.
6217 (gtk_widget_set_has_window)
6218 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6219 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6220 (gtk_adjustment_set_page_increment)
6221 (gtk_adjustment_get_step_increment): #define these if not found
6222 by configure.
6223 (remove_submenu): New define based on Gtk+ version.
6224 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6225 Use gtk_widget_get_window.
6226 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6227 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6228 (create_dialog): Use gtk_dialog_get_action_area and
6229 gtk_dialog_get_content_area.
6230 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6231 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6232 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
6233 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6234 Use g_object_ref and g_object_unref.
6235 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6236 Use gtk_widget_get_sensitive.
6237 (xg_update_submenu): Use remove_submenu.
6238 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6239 properties instead to get old x and y position.
6240 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6241 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
6242 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
6243 (xg_get_tool_bar_widgets): New function.
6244 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6245 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6246 (toolbar_set_orientation): New #define based on if configure
6247 finds gtk_orientable_set_orientation.
6248 (xg_create_tool_bar): Call toolbar_set_orientation.
6249 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6250 instead of gtk_box_pack_start_defaults.
6251
6252 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
6253
6254 * cmds.c (Fdelete_backward_char): Move into Lisp.
6255
6256 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6257
6258 * s/freebsd.h (BSD4_2): Remove redundant definition.
6259 bsd-common.h defines it already.
6260
6261 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
6262
6263 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6264 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6265 tool-bar-mode, which are now set using these X resources at
6266 startup, to determine the defaults (Bug#2249).
6267
6268 * w32fns.c (Fx_create_frame):
6269 * nsfns.m (Fx_create_frame): Likewise.
6270
6271 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6272
6273 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
6274
6275 * gtkutil.c (xg_update_scrollbar_pos):
6276 Avoid C99 mid-block variable declaration.
6277
6278 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6279
6280 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6281
6282 * gtkutil.h (xg_show_scroll_bar): Remove.
6283
6284 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6285 if height is less than scroll bar min size.
6286 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6287
6288 * xfns.c (x_default_font_parameter): Try to open font from system
6289 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6290
6291 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
6292
6293 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6294
6295 2010-06-20 Eli Zaretskii <eliz@gnu.org>
6296
6297 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6298 most-positive-fixnum, be extra accurate when scrolling window
6299 start, to avoid missing the cursor line.
6300
6301 2010-06-19 Eli Zaretskii <eliz@gnu.org>
6302
6303 * xdisp.c (try_scrolling): Compute the limit for searching point
6304 in forward scroll from scroll_max, instead of an arbitrary limit
6305 of 10 screen lines.
6306 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
6307 and
6308 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6309 for details.
6310
6311 2010-06-16 Glenn Morris <rgm@gnu.org>
6312
6313 * editfns.c (Fbyte_to_string): Pacify compiler.
6314
6315 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6316
6317 * lread.c (read1): Phase out old-style backquotes a bit more.
6318
6319 2010-06-12 Eli Zaretskii <eliz@gnu.org>
6320
6321 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6322 bidimirror.h.
6323
6324 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6325
6326 * bidi.c (bidi_initialize): Remove explicit initialization of
6327 bidi_type_table; include biditype.h instead. Don't support
6328 entries whose second codepoint is zero. Initialize bidi_mirror_table.
6329 (bidi_mirror_char): Use bidi_mirror_table.
6330
6331 * biditype.h: New file.
6332
6333 * bidimirror.h: New file.
6334
6335 * window.c (syms_of_window): Doc fix (bug#6409).
6336
6337 2010-06-12 Romain Francoise <romain@orebokech.com>
6338
6339 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6340 ediff-hook.
6341
6342 2010-06-10 Glenn Morris <rgm@gnu.org>
6343
6344 * editfns.c (Fbyte_to_string): Pacify compiler.
6345
6346 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6347
6348 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6349
6350 * alloc.c (Fmake_byte_code): Don't access undefined argument
6351 (Bug#6517).
6352
6353 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
6354
6355 * xdisp.c (next_element_from_image): Ensure that after-strings are
6356 read the next time we hit handle_stop (Bug#1336).
6357
6358 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6359
6360 * lread.c (read1): Signal error if #s is not followed by paren.
6361
6362 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
6363
6364 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6365
6366 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6367
6368 2010-06-15 Glenn Morris <rgm@gnu.org>
6369
6370 * editfns.c (Fbyte_to_string): Pacify compiler.
6371
6372 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6373
6374 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6375 Check `object's type before accessing its guts.
6376
6377 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6378
6379 * s/usg5-4.h: Fix previous change.
6380 Suggested by Lawrence Mitchell <wence@gmx.li>
6381
6382 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6383
6384 * minibuf.c (Fall_completions): Add more checks.
6385
6386 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
6387
6388 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6389
6390 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6391
6392 * lread.c (X_OK): Remove, unused.
6393
6394 * dispnew.c: Remove obsolete comment.
6395
6396 Remove INCLUDED_FCNTL.
6397 * xterm.c (INCLUDED_FCNTL):
6398 * callproc.c (INCLUDED_FCNTL):
6399 * alloc.c (INCLUDED_FCNTL):
6400 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6401 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6402
6403 2010-06-07 Martin Rudalics <rudalics@gmx.at>
6404
6405 * window.c (Fselect_window): Move `record_buffer' up to the
6406 beginning of this function, so the buffer gets recorded
6407 even if the selected window does not change.
6408 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6409
6410 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
6411
6412 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6413 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6414
6415 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6416
6417 Remove BSTRING related code, all platforms define it.
6418 * s/usg5-4.h (BSTRING): Remove definition.
6419 * s/template.h (BSTRING):
6420 * s/msdos.h (BSTRING):
6421 * s/ms-w32.h (BSTRING):
6422 * s/hpux10-20.h (BSTRING):
6423 * s/gnu-linux.h (BSTRING):
6424 * s/darwin.h (BSTRING):
6425 * s/cygwin.h (BSTRING):
6426 * s/bsd-common.h (BSTRING):
6427 * s/aix4-2.h (BSTRING): Likewise.
6428 * sysdep.c: Remove code depending on BSTRING not being defined.
6429
6430 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
6431
6432 Remove obsolete macro BASE_LEADING_CODE_P.
6433 * character.h (BASE_LEADING_CODE_P): Remove.
6434 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6435 * buffer.c (Fset_buffer_multibyte):
6436 * indent.c (scan_for_column, compute_motion):
6437 * insdel.c (count_combining_before, count_combining_after):
6438 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6439
6440 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
6441
6442 Turn `directory-sep-char' into a noop.
6443
6444 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6445 (DIRECTORY_SEP): Define unconditionally.
6446
6447 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6448
6449 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6450 call dostounix_filename directly.
6451
6452 * fileio.c (CORRECT_DIR_SEPS): Remove.
6453 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6454 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6455 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6456 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6457
6458 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6459 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6460
6461 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6462
6463 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6464 (Bug#6346)
6465
6466 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6467
6468 * ccl.c (Fccl_program_p): Fix typo in docstring.
6469
6470 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6471
6472 Move UNEXEC definition to autoconf.
6473 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6474 * s/sol2-10.h (UNEXEC):
6475 * s/irix6-5.h (UNEXEC):
6476 * s/hpux10-20.h (UNEXEC):
6477 * s/gnu-linux.h (UNEXEC):
6478 * s/darwin.h (UNEXEC):
6479 * s/cygwin.h (UNEXEC):
6480 * s/bsd-common.h (UNEXEC):
6481 * s/aix4-2.h (UNEXEC):
6482 * m/alpha.h (UNEXEC): Likewise.
6483 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6484
6485 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6486
6487 Remove obsolete pre-unicode2 macros.
6488 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6489 * composite.c (composition_reseat_it):
6490 * data.c (Faset):
6491 * fns.c (Ffillarray):
6492 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6493 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6494
6495 2010-06-03 Juri Linkov <juri@jurta.org>
6496
6497 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6498 (Fswitch_to_buffer): Remove unused variable `err'.
6499
6500 2010-06-03 Glenn Morris <rgm@gnu.org>
6501
6502 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6503
6504 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6505 now that AH_BOTTOM does it.
6506
6507 * m/hp800.h (HAVE_ALLOCA):
6508 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6509
6510 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6511 Remove NOT_C_CODE tests, it is always true now.
6512
6513 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6514
6515 Fix config.h includes.
6516 * xsettings.c:
6517 * xgselect.c:
6518 * nsterm.m:
6519 * nsselect.m:
6520 * nsimage.m:
6521 * nsfont.m:
6522 * nsfns.m:
6523 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6524 other files do.
6525
6526 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6527
6528 * s/sol2-6.h: Remove obsolete comments.
6529
6530 Remove unnecessary alloca.h includes.
6531 * keymap.c: Do not include alloca.h, config.h does that.
6532 * sysdep.c: Likewise. Do not define fwrite, not used.
6533
6534 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6535
6536 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6537 the HAVE_TERMIO where it belongs (bug#6149).
6538
6539 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6540
6541 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6542 of bug#6305).
6543
6544 2010-05-30 Eli Zaretskii <eliz@gnu.org>
6545
6546 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6547 state is always cached (bug#6306).
6548
6549 2010-05-29 Eli Zaretskii <eliz@gnu.org>
6550
6551 Fix cursor motion in bidi-reordered continued lines.
6552 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6553 only after finding point's row. Fix the logic. Rewrite the loop
6554 over continuation lines in bidi-reordered buffers.
6555 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6556 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6557
6558 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
6559
6560 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6561
6562 2010-05-28 Kenichi Handa <handa@m17n.org>
6563
6564 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6565 Don't sheck SPEC if it is nil.
6566 (font_list_entities): Call font_delete_unmatched if
6567 Vface_ignored_fonts is non-nil. (Bug#6287)
6568
6569 2010-05-28 Glenn Morris <rgm@gnu.org>
6570
6571 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6572
6573 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6574
6575 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6576 whether to trash.
6577 (internal_delete_file, Frename_file): Callers changed.
6578 (delete_by_moving_to_trash): Doc fix.
6579 (Fdelete_directory_internal): Don't move to trash.
6580
6581 * callproc.c (delete_temp_file):
6582 * buffer.c (Fkill_buffer): Callers changed.
6583
6584 * lisp.h: Update prototype.
6585
6586 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6587
6588 * xdisp.c (redisplay_window): After redisplay, check if point is
6589 still valid before setting it (Bug#6177).
6590
6591 2010-05-27 Glenn Morris <rgm@gnu.org>
6592
6593 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6594 Convert comments to Makefile format.
6595
6596 * Makefile.in (bootstrap-clean): No more Makefile.c.
6597
6598 2010-05-26 Glenn Morris <rgm@gnu.org>
6599
6600 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6601 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6602
6603 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6604 Remove.
6605 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6606
6607 2010-05-26 Kenichi Handa <handa@m17n.org>
6608
6609 * composite.c (composition_compute_stop_pos): Fix condition for
6610 backward scanning.
6611
6612 2010-05-25 Glenn Morris <rgm@gnu.org>
6613
6614 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6615 Move before TEMACS_LDFLAGS.
6616 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6617 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6618
6619 * Makefile.in (NOT_C_CODE): No longer define.
6620 (config.h): No longer include.
6621
6622 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6623 variables it may reference.
6624
6625 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6626 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6627
6628 2010-05-25 Kenichi Handa <handa@m17n.org>
6629
6630 * dispextern.h (struct composition_it): New members rule_idx and
6631 charpos.
6632
6633 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6634 that the character positions of IT point the last character of the
6635 current grapheme cluster.
6636 (next_element_from_composition): Don't change character positions
6637 of IT.
6638 (append_composite_glyph): Set glyph->charpos to
6639 it->cmp_it.charpos.
6640
6641 * composite.c (autocmp_chars): Change the first argument to RULE,
6642 and try composition with RULE only.
6643 (composition_compute_stop_pos): Record the index number of the
6644 composition rule in CMP_IT->rule_idx.
6645 (composition_reseat_it): Call autocmp_chars repeatedly until the
6646 correct rule of the composition is found.
6647 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6648 is at the last character of the current grapheme cluster when
6649 CMP_IT->reversed_p is nonzero.
6650
6651 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6652
6653 * editfns.c (Fbyte_to_string): New function.
6654
6655 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6656
6657 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6658 Suggested by Masatake YAMATO <yamato@redhat.com>.
6659
6660 2010-05-23 Eli Zaretskii <eliz@gnu.org>
6661
6662 * dispextern.h (init_iterator): Sync prototype with changed definition.
6663
6664 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6665
6666 * s/netbsd.h: If terminfo is found, use it in preference to
6667 termcap. (Bug#6190) [Backport from trunk]
6668
6669 2010-05-19 Eli Zaretskii <eliz@gnu.org>
6670
6671 Redesign and reimplement bidi-aware edge positions of glyph rows.
6672
6673 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6674 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6675 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6676 and maxpos members instead of start.pos and end.pos, respectively.
6677
6678 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6679 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6680 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
6681 (try_window_reusing_current_matrix, try_window_id):
6682 Use ROW->minpos rather than ROW->start.pos.
6683 (init_from_display_pos, init_iterator): Use EMACS_INT for
6684 character and byte positions.
6685 (find_row_edges): Rename from find_row_end. Accept additional
6686 arguments for minimum and maximum buffer positions seen by
6687 display_line for this row. Don't use iterator to find the
6688 position following the maximum one; instead, increment the
6689 position found by display_line directly. Fix logic; eol_pos
6690 should be tested before the rest. Handle the case of characters
6691 delivered from display vector (bug#6036). Fix tests related to
6692 it->method. Handle the truncated_on_right_p rows.
6693 (RECORD_MAX_MIN_POS): New macro.
6694 (display_line): Use it to record the minimum and maximum buffer
6695 positions for glyphs in the row being assembled. Record the
6696 position of the newline that terminates the line. If word wrap is
6697 in effect, restore minimum and maximum positions seen up to the
6698 wrap point, when iterator returns to it.
6699 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6700 row and cursor not already at point. Restore original pre-bidi
6701 code for unidirectional buffers.
6702
6703 * dispnew.c (increment_row_positions, check_matrix_invariants):
6704 Increment and check row->start.pos and row->end.pos, in addition
6705 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6706
6707 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6708 Display truncated_on_left_p and truncated_on_right_p flags.
6709 Formatting fixes.
6710 (pmtxrows): Display the ordinal number of each row. Don't display
6711 rows beyond the last one.
6712
6713 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6714 it is not copied by bidi_copy_it.
6715
6716 2010-05-22 Eli Zaretskii <eliz@gnu.org>
6717
6718 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6719 (Bug#6237)
6720
6721 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * image.c (Fimage_flush): Rename from image-refresh.
6724
6725 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
6726
6727 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6728 just one window.
6729
6730 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6731 (clear_image_cache): If the number of cached images is unusually
6732 large, decrease the cache eviction delay (Bug#6230).
6733
6734 2010-05-21 Glenn Morris <rgm@gnu.org>
6735
6736 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6737 Move these rules to ns.mk.
6738 * ns.mk: New file.
6739
6740 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6741
6742 * Makefile.in (CANNOT_DUMP): New, set by configure.
6743 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6744
6745 2010-05-20 Juri Linkov <juri@jurta.org>
6746
6747 * fileio.c (Fdelete_file): Change interative spec to use
6748 `read-file-name' like in `find-file-read-args' where the default
6749 value is `default-directory' instead of `buffer-file-name'.
6750 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6751
6752 2010-05-20 Kevin Ryde <user42@zip.com.au>
6753
6754 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6755 (Voverriding_terminal_local_map, Vsystem_key_alist)
6756 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6757
6758 2010-05-20 Glenn Morris <rgm@gnu.org>
6759
6760 * Makefile.in (DEPDIR): New constant.
6761 (DEPFLAGS): Set with configure, not cpp.
6762 (MKDEPDIR): New, set by configure.
6763 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6764 (clean): Use $DEPDIR.
6765 (deps_frag): Include from configure.
6766 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6767 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6768
6769 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6770 Fix reallocation of the cache. (Bug#6210)
6771
6772 2010-05-19 Glenn Morris <rgm@gnu.org>
6773
6774 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6775
6776 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6777 (GNULIB_VAR): Remove.
6778 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6779
6780 * m/ibms390x.h (LINKER):
6781 * m/macppc.h (LINKER) [GNU_LINUX]:
6782 * s/aix4-2.h (ORDINARY_LINK):
6783 * s/cygwin.h (LINKER):
6784 * s/darwin.h (ORDINARY_LINK):
6785 * s/gnu.h (ORDINARY_LINK):
6786 * s/netbsd.h (LINKER):
6787 * s/usg5-4.h (ORDINARY_LINK):
6788 Move to configure.
6789
6790 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6791
6792 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
6793
6794 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6795 prevent stack overflow if number of arguments is too large
6796 (Bug#6214).
6797
6798 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
6799
6800 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6801
6802 2010-05-18 Glenn Morris <rgm@gnu.org>
6803
6804 * s/gnu-linux.h: Combine two conditionals.
6805
6806 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6807 $(POST_ALLOC_OBJ).
6808
6809 * Makefile.in (RALLOC_OBJ): New, set by configure.
6810 (rallocobj): Replace with the previous variable.
6811 (otherobj): Use $RALLOC_OBJ.
6812
6813 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6814 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6815
6816 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6817 (gmallocobj, vmlimitobj): Replace with previous two variables.
6818 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6819
6820 2010-05-17 Glenn Morris <rgm@gnu.org>
6821
6822 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6823 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6824
6825 2010-05-16 Glenn Morris <rgm@gnu.org>
6826
6827 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6828
6829 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6830
6831 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6832 trailing "/".
6833
6834 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6835 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6836
6837 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6838 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6839 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6840 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6841 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6842
6843 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6844 Remove ${STARTFLAGS}, nothing ever sets it.
6845
6846 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6847
6848 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6849
6850 2010-05-16 Glenn Morris <rgm@gnu.org>
6851
6852 * Makefile.in (LIBX_BASE): Always define.
6853
6854 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6855
6856 * Makefile.in (LIBXT): Always define.
6857
6858 2010-05-15 Glenn Morris <rgm@gnu.org>
6859
6860 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
6861
6862 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6863 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6864
6865 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
6866
6867 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
6868 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6869
6870 * emacs.c (main): Initialize initial-environment and
6871 process-environment before generating from env, not after.
6872
6873 Handle --version reasonably in CANNOT_DUMP configuration.
6874 * emacs.c (emacs_version, emacs_copyright): New string variables.
6875 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6876 (syms_of_emacs): Defvar them, and initialize them from the C
6877 string variables.
6878 (main): If initialization hasn't been done, print initial version
6879 info from the C strings, instead of starting an interactive session.
6880
6881 2010-05-15 Eli Zaretskii <eliz@gnu.org>
6882
6883 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6884 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
6885 (bidi_paragraph_init): Remove redundant assertion that we are at
6886 the beginning of a line after call to bidi_find_paragraph_start.
6887
6888 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6889 (syms_of_xdisp): Defsubr it.
6890
6891 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6892
6893 * Makefile.in: Fix MSDOS-related comments.
6894
6895 2010-05-15 Glenn Morris <rgm@gnu.org>
6896
6897 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6898 (really-lwlib, really-oldXMenu): Always define.
6899 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6900
6901 * Makefile.in: Simplify cpp conditional.
6902
6903 * Makefile.in (${ns_appdir}): Simplify using umask.
6904
6905 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6906
6907 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6908
6909 * eval.c (specbind): Remove left-over duplicate test.
6910 Disallow let-binding frame-local vars. Add comment.
6911
6912 2010-05-14 Eli Zaretskii <eliz@gnu.org>
6913
6914 Make the cache of bidi iterator states dynamically allocated.
6915 * bidi.c (bidi_cache_shrink): New function.
6916 (bidi_init_it): Call it.
6917 (bidi_cache_iterator_state): Enlarge the cache if needed.
6918
6919 * bidi.c (bidi_move_to_visually_next): Rename from
6920 bidi_get_next_char_visually. All callers changed.
6921
6922 2010-05-14 Kenichi Handa <handa@m17n.org>
6923
6924 * dispextern.h (struct composition_it): New member reversed_p.
6925
6926 * composite.c (composition_compute_stop_pos): Search backward if
6927 ENDPOS < CHARPOS.
6928 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6929 Set CMP_IT->reversed_p.
6930 (composition_update_it): Pay attention to CMP_IT->reversed_p.
6931
6932 * xdisp.c (set_iterator_to_next):
6933 Call composition_compute_stop_pos with negative ENDPOS if we are
6934 scanning backward. Call composition_compute_stop_pos if scan
6935 direction is changed.
6936 (next_element_from_buffer): Call composition_compute_stop_pos with
6937 negative ENDPOS if we are scanning backward.
6938 (next_element_from_composition): Pay attention to
6939 IT->cmp_it.reversed_p.
6940
6941 2010-05-14 Kenichi Handa <handa@m17n.org>
6942
6943 * font.c (font_range): Return the range for the font found at first.
6944
6945 2010-05-14 Glenn Morris <rgm@gnu.org>
6946
6947 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
6948
6949 * Makefile.in (mktime, X11, register): Move undefs to configure.
6950
6951 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
6952 (MSDOS_X_OBJ): New variable.
6953 (MSDOS_SUPPORT_REAL): New constant.
6954 (MSDOS_SUPPORT): Set as a variable, not with cpp.
6955 (obj): Use MSDOS_X_OBJ.
6956 (lisp): Use MSDOS_SUPPORT as a variable.
6957
6958 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
6959 (GPM_MOUSE_SUPPORT): Now it's a constant.
6960 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6961 not cpp.
6962
6963 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
6964 (ns_appresdir): Remove, unused.
6965
6966 * Makefile.in (SHELL): Move outside cpp section.
6967
6968 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
6969
6970 2010-05-13 Glenn Morris <rgm@gnu.org>
6971
6972 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
6973 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
6974
6975 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
6976 HAVE_WINDOW_SYSTEM must be too.
6977
6978 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
6979 (lisp): Remove WINNT_SUPPORT.
6980
6981 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
6982 Let configure set these variables (to empty) in this case as well.
6983
6984 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
6985 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
6986
6987 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
6988 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
6989 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
6990 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
6991 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
6992 the values output by configure.
6993 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
6994
6995 2010-05-12 Glenn Morris <rgm@gnu.org>
6996
6997 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
6998 (LINKER_WAS_SPECIFIED): Remove.
6999
7000 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7001 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7002 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7003 * s/cygwin.h (LIB_GCC):
7004 * s/freebsd.h (LIB_GCC):
7005 * s/gnu-linux.h (LIB_GCC):
7006 * s/msdos.h (LIB_GCC):
7007 * s/netbsd.h (LIB_GCC):
7008 Move to configure.
7009
7010 2010-05-11 Karel Klíč <kklic@redhat.com>
7011
7012 * ftfont.c: Fix incorrect parentheses of #if condition for
7013 definining M17N_FLT_USE_NEW_FEATURE.
7014
7015 2010-05-11 Glenn Morris <rgm@gnu.org>
7016
7017 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7018 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7019
7020 2010-05-10 Eli Zaretskii <eliz@gnu.org>
7021
7022 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7023 unibyte buffers. See
7024 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7025
7026 2010-05-10 Glenn Morris <rgm@gnu.org>
7027
7028 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7029 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7030 (LIBES): Use LIBS_SYSTEM as a variable.
7031 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7032 * s/aix4-2.h (LIBS_SYSTEM):
7033 * s/freebsd.h (LIBS_SYSTEM):
7034 * s/hpux10-20.h (LIBS_SYSTEM):
7035 * s/sol2-6.h (LIBS_SYSTEM):
7036 * s/unixware.h (LIBS_SYSTEM):
7037 Move to configure.
7038
7039 * s/aix4-2.h (MAIL_USE_LOCKF):
7040 * s/bsd-common.h (MAIL_USE_FLOCK):
7041 * s/darwin.h (MAIL_USE_FLOCK):
7042 * s/gnu-linux.h (MAIL_USE_FLOCK):
7043 * s/irix6-5.h (MAIL_USE_FLOCK):
7044 * s/template.h (MAIL_USE_FLOCK):
7045 Move to configure.
7046
7047 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
7048
7049 * Version 23.2 released.
7050
7051 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
7052
7053 * composite.c (autocmp_chars): Save point as marker before calling
7054 auto-composition-function (Bug#5984).
7055
7056 * lisp.h (restore_point_unwind): Add prototype.
7057
7058 * fileio.c (restore_point_unwind): Remove static attribute.
7059
7060 2010-05-08 Kenichi Handa <handa@m17n.org>
7061
7062 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7063 new feature of libotf and m17n-flt.
7064 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7065 Call OTF_check_features even if no specific feature is given.
7066 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7067 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7068 that OUT is NULL. Use OTF_drive_gsub_with_log and
7069 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7070 OTF_drive_gpos.
7071 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
7072 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7073 Setup mflt_enable_new_feature and mflt_try_otf.
7074
7075 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7076
7077 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7078
7079 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7080 box and toolbar (Bug #6139).
7081 (xg_create_tool_bar): Remove comment (Bug #6139).
7082 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7083 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7084
7085 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
7086
7087 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7088 Update dependencies.
7089
7090 2010-05-08 Eli Zaretskii <eliz@gnu.org>
7091
7092 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7093 R2L lines.
7094
7095 2010-05-08 Glenn Morris <rgm@gnu.org>
7096
7097 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7098
7099 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7100 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7101 (termcapobj): Replace with TERMCAP_OBJ.
7102 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7103 (LIBES): Use LIBS_TERMCAP as a variable.
7104
7105 * s/freebsd.h (osreldate.h): No longer include, since this file
7106 does not use __FreeBSD_version any more.
7107
7108 * s/aix4-2.h (TERMINFO):
7109 * s/cygwin.h (TERMINFO):
7110 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7111 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7112 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7113 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7114 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7115 * s/irix6-5.h (TERMINFO):
7116 * s/netbsd.h (LIBS_TERMCAP):
7117 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7118 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7119 * s/usg5-4.h (TERMINFO):
7120 Move to configure.
7121
7122 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7123
7124 * eval.c (unbind_to): Don't unbind a local binding into the global
7125 binding when the local binding disappeared. Inversely, don't unbind
7126 a global binding into a newly created local binding.
7127 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7128 can specify the frame to use, when applicable. Adjust callers.
7129
7130 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
7131 Stefan Monnier <monnier@iro.umontreal.ca>
7132
7133 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7134
7135 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7136
7137 * w32fns.c: Include w32.h.
7138 (Fw32_shell_execute): Decode the error message before passing it
7139 to `error'. (Bug#6126)
7140
7141 * msdos.c (dos_set_window_size):
7142 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7143 instead of `XSYMBOL (foo)->value'.
7144
7145 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7146
7147 Fix the MS-DOS build, broken by autoconfiscation.
7148
7149 * Makefile.in: Don't use Make-style comments past the "start of
7150 cpp stuff" line.
7151 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7152
7153 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7154 edited directly by msdos/sed1v2.inp).
7155
7156 2010-05-07 Glenn Morris <rgm@gnu.org>
7157
7158 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7159 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7160 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7161 move out of cpp section.
7162 * s/freebsd.h (LD_SWITCH_SYSTEM):
7163 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7164 * s/netbsd.h (LD_SWITCH_SYSTEM):
7165 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7166
7167 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7168
7169 Define LIB_STANDARD and START_FILES using autoconf.
7170 * s/usg5-4.h (LIB_STANDARD):
7171 * s/netbsd.h (START_FILES):
7172 * s/irix6-5.h (LIB_STANDARD):
7173 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7174 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7175 * s/freebsd.h (START_FILES):
7176 * s/darwin.h (START_FILES):
7177 * s/cygwin.h (START_FILES):
7178 * s/aix4-2.h (LIB_STANDARD):
7179 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7180 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7181 autoconf, not cpp.
7182
7183 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7184
7185 Remove NEED_BSDTTY and NEED_UNISTD_H.
7186 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7187 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7188 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7189 <sys/ptyio.h> and <unistd.h>.
7190
7191 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7192
7193 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7194 * s/gnu.h (START_FILES): Remove empty definition.
7195
7196 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7197
7198 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7199
7200 2010-05-06 Glenn Morris <rgm@gnu.org>
7201
7202 * Makefile.in (CPP, LN_S): Remove unused variables.
7203
7204 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7205
7206 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7207
7208 2010-05-05 Lawrence Mitchell <wence@gmx.li>
7209
7210 * m/sparc.h: Fix typo in earlier change.
7211
7212 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7213
7214 Misc tweaks.
7215 * eval.c (Fdefvaralias): Remove unintended nested if.
7216 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7217
7218 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
7219
7220 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7221
7222 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7223
7224 Remove BSD_PGRPS.
7225 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7226 * s/gnu-linux.h (BSD_PGRPS): Remove.
7227 * term.c (dissociate_if_controlling_tty):
7228 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7229 (init_sys_modes, reset_sys_modes):
7230 * emacs.c (main):
7231 * callproc.c (Fcall_process, child_setup): Remove code depending
7232 on BSD_PGRPS.
7233
7234 Remove POSIX_SIGNALS.
7235 * s/usg5-4.h (POSIX_SIGNALS):
7236 * s/netbsd.h (POSIX_SIGNALS):
7237 * s/msdos.h (POSIX_SIGNALS):
7238 * s/ms-w32.h (POSIX_SIGNALS):
7239 * s/hpux11.h (POSIX_SIGNALS):
7240 * s/gnu.h (POSIX_SIGNALS):
7241 * s/gnu-linux.h (POSIX_SIGNALS):
7242 * s/freebsd.h (POSIX_SIGNALS):
7243 * s/darwin.h (POSIX_SIGNALS):
7244 * s/cygwin.h (POSIX_SIGNALS):
7245 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7246 * s/unixware.h:
7247 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7248 * process.c (create_process):
7249 * syssignal.h:
7250 * sysdep.c (wait_for_termination, init_signals):
7251 * process.c (create_process):
7252 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7253 remove all code that assumes the contrary.
7254
7255 2010-05-04 Glenn Morris <rgm@gnu.org>
7256
7257 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7258 variable.
7259 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7260 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7261 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7262 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7263 LD_SWITCH_SYSTEM_tmp.
7264 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7265 New variables, set by configure.
7266
7267 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7268 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7269 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7270 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7271 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7272
7273 * s/aix4-2.h (C_SWITCH_SYSTEM):
7274 * m/alpha.h (C_SWITCH_MACHINE):
7275 Move to configure.in.
7276 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7277 New variables, set by configure.
7278 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7279 $c_switch_machine and $c_switch_system.
7280
7281 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7282
7283 * s/hpux10-20.h (LIB_STANDARD): New definition.
7284 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7285 on it, not used anymore.
7286
7287 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
7288
7289 * eval.c (internal_condition_case_n): Rename from
7290 internal_condition_case_2.
7291 (internal_condition_case_2): New function.
7292
7293 * xdisp.c (safe_call): Use internal_condition_case_n.
7294
7295 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7296 (internal_delete_file, Frename_file): Callers changed.
7297
7298 * buffer.c (Fkill_buffer):
7299 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7300
7301 * lisp.h: Update prototypes.
7302
7303 2010-05-03 Glenn Morris <rgm@gnu.org>
7304
7305 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7306 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7307 (LIBXT): Set with configure, not cpp.
7308 (LIBX): Remove.
7309 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7310
7311 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7312
7313 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7314 The FreeBSD is not needed, the default works, Solaris version is
7315 not needed, and the remaining case is not supported by configure.
7316
7317 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7318
7319 * xsmfns.c (CHDIR_OPT): New define.
7320 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7321 restarting emacs.
7322
7323 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7324 shut_down_emacs.
7325
7326 * emacs.c (USAGE1): Mention --chdir.
7327 (main): Handle --chdir.
7328 (standard_args): Add --chdir.
7329 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7330 #5552).
7331
7332 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7333
7334 Remove LD_SWITCH_MACHINE.
7335 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7336 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7337
7338 Clean up IRIX code.
7339 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7340 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7341
7342 Clean up AIX code.
7343 * m/ibmrs6000.inp: Remove file, unused.
7344 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7345 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7346 definition ...
7347 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7348
7349 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7350 unused.
7351
7352 2010-05-01 Eli Zaretskii <eliz@gnu.org>
7353
7354 Emulate POSIX_SIGNALS on MS-Windows.
7355
7356 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7357 (SIG_SETMASK, SIG_UNBLOCK): Define.
7358
7359 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7360 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7361 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7362
7363 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7364 New stubs.
7365
7366 Miscellaneous fixes of bidi display.
7367
7368 * xdisp.c (find_row_end): New function, refactored from display_line.
7369 (display_line): Use it.
7370 (extend_face_to_end_of_line): In almost-filled rows, extend only
7371 if the row is R2L and not continued.
7372 (display_line): Fix prepending of truncation glyphs to R2L rows.
7373 Preserve overlay and string info in row->end.
7374 (insert_left_trunc_glyphs): Support addition of left truncation
7375 glyphs to R2L rows.
7376 (set_cursor_from_row): Don't place cursor on the vertical border
7377 glyph between adjacent windows. Fix a crash when a display string
7378 is continued to the next line. Don't return zero if cursor was
7379 found by `cursor' property of a display string.
7380 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7381 test for that explicitly.
7382
7383 2010-05-01 Glenn Morris <rgm@gnu.org>
7384
7385 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7386 for clarity.
7387 (OTHER_OBJ): Remove.
7388 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7389 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7390
7391 2010-05-01 Karel Klíč <kklic@redhat.com>
7392
7393 * fileio.c (Ffile_selinux_context): Context functions may return null.
7394
7395 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7396
7397 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
7398
7399 2010-04-30 Glenn Morris <rgm@gnu.org>
7400
7401 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7402 (OTHER_OBJ): Define as a separate variable, for clarity.
7403
7404 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7405
7406 * xsettings.c: include limits.h and update file comment.
7407
7408 2010-04-30 Glenn Morris <rgm@gnu.org>
7409
7410 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7411 Set with configure, not cpp.
7412 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7413
7414 * Makefile.in (mallocobj): Remove.
7415 (otherobj): Simplify using @OTHER_OBJ@.
7416
7417 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7418 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7419 Don't bother making nsgui.h dependency platform-specific.
7420
7421 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7422
7423 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7424
7425 * process.c (read_process_output, exec_sentinel): Don't burp if the
7426 sentinel/filter kills the current buffer (bug#6060).
7427
7428 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
7429 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7430 Remove unused var `args'.
7431 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7432 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7433 * doc.c (store_function_docstring): Use XSETCAR.
7434
7435 2010-04-28 Glenn Morris <rgm@gnu.org>
7436
7437 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7438 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7439
7440 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7441
7442 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7443 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7444
7445 * Makefile.in (FONT_OBJ): New, set by configure.
7446 (FONT_DRIVERS): Use $FONT_OBJ.
7447
7448 * Makefile.in (LIBXMU): Set with configure, not cpp.
7449 * s/aix4-2.h (LIBXMU):
7450 * s/hpux10-20.h (LIBXMU):
7451 Remove definition, now set in configure.
7452
7453 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7454
7455 * m/amdx86-64.h [i386]: Move this test to configure.in.
7456
7457 2010-04-27 Glenn Morris <rgm@gnu.org>
7458
7459 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7460 * s/unixware.h (NEED_LIBW): Remove definition.
7461
7462 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7463 (TOOLKIT_LIBW): New, set by configure.
7464 (@X_TOOLKIT_TYPE@): No longer define it.
7465
7466 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7467 (MOTIF_LIBW): Set with configure, not cpp.
7468 * s/aix4-2.h (LIB_MOTIF):
7469 * s/gnu-linux.h (LIB_MOTIF):
7470 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7471
7472 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7473
7474 Reduce CPP usage.
7475 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7476 (obj): Use autoconf for unexec instead of cpp.
7477 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7478 Remove definitions and undefs. Inline definitions in the only user.
7479 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
7480
7481 2010-04-27 Glenn Morris <rgm@gnu.org>
7482
7483 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7484 since the defaults (set by the system file) are fine in most cases.
7485 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7486 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7487 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7488 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7489 Remove definitions, since they are set correctly in s/gnu-linux.h.
7490 * s/freebsd.h (START_FILES, LIB_STANDARD):
7491 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7492 * s/hpux10-20.h (START_FILES):
7493 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7494 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7495
7496 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7497 (MOTIF_LIBW): Use $LIBXP.
7498 (otherobj): Use $WIDGET_OBJ.
7499
7500 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7501
7502 * Makefile.in (LIBS_MACHINE): Remove, unused.
7503
7504 Use autoconf instead of cpp for LIB_MATH.
7505 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7506 * s/cygwin.h (LIB_MATH): Likewise.
7507 * Makefile.in (LIB_MATH): Do not define with cpp.
7508 (LIBES): Use autoconf for LIB_MATH.
7509
7510 2010-04-26 Kenichi Handa <handa@m17n.org>
7511
7512 * composite.c (Ffind_composition_internal): Fix the return value
7513 for an automatic composition.
7514
7515 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 Remove all NO_ARG_ARRAY uses.
7518 * fns.c (concat2, concat3, nconc2):
7519 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7520 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7521 * m/xtensa.h (NO_ARG_ARRAY):
7522 * m/template.h (NO_ARG_ARRAY):
7523 * m/sparc.h (NO_ARG_ARRAY):
7524 * m/sh3.h (NO_ARG_ARRAY):
7525 * m/mips.h (NO_ARG_ARRAY):
7526 * m/macppc.h (NO_ARG_ARRAY):
7527 * m/iris4d.h (NO_ARG_ARRAY):
7528 * m/intel386.h (NO_ARG_ARRAY):
7529 * m/ibms390x.h (NO_ARG_ARRAY):
7530 * m/ibms390.h (NO_ARG_ARRAY):
7531 * m/ibmrs6000.h (NO_ARG_ARRAY):
7532 * m/ia64.h (NO_ARG_ARRAY):
7533 * m/hp800.h (NO_ARG_ARRAY):
7534 * m/arm.h (NO_ARG_ARRAY):
7535 * m/amdx86-64.h (NO_ARG_ARRAY):
7536 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7537
7538 2010-04-25 Eli Zaretskii <eliz@gnu.org>
7539
7540 * xdisp.c (display_line): Don't assume 2nd call to
7541 get_next_display_element cannot return zero. (Bug#6030)
7542 (iterate_out_of_display_property): New function, body from pop_it.
7543 (pop_it): Use it.
7544
7545 2010-04-24 Glenn Morris <rgm@gnu.org>
7546
7547 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7548 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7549 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7550 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7551
7552 2010-04-24 Eli Zaretskii <eliz@gnu.org>
7553
7554 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7555 use `get_next_display_element' and `set_iterator_to_next' to
7556 advance to the next character, when looking for the character that
7557 begins the next row.
7558
7559 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
7560 definition of "struct Lisp_Symbol".
7561
7562 2010-04-24 Glenn Morris <rgm@gnu.org>
7563
7564 * Makefile.in (CRT_DIR): New variable, set by configure.
7565 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7566 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7567
7568 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7569
7570 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7571
7572 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7573
7574 Remove redundant flags.
7575 * s/freebsd.h (C_SWITCH_SYSTEM):
7576 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7577 * s/netbsd.h (C_SWITCH_SYSTEM):
7578 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7579 of these.
7580
7581 Simplify m/intel386.h.
7582 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7583 user: ecrt0.c.
7584 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7585 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7586 the only user: s/unixware.h.
7587 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7588 from m/intel386.h.
7589 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7590 Definitions moved here from m/intel386.h.
7591
7592 * m/mips.h: Remove #if 0 code.
7593
7594 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7595
7596 Fix display of composed characters from L2R scripts in bidi buffers.
7597 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7598 After advancing IT past the composition, resync the bidi iterator
7599 with IT's position. (Bug#5977)
7600
7601 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7602
7603 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7604 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7605
7606 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7607
7608 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7609
7610 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7611
7612 Support `display' text properties and overlay strings in bidi buffers.
7613 * xdisp.c (pop_it): When the stack is popped after displaying
7614 from a string, bidi-iterate to exit from the text portion covered
7615 by the `display' property or overlay. (Bug#5988, bug#5920)
7616
7617 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7618
7619 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7620 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7621
7622 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7623 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7624
7625 Simplify STARTFILES definition.
7626 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7627 relying on Makefile.in to define it.
7628 * s/cygwin.h (START_FILES): Likewise.
7629 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7630
7631 Clean up Solaris code.
7632 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7633 (LIB_MOTIF): Remove, configure takes care of this.
7634 (NOT_USING_MOTIF): Remove, unused.
7635 * xrdb.c: Remove #if 0-ed #include.
7636 (SYSV): Remove conditional for old SysV.
7637 * sysdep.c (closedir): Remove conditional code for Solaris,
7638 Solaris has closedir.
7639
7640 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7641
7642 * xsettings.c (read_and_apply_settings): Check if current_font is
7643 NULL before strcmp (Bug#6001).
7644
7645 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7646
7647 Clean up HP-UX files.
7648 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7649 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7650 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7651 * s/hpux10-20.h: ... to the only user, here.
7652
7653 2010-04-21 Eli Zaretskii <eliz@gnu.org>
7654
7655 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7656 use buffer-local values of paragraph-start and paragraph-separate.
7657 <paragraph_start_re, paragraph_separate_re>: Rename from
7658 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7659 (Bug#5992)
7660
7661 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7662
7663 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7664 current_tool_bar_style are new.
7665 (store_config_changed_event): Rename from store_font_changed_event.
7666 (XSETTINGS_TOOL_BAR_STYLE): New define.
7667 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7668 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7669 HAVE_XFT.
7670 (something_changedCB): store_font_changed_event is now
7671 store_config_changed_event.
7672 (parse_settings): Rename from parse_xft_settings.
7673 Read non-xft xsettings outside #ifdef HAVE_XFT.
7674 (read_settings): Rename from read_xft_settings.
7675 (apply_xft_settings): Take current settings as parameter. Do not
7676 call read_(xft)_settings.
7677 (read_and_apply_settings): New function.
7678 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7679 Call read_and_apply_settings if there are settings to be read.
7680 (init_xsettings): Rename from init_xfd_settings.
7681 Call read_and_apply_settings unconditionally.
7682 (xsettings_initialize): Call init_xsettings.
7683 (Ftool_bar_get_system_style): New function.
7684 (syms_of_xsettings): Define Qmonospace_font_name and
7685 Qtool_bar_style. Initialize current_tool_bar_style to nil.
7686 defsubr Stool_bar_get_system_style. Fprovide on
7687 dynamic-setting.
7688 Move misplaced HAVE_GCONF
7689
7690 * xsettings.h (Ftool_bar_get_system_style): Declare.
7691
7692 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7693 Qtext, Qboth, Qboth_horiz are new.
7694 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7695 Vtool_bar_style, tool_bar_max_label_size.
7696
7697 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7698
7699 * keyboard.c: QClabel is new.
7700 (parse_tool_bar_item): Take out QClabel from tool bar items.
7701 Try to construct a label if ther is no QClabel.
7702 (syms_of_keyboard): Intern :label as QClabel.
7703
7704 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7705 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7706 New.
7707
7708 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7709 dynamic-setting.el.
7710
7711 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7712 (xg_make_tool_item, xg_show_toolbar_item): New function.
7713 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7714 Call xg_make_tool_item to make a tool bar item.
7715 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7716
7717 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7718 into account for toolbars.
7719
7720 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7721
7722 * data.c (make_blv): Declarations before code (Bug#5993).
7723
7724 2010-04-21 Glenn Morris <rgm@gnu.org>
7725
7726 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7727 Define using autoconf, not cpp.
7728 (LIBXSM): New variable, set by autoconf.
7729 (LIBXT): Use $LIBXSM.
7730
7731 2010-04-21 Dan Nicolaescu <local_user@dannlt>
7732
7733 Remove NOMULTIPLEJOBS, unused.
7734 * s/template.h (NOMULTIPLEJOBS):
7735 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7736
7737 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7738 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7739 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7740 detects -znocombreloc and passes it to the linker
7741 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7742
7743 2010-04-21 Glenn Morris <rgm@gnu.org>
7744
7745 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7746
7747 2010-04-21 Karel Klíč <kklic@redhat.com>
7748
7749 * Makefile.in (LIBSELINUX_LIBS): New.
7750 (LIBES): Add $LIBSELINUX_LIBS.
7751 * eval.c, lisp.h (call7): New function.
7752 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7753 (Ffile_selinux_context, Fset_file_selinux_context):
7754 New functions.
7755 (Fcopy_file): New parameter preserve-selinux-context.
7756 (Frename_file): Preserve selinux context when renaming by copy-file.
7757
7758 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
7759 Eli Zaretskii <eliz@gnu.org>
7760
7761 Don't depend on cm.c or termcap.c on Windows, use stubs.
7762 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7763 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7764 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7765 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7766 (sys_tputs, sys_tgetstr): New stubs.
7767 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7768 (tputs, tgetstr): New; define to sys_*.
7769
7770 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
7771
7772 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7773
7774 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7775
7776 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7777 Just signal a warning rather than an error when inside a let.
7778 (Fmake_variable_frame_local): Add the same test.
7779
7780 * font.c (syms_of_font): Make the style table vars read-only.
7781
7782 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7783 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7784
7785 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7786
7787 2010-04-20 Eli Zaretskii <eliz@gnu.org>
7788
7789 Fix R2L paragraph display on TTY.
7790
7791 * xdisp.c (unproduce_glyphs): New function.
7792 (display_line): Use it when produced glyphs are discarded from R2L
7793 glyph rows.
7794 (append_composite_glyph): In R2L rows, prepend the glyph rather
7795 than appending it.
7796
7797 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7798 rather than append it. Set up the resolved_level and bidi_type
7799 attributes of the appended glyph.
7800 (produce_special_glyphs): Mirror the backslash continuation
7801 character in R2L lines.
7802
7803 Implement display of R2L paragraphs in GUI sessions.
7804
7805 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7806 append_stretch_glyph.
7807 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7808 Fix off-by-one error in computing x at end of text in the row.
7809 (append_stretch_glyph): In reversed row, prepend the glyph rather
7810 than append it. Set resolved_level and bidi_type of the glyph.
7811 (extend_face_to_end_of_line): If the row is reversed, prepend a
7812 stretch glyph whose width is such that the rightmost glyph will be
7813 drawn at the right margin of the window. Fix off-by-one error on
7814 TTY frames in testing whether a line needs face extension.
7815 Fix face extension at ZV. If this is the last glyph row, use
7816 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7817 region face.
7818 (set_cursor_from_row, display_line):
7819 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
7820 row->continuation_lines_width.
7821 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7822 are at ZV. Fixes a crash when reseated to ZV by
7823 try_window_reusing_current_matrix.
7824 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7825 which happens with R2L glyph rows. Fixes a crash when inserting a
7826 character at end of an R2L line.
7827 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7828 treat them as having zero-width characters. Improve comments.
7829 Don't reverse pos_before and pos_after for reversed glyph rows.
7830 Set cursor.x to negative value when the cursor might be on the
7831 left fringe.
7832 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7833 left fringe, not the right one.
7834 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7835 (erase_phys_cursor): For reversed cursor_row, support cursor on
7836 the left fringe.
7837
7838 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7839 of continuation indicators on the fringes.
7840 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7841 left fringe.
7842
7843 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7844 draw cursor on the left fringe.
7845
7846 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7847 cursor on the left fringe.
7848
7849 * dispnew.c (update_text_area): Handle reversed desired rows when
7850 the cursor is on the left fringe.
7851 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7852 below, not by 0, for when the cursor is on the left fringe.
7853
7854 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7855
7856 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7857 widget is a scrollbar.
7858
7859 2010-04-20 Kenichi Handa <handa@m17n.org>
7860
7861 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7862 only when the arg CHARSET_LIST is nil.
7863
7864 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7865
7866 Make variable forwarding explicit rather the using special values.
7867 Basically, this makes the structure of buffer-local values and object
7868 forwarding explicit in the type of Lisp_Symbols rather than use
7869 special Lisp_Objects for that. This tends to lead to slightly more
7870 verbose code, but is more C-like, simpler, and makes it easier to make
7871 sure we handled all cases, among other things by letting the compiler
7872 help us check it.
7873 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7874 Removing forwarding objects.
7875 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7876 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7877 explicit rather than hiding them inside Lisp_Object "values".
7878 (XFWDTYPE): New macro.
7879 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7880 (XBUFFER_LOCAL_VALUE): Remove.
7881 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7882 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7883 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7884 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7885 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7886 Remove the Lisp_Misc_* header.
7887 (struct Lisp_Buffer_Local_Value): Redefine.
7888 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7889 (struct Lisp_Misc_Any): Add filler to get the right size.
7890 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7891 Lisp_Intfwd.
7892 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7893 (DEFVAR_KBOARD): Allocate a forwarding object.
7894 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7895 (let_shadows_global_binding_p): New function.
7896 (union Lisp_Val_Fwd): New type.
7897 (make_blv): New function.
7898 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7899 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7900 (swap_in_symval_forwarding, find_symbol_value, Fset)
7901 (let_shadows_buffer_binding_p, set_internal, default_value)
7902 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7903 (Fkill_local_variable, Fmake_variable_frame_local)
7904 (Flocal_variable_p, Flocal_variable_if_set_p)
7905 (Fvariable_binding_locus):
7906 * xdisp.c (select_frame_for_redisplay):
7907 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7908 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7909 * frame.c (store_frame_param):
7910 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7911 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7912 value structure.
7913 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7914 (clone_per_buffer_values): Only adjust markers into the current buffer.
7915 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7916 (Fbuffer_local_value, set_buffer_internal_1)
7917 (swap_out_buffer_local_variables):
7918 Adapt to the new symbol value structure.
7919 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7920 (defvar_per_buffer): Take a new arg for the fwd object.
7921 (buffer_lisp_local_variables): Return a proper alist (different fix
7922 for bug#4138).
7923 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7924 (Fgarbage_collect): Don't handle buffer_defaults specially.
7925 (mark_object): Handle new symbol value structure rather than the old
7926 special Lisp_Misc_* objects.
7927 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7928 * term.c (set_tty_color_mode):
7929 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7930 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7931 a buffer_local_flags.
7932 * print.c (print_object): Get rid of impossible forwarding objects.
7933
7934 2010-04-19 Eli Zaretskii <eliz@gnu.org>
7935
7936 * bidi.c (bidi_get_type, bidi_get_category)
7937 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
7938 (bidi_type_of_next_char, bidi_level_of_next_char):
7939 Declare static. Use `INLINE' rather than `inline'.
7940
7941 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
7942
7943 * dired.c (Ffile_attributes): Fix typo in docstring.
7944
7945 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7946
7947 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
7948 NSInteger (Bug#5811).
7949
7950 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7951
7952 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
7953 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
7954
7955 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7956
7957 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
7958
7959 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
7960
7961 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
7962 terminal frames (Bug#5837).
7963
7964 2010-04-19 Eli Zaretskii <eliz@gnu.org>
7965
7966 * .gdbinit (xsubchartable): New command.
7967
7968 2010-04-19 Eli Zaretskii <eliz@gnu.org>
7969
7970 * xdisp.c (display_line): Don't write beyond the last glyph row in
7971 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
7972 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
7973 and
7974 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
7975
7976 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7977
7978 * alloc.c (Fpurecopy): Hash-cons if requested.
7979 (syms_of_alloc): Update purify-flag docstring.
7980
7981 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
7982
7983 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
7984 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
7985
7986 2010-04-17 Eli Zaretskii <eliz@gnu.org>
7987
7988 Fix a crash when an NSM character is inserted at BEGV.
7989
7990 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
7991 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
7992 NEUTRAL_B or UNKNOWN_BT.
7993
7994 2010-04-16 Eli Zaretskii <eliz@gnu.org>
7995
7996 * xdisp.c (set_cursor_from_row): Don't consider possibility of
7997 other rows with cursor unless they are different from this row and
7998 this row is part of a continued line. (Bug#5943)
7999
8000 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8001
8002 * s/freebsd.h: Restore osreldate.h include.
8003 Suggested by Naohiro Aota.
8004
8005 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8006
8007 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8008
8009 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8010
8011 * s/cygwin.h: Avoid linking against static libgcc.
8012
8013 2010-04-15 Juri Linkov <juri@jurta.org>
8014
8015 * window.c: Add Qscroll_command.
8016 Remove Vscroll_preserve_screen_position_commands.
8017 (window_scroll_pixel_based, window_scroll_line_based): Check the
8018 `scroll-command' property on the last command instead of searching
8019 the last command in Vscroll_preserve_screen_position_commands.
8020 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8021 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8022 (scroll-preserve-screen-position): Doc fix.
8023 (Vscroll_preserve_screen_position_commands): Remove variable.
8024
8025 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8026
8027 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8028
8029 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8030
8031 Reduce cpp use in Makefile.in.
8032 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8033 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8034 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8035 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8036 (CRT0_COMPILE): Remove, inline it in the only user.
8037
8038 2010-04-14 Juri Linkov <juri@jurta.org>
8039
8040 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8041 `scroll-up-command' and `M-v' from `scroll-down' to
8042 `scroll-down-command'.
8043
8044 2010-04-14 Juri Linkov <juri@jurta.org>
8045
8046 * window.c (Vscroll_preserve_screen_position_commands): New variable
8047 with the default value as the list of Qscroll_down and Qscroll_up.
8048 (window_scroll_pixel_based, window_scroll_line_based): Search the
8049 last command in the list Vscroll_preserve_screen_position_commands
8050 instead of comparing with Qscroll_up and Qscroll_down.
8051
8052 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8053
8054 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8055 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8056 does that.
8057
8058 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8059 to zero.
8060
8061 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8062
8063 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8064
8065 Try to solve the problem of spurious EOF chars in long lines of text
8066 sent to interactive subprocesses.
8067 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8068 (system_process_attributes): Remove unused var `ttotal'.
8069 * process.c (send_process): Don't bother breaking long line with EOF
8070 chars when talking to ttys any more.
8071 (wait_reading_process_output): Output a warning when called in such
8072 a way that it could block without being interruptible.
8073
8074 Try to detect file modification within the same second.
8075 * buffer.h (struct buffer): New field modtime_size.
8076 * buffer.c (reset_buffer): Initialize it.
8077 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8078 (Fverify_visited_file_modtime): Check it.
8079 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8080 (Fset_visited_file_modtime): Set (or clear) it.
8081
8082 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8083
8084 * process.c (status_notify): Remove unused var `ro'.
8085
8086 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8087
8088 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8089 more than one visual (Bug#5938).
8090
8091 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8092
8093 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8094 Undefine.
8095
8096 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8097
8098 Remove C_SWITCH_SYSTEM_TEMACS.
8099 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8100 (malloc, realloc, free): Use emacs, not temacs for conditional
8101 definition.
8102
8103 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8104 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8105
8106 Use autoconf, not cpp for some variables.
8107 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8108 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8109 (ALL_CFLAGS): Use them as make variables.
8110 (really-lwlib, really-oldXMenu): Do not pass them.
8111
8112 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8113
8114 * xmenu.c (apply_systemfont_to_dialog): New.
8115 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8116
8117 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8118
8119 * process.c (exec_sentinel): Preserve current-buffer.
8120
8121 * process.c (read_process_output): Move the save-current-buffer to
8122 apply to both the filter and the non-filter branches.
8123
8124 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8125
8126 * s/msdos.h (UNEXEC): New definition.
8127
8128 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8129
8130 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8131 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8132
8133 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8134 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8135 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8136 TRY_WINDOW_CHECK_MARGINS.
8137
8138 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
8139 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8140 width only when it is for padding.
8141
8142 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8143
8144 * xfns.c (Fx_show_tip): Call try_window in a loop until
8145 fonts_changed_p is zero (Bug#2423).
8146
8147 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8148
8149 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8150 the end of TEXT_AREA. (Bug#5856)
8151
8152 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8153
8154 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8155 HAVE_GCONF.
8156
8157 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8158
8159 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8160 prev.orig_type, for resolving type of NSM. (Bug#5858)
8161
8162 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8163
8164 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8165 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8166 in current_font.
8167 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
8168 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8169 New functions.
8170 (syms_of_xsettings): Initialize current_font.
8171 defsubr Sfont_get_system_normal_font.
8172
8173 * xsettings.h (Ffont_get_system_normal_font)
8174 (xsettings_get_system_normal_font): Declare.
8175
8176 * xfns.c (extern xlwmenu_default_font): Remove.
8177 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8178 to xlwmenu.c.
8179
8180 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8181 menu items in UTF-8.
8182
8183 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8184 (apply_systemfont_to_menu): New function.
8185 (set_frame_menubar, create_and_show_popup_menu):
8186 Call apply_systemfont_to_menu.
8187
8188 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8189
8190 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8191 FRAME_LINE_TO_PIXEL_Y.
8192
8193 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8194 pixelwidth/height.
8195
8196 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8197
8198 Simplify code for HP machines.
8199 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8200 for GNU_LINUX, not needed.
8201 (UNEXEC, NEED_BSDTTY): Move definitions...
8202 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8203
8204 * m/iris4d.h (UNEXEC): Move definition ...
8205 * s/irix6-5.h (UNEXEC): ... here.
8206
8207 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8208
8209 * xfns.c (set_machine_and_pid_properties): New function.
8210 (Fx_create_frame): Call set_machine_and_pid_properties.
8211
8212 2010-04-03 Eli Zaretskii <eliz@gnu.org>
8213
8214 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8215 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
8216 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8217
8218 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8219 in this function. (Bug#5703)
8220
8221 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
8222
8223 * nsterm.h: Fix last change.
8224
8225 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8226
8227 * m/intel386.h (NO_REMAP): Move definition ...
8228 * s/msdos.h (NO_REMAP): ... here.
8229
8230 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8231
8232 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8233 used on those platforms.
8234
8235 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8236
8237 Remove extern errno declarations.
8238 * xterm.c:
8239 * xrdb.c:
8240 * w32term.c:
8241 * unexec.c:
8242 * unexaix.c:
8243 * sysdep.c:
8244 * process.c:
8245 * lread.c:
8246 * keyboard.c:
8247 * floatfns.c:
8248 * filelock.c:
8249 * fileio.c:
8250 * emacs.c (main):
8251 * ecrt0.c:
8252 * dispnew.c:
8253 * callproc.c:
8254 * buffer.c: Remove errno extern declarations.
8255 * s/netbsd.h (NEED_ERRNO): Remove.
8256
8257 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8258
8259 Remove all uses of LIBX11_SYSTEM.
8260 * Makefile.in (LIBX11_SYSTEM): Remove.
8261 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8262 instead.
8263
8264 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8265
8266 Remove support for DJGPP v1.x (bug#5813).
8267
8268 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8269 * s/msdos.h:
8270 * unexec.c (make_hdr, copy_text_and_data):
8271 * sysdep.c (wait_for_termination, sys_subshell):
8272 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
8273 (IT_set_terminal_modes, __write, _rename, gethostname)
8274 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8275 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8276 the value of __DJGPP__.
8277 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8278 compatibility code.
8279 * lread.c:
8280 * gmalloc.c (memalign):
8281 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8282 * emacs.c (main):
8283 * dosfns.c (init_dosfns):
8284 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8285
8286 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8287
8288 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8289 string with `cursor' property comes from an `after-string'
8290 overlay. (Bug#5816)
8291
8292 2010-04-01 Glenn Morris <rgm@gnu.org>
8293
8294 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8295 Define as Makefile variables.
8296 (LIBX): Use above variables rather than directly using autoconf.
8297
8298 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8299
8300 Clean up BSD_SYSTEM use.
8301 * xterm.c:
8302 * process.c:
8303 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8304 for including <sys/ioctl.h>.
8305 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8306 code is only used for MSDOS.
8307
8308 2010-03-31 Juri Linkov <juri@jurta.org>
8309
8310 * image.c: Add `Qextension_data'.
8311 (syms_of_image): Initialize and staticpro `Qextension_data'.
8312 (Fimage_metadata): Rename from `Fimage_extension_data'.
8313 (gif_load): Put GIF extension data to the property
8314 `Qextension_data'.
8315
8316 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8317
8318 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8319 * nsterm.h: Fix prototype.
8320
8321 2010-03-31 Eli Zaretskii <eliz@gnu.org>
8322
8323 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8324 trailing whitespace in right-to-left rows.
8325
8326 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8327
8328 Get rid of the direct_output optimizations.
8329 * keyboard.c (nonundocount): Remove extern declaration.
8330 (command_loop_1): Remove brittle optimisation for cheap and
8331 common operations.
8332 * xdisp.c (redisplay_internal): Don't bother checking
8333 redisplay_performed_directly_p any more.
8334 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8335 any more.
8336 * dispnew.c (redisplay_performed_directly_p)
8337 (direct_output_for_insert, direct_output_forward_char):
8338 * dispextern.h (redisplay_performed_directly_p)
8339 (direct_output_for_insert, direct_output_forward_char): Remove.
8340 * cmds.c (nonundocount): Make it static.
8341
8342 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
8343
8344 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8345
8346 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
8347
8348 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8349 invisible (Bug#5766).
8350
8351 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
8352
8353 * xdisp.c (x_consider_frame_title, update_window_cursor):
8354 Remove HAVE_NS conditionals.
8355 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
8356
8357 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8358 filename for the title.
8359 (ns_set_doc_edited): Do nothing if the selected window is a
8360 minibuffer window.
8361
8362 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8363 ns_set_doc_edited.
8364
8365 * nsterm.m: Remove unneeded prototype.
8366
8367 2010-03-31 Glenn Morris <rgm@gnu.org>
8368
8369 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8370 in the DOC file. (Bug#5336)
8371
8372 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8373
8374 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8375
8376 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8377
8378 * window.c (keys_of_window): Remove redundant/overridden bindings.
8379
8380 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8381
8382 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8383 Restore original behavior when the iterator is not bidi_p.
8384
8385 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8386
8387 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8388
8389 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8390
8391 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8392 are outside the range of cached character positions.
8393
8394 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
8395
8396 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8397
8398 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8399
8400 Initial support for bidirectional editing.
8401
8402 * Makefile.in (obj): Include bidi.o.
8403 (bidi.o): New target.
8404
8405 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8406 ($(BLD)/bidi.$(O)): New target.
8407
8408 * bidi.c: New file.
8409
8410 * buffer.h (struct buffer): New members bidi_display_reordering
8411 and bidi_paragraph_direction.
8412
8413 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8414 and bidi_paragraph_direction.
8415 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8416 and bidi-paragraph-direction.
8417 (Fbuffer_swap_text): Swap the values of
8418 bidi_display_reordering and bidi_paragraph_direction.
8419
8420 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8421 (bidi_type_t, bidi_dir_t): New types.
8422 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8423 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8424 prev_stop, base_level_stop, and eol_pos.
8425 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8426 (IT_STACK_SIZE): Enlarge to 5.
8427 (struct glyph_row): New member reversed_p.
8428 <string_buffer_position>: Update prototype.
8429 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8430 glyph_row if bidi_it.paragraph_dir == R2L.
8431 (struct glyph): New members resolved_level and bidi_type.
8432
8433 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8434 processing or buffer's direction is right-to-left.
8435 (prepare_desired_row): Preserve the reversed_p flag.
8436 (row_equal_p): Compare the reversed_p attributes as well.
8437
8438 * xdisp.c (init_iterator): Initialize it->bidi_p.
8439 Call bidi_init_it and set it->paragraph_embedding from the current
8440 buffer's value of bidi_paragraph_direction.
8441 (reseat_1): Initialize bidi_it.first_elt.
8442 (set_iterator_to_next, next_element_from_buffer): Use the value of
8443 paragraph_embedding to determine the paragraph direction.
8444 (set_iterator_to_next): Under bidi reordering, call
8445 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8446 new_paragraph flag is set in the bidi iterator.
8447 (next_element_from_buffer): If bidi_it.first_elt is set,
8448 initialize paragraph direction and find the first character to
8449 display in the visual order. If reseated to a middle of a line,
8450 prime the bidi iterator starting at the line's beginning.
8451 Handle the situation where we overstepped stop_charpos due to
8452 non-linearity of the bidi iteration. Likewise for when we back up
8453 beyond the previous stop_charpos. When moving across stop_charpos,
8454 record it in prev_stop.
8455 (display_line): Set row->end and it->start for the next row to the
8456 next character in logical order. Always extend reversed_p rows to
8457 the end of line, even if they end at ZV. Copy the reversed_p flag
8458 to the next glyph row. Keep calling set_cursor_from_row for
8459 bidi-reordered rows even if we already have a possible candidate
8460 for cursor position. Set row_end after all the row's glyphs have
8461 been produced, by looping over the glyphs. Record the position
8462 after EOL in it->eol_pos, and use it to set end_pos of the last
8463 row produced for a continued line.
8464 <Qright_to_left, Qleft_to_right>: New variables.
8465 (syms_of_xdisp): Initialize and staticpro them.
8466 (string_buffer_position_lim): New function.
8467 (string_buffer_position): Most of code moved to
8468 string_buffer_position_lim. Last argument and return value are
8469 now EMACS_INT; all callers changed.
8470 (set_cursor_from_row): Rewritten to support bidirectional text and
8471 reversed glyph rows.
8472 (text_outside_line_unchanged_p, try_window_id):
8473 Disable optimizations if we are reordering bidirectional text and the
8474 paragraph direction can be affected by the change.
8475 (append_glyph, append_composite_glyph)
8476 (produce_image_glyph, append_stretch_glyph): Set the
8477 resolved_level and bidi_type members of each glyph.
8478 (append_glyph): If the glyph row is reversed, prepend the glyph
8479 rather than appending it.
8480 (handle_stop_backwards): New function.
8481 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8482 (reseat): call handle_stop_backwards to recompute prev_stop and
8483 base_level_stop for the new position.
8484 (handle_invisible_prop): Under bidi iteration, skip invisible text
8485 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8486 paragraph direction. Update IT->prev_stop after skipping
8487 invisible text.
8488 (move_it_in_display_line_to): New variables prev_method
8489 and prev_pos. Compare for strict equality in
8490 BUFFER_POS_REACHED_P.
8491 (try_cursor_movement): Examine all the candidate rows that occlude
8492 point, to return the best match. If rows are bidi-reordered
8493 and point moved backwards, back up to the row that is not a
8494 continuation line, and start looking for a suitable row from
8495 there.
8496
8497 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8498 rather than appending, if the glyph_row's reversed_p flag is set.
8499 Set the resolved_level and bidi_type members of each glyph.
8500
8501 * .gdbinit (pbiditype): New command.
8502 (pgx): Use it to display bidi level and type of the glyph.
8503 (pitx): Display some bidi information about the iterator.
8504 (prowlims, pmtxrows): New commands.
8505
8506 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8507
8508 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8509 * s/usg5-4.h (LIBS_DEBUG):
8510 * s/irix6-5.h (C_DEBUG_SWITCH):
8511 * s/gnu-linux.h (LIBS_DEBUG):
8512 * s/darwin.h (LIBS_DEBUG):
8513 * s/bsd-common.h (LIBS_DEBUG):
8514 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8515 * m/iris4d.h (LIBS_DEBUG):
8516 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8517
8518 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8519 (LIBS_DEBUG): Remove definition.
8520
8521 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
8522
8523 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8524 Windows.
8525
8526 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8527
8528 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8529 `connect' (Bug#5723).
8530
8531 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
8532
8533 * process.c (Fmake_network_process): Call `select' for interrupted
8534 `connect' rather than creating new socket (Bug#5173).
8535
8536 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
8537
8538 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8539
8540 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8541
8542 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8543
8544 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8545
8546 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8547 XLoadQueryFont.
8548
8549 2010-03-24 Kenichi Handa <handa@m17n.org>
8550
8551 * coding.c (decode_coding_ccl): Fix previous change for the
8552 multibyte case.
8553 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8554 case that the output buffer is fullfilled.
8555 (encode_coding): Setup ccl program here.
8556
8557 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8558
8559 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8560
8561 Simplify LIBS_MACHINE definitions.
8562 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8563 * m/iris4d.h (LIBS_MACHINE): Likewise.
8564 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8565 * s/aix4-2.h (LIBS_SYSTEM): ... here.
8566 * s/netbsd.h: Remove commented out code.
8567
8568 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8569
8570 Remove dead code dealing with POSIX_SIGNALS.
8571 * atimer.c (set_alarm): Remove dead code, all USG systems define
8572 POSIX_SIGNALS.
8573 * data.c (arith_error): Likewise.
8574 * keyboard.c (input_available_signal, handle_user_signal)
8575 (interrupt_signal): Likewise.
8576 * process.c (sigchld_handler): Likewise.
8577 (create_process): Remove if 0 code. Remove HPUX conditional when
8578 !defined (POSIX_SIGNALS), it cannot be true.
8579 * syssignal.h: Remove USG5_4 and USG conditionals when
8580 !POSIX_SIGNALS, they cannot be true.
8581
8582 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8583 NO_SOCK_SIGIO, not used anymore.
8584
8585 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8586
8587 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8588 support vax on BSDs.
8589
8590 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8591 * s/aix4-2.h (ORDINARY_LINK): ... here.
8592
8593 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8594
8595 * Makefile.in (abs_builddir): Define.
8596 (bootstrap_exe): Use it.
8597 (VPATH): Use $(srcdir) instead of @srcdir@.
8598
8599 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8600
8601 * Makefile.in (bootstrap_exe): Use an absolute name.
8602
8603 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8604
8605 Remove support for old GNU/Linux using libc version 5.
8606 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8607 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8608
8609 Consolidate redundant definitions in s/bsd-common.h.
8610 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8611 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8612 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8613 doing it in all files that include this one.
8614 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8615 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8616 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8617 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8618 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8619 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8620 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8621 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8622 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8623
8624 Consolidate redundant definitions.
8625 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8626 it's undefined in all files that include this one.
8627 (POSIX_SIGNALS): Define here instead of doing it in all files that
8628 include this one.
8629 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8630 (POSIX_SIGNALS): Do not define.
8631 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8632 (POSIX_SIGNALS): Do not define.
8633 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8634 (POSIX_SIGNALS): Do not define.
8635
8636 Remove support for old UNIX System V systems.
8637 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8638 * s/usg-5-4-2.h: Remove.
8639
8640 Remove support for Solaris on PPC and for old versions.
8641 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8642 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8643 that cancel each other.
8644 * s/sol2-3.h:
8645 * s/sol2-4.h:
8646 * s/sol2-5.h: Remove.
8647 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8648 (NO_REMAP): Remove, unused.
8649 (UNEXEC): Move definition ...
8650 * s/aix4-2.h (UNEXEC): ... here.
8651
8652 * s/openbsd.h: Remove support for non-ELF and for systems that do
8653 not support shared libraries.
8654 * s/netbsd.h:
8655 * s/freebsd.h: Likewise.
8656
8657 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8658
8659 Remove non-working support for lynxos 3.0.
8660 * s/lynxos.h: Remove file.
8661
8662 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8663 COFF_BSD_SYMBOLS, nothing defines it anymore.
8664
8665 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8666
8667 Remove obsolete uses of HAVE_SHM.
8668 * emacs.c (standard_args):
8669 (Fdump_emacs):
8670 (syms_of_emacs): Remove code depending on HAVE_SHM.
8671
8672 * alloc.c: Remove HAVE_SHM dependent definition.
8673
8674 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8675
8676 2010-03-18 Glenn Morris <rgm@gnu.org>
8677
8678 * emacs.c (USAGE4): Hard-code bug address.
8679 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8680 (bug_reporting_address): Remove.
8681 (main): Don't call bug_reporting_address.
8682
8683 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8684 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8685
8686 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
8687
8688 * xfns.c (Fx_create_frame):
8689 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8690 on left.
8691
8692 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8693
8694 * editfns.c (Fformat): Account for string precision when computing
8695 field width (Bug#5710).
8696
8697 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
8698
8699 * xfns.c (Fx_create_frame): Set default to Qright.
8700
8701 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8702 all window systems.
8703
8704 2010-03-12 Eli Zaretskii <eliz@gnu.org>
8705
8706 These changes remove termcap.c from the build on Posix platforms.
8707 * Makefile.in (termcapobj): Move termcap.o from here...
8708 (MSDOS_OBJ): ...to here.
8709 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8710 now identical to when LIBS_TERMCAP is defined.
8711
8712 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8713
8714 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8715
8716 * config.in: Regenerated. (See top-level ChangeLog.)
8717
8718 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
8719
8720 * Branch for 23.2.
8721
8722 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8723
8724 Cleanup setup of gl_state in various parts of the code.
8725 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8726 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8727 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8728 (skip_chars):
8729 * regex.c (regex_compile): Use it.
8730 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8731 it's now set in regex_compile when/if we need it.
8732
8733 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8734
8735 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8736 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8737 (QUIT): Use it to consolidate code and remove redundancy.
8738 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8739
8740 * regex.c (regex_compile): Setup gl_state as well.
8741
8742 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8743 (in_classes): Use CONSP before XCAR/XCDR.
8744
8745 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
8746
8747 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8748 definitions, so that keyboard macros are correctly handled
8749 (Bug#5481).
8750
8751 2010-03-02 Eli Zaretskii <eliz@gnu.org>
8752
8753 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8754 text that could be relocated inside the call to emacs_mule_char.
8755 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8756 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8757
8758 2010-03-02 Kenichi Handa <handa@m17n.org>
8759
8760 * character.c (parse_str_as_multibyte): Fix handling of the
8761 multibyte form of raw-bytes.
8762 (str_as_multibyte): Likewise.
8763
8764 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8765 form of raw-bytes.
8766
8767 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
8768
8769 * charset.c (load_charset_map_from_file)
8770 (load_charset_map_from_vector): Zero out allocated
8771 charset_map_entries before using them.
8772
8773 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8774
8775 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8776
8777 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
8778
8779 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8780 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
8781
8782 2010-02-26 Kenichi Handa <handa@m17n.org>
8783
8784 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8785
8786 * xdisp.c (reseat_to_string): Fix previous change.
8787
8788 2010-02-26 David Reitter <david.reitter@gmail.com>
8789
8790 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8791 Lisp_Object (Bug#4736).
8792
8793 2010-02-25 Kenichi Handa <handa@m17n.org>
8794
8795 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8796
8797 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8798
8799 * xterm.c (XTflash): Move declarations before statements.
8800
8801 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8802 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8803 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8804 (xg_create_tool_bar): Remove unused variables.
8805 (x_wm_set_size_hint): Move declarations before statements.
8806 (xg_create_frame_widgets): Remove variable grav.
8807
8808 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
8809
8810 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8811
8812 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8813
8814 * term.c (fatal): Add a final \n if needed (bug#5596).
8815
8816 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
8817
8818 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8819
8820 2010-02-18 Glenn Morris <rgm@gnu.org>
8821
8822 * callint.c (Finteractive): Doc fix.
8823
8824 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8825
8826 * coding.c (record_conversion_result):
8827 Handle CODING_RESULT_INSUFFICIENT_DST.
8828 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8829 memory allocation error.
8830
8831 2010-02-17 Kenichi Handa <handa@m17n.org>
8832
8833 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8834 Fix for the case that the output buffer is fullfilled.
8835 (decode_coding): Setup ccl program here. Keep looping when the
8836 decoder stopped because the output buffer is
8837 fullfilled (bug#5534).
8838
8839 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8840
8841 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8842
8843 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
8844 bug #5571.
8845 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
8846 overdrawn.
8847
8848 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8849
8850 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8851 doing_interact here.
8852 (ice_connection_closed): New function.
8853 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8854 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8855 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8856 returns I/O error.
8857 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8858 bug #5512.
8859
8860 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
8861
8862 * nsfont.m (nsfont_open): The system's value for the font descent
8863 is negative, so round it down to avoid clipping.
8864
8865 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
8866
8867 * charset.c (load_charset_map_from_file)
8868 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
8869 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
8870
8871 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
8872
8873 * charset.c (load_charset_map_from_file): Allocate large
8874 charset_map_entries structure on the heap rather than the stack.
8875 (Bug#5526).
8876
8877 2010-01-31 Kenichi Handa <handa@m17n.org>
8878
8879 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
8880 size in NAME is invalid, return -1 (Bug#5396).
8881
8882 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
8883
8884 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8885 <deactivated@gmail.com> (Bug#3605).
8886
8887 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
8888
8889 * fileio.c (Frename_file): Correctly rename symlinks to
8890 directories (Bug#5496).
8891
8892 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8893
8894 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8895
8896 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8897
8898 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8899
8900 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
8901
8902 * frame.c (DEFAULT_ROWS): Change default to 35.
8903
8904 * xfns.c (x_default_font_parameter): Change default XFT font to
8905 monospace-10 (Bug#3643).
8906
8907 2010-01-29 Eli Zaretskii <eliz@gnu.org>
8908
8909 * w32inevt.c (key_event): Remove unnecessary comparison of
8910 event->uChar.AsciiChar with 128.
8911
8912 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
8913
8914 * fileio.c (Frename_file): Fix last change (Bug#5487).
8915
8916 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8917
8918 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8919
8920 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8921
8922 * xfns.c (Fx_create_frame): Remove window size matching code from
8923 2010-01-15.
8924 (x_get_current_desktop, x_get_desktop_workarea): Remove.
8925
8926 2010-01-27 Jason Rumney <jasonr@gnu.org>
8927
8928 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
8929 (key_event): Use unicode for characters 128 and higher (Bug#4567).
8930
8931 2010-01-27 Kenichi Handa <handa@m17n.org>
8932
8933 * regex.c (analyse_first): Fix setting of fastmap for unibyte
8934 pattern string (Bug#4209).
8935
8936 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
8937
8938 * fileio.c (Frename_file): Call copy-directory and
8939 delete-directory for directories, in order to handle cross-device
8940 renaming (Bug#3353).
8941
8942 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
8943
8944 * xfns.c (Fx_create_frame): If frame height is too big, try
8945 sizes 24 and 10. Bug #3643.
8946
8947 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
8948
8949 Try and fix bug#788, hopefully for real this time.
8950 * keymap.c (shadow_lookup): Add `remap' arg.
8951 (describe_map, describe_vector): Update calls to shadow_lookup.
8952 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
8953 `remapped' so this flag is applicable to `sequence'. Be careful to
8954 perform remapping during shadow_lookup check of remapped_sequences.
8955
8956 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
8957
8958 * image.c (png_load): Use png_sig_cmp instead of the obsolete
8959 png_check_sig, which has been removed in libpng 1.4.
8960
8961 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8962
8963 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
8964 lacks this header file).
8965
8966 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8967
8968 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
8969 as in Emacs 22.
8970
8971 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8972
8973 * lisp.h (make_pure_string): String pointer arg now points to const.
8974
8975 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
8976 args now point to const.
8977
8978 2010-01-22 Eli Zaretskii <eliz@gnu.org>
8979
8980 * lread.c (Fload): Don't treat files without .elc extension as
8981 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
8982 them. (bug#5303)
8983
8984 2010-01-20 Kenichi Handa <handa@m17n.org>
8985
8986 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
8987 treat the source as actual byte sequence.
8988
8989 2010-01-19 Alan Mackenzie <acm@muc.de>
8990
8991 Fix spurious before-change-functions invocation from (insert ?\n).
8992 * textprop.c (set_text_properties): Rename parameter
8993 `signal_after_change_p' to `coherent_change_p', and make the
8994 invocation of `modify_region' conditional on it.
8995
8996 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
8997
8998 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
8999 for debug purpose.
9000 (syms_of_xsettings): Declare xft-settings.
9001
9002 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
9003
9004 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9005
9006 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9007
9008 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9009
9010 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
9011
9012 * emacs.c (standard_args): Adjust arg priorities to reflect how
9013 they are processed in startup.el.
9014
9015 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9016
9017 * Makefile.in (lisp, shortlisp): Update.
9018
9019 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9020
9021 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9022 code, link the new kboard into all_kboard before running Lisp code,
9023 and protect the new terminal with GCPRO (Bug#5365).
9024 (x_term_init): Remove unused var `atom'.
9025 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9026
9027 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9028
9029 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9030 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9031 to find out usable size of the desktop. Don't make frames larger than
9032 this. Bug #3643.
9033
9034 2010-01-15 Kenichi Handa <handa@m17n.org>
9035
9036 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9037
9038 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
9039
9040 * nsterm.m (Qnone): Define.
9041
9042 * nsfns.m (Qnone): Move definition to nsterm.m.
9043
9044 2010-01-14 Kenichi Handa <handa@m17n.org>
9045
9046 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9047 systems.
9048
9049 2010-01-14 Kenichi Handa <handa@m17n.org>
9050
9051 Make auto-composition work on all buffers even if they are
9052 fundamental mode.
9053
9054 * composite.c (Vauto_composition_mode): New variable.
9055 (composition_compute_stop_pos): Check Vauto_composition_mode
9056 instead of Vauto_composition_function.
9057 (composition_adjust_point, Ffind_composition_internal): Likewise.
9058 (syms_of_composite): Declare Lisp variable
9059 "auto-composition-mode" here.
9060
9061 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
9062
9063 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9064 during call to vendor-specific-keysyms (Bug#5365).
9065
9066 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9067
9068 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9069 Call SIGNAL_THREAD_CHECK (Bug#5333).
9070
9071 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9072 Call SIGNAL_THREAD_CHECK.
9073
9074 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9075
9076 Try to fix bug#5314. This is probably not the final word, tho.
9077 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9078 recent-auto-save-p as a side-effect.
9079 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9080 * buffer.c (Fkill_buffer, reset_buffer):
9081 * editfns.c (Fsubst_char_in_region):
9082 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9083 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9084
9085 2010-01-13 Kenichi Handa <handa@m17n.org>
9086
9087 Display buffer name, etc. in mode line by composing correctly.
9088
9089 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9090 STRING is not nil.
9091 (display_mode_element): Adjust for the change of
9092 decode_mode_spec and display_line.
9093 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9094 (display_string): Handle the case that STRING is non-null and
9095 LISP_STRING is not nil.
9096
9097 * xterm.c (x_draw_composite_glyph_string_foreground):
9098 Pay attention to s->face->overstrike.
9099
9100 * composite.c (composition_reseat_it): Don't check PT if STRING is
9101 non nil.
9102
9103 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9104
9105 * keyboard.c (read_char): Don't apply previous change when current
9106 buffer is unchanged by command execution.
9107
9108 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9109
9110 * keyboard.c (read_char): Return after executing from special map.
9111
9112 2010-01-12 Glenn Morris <rgm@gnu.org>
9113
9114 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9115 bug-gnu-emacs rather than emacs-pretest-bug.
9116
9117 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
9118
9119 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9120 initializing the Lisp variables that depend on them.
9121
9122 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9123
9124 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9125 Clear areas that will not be updated after change of menu bar lines.
9126 Clear the menu bar window's current matrix when the window gets empty.
9127
9128 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
9129
9130 * intervals.h, textprop.c (extend_property_ranges): Return value
9131 and args changed. Discard properties that begin at or after the
9132 new end (Bug#5306).
9133
9134 * editfns.c (Fformat): Caller changed.
9135
9136 * nsterm.m (ns_set_default_prefs): Delete function.
9137 (syms_of_nsterm): Initialize ns_command_modifier,
9138 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9139 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9140
9141 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9142 position (Bug#4040).
9143
9144 2010-01-09 Eli Zaretskii <eliz@gnu.org>
9145
9146 * editfns.c (Ffloat_time): Doc fix.
9147
9148 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9149
9150 * xfns.c (Fx_create_frame): Don't create frame larger than display
9151 by default bug#3643.
9152
9153 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9154
9155 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9156 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9157 windows above internal border.
9158
9159 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9160 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9161 windows above internal border.
9162
9163 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9164 tool bar windows specially.
9165
9166 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9167
9168 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9169 specially.
9170 (XTflash): Take account of menu bar height.
9171
9172 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9173 specially.
9174
9175 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9176
9177 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
9178 also be true before we can return early (bug #5339).
9179
9180 2010-01-06 David Reitter <david.reitter@gmail.com>
9181
9182 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9183 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9184 (Bug#3233).
9185
9186 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9187
9188 * font.c (font_open_entity): Enable chache and call cached_font_ok
9189 for the driver if defined.
9190 (QCuser_spec): New symbol.
9191 (font_spec_from_name): Save name as user-spec.
9192 (font_load_for_lface): Keep user-spec instead of name.
9193 (font_open_by_name): Save name as user-spec.
9194 (syms_of_font): Initialize QCuser_spec.
9195 (font_clear_prop): Clear name if it exists in font (bug#5157).
9196
9197 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9198 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9199 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9200
9201 * font.h (struct font_driver): Add cached_font_ok.
9202
9203 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9204
9205 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9206
9207 * xterm.c (x_new_font): Move code for setting rows/cols before
9208 resizing ...
9209 (x_set_window_size): ... to here. Bug #2568.
9210
9211 * gtkutil.c (xg_clear_under_internal_border): New function.
9212 (xg_frame_resized, xg_frame_set_char_size):
9213 Call xg_clear_under_internal_border.
9214 (xg_update_scrollbar_pos): Clear under old scroll bar position.
9215
9216 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
9217
9218 * keyboard.c (read_key_sequence): Catch keyboard switch after
9219 making a new tty frame (Bug#5095).
9220
9221 2010-01-05 Kenichi Handa <handa@m17n.org>
9222
9223 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9224
9225 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9226
9227 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9228 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9229 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9230
9231 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
9232
9233 * dbusbind.c (xd_add_watch): Improve debug message.
9234 (xd_remove_watch): Improve debug message. If DATA is the session
9235 bus, unset D-Bus session environment.
9236 (Fdbus_init_bus): Pass the bus as argument to
9237 dbus_connection_set_watch_functions. (Bug#5283)
9238
9239 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
9240
9241 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9242
9243 * lread.c (syms_of_lread): Make it clearer that these are the
9244 names of loaded files (Bug#5068).
9245
9246 * eval.c (run_hook_with_args): Handle the case where the global
9247 value has the obsolete single-function form (Bug#5026).
9248
9249 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
9250
9251 * minibuf.c (Fall_completions): Minor optimization.
9252
9253 2009-12-26 Eli Zaretskii <eliz@gnu.org>
9254
9255 * .gdbinit (pgx): Fix display of composite glyphs.
9256 Display cmp.from and cmp.to as well.
9257 (pitx): Fix last change.
9258
9259 2009-12-25 Kenichi Handa <handa@m17n.org>
9260
9261 * composite.h (composition_adjust_point): Update prototype.
9262
9263 * composite.c (composition_reseat_it): Don't make a composition
9264 spanning over point.
9265 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9266 composable characters.
9267 (composition_adjust_point): New arg NEW_PT. Callers changed.
9268
9269 * keyboard.c (command_loop_1): Force redisplay if the last point
9270 was within a composition.
9271 (adjust_point_for_property): Don't adjust point for automatic
9272 composition when called after buffer modification.
9273
9274 2009-12-19 Eli Zaretskii <eliz@gnu.org>
9275
9276 * .gdbinit (pitx): Don't use enum names, use their values.
9277 Remove reference to non-existing value GET_FROM_COMPOSITION.
9278 (pgx): Don't use enum names, use their values.
9279 (pitmethod): New helper command.
9280 (pitx): Use it to display iteration method.
9281 (pgrowit): New command.
9282
9283 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9284
9285 Update dependencies in Makefile.in.
9286
9287 * Makefile.in (alloc.o): Depend on termhooks.h.
9288 (atimer.o): Depend on blockinput.h.
9289 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9290 and frame.h.
9291 (callint.o): Depend on systime.h, coding.h, and composite.h.
9292 (callproc.o): Depend on buffer.h.
9293 (casefiddle.o): Don't depend on charset.h.
9294 (casetab.o): Depend on character.h.
9295 (ccl.o): Depend on composite.h.
9296 (chartab.o): Depend on ccl.h.
9297 (cm.o): Depend on dispextern.h.
9298 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9299 (coding.o): Don't depend on $(INTERVALS_H).
9300 (composite.o): Don't depend on dispextern.h explicitly (it's in
9301 $(INTERVALS_H)). Depend on ccl.h.
9302 (data.o): Depend on systime.h, coding.h, composite.h,
9303 dispextern.h, font.h, and ccl.h.
9304 (dired.o): Depend on composite.h.
9305 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9306 composite.h (it's in $(INTERVALS_H)).
9307 (doc.o): Depend on systime.h, coding.h, and composite.h.
9308 (editfns.o): Don't depend explicitly on dispextern.h.
9309 (emacs.o): Depend on frame.h and coding.h.
9310 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9311 (fileio.o): Depend on frame.h and commands.h. Don't depend
9312 explicitly on dispextern.h.
9313 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9314 composite.h.
9315 (fns.o): Don't depend on termhooks.h.
9316 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9317 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9318 coding.h, $(INTERVALS_H), window.h, xterm.h.
9319 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9320 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9321 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9322 fontset.h, ccl.h, and ftfont.h.
9323 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9324 (gtkutil.o): Depend on dispextern.h and composite.h.
9325 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9326 termhooks.h, and ccl.h.
9327 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9328 (intervals.o): Depend on systime.h and coding.h.
9329 (keyboard.o): Depend on composite.h and coding.h.
9330 (keymap.o): Depend on coding.h and frame.h.
9331 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9332 (macros.o): Depend on systime.h, coding.h, and composite.h.
9333 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9334 and atimer.h.
9335 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9336 dispextern.h explicitly.
9337 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9338 Don't depend explicitly on dispextern.h and composite.h.
9339 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9340 (regex.o): Don't depend on charset.h.
9341 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9342 (search.o): Don't depend explicitly on composite.h.
9343 (sound.o): Depend on atimer.h and systime.h.
9344 (syntax.o): Don't depend explicitly on composite.h.
9345 (sysdep.o): Depend on coding.h and composite.h.
9346 (term.o): Depend on xterm.h and buffer.h.
9347 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9348 (textprop.o): Don't depend on dispextern.h explicitly.
9349 (undo.o): Depend on dispextern.h.
9350 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9351 dispextern.h and composite.h explicitly.
9352 (xdisp.o): Depend on ccl.h.
9353 (xfaces.o): Depend on coding.h and ccl.h.
9354 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9355 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9356 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9357 ftfont.h.
9358 (xgselect.o): New dependency.
9359 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9360 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9361 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9362 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9363 (xsmfns.o): Depend on frame.h and dispextern.h.
9364 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9365 sysselect.h.
9366
9367 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9368
9369 * font.c (Fclear_font_cache): Pass correct cache argument to
9370 font_clear_cache.
9371
9372 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9373
9374 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9375 twice.
9376
9377 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
9378
9379 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9380 calling file-remote-p. Reported by Jim Meyering.
9381
9382 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
9383
9384 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
9385 avoid compiler warnings. (Bug #5217)
9386
9387 2009-12-14 Kenichi Handa <handa@m17n.org>
9388
9389 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9390 in 8-bit encoding.
9391
9392 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
9393
9394 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9395 tooltip windows.
9396
9397 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9398
9399 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9400 Xatom_net_window_type.
9401
9402 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9403 Xatom_net_window_type.
9404
9405 * xterm.c (my_log_handler): New function.
9406 (x_term_init): Set my_log_handler as log handler during gtk_init
9407 so we can filter out buggy messages. (Bug #5120).
9408
9409 * xterm.c (xg_scroll_callback): Parameter list changed,
9410 use parameter GtkScrollType to determine scroll/line/page.
9411 Only allow dragging if a button < 4 is grabbed (bug #5177).
9412 (xg_end_scroll_callback): New function.
9413 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9414 xg_create_scroll_bar.
9415
9416 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9417 (scroll_end_callback): Remove.
9418 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9419 button-release-event. Replace value-changed event with change-value,
9420 bug #5177.
9421 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9422 bug #5177.
9423
9424 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9425 (xg_create_scroll_bar): Add GCallback end_callback.
9426
9427 * xftfont.c (QClcdfilter): New variable.
9428 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9429 (syms_of_xftfont): Initialize QClcdfilter.
9430
9431 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9432
9433 * xsettings.c (struct xsettings): Add member seen.
9434 (parse_xft_settings): Update member seen with what we have read.
9435 Return non-zero if Xft-settings have been parsed, 0 otherwise.
9436 (apply_xft_settings): Only update Xft settings with what member seen
9437 indicates as new.
9438
9439 2009-12-12 Eli Zaretskii <eliz@gnu.org>
9440
9441 * dispextern.h (struct text_pos): Use EMACS_INT.
9442 (struct glyph): Use EMACS_INT for charpos.
9443 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9444 region_beg_charpos, region_end_charpos,
9445 redisplay_end_trigger_charpos, and also for
9446 iterator_stack_entry.end_charpos and
9447 iterator_stack_entry.stop_charpos.
9448
9449 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9450
9451 * gtkutil.c (scroll_end_callback): New function (bug #5177).
9452 (xg_create_scroll_bar): Call scroll_end_callback on button release
9453 event (bug #5177).
9454 (xg_event_is_for_scrollbar): != replaced with ==.
9455
9456 2009-12-12 Kenichi Handa <handa@m17n.org>
9457
9458 * ftfont.c (struct ftfont_info): New member matrix.
9459 (ftfont_open): Setup xftfont_info->matrix.
9460 (MFLTFontFT): New member matrix.
9461 (FLOOR, CEIL, ROUND): New macros.
9462 (ftfont_get_metrics): Handle matrix transformation.
9463 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9464
9465 * xftfont.c (struct xftfont_info): New member matrix.
9466 (xftfont_open): Setup xftfont_info->matrix.
9467
9468 2009-12-10 Kenichi Handa <handa@m17n.org>
9469
9470 * xdisp.c (append_space_for_newline): Consider face-remapping.
9471
9472 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9473
9474 * xsettings.c: Include "keyboard.h".
9475
9476 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9477
9478 Fix implicit function declarations.
9479 * cmds.c: Include "frame.h".
9480 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9481 * frame.h: Move declaration of delete_frame outside of
9482 HAVE_WINDOW_SYSTEM.
9483
9484 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9485
9486 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9487
9488 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9489 GTK builds.
9490
9491 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9492
9493 * unexelf.c (unexec): Don't search for .data twice.
9494
9495 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
9496
9497 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9498 if push failed.
9499 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9500 of push_display_prop (Bug#5000).
9501
9502 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9503 value of font_list_entities (Bug#5085).
9504
9505 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
9506
9507 Fix `string-to-number' to deal consistently with integers and floats.
9508 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9509 trailing characters, not just whitespace.
9510 (read1): Pass new arg 0 to keep old behavior.
9511 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9512 trailing chars, as it is already done for integers. Doc fixes.
9513 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9514
9515 2009-12-04 Eli Zaretskii <eliz@gnu.org>
9516
9517 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9518 Delete unused enumeration value.
9519
9520 2009-12-03 Eli Zaretskii <eliz@gnu.org>
9521
9522 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9523
9524 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9525
9526 * process.c (Fmake_network_process): Fix up the tests for
9527 "connectionless socket", so they DTRT for seqpacket sockets as well.
9528
9529 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9530
9531 * process.c (Qseqpacket): New symbol.
9532 (HAVE_SEQPACKET): New macro.
9533 (Fmake_network_process): Accept new :type `seqpacket'.
9534 (init_process): Add `seqpacket' feature when applicable.
9535 (syms_of_process): Initialize Qseqpacket.
9536
9537 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9538
9539 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9540 if entity is Qnil.
9541
9542 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9543
9544 * print.c (print_preprocess): Preprocess the key_and_value table of
9545 hashtables, even tho they're "hidden" (bug#5082).
9546
9547 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9548
9549 * frame.c (frame_make_pointer_invisible)
9550 (frame_make_pointer_visible): Declare f before statements.
9551
9552 2009-11-28 Eli Zaretskii <eliz@gnu.org>
9553
9554 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9555 omitted dependencies on lisp.h.
9556
9557 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9558
9559 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9560 is NULL.
9561
9562 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9563
9564 * frame.c (frame_make_pointer_invisible)
9565 (frame_make_pointer_visible): Just return if there isn't any selected
9566 frame.
9567
9568 * search.c (simple_search): Remove warning by making *p const.
9569
9570 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9571
9572 * xdisp.c (power_letter): Remove duplicate const.
9573
9574 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9575
9576 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9577
9578 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
9579 defaults (bug #5025).
9580
9581 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9582
9583 * insdel.c (adjust_markers_for_delete): Move it in the
9584 right direction! (bug#4803)
9585
9586 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9587
9588 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9589
9590 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9591
9592 2009-11-24 Glenn Morris <rgm@gnu.org>
9593
9594 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9595
9596 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9597
9598 * Makefile.in: Must create deps for ecrt0.o in its rule.
9599
9600 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9601 because that is what Gtk+ font dialog understands.
9602
9603 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9604 of Fcopy_sequence.
9605 (font_open_by_name): Put name given into QCname for font-object returned.
9606
9607 * frame.c (x_set_font): Save original font name as frame parameter
9608 font-parameter.
9609
9610 * xsettings.c (set_default_xft_settings): New function.
9611 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9612 is found.
9613
9614 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9615
9616 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9617 searching backwards through multibyte buffer.
9618
9619 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9620
9621 * xterm.c: #include xgselect.h.
9622 (x_initialize): Call xgselect_initialize.
9623
9624 * xsettings.c (something_changedCB): C++ comments => C comments.
9625 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9626 does that now.
9627
9628 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9629 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9630 (scroll_bar_button_cb): Remove.
9631 (create_menus): C++ comments => C comments. Don't bind grab-notify
9632 event.
9633 (xg_create_scroll_bar): Don't bind button-press-event and
9634 button-release-event.
9635
9636 * process.c: Include xgselect.h if defined (USE_GTK) ||
9637 defined (HAVE_GCONF).
9638 (wait_reading_process_output): Call xg_select for the same condition.
9639
9640 * xgselect.c (xg_select): New function to better integrate with
9641 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9642
9643 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9644
9645 * Makefile.in (XOBJ): Add xgselect.o.
9646
9647 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9648
9649 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9650 Remove ignored second argument. All callers changed.
9651 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9652 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9653 * xdisp.c (string_char_and_length): Likewise.
9654
9655 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9656
9657 * xterm.c (x_new_font):
9658 * print.c (print_object):
9659 * cmds.c (Fself_insert_command): Move declarations before statements.
9660
9661 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9662
9663 * s/cygwin.h: Remove unneeded linker flags.
9664
9665 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9666
9667 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9668
9669 * xsettings.h: Declare xsettings_get_system_font.
9670
9671 * xsettings.c (xsettings_get_system_font): New function.
9672 (init_gconf): No use initiating gconf unless we have Xft also.
9673 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9674 HAVE_GCONF.
9675
9676 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9677 add a blank entry so it doesn't collapse into nothing.
9678
9679 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9680
9681 * lread.c (Funintern): Comment out last change.
9682
9683 2009-11-19 Richard Stallman <rms@gnu.org>
9684
9685 * lread.c (Funintern): Error if symbol is t or nil.
9686
9687 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9688
9689 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9690 representation of Lisp integers.
9691 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9692
9693 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9694
9695 * lisp.h: Remove declaration of Ffont_get_system_font.
9696 * xfns.c: Move include of "xsettings.h".
9697 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9698
9699 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9700
9701 * xsettings.c (something_changedCB, Ffont_get_system_font):
9702 Check use_system_font.
9703 (syms_of_xsettings): DEFVAR font-use-system-font.
9704
9705 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9706
9707 * xfns.c (x_default_font_parameter): Remove dead assignment.
9708
9709 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9710
9711 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9712
9713 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
9714 not have FC_LCD_*. #define them if not there.
9715
9716 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
9717
9718 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9719
9720 * xterm.c (handle_one_xevent): Call xft_settings_event for
9721 ClientMessage, PropertyNotify and DestroyNotify.
9722 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9723 Call xsettings_initialize.
9724
9725 * xftfont.c (xftfont_fix_match): New function.
9726 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9727 Call xftfont_fix_match after XftFontMatch.
9728
9729 * xfont.c (xfont_driver): Initialize all members.
9730
9731 * xfns.c (x_default_font_parameter):
9732 Try font from Ffont_get_system_font.
9733 Do not get font from x_default_parameter if we got one from
9734 Ffont_get_system_font.
9735 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
9736
9737 * w32font.c (w32font_driver): Initialize all members.
9738
9739 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9740
9741 * lisp.h: Declare syms_of_xsettings.
9742
9743 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9744 Handle CONFIG_CHANGED_EVENT.
9745
9746 * ftfont.c (ftfont_filter_properties): New function.
9747
9748 * frame.c (x_set_font): Remove unused variable lval.
9749
9750 * font.h (struct font_driver): Add filter_properties.
9751
9752 * font.c (font_put_extra): Don't return if val is nil, it means
9753 boolean option is off.
9754 (font_parse_fcname): Collect all extra properties in extra_props
9755 and call filter_properties for all drivers with extra_props and
9756 font as parameter.
9757 (font_open_entity): Do not use cache, it does not pick up new
9758 fontconfig settings like hinting.
9759 (font_load_for_lface): If spec had a name in it, store it in entity.
9760
9761 * emacs.c (main): Call syms_of_xsettings.
9762
9763 * config.in: HAVE_GCONF is new.
9764
9765 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9766 xsettings.o is new.
9767
9768 2009-11-17 Kenichi Handa <handa@m17n.org>
9769
9770 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9771 back to the default font in case that no suitable font is found.
9772
9773 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9774
9775 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9776 Suggested by Chad Brown <yandros@mit.edu>.
9777 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9778
9779 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9780
9781 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9782
9783 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9784
9785 * Makefile.in: Ignore errors from mkdir when creating deps directory.
9786
9787 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9788
9789 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9790 has a parent.
9791
9792 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
9793 dependency files in deps/. Include those files into Makefile.
9794
9795 * config.in: Generated (AUTO_DEPEND).
9796
9797 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
9798
9799 * dbusbind.c (Vdbus_registered_objects_table): Rename from
9800 Vdbus_registered_functions_table, because it contains also
9801 properties. Fix docstring.
9802 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
9803
9804 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * alloc.c (mark_object): Don't reprocess marked strings.
9807 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9808 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9809
9810 2009-11-13 Kenichi Handa <handa@m17n.org>
9811
9812 * category.c (word_boundary_p): Adjust for the change of the
9813 semantics of Vword_combining_categories.
9814 (Vword_combining_categories): Describe the slight change of the
9815 semantics.
9816
9817 2009-11-13 Eli Zaretskii <eliz@gnu.org>
9818
9819 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9820
9821 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9822
9823 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9824
9825 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9826
9827 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
9828
9829 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9830
9831 2009-11-11 David Reitter <david.reitter@gmail.com>
9832
9833 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9834 variables to fix 2009-11-09 change.
9835
9836 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9837
9838 * process.c (ifflag_def): Make flag_sym constant.
9839 (Fnetwork_interface_info): Use a constant pointer.
9840 (ifflag_table):
9841 * xfns.c (cursor_bits):
9842 * xdisp.c (power_letter):
9843 * termcap.c (speeds, esctab):
9844 * sysdep.c (baud_convert):
9845 * keyboard.c (lispy_accent_codes, modifier_names):
9846 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9847 (jpeg_format, tiff_format, gif_format, svg_format)
9848 (interlace_start, interlace_increment, gs_format):
9849 * gtkutil.c (separator_names):
9850 * fringe.c (swap_nibble):
9851 * fns.c (base64_value_to_char, base64_char_to_value):
9852 * fileio.c (make_temp_name_tbl):
9853 * coding.c (suffixes): Make constant.
9854
9855 * frame.c (make_initial_frame):
9856 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9857 build_string.
9858 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9859
9860 * s/freebsd.h:
9861 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9862
9863 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9864 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9865
9866 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9867 * xterm.c (syms_of_xterm):
9868 * xfaces.c (syms_of_xfaces):
9869 * xdisp.c (syms_of_xdisp):
9870 * lread.c (syms_of_lread):
9871 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9872 build_string.
9873
9874 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9875
9876 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9877
9878 * fns.c (Fplist_get): Merge the active and the commented out code.
9879
9880 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9881
9882 * keyboard.h: Declare timer_check.
9883
9884 * keyboard.c (timer_check_2): New function that does what the old
9885 timer_check did.
9886 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9887 returned, i.e. don't return -1 with timers pending.
9888
9889 * process.c: Remove extern declaration of timer_check.
9890
9891 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9892 even if timer_check returned -1.
9893
9894 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9895 xg_dialog_data.
9896 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9897 the event loop.
9898 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9899 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9900 Destroy the dialog after xg_dialog_run.
9901
9902 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9903
9904 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9905
9906 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9907
9908 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9909
9910 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
9911
9912 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9913
9914 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9915
9916 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9917 w32menu.c, and nsmenu.m.
9918 Simplify the obsolete case where position is nil.
9919 (cleanup_popup_menu): New function, moved from nsmenu.m.
9920 (struct skp): Remove slot `notreal'.
9921 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9922 adjust callers.
9923 (single_menu_item): Adjust call to parse_menu_item.
9924 (syms_of_menu): Defsubr x-popup-menu.
9925 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9926 (keymap_panes): Don't export any more.
9927 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9928 (xmenu_show): Declare.
9929 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9930 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9931 * keyboard.h (parse_menu_item): Update declaration.
9932 * xmenu.c (Fx_popup_menu): Remove.
9933 (syms_of_xmenu): Don't defsubr x-popup-menu.
9934 * w32menu.c (Fx_popup_menu): Remove.
9935 (syms_of_w32menu): Don't defsubr x-popup-menu.
9936 * nsmenu.m (cleanup_popup_menu): Remove.
9937 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9938 moved to menu.c's Fx_popup_menu.
9939 (Fx_popup_menu): Remove.
9940 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9941 menu_items (it's done in menu.c already).
9942
9943 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
9944
9945 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
9946 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
9947
9948 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
9949
9950 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
9951 xmenu_show. Hide any tooltip before opening a menu.
9952 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
9953 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
9954
9955 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9956
9957 Let integers use up 2 tags to give them one extra bit and thus double
9958 their range.
9959 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
9960 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
9961 New macros.
9962 (enum Lisp_Type): Use them. Give explicit values.
9963 (Lisp_Type_Limit): Remove.
9964 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
9965 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
9966 Pay attention to USE_2_TAGS_FOR_INTS.
9967 (INTEGERP): Use LISP_INT_TAG_P.
9968 * fns.c (internal_equal): Simplify the default case.
9969 (sxhash): Use case_Lisp_Int.
9970 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
9971 any more.
9972 (Ftype_of): Use case_Lisp_Int.
9973 (store_symval_forwarding): Take into account the fact that Ints can
9974 now have more than one tag.
9975 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
9976 (buffer_slot_type_mismatch):
9977 * xfaces.c (face_attr_equal_p):
9978 * print.c (print_object):
9979 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
9980 Use case_Lisp_Int.
9981
9982 2009-11-06 Eli Zaretskii <eliz@gnu.org>
9983
9984 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
9985
9986 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
9987 warning.
9988
9989 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
9990
9991 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
9992
9993 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
9994
9995 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
9996 ButtonPressRelease and MotionNotify (bug#4870).
9997
9998 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
9999
10000 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10001
10002 * xterm.c (syms_of_xterm):
10003 * xselect.c (syms_of_xselect):
10004 * xmenu.c (syms_of_xmenu):
10005 * xfns.c (syms_of_xfns):
10006 * xfaces.c (syms_of_xfaces):
10007 * xdisp.c (syms_of_xdisp):
10008 * window.c (syms_of_window):
10009 * w32fns.c (syms_of_w32fns):
10010 * undo.c (syms_of_undo):
10011 * textprop.c (syms_of_textprop):
10012 * terminal.c (syms_of_terminal):
10013 * syntax.c (syms_of_syntax):
10014 * sound.c (syms_of_sound):
10015 * search.c (syms_of_search):
10016 * print.c (syms_of_print):
10017 * minibuf.c (syms_of_minibuf):
10018 * macros.c (syms_of_macros):
10019 * keymap.c (syms_of_keymap, initial_define_key)
10020 (initial_define_lispy_key):
10021 * keyboard.c (syms_of_keyboard):
10022 * insdel.c (syms_of_insdel):
10023 * image.c (syms_of_image):
10024 * fringe.c (syms_of_fringe):
10025 * frame.c (syms_of_frame):
10026 * fontset.c (syms_of_fontset):
10027 * fns.c (syms_of_fns):
10028 * fns.c (syms_of_fns):
10029 * fileio.c (syms_of_fileio):
10030 * fileio.c (syms_of_fileio):
10031 * eval.c (syms_of_eval):
10032 * doc.c (syms_of_doc):
10033 * dispnew.c (syms_of_display):
10034 * dired.c (syms_of_dired):
10035 * dbusbind.c (syms_of_dbusbind):
10036 * data.c (syms_of_data):
10037 * composite.c (syms_of_composite):
10038 * coding.c (syms_of_coding):
10039 * cmds.c (syms_of_cmds):
10040 * charset.c (define_charset_internal, syms_of_character):
10041 * ccl.c (syms_of_ccl):
10042 * category.c (syms_of_category, init_category_once):
10043 * casetab.c (syms_of_casetab):
10044 * casefiddle.c (syms_of_casefiddle):
10045 * callint.c (syms_of_callint):
10046 * bytecode.c (syms_of_bytecode):
10047 * buffer.c (keys_of_buffer, syms_of_buffer):
10048 * alloc.c (syms_of_alloc):
10049 * process.c (syms_of_process, init_process):
10050 * lread.c (syms_of_lread, init_obarray):
10051 * font.c (build_style_table):
10052 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10053 intern_c_string, calls to make_pure_string with
10054 make_pure_c_string. Use pure_cons instead of Fcons.
10055
10056 * process.c (socket_options): Make it const.
10057 (set_socket_option, init_process): Use a const pointer.
10058
10059 * lread.c (intern_c_string): New function.
10060 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10061 (defvar_int): Uset it. Make the name const char*.
10062
10063 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10064 (defvar_int): Update prototypes.
10065 (DEFUN, EXFUN): Support for prototypes is now required.
10066 (intern_c_string): New prototype.
10067 (struct Lisp_Subr): Make symbol_name constant.
10068
10069 * font.c (struct table_entry): Remove unused member. Make NAMES
10070 constant.
10071 (weight_table, slant_table, width_table): Make constant.
10072
10073 * emacs.c (struct standard_args): Make name and longname constant.
10074
10075 * character.h (DEFSYM): Use intern_c_string.
10076
10077 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10078
10079 * alloc.c (make_pure_c_string): New function.
10080
10081 * eval.c (Fautoload): Purecopy all arguments.
10082
10083 2009-11-05 Kenichi Handa <handa@m17n.org>
10084
10085 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10086 the buffer in case of replace.
10087
10088 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10089
10090 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10091
10092 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10093
10094 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10095 when applicable (bug#4851).
10096
10097 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10098 (P_): Support for prototypes is now required.
10099
10100 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
10101
10102 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10103 (Bug#4827).
10104
10105 2009-10-30 Eli Zaretskii <eliz@gnu.org>
10106
10107 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
10108
10109 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10110
10111 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10112
10113 * lread.c (Fload): Purecopy the file name when building
10114 Vpreloaded_file_list.
10115
10116 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10117
10118 * w32fns.c (syms_of_w32fns): Change default value of
10119 w32-scroll-lock-modifier to nil. (Bug#2827)
10120
10121 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10122
10123 * minibuf.c (Fall_completions): Fix typos in docstring.
10124
10125 2009-10-26 Andreas Schwab <schwab@redhat.com>
10126
10127 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10128
10129 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10130
10131 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10132 For delta < 0, skip check that only makes sense when the mini-window
10133 is going to be enlarged. (Bug#4534)
10134
10135 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
10136
10137 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10138 string in menu maps (Bug#4471).
10139
10140 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
10141
10142 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10143 FRAME_NS_VIEW on terminal frames (Bug#4765).
10144
10145 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10146
10147 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10148 DBUS_TYPE_UINTnn separately to get proper sign extension.
10149
10150 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10151 can properly handle unsigned types.
10152 (make_uid, make_gid): Remove.
10153
10154 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10155 types again.
10156
10157 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10158 (system_process_attributes): Likewise.
10159
10160 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10161
10162 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10163
10164 * eval.c (Fautoload): Purecopy the filename. Simplify.
10165
10166 * category.c (Fdefine_category): Purecopy docstring.
10167
10168 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10169
10170 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10171
10172 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10173
10174 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
10175
10176 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10177 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10178 (Bug#4775).
10179
10180 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10181
10182 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10183 (init_fileio_once):
10184 * lisp.h (init_fileio_once): Remove.
10185 * emacs.c (main): Don't call init_fileio_once.
10186
10187 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10188
10189 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10190
10191 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10192
10193 * doprnt.c (doprnt): Fix overflow check.
10194
10195 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10196
10197 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10198
10199 * xterm.h (x_wait_for_event): Declare it.
10200
10201 * xterm.c (pending_event_wait): New variable.
10202 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10203 see pending_event_wait.eventtype.
10204 (handle_one_xevent): Don't change gravity when parent changes.
10205 (x_new_font): Call change_frame_size with new rows/columns before we
10206 try to resize the frame.
10207 (x_wait_for_event): New function.
10208 (x_set_window_size_1): Don't change gravity unless change_gravity
10209 is set.
10210 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10211 don't change frame size, instead wait for the ConfigureNotify.
10212 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10213 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10214 (x_initialize): Initialize pending_event_wait.
10215
10216 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10217 size.
10218
10219 * widget.c (EmacsFrameSetValues): Add comment.
10220 (EmacsFrameSetCharSize): Just call x_set_window_size.
10221
10222 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10223 x_wait_for_event.
10224 (flush_and_sync): Remove again.
10225 (xg_get_font_name): Suggest monospace if no previous font is known.
10226
10227 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10228
10229 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
10230 8th bit, since that only made sense in the ASCII world (bug#4751).
10231
10232 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10233
10234 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10235 processing pending events when event is filtered for input method.
10236 (Bug#3681)
10237
10238 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
10239
10240 * fns.c: Add #endif accidentally removed in previous change.
10241
10242 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10243
10244 * fns.c: Remove code for unsupported system: MAC_OS.
10245 * image.c: Likewise. Include setjmp.h.
10246
10247 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10248
10249 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10250 pixel -1 (bug #4742).
10251
10252 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10253
10254 * process.c (create_pty): Remove conditionals for no longer
10255 supported systems: UNIPLUS and RTU.
10256
10257 * xterm.c:
10258 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10259
10260 * alloc.c: Do not define struct catchtag.
10261 * eval.c: Move struct catchtag definition ...
10262 * lisp.h: ... here.
10263
10264 * image.c: Move png.h #include earlier to avoid warnings.
10265
10266 * xterm.c:
10267 * xsmfns.c:
10268 * xselect.c:
10269 * xrdb.c:
10270 * xmenu.c:
10271 * xftfont.c:
10272 * xfont.c:
10273 * xfns.c:
10274 * xfaces.c:
10275 * xdisp.c:
10276 * window.c:
10277 * widget.c:
10278 * w32xfns.c:
10279 * w32uniscribe.c:
10280 * w32term.c:
10281 * w32select.c:
10282 * w32reg.c:
10283 * w32proc.c:
10284 * w32menu.c:
10285 * w32inevt.c:
10286 * w32heap.c:
10287 * w32font.c:
10288 * w32fns.c:
10289 * w32console.c:
10290 * w32.c:
10291 * w16select.c:
10292 * vm-limit.c:
10293 * unexsol.c:
10294 * unexec.c:
10295 * unexcw.c:
10296 * unexaix.c:
10297 * undo.c:
10298 * tparam.c:
10299 * textprop.c:
10300 * terminfo.c:
10301 * terminal.c:
10302 * termcap.c:
10303 * term.c:
10304 * syntax.c:
10305 * sound.c:
10306 * sheap.c:
10307 * search.c:
10308 * scroll.c:
10309 * region-cache.c:
10310 * regex.c:
10311 * ralloc.c:
10312 * process.c:
10313 * print.c:
10314 * nsterm.m:
10315 * nsselect.m:
10316 * nsmenu.m:
10317 * nsimage.m:
10318 * nsfont.m:
10319 * nsfns.m:
10320 * msdos.c:
10321 * minibuf.c:
10322 * menu.c:
10323 * marker.c:
10324 * macros.c:
10325 * keymap.c:
10326 * keyboard.c:
10327 * intervals.c:
10328 * insdel.c:
10329 * indent.c:
10330 * gtkutil.c:
10331 * ftxfont.c:
10332 * ftfont.c:
10333 * fringe.c:
10334 * frame.c:
10335 * fontset.c:
10336 * font.c:
10337 * fns.c:
10338 * floatfns.c:
10339 * filelock.c:
10340 * fileio.c:
10341 * emacs.c:
10342 * editfns.c:
10343 * dosfns.c:
10344 * doprnt.c:
10345 * doc.c:
10346 * dispnew.c:
10347 * dired.c:
10348 * dbusbind.c:
10349 * data.c:
10350 * composite.c:
10351 * coding.c:
10352 * cmds.c:
10353 * cm.c:
10354 * chartab.c:
10355 * charset.c:
10356 * character.c:
10357 * ccl.c:
10358 * category.c:
10359 * casetab.c:
10360 * casefiddle.c:
10361 * callproc.c:
10362 * callint.c:
10363 * bytecode.c:
10364 * buffer.c:
10365 * atimer.c: Include setjmp.h. (Bug#4643)
10366
10367 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10368
10369 Remove leftover table unibyte_to_multibyte_table.
10370 * character.c (unibyte_to_multibyte_table): Remove.
10371 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10372 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10373 * character.h (UNIBYTE_TO_CHAR): New macro.
10374 (MAKE_CHAR_MULTIBYTE): Use it.
10375 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10376 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10377 (message_dolog, set_message_1):
10378 * search.c (Freplace_match):
10379 * editfns.c (Fcompare_buffer_substrings):
10380 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10381 (concat):
10382 * insdel.c (copy_text, count_size_as_multibyte):
10383 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10384 * term.c (produce_glyphs):
10385 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10386 * regex.c (RE_CHAR_TO_MULTIBYTE):
10387 * cmds.c (internal_self_insert):
10388 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10389
10390 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10391
10392 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10393
10394 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10395
10396 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
10397
10398 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10399
10400 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10401
10402 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10403 still needed under Tiger.
10404
10405 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10406
10407 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10408 __Apple__.
10409
10410 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10411
10412 2009-10-15 Kenichi Handa <handa@m17n.org>
10413
10414 * print.c (print_object): Escape a symbol like "2E10" too.
10415
10416 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
10417
10418 Cleanups and changes for 64-bit compile under Snow Leopard.
10419 Based on suggestions by Erik Charlebois.
10420
10421 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10422
10423 * nsfont.m (ns_char_width): Replace deprecated call.
10424 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10425 cast argument.
10426 (nsfont_open): Use ns_char_width() everywhere.
10427 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
10428
10429 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10430
10431 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10432 where appropriate.
10433
10434 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10435 where appropriate.
10436 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10437 Use stringWithUTF8String.
10438 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10439
10440 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10441 Add formal protocol mention to inheritance.
10442 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10443
10444 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10445 Fix printf format.
10446 (ns_query_color): Use CGFloat where appropriate.
10447 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
10448 (EmacsScroller-mouseDown:): Use long format in printf, and cast
10449 argument.
10450
10451 * config.in (NS_HAVE_NSINTEGER): Drop.
10452
10453 * dbusbind.c (dbus-method-return-internal)
10454 (dbus-method-error-internal): Use long format in printf, and cast
10455 argument.
10456
10457 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10458 in printf, and cast argument.
10459
10460 * process.c (list_processes_1): Use long format in printf, and
10461 cast argument.
10462
10463 2009-10-11 Glenn Morris <rgm@gnu.org>
10464
10465 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10466
10467 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10468
10469 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10470 menu bar with a small width so it doesn't enlarge the frame.
10471
10472 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
10473
10474 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10475
10476 2009-10-06 Glenn Morris <rgm@gnu.org>
10477
10478 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10479 SOME_MACHINE_LISP (this enters indirectly via DOC).
10480
10481 2009-10-05 Eli Zaretskii <eliz@gnu.org>
10482
10483 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10484
10485 2009-10-04 Eli Zaretskii <eliz@gnu.org>
10486
10487 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10488 Doc fix.
10489
10490 2009-10-03 Martin Rudalics <rudalics@gmx.at>
10491
10492 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10493
10494 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
10495
10496 * lisp.h (Qdelete_directory_internal): Remove, because it is not
10497 used anymore outside fileio.c.
10498
10499 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10500
10501 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
10502
10503 * lisp.h (Qdelete_directory_internal):
10504 Declare, instead of Qdelete_directory.
10505
10506 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10507
10508 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10509
10510 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10511
10512 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
10513
10514 * fileio.c (Fdelete_directory_internal): Rename from
10515 Fdelete_directory. It is not a command anymore. It has no file
10516 name handler.
10517
10518 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10519
10520 * xdisp.c (get_next_display_element): Use an enum in last change.
10521
10522 2009-09-28 Kenichi Handa <handa@m17n.org>
10523
10524 * xdisp.c (get_next_display_element): Pay attention to
10525 unibyte_display_via_language_environment in handling
10526 Vnobreak_char_display.
10527
10528 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10529
10530 * nsterm.h (ns_app_name): New extern variable.
10531
10532 * nsterm.m (ns_app_name): New variable.
10533 (ns_term_init): Set and use it.
10534 (ns_term_shutdown): Use it.
10535
10536 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10537 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10538
10539 * nsfns.m (ns_set_name_iconic, ns_set_name)
10540 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10541 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10542
10543 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10544 Remove double-casting in client_data comparison.
10545
10546 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10547
10548 * keyboard.c (make_lispy_event): Remember last wheel direction.
10549 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10550
10551 2009-09-26 Glenn Morris <rgm@gnu.org>
10552
10553 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10554 internal.elc. Add term/pc-win.elc.
10555 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10556 term/x-win.elc.
10557 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10558 term/w32-win.elc.
10559 (NS_SUPPORT): New.
10560 (lisp): Add NS_SUPPORT.
10561 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10562
10563 2009-09-25 David Reitter <david.reitter@gmail.com>
10564
10565 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10566 on Mac OS X 10.6+ (bug#4513).
10567
10568 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10569
10570 * frame.c (xrdb_get_resource): Return nil for empty string resources;
10571 some parts of Emacs code (like font selection) don't grok them.
10572 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
10573
10574 2009-09-24 Andreas Schwab <schwab@redhat.com>
10575
10576 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10577
10578 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10579
10580 * dired.c (Fdirectory_files): Fix typo in docstring.
10581
10582 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10583
10584 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10585 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10586 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10587 under GNUstep.
10588 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10589
10590 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10591 glyph advancement.
10592
10593 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10594
10595 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
10596 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
10597
10598 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10599 deleted (bug #4492).
10600
10601 * nsfont.m (Vns_reg_to_script): New lisp variable.
10602 (syms_of_nsfont): Declare it.
10603 (ns_registry_to_script): New function.
10604 (ns_get_req_script): Call it.
10605 (ns_findfonts): Don't give up on non-unicode registry.
10606
10607 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10608
10609 2009-09-20 Tom Tromey <tromey@redhat.com>
10610
10611 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10612 batch mode (bug#4228).
10613
10614 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
10615
10616 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
10617 carefully. (Bug #4339)
10618
10619 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
10620
10621 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
10622
10623 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10624
10625 * emacs.c (inhibit_x_resources): Update doc string for NS.
10626 (main) [HAVE_NS]: Don't process --no-init-file option.
10627 Remove legacy code for -NXHost. Fix error printf in daemon case.
10628
10629 * nsterm.h (ns_no_defaults): Remove.
10630
10631 * nsterm.m (ns_no_defaults): Remove.
10632 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10633 (ns_use_qd_smoothing): Remove legacy variable.
10634 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10635 don't update the NSWindow itself.
10636 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10637 Improve state detection and store user rect ourselves. (Bug #3581)
10638
10639 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10640 ns_use_qd_smoothing.
10641
10642 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10643 platform versions. Drop support for emacs-20-style face specs.
10644 (x-close-connection): Drop PSFlush() under OS X.
10645 (x-focus-frame): Activate the app first. (Bug #4180)
10646
10647 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
10648
10649 * emacs.c (inhibit_x_resources): New variable.
10650 (main) [HAVE_NS]: Don't process --quick command line option.
10651 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10652
10653 * lisp.h (inhibit_x_resources): Declare it extern.
10654
10655 * w32reg.c (x_get_string_resource):
10656 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10657
10658 2009-09-17 Eli Zaretskii <eliz@gnu.org>
10659
10660 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10661 Add lisp/term/internal.elc.
10662
10663 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10664
10665 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10666 (bug#4461).
10667
10668 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10669
10670 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10671
10672 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10673 (OBJECTS_MACHINE): Remove, unused.
10674
10675 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10676
10677 * frame.c (x_get_resource_string): Remove unused.
10678
10679 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10680
10681 * xterm.c (x_new_font): Call change_frame_size before calling
10682 x_set_window_size, in case frame size won't change.
10683
10684 * frame.c (x_set_font): Remove dead code.
10685
10686 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10687
10688 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10689
10690 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10691
10692 * lread.c (Fload): Don't output a message after loading an obsolete
10693 package any more (done in Lisp now).
10694
10695 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
10696
10697 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10698
10699 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10700
10701 * keymap.c (Fwhere_is_internal): Use nconc2.
10702
10703 2009-09-11 Alan Mackenzie <acm@muc.de>
10704
10705 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10706 batch mode.
10707
10708 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10709
10710 * xdisp.c (display_mode_element): Detect cycles.
10711
10712 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10713
10714 * keymap.c (where_is_internal): Don't erroneously return nil right after
10715 filling the cache.
10716 (where_is_internal_1): Fix up typo.
10717
10718 2009-09-11 Glenn Morris <rgm@gnu.org>
10719
10720 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10721 share a common doc-string.
10722
10723 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10724
10725 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10726 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10727
10728 * keymap.c (QCadvertised_binding): New constant.
10729 (syms_of_keymap): Initialize it.
10730 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10731 if applicable.
10732
10733 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10734
10735 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10736 (parse_menu_item): Streamline since bindings are recomputed all the
10737 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10738 more and don't support lmenu's menu-alias any more either.
10739
10740 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10741 (where_is_internal): Strip it down to only traverse the keymaps.
10742 Move the cache handling from Fwhere_is_internal to here.
10743 (Fwhere_is_internal): Move the handling of remapping and the choice of
10744 the best binding from where_is_internal to here.
10745 Unify the cached/noncached paths, so remapping is also handled
10746 correctly when the cache is used, and so the cache can be used to
10747 speed up remap-handling when applicable.
10748 Give preference to non-remapped bindings.
10749 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10750 non-remapped bindings.
10751 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10752 command remapping.
10753
10754 * xdisp.c (display_mode_element): Move list length limit from 50 to
10755 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10756
10757 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
10758
10759 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10760
10761 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10762
10763 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10764 (Bug#4334)
10765
10766 * keymap.c (where_is_internal): Filter out shadowed remappings.
10767 Assume that where_is_internal returns unshadowed bindings to simplify
10768 the code and get rid of the gotos. Use ASIZE.
10769
10770 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10771
10772 * xterm.c (x_focus_changed): If we get a focusout and pointer
10773 is invisible, make it visible.
10774
10775 * xterm.h: Remove condition for declaration of
10776 x_*_window_to_frame.
10777
10778 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10779
10780 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10781 initial terminal as well.
10782
10783 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10784
10785 * xterm.h: Rename x_non_menubar_window_to_frame to
10786 x_menubar_window_to_frame.
10787
10788 * xterm.c: Remove declarations also in xterm.h.
10789 (XTmouse_position): Do not return valid positions
10790 for clicks in the menubar and the toolbar for Gtk+.
10791
10792 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10793 if the widget for the event has the same top level as a frame,
10794 return the frame.
10795 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10796 internal windows, bug #4122.
10797 (x_non_menubar_window_to_frame): Remove.
10798
10799 2009-09-02 Glenn Morris <rgm@gnu.org>
10800
10801 * buffer.c (default-major-mode): Move most of the doc from here...
10802 (major-mode): ... to here.
10803
10804 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
10805
10806 * process.c (wait_reading_process_output): Keep the descriptor
10807 when pty is used by a non-child process, e.g., in I/O buffer of
10808 GDB this allows inferior to be restarted.
10809
10810 2009-08-29 Eli Zaretskii <eliz@gnu.org>
10811
10812 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10813 both branches into one.
10814
10815 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10816
10817 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10818 (main): Use enable-multibyte-characters rather than
10819 default-enable-multibyte-characters. Output a warning message when
10820 running a unibyte session.
10821
10822 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10823
10824 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10825 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10826 (copy_data_segment): Also copy __program_vars section.
10827 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10828 (dump_it) [LC_DYLD_INFO]: Use it.
10829
10830 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10831
10832 2009-08-28 Eli Zaretskii <eliz@gnu.org>
10833
10834 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10835 $(SRC)/buildobj.h.
10836 (buildobj.h): Rename from $(SRC)/buildobj.h.
10837 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10838 $(SRC)/buildobj.h.
10839 (clean): Add buildobj.h.
10840
10841 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10842
10843 * print.c (print_object): Set escapeflag to 1 when printing
10844 hashtable keys and values.
10845
10846 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10847
10848 * lread.c (read_integer): Use doubles (and potentially return a float
10849 number) as we do in string-to-number.
10850 (read1): Use strtol to read integers, signal errors on strtol's
10851 overflow and use floats if strtol's output is too large for
10852 Elisp integers.
10853
10854 2009-08-27 Eli Zaretskii <eliz@gnu.org>
10855
10856 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10857 (make-buildobj-SH): Fix last change.
10858 (SRC): Move to before where it's first used.
10859
10860 2009-08-27 Kenichi Handa <handa@m17n.org>
10861
10862 * process.c (send_process): Use encode_coding_object instead of
10863 encode_coding_string to perform eol-conversion even if the string
10864 is unibyte.
10865
10866 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10867 character.
10868
10869 * cmds.c (Fself_insert_command): Avoid unnecessay
10870 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
10871
10872 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10873
10874 * callproc.c (Fcall_process): Remove always true #if.
10875
10876 * lisp.h: Replace #if 0 code for checking with text pointing to
10877 the --enable-checking configure flag.
10878
10879 * emacs.c (main): Mention the --enable-profiling configure flag
10880 instead of using CFLAGS.
10881
10882 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
10883
10884 * Makefile.in (buildobj.h): New target.
10885 (doc.o): Depend on it.
10886 (temacs${EXEEXT}): Don't generate buildobj.lst.
10887 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10888 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10889 ($(BLD)/doc.$(O)): Depend on it.
10890 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10891 provided by Eli Zaretskii.)
10892 ($(TEMACS)): Don't generate buildobj.lst.
10893 * doc.c: Include buildobj.h.
10894 (buildobj): New static variable.
10895 (Fsnarf_documentation): Use it, instead of opening and reading
10896 buildobj.lst.
10897
10898 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
10899
10900 * dbusbind.c (Fdbus_call_method)
10901 (Fdbus_call_method_asynchronously): Use English numeric format for
10902 timeout values in doc string.
10903
10904 2009-08-25 Kenichi Handa <handa@m17n.org>
10905
10906 * alloc.c (mark_char_table): New function.
10907 (mark_object): Use mark_char_table for a char-table.
10908
10909 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10910 (CHAR_TABLE_REF): Use it.
10911
10912 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
10913
10914 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10915 before invoking the newly build emacs to check for load-path
10916 shadowing.
10917
10918 2009-08-22 Glenn Morris <rgm@gnu.org>
10919
10920 * Makefile.in (bootstrap_exe): New variable.
10921 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10922 Use ${bootstrap_exe}.
10923
10924 2009-08-22 Eli Zaretskii <eliz@gnu.org>
10925
10926 * coding.h (encode_coding_string): Don't encode unibyte strings.
10927 (Bug#4047)
10928
10929 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
10930
10931 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10932
10933 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10934 intended as hotfix only.
10935 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10936
10937 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10938
10939 * nsterm.m (ns_get_color): Update documentation properly for last
10940 change, and clean up loose ends in the code left by it.
10941 Fix longstanding bug with 16-bit hex parsing, and add support for
10942 yet another X11 format (rgb:r/g/b) for compatibility.
10943 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10944 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
10945
10946 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10947
10948 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
10949
10950 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
10951
10952 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
10953 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
10954 (xd_initialize, xd_pending_messages): Check, whether
10955 $DBUS_SESSION_BUS_ADDRESS is set.
10956
10957 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10958
10959 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
10960
10961 * nsterm.m (ns_get_color): Remove incompatible color formats again.
10962
10963 2009-08-20 Glenn Morris <rgm@gnu.org>
10964
10965 * emacs.c (system-type): Doc fix.
10966
10967 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
10968
10969 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
10970 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
10971
10972 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
10973
10974 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
10975 New functions.
10976 (xd_initialize): Revert change from 2009-08-16.
10977
10978 2009-08-18 Kenichi Handa <handa@m17n.org>
10979
10980 * fontset.c (Ffontset_font): If a nil element is found in a
10981 font-group vector, return nil.
10982
10983 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
10984
10985 * process.c (status_notify): Don't perform redisplay.
10986 (Fdelete_process, list_processes_1, process_send_signal):
10987 Expliticly perform redisplay.
10988 (wait_reading_process_output): Always check process status, but
10989 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
10990
10991 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
10992
10993 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
10994 (XFLOAT_INIT): New macro for storing a float value.
10995 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
10996 * fns.c (sxhash): Copy out the value of a float in order to
10997 examine its bytes.
10998 * dbusbind.c (xd_append_arg): Likewise.
10999
11000 * emacs.c (main): Don't call syms_of_data twice.
11001
11002 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
11003
11004 * dbusbind.c (xd_initialize): Add connection file descriptor to
11005 input_wait_mask, in order to let select() detect, whether a new
11006 message has been arrived.
11007 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
11008
11009 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
11010
11011 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11012 New functions.
11013
11014 * lisp.h (xd_pending_messages): Declare.
11015
11016 * keyboard.c (readable_events): Call xd_pending_messages.
11017
11018 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
11019
11020 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
11021
11022 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11023
11024 * buffer.c (set_buffer_internal_1)
11025 (swap_out_buffer_local_variables): Check for unbound local
11026 variables (Bug#4138).
11027
11028 2009-08-14 Eli Zaretskii <eliz@gnu.org>
11029
11030 * process.c (create_pty): Fix last change.
11031
11032 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
11033
11034 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11035 (xbm_load_image): Caller changed.
11036 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
11037
11038 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
11039
11040 * process.c (create_pty): New function.
11041 (Fstart_process): Use it to allow Emacs to just associate a pty
11042 with the buffer. See associated change in gdb-mi.el.
11043 (list_processes_1): Deal with no program name.
11044 (start_process_unwind): Use pid == -2 to mean no process.
11045
11046 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11047
11048 * cmds.c (nonundocount): New global variable.
11049 (keys_of_cmds): Initialize it.
11050 (Fself_insert_command): Use it to combine upto 20 sequential chars
11051 into a single undo entry, just like the Qself_insert_command code in
11052 keyboard.c does.
11053 Call frame_make_pointer_invisible, also like the Qself_insert_command
11054 code in keyboard.c does.
11055 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11056 than its own local replacement for it.
11057
11058 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
11059
11060 * fns.c (concat): Don't re-set string length to its current value.
11061
11062 * coding.h (decode_coding_string, encode_coding_string):
11063 Use SBYTES macro.
11064
11065 * doprnt.c (doprnt_lisp): Delete unused function.
11066 (doprnt): Merge with doprnt1, discarding lispstrings code.
11067 * lisp.h (doprnt_lisp): Don't declare.
11068
11069 2009-08-07 Juri Linkov <juri@jurta.org>
11070
11071 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11072
11073 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11074
11075 * print.c (syms_of_print): Undo previous change.
11076
11077 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11078
11079 * lread.c (read1, syms_of_lread): Read hashtables back from the
11080 readable format.
11081
11082 * print.c (print_preprocess, print_object): Print hashtables fully
11083 and readably.
11084 (syms_of_print): Provide 'hashtable-print-readable.
11085
11086 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11087
11088 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11089 no family set.
11090 (nsfont_open): Handle case when entity has no family.
11091
11092 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11093
11094 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11095 element, not a list, for match case.
11096
11097 2009-07-28 Kenichi Handa <handa@m17n.org>
11098
11099 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11100 rigidly.
11101
11102 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11103 font_parse_xlfd. Check font properties more rigidly.
11104
11105 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11106
11107 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11108 bsd-common.h.
11109
11110 2009-07-27 Kenichi Handa <handa@m17n.org>
11111
11112 * xfaces.c (face_with_height): Call font_clear_prop.
11113
11114 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
11115
11116 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11117
11118 * xterm.c (x_term_init): Use Qx.
11119
11120 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11121
11122 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
11123 (ns_get_color): Revert 2009-07-16 change.
11124
11125 2009-07-25 Eli Zaretskii <eliz@gnu.org>
11126
11127 * lread.c (syms_of_lread) <force_load_messages>: New variable.
11128 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
11129
11130 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
11131
11132 * coding.h (decode_coding_string, encode_coding_string):
11133 Use SCHARS macro.
11134
11135 * lread.c: Rewrite 2009-07-21 changes.
11136 (load_depth): Delete.
11137 (Qload_in_progress): New variable.
11138 (load_unwind): Don't reference load_depth or load_in_progress.
11139 (Fload): Likewise; specbind Qload_in_progress instead.
11140 (init_lread): Don't initialize load_depth.
11141 (syms_of_lread): Initialize and protect Qload_in_progress.
11142
11143 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11144
11145 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11146
11147 2009-07-23 Yavor Doganov <yavor@gnu.org>
11148
11149 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11150
11151 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11152
11153 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
11154 Bugs 3792, 3720, 2402.
11155 (ns_lookup_indexed_color): Check for bad index.
11156 (ns_index_color): Init unused slot to 0.
11157 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11158 Bug 3714, possibly 3082.
11159
11160 2009-07-22 Jason Rumney <jasonr@gnu.org>
11161
11162 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11163 Position IME window at cursor (Bug#2570).
11164 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11165 (globals_of_w32fns): Dynamically load functions required above.
11166
11167 * w32term.c (w32_draw_window_cursor): Send message to reposition
11168 any IME window.
11169
11170 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11171
11172 * fileio.c: Revert 2009-07-16 changes.
11173 (Vauto_save_include_big_deletions): New variable.
11174 (Fdo_auto_save): Disable auto-save only if
11175 auto-save-include-big-deletions is nil.
11176
11177 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11178
11179 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11180 the overflowed pixels into account (Bug#3879).
11181
11182 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
11183
11184 * lread.c (load_depth): New variable.
11185 (Fload, load_unwind, init_lread): Set it to the load recursion
11186 depth; set load_in_progress as a simple boolean based on the
11187 current load_depth. (Bug#3892)
11188
11189 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11190
11191 * nsfont.m (ns_has_attribute): Remove.
11192 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11193
11194 2009-07-18 Juri Linkov <juri@jurta.org>
11195
11196 * process.c (Fset_process_query_on_exit_flag): Mention killing
11197 a buffer in docstring.
11198
11199 2009-07-17 Kenichi Handa <handa@m17n.org>
11200
11201 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11202
11203 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11204
11205 * nsfns.m (Fns_set_alpha): Remove function.
11206 (syms_of_nsfns): Don't defsubr it.
11207
11208 * nsterm.m (ns_get_color): Remove incompatible color formats.
11209 (ns_color_to_lisp): Generate #rrggbb color format string.
11210
11211 2009-07-16 Richard Stallman <rms@gnu.org>
11212
11213 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11214 (Fset_buffer_auto_saved): Handle save_length = -2.
11215
11216 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
11217
11218 * xterm.c (Qx_gtk_map_stock): New var.
11219
11220 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11221 of calling intern each time.
11222
11223 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11224
11225 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11226 does tiling.
11227
11228 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11229
11230 2009-07-14 Kenichi Handa <handa@m17n.org>
11231
11232 * font.c (font_vconcat_entity_vectors): New function.
11233 (struct font_sort_data): New member font_driver_preference.
11234 (font_compare): Check font_driver_preference.
11235 (font_sort_entities): The format of the first argument changed.
11236 (font_delete_unmatched): Likewise.
11237 (font_list_entities): The return type changed.
11238 (font_select_entity): The format of the second argument changed.
11239 (font_find_for_lface): Adjuste for the above changes.
11240 Don't suppress the checking of C even if the repertory supports it.
11241 (Flist_fonts): Adjust for the above changes.
11242
11243 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11244 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
11245 Reject a font who has adstyle property that is different from a
11246 langname derived from registry property.
11247 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
11248
11249 2009-07-13 Eli Zaretskii <eliz@gnu.org>
11250
11251 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11252 local copy of dirfilename.
11253
11254 2009-07-13 Kenichi Handa <handa@m17n.org>
11255
11256 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11257 against max_char.
11258
11259 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11260 calling XSYMBOL (sym).
11261
11262 2009-07-11 Eli Zaretskii <eliz@gnu.org>
11263
11264 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11265 New function.
11266 (directory_files_internal) [WINDOWSNT]:
11267 Bind w32-get-true-file-attributes to either t or nil, depending whether
11268 the filesystem of the directory is fast or slow.
11269
11270 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11271 file name.
11272 (is_slow_fs): New function.
11273 (stat): Use it to determine whether to issue more system calls to
11274 get accurate file attributes, when w32-get-true-file-attributes is
11275 `local'.
11276
11277 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11278
11279 * xfns.c (Fx_select_font): Remember last font selected in
11280 x_last_font_name and use that the next time. Also try the frame
11281 parameter font-parameter as default to the font dialog.
11282
11283 2009-07-10 Kenichi Handa <handa@m17n.org>
11284
11285 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11286
11287 2009-07-09 Eli Zaretskii <eliz@gnu.org>
11288
11289 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11290
11291 * w32.c (stat): Treat UNC file names as residing on remote
11292 drives. (Bug#3542)
11293
11294 2009-07-09 Kenichi Handa <handa@m17n.org>
11295
11296 * fontset.c (fontset_find_font): Fix previous change.
11297
11298 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
11299
11300 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11301 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11302 error flag.
11303
11304 2009-07-08 Kenichi Handa <handa@m17n.org>
11305
11306 * fontset.c (fontset_find_font): Fix the logic of handling
11307 charset_matched.
11308 (font_for_char): Delete unused var.
11309 (generate_ascii_font_name): Delete it.
11310
11311 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11312
11313 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11314 (encode_coding_sjis): Fix the code range check.
11315
11316 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
11317
11318 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11319 (Fexpand_file_name): Copy string data properly (Bug#3772).
11320
11321 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11322
11323 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11324 first MapNotify.
11325
11326 2009-07-07 Kenichi Handa <handa@m17n.org>
11327
11328 * character.h (unibyte_has_multibyte_table): Delete extern.
11329 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11330
11331 * charset.c (Fset_charset_priority): Update charset_unibyte.
11332 (syms_of_charset): Initialize charset_unibyte.
11333
11334 * character.c (unibyte_has_multibyte_table): Delete it.
11335 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11336 charset_unibyte.
11337 (multibyte_char_to_unibyte_safe): Likewise.
11338 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11339
11340 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
11341 (x_produce_glyphs): Likewise.
11342
11343 * .gdbinit (xcharset): Fix the treating $arg0.
11344
11345 2009-07-04 Eli Zaretskii <eliz@gnu.org>
11346
11347 Emulation of `getloadavg' on MS-Windows.
11348 * w32.c: Include float.h.
11349 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11350 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11351 (get_native_system_info, get_system_times): New functions.
11352 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11353 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11354 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11355 g_b_init_get_system_times, and num_of_processors.
11356
11357 2009-07-03 Jason Rumney <jasonr@gnu.org>
11358
11359 * w32term.c (w32_initialize): Use standard types.
11360
11361 2009-07-03 Eli Zaretskii <eliz@gnu.org>
11362
11363 * dired.c (Ffile_attributes): Decode user and group names by the
11364 locale's encoding. (Bug#3443)
11365
11366 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11367
11368 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11369 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11370
11371 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11372
11373 * term.c (init_tty): Remove spurious #ifdef.
11374
11375 * m/mips.h: Mention this file is also used for netbsd.
11376 * m/pmax.h: Remove file.
11377
11378 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11379
11380 * xterm.h (struct x_display_info): Add invisible_cursor.
11381 (struct x_output): Add current_cursor.
11382
11383 * xterm.c (XTtoggle_invisible_pointer): New function.
11384 (x_define_frame_cursor): Don't define cursor if invisible or the
11385 same as before. Set current_cursor.
11386 (x_create_terminal): Set toggle_invisible_pointer_hook.
11387
11388 * xfns.c (make_invisible_cursor): New function.
11389 (x_set_mouse_color): Call make_invisible_cursor.
11390 Set current_cursor.
11391 (x_window): Set current_cursor.
11392
11393 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11394
11395 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11396 inserting a character.
11397 (read_avail_input): Call frame_make_pointer_visible.
11398
11399 * frame.c (Vmake_pointer_invisible): New variable.
11400 (frame_make_pointer_invisible, frame_make_pointer_visible):
11401 New functions.
11402 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11403
11404 * frame.h: Declare frame_make_pointer_invisible and
11405 frame_make_pointer_visible.
11406 (struct frame): Add pointer_invisible.
11407
11408 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11409
11410 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11411 frame isn't visible.
11412 (xg_frame_resized): If width/height is -1, get size of window
11413 from X server.
11414
11415 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11416 for MapNotify.
11417
11418 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
11419 here or call change_frame_size. Just call flush_and_sync.
11420 (flush_and_sync): Reintroduce.
11421
11422 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
11423
11424 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
11425
11426 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11427 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11428
11429 * frame.h: Declare Qsticky.
11430
11431 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11432
11433 * nsfns.m (ns_frame_parm_handlers): Ditto.
11434
11435 * frame.c: Declare Qsticky.
11436 (frame_parms): Add sticky.
11437
11438 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11439
11440 * xterm.h: Declare x_set_sticky.
11441
11442 * xterm.c (x_set_sticky): New function.
11443
11444 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11445 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11446 xg_tool_bar_proxy_help_callback.
11447
11448 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11449
11450 * frame.c: Qmaximized is new.
11451 (x_set_frame_parameters): Do not handle fullscreen specially.
11452 Only set width and height if explicitly set.
11453 (x_set_fullscreen): Handle Qmaximized.
11454 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11455 (syms_of_frame): Initialize Qmaximized.
11456
11457 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11458 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
11459
11460 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
11461 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11462 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
11463 set gravity to NorthWestGravity when USE_GTK.
11464 (set_wm_state): New function.
11465 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
11466 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11467 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
11468 or the case when no window manager is running. That means remove calls
11469 to x_real_positions and x_fullscreen_adjust.
11470
11471 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11472 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11473 flush_and_sync.
11474 (xg_height_changed): New function.
11475 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
11476 and gtk_window_set_policy. Set frame gravity after parsing the
11477 geometry string.
11478 (xg_update_frame_menubar, free_frame_menubar)
11479 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11480 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11481 Remove calls to xg_frame_set_char_size.
11482
11483 2009-07-01 Kenichi Handa <handa@m17n.org>
11484
11485 * keyboard.c (decode_keyboard_code): New function.
11486 (tty_read_avail_input): Decode the input bytes if necessary.
11487
11488 * coding.c (setup_coding_system):
11489 Initialize coding->carryover_bytes to 0.
11490 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11491 use Qno_conversion.
11492
11493 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11494
11495 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11496
11497 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
11498
11499 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
11500
11501 2009-06-30 Jason Rumney <jasonr@gnu.org>
11502
11503 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11504 is already loaded.
11505 Set user model ID if supported (bug#1849).
11506
11507 2009-06-29 Jim Meyering <meyering@redhat.com>
11508
11509 Remove useless if-before-xfree test.
11510 * nsfont.m (nsfont_close): Remove useless test.
11511 * term.c (delete_tty): Likewise.
11512 * w32.c (system_process_attributes): Likewise.
11513 * w32font.c (w32font_close): Likewise.
11514 * xfaces.c (x_free_gc): Likewise.
11515 * xselect.c (buffer): Likewise.
11516
11517 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11518
11519 * process.c (send_process): Keep decoded string in a local
11520 variable and protect it from GC. (Bug#3521)
11521
11522 2009-06-28 Eli Zaretskii <eliz@gnu.org>
11523
11524 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11525 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11526
11527 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
11528
11529 * xdisp.c (start_display, handle_face_prop)
11530 (move_it_vertically_backward, cursor_row_fully_visible_p)
11531 (redisplay_window, try_window_id, produce_image_glyph):
11532 Delete some #ifdef-ed out code chunks that are now obsolete.
11533
11534 * xterm.c (x_update_window_begin, x_new_focus_frame)
11535 (x_scroll_bar_handle_click, handle_one_xevent)
11536 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11537 (x_make_frame_visible, x_make_frame_invisible)
11538 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11539 code chunks that are now obsolete.
11540
11541 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
11542
11543 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11544 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11545 for hours, when optimzation is enabled.
11546 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11547 (xd_read_message): Make them static.
11548
11549 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11550
11551 * term.c (turn_on_face): Allow simultaneously bold and dim
11552 terminal faces (Bug#3530).
11553
11554 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
11555
11556 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11557
11558 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11559 truncation glyphs (Bug#3686).
11560
11561 2009-06-27 Glenn Morris <rgm@gnu.org>
11562
11563 * m/pmax.h: Restore file, with only netbsd portions.
11564
11565 2009-06-26 David Reitter <david.reitter@gmail.com>
11566
11567 * nsterm.m (keydown): Avoid infinite loop.
11568
11569 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11570
11571 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11572 the arg FORCE_SYMBOL.
11573
11574 2009-06-25 Kenichi Handa <handa@m17n.org>
11575
11576 * fontset.c (fontset_find_font): When a usable rfont_def is found
11577 in a fallback font-group, make it the first element of the group.
11578
11579 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
11580
11581 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11582
11583 2009-06-24 Kenichi Handa <handa@m17n.org>
11584
11585 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11586 set for C.
11587 (fontset_font): Record the availability of a font for C both in
11588 the realized fontsets of the current one and the default one.
11589
11590 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11591
11592 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11593 conditional, it is always defined on AIX.
11594
11595 2009-06-23 Miles Bader <miles@gnu.org>
11596
11597 * window.c (Vrecenter_redisplay): New variable.
11598 (syms_of_window): Initialize it.
11599 (Qtty): New extern declaration.
11600 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11601
11602 2009-06-23 Jim Meyering <meyering@redhat.com>
11603
11604 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11605 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
11606 pointer dereferences are guaranteed to be valid.
11607
11608 2009-06-23 Kenichi Handa <handa@m17n.org>
11609
11610 * emacs.c (main): Call init_font ().
11611
11612 * font.h (Vfont_log): Extern it.
11613 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11614
11615 * font.c (font_sort_entities, font_list_entities)
11616 (font_matching_entity, font_open_entity)
11617 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11618 (Vfont_log): Delete static.
11619 (font_log_env_checked): Delete this variable.
11620 (font_add_log): Don't check font_log_env_checked.
11621 (font_deferred_log): Check Vfont_log.
11622 (init_font): New function.
11623
11624 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11625
11626 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11627
11628 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11629
11630 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11631
11632 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11633 (face_for_char): Don't call font_deferred_log here.
11634 (font_for_char): Likewise.
11635
11636 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
11637
11638 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11639 rather than its background_width for drawing the overline and
11640 underline (Bug#489).
11641
11642 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11643 rather than its background_width for drawing the overline and
11644 underline (Bug#489).
11645 (xg_default_icon_file): New variable.
11646 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11647 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
11648
11649 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11650 (load_overlay_strings): Remove externs.
11651 (fast_find_position): Function deleted.
11652 (mouse_face_from_buffer_pos): New function, based on
11653 fast_find_position. Correctly handle before-strings,
11654 display-strings, and after-strings (Bug#1220).
11655 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11656
11657 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11658
11659 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
11660 (move_it_in_display_line_to, move_it_in_display_line_to)
11661 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11662
11663 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11664
11665 * Branch for 23.1.
11666
11667 2009-06-21 Jason Rumney <jasonr@gnu.org>
11668
11669 * w32term.c (keyboard_codepage): New static variable.
11670 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11671 (w32_read_socket) [WM_CHAR]: Use it to decode character
11672 input (bug#3237).
11673 (w32_initialize): Initialize it.
11674 (codepage_for_locale): New function.
11675
11676 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
11677
11678 * process.c (status_message): Pass Faset index argument as a lisp
11679 object, so as to work with USE_LISP_UNION_TYPE.
11680
11681 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11682
11683 * coding.c (Ffind_coding_systems_region_internal):
11684 Cache checked characters.
11685
11686 2009-06-18 Kenichi Handa <handa@m17n.org>
11687
11688 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
11689
11690 2009-06-18 Andreas Schwab <aschwab@redhat.com>
11691
11692 * xdisp.c (redisplay_internal): Check that the frame is still
11693 live after redisplay of its windows.
11694 (redisplay_windows): Check that the window is still live.
11695
11696 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11697
11698 * coding.c (detect_coding_utf_16): Fix previous change.
11699
11700 2009-06-16 Kenichi Handa <handa@m17n.org>
11701
11702 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11703 UTF-16 by checking the dispersion of Eth and Oth bytes.
11704
11705 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11706
11707 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11708
11709 2009-06-15 Kenichi Handa <handa@m17n.org>
11710
11711 * process.c (status_message): Fix previous change. Be sure to
11712 decode a localized string.
11713
11714 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11715
11716 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11717 add comment explaining why.
11718
11719 2009-06-14 Sidney Markowitz <sidney@sidney.com>
11720
11721 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
11722
11723 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11724
11725 * nsfont.m (ns_attribute_value): Remove.
11726 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11727 (ns_has_attribute): Shrink the normal range.
11728 (ns_findfonts): Don't worry about requested spec in determining
11729 need for synthItal.
11730 (ns_get_covering_families): Retain scriptToFamilies.
11731
11732 2009-06-14 Seiji Zenitani <zenitani@mac.com>
11733
11734 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11735
11736 2009-06-11 Kenichi Handa <handa@m17n.org>
11737
11738 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11739 overhang for the static composition case.
11740
11741 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11742
11743 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11744 overhang for the automatic composition case.
11745
11746 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11747 composition case.
11748
11749 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
11750
11751 * xdisp.c (get_next_display_element): When handling wrap-prefix
11752 and line-prefix, treat \n as a control character (bug#3502).
11753
11754 2009-06-10 Kenichi Handa <handa@m17n.org>
11755
11756 * font.c (font_parse_family_registry): Fix for one-char foundry.
11757 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11758
11759 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11760
11761 * process.c (status_message): Fix handling of multibyte signal
11762 string (Bug#3499).
11763
11764 2009-06-09 Jim Meyering <meyering@redhat.com>
11765
11766 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11767 color name is missing.
11768
11769 2009-06-09 Kenichi Handa <handa@m17n.org>
11770
11771 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11772 FROM-CODE and TO-CODE are codepoints of CHARSET.
11773
11774 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11775
11776 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11777
11778 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11779
11780 Changes to support :script/:lang/:otf in NS font driver.
11781 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11782 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11783 indicate not part of font driver interface, and change callers.
11784 (ns_get_family): Remove pointless null check.
11785 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11786 ns_spec_to_descriptor, ns_descriptor_to_entity.
11787 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11788 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11789 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11790 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11791 (ns_get_req_script, ns_accumulate_script_ranges)
11792 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11793 New functions.
11794 (nsfont_list, nsfont_match): Use ns_findfonts.
11795 (nsfont_open): Use font descriptor instead of traits.
11796 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11797 (dump_glyphstring): Rename to ns_dump_glyphstring.
11798
11799 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11800
11801 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11802
11803 * fontset.c (fontset_from_font): Remove NS-specific code.
11804
11805 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
11806
11807 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11808 nonactive windows.
11809
11810 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
11811
11812 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
11813
11814 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11815
11816 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11817
11818 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
11819
11820 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11821 account for the overflowing of newlines into the last glyph on the
11822 display line (Bug#3482).
11823
11824 2009-06-05 David Reitter <david.reitter@gmail.com>
11825
11826 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11827 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
11828 Fns_selection_exists_p, Fns_selection_owner_p.
11829
11830 2009-06-03 Jason Rumney <jasonr@gnu.org>
11831
11832 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11833 available. (Bug#3379)
11834
11835 2009-05-29 Kenichi Handa <handa@m17n.org>
11836
11837 * coding.c (get_translation_table):
11838 Check Venable_character_translation.
11839
11840 2009-05-26 David Reitter <david.reitter@gmail.com>
11841
11842 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11843 (x_make_frame_visible): Move frame to front rather than calling
11844 ns_raise_frame().
11845 (keyDown:): Do not swallow events that aren't re-sent if frame
11846 isn't key window.
11847 (drawRect:): Do not set visibility/iconified flags because
11848 drawRect may be called by NSView even if the frame is hidden.
11849
11850 * nsfns.m (Fx_create_frame): Follow other ports in
11851 determining visibility; default to t. Ensure async_visible is set.
11852
11853 2009-05-23 Eli Zaretskii <eliz@gnu.org>
11854
11855 * dired.c (Ffile_attributes): Doc fix.
11856
11857 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
11858
11859 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11860
11861 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11862
11863 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11864 and xfont_scratch_props.
11865 (syms_of_xfont): Do it here instead.
11866 (xfont_find_ccl_program): Delete, unused.
11867 (xfont_open): Delete unused var `i'.
11868
11869 2009-05-21 Kenichi Handa <handa@m17n.org>
11870
11871 * fontset.c (Qlatin): Don't make it static.
11872
11873 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11874 New functions.
11875 (xfont_scripts_cache, xfont_scratch_props): New variables.
11876 (Qlatin, Vscalable_fonts_allowed): Extern it.
11877 (xfont_list_pattern): Argument changed. Callers changed.
11878 Check Vscalable_fonts_allowed. Check the support of a script.
11879 (xfont_list): Don't reject a font spec with :script property.
11880 (xfont_has_char): Fix setting of encoding.
11881 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11882 xfont_scratch_props.
11883
11884 2009-05-19 Kenichi Handa <handa@m17n.org>
11885
11886 * font.c (font_sort_entities): Rename from font_sort_entites.
11887 Callers changed.
11888
11889 2009-05-18 Kenichi Handa <handa@m17n.org>
11890
11891 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11892
11893 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11894
11895 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11896 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11897
11898 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11899
11900 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11901 (x_delete_terminal): Dissociate resource database from display and
11902 then call XrmDestroyDatabase before closing display.
11903
11904 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11905
11906 * nsterm.m (ns_read_socket): Remove unused variable.
11907 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11908 whether selected frame is viable before raising it (based on patch
11909 by David Reitter), and improve commentary.
11910 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
11911
11912 2009-05-15 Kenichi Handa <handa@m17n.org>
11913
11914 * font.c (Ffont_spec): Check arguments.
11915
11916 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
11917
11918 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11919 weight when testing attributes (Bug#3282).
11920
11921 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11922
11923 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11924 what we expect to get in the next ConfigureNotify event.
11925
11926 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11927 before Xft one (Bug#1696).
11928
11929 2009-05-07 David Reitter <david.reitter@gmail.com>
11930
11931 * nsfns.m (Fx_display_planes): Compute bitplanes using
11932 NSBitsPerPixelFromDepth (Bug#3207).
11933
11934 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
11935
11936 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11937
11938 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
11939
11940 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11941
11942 2009-05-07 David Reitter <david.reitter@gmail.com>
11943
11944 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11945 Respect mouse face background.
11946
11947 2009-05-07 David Reitter <david.reitter@gmail.com>
11948
11949 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
11950 Mouse movement/highlight: bracket drawing operations
11951 in ns_update_begin and ns_update_end.
11952
11953 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11954
11955 * nsfns.m (ns_get_screen): Rewrite.
11956 Don't presume selected-frame is of type `ns'.
11957
11958 * font.c (font_update_drivers): Sanity fallback to avoid disabling
11959 all drivers.
11960
11961 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
11962
11963 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11964
11965 * keyboard.h (add_user_signal): Fix typo in extern.
11966
11967 * lisp.h (add_user_signal): Remove extern.
11968
11969 * unexelf.c (unexec): Consider a section to precede the .bss section
11970 if its addresses overlap that of .bss.
11971 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
11972 instead of dumping process.
11973
11974 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11975
11976 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
11977
11978 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
11979
11980 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
11981
11982 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
11983
11984 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
11985 any statements.
11986
11987 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
11988
11989 * process.c (read_process_output): Make sure the current buffer is
11990 always restored.
11991
11992 * coding.c (record_conversion_result): Don't modify
11993 Vlast_code_conversion_error for successful result.
11994 (alloc_destination): Don't clobber conversion result. (Bug#1650)
11995
11996 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11997
11998 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
11999 (load_charset_map): Remove unnecessary code.
12000
12001 2009-04-30 David Reitter <david.reitter@gmail.com>
12002
12003 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
12004 through f24.
12005
12006 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
12007
12008 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12009
12010 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12011 face_at_buffer_position.
12012 (face_before_or_after_it_pos, get_next_display_element)
12013 (note_mouse_highlight): Update face_at_buffer_position call.
12014
12015 * term.c (term_mouse_highlight):
12016 * msdos.c (IT_note_mouse_highlight):
12017 * fontset.c (Finternal_char_font):
12018 * font.c (font_at, font_range): Update face_at_buffer_position call.
12019
12020 * dispextern.h (face_at_buffer_position): Update prototype.
12021
12022 2009-04-30 Kenichi Handa <handa@m17n.org>
12023
12024 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
12025
12026 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12027
12028 * callproc.c (Fcall_process): Fix GC protection. Make sure
12029 current buffer is always restored.
12030
12031 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12032
12033 * atimer.c (init_atimer): Also clear stopped_atimers.
12034
12035 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12036
12037 * process.c (create_process): Clean up merger residues of
12038 2008-07-17 change.
12039
12040 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
12041
12042 * lread.c (Vread_circle): New variable.
12043 (read1): Disable recursive read if Vread_circle is nil.
12044
12045 2009-04-29 Kenichi Handa <handa@m17n.org>
12046
12047 * fontset.h (set_default_ascii_font): Delete extern.
12048
12049 * fontset.c (set_default_ascii_font): Delete this unused function.
12050
12051 * frame.c (x_set_font): When ARG is a font-object, check if the
12052 font-object matches with the ASCII font-spec of the frame's
12053 fontset. If not, create a new fontset for the frame. (Bug #3075)
12054
12055 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12056
12057 * fns.c (Flocale_info): Protect vector from GC during decoding.
12058
12059 * process.c (Fstart_process): Protect argv strings from GC during
12060 encoding.
12061
12062 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12063
12064 * sysdep.c: Include <ctype.h>.
12065
12066 2009-04-27 David Reitter <david.reitter@gmail.com>
12067
12068 * nsfont.m (nsfont_open): Remove unused variable shrink.
12069 Remove commented-out code.
12070
12071 2009-04-26 Johan Bockgård <bojohan@gnu.org>
12072
12073 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12074
12075 2009-04-25 Jason Rumney <jasonr@gnu.org>
12076
12077 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12078
12079 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12080
12081 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12082 Swap bytes in short integer if fringe bitmap width > 8.
12083
12084 2009-04-23 Kenichi Handa <handa@m17n.org>
12085
12086 * xfaces.c (Fx_list_fonts): If a font size is specified in
12087 PATTERN, set it in returned scalable fonts.
12088
12089 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
12090
12091 * keyboard.c (Fset_input_meta_mode): Doc fix.
12092
12093 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12094
12095 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
12096
12097 * coding.c (Fterminal_coding_system): Doc fix.
12098
12099 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12100 (Fx_display_pixel_height, Fx_display_planes)
12101 (Fx_display_color_cells, Fx_server_max_request_size)
12102 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12103 (Fx_display_mm_height, Fx_display_mm_width)
12104 (Fx_display_backing_store, Fx_display_visual_class)
12105 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12106 Doc fixes, replacing "terminal id" with "terminal object".
12107 (check_x_display_info): Handle terminal objects instead of
12108 terminal ids.
12109
12110 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12111 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
12112 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12113 Doc fixes, replacing "terminal id" with "terminal object".
12114
12115 2009-04-21 Kenichi Handa <handa@m17n.org>
12116
12117 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
12118 (font_score): Check AVGWIDTH too.
12119
12120 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12121 worst case.
12122 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12123 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
12124
12125 2009-04-19 Jason Rumney <jasonr@gnu.org>
12126
12127 The following changes fix Bug#3005 for wide glyphs on each platform,
12128 without reintroducing Bug#1258 for stretch glyphs.
12129
12130 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12131 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12132 get_phys_cursor_geometry.
12133
12134 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
12135 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12136 using get_phys_cursor_geometry.
12137
12138 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12139 correctly calculated.
12140
12141 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12142
12143 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12144 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
12145 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12146 is deprecated.
12147
12148 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12149
12150 * font.c (font_put_frame_data): Use xfree instead of free.
12151
12152 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
12153
12154 * w32font.c (Qja, Qko): Remove declarations.
12155 (syms_of_w32font): Don't DEFSYM them.
12156
12157 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
12158
12159 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12160
12161 * font.h (Qja, Qko): Extern them.
12162
12163 * ftfont.c (Qja, Qko): Remove declarations.
12164
12165 * xfont.c (Qja, Qko): Remove declarations.
12166
12167 2009-04-17 Kenichi Handa <handa@m17n.org>
12168
12169 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12170 string from a vector to handle Latin-1 characters correctly.
12171
12172 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12173 entity even if the cache hits.
12174
12175 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12176
12177 * search.c (boyer_moore): Use zero as marker value for a possible
12178 match instead of depending on overflow behavior. (Bug#2844)
12179
12180 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12181 * lisp.h: Adjust prototypes.
12182
12183 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
12184
12185 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12186 change (Bug#3003).
12187
12188 2009-04-16 Kenichi Handa <handa@m17n.org>
12189
12190 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
12191
12192 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12193 adstyle.
12194
12195 * ftfont.c (Qja, Qko): Don't make them static.
12196 (enum ftfont_cache_for): New enum.
12197 (fc_charset_table): Undo the previous change.
12198 (ftfont_get_latin1_charset): Delete it.
12199 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12200 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
12201 non-scarable font, try to get AVERAGE_WIDTH.
12202 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12203 Change ft_face_cache from a list of a hash-table. Don't check
12204 `ja' and `ko' adstyle here.
12205 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12206 FTFONT_CACHE_FOR_CHARET.
12207 (ftfont_get_charset): Undo the previous change.
12208 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
12209 (ftfont_close): Likewise.
12210 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12211
12212 * font.c (font_sort_entites): Change the meaning of the arg
12213 BEST-ONLY. Don't optimize for VEC of lenght 1.
12214 (font_select_entity): Just return the value of font_sort_entites.
12215
12216 * xfaces.c (merge_face_vectors): Reflect font properties in
12217 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12218 font_clear_prop if a face attribute doesn't change.
12219
12220 * charset.h (charset_ksc5601): Extern it.
12221
12222 * charset.c (charset_ksc5601): New variable.
12223 (Fdefine_charset_internal): Set charset_ksc5601.
12224 (init_charset_once): Initialize charset_ksc5601 to -1.
12225
12226 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12227
12228 * fileio.c (history_delete_duplicates): Remove unused declaration.
12229
12230 * callint.c (history_delete_duplicates): New declaration.
12231 (Fcall_interactively): Remove command history duplicates when
12232 history_delete_duplicates is true.
12233
12234 2009-04-14 Eli Zaretskii <eliz@gnu.org>
12235
12236 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12237
12238 2009-04-14 Kenichi Handa <handa@m17n.org>
12239
12240 * font.c (Ffont_info): Fix docstring. Fix the second element of
12241 the returned value (bug#2949).
12242
12243 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
12244
12245 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12246
12247 2009-04-14 Kenichi Handa <handa@m17n.org>
12248
12249 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12250 encoding charset is ascii_compatible.
12251
12252 * charset.c (Fdefine_charset_internal): Make charset
12253 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12254 code_offset is 0, and covers all ASCII characters.
12255
12256 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12257
12258 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12259 (ns_string_to_pasteboard_internal):
12260 * nsmenu.m (process_dialog):
12261 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12262 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12263 * lisp.h (Fx_load_color_file): Declare.
12264
12265 2009-04-13 Kenichi Handa <handa@m17n.org>
12266
12267 * font.c (font_delete_unmatched): Preserve the order of list elements.
12268 (font_select_entity): Suppress the code to optimize for the same
12269 kind of fonts.
12270 (font_load_for_lface): Get a font that supports at least ASCII
12271 characters.
12272
12273 * ftfont.c (Qja, Qko): New variables.
12274 (fc_charset_table): Delete uniquifier data for iso8859-1.
12275 (ftfont_get_latin1_charset): New function.
12276 (get_adstyle_property): New function.
12277 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12278 bitmap fonts.
12279 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12280 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12281 `ko' or `ja'.
12282 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
12283 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
12284 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12285 property.
12286 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12287 (syms_of_ftfont): DEFSYM Qja and Qko.
12288
12289 2009-04-09 Kenichi Handa <handa@m17n.org>
12290
12291 * charset.c (map_charset_chars): For a charset of `superset'
12292 method, fix calculation of code range.
12293
12294 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12295 from the list of extra properties.
12296 (font_clear_prop): Be sure to delete `:name' font property.
12297
12298 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12299
12300 * dispnew.c (redraw_overlapping_rows): Fix detection of
12301 overlapping for topmost and bottommost rows.
12302
12303 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
12304
12305 2009-04-06 Jason Rumney <jasonr@gnu.org>
12306
12307 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12308
12309 2009-04-06 Kenichi Handa <handa@m17n.org>
12310
12311 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12312
12313 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12314
12315 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12316
12317 * ftfont.c (ftfont_open): Fix checking of the return value of
12318 FT_Load_Char. Fix setting font->underline_thickness.
12319
12320 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
12321
12322 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12323 (Fterminal_parameters, Fterminal_parameter)
12324 (Fset_terminal_parameter): In doc string, refer to terminal
12325 objects rather than terminal ids.
12326
12327 2009-04-04 Eli Zaretskii <eliz@gnu.org>
12328
12329 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12330 ret_lim_data. (Bug#2867)
12331
12332 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
12333
12334 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12335 so they don't get wider than the window, matching 2006-01-23
12336 change to the partner function in xdisp.c (Bug#2800).
12337
12338 2009-04-03 Kenichi Handa <handa@m17n.org>
12339
12340 * print.c (print_object): Make each lowest sub_char_table start a
12341 new line (Bug#2866).
12342
12343 2009-04-02 Kenichi Handa <handa@m17n.org>
12344
12345 * fontset.c (fontset_font): Record no-font when a fontset
12346 explicitly tells not to try another font-specs.
12347
12348 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12349
12350 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12351
12352 2009-03-30 Kenichi Handa <handa@m17n.org>
12353
12354 * fontset.c (fontset_from_font): Specify only registry in a
12355 font-spec for all characters supported by that registry.
12356
12357 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12358 even if HAVE_M17N_FLT is not defined.
12359
12360 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12361
12362 * ftfont.c: Conditionalize prototyping and use of
12363 ftfont_variation_glyphs.
12364
12365 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12366
12367 * frame.c (delete_frame): Work around compiler bug.
12368
12369 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12370 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12371 Some more EMACS_INT.
12372 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12373
12374 * xdisp.c (dump_glyph): Fix typo.
12375
12376 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12377 (adjust_markers_gap_motion, adjust_markers_for_delete)
12378 (adjust_markers_for_insert, adjust_point)
12379 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12380 (make_gap, copy_text, count_size_as_multibyte, insert)
12381 (insert_and_inherit, insert_before_markers)
12382 (insert_before_markers_and_inherit, insert_1)
12383 (count_combining_before, count_combining_after, insert_1_both)
12384 (insert_from_string, insert_from_string_before_markers)
12385 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12386 (insert_from_buffer_1, adjust_after_replace)
12387 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12388 (replace_range_2, del_range, del_range_1, del_range_byte)
12389 (del_range_both, del_range_2, modify_region)
12390 (prepare_to_modify_buffer, signal_before_change)
12391 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12392 for buffer positions and sizes.
12393 * lisp.h: Adjust prototypes accordingly.
12394
12395 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12396 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12397 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12398
12399 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12400
12401 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12402
12403 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12404 lines and columns so we keep the same pixel height and width.
12405
12406 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12407 the property _NET_WM_STATE has changed.
12408 (x_handle_net_wm_state): New function to update frame parameter
12409 fullscreen.
12410 (x_term_init): Initialize atoms for _NET_WM_STATE.
12411
12412 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12413
12414 2009-03-27 Kevin Ryde <user42@zip.com.au>
12415
12416 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12417 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12418 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12419 (Fgpm_mouse_stop): Pass that new parameter.
12420 * termhooks.h (close_gpm): Adjust prototype.
12421
12422 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12423
12424 * lisp.h (Fx_focus_frame): Declare.
12425
12426 * callint.c (Fcall_interactively): For '^' just delegate the work to
12427 handle-shift-selection.
12428 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12429
12430 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
12431
12432 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12433
12434 * data.c (Qinteractive_form): New variable.
12435 (Finteractive_form): Use it.
12436
12437 * eval.c (Fcommandp): Use Qinteractive_form.
12438
12439 2009-03-24 Jason Rumney <jasonr@gnu.org>
12440
12441 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12442 Calculate total size precisely. Decode environment variables
12443 before substituting. (Bug#38)
12444
12445 2009-03-24 Kenichi Handa <handa@m17n.org>
12446
12447 * font.c (find_font_encoding): Return Qnil for unsupported
12448 encoding (Bug#2722).
12449
12450 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12451
12452 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12453 that gdpy is set.
12454
12455 2009-03-22 Alan Mackenzie <acm@muc.de>
12456
12457 * callint.c (Finteractive): Clarify the doc string - even
12458 promptless elements need \n separators.
12459
12460 2009-03-22 Jason Rumney <jasonr@gnu.org>
12461
12462 * w32term.c (syms_of_w32term): Doc fix for
12463 x-use-underline-position-properties.
12464
12465 2009-03-21 Eli Zaretskii <eliz@gnu.org>
12466
12467 * w32.c (getpwuid): Change argument type to unsigned.
12468 (struct w32_id): Change type of `rid' member to unsigned.
12469 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12470 argument ID to unsigned. All callers changed.
12471 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12472
12473 2009-03-20 Eli Zaretskii <eliz@gnu.org>
12474
12475 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12476 negative, produce a float value.
12477
12478 * dired.c (make_uid, make_gid): New functions.
12479 (Ffile_attributes): Use them to avoid negative UID and GID.
12480
12481 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
12482
12483 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12484 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12485 Fix typos in docstrings.
12486
12487 2009-03-19 Kenichi Handa <handa@m17n.org>
12488
12489 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
12490 changed, use font_load_for_lface to get a new font object.
12491 Call free_realized_fontset after handling ASCII font change.
12492
12493 * frame.c (x_set_font): Handle the case that ARG is a cons.
12494
12495 2009-03-19 Glenn Morris <rgm@gnu.org>
12496
12497 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12498
12499 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
12500
12501 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12502
12503 2009-03-19 Kenichi Handa <handa@m17n.org>
12504
12505 * charset.c (load_charset_map_from_file): When a mapfile can't be
12506 loaded, signal an error.
12507
12508 2009-03-18 Eli Zaretskii <eliz@gnu.org>
12509
12510 * dired.c (Ffile_attributes): Make sure UID and GID are always
12511 positive, even if the value is too large for a positive EMACS_INT.
12512 Doc fix.
12513
12514 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12515
12516 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12517
12518 * xmenu.c (xdialog_show): Move Fredisplay call ...
12519 (Fx_popup_dialog): ... here.
12520
12521 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12522
12523 * dired.c (file_name_completion): Disable the first optimization just
12524 installed, since it is not implemented correctly.
12525
12526 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12527
12528 * dired.c (file_name_completion): Check completion-ignored-extensions
12529 only if the entry can affect bestmatch.
12530 Stop the search early, as Ftry_completion already does.
12531
12532 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
12533
12534 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
12535
12536 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
12537
12538 * keyboard.c (parse_menu_item): Don't display remappings as menu
12539 equivalent bindings (Bug#788).
12540
12541 2009-03-15 Jason Rumney <jasonr@gnu.org>
12542
12543 * w32term.h (WM_EMACS_PAINT): New message.
12544 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12545 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12546 before passing to lisp thread. (Bug#950)
12547
12548 2009-03-14 David Reitter <david.reitter@gmail.com>
12549
12550 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12551 variable as it was never reset.
12552 (ns_term_init): Remove initialization of Lisp-settable defaults
12553 and ns_expand_space.
12554 (-setPanelFromDefaultValues): Remove ns_expand_space.
12555 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12556 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
12557 i.e. no additional spacing, similar to Carbon port.
12558
12559 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12560 * nsfns.m (ns-popup-prefs-panel): Remove.
12561
12562 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12563
12564 * sound.c (alsa_configure): Remove call to deprecated
12565 snd_pcm_sw_params_set_xfer_align.
12566
12567 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
12568
12569 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12570 after clicking in a detached tool bar.
12571 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12572
12573 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12574
12575 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12576 int/Lisp_Object mixup).
12577
12578 2009-03-13 Kenichi Handa <handa@m17n.org>
12579
12580 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
12581 Handle NAME nil and t correctly. Callers changed.
12582 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12583 (set_fontset_font): Change ARG to a vector. Handle range_list in
12584 ARG correctly.
12585 (Fset_fontset_font): Fix the case that TARGET is both a script
12586 name and charset name. Adjust the arg to set_fontset_font for
12587 the above change.
12588 (fontset_from_font): Fix previous change.
12589 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
12590 entry. If FONTSET is the default fontset, don't set the extra
12591 slot of the returning char-table.
12592
12593 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
12594
12595 * nsfns.m (Fx_close_connection): Doc fix.
12596 (Fns_do_applescript): Reflow docstring.
12597 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12598 (Fx_display_pixel_width, Fx_display_pixel_height)
12599 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12600 Fix typos in docstrings.
12601 (Fns_set_alpha): Fix typos in error messages.
12602
12603 2009-03-12 David Reitter <david.reitter@gmail.com>
12604
12605 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
12606 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12607 were used for such events.
12608
12609 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12610 (toggleToolbar, performDragOperation, runHelp): Use it.
12611
12612 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
12613 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12614
12615 2009-03-11 Kenichi Handa <handa@m17n.org>
12616
12617 * font.h (font_open_by_spec): Extern it.
12618
12619 * font.c (font_open_by_spec): New function.
12620 (font_open_by_name): Use font_open_by_spec.
12621
12622 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12623 fontset of the frame.
12624
12625 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12626 modify the default font of frames that use this fontset.
12627 (num_auto_fontsets): New variable.
12628 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12629 name. Be sure to set FONTSET_ASCII to the correct font name.
12630 (update_auto_fontset_alist): New function.
12631
12632 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
12633
12634 * makefile.w32-in: Update dependencies.
12635
12636 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12637
12638 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12639
12640 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12641
12642 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12643
12644 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
12645
12646 * lread.c (Feval_buffer): Doc fix.
12647
12648 2009-03-09 Kenichi Handa <handa@m17n.org>
12649
12650 * charset.c (Qfile_name_handler_alist): Extern it.
12651 (load_charset_map_from_file): Temporarily bind
12652 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12653
12654 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
12655
12656 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12657 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
12658
12659 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12660
12661 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12662 (x_set_window_size): Change back to calculated method of setting
12663 toolbar height under Cocoa. (Bug#2546)
12664 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12665 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12666
12667 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12668
12669 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12670 accelerator in parens under GNUstep.
12671
12672 2009-03-06 Kenichi Handa <handa@m17n.org>
12673
12674 These changes are to detect incorrect composition sequence without
12675 looking ahead the source. (Bug#2370)
12676
12677 * coding.h: Include "composite.h".
12678 (enum compisition_state): New enum.
12679 (struct compisition_status): New struct.
12680 (struct iso_2022_spec): New member cmp_status.
12681 (struct emacs_mule_spec): New struct.
12682 (struct coding_system): New members ctext_extended_segment_len and
12683 embedded_utf_8. Change the union member
12684 spec.emacs_mule_full_support to spec.emacs_mule.
12685
12686 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12687 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
12688 (MAX_ANNOTATION_LENGTH): Define to 5.
12689 (ADD_COMPOSITION_DATA): New arg nbytes.
12690 (emacs_mule_char): New arg cmp_status.
12691 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12692 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12693 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12694 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12695 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12696 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12697 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12698 (EMACS_MULE_COMPOSITION_END): New macro.
12699 (emacs_mule_finish_composition): New function.
12700 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12701 (decode_coding_emacs_mule): Avoid long looking ahead while
12702 handling composition.
12703 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12704 (ENCODE_COMPOSITION_RULE): New macro.
12705 (finish_composition): New function.
12706 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12707 (DECODE_COMPOSITION_START): New implementation.
12708 (DECODE_COMPOSITION_END): Likewise.
12709 (STORE_COMPOSITION_RULE): New macro.
12710 (decode_coding_iso_2022): Avoid long looking ahead while handling
12711 composition, CTEXT extended segment, and embedded UTF-8.
12712 (setup_coding_system): For a coding of type iso-2022, reset
12713 CODING_ISO_EXTSEGMENT_LEN (coding) and
12714 CODING_ISO_EMBEDDED_UTF_8 (coding).
12715 (get_translation): Delete arguments last_block, from_nchars,
12716 to_nchars. Callers changed.
12717 (produce_chars): Don't modify charbuf. Adjusted for the change of
12718 get_translation.
12719 (produce_composition): Adjust for the new annotation sequence.
12720 (handle_composition_annotation): Likewise.
12721 (consume_chars): Adjust for the change of get_translation.
12722
12723 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12724
12725 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
12726
12727 2009-03-05 Kenichi Handa <handa@m17n.org>
12728
12729 * font.c (font_select_entity): New function.
12730 (font_find_for_lface): Use font_select_entity to select a font.
12731
12732 * fontset.c (fontset_find_font): If a font found without
12733 restricting to the characters C doesn't support C, try to find a
12734 font with C restriction.
12735
12736 2009-03-04 Nikolaj Schumacher <me@nschum.de>
12737
12738 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
12739
12740 2009-03-04 Jason Rumney <jasonr@gnu.org>
12741
12742 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
12743 characters that have already been read. (Bug#2569)
12744
12745 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12746 Log an error message if check_image_size failed.
12747 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
12748 (gs_load): Mention max-image-size in size error message. (Bug#2560)
12749
12750 2009-03-02 Eli Zaretskii <eliz@gnu.org>
12751
12752 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12753 when decoding process output.
12754
12755 2009-03-01 Richard M Stallman <rms@gnu.org>
12756
12757 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12758
12759 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12760
12761 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12762
12763 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12764 (decode_coding_emacs_mule, decode_coding_iso_2022)
12765 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12766 (decode_coding_raw_text, decode_coding_charset)
12767 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12768 Honor inhibit-eol-conversion. (Bug #2186)
12769
12770 2009-02-28 Jason Rumney <jasonr@gnu.org>
12771
12772 * coding.c (detect_coding_charset): If not checking latin extra,
12773 fail on characters between 0x80 and 0xA0. (Bug#2354)
12774
12775 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12776
12777 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
12778 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
12779
12780 2009-02-27 Glenn Morris <rgm@gnu.org>
12781
12782 * callint.c (Finteractive): Doc fix.
12783
12784 2009-02-27 Kenichi Handa <handa@m17n.org>
12785
12786 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12787
12788 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
12789
12790 * font.c (font_style_to_value): Set value for unknown symbols to
12791 100 instead of 255.
12792 (weight_table, slant_table, width_table): Treat "unspecified" as
12793 the default value.
12794
12795 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
12796
12797 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12798
12799 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
12800
12801 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12802 error as soon as a recursive load is detected.
12803
12804 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12805
12806 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12807 before caching.
12808
12809 2009-02-24 Kenichi Handa <handa@m17n.org>
12810
12811 * fontset.c (fontset_find_font): Fix the condition for checking
12812 unavailable font.
12813
12814 2009-02-24 Glenn Morris <rgm@gnu.org>
12815
12816 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12817 whitespace that confuses documentation.
12818
12819 2009-02-23 Miles Bader <miles@gnu.org>
12820
12821 * process.c (Flist_system_processes, Fprocess_attributes)
12822 (syms_of_process): Rename `system-process-attributes' to
12823 `process-attributes'.
12824
12825 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12826
12827 * coding.h (struct coding_system): Make safe_charsets a pointer to
12828 unsigned char.
12829 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12830 being 255.
12831 (SAFE_CHARSET_P): Likewise.
12832 (setup_iso_safe_charsets): Properly setup safe_charsets.
12833 (Fdefine_coding_system_internal): Likewise.
12834 (setup_coding_system): Likewise. Remove unneeded casts.
12835 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
12836 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12837 Remove unneeded casts.
12838
12839 * insdel.c (del_range_2): Don't modify gap contents when called
12840 from decode_coding_object. (Bug#1809)
12841
12842 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
12843
12844 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12845 Qfont_object.
12846 (Ftype_of): Recognize font objects.
12847
12848 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12849
12850 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12851 Definitions moved to data.c.
12852
12853 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12854
12855 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12856 async_iconified. Based on a patch by Christian Lynbech
12857 <christian.lynbech@tieto.com>.
12858 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12859
12860 2009-02-20 Glenn Morris <rgm@gnu.org>
12861
12862 * syntax.c (Fskip_chars_forward): Fix doc typo.
12863
12864 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
12865
12866 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12867
12868 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
12869
12870 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12871
12872 2009-02-19 Kenichi Handa <handa@m17n.org>
12873
12874 * coding.c (detect_coding): Preserve coding->mode.
12875 Don't overflow coding->carryover. (Bug#2370)
12876
12877 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12878
12879 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12880
12881 2009-02-18 Kenichi Handa <handa@m17n.org>
12882
12883 * font.c (font_check_otf_features): Fix handling of `nil' element.
12884 (Ffont_spec): Describe :lang and :otf in the docstring.
12885
12886 2009-02-16 Andreas Schwab <schwab@suse.de>
12887
12888 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12889 string.
12890
12891 2009-02-16 Kenichi Handa <handa@m17n.org>
12892
12893 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
12894 (Bug#1723)
12895
12896 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
12899
12900 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12901 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12902
12903 2009-02-14 Eli Zaretskii <eliz@gnu.org>
12904
12905 * msdos.c (MAX_SCREEN_BUF): New macro.
12906 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12907 Encode the entire run of glyphs sharing the same face, instead of
12908 doing that one glyph at a time (fixes a bug with displaying
12909 double-size characters).
12910
12911 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12912
12913 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12914
12915 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12916 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
12917 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
12918
12919 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
12920 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
12921
12922 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12923
12924 * keyboard.c (adjust_point_for_property): Allow stopping between two
12925 invisible areas.
12926
12927 2009-02-12 Jason Rumney <jasonr@gnu.org>
12928
12929 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12930 (add_font_entity_to_list): Call check_face_name even when family
12931 is unspecified.
12932
12933 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12934 Release DC when finished. Use NULL window to refer to desktop.
12935 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
12936
12937 * w32font.c (add_font_entity_to_list): Fix check for substituted
12938 raster fonts. (Bug#2219)
12939
12940 2009-02-12 Kenichi Handa <handa@m17n.org>
12941
12942 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12943 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12944 (autocmp_chars): Use fast_looking_at. Don't compose more
12945 characters than MAX_COMPOSITION_COMPONENTS.
12946 (find_automatic_composition): While looking forward and backward,
12947 check static composition. Fix where to stop looking forward.
12948 (composition_adjust_point): Fix checking of static composition.
12949 (Fcomposition_get_gstring): Pay attention to
12950 MAX_COMPOSITION_COMPONENTS.
12951
12952 * lisp.h (fast_looking_at): Extern it.
12953
12954 * search.c (fast_looking_at): New function.
12955
12956 * term.c (encode_terminal_code): Adjust for the change of
12957 <struct glyph>.u.cmp.to.
12958 (append_composite_glyph): Likewise.
12959
12960 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
12961 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
12962 composition.
12963 (append_composite_glyph): Adjust for the change of
12964 <strcut glyph>.u.cmp.to.
12965
12966 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
12967
12968 * casetab.c (init_casetab_once):
12969 * coding.c (ALLOC_CONVERSION_WORK_AREA):
12970 * font.c (font_update_lface):
12971 * fontset.c (Fnew_fontset):
12972 * ftfont.c (ftfont_drive_otf):
12973 * xfont.c (xfont_open):
12974 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
12975
12976 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12977
12978 * fileio.c (Fwrite_region): !NILP -> CONSP.
12979
12980 2009-02-10 Andreas Schwab <schwab@suse.de>
12981
12982 * process.c (send_process): Properly relocate pointer into data
12983 when using encoded data. (Bug#2272)
12984
12985 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
12986
12987 * coding.c (detect_coding_charset): Fix previous change.
12988
12989 2009-02-08 Jason Rumney <jasonr@gnu.org>
12990
12991 * w32fns.c (w32_hide_hourglass): Handle case where frame
12992 disappeared while hourglass was displayed. (Bug #2193)
12993
12994 2009-02-07 Andreas Schwab <schwab@suse.de>
12995
12996 * unexelf.c (unexec): Fix error message.
12997
12998 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
12999
13000 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
13001 when modal window is active. (Bug #2152)
13002 (applicationShouldTerminate:): Remove now-unneeded while loop
13003 around NSRunAlertPanel.
13004
13005 * nsmenu.m (popupSession): New file-global variable.
13006 (pop_down_menu): End the popupSession before closing dialog.
13007 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13008 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13009 don't query NSApp for events (just sleep instead).
13010
13011 2009-02-07 Eli Zaretskii <eliz@gnu.org>
13012
13013 * coding.c (syms_of_coding) <translation-table-for-input>:
13014 Modify doc string to discourage use for character code unification.
13015
13016 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13017
13018 * atimer.c (run_timers): Update pending_atimers.
13019
13020 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
13021
13022 * image.c (svg_load_image): Fix last change.
13023
13024 * xfns.c (Fx_create_frame): Signal an error if no font is
13025 found (Bug#2147).
13026
13027 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
13028
13029 * character.c (syms_of_character) <script-representative-chars>:
13030 Fix typo in docstring.
13031
13032 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13033
13034 * nsmenu.m (pop_down_menu): New function.
13035 (ns_popup_dialog): Call it on unwind.
13036 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13037 call timer_check() (Bug#2154).
13038 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13039 handling_signal is set.
13040 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13041
13042 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
13043
13044 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13045
13046 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13047
13048 * keyboard.c (poll_for_input_1, handle_async_input):
13049 Set handling_signal under HAVE_NS.
13050
13051 2009-02-04 Glenn Morris <rgm@gnu.org>
13052
13053 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13054
13055 2009-02-04 Kenichi Handa <handa@m17n.org>
13056
13057 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13058
13059 * charset.c (Fchar_charset): New optional arg restriction.
13060
13061 * coding.h (coding_system_charset_list): Extern it.
13062
13063 * coding.c (coding_system_charset_list): New function.
13064
13065 * composite.c: Include coding.h and termhooks.h.
13066 (composition_gstring_p): Fix for the terminal case.
13067 (composition_gstring_width): Likewise.
13068 (fill_gstring_body): Likewise.
13069 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13070 the frame.
13071 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13072 is within a composition.
13073 (Fcomposition_get_gstring): Fix the terminal case.
13074
13075 * term.c (encode_terminal_code): Fix handling of composition.
13076 (produce_composite_glyph): For static composition, get pixel_width
13077 from struct composition.
13078
13079 2009-02-02 Andreas Schwab <schwab@suse.de>
13080
13081 * unexelf.c (unexec): Handle unaligned bss offset.
13082
13083 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13084
13085 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13086 XT,w32read_socket changes to ns_read_socket.
13087
13088 * keyboard.c (handle_interrupt): Don't call
13089 quit_throw_to_read_char() under NS.
13090
13091 * blockinput.h: Remove NS-specific code.
13092
13093 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13094
13095 * dispnew.c (window_change_signal): Don't try to get the size of a
13096 suspended tty frame.
13097 * term.c (Fresume_tty): Resize if the size has changed while the
13098 tty was suspended.
13099
13100 * alloc.c (mark_stack): Properly conditionalize previous change.
13101
13102 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13103
13104 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13105 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13106 Remove; this code is not used on Windows.
13107
13108 2009-01-30 Eli Zaretskii <eliz@gnu.org>
13109
13110 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13111 EOLs that also has stray ^M characters.
13112
13113 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13114
13115 * atimer.c (run_timers, alarm_signal_handler):
13116 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13117 * w32inevt.c (w32_console_read_socket):
13118 * w32term.c (w32_read_socket):
13119 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13120
13121 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
13122
13123 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13124 Initialize it as a relative filename pattern.
13125 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13126 (Fcall_process_region): Simplify temp file creation using
13127 temporary-file-directory.
13128
13129 2009-01-29 Eli Zaretskii <eliz@gnu.org>
13130
13131 * msdos.c: Rename pending_signals to msdos_pending_signals.
13132 (sig_suspender, sigprocmask): Adjust.
13133
13134 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
13135
13136 * keyboard.c (pending_signals): New var.
13137 (poll_for_input, input_available_signal, init_keyboard): Set it.
13138 (process_pending_signals): New function.
13139
13140 * lisp.h (QUIT): Check pending_signals instead of
13141 interrupt_input_pending. Use process_pending_signals.
13142
13143 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
13144
13145 * process.c (wait_reading_process_output): Use process_pending_signals.
13146
13147 * sysdep.c (emacs_write): Use process_pending_signals.
13148
13149 * xterm.c (XTread_socket): Update pending_signals.
13150
13151 * w32term.c (w32_read_socket): Update pending_signals.
13152
13153 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13154
13155 2009-01-29 Kenichi Handa <handa@m17n.org>
13156
13157 * xftfont.c (xftfont_has_char): New function.
13158 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13159
13160 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13161
13162 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13163 under GNUstep.
13164 (ns_query_color): New declaration.
13165
13166 * nsterm.m (ns_confirm_quit): New variable.
13167 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13168 (EmacsApp-applicationShouldTerminate:): Use it.
13169 (EmacsPrefsController): Let user set it.
13170 (ns_query_color): New function.
13171 (ns_defined_color): Use it.
13172 (ns_initialize): Drop.
13173 (ns_term_init): Add two lines from ns_initialize(), and set
13174 input_interrupt_mode to nil.
13175
13176 * image.c (svg_load_image): Don't right-shift background RGB when
13177 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
13178
13179 2009-01-28 Kenichi Handa <handa@m17n.org>
13180
13181 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13182 (fontset_get_font_group): Remember that no font-group is specified
13183 for C.
13184
13185 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
13186
13187 * fns.c (concat): Check for string overflow (bug#1787).
13188
13189 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13190 Quadruple undo limits (bug#1501).
13191
13192 2009-01-27 Kenichi Handa <handa@m17n.org>
13193
13194 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13195 directly use GT_Get_Char_index.
13196
13197 * xftfont.c (struct xftfont_info): New member `index'.
13198
13199 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13200 (Ffontset_font): Adjust for the change of fontset entry.
13201
13202 2009-01-26 Kenichi Handa <handa@m17n.org>
13203
13204 * fontset.c (fontset_find_font): Fix handling of non-cons return
13205 value of fontset_get_font_group.
13206 (fontset_font): Revert last change.
13207
13208 2009-01-26 Jason Rumney <jasonr@gnu.org>
13209
13210 * w32font.c (w32font_list_internal): Return quickly if registry is
13211 unknown. Simplify final return.
13212 (add_font_entity_to_list): Break complex logic down into more
13213 manageable chunks. Move unknown registry check to
13214 w32font_list_internal.
13215
13216 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13217
13218 Changes to remove Feval calls from GUI under NS.
13219
13220 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13221 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
13222 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13223
13224 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13225 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13226 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13227 instead of NON_ASCII_KEYSTROKE_EVENT.
13228 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13229 (EmacsApp-applicationShouldTerminate:): Query user.
13230 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13231 instead of Feval.
13232
13233 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13234
13235 * keyboard.c (kbd_buffer_get_event): Check for it.
13236 (keys_of_keyboard): Define lispy keys for
13237 ns-put/unput-working-text.
13238
13239 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13240 versions.
13241 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13242
13243 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
13244
13245 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
13246 setting current_buffer directly. (Bug#2044)
13247
13248 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
13249
13250 * fontset.c (fontset_font): If we know there is no font, don't do
13251 any work. (Bug#1952, bug#1990).
13252
13253 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
13254
13255 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13256
13257 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
13258 (ns_no_defaults): New declaration.
13259 (main): Use it.
13260
13261 * nsterm.h (ns_no_defaults): New declaration.
13262
13263 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
13264
13265 * nsterm.m (ns_no_defaults): New variable.
13266 (ns_initialize): Don't read defaults when ns_no_defaults.
13267 (EmacsView-readSelectionFromPasteboard:)
13268 (writeSelectionToPasteboard:types:): New stubbed-out methods for
13269 NSServicesRequests protocol. (Bug#1435)
13270 (ns_dumpglyphs_stretch): New function.
13271 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
13272 of 2008-11-15 to other terms. (Bug#615)
13273
13274 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13275
13276 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13277
13278 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13279 call for Sparc64.
13280
13281 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13282
13283 * nsfns.m:
13284 * nsgui.h:
13285 * nsmenu.m:
13286 * nsselect.m:
13287 * nsterm.h:
13288 * nsterm.m: Remove '23' comments that indicated code added during
13289 update from emacs-20 -> emacs-23.
13290
13291 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13292
13293 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
13294 ns_alternate_modifier. (Bug#1217)
13295
13296 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13297 Display all shortcuts, including those w/o super modifier.
13298
13299 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13300
13301 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
13302
13303 * fileio.c (Vwrite_region_post_annotation_function)
13304 (Vwrite_region_annotation_buffers): New vars.
13305 (build_annotations_unwind): Just reset
13306 Vwrite_region_annotation_buffers.
13307 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13308 Call write-region-post-annotation-function.
13309 (build_annotations): Add to Vwrite_region_annotation_buffers if
13310 buffer changes.
13311
13312 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13313
13314 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13315 Tiger.
13316 * nsfns.m (ns_do_applescript):
13317 Conditionalize typeUTF16ExternalRepresentation on Tiger.
13318
13319 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13320
13321 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13322
13323 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13324
13325 * nsmenu.m (NSMENUPROFILE): Change #if style.
13326
13327 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13328
13329 * nsterm.m (x_set_frame_alpha): Add prototype.
13330 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13331 handle Ctrl-tab. (Bug#1841)
13332 (ns_get_color): Use unsigned long long for scanned hex string value.
13333 (ns_term_shutdown): Abort on non SIGTERM signals.
13334 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
13335 (EmacsPrefsController-setPanelFromDefaultValues): New function.
13336 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
13337 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
13338 (ns_defined_color): Fix settings of the XColor variable fields:
13339 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
13340
13341 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
13342 DPI. (Bug#1316)
13343 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13344 values in onTiger section.
13345
13346 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
13347
13348 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13349 Check return value of font_spec_from_name.
13350 (Fx_list_fonts): Doc fix. (Bug#1951)
13351
13352 * font.c (font_spec_from_name): Return Qnil if font name could not
13353 be parsed.
13354 (font_parse_name): Treat a `?' character as part of an XLFD.
13355
13356 * fns.c (Fsubstring): Doc fix.
13357
13358 2009-01-19 Kenichi Handa <handa@m17n.org>
13359
13360 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
13361 (ftfont_list): Likewise.
13362
13363 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
13364
13365 * dbusbind.c (Fdbus_register_signal):
13366 * process.c (conv_sockaddr_to_lisp):
13367 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13368
13369 * callproc.c (Fgetenv_internal): Doc fix.
13370
13371 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
13372
13373 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13374 it is not even used.
13375
13376 2009-01-16 Glenn Morris <rgm@gnu.org>
13377
13378 * font.c (Ffont_variation_glyphs): Silence compiler.
13379
13380 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
13381
13382 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13383 Reported by David Robinow <drobinow@gmail.com>.
13384
13385 2009-01-15 Kenichi Handa <handa@m17n.org>
13386
13387 * coding.c (detect_coding_system): Fix handling of null_byte_found.
13388
13389 2009-01-14 Jason Rumney <jasonr@gnu.org>
13390
13391 * frame.c (x_set_font): Always store a font to the font parameter,
13392 never a fontset. (Bug#1562)
13393
13394 2009-01-14 Kenichi Handa <handa@m17n.org>
13395
13396 * coding.c (TWO_MORE_BYTES): New macro.
13397 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
13398
13399 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
13400
13401 * font.c (font_clear_prop): If clearing the family, clear the font
13402 width index too.
13403
13404 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
13405
13406 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
13407
13408 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13409 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13410 functions, use sizeof.
13411
13412 2009-01-12 Martin Rudalics <rudalics@gmx.at>
13413
13414 * keyboard.c (read_char): Fix case where last_nonmenu_event
13415 returned a bad value with submenus. (Bug#447)
13416
13417 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
13418
13419 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13420 family, clear the font width index too.
13421
13422 2009-01-11 Jason Rumney <jasonr@gnu.org>
13423
13424 * keyboard.c (cmd_error_internal): Exit when errors occur before
13425 frame creation and not in daemon mode. (Bug#1836)
13426
13427 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
13428
13429 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13430 of a display vector, backtrack.
13431 (try_window_reusing_current_matrix): Check glyph type before
13432 referencing charpos member.
13433
13434 2009-01-10 Eli Zaretskii <eliz@gnu.org>
13435
13436 Fix Bug #876:
13437
13438 * coding.c (inhibit_null_byte_detection): New variable.
13439 (detect_coding, detect_coding_system): Don't pay attention to null
13440 bytes if inhibit_null_byte_detection is non-zero.
13441 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
13442 <inhibit-iso-escape-detection>: Doc fix.
13443
13444 2009-01-09 Jason Rumney <jasonr@gnu.org>
13445
13446 * w32font.c (add_font_entity_to_list): Don't report unknown
13447 Windows charset as any unrecognized registry. (Bug#1548)
13448 Only report Unicode Plane 2 fonts as unicode-sip.
13449
13450 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
13451
13452 * xfaces.c (Fx_font_family_list): Delete function.
13453 Move compatibility version to faces.el.
13454
13455 * font.c (Ffont_family_list): Return a list of strings, not symbols.
13456
13457 2009-01-09 Martin Rudalics <rudalics@gmx.at>
13458
13459 * frame.c (x_set_frame_parameters): Remember requested value for
13460 fullscreen before it's reset by the parameter handler.
13461
13462 2009-01-09 Glenn Morris <rgm@gnu.org>
13463
13464 * keyboard.c (last_command_char): For clarity, rename to...
13465 (last_command_event): ... and update all users.
13466 (last_input_char): For clarity, rename to...
13467 (last_input_event): ... and update all users.
13468 (last-command-char, last-input-char): Move to subr.el as aliases.
13469 * cmds.c, commands.h: Update for last_command_char rename.
13470
13471 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * font.c (font_open_for_lface): Handle unspecified height attribute.
13474
13475 2009-01-08 Jason Rumney <jasonr@gnu.org>
13476
13477 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13478 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13479 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13480 Don't declare.
13481 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
13482 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13483
13484 2009-01-07 Kenichi Handa <handa@m17n.org>
13485
13486 * fileio.c (Finsert_file_contents): In the case of replace,
13487 remember the coding system used for decoding in
13488 coding_system (Bug#1039).
13489
13490 * coding.c (decode_coding_utf_8): Check byte_after_cr before
13491 breaking the loop. (Bug#870)
13492 (decode_coding_utf_16, decode_coding_emacs_mule)
13493 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13494 (decode_coding_charset): Likewise.
13495
13496 2009-01-05 Martin Rudalics <rudalics@gmx.at>
13497
13498 * frame.c (x_set_frame_parameters): Make sure height (width) get
13499 applied when fullwidth (fullheight) is set. (Bug#1522)
13500
13501 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
13502
13503 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13504 (utc_base): Declare as ULONGLONG, not long double.
13505 (convert_time_raw): Delete.
13506 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13507 (initialize_utc_base): New function.
13508 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13509 (convert_from_time_t): Use initialize_utc_base; compute result with
13510 64-bit arithmetic.
13511 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13512
13513 2009-01-03 Eli Zaretskii <eliz@gnu.org>
13514
13515 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
13516 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13517 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13518 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13519 [!subprocesses]: Define.
13520 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13521 (Flist_system_processes, Fsystem_process_attributes)
13522 [!subprocesses]: Call list_system_processes and
13523 system_process_attributes instead of returning Qnil.
13524
13525 * dosfns.c (system_process_attributes, list_system_processes):
13526 New functions.
13527
13528 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13529
13530 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13531 Don't use the default (no-op) implementation.
13532
13533 2009-01-03 Jason Rumney <jasonr@gnu.org>
13534
13535 * keyboard.c (parse_modifiers_uncached): Wheel events are
13536 clicks (bug#687).
13537
13538 * w32term.c (x_query_colors, x_query_color): New functions.
13539
13540 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13541 (svg_load_image): Cast returned pointers from dynamically loaded
13542 functions. Eliminate W32 specific code.
13543
13544 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13545
13546 * nsfns.m (x_set_foreground_color, x_set_background_color)
13547 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13548 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13549 x_ prefix instead of ns_. Update references.
13550 (syms_of_nsfns): Add a FIXME comment.
13551
13552 * nsterm.m (x_set_cursor_type): New prototype.
13553 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13554
13555 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13556 for Solaris instead of incorrectly providing Qutime and Qcutime.
13557
13558 2009-01-02 Eli Zaretskii <eliz@gnu.org>
13559
13560 * w32.c (process_times): Compute sum of utime and stime.
13561 (system_process_attributes): Add Qtime to the alist.
13562
13563 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13564 and add them to the alist.
13565
13566 * process.c (top level) <Qtime, Qctime>: New variables.
13567 (syms_of_process): staticpro them.
13568 (Fsystem_process_attributes): Add their documentation to the doc
13569 string.
13570
13571 * process.h: Declare Qtime and Qctime.
13572
13573 2009-01-02 Jason Rumney <jasonr@gnu.org>
13574
13575 * image.c (Qgobject): New symbol.
13576 (syms_of_image): Initialize it.
13577 (init_svg_functions): Load some functions from gobject library.
13578
13579 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13580
13581 * frame.c (make_terminal_frame): Remove redundant code and useless
13582 block.
13583
13584 2009-01-01 Andreas Schwab <schwab@suse.de>
13585
13586 * process.c (conv_sockaddr_to_lisp): Add workaround for
13587 getsockname bug on BSD.
13588
13589 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
13590
13591 * xfns.c (x_create_tip_frame): Set border width of the X window.
13592
13593 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
13594
13595 2009-01-01 Jason Rumney <jasonr@gnu.org>
13596
13597 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
13598 Don't block input, as per earlier xterm.c changes.
13599
13600 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13601
13602 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13603 (ns_appkit_version_int): New function.
13604 (x-server-version): Use ns_appkit_version_int and follow 21+
13605 convention of returning 3 integers.
13606
13607 2008-12-30 Kenichi Handa <handa@m17n.org>
13608
13609 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13610 (CHAR_SURROGATE_PAIR_P): New macro.
13611
13612 * font.h (struct font_driver): New member get_variation_glyphs.
13613
13614 * font.c (font_range): Don't require a font for a variation selector.
13615 (Ffont_variation_glyphs): New function.
13616 (syms_of_font): Defsubr it.
13617
13618 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13619 ftfont_variation_glyphs.
13620 (setup_otf_gstring): New function.
13621 (ftfont_drive_otf): Use it.
13622 (ftfont_shape_by_flt): Handle variation selector.
13623 (ftfont_variation_glyphs): New function.
13624
13625 2008-12-30 Martin Rudalics <rudalics@gmx.at>
13626
13627 * frame.c (Vemacs_iconified): Remove.
13628
13629 2008-12-30 Jason Rumney <jasonr@gnu.org>
13630
13631 * frame.c (store_frame_param, x_get_arg): Enable newer code on
13632 WINDOWSNT too, as related changes have already been synced. (Bug#117)
13633
13634 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
13635
13636 * indent.c (Fvertical_motion): Don't advance iterator if we have
13637 reseated to the desired position.
13638
13639 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13640 checking for pos match.
13641
13642 2008-12-30 Kenichi Handa <handa@m17n.org>
13643
13644 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13645 just get the low 8-bit of the code.
13646
13647 * font.c (font_intern_prop): Validate str as multibyte.
13648
13649 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13650
13651 * dispextern.h (struct face): Move lface and hash from the middle
13652 of bitfields.
13653
13654 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13655
13656 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13657
13658 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13659 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13660 instead of intervals.h.
13661
13662 2008-12-26 Andreas Schwab <schwab@suse.de>
13663
13664 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13665 cons.
13666
13667 2008-12-26 Martin Rudalics <rudalics@gmx.at>
13668
13669 * textprop.c (Qminibuffer_prompt): New variable.
13670 (syms_of_textprop): Initialize it.
13671 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13672 in minibuffer-prompt face. (Bug#1662)
13673
13674 2008-12-25 Jason Rumney <jasonr@gnu.org>
13675
13676 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13677
13678 2008-12-24 Jason Rumney <jasonr@gnu.org>
13679
13680 * ralloc.c (r_alloc_reset_variable): New function.
13681
13682 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
13683 record of what points where. (Bug#716)
13684
13685 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13686
13687 * minibuf.c (read_minibuf): Follow the non-interactive case when
13688 running as a daemon, before detaching.
13689
13690 2008-12-22 Andreas Schwab <schwab@suse.de>
13691
13692 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13693 * gtkutil.c (free_widget_value): Use xfree instead of free.
13694
13695 2008-12-22 Martin Rudalics <rudalics@gmx.at>
13696
13697 * frame.c (delete_frame): New function derived from
13698 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13699 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13700 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13701 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13702 * frame.h: Extern delete_frame.
13703 * window.c (window_loop):
13704 * terminal.c (delete_terminal):
13705 * xterm.c (x_connection_closed):
13706 * xfns.c (Fx_hide_tip):
13707 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
13708
13709 2008-12-21 Jason Rumney <jasonr@gnu.org>
13710
13711 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13712 when character maps to .notdef character.
13713
13714 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13715
13716 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13717
13718 2008-12-20 Jason Rumney <jasonr@gnu.org>
13719
13720 * frame.c (Fmake_terminal_frame): Raise an error when called from
13721 a graphical frame on Windows. (Bug#1325)
13722
13723 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13724
13725 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13726
13727 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
13728
13729 * minibuf.c (Fread_buffer): Doc fix.
13730
13731 2008-12-20 Jason Rumney <jasonr@gnu.org>
13732
13733 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
13734 server name in UNC paths. (Bug#719)
13735
13736 * coding.c (decode_coding): Clear chars_at_source flag when using
13737 charbuf. (Bug#1035)
13738
13739 2008-12-19 Daniel Engeler <engeler@gmail.com>
13740
13741 * sysdep.c (serial_configure): Fix typo.
13742
13743 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13744
13745 * sysdep.c: Include alloca.h.
13746 (system_process_attributes): Add implementation for Solaris.
13747
13748 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
13749
13750 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13751
13752 Reorganize implementation of Flist_system_processes and
13753 Fsystem_process_attributes. No functional changes.
13754 * process.c: Don't #include pwd.h, grp.h and limits.h.
13755 (Flist_system_processes): Just call list_system_processes.
13756 (Fsystem_process_attributes): Just call system_process_attributes.
13757 (procfs_list_system_processes, time_from_jiffies)
13758 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13759 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13760
13761 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13762 (list_system_processes): Rename from
13763 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13764 Provide a do nothing implementation.
13765 (system_process_attributes): Rename from
13766 procfs_list_system_processes.
13767 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13768 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
13769
13770 * w32.c (list_system_processes): Rename from
13771 w32_list_system_processes.
13772 (system_process_attributes): Rename from
13773 w32_system_process_attributes.
13774
13775 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13776
13777 * process.h (w32_list_system_processes)
13778 (w32_system_process_attributes): Remove.
13779 (list_system_processes, system_process_attributes):
13780 New prototypes.
13781
13782 2008-12-19 Kenichi Handa <handa@m17n.org>
13783
13784 * xfont.c (xfont_decode_coding_xlfd): New function.
13785 (xfont_encode_coding_xlfd): New function.
13786 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13787 (xfont_list): Decode and encode XLFD by iso-8859-1.
13788 (xfont_match): Likewise.
13789 (xfont_list_family): Likewise.
13790 (xfont_open): Likewise.
13791
13792 * ftfont.c (ftfont_open): Generate a multibyte string if given
13793 names are utf-8.
13794
13795 * xftfont.c (xftfont_open): Generate a multibyte string if given
13796 names are utf-8.
13797
13798 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13799
13800 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13801 changed.
13802 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13803 clicked on a detached tool bar button.
13804
13805 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13806
13807 * emacs.c (main): Print and error and exit when no data is read
13808 from the pipe.
13809
13810 2008-12-17 Jason Rumney <jasonr@gnu.org>
13811
13812 * w32font.c (w32font_has_char): Always return -1.
13813
13814 2008-12-16 Kenichi Handa <handa@m17n.org>
13815
13816 * font.c (font_open_entity): Fix previous change.
13817
13818 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13819
13820 * process.c: Include <limits.h>.
13821
13822 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
13823
13824 * font.c (font_update_drivers): Fix mistake in reconstructing the
13825 driver list.
13826
13827 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
13828
13829 * font.c (font_clear_cache): Fix format of font cache data.
13830
13831 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
13832
13833 * xftfont.c (xftfont_open): Free Xft font pattern if
13834 XftFontOpenPattern fails.
13835
13836 * xterm.c (x_free_frame_resources): Remove extraneous call to
13837 free_frame_faces.
13838
13839 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13840
13841 * xterm.c (x_delete_display): Move xim_close_dpy call to
13842 x_delete_terminal.
13843 (x_delete_terminal): Call xim_close_dpy.
13844
13845 2008-12-13 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32font.c (intern_font_name): New function.
13848 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13849 (w32font_open_internal, Fx_select_font): Decode font name.
13850 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13851
13852 * w32font.h (intern_font_name): Declare new function.
13853
13854 * w32uniscribe.c (add_opentype_font_name_to_list):
13855 Use intern_font_name.
13856
13857 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13858
13859 * frame.c (Fdelete_frame): Call free_font_driver_list.
13860
13861 * font.c (free_font_driver_list): Implement missing function.
13862
13863 * w32term.c (w32_term_init): Don't initialize the image cache
13864 here; it will be done in init_frame_faces.
13865
13866 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
13867 (struct x_display_info): Remove unused member null_pixel.
13868 New member xim_callback_data.
13869
13870 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13871 (xim_initialize): Save pointer to callback function data.
13872 (xim_close_dpy): Free callback function data. Call XCloseIM,
13873 reverting 2008-11-04 change by David Smith.
13874 (x_term_init): Don't initialize the image cache here; it will be
13875 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13876 (x_delete_display): Free x_dnd_atoms member.
13877
13878 2008-12-13 Kenichi Handa <handa@m17n.org>
13879
13880 * font.c (font_rescale_ratio): Move from xfaces.c.
13881 Argument type changed. Handle a font-spec too.
13882 (font_score): Check Vface_font_rescale_alist.
13883 (font_open_entity): Likewise. (Bug#1547)
13884
13885 * xfaces.c (font_rescale_ratio): Move to font.c.
13886
13887 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13888
13889 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13890
13891 2008-12-12 Jason Rumney <jasonr@gnu.org>
13892
13893 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13894 Set Vwindow_system_version to the real w32 major version.
13895
13896 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13897
13898 * term.c (init_tty): Move setting the terminal name before the
13899 potential user: maybe_fatal.
13900
13901 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
13902
13903 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
13904 all callers changed. Call free_frame_faces to free the face cache.
13905
13906 2008-12-11 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32font.c (fill_in_logfont): Don't assume symbol script means
13909 SYMBOL_CHARSET. (Bug#547)
13910
13911 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
13912 size for surrogates. (Bug#1096, bug#872)
13913
13914 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13915
13916 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13917
13918 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13919
13920 * process.c (Fsystem_process_attributes, syms_of_process):
13921 Fix typo in name of Ssystem_process_attributes.
13922 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13923
13924 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13925
13926 * syntax.c (Fmodify_syntax_entry): Doc fix.
13927
13928 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
13929
13930 * font.c (Ffont_spec): Move usage to end of docstring.
13931
13932 2008-12-10 Jason Rumney <jasonr@gnu.org>
13933
13934 * w32font.c (Qcham): New symbol.
13935 (font_supported_scripts): Add cham, and comments for other new
13936 scripts in bitfield from OpenType spec.
13937 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13938 contain characters beyond the bmp.
13939
13940 2008-12-10 Kenichi Handa <handa@m17n.org>
13941
13942 * ftfont.c (fc_charset_table): Add "unicode-sip".
13943 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
13944 Qunicode_sip.
13945
13946 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
13947
13948 * coding.c (QCdefault_char): Rename from QCdefalut_char.
13949 (Fcoding_system_put): Use QCdefault_char.
13950 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
13951
13952 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
13953
13954 * xftfont.c (syms_of_xftfont): Fix typo.
13955
13956 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
13957
13958 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
13959
13960 * emacs.c (main): Close daemon_pipe on exec.
13961
13962 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
13963
13964 * termchar.h (struct tty): New members termcap_term_buffer and
13965 termcap_strings_buffer.
13966
13967 * term.c (encode_terminal_code): Free any previous memory blocks
13968 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
13969 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
13970 All callers changed.
13971 (init_tty): Store termcap data and string buffers in new struct
13972 tty members termcap_term_buffer and termcap_strings_buffer.
13973 (delete_tty): Free them.
13974 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
13975
13976 2008-12-07 Seiji Zenitani <zenitani@mac.com>
13977
13978 * nsfns.m (ns_set_background_color): Remove code duplication.
13979 It was a substitute for face-transparency on OS X 10.3.
13980
13981 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
13982
13983 * coding.c (make_conversion_work_buffer): Disable buffer
13984 modification hooks in the work buffer.
13985
13986 2008-12-05 Eli Zaretskii <eliz@gnu.org>
13987
13988 * process.c (procfs_system_process_attributes): If `nread' has a
13989 negative value, assign zero to it.
13990
13991 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
13992
13993 * eval.c (Vdebug_on_error): Doc fix.
13994
13995 2008-12-05 Kenichi Handa <handa@m17n.org>
13996
13997 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
13998 second character is a combining character.
13999
14000 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14001
14002 * process.c (procfs_system_process_attributes): Don't use cmd,
14003 cmdsize, and q without initializing them first.
14004
14005 2008-12-04 Jason Rumney <jasonr@gnu.org>
14006
14007 * w32font.c (w32font_draw): Initialize orig_clip before getting
14008 it, and delete it when finished.
14009
14010 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14011
14012 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14013 case when running as a daemon before detaching.
14014
14015 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
14016
14017 * w32.c (init_environment): Don't unload library shell32.dll.
14018
14019 2008-12-03 Kenichi Handa <handa@m17n.org>
14020
14021 * font.c (font_at): Set `multibyte' at first.
14022
14023 * coding.c (decode_coding_charset): Check type of an element of
14024 vector VALIDS.
14025 (encode_coding_emacs_mule): Be sure to set `code'.
14026
14027 * fontset.c (face_for_char): Handle invalid charset property correctly.
14028 (font_for_char): Likewise.
14029
14030 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
14031
14032 * font.c (Fopen_font): Compute pixel size correctly.
14033 (font_update_lface): Handle fonts with corrupted size specs,
14034 i.e. non-int and non-float.
14035
14036 * ftfont.c (ftfont_match): Initialize entity variable.
14037 (ftfont_resolve_generic_family): Avoid using uninitialized var.
14038 (ftfont_list_family): Initialize list var earlier.
14039
14040 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14041
14042 * xterm.c (x_draw_glyph_string): Fall back on
14043 underline_minimum_offset for underline position.
14044
14045 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14046
14047 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14048
14049 * character.c (c_string_width): Specify the type for LEN.
14050
14051 2008-12-03 Kenichi Handa <handa@m17n.org>
14052
14053 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
14054 (decode_coding_utf_8): Likewise.
14055 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
14056 (produce_chars): Initialize consumed_chars to 0.
14057
14058 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * keyboard.c (make_lispy_position): Only use PT if the selected
14061 window is current.
14062
14063 2008-12-02 Andreas Schwab <schwab@suse.de>
14064
14065 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14066
14067 * doprnt.c (doprnt1): Fix size of charbuf.
14068
14069 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14070
14071 * keyboard.c (timer_check): Revert last change.
14072
14073 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
14074
14075 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14076
14077 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
14078
14079 * makefile.w32-in: Update dependencies.
14080 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14081
14082 2008-12-01 Andreas Schwab <schwab@suse.de>
14083
14084 * font.c (register_font_driver): Use xmalloc.
14085 (font_put_frame_data): Likewise.
14086
14087 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
14088
14089 * xfaces.c (realize_x_face): Make abort condition clearer.
14090
14091 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14092
14093 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
14094
14095 * keyboard.c (timer_check): After a timer runs, ensure that the
14096 selected window's buffer is current.
14097
14098 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
14099
14100 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14101 It was accidentally restored by the Unicode merge.
14102
14103 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14104
14105 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
14106
14107 * w32proc.c: Include "coding.h".
14108 (Fw32_short_file_name): Encode filename passed to Windows API.
14109 (Fw32_long_file_name): Encode filename passed to Windows API and
14110 decode back the result. (Bug#1433)
14111
14112 2008-11-29 Kenichi Handa <handa@m17n.org>
14113
14114 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14115 not before accessing it.
14116
14117 * charset.c (Fdefine_charset_internal): After calculating
14118 min_char, max_char, and fastmap, copy the charset structure again.
14119 (encode_char): Fix the previous change.
14120
14121 2008-11-28 Seiji Zenitani <zenitani@mac.com>
14122
14123 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14124
14125 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14126
14127 * nsterm.m (x_set_frame_alpha): New function.
14128
14129 2008-11-27 Eli Zaretskii <eliz@gnu.org>
14130
14131 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14132
14133 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
14134
14135 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14136 pointer to check_face_name.
14137
14138 2008-11-27 Kenichi Handa <handa@m17n.org>
14139
14140 * category.h (SET_CATEGORY_SET): Call set_category_set.
14141 (set_category_set): Extern it.
14142
14143 * category.c (hash_get_category_set): New function.
14144 (Fmodify_category_entry): Adjust for the change of
14145 char_table_ref_and_range. Call hash_get_category_set to get a
14146 category set to store in the table.
14147
14148 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14149 Funify_charset.
14150
14151 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
14152 (DECODE_CHAR): Check if the decoder vector is ready.
14153 (ENCODE_CHAR): Check if the encoder char-table is ready.
14154 (maybe_unify_char): Extern it.
14155
14156 * charset.c (Vchar_unified_charset_table): Delete it.
14157 (inhibit_load_charset_map): New variable.
14158 (temp_charset_work): New variable.
14159 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14160 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14161 New macros.
14162 (load_charset_map): Meaning of control_flag changed.
14163 If inhibit_load_charset_map is nonzero, setup a table in
14164 temp_charset_work.
14165 (load_charset): New argument control_flag.
14166 (map_charset_for_dump): New function.
14167 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14168 map_charset_for_dump.
14169 (Fdefine_charset_internal): If the charset method is MAP, load
14170 mapping tables by calling load_charset.
14171 (Funify_charset): Don't load a mapping table but directly set
14172 Vchar_unify_table.
14173 (maybe_unify_char): New function.
14174 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14175 Handle the case of inhibit_load_charset_map being nonzero.
14176 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14177 Handle the case of inhibit_load_charset_map being nonzero.
14178 (Fclear_charset_maps): Just free temp_charset_work.
14179 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14180 variable.
14181
14182 * chartab.c (sub_char_table_ref_and_range): Adjust for the
14183 change of char_table_ref_and_range.
14184 (char_table_ref_and_range): Change the meaning of argument FROM
14185 and TO. Now the caller must provide initial values for *FROM
14186 and *TO.
14187
14188 * fontset.c (fontset_add): Adjust for the change of
14189 char_table_ref_and_range.
14190 (fontset_get_font_group): Likewise.
14191 (Ffontset_info): Likewise.
14192
14193 * keymap.c (describe_vector): Adjust for the change of
14194 char_table_ref_and_range. For char-table, put boundary between
14195 non-ASCII and 8-bit characters.
14196
14197 * print.c (print_object): For bool-vector, delete unnecessary
14198 check of ASCII_BYTE_P.
14199
14200 2008-11-26 Jason Rumney <jasonr@gnu.org>
14201
14202 * w32font.c (w32font_open_internal): Don't include external
14203 leading in font height. (Bug#879)
14204
14205 2008-11-26 Glenn Morris <rgm@gnu.org>
14206
14207 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14208 redefinition with ifdef. (Bug#1383)
14209
14210 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14211
14212 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14213
14214 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14215
14216 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14217 New EmacsView methods.
14218 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14219 Fixes bug #1048,1357,1414.
14220
14221 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14222
14223 Fix bug #1362.
14224 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14225 is not an indexed color.
14226 * nsterm.m (free_indexed_color): Add argument checking.
14227 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14228
14229 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
14230
14231 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14232 Document confirm-after-completion value for
14233 minibuffer-completion-confirm.
14234
14235 2008-11-24 Jason Rumney <jasonr@gnu.org>
14236
14237 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14238 warning.
14239
14240 2008-11-23 Jason Rumney <jasonr@gnu.org>
14241
14242 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14243 restored before returning.
14244
14245 * w32font.c (check_face_name): New function.
14246 (add_font_entity_to_list): Use it to filter out common substituted
14247 fonts. (Bug#642)
14248
14249 2008-11-22 Martin Rudalics <rudalics@gmx.at>
14250
14251 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14252 confirm-nonexistent-file-or-buffer in doc-string.
14253
14254 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14255
14256 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14257 Fix copy/paste typo. Add checks.
14258
14259 2008-11-21 Kenichi Handa <handa@m17n.org>
14260
14261 * coding.c (detect_coding_iso_2022): Reject invalid composition
14262 sequence.
14263 (DECODE_COMPOSITION_START): If the current source is the last
14264 block, and the current composition doesn't end, regard this
14265 sequence as invalid.
14266 (decode_coding_iso_2022): Handle invalid composition sequence.
14267
14268 2008-11-20 Martin Rudalics <rudalics@gmx.at>
14269
14270 * window.c (coordinates_in_window): Don't return
14271 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14272 line when the window is not the rightmost one. (Bug#1372)
14273
14274 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14275
14276 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14277
14278 2008-11-15 Eli Zaretskii <eliz@gnu.org>
14279
14280 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14281 and bright_bg if noninteractive is non-zero.
14282
14283 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14284
14285 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14286 x_draw_glyph_string_background.
14287
14288 * w32term.c (x_draw_glyph_string): Likewise.
14289
14290 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
14291
14292 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14293 the next glyph string once past the overhang width.
14294
14295 * nsterm.m (ns_draw_glyph_string): Likewise.
14296
14297 * w32term.c (x_draw_glyph_string): Likewise.
14298
14299 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14300
14301 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14302 double file close.
14303
14304 2008-11-14 Martin Rudalics <rudalics@gmx.at>
14305
14306 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14307 dedicated status of window before attempting to display another
14308 buffer in it.
14309
14310 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
14311
14312 * msdos.c (Fmsdos_long_file_names):
14313 (syms_of_msdos) <dos-unsupported-char-glyph>:
14314 * dosfns.c (Fint86): Fix typos in docstrings.
14315
14316 2008-11-14 Eli Zaretskii <eliz@gnu.org>
14317
14318 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14319
14320 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14321
14322 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14323
14324 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14325
14326 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14327
14328 * frame.h: Negative alpha means "don't touch".
14329
14330 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14331
14332 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14333
14334 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14335
14336 * hftctl.c:
14337 * chpdef.h:
14338 * acldef.h: Remove files used only for systems no longer supported.
14339
14340 * Makefile.in: Fix .o alphabetical ordering.
14341 (hftctl.o): Remove dependency, file removed.
14342 (keymap.o, print.o): Depend on charset.h.
14343
14344 2008-11-10 Kenichi Handa <handa@m17n.org>
14345
14346 * character.c (Fget_byte): Fix and make it faster for unibyte target.
14347
14348 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
14349
14350 * dired.c (file_name_completion): If completion_ignore_case is
14351 enabled, ignore case when checking completion-regexp-list.
14352
14353 2008-11-08 Eli Zaretskii <eliz@gnu.org>
14354
14355 * vm-limit.c (get_lim_data): Fix last change.
14356
14357 2008-11-08 Kenichi Handa <handa@m17n.org>
14358
14359 * character.c (Fget_byte): New function.
14360 (syms_of_character): Defsubr Fget_byte.
14361
14362 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
14363
14364 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14365 cursor position is valid after scrolling.
14366
14367 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
14368
14369 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14370
14371 2008-11-06 Glenn Morris <rgm@gnu.org>
14372
14373 * xterm.c (handle_one_xevent): Don't let popup menus cause
14374 mouse-autoselect-window related window switching. (Bug#1261)
14375
14376 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14377
14378 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14379
14380 2008-11-04 Andreas Schwab <schwab@suse.de>
14381
14382 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14383
14384 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
14385
14386 * xfns.c (Fx_wm_set_size_hint): New function.
14387
14388 2008-11-03 Martin Rudalics <rudalics@gmx.at>
14389
14390 * textprop.c (Fprevious_single_char_property_change): Return 0
14391 when there's no change in a string. (Bug#1301)
14392
14393 2008-11-02 Martin Rudalics <rudalics@gmx.at>
14394
14395 * frame.c (do_switch_frame): New argument NORECORD passed to
14396 Fselect_window.
14397 (Fselect_frame): New argument NORECORD passed to
14398 do_switch_frame.
14399 (Fset_frame_selected_window): New argument NORECORD passed to
14400 Fselect_frame.
14401 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14402 in call of do_switch_frame.
14403 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14404 Handle NORECORD argument in call of Fselect_frame.
14405 * lisp.h (do_switch_frame, Fselect_frame)
14406 (Fset_frame_selected_window): Adjust declarations.
14407 * window.c (select_frame_norecord): New function.
14408 (run_window_configuration_change_hook): Use it and call
14409 Fselect_frame with NORECORD set.
14410 (Fselect_window): Pass NORECORD to Fselect_frame.
14411 (Fset_window_configuration): Handle NORECORD argument in call of
14412 do_switch_frame.
14413 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14414 Fset_frame_selected_window.
14415 * keyboard.c (command_loop_1): Handle NORECORD in call of
14416 Fselect_frame (currently ifdefd).
14417
14418 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14419
14420 * emacs.c (USAGE2): Untabify.
14421
14422 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14423
14424 * composite.c (fill_gstring_header): Fix copy/paste typo.
14425
14426 2008-10-31 Martin Rudalics <rudalics@gmx.at>
14427
14428 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14429 (Fother_window): Rename argument and rewrite doc-string.
14430 (select_window_norecord): Fix return value. (Bug#1276)
14431
14432 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
14433
14434 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14435 new frames overriding foreground for tooltips. Based on similar patch
14436 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14437
14438 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
14439
14440 * emacs.c (Fdaemon_initialized): Initialize nfd.
14441
14442 2008-10-29 Martin Rudalics <rudalics@gmx.at>
14443
14444 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14445 (Fwindow_text_height): Clarify doc-strings.
14446 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14447 doc-string of window-scroll-functions.
14448
14449 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14450
14451 * category.c (syms_of_category): Fix typo in docstring.
14452
14453 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
14454
14455 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14456 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14457 Fix typos in docstrings.
14458
14459 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14460
14461 * emacs.c (daemon_pipe): Make non-static.
14462 (IS_DAEMON): Move definition ...
14463 * lisp.h (IS_DAEMON): ... here.
14464 (daemon_pipe): Declare.
14465 (is_daemon): Remove.
14466 * dispnew.c (init_display): Use IS_DAEMON.
14467
14468 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14469
14470 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14471 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14472
14473 * emacs.c (is_daemon): Remove.
14474 (main): Don't set is_daemon.
14475 (IS_DAEMON): New macro.
14476 (Fdaemonp, Fdaemon_initialized): Use it.
14477 (Fdaemon_initialized): Write a char into the pipe to make sure the
14478 parent exits.
14479 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14480
14481 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
14482
14483 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14484 over-sized glyph, draw it with the default glyph width.
14485
14486 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14487 glyph, draw it with the default glyph width.
14488
14489 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14490 glyph, draw it with the default glyph width.
14491
14492 * xdisp.c (try_scrolling): When computing the distance from the
14493 scroll margin to PT, try moving some distance past the window
14494 bottom before giving up.
14495
14496 2008-10-27 Martin Rudalics <rudalics@gmx.at>
14497
14498 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14499 (Fset_window_buffer): Explain in doc-string that a window can be
14500 "strongly" dedicated to its buffer.
14501
14502 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14503
14504 * emacs.c (daemon_name): New variable.
14505 (main): Deal with --daemon=SERVER_NAME.
14506 (Fdaemonp): Return a name if one was passed to --daemon.
14507
14508 2008-10-26 Romain Francoise <romain@orebokech.com>
14509
14510 * emacs.c (daemon_pipe): New variable.
14511 (main): Create a pipe before forking, make the parent exit only after
14512 the child has closed its end of the pipe. Move closing the
14513 descriptors ...
14514 (Fdaemon_initialized): ... here. New function.
14515
14516 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14517
14518 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14519 the previous unoptimized table.
14520
14521 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14522 the distinction between non-nil and non-t value of `dedicated'.
14523
14524 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
14525
14526 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
14527 read_char_minibuf_menu_text is large enough to hold the menu string.
14528
14529 2008-10-25 Martin Rudalics <rudalics@gmx.at>
14530
14531 * window.c (Fget_buffer_window, Fdelete_windows_on)
14532 (Freplace_buffer_in_windows): Make buffer argument optional and
14533 rename to buffer_or_name.
14534
14535 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
14536
14537 * xdisp.c (handle_single_display_spec, handle_display_prop):
14538 Undo 2005-05-16 change.
14539 (handle_stop): Pop iterator if it's loaded with an empty string.
14540 (get_overlay_strings_1): Don't save iterator if it's loaded with
14541 an empty string (bug#1201).
14542
14543 2008-10-24 Kenichi Handa <handa@m17n.org>
14544
14545 * ftfont.c (ftfont_otf_features): Fix previous change.
14546 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14547 calling ftfont_otf_features.
14548
14549 2008-10-24 Kenichi Handa <handa@m17n.org>
14550
14551 * font.c (font_match_p): Fix for the case that a vector of
14552 characters is in script-representative-chars.
14553
14554 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
14555
14556 * dbusbind.c (xd_in_read_queued_messages): New variable.
14557 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
14558 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14559 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
14560 macro. (Bug#1186)
14561
14562 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
14563
14564 * s/sol2-10.h: New file.
14565
14566 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14567
14568 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14569 poor beast has survived 9+ years and the jump from xterm.c!).
14570
14571 2008-10-23 Martin Rudalics <rudalics@gmx.at>
14572
14573 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14574 Reword doc-string.
14575 (Fbury_buffer): In doc-string say what happens to the buffer's window.
14576
14577 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14578
14579 * character.c (syms_of_character) <script-representative-chars>:
14580 <unicode-category-table>: Doc fixes.
14581
14582 2008-10-23 Noah Friedman <friedman@splode.com>
14583
14584 * coding.c (make_conversion_work_buffer): Check that
14585 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14586 Fget_buffer_create.
14587
14588 2008-10-23 Kenichi Handa <handa@m17n.org>
14589
14590 * font.c (font_add_log): Check the values of extra properties.
14591
14592 2008-10-22 Martin Rudalics <rudalics@gmx.at>
14593
14594 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14595 Reword doc-string.
14596 (Fset_window_parameter): Use NILP.
14597 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
14598 (Frecenter): Use "selected" instead of "current" window in doc-strings.
14599
14600 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14601
14602 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14603
14604 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14605
14606 * nsfns.m (ns_appkit_version): New function.
14607 (x-server-version): Use it.
14608 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14609 (x-server-vendor): Don't check_ns().
14610
14611 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14612
14613 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14614
14615 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14616 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14617
14618 2008-10-22 Kenichi Handa <handa@m17n.org>
14619
14620 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14621 scripts.
14622
14623 * category.c (word_boundary_p): Check scripts instead of charset.
14624 Handle nil value in word-separating-categories and
14625 word-combining-categories.
14626 (syms_of_category): Fix docstrings of word-separating-categories
14627 and word-combining-categories.
14628
14629 2008-10-21 Eli Zaretskii <eliz@gnu.org>
14630
14631 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14632 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14633
14634 2008-10-21 Martin Rudalics <rudalics@gmx.at>
14635
14636 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14637 Rename arg "buffer" to "buffer_or_name".
14638 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14639 it optional.
14640 (no_switch_window): Remove since the return value is not used.
14641 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
14642 Consider window as dedicated when Fwindow_dedicated_p returns a
14643 non-nil value.
14644 * lisp.h: Remove prototype for no_switch_window.
14645
14646 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14647
14648 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
14649 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
14650
14651 2008-10-21 Kenichi Handa <handa@m17n.org>
14652
14653 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14654 check Vlatin_extra_code_table.
14655
14656 2008-10-20 Eli Zaretskii <eliz@gnu.org>
14657
14658 * fileio.c (Fset_file_modes): Doc fix.
14659
14660 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
14661
14662 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14663 in arrays.
14664
14665 2008-10-19 Martin Rudalics <rudalics@gmx.at>
14666
14667 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14668 Mention kill-buffer in doc-string.
14669 (Fset_window_buffer): Reinsert tem check removed in last commit.
14670 (Fenlarge_window, Fshrink_window): Have argument names and
14671 doc-string follow Elisp manual more closely.
14672
14673 2008-10-18 Eli Zaretskii <eliz@gnu.org>
14674
14675 * fileio.c (Fset_file_modes): Doc fix.
14676
14677 2008-10-18 Martin Rudalics <rudalics@gmx.at>
14678
14679 * window.c (Fwindow_width, Fset_window_start)
14680 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
14681 (Fdelete_windows_on, Freplace_buffer_in_windows):
14682 Make doc-strings follow code and Elisp manual more closely.
14683 (Fwindow_dedicated_p): Make window argument optional.
14684 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14685 (Fset_window_buffer): Respect any non-nil dedicated value for
14686 window. Rename "buffer" argument to "buffer_or_name".
14687
14688 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
14689
14690 * m/sh3.h: New file, machine description for SuperH.
14691
14692 2008-10-17 Martin Rudalics <rudalics@gmx.at>
14693
14694 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14695
14696 2008-10-17 Kenichi Handa <handa@m17n.org>
14697
14698 * ftfont.c (ftfont_otf_features): Fix indexing
14699 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14700
14701 2008-10-16 Magnus Henoch <mange@freemail.hu>
14702
14703 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14704 (Fdbus_call_method_asynchronously): Ditto.
14705 This change makes C-h f display the argument list.
14706
14707 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
14708
14709 * fileio.c (Fexpand_file_name): Doc fix.
14710
14711 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14712 of :foreground and :background equivalent to unspecified (20.x
14713 compatibility).
14714
14715 2008-10-15 Eli Zaretskii <eliz@gnu.org>
14716
14717 * buffer.c (syms_of_buffer): Doc fix.
14718
14719 2008-10-14 Kenichi Handa <handa@m17n.org>
14720
14721 * font.c (font_clear_prop): When clearing font width, clear the
14722 average width field too.
14723
14724 2008-10-12 Andreas Schwab <schwab@suse.de>
14725
14726 * ftfont.c (ftfont_shape_by_flt): Make static.
14727 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14728
14729 * font.c: Don't include <m17n-flt.h>.
14730
14731 2008-10-10 Eli Zaretskii <eliz@gnu.org>
14732
14733 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14734
14735 2008-10-09 Eli Zaretskii <eliz@gnu.org>
14736
14737 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14738 away code.
14739
14740 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
14741
14742 * dispnew.c (update_text_area): Avoid looping due to large glyph
14743 overhangs (bug#1070).
14744
14745 2008-10-09 Kenichi Handa <handa@m17n.org>
14746
14747 * fontset.c (face_for_char): If face->fontset is negative, just
14748 return ascii_face.
14749
14750 * font.c (font_delete_unmatched): Fix previous change.
14751 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
14752
14753 2008-10-09 Martin Rudalics <rudalics@gmx.at>
14754
14755 * frame.c (Fraise_frame): On text-only terminals select frame in
14756 order to make it visible. (Bug#1061)
14757
14758 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
14759
14760 * fontset.c (fontset_find_font): Check frame validity.
14761
14762 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
14763
14764 * gtkutil.c (xg_display_open): Reset default display if none exists.
14765 (xg_display_close): Allow Emacs to close all displays (bug#985).
14766
14767 2008-10-06 Andreas Schwab <schwab@suse.de>
14768
14769 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
14770
14771 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
14772
14773 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
14774
14775 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
14776
14777 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14778 during initialization.
14779
14780 2008-10-04 Eli Zaretskii <eliz@gnu.org>
14781
14782 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14783 whole thing on MSDOS frames as well as on a TTY.
14784
14785 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14786 well as for TTY.
14787 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14788 well as on a TTY.
14789
14790 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14791 as well as for TTY.
14792
14793 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14794
14795 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14796 MSDOS frames as well.
14797
14798 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14799
14800 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14801 correct arguments.
14802 * menu.c (find_and_return_menu_selection): Add cast.
14803
14804 2008-10-03 Glenn Morris <rgm@gnu.org>
14805
14806 * emacs.c (USAGE1): Add --daemon.
14807
14808 2008-10-02 Eli Zaretskii <eliz@gnu.org>
14809
14810 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14811 100, so it's in percents as advertised.
14812
14813 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14814
14815 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14816 (ns_output.current_cursor, ns_output.desired_cursor)
14817 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14818 (FRAME_NEW_CURSOR_COLOR): Remove.
14819
14820 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
14821 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
14822 enumeration (HOLLOW_BOX_CURSOR, etc.).
14823
14824 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14825 (draw_window_cursor): Simplify code.
14826 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14827 Don't change cursor type. In latter, call rehighlight instead of doing
14828 updates manually.
14829 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14830 Use core Emacs cursor types.
14831
14832 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
14833
14834 2008-10-02 Martin Rudalics <rudalics@gmx.at>
14835
14836 * process.c (Faccept_process_output): Fix doc-string.
14837
14838 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14839
14840 * gmalloc.c (__sbrk): Also define for uClibc.
14841
14842 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14843 for uClibc.
14844
14845 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14846
14847 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14848 styles.
14849 (nsfont_open): Reenable the cache.
14850
14851 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14852
14853 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14854 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14855
14856 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14857
14858 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14859 a suspended terminal.
14860
14861 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
14862
14863 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14864
14865 2008-09-30 Eli Zaretskii <eliz@gnu.org>
14866
14867 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14868
14869 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
14870
14871 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14872 in a continued line coincides with a line beginning.
14873
14874 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14875
14876 * nsfont.m (nsfont_trait_distance): Fix bug.
14877 (nsfont_list): Return a list rather than a vector (syncs with Handa
14878 changes of 2008-05-14).
14879 (nsfont_open): Improve logging.
14880
14881 2008-09-29 Andreas Schwab <schwab@suse.de>
14882
14883 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14884
14885 2008-09-28 Martin Rudalics <rudalics@gmx.at>
14886
14887 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14888 name as char-resolve-modifiers.
14889 Reported by: Markus Triska <markus.triska@gmx.at>
14890
14891 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14892
14893 * dispnew.c (init_display): Return earlier when running as a daemon.
14894
14895 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14896
14897 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14898
14899 2008-09-27 Eli Zaretskii <eliz@gnu.org>
14900
14901 * composite.c (Fcomposition_get_gstring)
14902 (Fcompose_region_internal, Fcompose_string_internal)
14903 (Ffind_composition_internal): Doc fix.
14904 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14905 (syms_of_composite) <auto-composition-function>: Doc fix.
14906 (syms_of_composite) <composition-function-table>: Doc fix.
14907
14908 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
14909
14910 * search.c (wordify): New argument for lax word-ends.
14911 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14912
14913 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14914
14915 * lisp.h (is_daemon): Declare.
14916 * dispnew.c (init_display): Do not try to initialize the terminal
14917 when running as a daemon.
14918
14919 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
14920
14921 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14922 x_display_pixel_height.
14923
14924 2008-09-22 Martin Rudalics <rudalics@gmx.at>
14925
14926 * undo.c (record_point): Don't call Fundo_boundary for first
14927 change. (Bug#731)
14928
14929 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
14930
14931 * emacs.c (Fdaemonp): Doc fix.
14932
14933 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14934
14935 * emacs.c (main): Place #ifdef in the proper place.
14936
14937 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14938
14939 * emacs.c (standard_args): Add --daemon.
14940 (main): Disconnect from the terminal when --daemon is passed.
14941 (is_daemon): New variable.
14942 (Fdaemonp): New function.
14943 (syms_of_emacs): Defsubr it.
14944
14945 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
14946
14947 * xdisp.c (get_next_display_element): Handle string display
14948 correctly when checking for the end of a box run.
14949
14950 2008-09-20 Glenn Morris <rgm@gnu.org>
14951
14952 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
14953 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
14954 (Frename_file): Avoid copying to trash if a rename involves
14955 a delete. (Bug#964).
14956
14957 2008-09-20 Eli Zaretskii <eliz@gnu.org>
14958
14959 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
14960 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
14961 frames as well as termcap frames.
14962 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
14963 get_named_tty.
14964
14965 2008-09-19 Eli Zaretskii <eliz@gnu.org>
14966
14967 * process.c (procfs_system_process_attributes): Fix cmdline in
14968 case /proc/PID/cmdline is empty.
14969
14970 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
14971 x_display_pixel_height.
14972
14973 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
14974
14975 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
14976
14977 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
14978 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
14979
14980 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
14981
14982 * dispextern.h (struct it): Move line_wrap away from the middle of
14983 bitfields. Move voffset in struct iterator_stack_entry after the
14984 bitfields. Move tab_width near after another short.
14985
14986 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
14987
14988 * frame.h (struct frame): Move alpha from the middle of bitfields.
14989
14990 * window.h (struct window): Move frozen_window_start_p after the
14991 rest of the bitfields to reduce padding.
14992
14993 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
14994
14995 * xterm.h (x_display_info): Remove `height' and `width' members.
14996
14997 * nsterm.h (ns_display_info): Remove `height' and `width' members.
14998
14999 * w32term.h (w32_display_info): Remove `height', `width',
15000 `height_in', and `width_in' members.
15001
15002 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15003 New functions.
15004 (x_calc_absolute_position): Use them.
15005 (x_term_init): Omit removed `height' and `width' members.
15006
15007 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15008 New functions.
15009 (w32_read_socket, x_calc_absolute_position): Use them.
15010 (w32_initialize_display_info, w32_term_init): Omit removed members
15011 of w32_display_info.
15012
15013 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15014 New functions.
15015 (ns_initialize_display_info): Omit removed members of ns_display_info.
15016
15017 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15018 New functions.
15019 (x_calc_absolute_position): Use them.
15020 (x_term_init): Omit removed `height' and `width' members.
15021
15022 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15023 (compute_tip_xy):
15024 * frame.c (x_fullscreen_adjust):
15025 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15026 x_display_pixel_width.
15027
15028 2008-09-18 Kenichi Handa <handa@m17n.org>
15029
15030 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15031 (composition_compute_stop_pos): Fix handling of static composition.
15032 (Fcomposition_get_gstring): Check FROM and TO at first.
15033
15034 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15035
15036 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
15037 mixup (YAILOM).
15038
15039 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
15040
15041 * indent.c (Fvertical_motion): Use position reported by iterator
15042 instead of PT for determining screen motion (bug#943).
15043
15044 2008-09-17 Romain Francoise <romain@orebokech.com>
15045
15046 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15047
15048 2008-09-17 Kenichi Handa <handa@m17n.org>
15049
15050 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15051
15052 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15053 if necessary.
15054
15055 2008-09-16 Kenichi Handa <handa@m17n.org>
15056
15057 * coding.c (make_conversion_work_buffer): Avoid calling
15058 Fget_buffer_create if it is not necessary.
15059
15060 2008-09-15 Martin Rudalics <rudalics@gmx.at>
15061
15062 * window.c (Fselect_window): Don't update window_select_count and
15063 use_time when norecord is not nil.
15064
15065 2008-09-14 Kenichi Handa <handa@m17n.org>
15066
15067 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15068 specpdl_ptr.
15069
15070 2008-09-12 Kenichi Handa <handa@m17n.org>
15071
15072 * indent.c (scan_for_column): Don't handle automatic composition
15073 if the current buffer is not associated with a window.
15074
15075 * composite.c (composition_reseat_it): If the current buffer is
15076 not associated with a window, ignore the automatic composition.
15077 (find_automatic_composition): Likewise.
15078
15079 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15080
15081 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15082 (Fgpm_mouse_stop): Use it.
15083 * termhooks.h (close_gpm): Declare.
15084 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15085 connection if Gpm_GetEvent fails.
15086
15087 * window.c (set_window_buffer): Always preserve current-buffer.
15088
15089 2008-09-12 Glenn Morris <rgm@gnu.org>
15090
15091 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15092
15093 2008-09-11 Glenn Morris <rgm@gnu.org>
15094
15095 * charset.c (charset-map-path): Doc fix.
15096
15097 2008-09-10 Kenichi Handa <handa@m17n.org>
15098
15099 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15100
15101 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15102 compose a grapheme cluster with the preceding base glyph.
15103
15104 * composite.c (composition_compute_stop_pos): Fix previous change.
15105 Reset cmp_it->id to -1 at first.
15106
15107 2008-09-10 Glenn Morris <rgm@gnu.org>
15108
15109 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15110
15111 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
15112
15113 * keyboard.c (read_key_sequence): Reapply translation maps when
15114 switching keyboards.
15115
15116 2008-09-09 Kenichi Handa <handa@m17n.org>
15117
15118 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15119 characters.
15120
15121 * composite.c (FORWARD_CHAR): Fix calculation
15122 of (POSITION).pos_byte.
15123 (composition_compute_stop_pos): Limit the search of composition to
15124 at most 500 characters ahead. If we reach the limit or find a
15125 newline, set cmp_it->ch to -2 and return 0.
15126 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15127
15128 2008-09-08 Kenichi Handa <handa@m17n.org>
15129
15130 * indent.c (Fvertical_motion): Be sure to set
15131 it_overshoot_expected if it.cmp_it.id is non-negative.
15132
15133 2008-09-07 Andreas Schwab <schwab@suse.de>
15134
15135 * callproc.c (Fcall_process): Don't hold references to string data
15136 across garbage collection. Move initialisation of new_argv down
15137 to avoid compiler bug.
15138
15139 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15140
15141 * process.c (Fsystem_process_attributes): Doc fix.
15142
15143 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
15144
15145 * callproc.c (Fcall_process): Canonicalize current directory name.
15146
15147 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15148 iterator advances to the next line if the current line ends in a
15149 continued tab.
15150
15151 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15152
15153 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15154 member to point to cmp_from.
15155
15156 * xdisp.c: Doc fix for references to gidx data member.
15157
15158 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15159
15160 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15161
15162 2008-09-07 Kenichi Handa <handa@m17n.org>
15163
15164 * composite.c (FORWARD_CHAR): Check STOP after
15165 incrementing (POSITION).pos.
15166
15167 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15168
15169 * process.c (Fsystem_process_attributes): Doc fix.
15170
15171 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
15172
15173 * keyboard.c (Ftop_level): Doc fix.
15174
15175 2008-09-06 Eli Zaretskii <eliz@gnu.org>
15176
15177 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15178 minibuffer, don't let lower part of menu invade the echo area.
15179
15180 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15181 "char *q" to access menu text and advance through it. Revert the
15182 change that displayed ">" instead of ASCII character 0x10.
15183
15184 2008-09-05 Eli Zaretskii <eliz@gnu.org>
15185
15186 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15187 toggle boxes and radio buttons on MS-DOS as well.
15188
15189 2008-09-05 Kenichi Handa <handa@m17n.org>
15190
15191 * composite.c (autocmp_chars): Check lookback count.
15192 (composition_compute_stop_pos): Set cmp_it->lookback.
15193 (composition_reseat_it): Check lookback count.
15194 (struct position_record): New struct.
15195 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15196 (find_automatic_composition): New function.
15197 (composition_adjust_point): Use find_automatic_composition.
15198
15199 * dispextern.h (struct composition_it): New member lookback.
15200
15201 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
15202
15203 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15204 if moving by a single line.
15205
15206 2008-09-02 Andreas Schwab <schwab@suse.de>
15207
15208 * xterm.c (x_delete_display): Fix merge error.
15209
15210 * fileio.c (Fexpand_file_name): Remove unused variables.
15211
15212 2008-09-02 Eli Zaretskii <eliz@gnu.org>
15213
15214 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15215 storage on all platforms, not just on DOS_NT.
15216
15217 2008-09-02 Jason Rumney <jasonr@gnu.org>
15218
15219 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15220 Ensure mouse is not grabbed after menu is finished.
15221
15222 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
15223
15224 * xfaces.c (Finternal_set_alternative_font_family_alist)
15225 (Finternal_set_alternative_font_registry_alist): Properly copy
15226 entire alist structure.
15227
15228 2008-09-01 Kenichi Handa <handa@m17n.org>
15229
15230 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
15231 representative chars of the script is a vector.
15232 (ftfont_list): Handle the case where the representative chars of
15233 the script is a vector.
15234
15235 * character.c (syms_of_character): Docstring of
15236 script-representative-chars fixed.
15237
15238 2008-08-31 Eli Zaretskii <eliz@gnu.org>
15239
15240 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15241 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15242 the menu. Allocate larger buffer for `text', to account for
15243 possible ^C characters.
15244
15245 2008-08-31 Martin Rudalics <rudalics@gmx.at>
15246
15247 * xdisp.c (prepare_menu_bars): Don't call
15248 Vwindow_size_change_functions with arg Qt.
15249
15250 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15251
15252 * font.h (font_range):
15253 * fileio.c (report_file_error):
15254 * composite.c (composition_update_it): Yet another int/Lisp_Object
15255 mixup (YAILOM).
15256
15257 2008-08-30 Glenn Morris <rgm@gnu.org>
15258
15259 * data.c (Fmake_variable_frame_local): Doc fix.
15260
15261 * frame.c (Fmodify_frame_parameters): Doc fix.
15262
15263 2008-08-30 Eli Zaretskii <eliz@gnu.org>
15264
15265 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15266 needed by GetTokenInformation.
15267 (w32_system_process_attributes): Check return values of all system
15268 APIs.
15269
15270 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15271 only when the state changes.
15272 (IT_update_begin, IT_update_end): Add termscript trace.
15273
15274 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15275 clipboard is unavailable. Set dst to NULL if it doesn't point to
15276 malloc'ed data.
15277 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15278 passing random values to xfree.
15279
15280 * dispnew.c (init_display): Set `tty's association in frame's
15281 parameters alist to the name of the terminal device, if that is known.
15282
15283 2008-08-29 Jason Rumney <jasonr@gnu.org>
15284
15285 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15286
15287 2008-08-29 Eli Zaretskii <eliz@gnu.org>
15288
15289 * composite.c (fill_gstring_body): Avoid compiler warnings.
15290
15291 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15292 LGLYPH_SET_CODE to avoid compiler warnings.
15293
15294 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
15295
15296 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15297
15298 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15299 LGLYPH_SET_CODE.
15300
15301 2008-08-29 Kenichi Handa <handa@m17n.org>
15302
15303 * fileio.c (report_file_error): Don't downcase the first character
15304 of errstring if it is still unibyte.
15305
15306 2008-08-29 Kenichi Handa <handa@m17n.org>
15307
15308 These changes are to re-implement the automatic composition so
15309 that it doesn't use text properties.
15310
15311 * Makefile.in (ftfont.o): Depend on composite.h.
15312 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15313
15314 * character.h (Vunicode_category_table): Extern it.
15315
15316 * character.c (Vunicode_category_table): New variable.
15317 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15318
15319 * chartab.c (optimize_sub_char_table): Perform more greedy
15320 optimization.
15321
15322 * composite.h (enum composition_method):
15323 Delete COMPOSITION_WITH_GLYPH_STRING.
15324 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15325 (Vcomposition_function_table): Extern it.
15326 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15327 (composition_gstring_put_cache, composition_gstring_from_id)
15328 (composition_gstring_p, composition_gstring_width)
15329 (composition_compute_stop_pos, composition_reseat_it)
15330 (composition_update_it, composition_adjust_point): Extern them.
15331 (Fcomposition_get_gstring): EXFUN it.
15332
15333 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
15334 (Vcomposition_function_table)
15335 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
15336 (gstring_hash_table, gstring_work, gstring_work_headers):
15337 New variables.
15338 (gstring_lookup_cache, composition_gstring_put_cache)
15339 (composition_gstring_from_id, composition_gstring_p)
15340 (composition_gstring_width, fill_gstring_header)
15341 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15342 (composition_reseat_it, composition_update_it)
15343 (composition_adjust_point, Fcomposition_get_gstring): New functions.
15344 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15345 and gstring_work_headers. DEFVAR_LISP composition-function-table.
15346 Defsubr composition_get_gstring.
15347
15348 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15349 cmp_id.
15350 (struct glyph_string): Delete the member gidx. New members
15351 cmp_id, cmp_from, and cmp_to.
15352 (enum it_method): Delete GET_FROM_COMPOSITION.
15353 (struct composition_it): New struct.
15354 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15355 Delete c, len, cmp_id, cmp_len in u.comp.
15356
15357 * font.h (enum lgstring_indices): Delete it.
15358 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
15359 (enum lglyph_indices): Likewise.
15360 (font_range): Adjust extern.
15361 (font_fill_lglyph_metrics): Extern it.
15362
15363 * font.c (QCf): New variable.
15364 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15365 (font_prepare_composition): Delete this function.
15366 (font_range): Type and arguments changed.
15367 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15368 (font_fill_lglyph_metrics): New function.
15369 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
15370 (syms_of_font): DEFSYM QCf. Delete defsubr for
15371 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15372 Defsubr Sfont_shape_gstring.
15373
15374 * fontset.h (font_for_char): Extern it.
15375
15376 * fontset.c (font_for_char): New function.
15377
15378 * ftfont.c: Include composite.h.
15379 (ftfont_resolve_generic_family): Add langset "en" to pattern.
15380 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15381
15382 * indent.c: Include composite.h and dispextern.h.
15383 (check_composition): Delete this function.
15384 (scan_for_column): Handle composition by
15385 composition_compute_stop_pos, composition_reseat_it, and
15386 composition_update_it.
15387 (compute_motion): Likewise.
15388 (Fvertical_motion): Fix checking of composition.
15389
15390 * keyboard.c (adjust_point_for_property): Check composition by
15391 composition_adjust_point.
15392
15393 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
15394 struct glyph_string.
15395
15396 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15397 (append_composite_glyph): Adjust for the change of struct it and
15398 struct glyph.
15399 (produce_composite_glyph): Likewise.
15400
15401 * w32term.c (x_draw_composite_glyph_string_foreground):
15402 Adjust for the change of struct glyph_string.
15403 (x_draw_glyph_string): Likewise.
15404
15405 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15406 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15407
15408 * xdisp.c: Include font.h.
15409 (it_props): Delete the entry for Qauto_composed.
15410 (init_iterator): Initialize it->cmp_it.id to -1.
15411 (compute_stop_pos): Call composition_compute_stop_pos.
15412 (face_before_or_after_it_pos): Adjust for the change of struct it.
15413 (handle_auto_composed_prop): Delete it.
15414 (handle_composition_prop): Handle only static composition.
15415 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15416 from xassert. Initialize it->cmp_it.stop_pos.
15417 (push_it): Adjust for the change of struct it.
15418 (pop_it): Likewise.
15419 (get_next_element): Delete next_element_from_composition.
15420 (CHAR_COMPOSED_P): New macro.
15421 (get_next_display_element): For automatic composition, get a face
15422 from the font in the glyph-string.
15423 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
15424 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
15425 (next_element_from_string): Check if the character at the current
15426 position is composed by CHAR_COMPOSED_P.
15427 (next_element_from_buffer): Likewise.
15428 (next_element_from_composition): Adjust for the change of struct it.
15429 Update it->cmp_it.
15430 (dump_glyph): Adjust for the change of struct glyph.
15431 (fill_composite_glyph_string): Adjust for the change of struct
15432 it and struct glyph. Don't handle automatic composition here.
15433 (fill_gstring_glyph_string): New function.
15434 (x_get_glyph_overhangs): Handle automatic composition.
15435 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
15436 (BUILD_GSTRING_GLYPH_STRING): New macro.
15437 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15438 automatic composition.
15439 (append_composite_glyph): Adjust for the change of struct it and
15440 struct glyph.
15441 (x_produce_glyphs): Adjust for the change of struct it.
15442
15443 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15444 the change of struct glyph_string.
15445 (x_draw_glyph_string): Likewise.
15446
15447 2008-08-29 Glenn Morris <rgm@gnu.org>
15448
15449 * buffer.c (word-wrap): Doc fix.
15450 * xdisp.c (truncate-partial-width-windows): Doc fix.
15451 Increase default to 50.
15452
15453 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
15454
15455 * xdisp.c (update_tool_bar_unwind): New function.
15456 (update_tool_bar): Temporarily set selected frame before building
15457 tool-bar items.
15458
15459 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
15460
15461 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15462 snprintf, respectively.
15463 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15464
15465 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
15466
15467 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15468 LDFLAGS to GNUstep CC invocation.
15469
15470 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
15471
15472 * indent.c (Fvertical_motion): Revert last change. Handle the
15473 general case where we are moving forward, and PT spans multiple
15474 screen lines.
15475
15476 * eval.c (find_handler_clause): Temporarily increase
15477 max-lisp-eval-depth while printing the backtrace buffer, to
15478 guarantee that help-mode code can run.
15479
15480 2008-08-27 Eli Zaretskii <eliz@gnu.org>
15481
15482 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15483 colors under -rv.
15484 (IT_set_frame_parameters): Don't swap foreground and background
15485 colors if `(reverse . t)' is present in the frame properties.
15486 (internal_terminal_init): Call init_frame_faces only for the
15487 initial frame.
15488
15489 2008-08-27 Andreas Schwab <schwab@suse.de>
15490
15491 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15492
15493 2008-08-27 Andreas Schwab <schwab@suse.de>
15494
15495 * search.c (search_buffer): Set char_base to zero only at the end.
15496
15497 2008-08-27 Kenichi Handa <handa@m17n.org>
15498
15499 * fileio.c (report_file_error): Fix handling of multibyte error string.
15500
15501 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15502
15503 * xterm.c (x_term_init): Temporarily hide the partially
15504 initialized terminal while calling vendor-specific-keysyms.
15505
15506 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15507
15508 * msdos.c (internal_terminal_init): Most initializations done only
15509 once, especially initial_screen_colors[] and termscript open.
15510
15511 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15512
15513 * eval.c (Fcondition_case): Doc fix.
15514
15515 * widgetprv.h (EmacsFramePart): Change font member to the new font
15516 struct.
15517
15518 * widget.c: Include character.h and font.h for XSETFONT.
15519 (setup_frame_gcs): Compute X font id from font struct, just once.
15520
15521 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15522
15523 * term.c (get_named_tty): Fix last change.
15524
15525 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15526
15527 * indent.c (Fvertical_motion): If moving forward starting from a
15528 multi-line string, move the iterator to the last line of that string.
15529
15530 2008-08-25 Eli Zaretskii <eliz@gnu.org>
15531
15532 * frame.c (do_switch_frame): Mark previously displayed frame as
15533 obscured for FRAME_MSDOS_P frames as well.
15534
15535 2008-08-24 Eli Zaretskii <eliz@gnu.org>
15536
15537 * frame.c (make_terminal_frame): Initialize f->terminal,
15538 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15539 Set the top frame to newly created frame.
15540 (Fmake_terminal_frame): Reuse the_only_display_info.
15541
15542 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15543 estimating available memory.
15544
15545 2008-08-23 David Reitter <david.reitter@gmail.com>
15546
15547 * nsterm.m (ns_draw_window_cursor): Don't call
15548 NSDisableScreenUpdates and NSEnableScreenUpdates on
15549 non-NS_IMPL_COCOA systems.
15550
15551 2008-08-23 Andreas Schwab <schwab@suse.de>
15552
15553 * process.c (procfs_system_process_attributes): Fix use of
15554 uninitialized variables.
15555
15556 2008-08-23 Eli Zaretskii <eliz@gnu.org>
15557
15558 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15559
15560 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15561 calling tty-set-up-initial-frame-faces.
15562
15563 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15564 Allow MSDOS frames along with X frames.
15565
15566 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15567 addition to output_termcap.
15568
15569 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15570
15571 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15572 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15573 highlight.
15574
15575 * process.c [!subprocesses]: Define QCname.
15576 (syms_of_process): Intern and staticpro it.
15577
15578 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
15579 Adjust for changes in encoding/decoding routines.
15580 Use encode_coding_object and decode_coding_object instead of
15581 encode_coding and decode_coding.
15582
15583 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
15584
15585 * dosfns.c: Include frame.h before termhooks.h.
15586 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15587 variable termscript.
15588
15589 * s/msdos.h (USER_FULL_NAME): Define.
15590 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15591
15592 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15593 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15594 pw->pw_gecos.
15595
15596 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15597 SELECTED_FRAME as additional (1st) argument.
15598 (tty_read_avail_input): Handle output_msdos_raw in
15599 addition to output_termcap.
15600
15601 * msdos.c: Include frame.h before termhooks.h.
15602 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15603 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15604 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15605 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15606 (IT_set_terminal_modes, IT_reset_terminal_modes)
15607 (IT_set_frame_parameters): Use tty->termscript instead of a global
15608 variable termscript.
15609 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15610 global variable terminal_coding. Don't refer to
15611 Vnonascii_translation_table.
15612 (internal_terminal_init): Set Vwindow_system in current_kboard.
15613 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15614 Announce date and time of session start, if termscript is open.
15615 Don't zero out the_only_display_info (it is done in
15616 term.c:init_tty). Open termscript only of not already open.
15617 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
15618 here instead of dos_ttraw. Don't initialize display if this is an
15619 initial tty. Don't set FRAME_FONT.
15620 (Vwindow_system_version): Bump to 23.
15621 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15622 is available, set up mouse_position_hook.
15623 (dos_ttraw, IT_set_terminal_modes): If called with initial
15624 terminal, do nothing.
15625 (IT_set_frame_parameters): Handle the Qtty_type frame
15626 parameter by calling internal_terminal_init.
15627 (dos_set_window_size, show_mouse_face)
15628 (clear_mouse_face, IT_note_mode_line_highlight)
15629 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15630 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15631 (initialize_msdos_display): New function.
15632 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15633 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15634 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15635 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
15636 Accept additional argument: a pointer to a frame. Update all callers.
15637 (request_sigio, unrequest_sigio): Don't define, now defined on
15638 sysdep.c.
15639 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15640
15641 * term.c [MSDOS]: Include msdos.h.
15642 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15643 conditional to DOS_NT. Allow only one call to this function in a
15644 session. Don't allocate a new struct tty_display_info; instead,
15645 reuse the_only_display_info. Call get_tty_size to get screen
15646 dimensions. Call init_baud_rate to set bad_rate.
15647 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15648 (Fsuspend_tty) [MSDOS]: Don't close input and output.
15649 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
15650 (get_tty_terminal, get_named_tty, Ftty_type)
15651 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15652 output_termcap.
15653 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15654 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
15655 only when subprocesses are supported.
15656
15657 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15658 f->output_data.x.
15659 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15660 terminal devices.
15661
15662 * msdos.h: Remove definition of struct x_display_info and struct
15663 x_output.
15664 (FRAME_FONT): Use output_data.tty.
15665 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
15666 (struct x_display_info): Rename from display_info. Update all users in
15667 msdos.c.
15668 (struct x_output): Remove background_pixel and foreground_pixel.
15669 (the_only_display_info): Rename from the_only_x_display.
15670 (dos_ttraw): Update prototype.
15671
15672 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15673 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15674
15675 2008-08-23 Jason Rumney <jasonr@gnu.org>
15676
15677 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15678 (fn_TIFFSetDirectory): New library function used.
15679 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15680 (tiff_load): Use :index to select among multiple images. Set count
15681 property when multiple images exist.
15682 (gif_format): Use :index, not :image.
15683
15684 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
15685
15686 * xdisp.c (try_scrolling): Check INT_MAX instead of
15687 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15688 to obtain INT_MAX.
15689
15690 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15691
15692 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15693
15694 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15695
15696 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15697 GNUstep library location.
15698
15699 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
15700
15701 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15702 before using it.
15703
15704 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15705
15706 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15707
15708 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15709 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15710 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15711 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15712 (EmacsApp-cursor_blink_handler): Remove declaration.
15713 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15714 match 01 Feb 2008 changes in xterm.c.
15715 (ns_read_socket): Add cast to avoid warning.
15716 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15717 GNUstep.
15718
15719 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
15720
15721 * xselect.c (x_get_foreign_selection): Return nil if desired
15722 selection could not be obtained, instead of signalling an error.
15723
15724 2008-08-20 David Reitter <david.reitter@gmail.com>
15725
15726 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15727 * nsterm.m: Remove ns-specific code for cursor blinking.
15728 (ns_draw_window_cursor): Clear cursor properly rather than
15729 redrawing the area. Respect width of bar cursors.
15730 These changes enable the use of generic blink-cursor-mode and
15731 generic cursor types in NS and support smooth cursor movements (do
15732 not blink off after command).
15733 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15734 Nextstep, too.
15735
15736 2008-08-19 Kenichi Handa <handa@m17n.org>
15737
15738 * font.c (Vfont_log_deferred): New variable.
15739 (font_add_log): Check Vfont_log_deferred.
15740 (font_deferred_log): New function.
15741
15742 * font.h (font_deferred_log): Extern it.
15743
15744 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15745 for sorting.
15746 (face_for_char): Use deferred log.
15747
15748 2008-08-18 Kenichi Handa <handa@m17n.org>
15749
15750 * fontset.c (face_for_char): Add font log.
15751
15752 * font.c (font_add_log): Add the font properties :script, :lang,
15753 and :otf in the log.
15754
15755 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
15756
15757 * xdisp.c: Remove dead code.
15758 (handle_invisible_prop, next_overlay_string): Defer call to
15759 setup_for_ellipsis.
15760 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15761
15762 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
15763
15764 * xfaces.c (lookup_derived_face): Properly handle possible zero
15765 return value of get_lface_attributes.
15766 (merge_faces): Don't tell lookup_derived_face to signal an error
15767 if face is not found.
15768
15769 * dired.c (Fdirectory_files): Doc fix.
15770
15771 * process.c (make_process): Initialize kill_without_query struct
15772 member.
15773
15774 2008-08-15 Eli Zaretskii <eliz@gnu.org>
15775
15776 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15777 Alternative calculation of totphys for Visual Studio 6.
15778
15779 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15780
15781 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15782 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15783 All users changed.
15784 (stat): Only root directory passed to GetDriveType. Allow RAM
15785 disk as well as local fixed disk when w32-get-true-file-attributes
15786 is set to `local'.
15787 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15788 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15789 (w32_cached_id, w32_add_to_cache): New functions.
15790 (get_name_and_id): Look account names in the cache before calling
15791 lookup_account_sid.
15792 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15793 New initialization flags.
15794 (globals_of_w32): Initialize them to zero.
15795 (w32_system_process_attributes): Use w32_cached_id and
15796 w32_add_to_cache.
15797
15798 2008-08-14 Lawrence Mitchell <wence@gmx.li>
15799
15800 * lread.c (Fread_char, Fread_char_exclusive): If no character
15801 event is read before timeout is reached, return nil, rather than
15802 converting to a number.
15803
15804 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
15805
15806 * fns.c (use_dialog_box): Doc fix.
15807
15808 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15809 on OS X.
15810
15811 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
15812
15813 * frame.c (Qns_parse_geometry): New var.
15814 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15815
15816 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
15817
15818 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15819 space character in calculating tabs.
15820
15821 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15822
15823 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15824
15825 2008-08-10 Glenn Morris <rgm@gnu.org>
15826
15827 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15828 silence gcc "limited range of data type" warnings in some
15829 make_fixnum_or_float calls.
15830
15831 2008-08-09 Eli Zaretskii <eliz@gnu.org>
15832
15833 * w32.c (w32_system_process_attributes): If the process does not
15834 exist, return nil.
15835
15836 * w32.c: Include thelp32.h, psapi.h and coding.h.
15837 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15838 declarations.
15839 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15840 (Process32Next_Proc): New typedefs.
15841 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15842 (g_b_init_process32_next, g_b_init_open_thread_token)
15843 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15844 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15845 (g_b_init_get_process_working_set_size)
15846 (g_b_init_global_memory_status_ex): New static variables.
15847 (globals_of_w32): Initialize them.
15848 (create_toolhelp32_snapshot, process32_first, process32_next)
15849 (open_thread_token, impersonate_self, revert_to_self)
15850 (get_process_memory_info, get_process_working_set_size)
15851 (global_memory_status, global_memory_status_ex): New wrapper
15852 functions.
15853 (w32_list_system_processes, w32_system_process_attributes)
15854 (enable_privilege, restore_privilege, ltime, process_times):
15855 New functions.
15856 (convert_time_raw): New function.
15857 (convert_time): Remove conversion of FILETIME into time in 100
15858 nsec units, call convert_time_raw instead.
15859
15860 * process.h (w32_list_system_processes, w32_system_process_attributes):
15861 Add prototypes.
15862 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15863 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15864 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15865 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15866
15867 * process.c (Fsystem_process_attributes): Doc fix.
15868
15869 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
15870
15871 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15872 a continued multi-char glyph; if so, advance to the actual glyph.
15873
15874 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15875
15876 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15877
15878 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15879 (.m.o): Use it.
15880 * config.in: Regenerate.
15881
15882 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
15883
15884 * xdisp.c (redisplay_window): Revert last change.
15885 (try_window): Check bottom scroll margin too.
15886
15887 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15888
15889 * config.in: Regenerate.
15890
15891 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15892 -list-load-path-shadows'.
15893 (nsgui.h): Reduce number of things depending on it.
15894
15895 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
15896
15897 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15898 instead of window-end which does the wrong thing at eob.
15899 (try_cursor_movement): Minor optimization.
15900 (redisplay_window): If scroll margin is defined, don't assume
15901 window doesn't need scrolling.
15902
15903 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15904
15905 * config.in: Regenerate.
15906
15907 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15908 (mostlyclean): Don't delete *.d under NS.
15909
15910 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15911
15912 2008-08-06 Kenichi Handa <handa@m17n.org>
15913
15914 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15915
15916 2008-08-06 Andreas Schwab <schwab@suse.de>
15917
15918 * config.in: Regenerate.
15919
15920 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
15921
15922 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15923 forcing a window start.
15924
15925 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15926 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15927
15928 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15929
15930 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15931 argument.
15932
15933 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
15934
15935 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15936 <scroll-down-aggressively, before-change-functions>:
15937 <after-change-functions>: Reflow docstrings.
15938
15939 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15940 Ken Raeburn <raeburn@gnu.org>
15941
15942 Dock menu customization, based on a patch by Ken Raeburn, plus some
15943 other fixes.
15944 * nsmenu.m (dockMenu): New variable.
15945 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
15946
15947 * nsterm.h (dockMenu): Declare.
15948
15949 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
15950 (ns_term_init): Initialize dockMenu.
15951 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
15952 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
15953 left.
15954
15955 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
15956
15957 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
15958
15959 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
15960
15961 * config.in: Regenerate.
15962
15963 2008-08-04 Seiji Zenitani <zenitani@mac.com>
15964
15965 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
15966
15967 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
15968
15969 * nsterm.h (find_and_call_menu_selection): Fix prototype.
15970
15971 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15972
15973 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
15974
15975 * keyboard.h: Comment an #endif.
15976
15977 * lisp.h (have_menus_p): Adjust comment.
15978
15979 * menu.c (find_and_return_menu_selection): Fix comparison with
15980 client_data.
15981
15982 * nsmenu.m (popup_activated_flag): New variable.
15983 (popup_activated): New function.
15984 (menu-or-popup-active-p): New exported lisp definition.
15985 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
15986 when popup done.
15987 (ns_popup_dialog): Set popup_activated_flag.
15988
15989 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
15990 version for GNUstep (handled by conditional typedef in nsterm.m).
15991 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
15992 in rgb.txt).
15993
15994 * process.c (init_process): Use DARWIN_OS, not DARWIN.
15995
15996 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
15997
15998 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
15999
16000 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16001 shortcircuit if popup_activated like GTK and X toolkit.
16002
16003 * m/inter386.h: Change DARWIN to DARWIN_OS.
16004
16005 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16006 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
16007 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16008 Expand comment on NO_SOCK_SIGIO.
16009
16010 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
16011
16012 * nsterm.m (windowDidResize): Remove stopModal call.
16013
16014 2008-08-03 Andreas Schwab <schwab@suse.de>
16015
16016 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16017 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16018
16019 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
16020
16021 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16022 Don't use uninitialized pointer variable when using getrlimit.
16023
16024 2008-08-02 Jason Rumney <jasonr@gnu.org>
16025
16026 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16027
16028 2008-08-02 Eli Zaretskii <eliz@gnu.org>
16029
16030 * alloc.c (NSTATICS): Bump to 0x640.
16031
16032 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16033
16034 * lisp.h: Add prototype for directory_files_internal.
16035
16036 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16037 New functions.
16038 (syms_of_process): Defsubr them. Add initializations for various
16039 Q* symbols used in procfs_system_process_attributes.
16040 (procfs_list_system_processes, procfs_system_process_attributes)
16041 [HAVE_PROCFS]: New functions.
16042 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16043 (procfs_get_total_memory): New functions.
16044
16045 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16046
16047 * xfaces.c (Fx_load_color_file): Fix previous change;
16048 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16049
16050 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
16051
16052 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16053
16054 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16055
16056 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16057
16058 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
16059
16060 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16061
16062 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16063 define NSApplicationDelegateReplySuccess.
16064 (EmacsView -converstationIdentifier): Use long instead of
16065 NSInteger for GNUstep, since it doesn't have NSInteger.
16066
16067 * xmenu.c: Revert last change.
16068
16069 * keyboard.h: Fix last change.
16070
16071 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16072
16073 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16074 on Windows.
16075
16076 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16077
16078 Warning clearing and clean-up in NS port.
16079 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16080 Add prototypes.
16081 * nsgui.h (FACE_DEFAULT): Remove, unused.
16082 (XGCValues): Change colors to unsigned long.
16083 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16084 nsterm.m.
16085 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16086 (ns_list_fonts): Remove, unused.
16087 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16088 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16089 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16090 (nsfont_draw): Compare face colors to 0, not nil.
16091 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16092 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16093 (-addSubmenuWithTitle:): Use NSMenuItem class.
16094 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16095 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16096 (ns_clip_to_row): Make gc arg a BOOL.
16097 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16098 ns_clip_to_row() call.
16099 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16100 used). Cast FRAME_FONT assignments.
16101 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16102 (ns_string_to_lispmod): Change arg to const char.
16103 (ns_term_init): Use NSMenuItem class.
16104 (EmacsApp -openFile:): Move to different section of file.
16105 (EmacsApp -application:openFiles:): Don't return a value, call
16106 -replyToOpenOrPrint:.
16107 (EmacsView -keyDown:): Fix up cast.
16108 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16109 (EmacsView -menuDown:): Cast tag in call to
16110 find_and_call_menu_selection().
16111 (ns_list_fonts): Remove, unused.
16112 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16113 (ns_fontname_to_xlfd): Make static.
16114 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16115 Remove prototypes (now in keyboard.h).
16116 (next_menubar_widget_id): Remove, unused.
16117 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16118 Remove prototypes (now in keyboard.h).
16119 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16120
16121 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16122
16123 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16124 (floatfns.o): Depend on syssignal.h.
16125 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16126
16127 * systty.h: Fix previous change that removed BSD_TERMIOS.
16128 Add comments to #ifdefs.
16129
16130 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16131
16132 * w32fns.c (w32-load-color-file): Remove.
16133 (x-open-connection): Use renamed Fx_load_color_file.
16134 * xfaces.c (x-load-color-file): Add.
16135 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16136 Emacs.clr.
16137 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16138
16139 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
16140
16141 * dbusbind.c (Fdbus_call_method_asynchronously)
16142 (Fdbus_method_error_internal): New defuns.
16143 (xd_read_message): Handle also reply messages.
16144 (Vdbus_registered_functions_table): Extend docstring.
16145
16146 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
16147
16148 * keyboard.c (gobble_input): Fix previous change.
16149
16150 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16151
16152 * bitmaps/README:
16153 * xfns.c:
16154 * termcap.c:
16155 * term.c:
16156 * syswait.h:
16157 * systty.h:
16158 * systime.h:
16159 * syssignal.h:
16160 * sysdep.c:
16161 * process.h:
16162 * process.c:
16163 * print.c:
16164 * ndir.h:
16165 * lread.c:
16166 * keyboard.c:
16167 * getpagesize.h:
16168 * floatfns.c:
16169 * fileio.c:
16170 * emacs.c:
16171 * doc.c:
16172 * dispnew.c:
16173 * dired.c:
16174 * data.c:
16175 * callproc.c:
16176 * buffer.c:
16177 * README:
16178 * Makefile.in:
16179 * s/template.h:
16180 * s/msdos.h:
16181 * m/vax.h: Remove VMS support.
16182 * s/vms.h:
16183 * vlimit.h:
16184 * uaf.h:
16185 * temacs.opt:
16186 * param.h:
16187 * ioctl.h: Remove file.
16188
16189 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16190
16191 * s/ms-w32.h (MULTI_KBOARD): Remove.
16192 * xterm.c:
16193 * xselect.c:
16194 * xfns.c:
16195 * window.c:
16196 * w32term.c:
16197 * w32fns.c:
16198 * terminal.c:
16199 * termhooks.h:
16200 * term.c:
16201 * sysdep.c:
16202 * keyboard.h:
16203 * keyboard.c:
16204 * frame.h:
16205 * frame.c:
16206 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16207 * config.in: Regenerate.
16208
16209 2008-07-30 Jason Rumney <jasonr@gnu.org>
16210
16211 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16212
16213 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16214 (w32font_open_internal): Get unicode version of textmetrics.
16215 Don't enable or disable glyph indices here.
16216 (w32font_open): Disable use of glyph indices.
16217
16218 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16219
16220 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
16221
16222 * minibuf.c (Vread_buffer_function): Doc fix.
16223
16224 2008-07-30 John Paul Wallington <jpw@pobox.com>
16225
16226 * minibuf.c (read_buffer_completion_ignore_case): New var.
16227 (Fread_buffer): Use it.
16228
16229 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16230
16231 * systty.h (sensemode): Remove empty #if. Remove reference to
16232 BSD_TERMIOS, unused.
16233
16234 * sysdep.c: Remove reference to DGUX.
16235 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16236
16237 * config.in: Regenerate.
16238
16239 2008-07-30 Jason Rumney <jasonr@gnu.org>
16240
16241 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16242
16243 2008-07-29 Jason Rumney <jasonr@gnu.org>
16244
16245 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16246 is populated.
16247 (uniscribe_encode_char): Always use uniscribe.
16248 Avoid using context if cache is populated.
16249
16250 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16251
16252 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16253 open menu.
16254
16255 * gtkutil.c (menu_nav_ended): Remove.
16256 (create_menus): Remove signal connect for menu_nav_ended.
16257
16258 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
16259
16260 * xdisp.c (redisplay_window): Check return value of
16261 compute_window_start_on_continuation_line before forcing a window
16262 start.
16263
16264 2008-07-28 Jason Rumney <jasonr@gnu.org>
16265
16266 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16267
16268 * w32term.c (w32_enable_unicode_output, cleartype_active):
16269 Remove obsolete display options.
16270 (x_draw_glyph_string_background): Don't use old cleartype_active
16271 workaround.
16272 (w32_initialize): Remove cleartype_active initialization.
16273 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16274
16275 2008-07-28 Andreas Schwab <schwab@suse.de>
16276
16277 * lisp.h (init_weak_hash_tables, syms_of_font)
16278 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16279 (remove_hash_entry): Don't declare.
16280 * eval.c (maybe_call_debugger): Make static and move before use.
16281 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16282 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16283 * xterm.h (x_set_frame_alpha): Declare.
16284
16285 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16286
16287 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16288 (create_menus): Connect selection-done to menu_nav_ended.
16289
16290 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16291
16292 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16293 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16294 parameter with read of 'alpha' one.
16295 (Qns_frame_parameter): Remove.
16296 * nsselect.m (selection-coding-system)
16297 (next-selection-coding-system, Vselection_coding_system)
16298 (Vnext_selection_coding_system): Drop.
16299
16300 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16301
16302 * nsfns.m (do-applescript, do_applescript): Rename to
16303 ns-do-applescript, ns_do_applescript, and move within file.
16304
16305 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16306
16307 Remove support for Mac Carbon.
16308 * mactoolbox.c:
16309 * macterm.h:
16310 * macterm.c:
16311 * macselect.c:
16312 * macmenu.c:
16313 * macgui.h:
16314 * macfns.c:
16315 * mac.c: Remove file.
16316 * s/darwin.h:
16317 * m/intel386.h:
16318 * xfaces.c:
16319 * xdisp.c:
16320 * window.c:
16321 * tparam.c:
16322 * termhooks.h:
16323 * termcap.c:
16324 * term.c:
16325 * syssignal.h:
16326 * sysselect.h:
16327 * sysdep.c:
16328 * process.c:
16329 * lread.c:
16330 * lisp.h:
16331 * keyboard.c:
16332 * image.c:
16333 * fringe.c:
16334 * frame.h:
16335 * frame.c:
16336 * fontset.c:
16337 * font.h:
16338 * font.c:
16339 * fns.c:
16340 * fileio.c:
16341 * emacs.c:
16342 * dispnew.c:
16343 * dispextern.h:
16344 * config.in:
16345 * atimer.c:
16346 * Makefile.in: Remove code for Carbon.
16347
16348 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16349
16350 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16351
16352 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16353
16354 * macterm.h (kCGBitmapByteOrder32Host): New define for
16355 non-universal SDKs.
16356
16357 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16358 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16359
16360 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16361 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16362
16363 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16364
16365 * w32inevt.c: Include dispextern.h.
16366
16367 2008-07-26 Andreas Schwab <schwab@suse.de>
16368
16369 * print.c (print_object): Fix off-by-one in last change.
16370
16371 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
16372
16373 * term.c (syms_of_term): Don't initialize default_orig_pair,
16374 default_set_foreground and default_set_background on Windows.
16375
16376 2008-07-25 Jason Rumney <jasonr@gnu.org>
16377
16378 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16379 ScriptItemize. Clean up return value checking. Remove unused
16380 variables.
16381 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16382 shaping engine.
16383
16384 * w32font.c (w32font_has_char): Handle the case where we can't
16385 determine the script for a character.
16386
16387 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16388
16389 * term.c (syms_of_term): Initialize default_orig_pair,
16390 default_set_foreground, and default_set_background.
16391
16392 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16393 clash (bug#86).
16394 (getloadavg): Callers changed.
16395
16396 * image.c (svg_load_image): Fix last change.
16397 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16398 image size is valid. Use g_object_unref instead of deprecated
16399 rsvg_handle_free to free rsvg handle.
16400 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16401
16402 2008-07-25 Jason Rumney <jasonr@gnu.org>
16403
16404 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16405 surrogates before looking up glyph index.
16406 (w32font_text_extents): Encode as surrogates if falling back to
16407 functions that need UTF-16 wide chars.
16408
16409 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16410 BMP as surrogates before looking up glyph index.
16411
16412 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16413
16414 * image.c (svg_load_image): Check for failure in return value of
16415 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16416
16417 2008-07-25 Jason Rumney <jasonr@gnu.org>
16418
16419 * w32font.c (Fx_select_font): Reverse sense of second arg.
16420
16421 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16422
16423 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16424 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16425
16426 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16427 (PURESIZE): Use it.
16428
16429 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16430
16431 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16432 * m/alpha.h (TEXT_END):
16433 * m/ibmrs6000.h (TEXT_END):
16434 * m/macppc.h (TEXT_END):
16435 * s/darwin.h (TEXT_END):
16436 * s/msdos.h (TEXT_END): Remove, unused.
16437 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16438 * s/cygwin.h: Remove comment.
16439
16440 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16441 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16442 * m/intel386.h (DOT_GLOBAL_START):
16443 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16444 (USG): Remove, file not used on USG platforms.
16445
16446 * Makefile.in (HAVE_X11): Remove empty #else.
16447
16448 2008-07-24 Andreas Schwab <schwab@suse.de>
16449
16450 * fileio.c (Finsert_file_contents): Properly adjust undo list
16451 after format conversion.
16452
16453 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16454
16455 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16456 (menu_nav_ended): Remove.
16457 (create_menus): Remove signal connect for menu_nav_ended.
16458 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16459 create_menus.
16460 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16461
16462 2008-07-23 Jason Rumney <jasonr@gnu.org>
16463
16464 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16465 with opened font.
16466 (w32font_open): Set font type to gdi.
16467
16468 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16469
16470 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16471
16472 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16473 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16474 defines it.
16475 * unexec.c (ADDR_CORRECT): Define unconditionally.
16476
16477 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16478
16479 * unexec.c: Remove code depending on !COFF and USG, the file is
16480 not used for such systems.
16481
16482 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16483 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16484 (LD_SWITCH_SYSTEM_1): Remove, update users.
16485
16486 * s/darwin.h (DATA_END):
16487 * m/intel386.h (DATA_END):
16488 * m/ibmrs6000.h (DATA_END):
16489 * m/alpha.h (DATA_END): Remove, unused.
16490
16491 * config.in: Regenerate.
16492 * s/ms-w32.h (subprocesses): Define unconditionally.
16493 * s/template.h (subprocesses): Update comment.
16494 * s/vms.h (subprocesses):
16495 * s/usg5-4.h (subprocesses):
16496 * s/hpux10-20.h (subprocesses):
16497 * s/gnu-linux.h (subprocesses):
16498 * s/cygwin.h (subprocesses):
16499 * s/bsd-common.h (subprocesses):
16500 * s/aix4-2.h (subprocesses):
16501 * s/darwin.h (subprocesses): Do not define, defined by default now.
16502
16503 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16504 Remove all references.
16505 (temacs): Add GNUstep specific ld flags.
16506
16507 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16508 similarly to what X does.
16509
16510 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16511
16512 * nsfns.m (x-list-fonts): Remove.
16513 (syms_of_nsfns): Drop the x-list-fonts declaration.
16514 * nsterm.m: Get rid of remaining "//" comments.
16515
16516 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
16517
16518 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16519
16520 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16521 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16522 (Fns_own_selection_internal, Fx_disown_selection_internal)
16523 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16524
16525 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16526 ... */' style of docstrings. Doc fixes.
16527
16528 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16529
16530 * terminfo.c (UP, BC, PC): Undo previous change.
16531
16532 * nsfns.m: Rename ns prefixed functions/variables to the
16533 corresponding x versions. Update references.
16534
16535 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16536
16537 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16538
16539 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16540
16541 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16542 Remove forwarding functions.
16543 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16544 non-static.
16545 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16546 non-static.
16547 (ns_frame_parm_handlers): Use the new names.
16548 (syms_of_nsfns): Move to the end of file.
16549
16550 * nsterm.m (syms_of_nsterm): Move to the end of file.
16551
16552 * dispnew.c (init_display): Remove code for X10.
16553
16554 2008-07-22 Jason Rumney <jasonr@gnu.org>
16555
16556 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16557 bare drive.
16558
16559 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16560
16561 * nsterm.m (syms_of_nsterm): Remove debugging println.
16562
16563 2008-07-22 David Reitter <david.reitter@gmail.com>
16564
16565 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16566 Carbon implementation of the same functionality: execute arbitrary
16567 AppleScript code.
16568
16569 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16570
16571 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16572 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16573 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16574 (Fx_display_mm_height, Fx_display_mm_width)
16575 (Fx_display_backing_store, Fx_display_visual_class)
16576 (Fx_display_save_under, Fx_open_connection)
16577 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16578 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16579 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16580 (Fx_display_pixel_width, Fx_display_pixel_height)
16581 (Fx_display_usable_bounds, Fx_display_planes)
16582 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16583 ... */' style of docstrings.
16584
16585 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16586
16587 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16588 on this platform.
16589 (mips):
16590 * m/iris4d.h (mips): Do not define.
16591 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16592
16593 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16594
16595 * image.c:
16596 * nsfns.m:
16597 * nsselect.m:
16598 * nsterm.h:
16599 * nsterm.m: Rename ns prefixed functions/variables to the
16600 corresponding x versions. Update references.
16601
16602 * m/ibms390x.h (NO_REMAP): Do not undefine.
16603
16604 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16605
16606 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
16607
16608 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16609 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16610 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16611 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16612 (Fns_display_mm_height, Fns_display_mm_width)
16613 (Fns_display_backing_store, Fns_display_visual_class)
16614 (Fns_display_save_under, Fns_open_connection)
16615 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16616 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16617 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16618 (Fns_display_pixel_width, Fns_display_pixel_height)
16619 (Fns_display_usable_bounds, Fx_display_planes)
16620 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16621
16622 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16623
16624 * print.c (print_object): Check print_depth before searching for
16625 circularities.
16626
16627 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
16628
16629 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16630 only sprintf.
16631
16632 2008-07-21 Kenichi Handa <handa@m17n.org>
16633
16634 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16635
16636 2008-07-20 Andreas Schwab <schwab@suse.de>
16637
16638 * syntax.c (find_start_pos, find_start_value)
16639 (find_start_value_byte, find_start_begv, find_defun_start)
16640 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16641
16642 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16643
16644 * s/sol2-3.h: Insert contents of s/sol2.h.
16645 (LD_SWITCH_SYSTEM): Remove redundant definition.
16646 * s/sol2.h: Remove, unused.
16647
16648 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16649
16650 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16651
16652 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16653
16654 * Makefile.in (ns_appdir): Fix typo in find command.
16655
16656 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16657
16658 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16659
16660 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16661 added not supported anymore.
16662
16663 * s/usg5-4-2.h (LIBS_SYSTEM):
16664 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16665
16666 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16667 * s/lynxos.h (GETPGRP_NO_ARG):
16668 * s/hpux10-20.h (NO_SIOCTL_H):
16669 * s/gnu.h (GETPGRP_NO_ARG):
16670 * s/gnu-linux.h (NO_SIOCTL_H):
16671 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16672 * s/cygwin.h (GETPGRP_NO_ARG):
16673 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16674 (C_DEBUG_SWITCH): Remove duplicate definition.
16675
16676 * m/ibms390.h: Remove boilerplate comments.
16677
16678 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16679
16680 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16681 (wait_reading_process_output): Remove code for SunOS, platform not
16682 supported anymore. Use SOLARIS2 instead of sun.
16683
16684 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16685
16686 * font.c (font_open_by_name): Under NS, default lface height to zero.
16687 (font_open_for_lface): Under NS, set size based on frame fontsize.
16688 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16689 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16690
16691 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16692
16693 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16694 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16695 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16696 YES/NO.
16697 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16698 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16699 * Makefile.in (clean): Clear out build destination dir.
16700
16701 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16702
16703 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16704 xterm, xselect.
16705 * lisp.h: Remove declaration of hash_remove.
16706 * nsgui.h: Remove redefinitions of hash_remove.
16707 * fns.c (hash_remove): Rename to hash_remove_from_table.
16708
16709 2008-07-19 Seiji Zenitani <zenitani@mac.com>
16710
16711 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16712 strdup() the family UTF8String before modifying it.
16713
16714 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16715
16716 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16717 NS_FACE_BACKGROUND with 0 instead of nil.
16718 * nsfont.m (nsfont_draw): Same.
16719
16720 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
16721
16722 * nsfns.m (ns_set_background_color): Fix crash.
16723
16724 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
16725
16726 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16727
16728 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16729
16730 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16731
16732 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16733
16734 * gtkutil.c: Include <config.h> instead of "config.h".
16735
16736 * lisp.h (Foverlay_buffer): Add EXFUN.
16737
16738 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16739 child process to complete child_setup. Undo 2005-09-21 change.
16740
16741 * s/darwin.h: Mention setsid after vfork.
16742
16743 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16744
16745 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16746 Depend on macgui.h.
16747
16748 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16749 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16750
16751 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16752 and f19.
16753 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16754
16755 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16756 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16757 Remove enumerators.
16758
16759 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16760 Check if FACE_FROM_ID returns NULL.
16761
16762 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16763
16764 * w32inevt.c (change_frame_size): Remove extern declaration.
16765 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16766 change_frame_size.
16767
16768 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16769
16770 * getloadavg.c: Revert last change (2008-07-15).
16771
16772 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16773
16774 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
16775 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
16776 from configure.
16777
16778 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16779
16780 * s/sol2.h:
16781 * s/sol2-4.h: Reorganize conditionals.
16782
16783 * ecrt0.c: Remove code depending on m68000, not used anymore.
16784
16785 * fns.c (hash_remove): Make static.
16786 * lisp.h (hash_remove): Don't prototype.
16787
16788 * m/ibmrs6000.h:
16789 * m/ibms390x.h:
16790 * m/macppc.h: Remove boilerplate comments.
16791
16792 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16793 Solaris, which does not need them.
16794
16795 * m/vax.h: Remove comments about unsupported systems.
16796
16797 * s/darwin.h: Reorganize ifdefs.
16798
16799 2008-07-17 Andreas Schwab <schwab@suse.de>
16800
16801 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16802
16803 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16804
16805 Use SDATA. Follow coding convention of placing operators at
16806 beginning of next line rather than end of previous line, and placing
16807 spaces around infix operators.
16808
16809 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16810 in case it was defined already.
16811 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16812 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16813 ns_default.
16814 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16815 Lisp_Objects.
16816 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16817 (ns_defined_color, ns_color_to_lisp): Declare.
16818 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16819 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16820 it's accepted even with USE_LISP_UNION_TYPE.
16821 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16822 (update_frame_tool_bar): Remove apparently obsolete tests for
16823 non-integerness of f->tool_bar_lines.
16824 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16825 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16826 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16827 (nsfont_open): Don't confuse NULL for Qnil.
16828 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16829 * menu.h (find_and_call_menu_selection):
16830 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16831 (find_and_return_menu_selection): Always return something.
16832 * frame.h: Include dispextern.h for Display_Info.
16833 (display_x_get_resource): Declare.
16834
16835 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16836
16837 * syntax.c: Remove stdio.h include accidentally introduced in
16838 Emacs.app commit.
16839 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16840 NS_IMPL_COCOA.
16841 * keyboard.c (handle_async_input, input_available_signal): Remove
16842 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16843
16844 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16845
16846 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16847 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16848 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16849 Use SDATA.
16850
16851 * keymap.c: Remove all NS-specific code.
16852 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16853 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16854 where_is_preferred_modifier, return a different value depending on how
16855 preferred is the binding.
16856 (where_is_internal): Adjust accordingly.
16857 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16858 Adjust to new preferred_sequence_p.
16859 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16860 * keyboard.c (parse_solitary_modifier): Not static any more.
16861 * keyboard.h (parse_solitary_modifier): Declare.
16862
16863 2008-07-16 Andreas Schwab <schwab@suse.de>
16864
16865 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16866 of easymenu.
16867
16868 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
16869
16870 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16871 that we don't move off the line.
16872
16873 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16874
16875 * keyboard.c (Qsuper): Remove.
16876 (parse_menu_item): Don't call where_is_internal specially for NS.
16877
16878 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16879
16880 * s/gnu-linux.h: Remove boilerplate comments.
16881
16882 * m/alpha.h (__ELF__): Consolidate conditions.
16883
16884 * m/m68k.h (linux): Use GNU_LINUX instead.
16885 Remove boilerplate comments.
16886
16887 * m/intel386.h: Undo refactoring from previous change.
16888 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16889 too, remove dead code.
16890 (linux): Use GNU_LINUX instead.
16891
16892 2008-07-16 Jason Rumney <jasonr@gnu.org>
16893
16894 * w32gui.h: Repeat 26 June changes lost by last change.
16895
16896 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16897
16898 * systty.h: Remove code for Aix on 386, unsupported platform.
16899
16900 * s/ms-w32.h: Remove boilerplate comments.
16901 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16902
16903 * s/gnu-linux.h (TERM): Remove support.
16904 (HAVE_SYSVIPC): Remove, unused.
16905 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16906 for this system.
16907
16908 * process.c: Remove support for IRIS, unused.
16909 Remove support for TERM, not relevant anymore.
16910
16911 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16912 used with the definition.
16913
16914 * s/aix4-2.h (static): Do not undef.
16915
16916 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16917 only used on Aix.
16918 (HAVE_SYSVIPC): Remove, unused.
16919
16920 * m/hp800.h (CANNOT_DUMP): Do not undef.
16921
16922 * m/alpha.h: Fix comment.
16923
16924 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16925 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16926 used by this configuration.
16927 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16928 * unexec.c: Remove code depending on HPUX and
16929 USG_SHARED_LIBRARIES, not used with this file. Remove code
16930 depending on IRIS, unused. Remove if 0-ed code.
16931
16932 * s/template.h: Remove comments about static.
16933
16934 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16935 Remove if 0-ed code.
16936 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16937 were the same as the default.
16938 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16939 Remove boilerplate comments.
16940 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16941 (HAVE_SYSVIPC): Remove, unused.
16942 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16943
16944 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16945 Remove boilerplate comments.
16946 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16947 Remove boilerplate comments.
16948 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16949 Remove boilerplate comments.
16950 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
16951
16952 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
16953 USG systems which do not use DATA_SEG_BITS.
16954 Refactor code. Remove boilerplate comments.
16955
16956 * m/ibms390.h:
16957 * m/m68k.h:
16958 * s/bsd-common.h:
16959 * s/cygwin.h:
16960 * s/darwin.h:
16961 * s/freebsd.h:
16962 * s/gnu.h:
16963 * s/msdos.h: Remove boilerplate comments.
16964
16965 * m/iris4d.h: Remove boilerplate comments and code for systems that
16966 do not use this file.
16967 (IRIS_4D): Remove, unused.
16968
16969 * m/mips.h: Remove boilerplate comments and code for systems that
16970 do not use this file.
16971 (SIGN_EXTEND_CHAR):
16972 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
16973 * unexmips.c: Remove file, unused.
16974
16975 * editfns.c (Fuser_full_name): Replace the only use of
16976 USER_FULL_NAME with its value.
16977 * config.in: Regenerate.
16978
16979 2008-07-16 David Reitter <david.reitter@gmail.com>
16980
16981 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
16982 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
16983
16984 2008-07-16 Glenn Morris <rgm@gnu.org>
16985
16986 * emacs.c (system-type): Doc fix.
16987
16988 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
16989
16990 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
16991 If the cache doesn't work, let's fix it, rather than work around it.
16992
16993 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16994
16995 * Makefile.in: Correct additions for nsfont.o in last commit.
16996 * nsfont.m: New file (forgot last commit).
16997
16998 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
16999
17000 * callproc.c (set_initial_environment):
17001 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
17002 batch-compiling for bootstrap).
17003
17004 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17005 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17006
17007 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17008 CANNOT_DUMP case -- fix crash due to different init order.
17009
17010 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17011
17012 Changes and additions for NeXTstep windowing system (Cocoa and
17013 GNUstep) support.
17014
17015 * Makefile.in:
17016 * config.in: Support defines and build commands for NS port.
17017 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17018 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17019 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17020 windowing.
17021 (struct face): Add synth_ital field.
17022 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17023 (init_display): Initialize Vinitial_window_system to "ns" when so
17024 compiled.
17025 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17026 (display_arg): Use under NS.
17027 (main): Under NS, allocate autorelease pool and handle command line
17028 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17029 (standard_args): Add NS-specific args.
17030 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17031 * font.c (DEFAULT_ENCODING): New variable.
17032 (font_find_for_lface): Use it.
17033 (syms_of_font): Load syms_of_nsfont under NS.
17034 * font.h: Declare nsfont_driver when compiled under NS.
17035 * fontset.c: When compiling under NS, include nsterm.h.
17036 (fontset_from_font): Autoconstruct fontset under NS.
17037 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17038 symbol, document and use it.
17039 (do_switch_frame): When for_deletion under Cocoa, add
17040 Fraise_frame(Qnil).
17041 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17042 (x_get_arg): Allow "yes" and "no" as boolean values.
17043 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17044 Qright under Cocoa.
17045 (focus-follows-mouse): Default to 0 under NS.
17046 * frame.h (enum output_method): Add output_ns.
17047 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17048 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17049 (FRAME_WINDOW_P): NS-specific definition.
17050 * fringe.c (max_used_fringe_bitmap): Make public.
17051 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17052 (getloadavg): Use NeXT code under descendant OS's.
17053 * image.c (includes and header section, x_create_bitmap_from_data)
17054 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17055 (image_background_transparent, x_clear_image_1)
17056 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17057 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17058 (x_to_xcolors, x_from_xcolors, x_disable_image)
17059 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17060 other GUIs, including XPM support using code originally written for
17061 Carbon GUI.
17062 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17063 using NS API.
17064 (image_ascent): Use font metrics macros instead of direct struct field
17065 access.
17066 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17067 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17068 Also, handle NS as GTK for menu bar purposes.
17069 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17070 toolkit where they differ.
17071 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17072 use cachelist, still needed under NS.
17073 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17074 (struct widget_value): Define it here for menu.c.
17075 * keymap.c (includes): Include modifier internals.
17076 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17077 NS.
17078 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17079 support for preferring sequences using certain modifiers, specified by
17080 the FIRSTONLY argument.
17081 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17082 under NS GNUstep implementation.
17083 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17084 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17085 * menu.c: Include nsterm.h under NS.
17086 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17087 (free_menubar_widget_tree_value, update_submenu_strings)
17088 (find_and_call_menu_selection): Treat NS as X and NT.
17089 (find_and_return_menu_selection): New function, used for popup menus.
17090 * nsgui.h:
17091 * nsterm.h:
17092 * nsfns.m:
17093 * nsimage.m:
17094 * nsmenu.m:
17095 * nsselect.m:
17096 * nsterm.m: New files.
17097 * process.c (wait_reading_process_output): Under NS, call ns_select()
17098 instead of plain select().
17099 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17100 beginning of buffer.
17101 * sysselect.h (init_process): Rename when compiling under Cocoa to
17102 avoid name conflict.
17103 * termhooks.h (display_info): Add ns_display_info to union.
17104 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17105 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17106 COCOA environment.
17107 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17108 unexec() signature. (Note, this will dump, but the resulting file
17109 crashes; unexosx is used instead; keeping around for reference and
17110 possible aid in getting dump working under GNUstep.)
17111 * w32gui.h (button_type, widget_value): Remove definitions (now in
17112 keyboard.h).
17113 * window.c: Include nsterm.h when compiling under NS.
17114 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17115 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17116 other GUI windowing systems.
17117 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17118 GTK.
17119 (x_consider_frame_title): Under NS, set icon type and frame
17120 modified-state indicator; use ns_set_name_as_filename() when using
17121 formatted title.
17122 (update_window_cursor): Make public when compiling under NS.
17123 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17124 (hourglass_atimer, Vhourglass_delay
17125 * xfaces.c (header section, init_frame_faces, clear_font_table)
17126 (defined_color, unload_color, x_face_list_fonts)
17127 (prepare_face_for_display): Add NS support parallel to other GUIs.
17128 Emulate GCs like other non-X GUIs.
17129 (split_font_name): Don't lowercase font name under NS.
17130 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17131 under NS.
17132 * s/darwin.h: Add support for compilation under NS.
17133
17134 2008-07-15 Jason Rumney <jasonr@gnu.org>
17135
17136 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17137 (w32_show_hourglass): Rename from show_hourglass.
17138 (w32_hide_hourglass): Rename from hide_hourglass.
17139 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17140 (Vhourglass_delay): Declare extern.
17141 (hourglass_started): Remove.
17142
17143 * xdisp.c (Vhourglass_delay): Remove static.
17144 (hourglass_started, start_hourglass, cancel_hourglass):
17145 Don't include these versions on WINDOWSNT.
17146
17147 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17148
17149 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17150 variables (formerly in xfns.c).
17151 (show_hourglass, hide_hourglass): New prototypes (same).
17152 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17153 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17154 in xfns.c).
17155 (syms_of_xdisp): Declare/initialize display-hourglass,
17156 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17157 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17158 formerly in xfns.c.
17159 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17160 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17161 (start_hourglass, cancel_hourglass): Remove.
17162 (show_hourglass, hide_hourglass): Remove prototypes and static
17163 modifiers.
17164 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17165 hourglass_atimer, hourglass_shown_p declaration/initialization.
17166 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17167 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17168 (start_hourglass, cancel_hourglass): Remove.
17169 (show_hourglass, hide_hourglass): Remove prototypes and static
17170 modifiers.
17171 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17172 hourglass_atimer, hourglass_shown_p declaration/initialization.
17173 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17174 (DEFAULT_HOURGLASS_DELAY): Remove.
17175 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17176 hourglass_shown_p declaration/initialization.
17177
17178 2008-07-14 Jason Rumney <jasonr@gnu.org>
17179
17180 * w32fns.c (w32_get_arg): Remove wrapper function.
17181 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17182 directly.
17183 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17184
17185 2008-07-14 Kenichi Handa <handa@m17n.org>
17186
17187 * xfont.c (xfont_open): Add workaround for X's bug.
17188
17189 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17190
17191 * fontset.c: Include <stdio.h> unconditionally.
17192
17193 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
17194
17195 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17196 for filtering.
17197
17198 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17199
17200 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17201
17202 * m/macppc.h:
17203 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17204
17205 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
17206 (SPECIAL_EMACS_INT):
17207 * m/ia64.h (SPECIAL_EMACS_INT):
17208 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17209 * s/gnu.h (NLIST_STRUCT):
17210 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17211 * s/gnu-linux.h (LINUX):
17212 * s/msdos.h (HAVE_FACES):
17213 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17214
17215 * systty.h:
17216 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17217 anymore.
17218
17219 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17220
17221 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17222 always defined as int.
17223
17224 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17225 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17226 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17227 * s/freebsd.h (HAVE_WAIT_HEADER):
17228 * s/bsd-common.h (HAVE_UNION_WAIT):
17229 * s/aix4-2.h (HAVE_WAIT_HEADER):
17230 * m/mips.h (HAVE_UNION_WAIT):
17231 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17232 (COFF, static): Do not define, they are undefined later in the file.
17233
17234 * process.c (update_status): Don't use a union.
17235 (status_convert):
17236 (sigchld_handler): Use int instead of WAITTYPE.
17237
17238 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
17239
17240 * indent.c (Fvertical_motion): Restore hscroll before moving to
17241 goal column.
17242
17243 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17244
17245 * lisp.h: Remove left over code.
17246
17247 2008-07-11 Andreas Schwab <schwab@suse.de>
17248
17249 * lisp.h: Fix logic in last change.
17250
17251 * menu.h: New file.
17252 * menu.c: Include it.
17253 * xmenu.c: Likewise.
17254 * Makefile.in: Update dependencies.
17255
17256 2008-07-11 Kenichi Handa <handa@m17n.org>
17257
17258 * fontset.c (fontset_from_font): Cancel the previous change.
17259
17260 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17261
17262 * lisp.h:
17263 * w32heap.c:
17264 * emacs.c:
17265 * alloc.c: Replace all references of NO_UNION_TYPE with
17266 USE_LISP_UNION_TYPE.
17267
17268 * m/xtensa.h (NO_UNION_TYPE):
17269 * m/vax.h (NO_UNION_TYPE):
17270 * m/template.h (NO_UNION_TYPE):
17271 * m/sparc.h (NO_UNION_TYPE):
17272 * m/mips.h (NO_UNION_TYPE):
17273 * m/macppc.h (NO_UNION_TYPE):
17274 * m/m68k.h (NO_UNION_TYPE):
17275 * m/iris4d.h (NO_UNION_TYPE):
17276 * m/intel386.h (NO_UNION_TYPE):
17277 * m/ibms390x.h (NO_UNION_TYPE):
17278 * m/ibms390.h (NO_UNION_TYPE):
17279 * m/ibmrs6000.h (NO_UNION_TYPE):
17280 * m/ia64.h (NO_UNION_TYPE):
17281 * m/hp800.h (NO_UNION_TYPE):
17282 * m/arm.h (NO_UNION_TYPE):
17283 * m/amdx86-64.h (NO_UNION_TYPE):
17284 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17285 defining it the same.
17286
17287 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
17288
17289 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17290
17291 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17292
17293 * fileio.c:
17294 * sysdep.c:
17295 * systty.h:
17296 * m/ibmrs6000.h:
17297 * m/iris4d.h:
17298 * s/aix4-2.h:
17299 * s/freebsd.h:
17300 * s/gnu-linux.h:
17301 * s/hpux10-20.h:
17302 * s/hpux11.h:
17303 * s/netbsd.h:
17304 * s/sol2-3.h:
17305 * s/sol2-4.h:
17306 * s/sol2.h:
17307 * s/usg5-4.h:
17308 * s/vms.h: Remove references to unused variables.
17309
17310 2008-07-10 Andreas Schwab <schwab@suse.de>
17311
17312 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17313 pattern before matching the generic family.
17314
17315 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17316
17317 * unexec.c:
17318 * s/vms.h:
17319 * s/usg5-4-2.h:
17320 * s/sol2-5.h:
17321 * s/freebsd.h:
17322 * s/darwin.h: Remove dead code.
17323
17324 * m/template.h:
17325 * m/sparc.h:
17326 * m/mips.h:
17327 * m/m68k.h:
17328 * m/iris4d.h:
17329 * m/intel386.h:
17330 * m/ibms390x.h:
17331 * m/ibms390.h:
17332 * m/ia64.h:
17333 * m/hp800.h:
17334 * m/arm.h:
17335 * m/amdx86-64.h: Remove dead code and references to unused
17336 and compiler defined symbols.
17337
17338 * unexmips.c:
17339 * unexelf.c: Remove references to desupported systems.
17340
17341 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17342
17343 * m/powermac.h: Remove boilerplate comments.
17344 (NO_REMAP): Remove unused definition.
17345
17346 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17347 define them.
17348
17349 2008-07-10 Kenichi Handa <handa@m17n.org>
17350
17351 * xfont.c (xfont_open): Log the reason of failure.
17352
17353 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17354
17355 * fontset.c (fontset_get_font_group):
17356 * font.c (font_check_otf): Specify argument types.
17357
17358 2008-07-09 Kenichi Handa <handa@m17n.org>
17359
17360 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17361 non-ASCII char is found.
17362
17363 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17364 (reorder_font_vector): Change the arg preferred_family to font.
17365 Prefer the spec matching with font.
17366 (fontset_get_font_group): New function.
17367 (fontset_find_font): Change the format of an element of a realized
17368 fontset. Use fontset_get_font_group.
17369 (fontset_font): Try the current fontset, the default fontset, the
17370 fallbacks of the current fontset, and the fallbacks of the default
17371 fontset in this order.
17372 (face_for_char): Delete the shortcut to use the current font.
17373 (fontset_from_font): Don't set fonts for Latin in the fontset.
17374
17375 * font.h (font_make_object, font_match_p): Adjust prototypes.
17376
17377 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17378
17379 * font.c (font_make_object): New arg entity and pixelsize.
17380 (font_check_otf_features, font_check_otf): New functions.
17381 (font_match_p): Check :lang, :script, and :otf properties.
17382
17383 * xfont.c (xfont_open): Adjust it for the change of
17384 font_make_object.
17385 (xfont_text_extents): Fix initial setting of metrics.
17386
17387 * ftfont.c (struct ftfont_info): New member index, delete member
17388 fc_charset_idx. Make the member order compatible with struct
17389 xftfont_info.
17390 (fc_charset_table): Change charset names to registry names.
17391 (ftfont_pattern_entity): Delete the args registry and
17392 fc_charset_idx. Change the value of :font-entity property
17393 to (FONTNAME . INDEX). Always set :registry property to
17394 `iso10646-1'.
17395 (struct ftfont_cache_data): New struct.
17396 (ftfont_lookup_cache): New arg for_face.
17397 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17398 (ftfont_driver): Set the member otf_capability.
17399 (ftfont_get_charset): Adjust it for the change of
17400 fc_charset_table.
17401 (OTF_TAG_SYM): New macro.
17402 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17403 for the change of fc_charset_table.
17404 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17405 ftfont_pattern_entity. Add FC_INDEX to objset.
17406 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17407 and ftfont_pattern_entity.
17408 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17409 font_make_object, struct ftfont_info.
17410 (ftfont_has_char): Use ftfont_get_fc_charset.
17411 (ftfont_otf_features, ftfont_otf_capability): New functions.
17412 (ftfont_shape): Use ftfont_get_otf.
17413 (ftfont_text_extents): Fix initial setting of metrics.
17414
17415 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17416 member order compatible with struct ftfont_info.
17417 (xftfont_open): Add FC_CHARSET to the pattern.
17418 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
17419 properties if appropriate.
17420 (xftfont_close): Unlock the face.
17421 (xftfont_anchor_point, xftfont_shape): Deleted.
17422 (syms_of_xftfont): Don't set members anchor_point and shape of
17423 xftfont_driver.
17424
17425 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17426 font_make_object.
17427
17428 * w32font.c (w32font_open): Adjust it for the change of
17429 font_make_object.
17430 (w32font_open_internal): Don't set properties of font_object here.
17431
17432 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
17433
17434 * macfns.c (x_create_tip_frame):
17435 * w32fns.c (x_create_tip_frame):
17436 * xfns.c (x_create_tip_frame): Pass parameter argument to
17437 face-set-after-frame-default.
17438
17439 * xfaces.c (Finternal_merge_in_global_face): Save merged
17440 attributes for the default face back into the face vector.
17441
17442 2008-07-08 Andreas Schwab <schwab@suse.de>
17443
17444 * fontset.h: Declare fontset_from_font. Don't declare
17445 new_fontset_from_font and fontset_from_font_name.
17446 * xterm.c: Include "fontset.h".
17447 * Makefile.in (xterm.o): Update dependencies.
17448
17449 2008-07-08 Glenn Morris <rgm@gnu.org>
17450
17451 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17452 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17453
17454 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
17455
17456 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17457 (x_set_frame_parameters): Don't bind it.
17458
17459 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
17460
17461 * w32fns.c (map_w32_filename): Declare extern.
17462
17463 2008-07-07 Jason Rumney <jasonr@gnu.org>
17464
17465 * w32term.c (WS_EX_LAYERED): Define if not already.
17466
17467 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
17468
17469 * xfaces.c (set_font_frame_param): Don't try to set the font
17470 parameter if it is still unspecified in the lface.
17471
17472 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17473
17474 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17475 face if it didn't already exist.
17476
17477 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17478
17479 2008-07-05 Andreas Schwab <schwab@suse.de>
17480
17481 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17482
17483 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17484
17485 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17486 word-wrapping.
17487 (IT_DISPLAYING_WHITESPACE): New macro.
17488 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17489 when word-wrapping. Simplify word-wrapping logic. Use correct
17490 pixel positions when saving copies of the iterator.
17491 (display_line): Use proper wrap point if the last character on a
17492 line was preceded by whitespace.
17493
17494 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17495
17496 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17497
17498 2008-07-04 Kenichi Handa <handa@m17n.org>
17499
17500 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17501
17502 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17503
17504 2008-07-02 Jason Rumney <jasonr@gnu.org>
17505
17506 * xfns.c (syms_of_xfns): Only define x-select-font when both
17507 HAVE_FREETYPE and USE_GTK.
17508
17509 * xdisp.c (next_element_from_display_vector): Move assignment out
17510 of if statement.
17511
17512 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17513
17514 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17515
17516 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17517 (syms_of_fileio): Initialize and export them.
17518 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17519
17520 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17521 (Fsystem_move_file_to_trash): New function.
17522 (syms_of_w32fns): Export it to lisp.
17523
17524 2008-07-01 Jason Rumney <jasonr@gnu.org>
17525
17526 * w32font.c (w32font_text_extents): Don't count overhang as part
17527 of width.
17528
17529 2008-06-30 Miles Bader <miles@gnu.org>
17530
17531 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17532 Add `avoid_cursor_p' field.
17533
17534 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17535 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17536 (append_glyph, append_composite_glyph, produce_image_glyph)
17537 (append_stretch_glyph): Initialize avoid_cursor_p.
17538 (get_it_property): Rename from `get_line_height_property'.
17539 (x_produce_glyphs): Use get_it_property.
17540 (handle_line_prefix, push_display_prop): New functions.
17541 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17542 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17543 New variables.
17544 (syms_of_xdisp): Initialize them.
17545
17546 2008-06-30 Kenichi Handa <handa@m17n.org>
17547
17548 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17549 XftDefaultSubstitute (they are called in XftFontMatch).
17550 (xftfont_open): Fix args to ftfont_font_format.
17551
17552 * ftfont.c (fc_charset_table): New member lang.
17553 (ftfont_resolve_generic_family): New arg pattern.
17554 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
17555 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17556 (ftfont_open): Fix args to ftfont_font_format.
17557 (ftfont_font_format): New arg filename.
17558
17559 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
17560
17561 * xfaces.c (Finternal_merge_in_global_face): If default face was
17562 modified, realize it again. Update the font face attribute.
17563
17564 2008-06-29 Jason Rumney <jasonr@gnu.org>
17565
17566 * w32term.c (x_set_frame_alpha): Fix logic.
17567
17568 2008-06-29 Kenichi Handa <handa@m17n.org>
17569
17570 * fontset.c (Finternal_char_font): Return font-object instead of
17571 font-name.
17572
17573 * composite.c (get_composition_id): Fix the width calculation for TAB.
17574
17575 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17576
17577 * indent.c (Fvertical_motion): Properly handle float column arg.
17578
17579 2008-06-28 Jason Rumney <jasonr@gnu.org>
17580
17581 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17582 (pfnSetLayeredWindowAttributes): New function pointer.
17583 (w32_initialize): Initialize it when supported.
17584 (x_set_frame_alpha): New function.
17585
17586 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17587 (w32_frame_parm_handlers): Set alpha handler.
17588
17589 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17590
17591 2008-06-27 Jason Rumney <jasonr@gnu.org>
17592
17593 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17594 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17595 (w32_to_x_charset, x_to_w32_charset)
17596 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17597 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17598 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17599 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17600 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17601 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17602 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17603 (Qw32_charset_unicode): Remove.
17604 (syms_of_w32fns): Update for above changes.
17605
17606 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17607 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17608 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17609 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17610 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17611 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17612 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17613 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17614 (syms_of_w32font): Update for above changes.
17615
17616 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17617
17618 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17619 removed #if.
17620 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17621
17622 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17623 Eli Zaretskii <eliz@gnu.org>
17624
17625 * makefile.w32-in (LOCAL_FLAGS):
17626 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17627
17628 * sysdep.c (_spawnlp, _getpid):
17629 Declare with explicit _cdecl instead of _CRTAPI1.
17630
17631 * editfns.c (Fget_internal_run_time):
17632 Check for WINDOWSNT with #ifdef, not #if.
17633
17634 2008-06-26 Jason Rumney <jasonr@gnu.org>
17635
17636 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17637
17638 * w32term.c (x_draw_glyph_string_foreground)
17639 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17640 Use FONT_HANDLE macro.
17641 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17642
17643 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17644 (uniscribe_encode_char): Use FONT_HANDLE macro.
17645
17646 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17647 (w32font_text_extents): Use precast w32_font.
17648 (w32font_close): Free cached metrics.
17649 (w32font_open_internal): Allocate space for name on stack.
17650
17651 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
17652
17653 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17654
17655 2008-06-26 Jason Rumney <jasonr@gnu.org>
17656
17657 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17658 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17659
17660 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17661
17662 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17663
17664 2008-06-26 Jason Rumney <jasonr@gnu.org>
17665
17666 * w32bdf.c, w32bdf.h: Remove obsolete files.
17667
17668 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17669
17670 * w32gui.h: Don't include w32bdf.h.
17671 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17672 Remove obsolete font support.
17673
17674 * w32font.h (struct w32font_info): Remove compat_w32_font.
17675 Add hfont member.
17676 (FONT_COMPAT): Remove obsolete macro.
17677
17678 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17679 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17680 (w32font_open_internal): Remove compat code. Set new hfont member.
17681 (Fx_select_font): Use new hfont member.
17682
17683 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17684 (uniscribe_encode_char): Use new hfont member.
17685
17686 * w32term.c (x_draw_glyph_string_foreground)
17687 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17688 (x_draw_glyph_string): Use metrics in w32font_info.
17689
17690 2008-06-26 Kenichi Handa <handa@m17n.org>
17691
17692 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17693
17694 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17695
17696 * unexnext.c:
17697 * m/ews4800.h:
17698 * m/hp9000s300.h:
17699 * m/ibm370aix.h:
17700 * m/mips-siemens.h:
17701 * m/ncr386.h:
17702 * m/next.h:
17703 * m/pmax.h:
17704 * m/powerpcle.h:
17705 * m/tandem-s2.h:
17706 * s/386bsd.h:
17707 * s/bsd386.h:
17708 * s/bsd4-1.h:
17709 * s/bsd4-2.h:
17710 * s/bsdos2-1.h:
17711 * s/bsdos2.h:
17712 * s/bsdos3.h:
17713 * s/bsdos4.h:
17714 * s/nextstep.h:
17715 * s/ultrix4-3.h:
17716 * s/usg5-0.h:
17717 * s/usg5-2-2.h:
17718 * s/usg5-2.h:
17719 * s/usg5-4-3.h:
17720 * s/ux4800.h:
17721 * s/uxpds.h:
17722 * s/uxpv.h: Remove support for obsolete systems.
17723 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
17724 Remove, insert contents in s/hpux10-20.h.
17725 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17726 Remove, insert contents in s/aix4-2.h.
17727 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17728 * s/bsd4-3.h: Rename to ...
17729 * s/bsd-common.h: ... this.
17730 * data.c:
17731 * doc.c:
17732 * ecrt0.c:
17733 * emacs.c:
17734 * fileio.c:
17735 * floatfns.c:
17736 * keyboard.c:
17737 * mem-limits.h:
17738 * print.c:
17739 * process.c:
17740 * sysdep.c:
17741 * syssignal.h:
17742 * systty.h:
17743 * syswait.h:
17744 * term.c:
17745 * unexec.c:
17746 * unexelf.c:
17747 * unexhp9k800.c:
17748 * m/hp800.h:
17749 * m/ibmrs6000.h:
17750 * m/mips.h:
17751 * m/vax.h:
17752 * s/darwin.h:
17753 * s/freebsd.h:
17754 * s/gnu.h:
17755 * s/ms-w32.h:
17756 * s/msdos.h:
17757 * s/netbsd.h:
17758 * s/template.h: Remove references to obsolete variables.
17759
17760 * Makefile.in: Add dependencies for all unexec files.
17761 (admindir): Remove unused variable.
17762 (UNEXEC_SRC): Remove references.
17763
17764 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
17765
17766 * xfns.c (x_default_font_parameter): If Xft is available, first
17767 try Monospace-12 for the default font.
17768
17769 2008-06-25 Jason Rumney <jasonr@gnu.org>
17770
17771 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17772
17773 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17774
17775 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17776
17777 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17778
17779 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
17780
17781 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17782 <scroll-conservatively>: Fix typo in docstring.
17783
17784 * xselect.c (Fx_send_client_event): Doc fix.
17785
17786 2008-06-25 Kenichi Handa <handa@m17n.org>
17787
17788 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17789
17790 * font.c (font_parse_fcname): Remove unused variables.
17791 (font_sort_entites): Delete the arg SPEC. Caller changed.
17792 Fix for the case of ! best_only.
17793 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17794
17795 * lisp.h (Fstring_to_unibyte): EXFUN it.
17796
17797 * character.h (str_to_unibyte): Extern it.
17798
17799 * character.c (str_to_unibyte): New function.
17800
17801 * fns.c (Fstring_to_unibyte): New function.
17802 (syms_of_fns): Defsubr it.
17803
17804 2008-06-24 Kenichi Handa <handa@m17n.org>
17805
17806 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17807 DPI too.
17808 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17809
17810 2008-06-24 Andreas Schwab <schwab@suse.de>
17811
17812 * Makefile.in (${lispsource}loaddefs.el): Rename from
17813 ../lisp/loaddefs.el.
17814 (bootstrap-clean): Do what distclean does but don't remove
17815 Makefile.
17816 (distclean): Depend on bootstrap-clean and remove Makefile.
17817
17818 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
17819
17820 * buffer.h (struct buffer): New member word_wrap.
17821
17822 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17823 word-wrap.
17824 (init_buffer_once): Initialize them.
17825
17826 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17827 line_wrap enum possessing three possible values.
17828
17829 * termopts.h: Replace truncate_partial_width_windows with
17830 Vtruncate_partial_width_windows.
17831
17832 * dispnew.c (direct_output_for_insert): Avoid direct output when
17833 inserting a space with word wrap on.
17834
17835 * indent.c (compute_motion): Obey integer values of
17836 truncate-partial-width-windows.
17837
17838 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17839 replacing truncate_partial_width_windows.
17840 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17841 truncate only if the window width is below that integer.
17842 (start_display, resize_mini_window, produce_stretch_glyph)
17843 (display_string, move_it_in_display_line_to): Use line_wrap.
17844 (back_to_previous_visible_line_start, reseat_1):
17845 Reset string_from_display_prop_p.
17846 (display_line): Extend default face to end of line when wrapping.
17847
17848 2008-06-24 Kim F. Storm <storm@cua.dk>
17849
17850 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17851 to wrap continued lines at word boundaries.
17852
17853 2008-06-24 Jason Rumney <jasonr@gnu.org>
17854
17855 * font.c (Ffont_face_attributes): Multiply pixel size before point
17856 conversion to avoid multiplying rounding error.
17857
17858 2008-06-23 Jason Rumney <jasonr@gnu.org>
17859
17860 * w32term.c (x_draw_glyph_string_background)
17861 (x_draw_glyph_string): Remove old bdf font code.
17862
17863 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17864
17865 2008-06-22 Kenichi Handa <handa@m17n.org>
17866
17867 * font.c (font_find_for_lface): Try the adstyle specified in
17868 the property of LFACE_FONT of LFACE (if any).
17869
17870 2008-06-21 Seiji Zenitani <zenitani@mac.com>
17871 Ryo Yoshitake <ryo@shiftmode.net>
17872
17873 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17874
17875 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17876
17877 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17878 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17879 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17880 (witness-emacs): Remove.
17881 (lisp, shortlisp): Move loaddefs.el earlier.
17882 (mostlyclean): Forget about witness-emacs.
17883
17884 2008-06-22 Glenn Morris <rgm@gnu.org>
17885
17886 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17887 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17888
17889 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17890
17891 * Makefile.in (PRECOMP): Remove.
17892 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17893 (witness-emacs): Run `compile-first'.
17894 (.el.elc): Use the new compile-onefile target.
17895
17896 2008-06-21 Kenichi Handa <handa@m17n.org>
17897
17898 * xftfont.c (xftfont_open): Handle QCembolden only when
17899 FC_EMBOLDEN is defined.
17900
17901 2008-06-21 Andreas Schwab <schwab@suse.de>
17902
17903 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17904 (.el.elc): Likewise.
17905
17906 2008-06-21 Miles Bader <miles@gnu.org>
17907
17908 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17909 build dir, not the lisp source dir.
17910
17911 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17912
17913 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17914 (bootstrapclean): Remove.
17915 (.el.elc): New rule.
17916 (PRECOMP): New var.
17917 (../lisp/subdirs.el): Remove.
17918 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17919 (witness-emacs): New target.
17920 (mostlyclean): Remove witness-emacs as well.
17921 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17922 Add witness-emacs dependency.
17923
17924 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
17925
17926 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17927 defined by the font.
17928
17929 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17930
17931 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17932 (bootstrap-clean): New target that keeps TAGS around.
17933 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17934 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17935
17936 2008-06-20 Jason Rumney <jasonr@gnu.org>
17937
17938 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17939 Remove obsolete font code.
17940
17941 * w32font.c (font_matches_spec): Use csb bitfield from font signature
17942 to determine language support.
17943
17944 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17945
17946 * sysdep.c (cfsetspeed): New fun extracted from the code.
17947 (cfmakeraw): Move before first use.
17948
17949 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
17950
17951 * sysdep.c (cfmakeraw): Provide fallback implementation.
17952 (serial_configure): Provide fallback implementation of cfsetspeed.
17953
17954 2008-06-20 Kenichi Handa <handa@m17n.org>
17955
17956 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
17957 the pattern.
17958
17959 * fontset.c (fontset_from_font): Copy font_spec before changing
17960 the elements.
17961
17962 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
17963
17964 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17965
17966 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
17967 for explicit `font' parameters.
17968
17969 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
17970
17971 2008-06-19 Kenichi Handa <handa@m17n.org>
17972
17973 * frame.c: Include <ctype.h>.
17974 (x_set_font_backend): Allow spacing characters in the X resource
17975 for FontBackend.
17976
17977 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
17978
17979 * w32fns.c, xfns.c (Qfont_param): New var.
17980 (syms_of_w32fns): Initialize it.
17981 (x_default_font_parameter): Record explicit `font' into
17982 `font-parameter'.
17983
17984 2008-06-18 Kenichi Handa <handa@m17n.org>
17985
17986 * font.c (font_parse_xlfd): Fix previous change.
17987 (font_parse_fcname): Don't use :fc-unknown-spec.
17988 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
17989 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
17990 (font_add_log): Prepend the driver name to the resulting fonts.
17991
17992 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
17993 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
17994 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
17995
17996 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
17997 (QCembolden): New variables.
17998 (syms_of_xftfont): DEFSYM them.
17999 (xftfont_open): Call XftFontMatch. Don't trust the result of
18000 XftTextExtents8 if the pixel_size is less than 5.
18001
18002 2008-06-18 Andreas Schwab <schwab@suse.de>
18003
18004 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18005 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18006
18007 2008-06-18 Jason Rumney <jasonr@gnu.org>
18008
18009 * w32font.c (w32font_list, w32font_match): Add logging.
18010
18011 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18012
18013 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
18014
18015 * font.c (font_parse_fcname): Store divider characters for
18016 unknown-spec list. For known key symbols, intern using correct
18017 symbol name.
18018
18019 2008-06-17 Kenichi Handa <handa@m17n.org>
18020
18021 * xfaces.c (realize_default_face): If the frame is not on window
18022 system, set the fontset of face to nil.
18023
18024 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18025
18026 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18027
18028 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18029
18030 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18031 (build_font_name_from_vector): Delete externs.
18032
18033 * xfaces.c (struct font_name): Don't declare.
18034
18035 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18036
18037 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18038
18039 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18040
18041 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18042
18043 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18044
18045 * font.c (Ffont_spec): Fix usage in docstring.
18046 (Ffont_face_attributes): Doc fix.
18047
18048 2008-06-16 Andreas Schwab <schwab@suse.de>
18049
18050 * font.c (Ffont_face_attributes): Fix definition.
18051
18052 2008-06-16 Jason Rumney <jasonr@gnu.org>
18053
18054 * font.h (font_style_symbolic_from_value): Remove.
18055
18056 * font.c (font_style_symbolic_from_value): Remove.
18057 (font_style_symbolic): Revert to pre 2008-06-13 version.
18058
18059 * w32font.c (w32_to_fc_weight): New function.
18060 (w32font_full_name, logfont_to_fcname): Use it.
18061
18062 2008-06-16 Kenichi Handa <handa@m17n.org>
18063
18064 * font.c (font_check_object): Delete it.
18065 (font_clear_cache): Check if a font-object is alive.
18066 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18067 font-object to nil.
18068 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18069 (font_at): Don't call font_check_object.
18070 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18071
18072 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18073
18074 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18075
18076 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18077
18078 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18079
18080 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
18081
18082 * font.c (font_parse_fcname): Only one decimal point.
18083 (font_unparse_fcname): Handle data in family and foundry indices
18084 as symbols, not strings.
18085 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18086
18087 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18088
18089 * font.h (font_unparse_gtkname): Add prototype.
18090
18091 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18092
18093 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18094
18095 2008-06-15 Andreas Schwab <schwab@suse.de>
18096
18097 * font.c (font_update_drivers): Fix crash when no drivers match.
18098
18099 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18100
18101 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18102 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18103
18104 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18105
18106 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18107
18108 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18109
18110 * process.c (Fserial_process_configure, Fprocess_send_eof):
18111 Use EQ to compare Lisp_Objects.
18112
18113 2008-06-13 Jason Rumney <jasonr@gnu.org>
18114
18115 * w32fns.c (Fw32_select_font): Remove old font API function.
18116
18117 * w32font.c (logfont_to_fcname): New function.
18118 (Fx_select_font): New font dialog function compatible with
18119 GTK/fontconfig version.
18120
18121 * font.c (font_style_symbolic_from_value): New function.
18122 (font_style_symbolic): Use it.
18123
18124 * font.h (font_style_symbolic_from_value): Declare new function.
18125
18126 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
18127
18128 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18129 <font-width-table>: Fix typos in docstrings.
18130
18131 2008-06-13 Daniel Engeler <engeler@gmail.com>
18132
18133 These changes add serial port access.
18134 * process.c: Add HAVE_SERIAL.
18135 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18136 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18137 (list_processes_1, select_wrapper, Fstop_process)
18138 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18139 (status_notify): Modify to handle serial processes.
18140 [HAVE_SERIAL] (Fserial_process_configure)
18141 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18142 New functions.
18143 * process.h (struct Lisp_Process): Add `type'.
18144 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18145 New functions.
18146 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18147 serial ports.
18148 (serial_open, serial_configure): New functions.
18149 * w32.h: Add FILE_SERIAL.
18150 (struct _child_process): Add ovl_read, ovl_write.
18151
18152 2008-06-13 Kenichi Handa <handa@m17n.org>
18153
18154 * dispextern.h (enum lface_attribute_index): New member
18155 LFACE_FOUNDRY_INDEX.
18156
18157 * font.c (font_score): Delete arg alternate_families. Check only
18158 weight, slant, width, and size. Ignore the difference of alias
18159 style symbols.
18160 (font_sort_entites): Adjust for the above change. Reflect the
18161 order of font-driver to scores.
18162 (font_list_entities): Don't check alternate_familes here.
18163 (font_clear_prop): Handle foundry.
18164 (font_update_lface): Don't parse "foundry-family" form here.
18165 Handle FONT_FOUNDRY_INDEX.
18166 (font_find_for_lface): Likewise. Handle alternate families here.
18167 If registry is nil, try iso8859-1 and ascii-0.
18168 (font_open_for_lface): Pay attention to size in ENTITY.
18169 (font_open_by_name): Simplify by calling font_load_for_lface.
18170 (free_font_driver_list): Delete it.
18171 (font_update_drivers): Preserve the order of backends.
18172 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18173 of font_score and font_sort_entites.
18174 (font_update_sort_order): Likewise.
18175
18176 * xfaces.c (LFACE_FOUNDRY): New macro.
18177 (check_lface_attrs): Check foundry.
18178 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18179 (merge_face_vectors): Check foundry.
18180 (merge_face_ref): Likewise.
18181 (Finternal_set_lisp_face_attribute): Likewise.
18182 (x_update_menu_appearance): Likewise.
18183 (Finternal_get_lisp_face_attribute): Likewise.
18184 (lface_hash): Likewise.
18185 (lface_same_font_attributes_p): Likewise.
18186 (x_supports_face_attributes_p): Likewise.
18187 (tty_supports_face_attributes_p): Likewise.
18188 (Finternal_set_alternative_font_family_alist): Intern strings.
18189 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18190 (realize_default_face): Set LFACE_FOUNDRY (lface).
18191
18192 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18193 font-driver at first.
18194
18195 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18196
18197 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18198
18199 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18200
18201 2008-06-12 Jim Meyering <meyering@redhat.com>
18202
18203 Make unexec_free handle NULL the same way free does.
18204 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18205
18206 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18207
18208 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18209 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18210 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18211 (WEAK_ALIAS): Simplify.
18212 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18213 when searching a unibyte buffer.
18214
18215 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
18216
18217 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18218
18219 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
18220
18221 * w32font.c: Include ctype.h.
18222
18223 2008-06-11 Jason Rumney <jasonr@gnu.org>
18224
18225 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18226 misreported as space.
18227 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18228 as aliases for registry iso10646-1.
18229
18230 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18231
18232 * buffer.c (clone_per_buffer_values): Skip `name'.
18233
18234 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
18235
18236 * font.c (font_parse_fcname): Fix last change; accept decimal
18237 points in font size.
18238
18239 2008-06-10 Jason Rumney <jasonr@gnu.org>
18240
18241 * w32uniscribe.c (add_opentype_font_name_to_list):
18242 Skip non unicode fonts.
18243
18244 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18245
18246 * xfns.c (Fx_font_dialog): New function.
18247
18248 * gtkutil.c (xg_dialog_response_cb): Rename from
18249 xg_file_response_callback.
18250 (pop_down_dialog): Rename from pop_down_file_dialog.
18251 (xg_get_file_name): Callers changed.
18252 (xg_get_font_name): New function.
18253
18254 * gtkutil.h (xg_get_font_name): Insert prototype.
18255
18256 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18257
18258 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18259 x_underline_minimum_display_offset.
18260 (syms_of_xdisp): Declare it here rather than in xterm.c.
18261 * dispextern.h (underline_minimum_offset): Declare it.
18262 * w32term.c (x_draw_glyph_string): Use it.
18263 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18264 (syms_of_xterm): Don't declare it any more.
18265 (x_draw_glyph_string): Adjust to the new name.
18266
18267 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
18268
18269 * xterm.c (x_underline_minimum_display_offset): New var.
18270 (x_draw_glyph_string): Use it.
18271 (syms_of_xterm): Declare it.
18272
18273 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18274
18275 * font.c (font_parse_fcname): Accept GTK-style font names too.
18276
18277 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18278
18279 * dired.c (file_name_completion): Don't return t if the match is exact
18280 but with different capitalization.
18281 * minibuf.c (Ftry_completion): Simplify.
18282
18283 * window.c (Vwindow_point_insertion_type): New var.
18284 (set_window_buffer): Use it.
18285 (syms_of_window): Init and export it to Lisp.
18286
18287 2008-06-10 Kenichi Handa <handa@m17n.org>
18288
18289 * font.h (font_intern_prop): Prototype adjusted.
18290
18291 * font.c (font_intern_prop): New arg force_symbol.
18292 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18293 Adjust for the change of font_intern_prop.
18294
18295 * ftfont.c (ftfont_pattern_entity):
18296 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18297 (w32_registry):
18298 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18299 the change of font_intern_prop.
18300
18301 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
18302
18303 * w32menu.c (digest_single_submenu): Declare extern.
18304
18305 2008-06-09 Jason Rumney <jasonr@gnu.org>
18306
18307 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18308
18309 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18310 (parse_single_submenu): Remove.
18311 (digest_single_submenu): Remove.
18312 (syms_of_w32menu): Don't initialise variables that have moved
18313 to menu.c.
18314 (set_frame_menubar): Sync with version in xmenu.c.
18315 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18316
18317 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18318 Make static again.
18319
18320 2008-06-09 Jason Rumney <jasonr@gnu.org>
18321
18322 Changes to w32 files related to the move of common menu code
18323 to menu.c on 2008-06-08 by Chong Yidong.
18324
18325 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18326 defs to w32gui.h.
18327 (single_keymap_panes, push_menu_item, push_menu_pane):
18328 Make globally visible.
18329
18330 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18331 (local_free, malloc_widget_value, free_widget_value)
18332 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18333 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18334 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18335 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18336 (menu_items, menu_items_allocated, menu_items_used)
18337 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18338 (init_menu_items, finish_menu_items, discard_menu_items)
18339 (grow_menu_items, push_submenu_start, push_submenu_end)
18340 (push_left_right_boundary, push_menu_pane, push_menu_item)
18341 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18342 (free_menubar_widget_tree_value, parse_single_submenu)
18343 (update_submenu_strings): Remove functions.
18344 (xmalloc_widget_value): Remove and declare extern.
18345
18346 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18347 (OBJ1): Build it.
18348
18349 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18350 (local_heap, local_alloc, local_free, malloc_widget_value)
18351 (free_widget_value): Define here.
18352
18353 2008-06-09 Kenichi Handa <handa@m17n.org>
18354
18355 * font.h (Qascii_0): Extern it.
18356
18357 * font.c (Qascii_0): New variable.
18358 (syms_of_font): DEFSYM it.
18359 (font_open_by_name): If the registry "iso8859-1" fails, try also
18360 "ascii-0".
18361
18362 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18363
18364 2008-06-08 Kenichi Handa <handa@m17n.org>
18365
18366 * .gdbinit (xfont): New command.
18367
18368 2008-06-08 Andreas Schwab <schwab@suse.de>
18369
18370 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18371 * Makefile.in (menu.o): Update dependencies.
18372
18373 * Makefile.in (obj): Always add menu.o.
18374 * emacs.c (main): Always call syms_of_menu.
18375 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18376
18377 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
18378
18379 * Makefile.in: Compile menu.c.
18380
18381 * lisp.h: Declare syms_of_menu.
18382
18383 * emacs.c (main): Call syms_of_menu.
18384
18385 * keyboard.h: Relocate platform-independent menu definitions from
18386 xmenu.c.
18387
18388 * menu.c: New file. Relocate platform-independent menu
18389 definitions from xmenu.c. Suggested by Adrian Robert.
18390
18391 * xmenu.c: Remove platform-independent menu definitions.
18392 (menu_items, menu_items_inuse, menu_items_allocated)
18393 (menu_items_used, menu_items_n_panes)
18394 (menu_items_submenu_depth): Move to keyboard.h.
18395 (init_menu_items, finish_menu_items, unuse_menu_items)
18396 (discard_menu_items, restore_menu_items, save_menu_items)
18397 (grow_menu_items, push_submenu_start, push_submenu_end)
18398 (push_left_right_boundary, push_menu_pane, push_menu_item)
18399 (keymap_panes, single_keymap_panes, single_menu_item)
18400 (list_of_panes, list_of_items, find_and_call_menu_selection)
18401 (xmalloc_widget_value, free_menubar_widget_value_tree)
18402 (parse_single_submenu, digest_single_submenu)
18403 (update_submenu_strings): Move to menu.c.
18404
18405 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18406
18407 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18408
18409 2008-06-06 Miles Bader <miles@gnu.org>
18410
18411 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18412 face, not frame default.
18413
18414 2008-06-05 Martin Rudalics <rudalics@gmx.at>
18415
18416 * window.c (pop_up_windows, pop_up_frames)
18417 (display_buffer_reuse_frames, Vpop_up_frame_function)
18418 (Vdisplay_buffer_function, Veven_window_heights)
18419 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18420 (Vspecial_display_function, Vsame_window_buffer_names)
18421 (Vsame_window_regexps, split_height_threshold)
18422 (Vsplit_window_preferred_function): Move those vars to window.el.
18423 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18424 (Fdisplay_buffer): Move those functions to window.el.
18425 (syms_of_window): Remove corresponding declarations.
18426 (display_buffer): New function.
18427 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18428 * dispnew.c (Flast_nonminibuf_frame): New function.
18429 * buffer.c (Fpop_to_buffer): Move to window.el.
18430
18431 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18432
18433 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18434
18435 2008-06-05 Kenichi Handa <handa@m17n.org>
18436
18437 * coding.c (detect_coding): Fix previous change.
18438 (detect_coding_system): Likewise.
18439
18440 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18441
18442 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18443
18444 * keymap.c (Vminibuffer_local_filename_must_match_map):
18445 Rename from Vminibuffer_local_must_match_filename_map.
18446 (syms_of_keymap):
18447 * minibuf.c (Fcompleting_read): Adjust accordingly.
18448 * commands.h: Rename declaration as well.
18449
18450 2008-06-05 Kenichi Handa <handa@m17n.org>
18451
18452 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18453 family name.
18454 (Ffont_put): Likewise.
18455
18456 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18457 current font-spec.
18458
18459 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18460 is unspecified.
18461
18462 * xfaces.c (realize_x_face): If the font-related face attributes
18463 are the same as those of default face, realize a new fontset from
18464 default->fontset.
18465 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18466
18467 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18468
18469 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18470 (move_it_in_display_line): New wrapper.
18471
18472 * window.c (window_scroll_pixel_based_preserve_x)
18473 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18474 (window_scroll_pixel_based, window_scroll_line_based):
18475 Use them to preserve column positions.
18476 (syms_of_window): Initialize them.
18477
18478 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18479 (HPOS . VPOS) pair.
18480
18481 * dispextern.h (move_it_in_display_line): Declare.
18482
18483 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
18484
18485 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18486 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18487 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18488
18489 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
18490
18491 * window.c (Fset_window_parameter): Doc fix.
18492 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18493
18494 2008-06-04 Joakim Verona <joakim@verona.se>
18495
18496 * window.h (struct window): Add new member window_parameters.
18497
18498 * window.c (Fwindow_parameters, Fwindow_parameter)
18499 (Fset_window_parameter): New defuns.
18500 (syms_of_window): Defsubr the new defuns.
18501 (make_window): Initialize window_parameters to nil.
18502
18503 2008-06-04 John Paul Wallington <jpw@pobox.com>
18504
18505 * eval.c (Fdefmacro): Doc fix.
18506
18507 2008-06-04 Kenichi Handa <handa@m17n.org>
18508
18509 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18510 Be sure to call setup_coding_system when we find a proper coding system.
18511 (detect_coding_system): Fix handling of coding->head_ascii.
18512
18513 2008-06-03 Andreas Schwab <schwab@suse.de>
18514
18515 * font.c (font_prop_validate_spacing): Fix last change.
18516
18517 2008-06-03 Kenichi Handa <handa@m17n.org>
18518
18519 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18520 (font_parse_fcname): Fix handling of unknown key.
18521
18522 * xfont.c (xfont_list): Try an alias.
18523
18524 * charset.c (char_charset): Return NULL if the arg charset_list is
18525 specified and C doesn't belong to any of them.
18526
18527 2008-06-02 Chip Coldwell <coldwell@redhat.com>
18528
18529 * font.c (font_pixel_size): Don't take cdr of an integer.
18530
18531 2008-06-02 Jim Meyering <meyering@redhat.com>
18532
18533 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18534 * alloc.c (xfree): Return right away for a NULL arg.
18535 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18536 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18537 * mac.c (create_apple_event_from_event_ref): Likewise.
18538 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18539 Likewise.
18540 * doprnt.c (doprnt1): Likewise.
18541 * frame.c (frame): Likewise.
18542 * keyboard.c (wipe_kboard): Likewise.
18543 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18544 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18545 * term.c (tty_default_color_capabilities, maybe_fatal)
18546 (delete_tty): Likewise.
18547 * w16select.c (string): Likewise.
18548 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18549 * w32bdf.c (w32_free_bdf_font): Likewise.
18550 * w32fns.c (w32_unload_font): Likewise.
18551 * w32font.c (w32font_close): Likewise.
18552 * window.c (size_window): Likewise.
18553 * xselect.c (receive_incremental_selection): Likewise.
18554 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18555 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18556 * w32.c (stat): Likewise.
18557
18558 Remove useless if-before-free tests.
18559 * editfns.c (Fset_time_zone_rule): Likewise.
18560 * lread.c (nosuffix): Likewise.
18561 * ralloc.c (get_bloc): Likewise.
18562 * regex.c (reg_free): Likewise.
18563 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18564 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18565 * xsmfns.c (smc_save_yourself_CB): Likewise.
18566
18567 2008-06-02 Kenichi Handa <handa@m17n.org>
18568
18569 * font.c (font_find_for_lface): Handle float font size.
18570 (font_open_for_lface): Likewise.
18571
18572 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18573 comparing the properties.
18574
18575 2008-06-01 Jason Rumney <jasonr@gnu.org>
18576
18577 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18578 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18579 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18580 Don't add empty script list.
18581 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18582
18583 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18584
18585 * Makefile.in (dot, dotdot): Remove, update users.
18586 ".." has been used elsewhere in the file for a long time.
18587 (LIBXT_STATIC): Remove conditional based on unused variable.
18588
18589 2008-06-01 Miles Bader <miles@gnu.org>
18590
18591 * xfaces.c (Vface_remapping_alist): New variable.
18592 (syms_of_xfaces): Initialize it.
18593 (enum named_merge_point_kind): New type.
18594 (struct named_merge_point): Add `named_merge_point_kind' field.
18595 (push_named_merge_point): Make cycle detection respect different
18596 named-merge-point kinds.
18597 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18598 Remove face-name alias resolution.
18599 (lface_from_face_name): New definition using
18600 `lface_from_face_name_no_resolve'.
18601 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18602 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18603 (get_lface_attributes): New definition that layers face-remapping on
18604 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18605 (lookup_basic_face): New function.
18606 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18607 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18608 `get_lface_attributes'.
18609 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18610 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18611 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18612
18613 * xdisp.c (init_iterator): Pass base_face_id through
18614 `lookup_basic_face' when we actually use it as a face-id.
18615 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18616 DEFAULT_FACE_ID.
18617
18618 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18619 lookup the initial face-id.
18620
18621 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18622
18623 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
18624
18625 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18626 (Fremove_text_properties): Fix typos in docstrings.
18627
18628 2008-05-31 Kenichi Handa <handa@m17n.org>
18629
18630 * font.c (font_list_entities): Fix the car part of data to be
18631 stored in the cache.
18632
18633 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18634
18635 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18636
18637 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18638 Add a `test' argument so another predicate than `equal' can be used.
18639 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18640 (map_char_table): Remove unused vars `c' and `i'.
18641 * lisp.h (Foptimize_char_table): Adjust declaration.
18642 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18643
18644 2008-05-30 Kenichi Handa <handa@m17n.org>
18645
18646 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18647 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18648 defined.
18649
18650 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18651
18652 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18653 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18654 frame-local settings for the same variable.
18655
18656 2008-05-30 Kenichi Handa <handa@m17n.org>
18657
18658 * fontset.c (Ffont_info): Move to font.c.
18659 (syms_of_fontset): Delete defsubr of Sfont_info.
18660
18661 * font.c (font_style_to_value, font_score): Delete casting of the
18662 args to xstcasecmp.
18663 (register_font_driver): Increment num_font_drivers only when
18664 registering the driver globally.
18665 (Ffont_info): Move from fontset.c. Handle a font object too.
18666 (syms_of_font): Defsubr Sfont_info.
18667
18668 2008-05-29 Kenichi Handa <handa@m17n.org>
18669
18670 * coding.h (enum define_coding_utf8_arg_index): New enum.
18671 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18672 coding_attr_utf_bom.
18673 (enum utf_bom_type): Rename from utf_16_bom_type.
18674 (struct utf_16_spec): Adjust for the above change.
18675 (struct coding_system): Add utf_8_bom in `spec' union.
18676
18677 * coding.c (CODING_UTF_8_BOM): New macro.
18678 (enum coding_category): Delete coding_category_utf_8, add
18679 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18680 coding_category_utf_8_sig.
18681 (CATEGORY_MASK_UTF_8): Delete it.
18682 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18683 (CATEGORY_MASK_UTF_8_SIG): New macros.
18684 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18685 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18686 CATEGORY_MASK_UTF_8_SIG.
18687 (CATEGORY_MASK_UTF_8): New macro.
18688 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18689 (detect_coding_utf_8): Check BOM.
18690 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18691 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18692 (encode_coding_utf_16): Likewise.
18693 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18694 (detect_coding, detect_coding_system): Handle utf-8-auto.
18695 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18696 (syms_of_coding): Fix setting up of Vcoding_category_table.
18697
18698 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18699
18700 * process.c (Faccept_process_output): If `millisec' is non-nil,
18701 `seconds' default to 0.
18702 (wait_reading_process_output): Also return non-nil if we read output
18703 from a non-running process.
18704
18705 2008-05-29 Jason Rumney <jasonr@gnu.org>
18706
18707 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18708 `raster' specified.
18709 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18710 in the uniscribe backend, but disallow any font that has no
18711 unicode subrange support.
18712
18713 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
18714
18715 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18716 Fix typos in docstrings.
18717
18718 2008-05-29 Kenichi Handa <handa@m17n.org>
18719
18720 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18721 (Fx_family_fonts): Set frame correctly.
18722
18723 2008-05-28 Jason Rumney <jasonr@gnu.org>
18724
18725 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18726
18727 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18728
18729 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18730 calling build_annotations.
18731
18732 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
18733
18734 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18735 (Fencode_coding_string):
18736 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18737 <latin-extra-code-table>: Fix typos in docstrings.
18738 (syms_of_coding) <coding-system-alist>: Doc fix.
18739 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18740
18741 2008-05-28 Kenichi Handa <handa@m17n.org>
18742
18743 * fontset.c (Ffont_info): Don't call font_close_object.
18744
18745 * font.c (font_parse_family_registry): Use Ffont_put to validate
18746 foundry and family.
18747 (font_delete_unmatched): Don't check spacing.
18748 (font_list_entities): Add spacing to the spec to list fonts.
18749
18750 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18751 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18752
18753 * coding.c (encode_coding_raw_text): Fix previous change.
18754 (encode_coding_object): When the dst_object is a buffer and is
18755 different from src_object, move gap to PT.
18756
18757 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18758
18759 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18760
18761 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18762
18763 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18764 all branches. Compute it differently.
18765
18766 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18767
18768 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
18769
18770 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18771 into "else if () ... else ...".
18772
18773 2008-05-27 Jason Rumney <jasonr@gnu.org>
18774
18775 * w32font.c (w32font_open_internal): Determine if glyph indices
18776 are likely to work here.
18777
18778 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18779
18780 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18781 draw overlap glyphs with appropriate highlighting.
18782
18783 2008-05-27 Kenichi Handa <handa@m17n.org>
18784
18785 * xfont.c (xfont_open): Fix calculation of font->average_width.
18786
18787 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18788
18789 * casefiddle.c (casify_object): Try to guess better whether the
18790 argument is a byte or a char.
18791
18792 2008-05-26 Andreas Schwab <schwab@suse.de>
18793
18794 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18795 Always send multiples of format size.
18796
18797 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18798
18799 2008-05-26 Jason Rumney <jasonr@gnu.org>
18800
18801 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18802 (compute_metrics): Don't set failure if we just cleared the cache.
18803 (w32_weight_table): Remove unused variable.
18804 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18805 backwards compatibility.
18806
18807 2008-05-25 Kenichi Handa <handa@m17n.org>
18808
18809 * w32term.c (x_draw_glyph_string):
18810 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18811
18812 * xfaces.c: Delete unused function prototypes.
18813 (xstrlwr, font_frame): Delete them.
18814 (clear_face_cache): Delete unused variable.
18815
18816 * xftfont.c (xftfont_open): Delete unused variable.
18817 If underline_thickness is not 1, adjust underline_position.
18818
18819 * ftxfont.c (ftxfont_open): Delete unused variable.
18820
18821 * fontset.c (face_for_char): Optimize for the case of no charset
18822 property.
18823
18824 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18825 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18826 (otf_open, font_otf_capability, generate_otf_features)
18827 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18828 Comment out by surrounding "#if 0" and "#endif" for the moment.
18829 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18830 (syms_of_font): Codes for accessing above commented out.
18831
18832 2008-05-24 Eli Zaretskii <eliz@gnu.org>
18833
18834 * w32proc.c: Include dispextern.h.
18835
18836 * w32.c: Include dispextern.h.
18837
18838 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
18839
18840 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18841 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18842 Fix typos in docstrings.
18843
18844 2008-05-23 Jason Rumney <jasonr@gnu.org>
18845
18846 * xsmfns.c: Remove includes that are already included by config.h.
18847
18848 2008-05-23 Kenichi Handa <handa@m17n.org>
18849
18850 * charset.c (Qemacs, charset_emacs): New variables.
18851 (char_charset): Fix for non-Unicode characters.
18852 (syms_of_charset): Define charset_emacs.
18853
18854 * w32term.c (x_draw_glyph_string): Be sure to update
18855 s->underline_thickness and s->underline_position. Be sure to draw
18856 underline within the current line area.
18857
18858 * xterm.c (x_draw_glyph_string): Be sure to update
18859 s->underline_thickness and s->underline_position. Be sure to draw
18860 underline within the current line area.
18861
18862 * fontset.c: Delete unused variables and add casting for char *
18863 throughout the file.
18864 (fontset_font): Try the fallback fonts of the current fontset
18865 before consulting the default fontset.
18866
18867 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18868
18869 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18870
18871 2008-05-22 Jason Rumney <jasonr@gnu.org>
18872
18873 * font.c: Don't include strings.h.
18874
18875 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18876
18877 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18878 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18879 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18880 to call xstrcasecmp.
18881
18882 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18883
18884 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18885
18886 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18887
18888 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18889
18890 2008-05-22 Kenichi Handa <handa@m17n.org>
18891
18892 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18893
18894 * font.c (font_prop_validate_style): Adjust for the format
18895 change of font_style_table.
18896
18897 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18898 two args.
18899
18900 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18901 two args.
18902
18903 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18904
18905 * minibuf.c (keys_of_minibuf): Delete.
18906 * lisp.h (keys_of_minibuf): Delete.
18907 * emacs.c (main): Don't call keys_of_minibuf.
18908
18909 2008-05-22 Kenichi Handa <handa@m17n.org>
18910
18911 * ftfont.c (ftfont_resolve_generic_family): Rename from
18912 ftfont_list_generic_family. Return a single family for each
18913 generic family.
18914 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18915 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18916 Call font_add_log.
18917 (ftfont_match): Call font_add_log.
18918
18919 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18920 (FONT_DEBUG): Define it.
18921 (font_add_log): Extern it.
18922 (font_assert): Rename from xassert.
18923
18924 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18925 (xfont_list_family): Call font_add_log.
18926 (xfont_match): Likewise.
18927 (memq_no_quit): Delete.
18928
18929 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18930 call of Ffont_xlfd_name.
18931
18932 * xfaces.c (struct table_entry, slant_table, weight_table)
18933 (swidth_table): Move to font.c.
18934
18935 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18936 xassert are changed to font_assert. Delete many unused variables.
18937 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18938 New variables.
18939 (struct table_entry): Move from xfaces.c and modified.
18940 (weight_table, slant_table, width_table): Move from xfaces.c and
18941 contents adjusted for the change of struct table_entry.
18942 (font_style_to_value, font_style_symbolic): Adjust for the
18943 format change of font_style_table.
18944 (font_parse_family_registry): Don't overwrite existing foundry and
18945 family of font_spec.
18946 (font_score): Fix calculation of diff for sizes.
18947 (font_sort_entites): Call font_add_log.
18948 (font_delete_unmatched): Return a newly created list.
18949 (font_list_entities): Fix previous change. Call font_add_log.
18950 (font_matching_entity, font_open_entity, font_close_entity):
18951 Call font_add_log.
18952 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
18953 (Finternal_set_font_style_table): Delete.
18954 (BUILD_STYLE_TABLE): New macro.
18955 (build_style_table): New function.
18956 (Vfont_log, font_log_env_checked): New variables.
18957 (font_add_log): New function.
18958 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
18959 Declare Lisp variables "font-weight-table", "font-slant-table",
18960 "font-width-table", and "font-log". Initialize font_style_table.
18961
18962 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
18963
18964 * xterm.c (x_set_frame_alpha): Move declarations before statements.
18965
18966 2008-05-21 Seiji Zenitani <zenitani@mac.com>
18967 Ryo Yoshitake <ryo@shiftmode.net>
18968
18969 * frame.c (Qalpha): Add a new frame parameter `alpha'.
18970 (Vframe_alpha_lower_limit): New variable.
18971 (x_set_alpha): New function.
18972
18973 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
18974
18975 * xfns.c (x-create-frame, Qalpha):
18976 Initialize the frame parameter `alpha'.
18977 * xterm.c (OPAQUE, OPACITY): New.
18978 (x_set_frame_alpha): New function.
18979 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
18980
18981 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
18982 * w32fns.c (w32_frame_parm_handlers): Likewise.
18983
18984 2008-05-20 Jason Rumney <jasonr@gnu.org>
18985
18986 * w32font.c (add_font_entity_to_list): Don't add non-opentype
18987 truetype fonts to opentype list.
18988
18989 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
18990
18991 * fontset.c (Ffontset_info): Doc fix.
18992 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
18993 <ignore-relative-composition>: Fix typos in docstrings.
18994
18995 * font.c (syms-of-font) <font-encoding-alist>:
18996 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
18997 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
18998 (Ffont_otf_alternates): Doc fixes.
18999
19000 2008-05-20 Kenichi Handa <handa@m17n.org>
19001
19002 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19003 font.h through out the file.
19004 (FONT_DRIVERS): Rename from FONTOBJ.
19005 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19006 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19007
19008 * emacs.c (main): Call syms_of_font unconditionally.
19009
19010 * font.h (find_font_encoding): Extern it.
19011
19012 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19013 fontset.c.
19014 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
19015 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19016 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19017 only when HAVE_WINDOW_SYSTEM is defined.
19018 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19019 when HAVE_WINDOW_SYSTEM is defined.
19020
19021 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19022 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19023
19024 * xfaces.c: Include font.h unconditionally.
19025 (merge_face_ref, merge_face_vectors)
19026 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19027
19028 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19029
19030 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19031 indirect_variable.
19032 * eval.c (lisp_indirect_variable): New fun.
19033 (Fuser_variable_p): Use it.
19034
19035 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19036
19037 * lisp.h (indirect_variable):
19038 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19039 Use Lisp_Symbol pointers rather than Lisp_Object.
19040 Adjust callers.
19041 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19042 To this end, change calling-convention.
19043
19044 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19045 if some non-hidden buffers are selected by string&pred.
19046
19047 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
19048
19049 * process.c (wait_reading_process_output): Always check status
19050 when in batch mode.
19051
19052 2008-05-19 Kenichi Handa <handa@m17n.org>
19053
19054 * font.c (font_list_entities): Fix handling of cache.
19055 (font_matching_entity): Likewise.
19056
19057 * ftfont.c (cs_iso8859_1): Delete.
19058 (ft_face_cache): New variable.
19059 (struct ftfont_info): New member fc_charset_idx.
19060 (ftfont_build_basic_charsets): Delete.
19061 (fc_charset_table): New variable.
19062 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19063 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19064 Callers changed.
19065 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19066 (ftfont_spec_pattern): New argument fc_charset_idx.
19067 Check registry more rigidly. Change callers.
19068 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19069 change of :font-entity property of the font.
19070
19071 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19072 property of the font.
19073
19074 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
19075
19076 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19077 (Funencodable_char_position, Fcheck_coding_systems_region)
19078 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19079 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19080 (Ffind_operation_coding_system, Fset_coding_system_priority)
19081 (Fcoding_system_eol_type): Doc fixes.
19082
19083 2008-05-17 Glenn Morris <rgm@gnu.org>
19084
19085 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19086
19087 2008-05-16 Eli Zaretskii <eliz@gnu.org>
19088
19089 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19090 and st_gid.
19091
19092 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19093 HAVE_WINDOW_SYSTEM is not defined.
19094
19095 * xfaces.c (merge_face_ref, merge_face_vectors)
19096 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19097 HAVE_WINDOW_SYSTEM is defined.
19098 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19099
19100 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19101
19102 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19103
19104 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19105
19106 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19107
19108 2008-05-15 Kenichi Handa <handa@m17n.org>
19109
19110 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19111 preference.
19112
19113 2008-05-15 Glenn Morris <rgm@gnu.org>
19114
19115 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19116
19117 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
19118
19119 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19120 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19121
19122 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19123
19124 2008-05-15 Kenichi Handa <handa@m17n.org>
19125
19126 * ftfont.c (ftfont_list): Downcase family name to check generic
19127 families.
19128
19129 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19130 font-spec for QCfont value.
19131
19132 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19133 buffer. Check the return value of it.
19134
19135 2008-05-14 Jason Rumney <jasonr@gnu.org>
19136
19137 * w32term.c (w32_get_glyph_overhangs): Remove.
19138 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19139
19140 2008-05-14 Kenichi Handa <handa@m17n.org>
19141
19142 * font.c (font_prop_validate): Make nil a valid value.
19143 (font_clear_cache): Check if the cached vector of entities is nil
19144 or not.
19145
19146 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19147
19148 * emacs.c (main_thread): Conditionalize on
19149 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19150 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19151
19152 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19153 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19154 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19155
19156 2008-05-14 Kenichi Handa <handa@m17n.org>
19157
19158 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19159 has no corresponding coding system.
19160
19161 2008-05-14 Jason Rumney <jasonr@gnu.org>
19162
19163 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19164
19165 * w32font.h (w32font_open_internal): Update declaration.
19166
19167 * w32font.c (w32font_open_internal): Change last argument from
19168 w32font_info struct to font object. Fill in font object from
19169 font_entity. Get Outline metrics if possible. Use them to
19170 calculate underline position and thickness. Use xlfd name as name
19171 property. Don't set codepage.
19172 (w32font_open): Pass font_object to w32font_open_internal. Don't
19173 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19174 (w32font_draw): Use s->font.
19175 (clear_cached_metrics): Don't clear non-existent blocks.
19176
19177 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19178 font was not found.
19179 (x_draw_glyph_string): Use underline position and thickness from font.
19180
19181 * w32uniscribe.c (uniscribe_open): Pass font_object to
19182 w32font_open_internal.
19183
19184 2008-05-14 Kenichi Handa <handa@m17n.org>
19185
19186 These changes are to delete all legacy font-handling codes, and
19187 make Emacs use only font-backends.
19188
19189 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19190 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19191
19192 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19193
19194 * charset.h (Vcharset_non_preferred_head)
19195 (Vcurrent_iso639_language): Extern them.
19196
19197 * charset.c (Vcharset_non_preferred_head): New variable.
19198 (Vcurrent_iso639_language): New variable.
19199 (syms_of_charset): Declare it as a Lisp variable.
19200 (char_charset): Don't check non preferred charsets. As a last
19201 resort, return charset_unicode.
19202 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19203
19204 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19205 conditionals. Don't check enable_font_backend. Delete all codes
19206 used only when USE_FONT_BACKEND is not defined.
19207
19208 * dispextern.h (struct glyph_string): Change type of `font' to
19209 `struct font *'.
19210 (struct glyph_string): New member underline_position and
19211 underline_thickness.
19212 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
19213 (struct face): Change type of `font' to `struct font *'.
19214 Remove members `font_name', `font_info_id'.
19215 (per_char_metric, encode_char): Delete externs.
19216 (calc_pixel_width_or_height): Adjust the prototype.
19217
19218 * emacs.c (enable_font_backend): Delete extern.
19219 (main): Don't set enable_font_backend. Don't check the command
19220 line argument "-disable-font-backend".
19221
19222 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19223 (enum font_property_index): New members FONT_DPI_INDEX,
19224 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19225 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19226 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19227 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19228 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19229 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19230 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19231 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19232 (struct font_spec, struct font_entity): New structs.
19233 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
19234 (struct font): Many members from old "struct font_info" moved to
19235 here. Members font and entity deleted.
19236 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19237 the new font-related objects.
19238 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19239 (CHECK_FONT_GET_OBJECT): Likewise.
19240 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
19241 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
19242 (struct font_driver): New members case_sensitive anc check.
19243 Type of the member list and open changed.
19244 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19245 (font_symbolic_width, font_find_object, font_get_spec)
19246 (font_set_lface_from_name): Delete extern.
19247 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19248
19249 * font.c: Include <strings.h>.
19250 (enable_font_backend): Delete it.
19251 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19252 (CHECK_VALIDATE_FONT_SPEC): Delete it.
19253 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
19254 (null_string): Delete it.
19255 (null_vector): Make it static.
19256 (font_family_alist): Delete it.
19257 (Qnormal): Extern it.
19258 (QCextra, QClanguage): Delete it.
19259 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19260 (font_make_spec, font_make_entity, font_make_object)
19261 (font_intern_prop): Rename from intern_downcase. Don't downcase
19262 the string. Callers changed.
19263 (font_pixel_size): Adjust for the format change of font-related
19264 objects.
19265 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19266 (font_style_to_value, font_style_symbolic): New function.
19267 (build_font_family_alist): Delete it.
19268 (font_registry_charsets): Use Fassoc_string instead of
19269 assq_no_quit.
19270 (font_prop_validate_symbol): Don't return null_string.
19271 (font_prop_validate_style): Adjust for the change of
19272 style-related values in a font vector.
19273 (font_property_table): Delete entries for QClanguage and
19274 QCantialias, add entries for QCavgwidth.
19275 (get_font_prop_index): Delete the 2nd argument FROM.
19276 (font_prop_validate): Arguments changed.
19277 (font_put_extra): Adjust for the change of font-related objects.
19278 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19279 (font_parse_fcname, font_unparse_fcname)
19280 (font_prepare_composition): Likewise.
19281 (font_parse_family_registry): Rename from font_merge_old_spec.
19282 (otf_open): Delete the 1st arg entity.
19283 (font_otf_capability): Adjust for the above change.
19284 (font_score): New arg alternate_families. Adjusted for the change
19285 of font-related objects.
19286 (font_sort_entites): New arg best_only.
19287 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19288 Delete them.
19289 (font_match_p): Check alternate families.
19290 (font_find_object): Delete it.
19291 (font_check_object): New function.
19292 (font_clear_cache): Adjust for the change of font-related objects.
19293 (font_delete_unmatched): New arg.
19294 (font_list_entities): Call font_driver->list with a spec that
19295 doesn't specify style-related properties.
19296 (font_matching_entity): Arguments changed. Caller changed.
19297 (font_open_entity): Adjust for the change of font-related objects.
19298 (font_close_object, font_has_char, font_encode_char)
19299 (font_get_name, font_get_spec): Likewise.
19300 (font_spec_from_name, font_clear_prop, font_update_lface):
19301 New functions.
19302 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19303 (font_prepare_for_face, font_done_for_face, font_open_by_name)
19304 (font_at): Adjust for the change of font-related objects.
19305 (font_range): New function.
19306 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
19307 (Ffont_xlfd_name): Adjust for the change of font-related objects.
19308 (Fcopy_font_spec, Fmerge_font_spec): New function.
19309 (Ffont_family_list): Rename from list-families.
19310 (Finternal_set_font_style_table): Arguments changed.
19311 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
19312 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
19313 change of font-related objects.
19314 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19315
19316 * fontset.h (struct font_info): Delete it. Most members go to
19317 struct font.
19318 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
19319 (enum FONT_SPEC_INDEX): Delete it.
19320 (font_info, list_fonts_func, load_font_func, query_font_func)
19321 (set_frame_fontset_func, find_ccl_program_func)
19322 (get_font_repertory_func, new_fontset_from_font_name):
19323 Delete externs.
19324 (fontset_from_font_name): Extern it.
19325 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19326 (FONT_INFO_FROM_FACE): Deleted.
19327 (face_for_font): Adjust prototype.
19328
19329 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19330 conditionals. Don't check enable_font_backend. Delete all codes
19331 used only when USE_FONT_BACKEND is not defined.
19332 (get_font_info_func, list_font_func, load_font_func)
19333 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19334 (get_font_repertory_func): Delete them.
19335 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19336 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19337 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19338 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19339 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19340 (fontset_compare_rfontdef): New function.
19341 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19342 rfont-defs by qsort. Adjusted for the change of font-group vector.
19343 (load_font_get_repertory): Deleted.
19344 (fontset_find_font): Use new macros to ref/set elements of
19345 font-def and rfont-def.
19346 (fontset_font): Fix the timing of remembering that no font for C.
19347 (free_face_fontset): Do nothing if the face has no fontset.
19348 (face_suitable_for_char_p): Use new macros to ref/set elements of
19349 rfont-def.
19350 (face_for_char): Likewise. Call face_for_char with font_object.
19351 (fs_load_font): Delete. Delete #pragma surrounding it.
19352 (fs_query_fontset): Use strcasecmp instead of strcmp.
19353 (generate_ascii_font_name): Adjust for the format change of
19354 font-spec.
19355 (Fset_fontset_font): Likewise. Use new macros to set elements of
19356 font-def.
19357 (Fnew_fontset): Use font_unparse_xlfd to generate
19358 FONTSET_ASCII (fontset).
19359 (new_fontset_from_font_name): Deleted.
19360 (fontset_from_font): Rename from new_fontset_from_font. Check if
19361 a fontset is already created for the font. FIx updating of
19362 Vfontset_alias_alist.
19363 (fontset_ascii_font): Deleted.
19364 (Ffont_info): Adjust for the format change of font-spec.
19365 (Finternal_char_font): Likewise.
19366 (Ffontset_info): Likewise.
19367 (syms_of_fontset): Don't check load_font_func.
19368
19369 * fns.c (internal_equal): Handle PREV_FONT.
19370
19371 * frame.h: Delete USE_FONT_BACKEND conditional.
19372
19373 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19374 conditionals. Don't check enable_font_backend. Delete all codes
19375 used only when USE_FONT_BACKEND is not defined.
19376 (x_set_font): Call x_new_font, not x_new_fontset2.
19377 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19378 already set for the frame.
19379
19380 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19381 Make a font-entity by font_make_entity. Use font_intern_prop instead
19382 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19383 font property. If a font is scalable, set avgwidth property to 0.
19384 Set font-entity property by font_put_extra.
19385 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
19386 (ffont_driver): Adjust for the change of struct font_driver.
19387 (ftfont_spec_pattern): New function.
19388 (ftfont_list): Return a list, not vector.
19389 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19390 (ftfont_list_family): Don't downcase names.
19391 (ftfont_free_entity): Deleted.
19392 (ftfont_open): Return a font-object. Adjusted for the change of
19393 struct font. Get underline_thickness and underline_position from
19394 font property. Don't update dpyinfo->smallest_font_height and
19395 dpyinfo->smallest_char_width.
19396 (ftfont_close): Don't free `struct font'.
19397 (ftfont_has_char): Adjust for the format change of font-entity.
19398 (ftfont_encode_char, ftfont_text_extents): Likewise.
19399
19400 * ftxfont.c (ftxfont_list): Return a list, not vector.
19401 (ftxfont_open): Return a font-object. Adjusted for the change of
19402 struct font. Get underline_thickness and underline_position from
19403 font property. Don't update dpyinfo->smallest_font_height and
19404 dpyinfo->smallest_char_width.
19405 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
19406 (ftxfont_draw): Adjust for the change of struct font.
19407
19408 * image.c (image_ascent): Don't include "charset.h".
19409 Include "character.h" and "font.h".
19410
19411 * lisp.h (enum pvec_type): New member PREV_FONT.
19412 (Fassoc_string): EXFUN it.
19413
19414 * print.c: Include font.h.
19415 (print_object): Handle font-related objects.
19416
19417 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19418 conditionals. Don't check enable_font_backend. Delete all codes
19419 used only when USE_FONT_BACKEND is not defined.
19420 (handle_auto_composed_prop): Do nothing if it->f is not on a
19421 window system. Check how many following characters can be
19422 displayed by the same font.
19423 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19424 'struct font *'.
19425 (get_char_face_and_encoding): Assign the whole encoding task to
19426 the `encode-char' method of a font driver.
19427 (fill_composite_glyph_string): Adjust for the change of `struct
19428 face' and `struct glyph_string'.
19429 (fill_glyph_string): Likewise.
19430 (get_per_char_metric): Arguments changed.
19431 (x_get_glyph_overhangs): Adjust for the change of `struct face'
19432 and `struct glyph_string'.
19433 (produce_stretch_glyph, calc_line_height_property)
19434 (x_produce_glyphs): Likewise.
19435
19436 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19437 conditionals. Don't check enable_font_backend. Delete all codes
19438 used only when USE_FONT_BACKEND is not defined.
19439 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
19440 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19441 (Qp): Extern them.
19442 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19443 Deleted.
19444 (struct font_name): Deleted.
19445 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19446 (compare_fonts_by_sort_order): New function.
19447 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19448 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19449 Deleted.
19450 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19451 compare_fonts_by_sort_order.
19452 (Fx_font_family_list): Call Ffont_family_list.
19453 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19454 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19455 (face_symbolic_slant, face_symbolic_swidth)
19456 (split_font_name_into_vector, build_font_name_from_vector)
19457 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19458 (font_rescale_ratio, split_font_name, build_font_name)
19459 (free_font_names, sort_fonts, x_face_list_fonts)
19460 (face_font_available_p, sorted_font_list, cmp_font_names)
19461 (font_list_1, concat_font_list, font_list, remove_duplicates):
19462 Deleted.
19463 (Fx_list_fonts): Use Ffont_list.
19464 (LFACE_AVGWIDTH): Deleted.
19465 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19466 by FONTP.
19467 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19468 (set_lface_from_font_name): Delete it.
19469 (set_lface_from_font): Rename from
19470 set_lface_from_font_and_fontset. Caller changed. Don't set
19471 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19472 for face.
19473 (merge_face_vectors): Copy font-spec if necessary.
19474 Clear properties of the font-spec if necessary.
19475 (merge_face_ref): Clear properties of the font-spec if necessary.
19476 (Finternal_set_lisp_face_attribute): Likewise.
19477 (set_font_frame_param): Use font_load_for_lface to load a
19478 font-object, and call Fmodify_frame_parameters with it.
19479 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19480 font name by Ffont_xlfd_name.
19481 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19482 QCslant, and QCwidth.
19483 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19484 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19485 Compare fonts by EQ.
19486 (lookup_non_ascii_face): Deleted.
19487 (face_for_font): The 2nd argument changed.
19488 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19489 Check atomic font properties by case insensitive.
19490 (realize_non_ascii_face): Set face->overstrike correctly.
19491 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19492 (dump_realized_face): Get font name from
19493 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19494
19495 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19496 conditionals. Don't check enable_font_backend. Delete all codes
19497 used only when USE_FONT_BACKEND is not defined.
19498 (xic_create_xfontset): Original code deleted and renamed from
19499 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19500 (x_make_gc): Don't set GCFont in GCs.
19501 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19502 opened by "fixed".
19503 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19504 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19505 get_font_repertory_func.
19506
19507 * xfont.c: Include <stdlib.h> and "ccl.h".
19508 (struct xfont_info): New structure.
19509 (xfont_query_font): Deleted.
19510 (xfont_find_ccl_program): Rename from x_find_ccl_program and
19511 moved from xterm.c.
19512 (xfont_driver): Adjust for the change of struct font_driver.
19513 (compare_font_names): New function.
19514 (xfont_list_pattern): Sort font names case insensitively.
19515 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
19516 (xfont_list): Return a list, not vector.
19517 (xfont_match): If the font doesn't have QCname property, generate
19518 a name from the other font properties.
19519 (xfont_open): Return a font-object. Adjusted for the change of
19520 struct font. Get underline_thickness and underline_position from
19521 font property. Don't update dpyinfo->smallest_font_height and
19522 dpyinfo->smallest_char_width.
19523 (xfont_close): Don't free struct font.
19524 (xfont_prepare_face): Adjust for the change of struct font.
19525 (xfont_done_face): Deleted.
19526 (xfont_has_char): Adjust for the change of struct font.
19527 (xfont_encode_char, xfont_draw): Likewise.
19528 (xfont_check): New function.
19529
19530 * xftfont.c (xftfont_list): Adjust for the change of `list'
19531 callback function.
19532 (xftfont_match): Adjust for the format change of font-entity.
19533 (xftfont_open): Adjust for the format change of font-entity and
19534 font-object. Adjusted for the change of struct font. Return a
19535 font-object. Don't update dpyinfo->smallest_font_height and
19536 dpyinfo->smallest_char_width.
19537 (xftfont_close): Block input while calling XftFontClose.
19538 (xftfont_prepare_face): Don't block input while calling
19539 xftfont_get_colors. Adjusted for the change of struct font.
19540 (xftfont_shape): Return value of error case fixed.
19541
19542 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19543
19544 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19545 conditionals.
19546 (FONT_WIDTH): Return (f)->max_width.
19547 (struct x_display_info): Delete member `font'.
19548 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19549 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19550 (struct x_output): Change type of `font' to `struct font *'.
19551
19552 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19553 conditionals. Don't check enable_font_backend. Delete all codes
19554 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19555 (x_per_char_metric, x_encode_char): Deleted.
19556 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
19557 (x_compute_glyph_string_overhangs): Adjust for the change of
19558 `struct face'.
19559 (x_draw_glyph_string_foreground)
19560 (x_draw_composite_glyph_string_foreground): Likewise.
19561 (x_draw_glyph_string): Likewise. Use font->underline_position and
19562 font->underline_thickness.
19563 (x_new_font): Rename from x_new_fontset2.
19564 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19565 (x_check_font): Call `check' method of a font driver.
19566 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19567 (x_query_font, x_get_font_repertory): Deleted.
19568 (x_find_ccl_program): Rename and moved to xfont.c.
19569 (x_redisplay_interface): Adjust for the change of `struct
19570 redisplay_interface'.
19571
19572 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19573 conditionals. Don't check enable_font_backend. Delete all codes
19574 used only when USE_FONT_BACKEND is not defined. Surround non-used
19575 code by "#ifdef OLD_FONT" and "endif".
19576 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19577
19578 * w32font.h (struct w32font_info): New member.
19579 (FONT_COMPAT): New macro.
19580 (w32font_open_internal): Prototype adjusted.
19581
19582 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19583 OLD_FONT" and "endif".
19584
19585 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19586 conditionals. Don't check enable_font_backend. Delete all codes
19587 used only when USE_FONT_BACKEND is not defined.
19588 (w32font_open): Return a font-object. Make a font-object by
19589 font_make_object. Adjusted for the change of struct w32font_info.
19590 (w32font_close): Don't free struct font. Adjusted for the change
19591 of struct w32font_info.
19592 (w32font_encode_char, w32font_text_extents, w32font_draw):
19593 Adjust for the change of struct w32font_info.
19594 (w32font_draw): Likewise.
19595 (w32font_list_internal): Return a list, not vector.
19596 (w32font_open_internal): Change the 4th arg to font-object.
19597 Adjusted for the change of struct w32font_info and font-object format.
19598 (add_font_name_to_list): Don't downcase names.
19599 (w32_enumfont_pattern_entity): Make a font-entity by
19600 font_make_entity. Adjusted for the format change of font-entity.
19601 Use FONT_SET_STYLE to set a style-related font property. If a
19602 font is scalable, set avgwidth property to 0. Set font-entity
19603 property by font_put_extra.
19604 (font_matches_spec): Adjust for the format change of font-entity.
19605 (w32_weight_table, w32_decode_weight): New variables.
19606 (w32_encode_weight): New function.
19607 (fill_in_logfont): Adjust for the format change of font-spec.
19608 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19609 weight value.
19610 (w32font_driver): Adjust for the change of struct font_driver.
19611
19612 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19613 conditionals. Don't check enable_font_backend. Surround non-used
19614 code by "#ifdef OLD_FONT" and "endif".
19615 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
19616 (FONT_AVG_WIDTH): Adjust for the change of struct font.
19617
19618 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19619 conditionals. Don't check enable_font_backend. Delete all codes
19620 used only when USE_FONT_BACKEND is not defined. Surround non-used
19621 code by "#ifdef OLD_FONT" and "endif".
19622
19623 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19624 (uniscribe_open): Return value changed to font-object.
19625 Adjusted for the format change of font-object.
19626 (uniscribe_otf_capability): Adjust for the change of struct font.
19627 (add_opentype_font_name_to_list): Don't downcase names.
19628 (uniscribe_font_driver): Adjust for the change of struct
19629 font_driver.
19630
19631 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
19632
19633 * dispnew.c (update_frame_1): Check if tty output is still valid
19634 before flushing it.
19635
19636 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19637
19638 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19639 to Gtk+ menus.
19640
19641 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19642
19643 * dired.c (file_name_completion): Tweak the code so as to always do it
19644 in a single pass. Tighten the scope of some variables.
19645
19646 * dired.c (Qdefault_directory): New var.
19647 (file_name_completion): Use it instead of Fexpand_file_name.
19648 (syms_of_dired): Initialize it.
19649
19650 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19651
19652 * fileio.c (double_dollars): Remove dead code.
19653
19654 2008-05-10 Eli Zaretskii <eliz@gnu.org>
19655
19656 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19657 Mention w32-get-true-file-attributes in doc string.
19658
19659 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19660
19661 2008-05-09 Glenn Morris <rgm@gnu.org>
19662
19663 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19664 2008-04-23.
19665
19666 2008-05-09 Eli Zaretskii <eliz@gnu.org>
19667
19668 Support for reporting owner and group of each file on MS-Windows:
19669 * dired.c (stat_uname, stat_gname): New functions, with special
19670 implementation for w32.
19671 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19672
19673 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19674 (dflt_group_name): New static variable.
19675 (dflt_group): Rename from the_group.
19676 (init_user_info): Init dflt_group fields. Get user's group name
19677 from LookupAccountSid.
19678 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19679 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19680 New initialization states.
19681 (globals_of_w32): Initialize them to zero. Initialize the default
19682 group name to "None".
19683 (GetFileSecurity_Name): New global var, the name of the function
19684 to call for GetFileSecurity.
19685 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19686 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19687 (get_file_security, get_security_descriptor_owner)
19688 (get_security_descriptor_group, is_valid_sid)
19689 (get_file_security_desc, get_rid, get_name_and_id)
19690 (get_file_owner_and_group): New functions.
19691 (stat): Use get_file_security_desc and get_file_owner_and_group to
19692 report the owner and primary group of each file. Don't ignore the
19693 high 32 bits of file's size, now that st_size is 64-bit wide.
19694 Fix test when to get true file attributes.
19695 (init_user_info): Use get_rid instead of equivalent inline code.
19696 (fstat): Don't ignore the high 32 bits of file's size.
19697
19698 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
19699
19700 * image.c (png_load): Use correct bit-depth for setting background
19701 color.
19702
19703 2008-05-08 Eli Zaretskii <eliz@gnu.org>
19704
19705 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19706 epa-hook.elc.
19707
19708 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
19709
19710 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19711
19712 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19713
19714 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19715 because the original parameters are in pure storage now.
19716 (mac_window): Remove unused params. Update callers.
19717
19718 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19719
19720 * lread.c (substitute_object_recurse): Use lower-level primitives.
19721 Don't signal errors when traversing sub-char-tables.
19722 Don't loop over all the possible characters when traversing char-tables.
19723
19724 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19725 just like we do in print.c.
19726
19727 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19728
19729 * minibuf.c (Ftry_completion): Remove code left over from when we used
19730 scmp instead of Fcompare_strings.
19731
19732 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
19733
19734 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19735
19736 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19737
19738 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19739 Create bitmap context in native byte order.
19740
19741 * macterm.c (XDrawLine)
19742 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19743 context in native byte order.
19744
19745 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19746
19747 * config.in: Regenerate.
19748
19749 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19750 New definitions for Image I/O support.
19751 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19752 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19753 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19754 (mac_data_provider_release_data, image_load_image_io)
19755 [USE_MAC_IMAGE_IO]: New functions.
19756 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19757 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19758 (init_image_func_pointer) [MAC_OSX]: Remove function.
19759 (image_load_quartz2d) [MAC_OSX]: Check availability of
19760 CGImageCreateWithPNGDataProvider at compile time.
19761 Use lowercase `false' for boolean constant.
19762 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19763 Use image_load_image_io.
19764 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19765 Don't check MyCGImageCreateWithPNGDataProvider.
19766 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19767 Don't call init_image_func_pointer.
19768
19769 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19770
19771 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19772 Make variable non-static.
19773 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19774 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19775
19776 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19777 (RED_FROM_ULONG): Mask off higher bits.
19778 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19779
19780 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19781 Include AvailabilityMacros.h.
19782 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19783 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19784
19785 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19786
19787 * chartab.c (Fset_char_table_range): If range is t, really set all
19788 chars to that value.
19789
19790 2008-05-03 Eli Zaretskii <eliz@gnu.org>
19791
19792 * dired.c (Ffile_attributes): Don't allow the device number become
19793 negative.
19794
19795 2008-05-02 Daiki Ueno <ueno@unixuser.org>
19796
19797 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19798
19799 2008-05-02 Juri Linkov <juri@jurta.org>
19800
19801 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19802 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19803 DEFAULT argument as a list of default values in docstrings.
19804
19805 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
19806
19807 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19808
19809 2008-05-01 Martin Rudalics <rudalics@gmx.at>
19810
19811 * dispnew.c (change_frame_size_1): Preserve small windows when
19812 shrinking frames by calling set_window_height|width with third
19813 arg 2.
19814
19815 * window.h (struct window): Replace field too_small_ok by field
19816 resize_proportionally.
19817
19818 * window.c (make_window): Initialize resize_proportionally.
19819 (enlarge_window): Temporarily set resize_proportionally to make
19820 sure that shrink_windows does scale the window proportionally.
19821 (shrink_windows): When window has resize_proportionally set try
19822 to shrink it proportionally by stealing from other windows.
19823 (struct saved_window, Fset_window_configuration)
19824 (compare_window_configurations): Handle resize_proportionally.
19825 (WINDOW_TOTAL_SIZE): New macro.
19826 (window_min_size, shrink_windows, size_window): Use it.
19827 (check_min_window_sizes): Remove. Invalid values of
19828 window-min-height|width are handled by window_min_size_2 now.
19829 (size_window, Fsplit_window, enlarge_window)
19830 (adjust_window_trailing_edge, grow_mini_window): Don't call
19831 check_min_window_sizes.
19832 (window_min_size_2, window_min_size_1, window_min_size):
19833 New argument safe_p for retrieving "safe" minimum sizes.
19834 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19835 (adjust_window_trailing_edge, grow_mini_window):
19836 Adjust arguments of window_min_size... functions.
19837 (shrink_windows): Argument min_size removed. New argument
19838 safe_p allows shrinking windows to their safe minimum sizes.
19839 Calculate minimum size and decide whether a window shall be
19840 deleted for each window individually.
19841 (size_window): When nodelete_p equals 2, tell shrink_windows to
19842 delete windows only if their new minimum size is no more safe.
19843 (shrink_window_lowest_first): Call window_min_size_1 to make
19844 sure to preserve modeline of bottom-most window when resizing
19845 the minibuffer.
19846 (Fset_window_configuration, Fcurrent_window_configuration)
19847 (compare_window_configurations): Do not handle
19848 window-min-height|width any more.
19849 (syms_of_window): Clarify window-min-height|width doc-strings.
19850
19851 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19852
19853 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19854 some more. Copy some of the code from Ftry_completions.
19855 Remove special case code that dates back to initial revision when the
19856 slash was only added when necessary and that can't trigger nowadays.
19857
19858 2008-04-27 Kenichi Handa <handa@m17n.org>
19859
19860 * font.c (font_prop_validate): Signal `error' instead of `font'.
19861
19862 2008-04-29 Jason Rumney <jasonr@gnu.org>
19863
19864 * w32fns.c (Fw32_battery_status): New defun.
19865 (syms_of_w32fns): Defsubr it.
19866
19867 2008-04-28 Andreas Schwab <schwab@suse.de>
19868
19869 * dired.c (file_name_completion): Fix another mixing of encoded
19870 and decoded names.
19871
19872 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
19873
19874 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19875
19876 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
19877
19878 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19879
19880 2008-04-27 Andreas Schwab <schwab@suse.de>
19881
19882 * dired.c (file_name_completion): Fix inappropriate mixing of
19883 encoded and decoded names.
19884
19885 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19886
19887 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19888
19889 2008-04-26 Eli Zaretskii <eliz@gnu.org>
19890
19891 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19892 2008-03-31, it's not needed anymore with `struct stat' definition
19893 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19894 for the same reasons.
19895
19896 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19897
19898 * m/sparc.h: Additional redefinitions for GNU/Linux.
19899
19900 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19901
19902 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19903 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19904 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19905 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19906 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19907 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19908 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19909 Likewise.
19910
19911 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19912 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19913 (mac_ax_number_of_characters): Add externs.
19914 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19915 [USE_MAC_TSM]: Likewise.
19916 (mac_handle_text_input_event) [MAC_OSX]:
19917 Handle kEventTextInputOffsetToPos for no active input area case.
19918 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19919 (mac_handle_document_access_event)
19920 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19921 (install_application_handler) [MAC_OSX]: Register handlers for
19922 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19923 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19924 Register mac_handle_document_access_event.
19925
19926 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19927 Make functions non-static.
19928
19929 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19930
19931 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19932 (read_file_name_completion_ignore_case, insert_default_directory)
19933 (Qdefault_directory): Move to minibuffer.el.
19934 (Fread_file_name): Call the new `read-file-name' instead.
19935
19936 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19937
19938 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19939 Make function non-static.
19940 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19941 Remove function.
19942 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19943 Move to mactoolbox.c.
19944 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19945
19946 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
19947 (mac_rect_make): New macro.
19948
19949 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
19950 instead of float.
19951 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19952 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
19953 (XSetBackground) [USE_CG_DRAWING]: Likewise.
19954 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
19955 CGRectMake.
19956 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19957 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
19958 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
19959 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19960 instead of WindowRef in argument type.
19961 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
19962 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
19963 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
19964 instead of DISPLAY. All uses changed.
19965 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
19966 (x_calc_absolute_position): Simplify so as not to use
19967 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
19968
19969 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19970 instead of WindowRef in argument type.
19971 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
19972 [TARGET_API_MAC_CARBON]: Remove externs.
19973 (create_apple_event, mac_event_parameters_to_lisp)
19974 [TARGET_API_MAC_CARBON]: Add externs.
19975
19976 * mactoolbox.c (Vmac_ts_script_language_on_focus)
19977 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
19978 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
19979 is clicked.
19980 (x_activate_menubar): Remove extern for saved_menu_event_location.
19981 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19982 Move from mac.c.
19983
19984 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19985
19986 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
19987 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
19988
19989 2008-04-23 Jason Rumney <jasonr@gnu.org>
19990
19991 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
19992 attributes only for local files.
19993
19994 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
19995 default to Qlocal.
19996
19997 2008-04-22 Juri Linkov <juri@jurta.org>
19998
19999 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20000 read-buffer-to-switch instead of using the letter "B".
20001
20002 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20003
20004 * fileio.c (Qdefault_directory): New variable.
20005 (Fread_file_name): Use it to pass `dir' to the completion functions.
20006
20007 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
20008
20009 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20010
20011 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20012
20013 * keyboard.c (Vpre_help_message): Remove.
20014 (show_help_echo): Remove default C code.
20015
20016 * dired.c (directory_files_internal, file_name_completion):
20017 Only call ENCODE_FILE if the string is indeed decoded.
20018
20019 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20020
20021 * Makefile.in (TOOLKIT_DEFINES): Remove.
20022 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20023
20024 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20025
20026 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20027 (mactoolbox.o): New target.
20028
20029 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20030 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20031
20032 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20033 Use mac_set_frame_window_background instead of XSetWindowBackground.
20034 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20035 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20036 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20037 instead of SetWindowTitleWithCFString.
20038 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20039 Move function to mactoolbox.c.
20040 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20041 Use mac_set_window_modified instead of SetWindowModified.
20042 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20043 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20044 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20045 FrontNonFloatingWindow. Use mac_activate_window instead of
20046 ActivateWindow. Use mac_active_non_floating_window instead of
20047 ActiveNonFloatingWindow.
20048 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20049 Use mac_show_hourglass and mac_hide_hourglass.
20050 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20051 instead of GetGlobalMouse.
20052 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20053 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20054 Use mac_bring_window_to_front instead of BringToFront.
20055 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20056 mactoolbox.c.
20057 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20058 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20059 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20060 mactoolbox.c.
20061
20062 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20063 (XtPointer): Move typedef from macmenu.c.
20064 (enum button_type): Move enum from macmenu.c.
20065 (widget_value): Move typedef from macmenu.c.
20066 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20067 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20068 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20069 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20070 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20071 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20072 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20073 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20074 (Selection): Move typedef from macselect.c.
20075 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20076 macterm.c.
20077 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20078 (mac_is_window_collapsed, mac_bring_window_to_front)
20079 (mac_send_window_behind, mac_hide_window, mac_show_window)
20080 (mac_collapse_window, mac_front_non_floating_window)
20081 (mac_active_non_floating_window, mac_activate_window)
20082 (mac_move_window_structure, mac_move_window, mac_size_window)
20083 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20084
20085 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20086 (enum mac_menu_kind): Move enum to mactoolbox.c.
20087 (min_menu_id): Move variable to mactoolbox.c.
20088 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20089 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20090 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20091 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20092 [TARGET_API_MAC_CARBON]: Likewise.
20093 (XtPointer): Move typedef to macgui.h.
20094 (enum button_type): Move enum to macgui.h.
20095 (widget_value): Move typedef to macgui.h.
20096 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20097 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20098 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20099 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20100 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20101 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20102 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20103 (popup_activated_flag): Make variable non-static.
20104 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20105 (add_menu_item, fill_menu, dispose_menus):
20106 Move functions to mactoolbox.c.
20107 (restore_show_help_function, menu_target_item_handler)
20108 (install_menu_target_item_handler, mac_handle_dialog_event)
20109 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20110 [TARGET_API_MAC_CARBON]: Likewise.
20111 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20112 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20113 (find_and_call_menu_selection, name_is_separator): Make function
20114 non-static.
20115 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20116 to mactoolbox.c.
20117 (set_frame_menubar): Don't call install_menu_quit_handler.
20118 (menu_item_selection): New variable.
20119 (mac_menu_show): Use create_and_show_popup_menu.
20120 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20121 selection but set variable menu_item_selection. All uses changed.
20122 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20123 Call install_menu_quit_handler. Move to mactoolbox.c.
20124
20125 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20126 (Selection): Move typedef to macgui.h.
20127 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20128 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20129 Make variables non-static.
20130 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20131 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20132 Make functions non-static.
20133 (Vmac_service_selection) [MAC_OSX]: Likewise.
20134 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20135 (mac_valid_selection_target_p, mac_clear_selection)
20136 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20137 (mac_put_selection_value, mac_selection_has_target_p)
20138 (mac_get_selection_value, mac_get_selection_target_list)
20139 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20140 Move functions to mactoolbox.c.
20141 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20142 Likewise.
20143 (copy_scrap_flavor_data, mac_handle_service_event)
20144 (install_service_handler) [MAC_OSX]: Likewise.
20145 (syms_of_macselect) <Vmac_dnd_known_types>:
20146 Use mac_dnd_default_known_types.
20147
20148 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20149 Move to mactoolbox.c.
20150 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20151 (Fx_selection_owner_p): Add EXFUN.
20152 (install_window_handler, remove_window_handler, XSetWindowBackground):
20153 Remove externs.
20154 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20155 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20156 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20157 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20158 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20159 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20160 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20161 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20162 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20163 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20164 (mac_valid_selection_target_p, mac_clear_selection)
20165 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20166 (mac_put_selection_value, mac_selection_has_target_p)
20167 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20168 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20169 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20170 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20171 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20172 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20173 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20174 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20175 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20176
20177 * mactoolbox.c: New file.
20178
20179 2008-04-18 Jason Rumney <jasonr@gnu.org>
20180
20181 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20182
20183 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20184
20185 * character.c (Fmultibyte_char_to_unibyte):
20186 Return latin1 chars unchanged.
20187
20188 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20189 relocated if it points to `name'.
20190
20191 2008-04-17 Kenichi Handa <handa@m17n.org>
20192
20193 * data.c (Faset): Allow setting a multibyte character in an
20194 ASCII-only unibyte string.
20195
20196 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20197
20198 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20199
20200 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20201 done in config.h.
20202
20203 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
20204
20205 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20206 (Fchar_direction): Add usage in the docstring.
20207
20208 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
20209
20210 * keyboard.c (read_key_sequence): Remove always-true checks.
20211
20212 2008-04-14 Jason Rumney <jasonr@gnu.org>
20213
20214 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20215 compatibility struct, for better underline positioning.
20216
20217 2008-04-13 David Hansen <david.hansen@gmx.net>
20218
20219 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20220 string.
20221
20222 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20223
20224 * m/hp800.h (XUINT, XSET): Remove.
20225
20226 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
20227
20228 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20229 previous change.
20230
20231 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20232
20233 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20234 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20235
20236 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20237
20238 * keymap.h (map_keymap_canonical): Declare.
20239 * xmenu.c (single_keymap_panes): Use it.
20240
20241 2008-04-11 Glenn Morris <rgm@gnu.org>
20242
20243 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20244 set the target's value to that of the alias.
20245
20246 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20247
20248 * term.c (set_tty_color_mode): Left over typo.
20249
20250 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
20251
20252 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20253 only after check for file name handler functions. Signal, when
20254 native functionality is not supported.
20255 (syms_of_fileio): Declare it unconditionally.
20256
20257 2008-04-10 Jason Rumney <jasonr@gnu.org>
20258
20259 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20260 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20261
20262 * w32.c (logon_network_drive): Also logon to remote drives that
20263 are mapped to drive letters.
20264
20265 2008-04-10 Glenn Morris <rgm@gnu.org>
20266
20267 * xdisp.c (truncate-partial-width-windows): Doc fix.
20268
20269 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20270
20271 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20272 Move functions to minibuffer.el.
20273 (syms_of_fileio): Don't declare them.
20274
20275 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20276
20277 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20278 (syms_of_minibuf): Remove its initialization.
20279
20280 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20281
20282 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
20283
20284 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20285
20286 2008-04-09 Jason Rumney <jasonr@gnu.org>
20287
20288 * makefile.w32-in (distclean): Delete makefile too.
20289 (maintainer-clean): New target.
20290
20291 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20292
20293 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20294 for new font backend and composite cases.
20295
20296 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20297
20298 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20299 Most of the code moved to run_timers.
20300 (do_pending_atimers): Call run_timers.
20301 (run_timers): New function.
20302
20303 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20304 run atimers.
20305
20306 * process.c (wait_reading_process_output): The same as above.
20307
20308 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20309
20310 * minibuf.c (last_exact_completion): Remove variable.
20311 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20312 (complete_and_exit_1, complete_and_exit_2)
20313 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20314 (Fdisplay_completion_list, display_completion_list_1)
20315 (Fminibuffer_completion_help, Fself_insert_and_exit)
20316 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20317 minibuffer.el.
20318 (syms_of_minibuf): Remove corresponding initializations.
20319
20320 * keyboard.c (Qdeactivate_mark): New var.
20321 (command_loop_1): Use it to call `deactivate-mark'.
20322 (syms_of_keyboard): Initialize it.
20323
20324 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20325 to another frame.
20326 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20327 Don't call set_tty_color_mode.
20328 (store_frame_param): Reset previous_frame rather than call
20329 set_tty_color_mode.
20330 * term.c (set_tty_color_mode): Rewrite.
20331 * dispextern.h (set_tty_color_mode): New type.
20332 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20333
20334 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20335
20336 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20337 for generic chars, which do not exist any more in emacs-unicode.
20338
20339 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
20340
20341 * coding.c (detect_coding_emacs_mule)
20342 (Ffind_operation_coding_system): Fix typo.
20343
20344 2008-04-08 Jason Rumney <jasonr@gnu.org>
20345
20346 * w32uniscribe.c (SNAME): Extract only symbol name.
20347
20348 * w32font.h (struct w32_metric_cache): New struct.
20349 (w32font_info): Use it.
20350 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20351 (CACHE_BLOCKSIZE): New constants.
20352
20353 * w32font.c (Qja, Qko, Qzh): New symbols.
20354 (syms_of_w32font): Initialise them.
20355 (font_matches_spec): Use them to filter by language.
20356 (recompute_cached_metrics): Remove function.
20357 (compute_metrics, clear_cached_metrics): New functions.
20358 (w32font_encode_char): Use them to manage metric cache.
20359 (w32font_text_extents): Cache metrics for all glyphs on demand.
20360 Delay converting glyph indices to WORD until needed.
20361 (w32font_open_internal): Initialize metric cache to empty.
20362 (registry_to_w32_charset): Charset should always be a symbol.
20363 (fill_in_logfont, list_all_matching_fonts): Family should
20364 always be a symbol.
20365
20366 2008-04-06 Jason Rumney <jasonr@gnu.org>
20367
20368 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20369 Give up if glyph indices not supported. Use uniscribe obtained
20370 ABC widths for individual metrics. Map glyph clusters back to
20371 characters using fClusterStart flag. Return number of glyphs
20372 produced, not chars processed.
20373 (uniscribe_shape): Map char at FROM to current glyph.
20374
20375 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20376
20377 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20378 Use SetMenuItemHierarchicalMenu.
20379
20380 2008-04-05 Jason Rumney <jasonr@gnu.org>
20381
20382 * image.c (pbm_load): Allow color values up to 65535.
20383 Throw an error if max_color_idx is outside the supported range.
20384 Report an error when image size is invalid.
20385 Read two bytes at a time when raw images have max_color_idx above 255.
20386
20387 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20388
20389 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20390 append "CCL: Quitted" when the CCL program is quitted.
20391 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20392
20393 * ccl.h (struct ccl_program): New member quit_silently.
20394
20395 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
20396
20397 * search.c (compile_pattern_1): Treat non-nil and non-string of
20398 search-spaces-regexp as nil.
20399
20400 * minibuf.c (Fassoc_string): Tweak docstring.
20401
20402 2008-04-05 Eli Zaretskii <eliz@gnu.org>
20403
20404 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20405 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20406 2008-03-14 to force inode be positive.
20407
20408 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20409 _S_* ones, since we now use our own sys/stat.h.
20410 (stat, fstat): Don't mangle the inode number.
20411 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20412
20413 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20414
20415 * frame.h (struct frame): Give one more bit to `visible' since we use
20416 values larger than 1 to indicate obscured frames on ttys.
20417
20418 * keymap.c (Qkeymap_canonicalize): New var.
20419 (Fmap_keymap_internal): New fun.
20420 (describe_map): Use keymap-canonicalize.
20421
20422 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20423 (Fundo_boundary): Set them.
20424 (syms_of_undo): Initialize them.
20425 (record_point): Use them instead of last_point_position*.
20426 (last_undo_buffer): Change type.
20427
20428 2008-04-04 Jason Rumney <jasonr@gnu.org>
20429
20430 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20431 (recompute_cached_metrics): Don't set ascent and descent per char.
20432
20433 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20434 (uniscribe_check_otf): Add GC protection before consing.
20435 Rearrange loop for counting features.
20436
20437 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20438
20439 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20440 buffer with byte-size of source buffer.
20441
20442 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
20443
20444 * callint.c (Fcall_interactively): Handle temporary region even
20445 when shift-select-mode is off.
20446
20447 2008-04-03 Jason Rumney <jasonr@gnu.org>
20448
20449 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20450
20451 2008-04-03 Kenichi Handa <handa@m17n.org>
20452
20453 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20454 (CATEGORY_MASK_UTF_16): Likewise.
20455 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20456 binary file.
20457 (detect_coding): Add null-byte detection for a binary file.
20458 (detect_coding_system): Likewise.
20459
20460 2008-04-03 Jason Rumney <jasonr@gnu.org>
20461
20462 * w32uniscribe.c: New file.
20463
20464 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20465
20466 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20467
20468 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20469 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20470 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20471 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20472 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20473 (Qphonetic): New symbols.
20474 (syms_of_w32font): Initialize them.
20475 (font_supported_scripts): Use them.
20476 (w32font_list_family): List all charsets.
20477 (w32font_text_extents, recompute_cached_metrics): Fix metric
20478 calculations.
20479 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20480 Give opentype fonts their own format.
20481 (font_matches_spec): New arguments backend and logfont.
20482 Handle :otf spec for uniscribe backend.
20483 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20484 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20485
20486 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20487 font backend.
20488 (globals_of_w32fns): Initialize uniscribe font backend.
20489
20490 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20491 dependencies.
20492 (w32uniscribe.$(O)): New file to build.
20493 (FONT_OBJ): Include w32uniscribe.$(O).
20494 (LIBS): Add uniscribe libraries.
20495
20496 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20497
20498 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
20499
20500 * callint.c (Vshift_select_mode): New var.
20501 (Finteractive): Document new ^ spec.
20502 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20503 is present.
20504
20505 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20506 (command_loop_1): Avoid running the direct display versions of
20507 forward-char and backward-char if shift-selection may occur.
20508 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20509 shift-translation takes place.
20510
20511 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20512 avoid clobbering by define-minor-mode.
20513
20514 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20515 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20516
20517 * syntax.c (Fforward_word): Add ^ interactive spec.
20518
20519 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20520 (Fscroll_right): Add ^ interactive spec.
20521
20522 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20523
20524 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20525
20526 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20527
20528 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20529
20530 2008-03-31 Juri Linkov <juri@jurta.org>
20531
20532 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20533
20534 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20535
20536 * gtkutil.c (xg_set_geometry): Fix indentation.
20537 (xg_resize_outer_widget): Remove.
20538 (x_wm_size_hint_off): Fix indentation.
20539 (xg_frame_set_char_size): Call flush_and_sync after
20540 gtk_window_resize.
20541 (x_wm_set_size_hint): Pass NULL as geometry window to
20542 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20543 Add menu bar and tool bar height to base height.
20544 (xg_update_frame_menubar, free_frame_menubar)
20545 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20546 (update_frame_tool_bar, free_frame_tool_bar):
20547 Change xg_resize_outer_widget to xg_frame_set_char_size.
20548
20549 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
20550
20551 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20552 (Fdbus_call_method): New parameter TIMEOUT.
20553 (dbus-send-signal): Optimize UNGCPRO call.
20554
20555 2008-03-29 Juri Linkov <juri@jurta.org>
20556
20557 * window.c (Fdisplay_buffer): Move call to
20558 Vsplit_window_preferred_function out of conditions that check
20559 if window is eligible for vertical splitting.
20560 When Vsplit_window_preferred_function is non-nil, call it and use
20561 its non-nil return value as window. Otherwise, continue doing
20562 vertical splitting using Fsplit_window with arg horflag=nil.
20563 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20564 default value from `split-window' to nil.
20565
20566 2008-03-29 Juri Linkov <juri@jurta.org>
20567
20568 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20569 for interactive code letters 'b' and 'B'.
20570
20571 2008-03-29 Eli Zaretskii <eliz@gnu.org>
20572
20573 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20574 multibyte string.
20575
20576 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20577
20578 * keyboard.c (pending_funcalls): New var.
20579 (timer_check): Run it.
20580 (syms_of_keyboard): Initialize it.
20581 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20582 (Vdelete_terminal_functions): New vars.
20583 (syms_of_terminal): Initialize them.
20584 (Fdelete_terminal): Run delete-terminal-functions.
20585 * xdisp.c (safe_eval): Rewrite.
20586 (safe_call2): New fun.
20587 * frame.c (Qdelete_frame_functions): New var.
20588 (syms_of_frame): Initialize it.
20589 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20590 * lisp.h (safe_call2, pending_funcalls): Declare.
20591
20592 2008-03-28 Andreas Schwab <schwab@suse.de>
20593
20594 * indent.c (Fmove_to_column): Move declaration before statements.
20595
20596 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20597
20598 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20599 (struct frame): Use bit fields for boolean vars.
20600
20601 * process.c (server_accept_connection): Simplify naming.
20602 (emacs_get_tty_pgrp): Use SDATA.
20603
20604 * coding.c (decode_coding_object): Fix last change.
20605
20606 2008-03-27 Jason Rumney <jasonr@gnu.org>
20607
20608 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20609
20610 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20611
20612 * charset.c (Fdefine_charset_internal): Change the way of
20613 registering charsets in Vcharset_order_list.
20614 (syms_of_charset): Make the charset `eight-bit' supplementary.
20615
20616 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20617
20618 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20619 operations, to avoid having the difference between pointers
20620 overflow.
20621
20622 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20623
20624 * indent.c (check_display_width): New fun.
20625 (scan_for_column): Use it.
20626
20627 * data.c (syms_of_data): Mark most-positive-fixnum and
20628 most-negative-fixnum as constants.
20629
20630 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20631
20632 * indent.c (scan_for_column): Extract from current_column_1.
20633 Merge with the same code from Fmove_to_column.
20634 (current_column_1, Fmove_to_column): Use it.
20635
20636 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20637
20638 * keymap.c (map_keymap_internal): New fun.
20639 (map_keymap): Use it.
20640 (Fmap_keymap_internal): New fun.
20641 (Fmap_keymap): Remove left-out test from before make_save_value.
20642
20643 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20644
20645 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20646 Use XCAR/XCDR.
20647
20648 * process.h (struct Lisp_Process): Remove filter_multibyte.
20649 * process.c (QCfilter_multibyte): Remove.
20650 (setup_process_coding_systems): Don't use filter_multibyte.
20651 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20652 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20653 (Fset_process_filter_multibyte): Change the coding-system to
20654 approximate the previous behavior.
20655 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20656 coding-system.
20657
20658 * coding.c (decode_coding_object): When not decoding into a buffer,
20659 obey the coding system's preference of (uni|multi)byte.
20660
20661 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20662
20663 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20664 every char is changed and has a different byte-length.
20665 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20666 Fix int -> EMACS_INT.
20667
20668 2008-03-23 David Hansen <david.hansen@gmx.net>
20669
20670 * dbusbind.c (xd_read_message): Remove extra copying of message
20671 strings. Check for NULL `interface' or `member'.
20672
20673 2008-03-22 Eli Zaretskii <eliz@gnu.org>
20674
20675 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20676 cFileName a file name that includes `?' characters, use the 8+3
20677 alias in cAlternateFileName instead.
20678
20679 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20680
20681 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20682
20683 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20684
20685 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20686 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20687 work on current_buffer only instead (that was already the case
20688 for some of the code anyway).
20689 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20690 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20691 (SET_PT, SET_PT_BOTH): Adjust.
20692 * intervals.h (set_point, temp_set_point, set_point_both)
20693 (temp_set_point_both): Remove redundant declarations.
20694
20695 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20696
20697 * fileio.c (Finsert_file_contents):
20698 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20699 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20700 when buffer != current_buffer anyway.
20701
20702 2008-03-20 Andreas Schwab <schwab@suse.de>
20703
20704 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20705 as default.
20706
20707 2008-03-19 Jason Rumney <jasonr@gnu.org>
20708
20709 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20710 (syms_of_w32fns): Initialize them.
20711 (HOURGLASS_ID): New constant.
20712 (x_window_to_frame): Don't check hourglass_window.
20713 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20714 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20715 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20716 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20717 Only change the cursor if hourglass is not active.
20718 (Fx_create_frame): Initialize frame's current_cursor.
20719 (hourglass_atimer): Remove.
20720 (hourglass_started): New function.
20721 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20722 (show_hourglass): Adapt to w32, changing argument to frame.
20723
20724 * w32term.h (struct w32_output): Remove hourglass_window.
20725 Add current_cursor.
20726
20727 * eval.c (call_debugger, Fsignal):
20728 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20729 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20730 (Fexecute_extended_command, cancel_hourglass_unwind):
20731 * minibuf.c (read_minibuf):
20732 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20733
20734 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20735
20736 * window.c (run_funs): New fun.
20737 (run_window_configuration_change_hook): Use it to run the buffer-local
20738 and the global part of the hook.
20739
20740 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20741 (unwind_format_mode_line): Restore selected window.
20742 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20743
20744 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20745
20746 * editfns.c (Fchar_equal): Check they are valid characters.
20747
20748 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20749
20750 2008-03-17 Andreas Schwab <schwab@suse.de>
20751
20752 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20753 against a charset.
20754
20755 * lisp.h (Fbuffer_list): Declare.
20756
20757 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
20758
20759 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20760 handlebox_widget is != 0.
20761
20762 2008-03-16 Juri Linkov <juri@jurta.org>
20763
20764 * callint.c (Fcall_interactively): For interactive code letters
20765 'b' and 'B' put the buffer list into the list of default "future"
20766 values of the minibuffer.
20767
20768 2008-03-16 Andreas Schwab <schwab@suse.de>
20769
20770 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20771 modifiers.
20772
20773 * regex.c (re_match_2_internal): Correct matching of a charset
20774 against latin-1 characters.
20775
20776 2008-03-16 Kenichi Handa <handa@m17n.org>
20777
20778 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20779 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20780 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20781 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20782 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20783 CHAR_STRING_ADVANCE.
20784 (produce_chars): Fix for the case that the source and the
20785 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20786 instead of CHAR_STRING_ADVANCE.
20787 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20788 STRING_CHAR_ADVANCE.
20789
20790 2008-03-15 Andreas Schwab <schwab@suse.de>
20791
20792 * regex.c (re_match_2_internal): Correct matching of eight bit
20793 characters in unibyte strings.
20794
20795 2008-03-15 Martin Rudalics <rudalics@gmx.at>
20796
20797 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20798 at end of range when it coincides with the end of the buffer.
20799
20800 2008-03-14 Eli Zaretskii <eliz@gnu.org>
20801
20802 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20803
20804 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20805
20806 2008-03-14 Jason Rumney <jasonr@gnu.org>
20807
20808 * editfns.c (initial_tz): New variable.
20809 (syms_of_editfns): Initialize it.
20810 (Fset_time_zone_rule): Set it when first called.
20811 Use it when TZSTRING is nil.
20812
20813 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20814 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20815 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20816 (globals_of_w32fns): Initialize them.
20817 (compute_tip_xy): Use them to position tooltips.
20818
20819 2008-03-14 Glenn Morris <rgm@gnu.org>
20820
20821 * emacs.c (main): Revert previous change.
20822 (standard_args): Revert -internal-script back to -scriptload,
20823 and remove the long-option form.
20824
20825 2008-03-13 Glenn Morris <rgm@gnu.org>
20826
20827 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20828 Remove option -enable-font-backend.
20829
20830 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20831
20832 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20833
20834 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20835
20836 * xterm.c (x_connection_closed): For GTK: If this is the last
20837 terminal just exit without closing the display.
20838
20839 2008-03-11 Jason Rumney <jasonr@gnu.org>
20840
20841 * w32font.c (w32font_full_name): Use floor to round.
20842
20843 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20844
20845 * sound.c (alsa_configure): Declare vol at beginning of block.
20846
20847 * fontset.c (Ffontset_info): Remove extra semicolon.
20848
20849 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20850
20851 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20852 size of resulting string.
20853
20854 2008-03-10 Jason Rumney <jasonr@gnu.org>
20855
20856 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20857
20858 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20859
20860 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20861 Don't pretend as if characters with display property haven't been
20862 consumed for string-replacing-string case.
20863
20864 2008-03-08 Kim F. Storm <storm@cua.dk>
20865
20866 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20867 (get_next_display_element, next_element_from_string)
20868 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20869
20870 2008-03-08 Andreas Schwab <schwab@suse.de>
20871
20872 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20873
20874 2008-03-06 Jason Rumney <jasonr@gnu.org>
20875
20876 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20877 when charset not specified. Only translate ANSI to unicode when
20878 font_type is truetype.
20879 (w32font_coverage_ok): New function.
20880 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20881
20882 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20883
20884 * lread.c (Fread_char): Resolve modifiers.
20885 (Fread_char_exclusive): Likewise.
20886
20887 * character.c (char_resolve_modifier_mask): New function.
20888 (char_string): Use char_resolve_modifier_mask.
20889 (Fchar_resolve_modifiers): New function.
20890 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20891 function.
20892
20893 2008-03-04 Jason Rumney <jasonr@gnu.org>
20894
20895 * makefile.w32-in: Always include w32font.c in the build.
20896 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20897
20898 2008-03-04 Andreas Schwab <schwab@suse.de>
20899
20900 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20901 (versionclean): Likewise.
20902
20903 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
20904
20905 * .cvsignore: Add oo.
20906
20907 2008-03-03 Andreas Schwab <schwab@suse.de>
20908
20909 * coding.c (decode_coding_object): Inhibit gap shrinking while
20910 decoding in place.
20911
20912 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20913
20914 * w32term.c: Remove unused include "gnu.h".
20915 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20916
20917 * gnu.h: Rename to ...
20918 * emacs-icon.h: ... this.
20919 * xterm.c: Use emacs-icon.h instead of gnu.h.
20920 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20921
20922 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
20923
20924 * w32font.c: Include math.h.
20925
20926 2008-03-03 Jason Rumney <jasonr@gnu.org>
20927
20928 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20929 Compute options separately.
20930 (w32font_open_internal): Set glyph_idx before caching metrics.
20931
20932 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20933 Define if system headers don't.
20934 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20935 (w32font_encode_char): Don't declare here.
20936
20937 * w32font.c (Quniscribe, QCformat): New symbols.
20938 (syms_of_w32font): Define them.
20939 (w32font_has_char): Indicate uncertainty.
20940 (w32font_encode_char): Encode as glyph point. Make static.
20941 (recompute_cached_metrics): New function.
20942 (w32font_open_internal): Use it. Set font to use glyph points
20943 initially. Set format based on type of font.
20944 (w32font_text_extents, w32font_draw): Optionally use glyph points.
20945 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
20946 on it. Set format based on information available here.
20947 (add_font_entity_to_list): Identify backend based on opentype_only.
20948
20949 2008-03-02 Andreas Schwab <schwab@suse.de>
20950
20951 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
20952
20953 * coding.c (decode_coding_big5, produce_chars):
20954 Fix typos in last change.
20955
20956 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
20957
20958 * gnu.h: New icon.
20959
20960 2008-03-02 Kenichi Handa <handa@m17n.org>
20961
20962 * coding.c (decode_coding_utf_8): When eol-type of CODING is
20963 `dos', don't decode '\r' if that is the last in the source.
20964 (decode_coding_utf_16, decode_coding_emacs_mule)
20965 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20966 (decode_coding_raw_text, decode_coding_charset): Likewise.
20967 (produce_chars): Don't decode EOL here. Use EMACS_INT.
20968
20969 2008-03-01 Jason Rumney <jasonr@gnu.org>
20970
20971 * w32font.c (w32font_full_name): Report point size for scalable fonts.
20972
20973 2008-03-01 Kim F. Storm <storm@cua.dk>
20974
20975 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
20976
20977 2008-03-01 Jason Rumney <jasonr@gnu.org>
20978
20979 * w32font.c (w32font_full_name): New function.
20980 (w32font_open_internal): Use it.
20981
20982 2008-03-01 Kim F. Storm <storm@cua.dk>
20983
20984 * dispnew.c (line_draw_cost): Fix invalid glyph check.
20985
20986 2008-03-01 Jason Rumney <jasonr@gnu.org>
20987
20988 * font.c (font_unparse_fcname): Increase len when style is a symbol.
20989
20990 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
20991
20992 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
20993 xg_frame_resized when the event is for the edit widget.
20994
20995 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
20996
20997 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
20998 set_char_size.
20999 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
21000 operations on widgets here. Just set frame size if needed.
21001 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21002 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21003 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21004 the whole frame.
21005 (xg_create_tool_bar): Move attachment of the tool bar to
21006 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21007 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21008
21009 2008-03-01 Jason Rumney <jasonr@gnu.org>
21010
21011 * w32fns.c (w32_msg_pump): Disable debug code.
21012
21013 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21014
21015 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21016
21017 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21018
21019 * xdisp.c (next_overlay_string): Don't set
21020 overlay_strings_at_end_processed_p if we're currently reading from
21021 a display string.
21022
21023 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21024
21025 * xdisp.c (get_overlay_strings_1): Fix typo.
21026
21027 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21028
21029 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21030
21031 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21032
21033 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21034
21035 * xdisp.c (display_mode_element): Cancel the previous change.
21036 (decode_mode_spec): Likewise.
21037 (handle_auto_composed_prop): Don't make composition if it->string
21038 is a string.
21039
21040 2008-02-27 Kim F. Storm <storm@cua.dk>
21041
21042 * lisp.h (GLYPH): Change type from int to struct with separate char
21043 and face_id members.
21044 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21045 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21046 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21047 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21048 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21049 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21050 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21051 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21052 handle new Lisp glyph code encoding, either an integer or a cons.
21053
21054 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21055 (GLYPH_ALIAS): Delete.
21056 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21057 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21058 (GLYPH_FROM_CHAR): Replace macro by ...
21059 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21060
21061 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21062 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21063 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21064 (GLYPH_INVALID_P): New macro.
21065 (spec_glyph_lookup_face): Update prototype.
21066
21067 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21068 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21069 new glyph code encoding.
21070 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21071 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21072
21073 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21074 Adapt to new glyph type and new glyph code encoding.
21075
21076 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21077
21078 * indent.c (current_column, current_column_1, Fmove_to_column)
21079 (compute_motion): Adapt to new glyph code encoding.
21080
21081 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21082
21083 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
21084
21085 * process.c (wait_reading_process_output): Check for window
21086 changes caused by timers.
21087 Suggested by Johan Bockgård.
21088
21089 2008-02-27 Glenn Morris <rgm@gnu.org>
21090
21091 * emacs.c (USAGE1): Add `--disable-font-backend'.
21092
21093 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21094
21095 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21096 is made to the buffer.
21097
21098 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21099
21100 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21101 (face_at_string_position):
21102 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21103 (face_at_string_position):
21104 * xdisp.c (display_string, next_overlay_change):
21105 * buffer.h (overlays_at):
21106 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21107 Update callers.
21108
21109 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
21110
21111 * editfns.c (Fformat): Doc fix.
21112
21113 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
21114
21115 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21116 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21117 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21118
21119 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21120
21121 * buffer.c (Fbuffer_swap_text): New function.
21122 (syms_of_buffer): Defsubr it.
21123
21124 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
21125
21126 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21127
21128 2008-02-25 Jason Rumney <jasonr@gnu.org>
21129
21130 * w32font.c (w32font_draw): Draw one character at a time when padding.
21131
21132 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21133
21134 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21135 Handle a nil arg. Use run_window_configuration_change_hook.
21136 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21137 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21138 Use run_window_configuration_change_hook.
21139
21140 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21141
21142 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21143 1-pixel width.
21144
21145 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21146
21147 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21148 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21149 if the glyph in the font is zero pixel with.
21150
21151 * dispextern.h (struct glyph_string): New member padding_p.
21152
21153 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21154
21155 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21156
21157 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21158
21159 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21160
21161 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21162
21163 2008-02-25 Jason Rumney <jasonr@gnu.org>
21164
21165 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21166
21167 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21168
21169 Allow fine-grained image-cache flushing.
21170 * dispextern.h (struct image): Add `dependencies' field.
21171 (clear_image_caches): Change arg to Lisp_Object.
21172 * image.c (make_image): Initialize `dependencies' field.
21173 (clear_image_cache): Change arg to allow fine-grained flushing.
21174 Perform the flush even if image-cache-eviction-delay is nil.
21175 (clear_image_caches): Change arg to Lisp_Object.
21176 (Fclear_image_cache): Expand meaning of the argument.
21177 (mark_image): Mark `dependencies' field.
21178 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21179 (lface_hash): Use XHASH rather than XFASTINT.
21180 (face_at_buffer_position): Fix int -> EMACS_INT position.
21181 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21182 (select_frame_for_redisplay): Remove code duplication.
21183 (redisplay_internal): Adapt arg to call to clear_image_caches.
21184
21185 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21186
21187 * s/vms4-0.h:
21188 * s/vms4-2.h:
21189 * s/vms4-4.h:
21190 * s/vms5-5.h: Remove, unused.
21191
21192 * s/irix5-2.h:
21193 * s/irix6-0.h:
21194 * s/riscos5.h:
21195 * s/mach-bsd4-3.h:
21196 * m/mips4.h: Remove files for obsolete systems.
21197
21198 * Makefile.in:
21199 * filelock.c:
21200 * unexmips.c:
21201 * m/hp9000s300.h:
21202 * m/iris4d.h:
21203 * s/aix3-1.h:
21204 * s/hpux.h:
21205 * s/msdos.h:
21206 * s/usg5-0.h:
21207 * s/usg5-2-2.h:
21208 * s/usg5-2.h:
21209 * s/usg5-3.h: Remove references to obsolete variables.
21210
21211 * s/irix5-0.h: Remove, move all the contents ...
21212 * s/irix6-5.h: ... here. Simplify.
21213 * config.in: Regenerate.
21214
21215 2008-02-24 Jason Rumney <jasonr@gnu.org>
21216
21217 * w32term.c (x_draw_glyph_string_background): Clear the background
21218 manually when cleartype is in use.
21219 (x_draw_glyph_string_foreground): Draw text transparently when
21220 cleartype is in use.
21221
21222 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21223 a font into it unless we have to.
21224
21225 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21226
21227 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21228 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
21229
21230 2008-02-18 Jason Rumney <jasonr@gnu.org>
21231
21232 * w32fns.c (Fw32_shell_execute): Encode parameters.
21233
21234 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21235
21236 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21237
21238 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
21239
21240 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21241
21242 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21243
21244 * xterm.c (x_set_offset): Don't change the gravity if
21245 CHANGE_GRAVITY is -1.
21246
21247 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
21248
21249 * fileio.c (auto_save_error_occurred): New var.
21250 (auto_save_error): Set it.
21251 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21252 error occurred.
21253
21254 2008-02-23 Eli Zaretskii <eliz@gnu.org>
21255
21256 * w32.c (globals_of_w32): Add initializations for
21257 g_b_init_get_sid_sub_authority and
21258 g_b_init_get_sid_sub_authority_count.
21259
21260 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21261
21262 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21263 (font_parse_xlfd): Use them for sanity check.
21264 (Finternal_set_font_style_table): Make sure the table is bijective.
21265
21266 Consolidate the image_cache to the terminal struct.
21267 * termhooks.h (P_): Remove redundant def.
21268 (struct terminal): New field `image_cache'.
21269 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21270 of FRAME_X_IMAGE_CACHE.
21271 * xterm.h (struct x_display_info): Remove image_cache field.
21272 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21273 * w32term.h (struct w32_display_info): Remove image_cache field.
21274 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21275 * macterm.h (struct mac_display_info): Remove image_cache field.
21276 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21277 * xterm.c (x_term_init):
21278 * w32term.c (w32_term_init):
21279 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21280 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21281 Remove declarations.
21282 (clear_image_caches, mark_image_cache): New declarations.
21283 * xfaces.c (clear_face_cache):
21284 * xdisp.c (redisplay_internal): Use clear_image_caches.
21285 * image.c (clear_image_cache): Don't check that a frame is on
21286 a window-system before checking if it shares the same cache.
21287 (clear_image_caches): New function.
21288 (Fclear_image_cache): Use it.
21289 (mark_image): Move from allo.c.
21290 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21291 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21292 (mark_object): Don't call mark_image_cache for frames.
21293 (mark_terminals): Call mark_image_cache.
21294
21295 * lisp.h (Fdelete_terminal): Declare.
21296
21297 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21298 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21299 wrong_type_argument.
21300
21301 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21302
21303 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21304 malayalam.el, and tamil.el. Add sinhala.el.
21305
21306 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21307
21308 * xterm.c (x_connection_closed): Consolidate identical tests.
21309 (x_delete_terminal): Don't crash if called via x_connection_closed.
21310
21311 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21312
21313 * xdisp.c (decode_mode_spec): New arg string.
21314 (display_mode_element): Adjust for the above change.
21315
21316 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21317
21318 * callint.c (Fcall_interactively): Use AREF.
21319
21320 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21321
21322 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21323
21324 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21325
21326 * xfns.c (Fx_show_tip): Set string to " " if empty.
21327
21328 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21329
21330 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21331 with Qt.
21332
21333 2008-02-17 Kenichi Handa <handa@m17n.org>
21334
21335 * ftfont.c (ftfont_shape): Return Lispy number.
21336
21337 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21338 for GCs.
21339 (Finternal_set_font_selection_order): Call font_update_sort_order
21340 only when enable_font_backend is set.
21341 (realize_x_face): Set face->font_info to that of default face only
21342 when enable_font_backend is set.
21343
21344 * xdisp.c (handle_composition_prop): Set it->c to the fist
21345 character of the composed region.
21346 (fill_composite_glyph_string): Set base_face->font_info to
21347 s->font_info. Get a face for ascii from base_face->ascii_face.
21348 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21349 with a face already decided.
21350 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21351 non-negative.
21352 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21353 call font_prepare_composition unconditionally.
21354
21355 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21356
21357 * xterm.h (struct x_display_info): New member font.
21358
21359 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21360 (x_set_mouse_face_gc, x_new_font): Likewise.
21361 (x_term_init): Setup display_info->font.
21362 (x_delete_terminal): Free display_info->font.
21363
21364 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21365
21366 * ftxfont.c (ftxfont_default_fid): Delete it.
21367 (ftxfont_open): Set xfont->fid to 0.
21368 (ftxfont_end_for_frame): Clear data specific to the frame and the
21369 font-driver.
21370
21371 * xftfont.c (xftfont_default_fid): Delete it.
21372 (xftfont_open): Set xfont->fid to 0.
21373
21374 * fontset.c (FONTSET_OBJLIST): New macro.
21375 (fontset_find_font): Update font-object list of the fontset.
21376 (free_realized_fontset): New function.
21377 (free_face_fontset): Call free_realized_fontset.
21378 (Ffont_info): Call font_close_object only when enable_font_backend
21379 is set.
21380
21381 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21382 [HAVE_NTGUI]: Include w32term.h.
21383 [MAC_OS]: Include macterm.ch.
21384 (font_otf_ValueRecord): Use make_number.
21385 (font_finish_cache): Fix handling of reference count.
21386 (font_clear_cache): Update num_fonts.
21387 (font_open_entity): Update smallest_char_width and
21388 smallest_font_height of the frame.
21389 (font_close_object): Update num_fonts.
21390 (Fclear_font_cache): Fix finding the target cache data.
21391
21392 2008-02-16 Glenn Morris <rgm@gnu.org>
21393
21394 * fontset.c (Finternal_char_font): Fix compilation warning.
21395
21396 2008-02-16 Eli Zaretskii <eliz@gnu.org>
21397
21398 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21399 instead of char arrays. Enlarge the size of array passed to
21400 get_token_information.
21401
21402 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21403 warnings.
21404
21405 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21406
21407 * .gdbinit: Don't set `args', it breaks gdb --args.
21408
21409 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21410
21411 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21412 within a narrowed buffer.
21413
21414 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21415
21416 * coding.c (decode_coding_object, encode_coding_object):
21417 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21418
21419 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21420
21421 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21422 hardcoding 1.
21423 (detect_coding_system):
21424 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21425 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21426 * insdel.c (insert_from_gap):
21427 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21428 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21429 (string_to_multibyte):
21430 * character.c (chars_in_text, multibyte_chars_in_text):
21431 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21432
21433 * character.h (FETCH_STRING_CHAR_ADVANCE)
21434 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21435 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21436 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21437
21438 * casefiddle.c (casify_region): Only call after-change and composition
21439 functions on the part of the region that was changed.
21440
21441 * keyboard.c (read_avail_input):
21442 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21443
21444 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21445
21446 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21447 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21448
21449 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
21450
21451 * w32menu.c (push_submenu_start, push_submenu_end)
21452 (push_left_right_boundary, push_menu_pane, push_menu_item):
21453 * keyboard.c (read_key_sequence): Don't pass args with side effects
21454 to AREF, it fails when compiling with -DENABLE_CHECKING.
21455
21456 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21457
21458 * Makefile.in (${lispsource}international/charprop.el):
21459 Delete this target.
21460
21461 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21462 emacs-unicode-2.
21463
21464 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21465
21466 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21467
21468 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21469
21470 * frame.c (Qnoelisp): New symbol.
21471 (syms_of_frame): Initialize it.
21472 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21473 harmless Elisp code, from a strong `force' from x_connection_closed.
21474 * frame.h (Qnoelisp): Declare.
21475 * xterm.c (x_connection_closed): Pass `noelisp'.
21476
21477 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21478 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21479 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21480 rather than `int' for the type of `type'.
21481
21482 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21483
21484 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21485
21486 * Makefile.in (GNUC): Remove support for gcc-1.x.
21487
21488 2008-02-10 Richard Stallman <rms@gnu.org>
21489
21490 * lisp.h (ASET): Use AREF, not ASLOT.
21491
21492 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21493
21494 * lisp.h (ASET): Check bounds.
21495
21496 2008-02-10 Glenn Morris <rgm@gnu.org>
21497
21498 * buffer.c (mode-name): Doc fix.
21499
21500 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21501
21502 * Makefile.in:
21503 * emacs.c:
21504 * gmalloc.c:
21505 * keyboard.c:
21506 * lisp.h:
21507 * m/ibm370aix.h:
21508 * process.c:
21509 * regex.c:
21510 * s/hpux.h:
21511 * sysdep.c:
21512 * sysselect.h:
21513 * systty.h:
21514 * unexec.c:
21515 * w32term.c:
21516 * xsmfns.c:
21517 * xterm.c: Remove code that deals with obsolete variables.
21518
21519 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21520
21521 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21522 nothing else needs it anymore.
21523
21524 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21525
21526 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21527 instead of unibyte_char_to_multibyte.
21528
21529 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21530
21531 * s/gnu-linux.h: Remove commented out code.
21532
21533 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21534
21535 * Makefile.in: Update what RMS says about using autoconf.
21536 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21537 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21538 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21539 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21540
21541 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21542
21543 * keymap.c (Fkey_description): Move side effect outside of macro call.
21544
21545 * xfaces.c (Finternal_make_lisp_face):
21546 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21547
21548 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21549 (syms_of_fontset): Use ASET.
21550
21551 * fns.c (concat): Move side effect outside of macro call.
21552 (hash_clear): Use ASET.
21553
21554 2008-02-08 Richard Stallman <rms@gnu.org>
21555
21556 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21557 If FORCE, and frame has a surrogate minibuffer for another frame,
21558 delete the other frame first.
21559
21560 2008-02-07 Timo Savola <timo.savola@iki.fi>
21561
21562 * xterm.c (x_detect_focus_change): Handle embed client message.
21563 (handle_one_xevent): Ditto.
21564 (handle_one_xevent): If embedded and we get a button press/release,
21565 request focus.
21566 (xembed_set_info, xembed_send_message): New functions.
21567 (x_make_frame_visible): Call xembed_set_info if embedded.
21568 (x_make_frame_invisible): Call xembed_set_info if embedded.
21569 (x_term_init): Initialize Xatom_XEMBED.
21570 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21571 (x_iconify_frame): Ditto.
21572
21573 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21574 (enum xembed_info, enum xembed_message, enum xembed_focus)
21575 (enum xembed_modifier, enum xembed_accelerator): New.
21576 (xembed_set_info, xembed_send_message): Declare.
21577 (FRAME_X_EMBEDDED_P): New.
21578
21579 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21580 gtk_plug_new.
21581
21582 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21583 window ID of a frame.
21584 (x_window): Reparent frame if embedded.
21585 (Fx_create_frame): Don't set border width if embedded.
21586
21587 * emacs.c (USAGE3): Add --parent-id.
21588 (standard_args): Ditto.
21589
21590 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21591
21592 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21593
21594 2008-02-07 Jim Meyering <meyering@redhat.com>
21595
21596 Use "do...while (0)", not "if (1)...else" in macro definitions.
21597 The latter provokes a warning from gcc about the empty else, when
21598 followed by ";". Also, without that trailing semicolon, it would
21599 silently swallow up any following statement.
21600 * syntax.h (SETUP_SYNTAX_TABLE)
21601 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21602 * buffer.h (DECODE_POSITION): Likewise.
21603 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21604 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21605 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21606 (FETCH_CHAR_ADVANCE): Likewise.
21607 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21608
21609 2008-02-07 Jim Meyering <meyering@redhat.com>
21610
21611 * lread.c [lint]: Don't include <sys/inode.h>.
21612
21613 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21614
21615 * xselect.c (x_handle_dnd_message):
21616 * xmenu.c (digest_single_submenu, xmenu_show):
21617 * xdisp.c (with_echo_area_buffer_unwind_data)
21618 (format_mode_line_unwind_data, unwind_format_mode_line)
21619 (display_menu_bar):
21620 * eval.c (Ffetch_bytecode):
21621 * doc.c (store_function_docstring):
21622 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21623 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21624 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21625
21626 2008-02-07 Kenichi Handa <handa@m17n.org>
21627
21628 * ftxfont.c (ftxfont_open): Don't set
21629 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21630
21631 * ftfont.c (ftfont_open): Fix previous change.
21632
21633 2008-02-06 Jason Rumney <jasonr@gnu.org>
21634
21635 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21636 Use cached metrics for ASCII characters.
21637 (w32font_open_internal): Don't set font's owning_frame.
21638 Cache metrics for ASCII characters.
21639
21640 * w32font.h (struct w32font_info): Add ascii_metrics.
21641 Remove owning_frame.
21642
21643 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21644
21645 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21646 to negative value.
21647
21648 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21649
21650 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21651
21652 * charset.c (syms_of_charset): Set QCtest and Qeq.
21653
21654 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21655
21656 * process.c (Fstart_process):
21657 * callproc.c (Fcall_process): Handle the case where
21658 Funhandled_file_name_directory returns nil.
21659
21660 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21661 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21662 * font.c (check_gstring): Use them and AREF to access the vector before
21663 we know it's really a gstring.
21664 (Ffont_shape_text): Fix typo.
21665 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
21666
21667 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21668 Declare.
21669
21670 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21671
21672 2008-02-05 Jason Rumney <jasonr@gnu.org>
21673
21674 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21675 Set smallest_font_height and smallest_char_width in display info.
21676
21677 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21678
21679 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21680
21681 2008-02-05 Miles Bader <miles@gnu.org>
21682
21683 * xfaces.c (get_lface_attributes, merge_named_face)
21684 (lookup_named_face, lookup_derived_face, realize_named_face):
21685 Revert 2008-02-01 change by cyd@stupidchicken.com.
21686
21687 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21688
21689 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21690 fallback fonts.
21691 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21692
21693 2008-02-04 Jason Rumney <jasonr@gnu.org>
21694
21695 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21696 set full_name.
21697 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21698
21699 2008-02-03 Jason Rumney <jasonr@gnu.org>
21700
21701 * makefile.w32-in (OBJ1): Include font.o here.
21702 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21703
21704 2008-02-02 Jason Rumney <jasonr@gnu.org>
21705
21706 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21707
21708 2008-02-01 Jason Rumney <jasonr@gnu.org>
21709
21710 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21711
21712 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21713
21714 2008-02-01 Andreas Schwab <schwab@suse.de>
21715
21716 * Makefile.in (shortlisp, lisp): Update for rename of
21717 ../lisp/language/myanmar.el.
21718
21719 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
21720
21721 * xfaces.c (get_lface_attributes): Delete function.
21722 (merge_named_face, lookup_named_face, lookup_derived_face)
21723 (realize_named_face): Call lface_from_face_name directly, and use
21724 the fact that merge_face_vectors does not alter its FROM argument.
21725
21726 2008-02-01 Jason Rumney <jasonr@gnu.org>
21727
21728 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21729 input in the default locale. Handle non-Unicode multibyte input.
21730
21731 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21732
21733 * fontset.c (reorder_font_vector): Exclude nil elements from the
21734 font group. Don't try multiple fonts.
21735 (fontset_font): Adjust for the above change.
21736 (Finternal_char_font): Return nil if the found font doesn't
21737 contain the character ch.
21738
21739 * Makefile.in (lisp, shortlisp): Add cham.el.
21740
21741 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21742
21743 * font.h (FONTP): Make it return 1 also for a font-object.
21744
21745 * .gdbinit (xfontset): New function.
21746
21747 * font.c (font_find_for_lface): Check if the character C is
21748 supported or not only for the first font.
21749
21750 * fontset.c (reorder_font_vector): Fix typo.
21751 (fontset_find_font): Don't add a font-spec specifying a script.
21752 Use 0 (not Qt) for the indication of empty font-group. Change the
21753 format of RFONT-DEF. Return Qt if no font in the font-group
21754 support the character.
21755 (fontset_font): Adjust for the above change. If no font was
21756 found the character, remember that.
21757 (face_for_char): Adjust for the change of RFONT-DEF.
21758 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21759 no font for the target.
21760 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21761
21762 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21763
21764 * font.c (font_load_for_face): Handle the case that the font in
21765 face->lface is a string.
21766
21767 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21768
21769 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21770
21771 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21772
21773 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21774 Fix previous change. If the frame is not on a window system,
21775 signal an error.
21776
21777 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21778
21779 * coding.c (decode_coding_object, encode_coding_object):
21780 Adjust marker positions after conversion.
21781
21782 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21783
21784 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21785
21786 * font.c (font_find_for_lface): Fix the handling of the return
21787 value of font_has_char.
21788 (Ffont_shape_text): Fix previous change.
21789
21790 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21791 (fontset_ref_and_range): Delete it.
21792 (fontset_find_font): Call char_table_ref_and_range instead of
21793 FONTSET_REF_AND_RANGE.
21794 (make_fontset): Don't setup font groups of Latin here.
21795 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21796 (new_fontset_from_font): Make the specified font the default for
21797 all Latin characters.
21798
21799 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21800
21801 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21802 is on a window system before accessing the fontset of the frame.
21803
21804 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21805
21806 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21807
21808 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21809 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21810
21811 * font.c (Ffont_shape_text): If the font driver doesn't have a
21812 shaper function, make zero-width glyphs to have at least one-pixel
21813 width. Fix setting of `to' field of glyphs.
21814
21815 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21816
21817 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21818 glyphs.
21819
21820 * font.h (struct font_driver): Improve docstring of member `shape'.
21821
21822 2008-02-01 Kenichi Handa <handa@m17n.org>
21823
21824 * composite.c (syms_of_composite): Fix docstring of
21825 auto-composition-function.
21826
21827 * font.h (LGLYPH_SIZE): New macro.
21828
21829 * font.c (Ffont_fill_gstring): Stop filling when a character not
21830 supported by the font is found.
21831 (Ffont_shape_text): When a shape callback function returns nil,
21832 try at most two more times with larger gstring.
21833 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21834
21835 * xdisp.c (handle_auto_composed_prop): Change the argument to
21836 auto-composition-function.
21837
21838 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21839 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21840 Lispy glyph and store it in the lgstring.
21841
21842 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21843
21844 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21845
21846 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21847
21848 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21849
21850 * fontset.c (Vfont_encoding_charset_alist): New variable.
21851 (syms_of_fontset): DEFVAR it.
21852 (reorder_font_vector, fontset_find_font): Optimize for the case of
21853 no need of reordering.
21854 (face_for_char): Map the charset property by
21855 Vfont_encoding_charset_alist.
21856
21857 2008-02-01 Jason Rumney <jasonr@gnu.org>
21858
21859 * w32font.c (logfonts_match): Don't check adstyle here.
21860 (font_matches_spec): Check here against physical font instead.
21861 (add_font_entity_to_list): Avoid some substitutions.
21862
21863 * font.c (font_parse_fcname): Default weight and slant to normal.
21864 (font_score): Prefer normal fonts if weight or slant unspecified.
21865 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21866 match freetype scores.
21867
21868 2008-02-01 Jason Rumney <jasonr@gnu.org>
21869
21870 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21871 font, as it may have been deleted.
21872 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21873 most common hyphenless variation.
21874 (logfonts_match): Check generic family.
21875 (font_matches_spec): Don't check generic family here.
21876 (fill_in_logfont): Set generic family based on adstyle.
21877
21878 * w32font.h (w32font_get_cache): Update declaration.
21879
21880 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21881
21882 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21883
21884 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21885 If none of the new drivers are available, call font_update_drivers
21886 with the old drivers.
21887
21888 * w32font.c (w32font_get_cache): Adjust the argument type.
21889
21890 * xfont.c (xfont_get_cache): Adjust the argument type.
21891
21892 * font.h (struct font_driver): Change argument type of get_cache.
21893
21894 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21895
21896 * font.c (Ffont_get): Fix arguments to Fassoc.
21897 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21898 (font_clear_cache): New function.
21899 (font_list_entities, font_matching_entity): Use font_get_cache.
21900 (font_update_drivers): Call font_clear_cache when finishing a driver.
21901
21902 * fontset.c (fontset_find_font): Fix previous change.
21903
21904 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21905
21906 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21907 dpyinfo->font_table.
21908 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21909 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21910
21911 * font.c (font_at): Handle the case that the arg C is negative.
21912 Handle the unibyte case.
21913 (Ffont_at): Call font_at with the arg C -1.
21914
21915 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21916 the position here, and call font_at with the arg C -1.
21917 Don't check the range of the existing composition at the point.
21918
21919 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21920
21921 * fontset.c (fontset_add): New args charset_id and family.
21922 Change caller.
21923 (load_font_get_repertory, fontset_find_font): Assume that
21924 font_spec is always a font-spec object.
21925 (Fset_fontset_font): Always store a font-spec object in a fontset.
21926
21927 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21928 instead of get_property_and_range.
21929
21930 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21931
21932 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21933 (xftfont_open): Don't keep locking face.
21934 (xftfont_close): Don't unlock face.
21935 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21936
21937 * fontset.c (fontset_find_font): Don't prefer a font of
21938 supplementary charset.
21939
21940 2008-02-01 Kenichi Handa <handa@m17n.org>
21941
21942 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21943 script, langsys_tag to langsys, new member script.
21944 (OTF_TAG_STR): Terminate by '\0'.
21945 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
21946 listing to the script specified in that property. Fix arg to
21947 OTF_check_features.
21948
21949 2008-02-01 Jason Rumney <jasonr@gnu.org>
21950
21951 * w32font.h: New file.
21952
21953 * w32font.c: Include it.
21954 (struct w32font_info): Add owning_frame field. Move to w32font.h.
21955 (w32font_open): Set owning_frame.
21956 (w32font_text_extents): Use owning_frame.
21957 (struct font_callback_data): Add opentype_only field.
21958 (add_font_entity_to_list): Use it to filter fonts.
21959 Don't check against full name.
21960 (w32font_list_internal): New function.
21961 (w32font_list): Use it.
21962 (w32font_match_internal): New function.
21963 (w32font_match): Use it.
21964 (w32font_open_internal): New function.
21965 (w32font_open): Use it.
21966 (w32font_get_cache, w32font_close, w32font_has_char)
21967 (w32font_encode_char, w32font_text_extents, w32font_draw):
21968 Make non-static.
21969
21970 * makefile.w32-in (w32font.o): Depend on w32font.h.
21971
21972 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21973
21974 * charset.c (Fdefine_charset_internal): Record a supplementary
21975 charset at the tail of Vcharset_order_list.
21976
21977 * font.c (Ffont_shape_text): Fix the return value.
21978
21979 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
21980
21981 * xdisp.c (handle_auto_composed_prop): Fix previous change.
21982
21983 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21984
21985 * ftfont.c (struct OpenTypeSpec): New struct.
21986 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
21987 (ftfont_get_open_type_spec): New function.
21988 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
21989
21990 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
21991
21992 2008-02-01 Jason Rumney <jasonr@gnu.org>
21993
21994 * w32font.c (add_font_entity_to_list): Compare only the beginning
21995 of full name.
21996
21997 2008-02-01 Kenichi Handa <handa@m17n.org>
21998
21999 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22000 Never return HANDLED_RECOMPUTE_PROPS.
22001
22002 2008-02-01 Kenichi Handa <handa@m17n.org>
22003
22004 * font.c (font_gstring_produce): Delete it.
22005
22006 * composite.h (COMPOSITION_METHOD):
22007 Handle COMPOSITION_WITH_GLYPH_STRING.
22008
22009 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22010
22011 * xfont.c (Qx): Delete.
22012 (syms_of_xfont): Don't initialize Qx.
22013
22014 * composite.h (enum composition_method):
22015 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22016
22017 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22018
22019 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22020 (choose_face_font): Accept new form of font-spec.
22021
22022 * frame.h (font_driver_list): Declare it unconditionally.
22023 (struct frame): Define members font_driver_list and font_data_list
22024 unconditionally.
22025
22026 * fontset.c: Include "font.h" unconditionally.
22027 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22028 (Fset_fontset_font): Accept a font-spec object.
22029
22030 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22031 PIXEL_SIZE part a wild card.
22032
22033 * dispextern.h (struct glyph_string): Define members clip and
22034 num_clips unconditionally.
22035 (struct face): Define members font_info and extra unconditionally.
22036
22037 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22038 ftfont_info only when HAVE_LIBOTF is defined.
22039
22040 2008-02-01 Andreas Schwab <schwab@suse.de>
22041
22042 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22043 and end.
22044
22045 2008-02-01 Jason Rumney <jasonr@gnu.org>
22046
22047 * w32font.c (w32font_driver): Add new fields.
22048
22049 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22050
22051 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22052 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22053 (LIBES): Add @M17N_FLT_CFLAGS@.
22054
22055 * composite.c (compose_text): Don't treat the new style
22056 composition specially.
22057
22058 * emacs.c (main): Call syms_of_font unconditionally.
22059
22060 * font.h (FONT_ENTITY_NOT_LOADABLE)
22061 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22062 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22063 (struct font_driver): New member shape.
22064 (font_registry_charsets): Extern it.
22065 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22066 (font_otf_capability, font_drive_otf): Delete their externs.
22067
22068 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22069 (font_charset_alist, font_registry_charsets): Move from xfont.c
22070 and rename.
22071 (font_prop_validate_otf): New function.
22072 (font_property_table): Register it for QCotf.
22073 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22074 (font_drive_otf): Delete.
22075 (font_prepare_composition): New arg F. Adjust for the change of
22076 lispy gstring.
22077 (font_find_for_lface): New arg C.
22078 (font_load_for_face): Adjust for the change of font_find_for_lface.
22079 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22080 lispy gstring.
22081 (Ffont_shape_text): New function.
22082 (Fopen_font): If the font size is not given, use 12-pixel.
22083 (Ffont_at): New arg STRING.
22084 (syms_of_font): Initialize font_charset_alist.
22085 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22086 conditionally.
22087
22088 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22089 fonts of the same font-spec. Change the format of RFONT-DEF.
22090 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22091 Adjust for the change of RFONT-DEF.
22092 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22093
22094 * ftfont.h: New file.
22095
22096 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22097 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22098 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22099 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22100 font_otf_capability and font_drive_otf, set ftfont_shape.
22101 (ftfont_list): Adjust for the change of :otf property value.
22102 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22103 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22104 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22105 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22106 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22107 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22108
22109 * w32term.c (x_draw_composite_glyph_string_foreground):
22110 Adjust for the change of lispy gstring.
22111
22112 * xdisp.c (handle_composition_prop): Adjust for the change of
22113 lispy gstring. Call a function for auto-composition with the
22114 third arg it->window.
22115 (fill_composite_glyph_string): Adjust for the change of lispy string.
22116 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22117
22118 * xfaces.c (set_font_frame_param): Adjust for the change of
22119 font_find_for_lface.
22120
22121 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22122 (xfont_registry_charsets): Likewise. Change caller.
22123 (syms_of_xfont): Don't handle x_font_charset_alist.
22124
22125 * xftfont.c: Include "ftfont.h".
22126 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22127 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22128 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22129 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22130 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22131 Set xftfont_driver.shape to xftfont_shape.
22132
22133 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22134 the change of lispy gstring.
22135
22136 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22137
22138 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22139
22140 2008-02-01 Jason Rumney <jasonr@gnu.org>
22141
22142 * w32font.c (w32font_draw): Fill background manually.
22143
22144 2008-02-01 Jason Rumney <jasonr@gnu.org>
22145
22146 * font.c (Qfontp): Remove unused symbol.
22147 (QCantialias): New symbol.
22148 (syms_of_font): Define it.
22149 (font_property_table): Set a validator for QCantialias.
22150
22151 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22152 Define if not already.
22153 (QCfamily): Share with xfaces.c.
22154 (Qstandard, Qsubpixel, Qnatural): New symbols.
22155 (syms_of_w32font): Define them. Don't define QCfamily here.
22156 (w32_antialias_type, lispy_antialias_type): New functions.
22157 (w32_enumfont_pattern_entity): New arg requested_font.
22158 Set antialias parameter if non-default was requested.
22159 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22160
22161 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22162
22163 * lread.c (read1): Undo the previous change.
22164
22165 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22166
22167 * frame.c (Fdelete_frame): Call font_update_drivers only when
22168 USE_FONT_BACKEND is defined.
22169
22170 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22171
22172 * font.h (struct font_bitmap): New member bits_per_pixel.
22173 (struct font_driver): New members start_for_frame and end_for_frame.
22174 (struct font_data_list): New struct.
22175 (font_put_frame_data, font_get_frame_data): Extern them.
22176
22177 * frame.h (struct frame): New member font_data_list.
22178
22179 * font.c (font_update_drivers): Call driver->start_for_frame and
22180 driver->end_for_frame at proper timings.
22181 (font_put_frame_data, font_get_frame_data): New functions.
22182 (Ffont_spec): Add usage in the docstring.
22183
22184 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22185 (Fdelete_frame): Call font_update_drivers.
22186
22187 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22188 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22189 (xftfont_get_xft_draw): New function.
22190 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22191 (xftfont_end_for_frame): New function.
22192 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22193
22194 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22195 Change argument. Cache GCs in the per-frame data.
22196 (struct ftxfont_frame_data): New struct.
22197 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22198 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22199 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22200 (ftxfont_end_for_frame): New function.
22201 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22202
22203 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22204
22205 2008-02-01 Kenichi Handa <handa@m17n.org>
22206
22207 * xselect.c (Vselection_coding_system)
22208 (Vnext_selection_coding_system): Delete them.
22209 (syms_of_xselect): Don't declare selection-coding-system and
22210 next-selection-coding-system. They are declared in select.el.
22211
22212 2008-02-01 Jason Rumney <jasonr@gnu.org>
22213
22214 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22215
22216 * w32fns.c: Include imm.h.
22217 (get_composition_string_fn, get_ime_context_fn): New optional
22218 system functions.
22219 (globals_of_w32fns): Load them from imm32.dll.
22220 (ignore_ime_char): New flag.
22221 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22222 WM_IME_ENDCOMPOSITION messages.
22223
22224 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22225 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22226
22227 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22228
22229 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22230 (READCHAR_REPORT_MULTIBYTE): New macro.
22231 (readchar): New 2nd arg MULTIBYTE.
22232 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22233 Make symbol's name multibyte according to the multibyteness of the
22234 source.
22235
22236 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22237
22238 * xfaces.c (face_for_overlay_string): Call lookup_face with
22239 correct arguments (fix of synching with the trunk).
22240
22241 2008-02-01 Kenichi Handa <handa@m17n.org>
22242
22243 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22244 (font_prop_validate_non_neg, font_prop_validate_spacing):
22245 Delete argument prop_index.
22246 (font_property_table): Change arguments to validater. Change Callers.
22247 (font_lispy_object): Delete.
22248 (font_at): Use font_find_object instead fo font_lispy_object.
22249
22250 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22251
22252 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22253 and file names.
22254
22255 2008-02-01 Jason Rumney <jasonr@gnu.org>
22256
22257 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22258 (font_matches_spec): Remove debug output.
22259 (add_font_entity_to_list): Avoid using substituted fonts.
22260
22261 2008-02-01 Jason Rumney <jasonr@gnu.org>
22262
22263 * doc.c (Fsnarf_documentation):
22264 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22265
22266 2008-02-01 Miles Bader <miles@gnu.org>
22267
22268 * dispextern.h (struct glyph_row): Only define "clip" field if
22269 HAVE_WINDOW_SYSTEM is defined.
22270
22271 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22272
22273 Fix up multi-tty merge.
22274
22275 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22276 and indentation.
22277
22278 * xfaces.c (free_realized_face, clear_face_gcs):
22279 Include font_done_for_face in the input_blocked section, just in case.
22280
22281 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22282 (get_char_face_and_encoding): Undo last change and remove the *other*
22283 duplicate definition (i.e. keep the one that's better scoped and that
22284 includes code for the font-backend).
22285
22286 * terminal.c (create_terminal): Default keyboard_coding to
22287 `no-conversion' and terminal_coding to `undecided'.
22288
22289 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22290
22291 * fontset.c (free_realized_fontsets): Check that the table entry does
22292 contain a fontset before trying to compare it to `base'.
22293
22294 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22295 syms_of_charset, and syms_of_coding earlier because init_window_once
22296 now needs Vcoding_system_hash_table to be setup.
22297
22298 * coding.h (default_buffer_file_coding): Remove.
22299
22300 * coding.c (default_buffer_file_coding): Remove.
22301 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22302 than ->symbol, and use the terminal-local coding system.
22303 (syms_of_coding): Don't setup the coding-systems that are not
22304 terminal-local.
22305 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22306
22307 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22308 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22309
22310 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22311 in chartab.c and were re-added here by mistake.
22312 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22313
22314 * doc.c (Fsnarf_documentation):
22315 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22316 src to etc.
22317
22318 * ChangeLog.10: Add mistakenly removed entry.
22319
22320 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22321
22322 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22323
22324 2008-02-01 Miles Bader <miles@gnu.org>
22325
22326 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22327 Add extra args to FACE_FOR_CHAR.
22328
22329 2008-02-01 Kenichi Handa <handa@m17n.org>
22330
22331 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22332 in sequence.
22333
22334 * chartab.c (map_sub_char_table, map_char_table): If the range
22335 contains just one character, call the function with that character
22336 even if the depth is not 3.
22337
22338 2008-02-01 Jason Rumney <jasonr@gnu.org>
22339
22340 * w32font.c (w32font_text_extents): Calculate metrics for the
22341 whole string.
22342
22343 2008-02-01 Jason Rumney <jasonr@gnu.org>
22344
22345 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22346
22347 2008-02-01 Jason Rumney <jasonr@gnu.org>
22348
22349 * w32term.c (x_set_glyph_string_clipping):
22350 Use get_glyph_string_clip_rects.
22351 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22352 Adjust for the change of struct glyph_string.
22353
22354 * w32font.c (w32font_draw): Do clipping here.
22355
22356 2008-02-01 Kenichi Handa <handa@m17n.org>
22357
22358 * xftfont.c (xftfont_draw): Adjust for the change of struct
22359 glyph_string.
22360
22361 * xterm.c (x_set_glyph_string_clipping):
22362 Use get_glyph_string_clip_rects.
22363 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22364 Adjust for the change of struct glyph_string.
22365
22366 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22367 the resulting clip(s}.
22368 (expose_overlaps): Add arg r. Change callers. Set it to
22369 row->clip temporarily.
22370 (expose_window): Redraw rows overlapping the exposed area.
22371
22372 * dispextern.h (struct glyph_row): New member clip.
22373 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22374 clip_height, new member clip, and num_clips.
22375
22376 2008-02-01 Kenichi Handa <handa@m17n.org>
22377
22378 * data.c (Fchar_or_string_p): Fix docstring.
22379
22380 2008-02-01 Kenichi Handa <handa@m17n.org>
22381
22382 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22383 create a temporary XftDraw object.
22384
22385 2008-02-01 Kenichi Handa <handa@m17n.org>
22386
22387 * font.c (Ffontp): Fix docstring.
22388
22389 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22390 strong evidence of ISO-2022.
22391
22392 2008-02-01 Kenichi Handa <handa@m17n.org>
22393
22394 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22395 SYNTAX_ENTRY_FOLLOW_PARENT.
22396
22397 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22398
22399 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22400 its type.
22401 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22402 Update to the new type of weak_hash_tables and next_weak.
22403
22404 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22405 a plain C pointer to Lisp_Hash_Table.
22406
22407 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22408 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22409 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22410 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22411 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22412 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22413 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22414 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22415 (GC_EQ): Remove since they've been identical to their non-GC_
22416 alter-egos ever since the markbit was eradicated.
22417
22418 * alloc.c:
22419 * buffer.c:
22420 * buffer.h:
22421 * data.c:
22422 * fileio.c:
22423 * filelock.c:
22424 * fns.c:
22425 * frame.h:
22426 * lisp.h:
22427 * macterm.c:
22428 * print.c:
22429 * process.c:
22430 * w32fns.c:
22431 * w32menu.c:
22432 * w32term.c:
22433 * xfns.c:
22434 * xmenu.c:
22435 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22436
22437 2008-02-01 Kenichi Handa <handa@m17n.org>
22438
22439 * chartab.c (map_sub_char_table): Make it work for the top-level
22440 char-table. Fix handling of parent char-table.
22441 (map_char_table): Adjust for the above change.
22442
22443 2008-02-01 Jason Rumney <jasonr@gnu.org>
22444
22445 * w32font.c (Qgdi): Rename from Qw32.
22446
22447 2008-02-01 Jason Rumney <jasonr@gnu.org>
22448
22449 * w32bdf.c (get_quoted_string): Make function static.
22450
22451 2008-02-01 Kenichi Handa <handa@m17n.org>
22452
22453 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22454 bigger ascent and descent than those of the font, use them as
22455 font's ascent and descent.
22456
22457 2008-02-01 Kenichi Handa <handa@m17n.org>
22458
22459 * Makefile.in (${lispsource}international/charprop.el): Move this
22460 target within "#ifdef HAVE_UNIDATA" and "#endif".
22461
22462 2008-02-01 Kenichi Handa <handa@m17n.org>
22463
22464 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22465 (shortlisp): Add ../lisp/language/tai-viet.el.
22466
22467 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
22468
22469 * Makefile.in (${lispsource}international/charprop.el): Depend on
22470 temacs${EXEEXT}.
22471
22472 2008-02-01 Jason Rumney <jasonr@gnu.org>
22473
22474 * w32font.c (w32font_close): Delete the GDI font object.
22475
22476 * w32menu.c: Include character.h.
22477
22478 * w32proc.c: Likewise.
22479
22480 * w32select.c: Likewise.
22481
22482 * makefile.w32-in (w32proc.o): Depend on character.h.
22483
22484 2008-02-01 Jason Rumney <jasonr@gnu.org>
22485
22486 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22487
22488 * w32menu.c (syms_of_w32menu): Likewise.
22489
22490 * w32proc.c (syms_of_ntproc): Likewise.
22491
22492 * w32select.c (syms_of_w32select): Likewise.
22493
22494 * w32term.c (syms_of_w32term): Likewise.
22495
22496 2008-02-01 Jason Rumney <jasonr@gnu.org>
22497
22498 * w32font.c (w32font_draw): Delete brush after using it.
22499
22500 2008-02-01 Jason Rumney <jasonr@gnu.org>
22501
22502 * w32font.c (w32font_open): Don't set font_idx.
22503 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22504 to font settings.
22505 (w32font_draw): Fill background explicitly.
22506
22507 2008-02-01 Jason Rumney <jasonr@gnu.org>
22508
22509 * w32term.c (w32_initialize): Don't call w32font_initialize.
22510
22511 * w32font.c (w32font_info): Remove subranges.
22512 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22513 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22514 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22515 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22516 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22517 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22518 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22519 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22520 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22521 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22522 New symbols.
22523 (font_callback_data): New struct.
22524 (w32font_list, w32font_match): Use it.
22525 (w32font_open): Don't populate subranges.
22526 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22527 (w32font_encode_char): Always return unicode code-point as-is.
22528 (w32font_text_extents): Supply a transformation matrix to
22529 GetGlyphOutline. Never look up by glyph index. Avoid looping
22530 twice. Use unicode version of GetTexExtentPoint32 instead of
22531 glyph index version.
22532 (set_fonts_frame): Remove.
22533 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22534 set frame parameter. Use backward compatible fake foundries.
22535 Save generic family in extra slot under QCfamily. Make width slot
22536 constant. Save QCspacing value. Save list of scripts instead of
22537 binary subranges.
22538 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
22539 (add_font_entity_to_list): Use font_callback_data struct.
22540 Filter unwanted fonts.
22541 (add_one_font_entity_to_list): Use font_callback_data struct.
22542 (w32_registry): Default to iso10646_1.
22543 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22544 string font registries. Don't fill in font name if it is a generic
22545 family name, fill family instead. Use spacing, family and script
22546 extra info to fill pitch, family and charset fields.
22547 (list_all_matching_fonts): Use font_callback_data struct.
22548 (unicode_range_for_char): Remove.
22549 (font_supported_scripts): New function.
22550 (w32font_initialize): Remove.
22551 (syms_of_w32font): Update which symbols are defined.
22552
22553 2008-02-01 Jason Rumney <jasonr@gnu.org>
22554
22555 * font.c (font_pixel_size): Reverse assq_no_quit args.
22556
22557 * w32term.h (FONT_WIDTH): Report max width, not average.
22558 (FONT_MAX_WIDTH): Remove.
22559 (FONT_AVG_WIDTH): New macro.
22560
22561 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22562 redefinition of FONT_WIDTH.
22563
22564 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22565 (w32_cache_char_metrics): Use FONT_WIDTH.
22566
22567 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22568
22569 2008-02-01 Jason Rumney <jasonr@gnu.org>
22570
22571 * w32font.c (w32font_open): Make lfHeight negative.
22572
22573 * w32fns.c (x_default_font_parameter): Use new style font name.
22574 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22575
22576 2008-02-01 Jason Rumney <jasonr@gnu.org>
22577
22578 * w32font.c (QCsubranges): New symbol.
22579 (w32font_open, w32font_has_char): Get subranges from subproperty
22580 of extra.
22581 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22582 (syms_of_w32font): Define :subranges symbol.
22583
22584 * font.c (font_put_extra): Expose externally.
22585
22586 * font.h (font_put_extra): Move declaration from font.c.
22587
22588 * font.c (Ffont_get): Use font driver to determine otf capability.
22589 (adjust_anchor): Check if driver defines anchor_point before using.
22590
22591 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22592 (w32font_draw): Use options.
22593 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22594 Fix detection of truetype fonts.
22595 (registry_to_w32_charset): Handle charsets other than iso8859-1
22596 expressed as lisp symbols.
22597 (w32_registry): Express charset as lisp symbol.
22598 (fill_in_logfont): Reverse pixel and point height logic.
22599 Don't set width here. Set quality to default.
22600
22601 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22602 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22603
22604 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22605 Remove redundant loop and allocation.
22606
22607 * makefile.w32-in (font.o, w32font.o): New objects.
22608 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22609 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22610
22611 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22612 STORE_XCHARB a valid l-value.
22613
22614 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22615 calculations for non-Truetype fonts.
22616 (x_draw_glyph_string): Sync with xterm.c.
22617 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22618 Remove redundant code.
22619 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22620
22621 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22622 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22623
22624 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22625 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22626
22627 * w32font.c: New file for w32 font backend.
22628
22629 2008-02-01 Kenichi Handa <handa@m17n.org>
22630
22631 * term.c: Don't include "buffer.h" twice.
22632
22633 2008-02-01 Kenichi Handa <handa@m17n.org>
22634
22635 * character.c (Funibyte_string): New function.
22636 (syms_of_character): Defsubr it.
22637
22638 2008-02-01 Jason Rumney <jasonr@gnu.org>
22639
22640 * w32term.c [USE_FONT_BACKEND]:
22641 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22642 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22643 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22644 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22645 (x_free_frame_resources): Sync with xterm.c.
22646
22647 2008-02-01 Andreas Schwab <schwab@suse.de>
22648
22649 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22650 char-table size.
22651
22652 2008-02-01 Kenichi Handa <handa@m17n.org>
22653
22654 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22655
22656 2008-02-01 Kenichi Handa <handa@m17n.org>
22657
22658 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22659 font_otf_gpos, add font_drive_otf.
22660
22661 * fontset.c (fontset_find_font): Pay attention to font size
22662 specified for a font.
22663 (reorder_font_vector): Check contents of font_def.
22664
22665 * font.c (struct otf_list): Delete it.
22666 (otf_list): Make it a lisp variable.
22667 (otf_open): Use lispy otf_list.
22668 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22669 (check_otf_features): New function.
22670 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22671 New functions.
22672 (font_drive_otf): New function merging font_otf_gsub and
22673 font_otf_gpos.
22674 (font_open_for_lface): New arg spec. Change argument order.
22675 (font_load_for_face): Adjust for the change of font_open_for_lface.
22676 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22677 Ffont_otf_gpos.
22678 (syms_of_font): Staticpro otf_list. Delete defsubr of
22679 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22680
22681 * xfaces.c (set_font_frame_param): Adjust for the change of
22682 font_open_for_lface.
22683
22684 * font.h (font_open_for_lface): Adjust prototype.
22685 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22686 member otf_drive.
22687 (font_otf_gsub, font_otf_gpos): Delete externs.
22688 (font_drive_otf): Extern it.
22689
22690 2008-02-01 Kenichi Handa <handa@m17n.org>
22691
22692 * font.c (font_at): If the window W is not on a window system,
22693 return Qnil.
22694
22695 * coding.c (produce_chars, encode_coding): Don't call
22696 insert_from_gap if no characters to produce.
22697
22698 2008-02-01 Kenichi Handa <handa@m17n.org>
22699
22700 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22701 Fclear_face_cache.
22702
22703 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22704
22705 2008-02-01 Miles Bader <miles@gnu.org>
22706
22707 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22708 Parse "--disable-font-backend" option.
22709 (standard_args): Add "--disable-font-backend" option.
22710
22711 2008-02-01 Kenichi Handa <handa@m17n.org>
22712
22713 * fontset.c (fontset_find_font): New function.
22714 (fontset_font): Use fontset_find_font.
22715 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22716 Register the specified font for all Latin characters.
22717 (new_fontset_from_font): Register the specified font for all Latin
22718 characters.
22719 (dump_fontset): For a realized fontset, include the base fontset
22720 name in the returned vector.
22721
22722 2008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * character.h (CHAR_STRING): Cast C to unsigned on calling
22725 char_string.
22726
22727 * character.c (char_string): Type of arg C changed to unsigned.
22728 Signal an error if C is an invalid character code.
22729
22730 * editfns.c (general_insert_function, Fchar_to_string):
22731 Use CHARACTERP, not INTEGERP.
22732
22733 2008-02-01 Kenichi Handa <handa@m17n.org>
22734
22735 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22736 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22737
22738 * regex.c (analyse_first): Fix for multibyte characters in "case
22739 charset:" and "case categoryspec:".
22740
22741 2008-02-01 Andreas Schwab <schwab@suse.de>
22742
22743 * Makefile.in (LIBES): Move standard libraries to the end.
22744
22745 2008-02-01 Kenichi Handa <handa@m17n.org>
22746
22747 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22748 nonzero, don't shrink the buffer nextb.
22749
22750 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22751
22752 * coding.c (coding_alloc_by_making_gap): New arg offset.
22753 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22754 offset.
22755 (decode_coding_iso_2022): Update coding->safe_charsets.
22756 (decode_coding_gap): Temporarily set
22757 current_buffer->text->inhibit_shrinking to 1.
22758
22759 2008-02-01 Kenichi Handa <handa@m17n.org>
22760
22761 * xterm.c (x_draw_composite_glyph_string_foreground):
22762 Fix indexing into elements of s->cmp and s->char2b.
22763
22764 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
22765
22766 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22767
22768 2008-02-01 Kenichi Handa <handa@m17n.org>
22769
22770 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22771 target_multibyte instead of multibyte.
22772 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22773 (bcmp_translate): Change the argument name from multibyte to
22774 target_multibyte.
22775
22776 2008-02-01 Kenichi Handa <handa@m17n.org>
22777
22778 These changes are to compile a regexp into a pattern that can be
22779 used both for multibyte and unibyte targets.
22780
22781 * Makefile.in (search.o): Depend on charset.h.
22782
22783 * character.c (multibyte_char_to_unibyte_safe): New function.
22784
22785 * search.c: Include "charset.h".
22786 (compile_pattern_1): Delete argument multibyte. Don't set
22787 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22788 (compile_pattern): Don't compare cp->buf.target_multibyte.
22789 Compare cp->buf.charset_unibyte.
22790 (compile_pattern): Set cp->buf.target_multibyte.
22791
22792 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22793
22794 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22795
22796 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22797 multibyte. Change callers.
22798 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22799 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22800 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22801 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22802 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22803 (regex_compile): Make the compiled pattern usable both for
22804 multibyte and unibyte targets.
22805 (analyse_first): Make the fastmap usable both for multibyte and
22806 unibyte targets.
22807 (TRANSLATE_VIA_MULTIBYTE): Delete.
22808 (re_match_2_internal): Pay attention to the case that the
22809 multibyteness of bufp and target may be different.
22810
22811 2008-02-01 Kenichi Handa <handa@m17n.org>
22812
22813 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22814 empty box occupy at least one column width.
22815
22816 2008-02-01 Miles Bader <miles@gnu.org>
22817
22818 * Makefile.in: Remove redundant HAVE_XFT clause.
22819
22820 2008-02-01 Kenichi Handa <handa@m17n.org>
22821
22822 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22823
22824 2008-02-01 Kenichi Handa <handa@m17n.org>
22825
22826 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22827 being nil.
22828
22829 2008-02-01 Kenichi Handa <handa@m17n.org>
22830
22831 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22832
22833 2008-02-01 Kenichi Handa <handa@m17n.org>
22834
22835 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22836
22837 2008-02-01 Kenichi Handa <handa@m17n.org>
22838
22839 * search.c (simple_search): Fix previous change.
22840
22841 2008-02-01 Kenichi Handa <handa@m17n.org>
22842
22843 * xftfont.c (ftfont_font_format): Extern declaration.
22844
22845 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22846
22847 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22848 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22849
22850 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22851 (ftfont_font_format): Fix previous change.
22852
22853 * font.h (Ffont_xlfd_name): EXFUN it.
22854
22855 * font.c (font_parse_xlfd): Fix the array size of `f'.
22856 (register_font_driver): Use EQ to compare driver->type.
22857
22858 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22859 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22860 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22861
22862 2008-02-01 Kenichi Handa <handa@m17n.org>
22863
22864 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22865 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22866
22867 2008-02-01 Kenichi Handa <handa@m17n.org>
22868
22869 * xfont.c (xfont_open): Set font->format.
22870
22871 * xftfont.c (xftfont_open): Set font->format.
22872
22873 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22874 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22875 (ftfont_open): Set font->format.
22876 (ftfont_font_format): New function.
22877
22878 * font.h (struct font): New member format.
22879
22880 * font.c (Qopentype): New variable.
22881 (syms_of_font): Defsym it.
22882 (Fquery_font): Change the format of the last element of the return
22883 value.
22884
22885 2008-02-01 Kenichi Handa <handa@m17n.org>
22886
22887 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22888 last resort.
22889
22890 2008-02-01 Kenichi Handa <handa@m17n.org>
22891
22892 * coding.c (detect_coding_charset): Fix detection of multi-byte
22893 charset.
22894
22895 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22896
22897 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22898
22899 2008-02-01 Kenichi Handa <handa@m17n.org>
22900
22901 * xdisp.c (get_next_display_element): Set it->face_id for the
22902 first component of a composition.
22903 (x_produce_glyphs): Check if the font is changed or not for composition.
22904
22905 2008-02-01 Kenichi Handa <handa@m17n.org>
22906
22907 * fontset.c (Qlatin): New variable.
22908 (syms_of_fontset): Define it as a lisp symbol.
22909 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22910
22911 2008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * font.c (font_unparse_fcname): Pay attention to the case that
22914 some of font property is a null string.
22915
22916 2008-02-01 Kenichi Handa <handa@m17n.org>
22917
22918 * term.c: Include "composite.h".
22919 (encode_terminal_code): Output all components of composition.
22920 Check the size of encode_terminal_src.
22921 (produce_glyphs): For composition, call produce_composite_glyph.
22922 (append_composite_glyph, produce_composite_glyph): New functions.
22923
22924 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22925 is not found, get font_info from the current ascii face.
22926
22927 2008-02-01 Kenichi Handa <handa@m17n.org>
22928
22929 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22930 buffer-file-name to Qnil before calling insert_from_buffer.
22931
22932 * font.c (font_unparse_fcname): Pay attention to the case that
22933 foundry is a null string.
22934
22935 2008-02-01 Kenichi Handa <handa@m17n.org>
22936
22937 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22938
22939 * font.c (Qunicode_sip): New variable.
22940 (syms_of_font): Declare it as a Lisp symbol.
22941
22942 * font.h (Qunicode_sip): Extern it.
22943
22944 2008-02-01 Kenichi Handa <handa@m17n.org>
22945
22946 * composite.c (get_composition_id): Pay attention to TAB component.
22947
22948 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
22949 TAB. Adjust for the change of s->char2b which always points to
22950 the first element of allocated memory.
22951
22952 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
22953
22954 * xdisp.c (handle_composition_prop): Set it->c to the first
22955 non-TAB component.
22956 (fill_composite_glyph_string): Change argument.
22957 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
22958 (x_produce_glyphs): Fix handling of left/right padding.
22959
22960 2008-02-01 Kenichi Handa <handa@m17n.org>
22961
22962 * coding.c (detect_coding_system): Fix for handling off
22963 inhibit_iso_escape_detection. Fix for the case that no coding
22964 system is defined for a specific coding category.
22965
22966 2008-02-01 Kenichi Handa <handa@m17n.org>
22967
22968 * font.c (font_matching_entity): Delete unused local var.
22969
22970 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
22971 opening a font.
22972
22973 * fileio.c (Finsert_file_contents): On recovering a file, assume
22974 Unix-like eol.
22975 (choose_write_coding_system): On auto-saving a file, force
22976 Unix-like eol.
22977
22978 * coding.c (setup_coding_system): Fix setting of
22979 coding->common_flags based on eol_type.
22980 (coding_inherit_eol_type): If PARENT is not nil, be sure to
22981 inherit from it.
22982
22983 2008-02-01 Kenichi Handa <handa@m17n.org>
22984
22985 * alloc.c (NSTATICS): Increas to 0x600.
22986
22987 2008-02-01 Kenichi Handa <handa@m17n.org>
22988
22989 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
22990 (ftfont_list): Don't check :name property.
22991 (ftfont_match): New function.
22992 (ftfont_pattern_entity): If the pattern doesn't contain
22993 FC_SPACING, don't assume FC_MONO.
22994
22995 * font.h (struct font_driver): New member `match'.
22996 (font_update_drivers): Adjust prototype.
22997
22998 * font.c (font_parse_fcname, font_parse_name): Don't change :name
22999 property of FONT.
23000 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23001 Define them unconditionally.
23002 (font_matching_entity): New function.
23003 (font_open_by_name): Try font_matching_entity if exact match is
23004 not found.
23005 (font_update_drivers): Delete the arg FONT. Return a list of
23006 actually used backends. Don't free faces, font caches here.
23007 Don't store data in frame parameters. Don't call x_set_font.
23008 (Ffont_spec): Store :name property as is.
23009 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23010 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23011 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23012 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23013 Call font->driver->otf_gsub instead of font_otf_gsub.
23014
23015 * frame.c (x_set_font_backend): Do more works that were done in
23016 font_update_drivers before.
23017
23018 * xfont.c (xfont_match): New function.
23019 (xfont_driver): Set xfont_driver.match to xfont_match.
23020 (xfont_draw): Set font in GC if necessary.
23021
23022 * ftxfont.c (ftxfont_match): New function.
23023 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23024
23025 * xftfont.c (xftfont_match): New function.
23026 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23027
23028 2008-02-01 Kenichi Handa <handa@m17n.org>
23029
23030 * font.h (struct font): New member scalable.
23031 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23032 (font_otf_gsub): Adjust prototype.
23033
23034 * font.c (font_otf_capability): Fix handling of the default langsys.
23035 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23036 Check the contents of SPEC.
23037 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23038 (check_gstring): New function.
23039 (REPLACEMENT_CHARACTER): New macro.
23040 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23041 glyph codes of GSTRING.
23042 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23043 (font_prepare_composition): Set cmp->glyph_len.
23044 (font_open_entity): Set font->scalable.
23045 (Ffont_get): Handle :otf property.
23046 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23047 New functions.
23048 (Fquery_font): Use font->font.full_name.
23049 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23050 Sfont_otf_alternates.
23051
23052 * ftfont.c (ftfont_open): Set font->font.full_name and
23053 font->font.name properly. Fix calculation of font->font.height
23054 and font->min_width.
23055
23056 * ftxfont.c (ftxfont_create_gcs): New function.
23057 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23058 (ftxfont_draw_backgrond): Fix filling region.
23059 (ftxfont_default_fid): New function.
23060 (ftxfont_open): Set xfont->fid to the return value of
23061 ftxfont_default_fid.
23062 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23063 (ftxfont_done_face): Free only GCs that are created by
23064 ftxfont_create_gcs.
23065 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23066
23067 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23068 Clip to src->width, etc (not src->clip_XXX).
23069
23070 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23071 FontBackend frame parameter.
23072
23073 2008-02-01 Kenichi Handa <handa@m17n.org>
23074
23075 * font.h (struct font_driver_list): New member `on'.
23076 (Fclear_font_cache): EXFUN it.
23077 (font_update_drivers): Extern it.
23078
23079 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23080 (font_list_entities): Check driver_list->on.
23081 (register_font_driver): Initialize `on' member to 0.
23082 (font_update_drivers): New function.
23083 (Fclear_font_cache): Check driver_list->on.
23084
23085 * frame.h (Qfont_backend): Extern it.
23086 (x_set_font_backend): Extern it.
23087
23088 * frame.c (Qfont_backend): New variable.
23089 (frame_parms): New element for font-backend.
23090 (x_set_font_backend): New function.
23091
23092 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23093 FontBackend frame parameter.
23094 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23095 x_set_font_backend.
23096
23097 * xfont.c (xfont_list): Don't try listing by :name property if the
23098 name is not for XLFD.
23099
23100 2008-02-01 Kenichi Handa <handa@m17n.org>
23101
23102 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23103 (LGLYPH_SET_TO): New macros.
23104 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23105 element of G is vector or not.
23106 (font_at): Extern it.
23107
23108 * font.c: Include window.h.
23109 (font_lispy_object): New function.
23110 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23111 end of valid glyph.
23112 (font_close_object): Fix getting (struct font *).
23113 (font_at): New function.
23114 (Ffont_get): If FONT is a font-object, get entity from it.
23115 (Ffont_make_gstring): Initialize elements of glyphs with nil.
23116 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23117 Fix range check.
23118 (Ffont_at): New function.
23119 (syms_of_font): Defsubr Sfont_at.
23120
23121 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23122 before the entry for Qcomposition.
23123 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23124 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23125 the font in gstring.
23126 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23127 LGLYPH_FORM (g) to detect the end of valid glyph.
23128 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23129 we are composing with gstring.
23130
23131 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23132 Check if adjustment is vector or not.
23133
23134 * Makefile.in (font.o): Make it depends on window.h.
23135
23136 2008-02-01 Kenichi Handa <handa@m17n.org>
23137
23138 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23139 adjustment is vector or not.
23140
23141 2008-02-01 Miles Bader <miles@gnu.org>
23142
23143 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23144
23145 2008-02-01 Kenichi Handa <handa@m17n.org>
23146
23147 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
23148 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
23149 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23150
23151 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23152 (DEVICE_DELTA): Fix typo.
23153 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23154 LGLYPH format.
23155
23156 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23157 the change of LGLYPH format.
23158
23159 2008-02-01 Kenichi Handa <handa@m17n.org>
23160
23161 * ftfont.c (ftfont_list): Fix typo.
23162 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23163
23164 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23165
23166 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23167
23168 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23169 xftface_info is non-NULL.
23170
23171 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23172
23173 * ftfont.c (ftfont_list): Move misplaced #endif.
23174
23175 2008-02-01 Kenichi Handa <handa@m17n.org>
23176
23177 * ftfont.c (ftfont_list): Pay attention to the case that
23178 FC_CAPABILITY is not defined.
23179
23180 2008-02-01 Kenichi Handa <handa@m17n.org>
23181
23182 * xftfont.c (xftfont_open): Set charset related members to -1.
23183
23184 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23185 QCname.
23186 (ftfont_open): Set charset related members to -1.
23187
23188 * fontset.c (Votf_script_alist): New variable.
23189 (syms_of_fontset): Initialize it.
23190 (fontset_font): Delete unused variable.
23191
23192 * fontset.h (Votf_script_alist): Extern it.
23193
23194 * font.c (font_find_for_lface): Optimize code.
23195
23196 * font.h (font_close_object, font_merge_old_spec): Extern them.
23197
23198 2008-02-01 Kenichi Handa <handa@m17n.org>
23199
23200 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23201 (syms_of_font): Initialize them.
23202 (font_pixel_size): Allow float value in dpi.
23203 (font_prop_validate_type): Delete.
23204 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23205 Change caller.
23206 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23207 (font_prop_validate_extra): Delete.
23208 (font_prop_validate_spacing): New function.
23209 (font_property_table): Add elements for all known properties.
23210 (get_font_prop_index): Rename from check_font_prop_name.
23211 New argument FROM. Change caller.
23212 (font_prop_validate): Validate all known properties.
23213 (font_put_extra): Delete argument force. Change caller.
23214 (font_expand_wildcards): Make it static. Fix the way of shrinking
23215 the possible range.
23216 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23217 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23218 Change caller.
23219 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23220 (font_parse_fcname): Delete argument merge. Fix parsing of point
23221 size. Don't validate properties values here. Change caller.
23222 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23223 (font_open_by_name): Delete unused variable.
23224 (Ffont_spec): Likewise. Validate property values.
23225 (Ffont_match_p): New function.
23226
23227 * font.h (QCscalable): Extern it.
23228 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23229
23230 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23231
23232 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23233 (xfont_list_pattern): New function.
23234 (xfont_list): Use xfont_list_pattern.
23235
23236 2008-02-01 Kenichi Handa <handa@m17n.org>
23237
23238 * font.h (Flist_fonts): EXFUN it.
23239
23240 2008-02-01 Jason Rumney <jasonr@gnu.org>
23241
23242 * w32term.c (w32_initialize): Add back smoothing_type and
23243 smoothing_enabled definitions.
23244
23245 2008-02-01 Kenichi Handa <handa@m17n.org>
23246
23247 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23248 s->face->font on determining underline position.
23249
23250 2008-02-01 Kenichi Handa <handa@m17n.org>
23251
23252 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23253 (font_has_char): Accept font-object too.
23254 (font_find_for_lface): Try at first with a size specified in face.
23255
23256 2008-02-01 Kenichi Handa <handa@m17n.org>
23257
23258 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23259 font_open_by_name.
23260
23261 2008-02-01 Kenichi Handa <handa@m17n.org>
23262
23263 * font.h (QCspacing, QCdpi): Extern them.
23264 (enum font_spacing): New enum.
23265 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23266
23267 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23268 (QCspacing, QCdpi): New variables.
23269 (syms_of_font): Initialize them.
23270 (font_pixel_size): New function.
23271 (font_put_extra): New function.
23272 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23273 in FONT_EXTRA.
23274 (font_parse_fcname): Handle enumerated values (e.g. bold).
23275 Fix handling font size. Add QCname property that contains only
23276 unknown properties.
23277 (font_score): Change argument. Change caller. Pay attention to
23278 FONT_PIXEL_SIZE_QUANTUM.
23279 (font_sort_entites, font_list_entities, font_find_for_lface)
23280 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23281 (Ffont_spec): Add QCname property that contains only unknown properties.
23282
23283 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23284 Don't include weight in listing pattern, instead check weight of each
23285 listed font. Don't include scalable in pattern. Pay attention to
23286 FONT_PIXEL_SIZE_QUANTUM.
23287
23288 2008-02-01 Kenichi Handa <handa@m17n.org>
23289
23290 * font.c (font_parse_fcname): Fix parsing of point-size.
23291 (font_unparse_fcname): Produce symbolic names for style properties.
23292 (font_list_entities): Handle float size correctly.
23293 (font_open_by_name): Prefer `normal' property values if the name
23294 doesn't specify them.
23295
23296 * fontset.c (Finternal_char_font): Use font_get_name, not
23297 Ffont_xlfd_name.
23298
23299 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23300 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23301 pattern. Don't force scalable.
23302
23303 * xftfont.c (xftfont_open): For generating a name, start from
23304 96-byte buffer.
23305
23306 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23307
23308 * frame.h (x_new_fontset2): Fix prototype.
23309
23310 2008-02-01 Kenichi Handa <handa@m17n.org>
23311
23312 * font.h (struct font_driver): Delete member parse_name.
23313 (font_match_p, font_get_spec, font_parse_fcname)
23314 (font_unparse_fcname): Extern them.
23315 (font_get_name): Adjust prototype.
23316
23317 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23318 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
23319 (font_expand_wildcards): Fix handling ENCODING field.
23320 Avoid unnecessary checks for weight, slant, and swidth.
23321 (font_parse_fcname): New function.
23322 (font_unparse_fcname): New function.
23323 (font_parse_name): New function.
23324 (font_match_p): New function.
23325 (font_get_name): Change return value to Lisp string.
23326 (font_get_spec): New function.
23327 (Qunspecified, Qignore_defface): Don't extern them.
23328 (font_find_for_lface): Assume that LFACE is fully specified.
23329 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23330 object, use it for FACE.
23331 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23332 driver->parse_name.
23333 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23334
23335 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23336 prototype.
23337
23338 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23339 argument F. Don't call Fnew_fontset. Instead, directly call
23340 make_fontset.
23341
23342 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23343
23344 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23345 of x_new_fontset2.
23346
23347 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23348 (Qsans__serif): New variables.
23349 (ftfont_generic_family_list): New variable.
23350 (syms_of_ftfont): Initialize the above variables.
23351 (ftfont_pattern_entity): Delete argument NAME.
23352 (ftfont_list_generic_family): New function.
23353 (ftfont_parse_name): Delete this function.
23354 (ftfont_list): Try generic family only when FcFontList found no font.
23355 (ftfont_list_family): Fix args to FcObjectSetBuild.
23356
23357 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23358 object in attrs[LFACE_FONT_INDEX].
23359 (set_lface_from_font_name): Cancel all changes for font-backend.
23360 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23361 function.
23362 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23363 font object in QCfont attribute.
23364 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23365 (realize_default_face) [USE_FONT_BACKEND]: Call
23366 set_lface_from_font_and_fontset.
23367
23368 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23369 "fixed", and signal error here if no suitable font was found.
23370
23371 * xfont.c (xfont_parse_name): Delete this function.
23372
23373 * xftfont.c (xftfont_open): Change coding style of error
23374 handling. Generate fontconfig's fontname pattern.
23375
23376 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23377 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23378
23379 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23380 Both args FONTSET and FONT_OBJECT must be existing ones.
23381
23382 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23383
23384 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23385
23386 2008-02-01 Kenichi Handa <handa@m17n.org>
23387
23388 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23389
23390 * font.h (struct font): Fix typo.
23391
23392 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23393 XLFD_XXX_INDEX.
23394 (enum xlfd_field_mask): New enum.
23395 (intern_font_field): Change argument. Change caller. If digits
23396 are followed by non-digits, return a symbol.
23397 (font_expand_wildcards): New function.
23398 (font_parse_xlfd): Fix wildcard handling.
23399 (Ffont_spec): If :name is specified, reflect the info in the other
23400 properties.
23401
23402 * ftfont.c (ftfont_pattern_entity): Fix typo.
23403 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23404 locale.
23405
23406 2008-02-01 Kenichi Handa <handa@m17n.org>
23407
23408 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23409
23410 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23411 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23412 registry doesn't specify encoding part.
23413 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23414 (font_open_by_name): At first try parsing the name.
23415 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23416 as Lisp symbols.
23417
23418 * fontset.c (reorder_font_vector): Pay attention to the case that
23419 the 3rd element of font_def is nil.
23420 (fontset_font): For the default fontset, append one more fontset
23421 elements for a script-based font specification. Don't add script
23422 attribute on finding a font.
23423 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23424 font name.
23425 (fontset_ascii_font): If a font can't be opened, return nil.
23426
23427 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23428 (ftfont_pattern_entity): New function.
23429 (ftfont_get_cache): Assume that freetype_font_cache is already
23430 initialized.
23431 (ftfont_list): Handle the case that a file is specified in font
23432 name. Use ftfont_pattern_entity to generate entities.
23433 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23434 (syms_of_ftfont): Initialize freetype_font_cache.
23435
23436 * xftfont.c (xftfont_open): Make the font name fontconfig's
23437 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23438 (xftfont_close): Free font->font.name if not NULL.
23439
23440 * xfont.c (xfont_list): If script is specified for a font, return
23441 null_vector.
23442 (xfont_list_family): Declare argument type.
23443
23444 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23445 name, set LFACE_FONT (lface) to nil.
23446
23447 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23448 return Qnil.
23449
23450 2008-02-01 Kenichi Handa <handa@m17n.org>
23451
23452 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23453 (standard_args): Add "-enable-font-backend".
23454
23455 2008-02-01 Kenichi Handa <handa@m17n.org>
23456
23457 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23458 (struct xftdraw_list, xftdraw_list): Delete them.
23459 (register_xftdraw, check_xftdraw): Delete them.
23460 (xftfont_prepare_face): Don't call register_xftdraw.
23461 (xftfont_done_face): Don't call check_xftdraw.
23462 (xftfont_draw): Get background color only when with_background is
23463 nonzero.
23464
23465 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23466
23467 2008-02-01 Kenichi Handa <handa@m17n.org>
23468
23469 These changes are for the new font handling codes.
23470
23471 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23472 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23473 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23474 (FONTSRC, FONTOBJ): New variables.
23475 (obj): Add $(FONTOBJ).
23476 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23477 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23478 @LIBOTF_LIBS@.
23479 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23480 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23481
23482 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23483
23484 * character.h (Vscript_representative_chars): Extern it.
23485
23486 * character.c (Vscript_representative_chars): New variable.
23487 (syms_of_character): Declare it as a Lisp variable.
23488
23489 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23490 enable_font_backend is nonzero, accept the composition method
23491 COMPOSITION_WITH_GLYPH_STRING.
23492
23493 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23494 enumeration COMPOSITION_WITH_GLYPH_STRING.
23495
23496 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23497 members clip_x, clip_y, clip_width, and clip_height.
23498 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23499
23500 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23501 --enable-font-backend. Call syms_of_font.
23502
23503 * fns.c (assoc_no_quit): New function.
23504
23505 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23506 (face_for_font, new_fontset_from_font)
23507 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23508
23509 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23510 (fontset_font, fontset_ascii, face_for_char)
23511 (make_fontset_for_ascii_face, Ffont_info)
23512 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23513 is nonzero, use font-backend mechanism.
23514 (find_font_encoding): Make it non-static.
23515 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23516 New functions.
23517
23518 * frame.h (struct frame): New members resx and resy.
23519 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23520 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23521
23522 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23523 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23524
23525 * lisp.h (assoc_no_quit): Extern it.
23526
23527 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23528 Through out the file, use FONT_INFO_FROM_FACE instead of
23529 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23530 rif->per_char_metric.
23531 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23532 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23533 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23534 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23535 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23536 nonzero, use font-backend mechanism.
23537 (get_per_char_metric): New function.
23538
23539 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23540 (set_lface_from_font_name)
23541 (set_font_frame_param, free_realized_face)
23542 (prepare_face_for_display, clear_face_gcs)
23543 (Finternal_set_font_selection_order, realize_x_face)
23544 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23545 font-backend mechanism.
23546 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23547 (load_face_font) [USE_FONT_BACKEND]: Abort.
23548 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23549 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23550
23551 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23552 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23553 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
23554 nonzero, register all available font drivers.
23555 Call x_default_font_parameter for deciding a font.
23556 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23557
23558 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23559 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23560 (x_set_glyph_string_clipping_exactly)
23561 (x_compute_glyph_string_overhangs)
23562 (x_draw_glyph_string_foreground)
23563 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23564 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23565 enable_font_backend is nonzero, use font-backend mechanism.
23566 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23567
23568 2008-02-01 Kenichi Handa <handa@m17n.org>
23569
23570 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23571 system_eol_type.
23572 (syms_of_coding): Initialize system_eol_type.
23573
23574 * process.c (Fset_process_coding_system): Inherit system's eol
23575 format if necessary.
23576
23577 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23578
23579 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23580
23581 2008-02-01 Kenichi Handa <handa@m17n.org>
23582
23583 * coding.c (decode_eol): Pay attention to buffer relocation in
23584 del_range_2.
23585 (decode_coding): Call decode_eol before restoring undo_list.
23586
23587 2008-02-01 Kenichi Handa <handa@m17n.org>
23588
23589 * charset.c (Fdefine_charset_internal): Fix setting of
23590 emacs_mule_bytes.
23591
23592 2008-02-01 Kenichi Handa <handa@m17n.org>
23593
23594 * keyboard.c (read_char): Check if C is a character or not before
23595 looking up Vkeyboard_translate_table.
23596
23597 2008-02-01 Kenichi Handa <handa@m17n.org>
23598
23599 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23600 Fix condition to terminate the loop.
23601
23602 2008-02-01 Kenichi Handa <handa@m17n.org>
23603
23604 * coding.c (produce_composition): Compare charbuf[i] instead of
23605 args[i] against 0.
23606 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23607
23608 2008-02-01 Kenichi Handa <handa@m17n.org>
23609
23610 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23611 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23612 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23613 detect_coding.
23614 (emacs_mule_char): Handle old style (Emacs 20) component character
23615 of a composition.
23616 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23617 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23618 composition rule.
23619 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23620
23621 2008-02-01 Kenichi Handa <handa@m17n.org>
23622
23623 * coding.c (encode_coding_ccl): Allocate destination dynamically
23624 when necessary.
23625
23626 2008-02-01 Kenichi Handa <handa@m17n.org>
23627
23628 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23629 the loop. When quitted, show a proper error message.
23630
23631 2008-02-01 Kenichi Handa <handa@m17n.org>
23632
23633 * xterm.c (x_set_glyph_string_clipping_exactly):
23634 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
23635
23636 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23637 character sequence.
23638 (Fccl_execute_on_string): Use ASET, not XSET.
23639
23640 2008-02-01 Kenichi Handa <handa@m17n.org>
23641
23642 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23643
23644 2008-02-01 Kenichi Handa <handa@m17n.org>
23645
23646 * coding.c (decode_coding): Fix the condition of terminating the
23647 decoding loop.
23648
23649 2008-02-01 Kenichi Handa <handa@m17n.org>
23650
23651 * data.c (Faset): On setting a character bigger than 255 in a
23652 unibyte string, signal an error instead of make the string multibyte.
23653
23654 2008-02-01 Kenichi Handa <handa@m17n.org>
23655
23656 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23657 made by a mapping table.
23658
23659 2008-02-01 Kenichi Handa <handa@m17n.org>
23660
23661 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23662 not.
23663 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23664 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23665
23666 * xterm.c (x_draw_composite_glyph_string_foreground):
23667 Check s->face is NULL or not.
23668
23669 2008-02-01 Kenichi Handa <handa@m17n.org>
23670
23671 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23672 (x_draw_glyph_string): Fix drawing of right_overhang and
23673 left_overhang around/on cursor.
23674
23675 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23676
23677 2008-02-01 Kenichi Handa <handa@m17n.org>
23678
23679 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23680
23681 2008-02-01 Kenichi Handa <handa@m17n.org>
23682
23683 * coding.c (Fdefine_coding_system_internal)
23684 (Fdefine_coding_system_alias): Avoid a duplicated element in
23685 Vcoding_system_alist.
23686
23687 2008-02-01 Kenichi Handa <handa@m17n.org>
23688
23689 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23690
23691 * coding.c (Qcoding_system_define_form): New variable.
23692 (syms_of_coding): Intern and staticpro it.
23693 (Fcoding_system_p): Check Qcoding_system_define_form.
23694 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23695
23696 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23697 Fcoding_system_p.
23698 (CHECK_CODING_SYSTEM): If ID is not available, call
23699 Fcheck_coding_system.
23700 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23701 Try also Fcheck_coding_system.
23702
23703 2008-02-01 Kenichi Handa <handa@m17n.org>
23704
23705 * coding.c (code_conversion_restore): GCPRO arg.
23706
23707 2008-02-01 Kenichi Handa <handa@m17n.org>
23708
23709 * character.c (lisp_string_width): Check multibyteness of STRING.
23710
23711 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23712
23713 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23714 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23715 (decode_mac_font_name): Use decode_coding_c_string instead of
23716 decode_coding.
23717 (x_load_font): Initialize fontp->fontset to -1.
23718 Set fontp->encoding_type.
23719
23720 2008-02-01 Kenichi Handa <handa@m17n.org>
23721
23722 * search.c (search_buffer): Give up BM search on case-fold-search
23723 if one of a target character has a case-equivalence of different
23724 byte length even if that target character is an ASCII.
23725 (simple_search): Fix calculation of byte length of matched text.
23726 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23727
23728 2008-02-01 Kenichi Handa <handa@m17n.org>
23729
23730 * coding.c (decode_coding): Fix handling of invalid bytes.
23731
23732 2008-02-01 Kenichi Handa <handa@m17n.org>
23733
23734 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23735 Unicode characters.
23736
23737 2008-02-01 Kenichi Handa <handa@m17n.org>
23738
23739 * coding.c (encode_coding_object): If a pre-write-conversion
23740 function makes a new buffer, kill it.
23741
23742 2008-02-01 Kenichi Handa <handa@m17n.org>
23743
23744 * coding.c (QCascii_compatible_p): New variable.
23745 (syms_of_coding): Initialize it.
23746 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23747 calling string_char.
23748 (record_conversion_result): Add `default:' case.
23749 (coding_charset_list): Delete unused variable `coding_type'.
23750 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23751 property in the plist of the coding system.
23752 (Fcoding_system_put): Check QCascii_compatible_p.
23753
23754 2008-02-01 Miles Bader <miles@gnu.org>
23755
23756 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23757 removed calculation of frame `f', as it's now used.
23758
23759 2008-02-01 Kenichi Handa <handa@m17n.org>
23760
23761 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23762 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23763 (UNIDATA): New variable.
23764 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
23765 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23766 Run $(RUN_TEMACS) unconditionally.
23767
23768 2008-02-01 Kenichi Handa <handa@m17n.org>
23769
23770 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23771 (admindir): New variable.
23772 ($(lispsource)international/charprop.el): New target.
23773
23774 2008-02-01 Miles Bader <miles@gnu.org>
23775
23776 * character.c (chars-in-region): Remove obsolete function.
23777 (syms_of_character): Remove its initialization.
23778
23779 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23780
23781 * w32select.c (validate_coding_system)
23782 (setup_windows_coding_system): New functions.
23783 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23784 Use setup_windows_coding_system.
23785 (setup_config, Fw32_get_clipboard_data):
23786 Use validate_coding_system.
23787 (Fx_selection_exists): Move call to setup_config to a place
23788 where signals are allowed.
23789
23790 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23791 (Fcheck_coding_system): Add declarations.
23792
23793 2008-02-01 Kenichi Handa <handa@m17n.org>
23794
23795 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23796
23797 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23798
23799 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23800 string as the second argument for x_new_fontset.
23801
23802 2008-02-01 Kenichi Handa <handa@m17n.org>
23803
23804 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23805 (encode_coding_object): Use safe_call instead of call2.
23806
23807 2008-02-01 Kenichi Handa <handa@m17n.org>
23808
23809 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23810
23811 * Makefile.in (lisp): Include charprop.el.
23812
23813 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23814
23815 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23816 Not sure if it's unnecessary.
23817
23818 2008-02-01 Steven Tamm <steventamm@mac.com>
23819
23820 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23821 some possibly unnecessary fontset checking code that crashed
23822 when creating a new frame.
23823
23824 2008-02-01 Kenichi Handa <handa@m17n.org>
23825
23826 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23827 lookup_face.
23828
23829 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23830
23831 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23832
23833 2008-02-01 Kenichi Handa <handa@m17n.org>
23834
23835 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23836 (coding_charset_list): New function.
23837
23838 * coding.h (coding_charset_list): Extern it.
23839
23840 2008-02-01 Kenichi Handa <handa@m17n.org>
23841
23842 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23843 concatenation of family and registry.
23844
23845 2008-02-01 Kenichi Handa <handa@m17n.org>
23846
23847 * character.h (BYTE8_STRING): Fix typo.
23848
23849 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23850 string to multibyte (sync to HEAD).
23851
23852 * casefiddle.c (casify_region): Handle changes in byte-length
23853 using replace_range_2 (sync to HEAD).
23854
23855 2008-02-01 Andreas Schwab <schwab@suse.de>
23856
23857 * chartab.c (map_char_table): GCPRO table and arg.
23858
23859 2008-02-01 Kenichi Handa <handa@m17n.org>
23860
23861 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23862 already at limit.
23863
23864 2008-02-01 Kenichi Handa <handa@m17n.org>
23865
23866 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23867 instead of fast_c_string_match_ignore_case.
23868 (find_font_encoding): Change argument to Lisp_Object.
23869 Use fast_string_match_ignore_case instead of
23870 fast_c_string_match_ignore_case. Change caller.
23871
23872 2008-02-01 Kenichi Handa <handa@m17n.org>
23873
23874 * xdisp.c (get_next_display_element): In unibyte case, decide to
23875 display in octal form by checking a character by
23876 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23877
23878 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23879
23880 * character.c (unibyte_has_multibyte_table): New variable.
23881
23882 * character.h (unibyte_has_multibyte_table): Extern it.
23883 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23884
23885 2008-02-01 Kenichi Handa <handa@m17n.org>
23886
23887 * coding.c (encode_coding_iso_2022): Fix handling of charset
23888 annotation.
23889
23890 2008-02-01 Kenichi Handa <handa@m17n.org>
23891
23892 * coding.c (setup_coding_system): If coding_system is nil, use
23893 Qundecided.
23894 (Fterminal_coding_system): Return nil if terminal coding system is
23895 `undecided'.
23896 (syms_of_coding): Define coding-system `undecided' here.
23897 Setup terminal_coding as `undecided'.
23898
23899 2008-02-01 Kenichi Handa <handa@m17n.org>
23900
23901 * xdisp.c (message_dolog, set_message_1):
23902 Call unibyte_char_to_multibyte with arg type int.
23903
23904 * lread.c (read1): Fix reading of a char-table.
23905
23906 * print.c (print_object): Include sub char-table in circularities
23907 detection.
23908
23909 2008-02-01 Kenichi Handa <handa@m17n.org>
23910
23911 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23912 Append the found sequences in car of ARGS instead of prepending.
23913
23914 2008-02-01 Kenichi Handa <handa@m17n.org>
23915
23916 * fileio.c (report_file_error): Make a unibyte string from
23917 strerror (errorno).
23918 (Fsubstitute_in_file_name): Fix the arg to
23919 unibyte_char_to_multibyte. It is evaluated twice.
23920
23921 2008-02-01 Kenichi Handa <handa@m17n.org>
23922
23923 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23924
23925 2008-02-01 Kenichi Handa <handa@m17n.org>
23926
23927 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23928 BOM is not found.
23929 (detect_coding, detect_coding_system): Optimization for ISO-2022
23930 when no 8-bit data is found.
23931
23932 2008-02-01 Jason Rumney <jasonr@gnu.org>
23933
23934 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23935
23936 2008-02-01 Kenichi Handa <handa@m17n.org>
23937
23938 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23939 CHARS.
23940
23941 2008-02-01 Steven Tamm <steventamm@mac.com>
23942
23943 * macterm.c (mac_encode_char): Add charset argument and update
23944 to use encoding_type.
23945 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
23946 switch to pure fontset.
23947 (decode_mac_font_name): Temporarily remove decoding.
23948 (x_font_name_to_mac_font_name): Temporarily remove encoding.
23949 (x_load_font): Temporarily remove encoding.
23950
23951 2008-02-01 Kenichi Handa <handa@m17n.org>
23952
23953 * xfaces.c (Fface_font): If frame is not on a window system,
23954 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
23955 refer to face->font.
23956 (split_font_name_into_vector, build_font_name_from_vector)
23957 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
23958 when HAVE_WINDOW_SYSTEM is defined.
23959
23960 2008-02-01 Kenichi Handa <handa@m17n.org>
23961
23962 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
23963 (x_produce_glyphs): Fix setting of members of cmp in case
23964 cmp->glyph_len is zero.
23965
23966 * fontset.c (Fset_fontset_font): Fix docstring.
23967 (Ffontset_info): Make it backward compatible. New arg ALL.
23968
23969 2008-02-01 Kim F. Storm <storm@cua.dk>
23970
23971 * process.c (read_process_output): Grow decoding_buf when needed;
23972 this could cause a crash in allocate_string and compact_small_strings.
23973
23974 2008-02-01 Kenichi Handa <handa@m17n.org>
23975
23976 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
23977
23978 2008-02-01 Kenichi Handa <handa@m17n.org>
23979
23980 * coding.c (setup_coding_system): Set coding->common_flags
23981 correctly for raw-text.
23982 (consume_chars): On encoding unibyte text by raw-text, don't check
23983 multibyte form.
23984 (encode_coding): On encoding by raw-text, never use translation tables.
23985
23986 * fileio.c (e_write): Short cut for the case of no encoding.
23987
23988 2008-02-01 Kenichi Handa <handa@m17n.org>
23989
23990 * coding.c (detect_coding, detect_coding_system): Delete unused
23991 variables.
23992
23993 2008-02-01 Kenichi Handa <handa@m17n.org>
23994
23995 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
23996 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
23997
23998 2008-02-01 Kenichi Handa <handa@m17n.org>
23999
24000 * coding.c (Ffind_coding_systems_region_internal):
24001 Include raw-text and no-conversion in the result.
24002
24003 2008-02-01 Kenichi Handa <handa@m17n.org>
24004
24005 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24006 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24007 FONT_DEF.
24008 (font_def_arg, add_arg, from_arg, to_arg): New args.
24009 (set_fontset_font): Change argument.
24010 (Fset_fontset_font): Fix for the case that TARGET is a script
24011 name and charset name.
24012 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24013
24014 2008-02-01 Kenichi Handa <handa@m17n.org>
24015
24016 * fontset.c (fontset_font): Rename from fontset_face. Change return
24017 value.
24018 (face_suitable_for_char_p, face_for_char): Adjust for the change
24019 of fontset_font.
24020 (make_fontset_for_ascii_face): Fix setting of the fontset element
24021 for ASCII.
24022 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24023 to get a font name.
24024 (Ffontset_info): Adjust for the change of fontset_font.
24025
24026 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24027
24028 * character.h (LEADING_CODE_LATIN_1_MIN)
24029 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24030
24031 2008-02-01 Kenichi Handa <handa@m17n.org>
24032
24033 * editfns.c (check_translation): New function.
24034 (Ftranslate_region_internal): Handle M:N mapping.
24035
24036 2008-02-01 Kenichi Handa <handa@m17n.org>
24037
24038 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24039
24040 2008-02-01 Kenichi Handa <handa@m17n.org>
24041
24042 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24043 goto invalid_code.
24044 (decode_coding_iso_2022): Fix handling of invalid designation.
24045
24046 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24047 after calling code_conversion_save.
24048
24049 2008-02-01 Kenichi Handa <handa@m17n.org>
24050
24051 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24052
24053 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24054
24055 * fontset.c: Include "intervals.h".
24056 (fontset_face): Fix comparing of Lisp_Objects.
24057 (free_face_fontset, new_fontset_from_font_name):
24058 Fix Lisp_Object/int mixup.
24059
24060 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24061
24062 * coding.c: Add many prototypes for static functions.
24063 (get_translation_table): Allow max_lookup to be NULL.
24064 (decode_coding, Ffind_coding_systems_region_internal)
24065 (Funencodable_char_position, Fcheck_coding_systems_region):
24066 Call get_translation_table with max_lookup NULL.
24067
24068 2008-02-01 Kenichi Handa <handa@m17n.org>
24069
24070 * coding.c (get_translation_table): Declare it as Lisp_Object.
24071 (LOOKUP_TRANSLATION_TABLE): New macro.
24072 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24073 instead of CHAR_TABLE_REF.
24074
24075 2008-02-01 Kenichi Handa <handa@m17n.org>
24076
24077 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24078 annotation data format.
24079 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24080 Change arguments FROM and TO to single argument NCHARS. Change caller.
24081 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24082 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24083 (decode_coding_ccl, decode_coding_charset): Pay attention to
24084 coding->charbuf_used.
24085 (get_translation): New function.
24086 (produce_chars): New arguments translation_table and last_block.
24087 Translate characters here. Return number of carryover chars.
24088 Change caller.
24089 (produce_composition): New argument pos. Change caller.
24090 Adjust for the change of annotation data format.
24091 (produce_charset, produce_annotation): Likewise.
24092 (decode_coding, encode_coding): Don't call translate_chars.
24093 (consume_chars): New arg translation_table. Change caller.
24094 (translate_chars): Delete.
24095 (syms_of_coding): Make translation-table's number of extra slots 2.
24096
24097 2008-02-01 Kenichi Handa <handa@m17n.org>
24098
24099 * search.c (simple_search): Fix setting this_pos_byte in backward
24100 search.
24101
24102 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24103 byte sequence.
24104 (detect_coding_ccl): Fix setting of the variable valids.
24105
24106 2008-02-01 Kenichi Handa <handa@m17n.org>
24107
24108 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24109
24110 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24111
24112 * editfns.c (Ftranslate_region_internal): Rename from
24113 Ftranslate_region. Accept a char-table in TABLE.
24114 (syms_of_editfns): Defsubr Stranslate_region_internal.
24115
24116 * xfaces.c (set_lface_from_font_name): If a font is specified for
24117 a frame, generate a fontset from the font.
24118 (build_scalable_font_name): If the scalable font is requested for
24119 a specific size, don't change that size.
24120 (try_font_list): Try a scalable font also in the case that a
24121 pattern string is specified.
24122
24123 2008-02-01 Kenichi Handa <handa@m17n.org>
24124
24125 * xfaces.c (Fface_font): New optional arg CHARACTER.
24126
24127 2008-02-01 Kenichi Handa <handa@m17n.org>
24128
24129 * charset.h (CHARSET_OFFSET): New macro.
24130
24131 2008-02-01 Kenichi Handa <handa@m17n.org>
24132
24133 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24134
24135 * fontset.c (fontset_face): Handle the case that repertory is a
24136 char-table.
24137 (find_font_encoding): Return nil for unknown encoding.
24138 (Fset_fontset_font): Ignore a font of unknown encoding.
24139
24140 2008-02-01 Kenichi Handa <handa@m17n.org>
24141
24142 * keymap.c (describe_vector): Handle default value of a char table.
24143
24144 * fontset.c (fontset_face): Handle fallback fonts correctly.
24145 (Ffontset_info): Return infomation about fallback fonts.
24146
24147 2008-02-01 Kenichi Handa <handa@m17n.org>
24148
24149 * fontset.c (FONTSET_DEFAULT): New macro.
24150 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24151 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24152 the case that it is nil.
24153 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24154 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24155
24156 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24157 subset or superset.
24158
24159 2008-02-01 Kenichi Handa <handa@m17n.org>
24160
24161 * emacs.c (main): Call init_charset after syms_of_XXX.
24162
24163 * charset.c (Vcharset_map_directory): Delete.
24164 (Vcharset_map_path): New variable.
24165 (load_charset_map_from_file): Use Vcharset_map_path instead.
24166 (init_charset): Initialize Vcharset_map_path.
24167 (syms_of_charset): Delete declaration of "charset-map-directory",
24168 add declaration of "charset-map-path".
24169
24170 2008-02-01 Kenichi Handa <handa@m17n.org>
24171
24172 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24173 ASCII only string.
24174
24175 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24176
24177 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24178 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24179
24180 2008-02-01 Kenichi Handa <handa@m17n.org>
24181
24182 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24183
24184 * coding.c (QCmnemonic, QCdefalut_char)
24185 (QCdecode_translation_table, QCencode_translation_table)
24186 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24187 (get_translation_table): Return a list of translation tables if
24188 necessary.
24189 (decode_coding): Call get_translation_table with ENCODEP 0.
24190 (char_encodable_p): If translation_table is non-nil, always call
24191 translate_char.
24192 (Fdefine_coding_system_internal): Accept list of translation
24193 tables as :encode-translation-table and :decode-translation-table.
24194 (Fcoding_system_put): New function.
24195 (syms_of_coding): Declare new symbols.
24196 Defsubr Scoding_system_put.
24197 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24198 typically JISX0212.
24199
24200 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24201 when the charset is superset type.
24202
24203 * character.c (translate_char): Accept list of translation tables.
24204
24205 2008-02-01 Kenichi Handa <handa@m17n.org>
24206
24207 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24208 (CODING_ATTR_TRANS_TBL): New macro.
24209
24210 * coding.c (get_translation_table): New function.
24211 (translate_chars): Fix the bug of skipping annotation data.
24212 (decode_coding, encode_coding): Utilize get_translation_table.
24213 (char_encodable_p, Funencodable_char_position): Translate char if
24214 necessary.
24215 (Ffind_coding_systems_region_internal)
24216 (Fcheck_coding_systems_region): Setup translation table for encode
24217 in a coding system attribute vector in advance.
24218 (Fdefine_coding_system_internal): Allow a symbol as translation
24219 table. For shift-jis type coding system, allow 4th charset.
24220
24221 2008-02-01 Kenichi Handa <handa@m17n.org>
24222
24223 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24224
24225 * xdisp.c (get_next_display_element): Pass -1 as POS to
24226 FACE_FOR_CHAR if displaying a C-string.
24227
24228 2008-02-01 Kenichi Handa <handa@m17n.org>
24229
24230 * composite.c (get_composition_id): Handle xoff and yoff in a
24231 composition rule.
24232
24233 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24234 (struct composition): New member lbearing and rbearing.
24235
24236 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24237 (x_get_glyph_overhangs): Handle a composition glyph.
24238 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24239
24240 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24241 composition glyph.
24242
24243 2008-02-01 Kenichi Handa <handa@m17n.org>
24244
24245 * print.c: Include charset.h.
24246 (Vprint_charset_text_property): New variable.
24247 (Qdefault): Extern it.
24248 (PRINT_STRING_NON_CHARSET_FOUND)
24249 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24250 (print_check_string_result): New variable.
24251 (print_check_string_charset_prop): New function.
24252 (print_prune_charset_plist): New variable.
24253 (print_prune_string_charset): New function.
24254 (print_object): Call print_prune_string_charset if
24255 Vprint_charset_text_property is not t.
24256 (print_interval): Print nothing if interval->plist is nil.
24257 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24258 variable. Init and staticpro print_prune_charset_plist.
24259
24260 2008-02-01 Kenichi Handa <handa@m17n.org>
24261
24262 * fontset.c (new_fontset_from_font_name): Use the specified font
24263 for all characters in the new fontset.
24264
24265 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24266 OBJECT args.
24267
24268 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24269 OBJECT args for composition too.
24270
24271 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24272 OBJECT args.
24273
24274 2008-02-01 Kenichi Handa <handa@m17n.org>
24275
24276 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24277
24278 * fontset.c (reorder_font_vector): Adjust for the change of
24279 FONT_DEF format.
24280 (fontset_face): New arg id. Change caller.
24281 (face_for_char): New args pos and object.
24282 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24283 (fs_query_fontset): Check NAME by Fassoc too.
24284 (Fset_fontset_font): Allow non-XLFD font name.
24285 (Ffontset_info): Adjust for the change of FONT_DEF format.
24286
24287 * fontset.h (face_for_char): Adjust prototype.
24288
24289 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24290 (append_space, extend_face_to_end_of_line)
24291 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24292 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24293
24294 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24295 POS and OBJECT args.
24296
24297 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24298 POS and OBJECT args.
24299
24300 2008-02-01 Jason Rumney <jasonr@gnu.org>
24301
24302 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24303 of GlobalAlloc'ed memory.
24304
24305 2008-02-01 Kenichi Handa <handa@m17n.org>
24306
24307 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24308
24309 * charset.h (charset_table_used): Delete extern.
24310
24311 * charset.c (charset_table_used): Make it static.
24312 (map_charset_chars): Fix args to c_function with.
24313
24314 * chartab.c (map_sub_char_table_for_charset): Fix args to
24315 c_function with.
24316
24317 * coding.h (enum coding_result_code):
24318 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
24319
24320 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24321 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24322 (Vlast_code_conversion_error): New variables.
24323 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24324 (ONE_MORE_BYTE): Record error if any instead of signaling an
24325 error. If non-ASCII multibyte char is found, return the negative
24326 value of the code. All callers changed to check it.
24327 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24328 (record_conversion_result): New function. Change all codes setting
24329 coding->result to call this function.
24330 (detect_coding_utf_8, decode_coding_utf_8)
24331 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24332 Don't use the local variable incomplete.
24333 (emacs_mule_char): Change the second arg to `const'.
24334 (decode_coding): Fix of flushing out unprocessed data.
24335 (make_conversion_work_buffer): Fix making of a work buffer.
24336 (decode_coding_object): Return coding->dst_object.
24337
24338 * fontset.c (set_fontset_font): Fix args.
24339
24340 * lisp.h (CHARACTERBITS): Define as 22.
24341
24342 * process.c (send_process): Be sure to set coding->src_multibyte.
24343
24344 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24345
24346 2008-02-01 Kenichi Handa <handa@m17n.org>
24347
24348 * xdisp.c (handle_auto_composed_prop): Give limit to
24349 Fnext_single_char_property_change.
24350
24351 2008-02-01 Kenichi Handa <handa@m17n.org>
24352
24353 * composite.c (syms_of_composite): Don't make the composition hash
24354 table weak.
24355
24356 * fontset.c (Fset_fontset_font): Fix docstring.
24357
24358 * lisp.h (detect_coding_system): Adjust prototype.
24359
24360 * fileio.c (kill_workbuf_unwind): Delete this function.
24361 (Finsert_file_contents): Adjust the call of detect_coding_system.
24362 Get conversion_buffer by code_conversion_save. Use the macro
24363 CODING_MAY_REQUIRE_DECODING. After decoding, update
24364 coding_system.
24365
24366 * coding.h (make_conversion_work_buffer): Delete extern.
24367 (code_conversion_save): Extern it.
24368
24369 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24370 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24371 (decode_coding_utf_8): Don't do eol converion.
24372 (detect_coding_utf_16): Check coding->src_chars, not
24373 coding->src_bytes. Add heuristics for those that have no signature.
24374 (decode_coding_emacs_mule, decode_coding_iso_2022)
24375 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24376 Don't do eol converion.
24377 (adjust_coding_eol_type): Return a new coding system.
24378 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24379 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24380 each change.
24381 (decode_coding): Pay attention to undo_list. Do eol conversion for
24382 all types of coding-systems (if necessary).
24383 (Vcode_conversion_work_buf_list): Delete it.
24384 (Vcode_conversion_reused_workbuf): Rename from
24385 Vcode_conversion_reused_work_buf.
24386 (Vcode_conversion_workbuf_name): New variable.
24387 (reused_workbuf_in_use): New variable.
24388 (make_conversion_work_buffer): Delete the arg DEPTH.
24389 (code_conversion_restore): Change argument to cons.
24390 (code_conversion_save): Delete the argument BUFFER. Change callers.
24391 (detect_coding_system): New argument src_chars. Change callers.
24392 Fix for utf-16 detection.
24393 (init_coding_once): Don't use ISO_carriage_return.
24394 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24395 reused_workbuf_in_use.
24396
24397 2008-02-01 Kenichi Handa <handa@m17n.org>
24398
24399 * keymap.c (store_in_keymap): Pay attention to the case that idx
24400 is a cons specifying a character range.
24401
24402 2008-02-01 Kenichi Handa <handa@m17n.org>
24403
24404 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24405 HANDLED_RECOMPUTE_PROPS.
24406
24407 * coding.c (Fdefine_coding_system_internal): Fix checking of
24408 ascii compatibility.
24409
24410 2008-02-01 Kenichi Handa <handa@m17n.org>
24411
24412 * charset.c (find_charsets_in_text): Delete unused locale variable.
24413 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24414
24415 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24416 Resync charset_list to Vemacs_mule_charset_list.
24417
24418 * keymap.c (store_in_keymap): Pay attention to the case that idx
24419 is a cons specifying a character range.
24420
24421 2008-02-01 Kenichi Handa <handa@m17n.org>
24422
24423 * composite.c (update_compositions): Bind inhibit-read-only, etc
24424 to t before calling remove-list-of-text-properties.
24425
24426 * print.c (print_object): Always print ASCII chars as is.
24427
24428 2008-02-01 Kenichi Handa <handa@m17n.org>
24429
24430 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24431
24432 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24433 is a char table.
24434
24435 2008-02-01 Kenichi Handa <handa@m17n.org>
24436
24437 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24438
24439 2008-02-01 Kenichi Handa <handa@m17n.org>
24440
24441 * xfaces.c (set_lface_from_font_name): Fix for the case that
24442 FONTNAME is not fontset name.
24443
24444 2008-02-01 Kenichi Handa <handa@m17n.org>
24445
24446 * fns.c (base64_encode_1): Fix previous change.
24447
24448 2008-02-01 Kenichi Handa <handa@m17n.org>
24449
24450 * fontset.c (set_fontset_font): New function.
24451 (Fset_fontset_font): If a font is specified for a charset, use
24452 map_charset_chars to store the font spec in a fontset.
24453
24454 2008-02-01 Kenichi Handa <handa@m17n.org>
24455
24456 * fontset.c (fontset_face): Create a fallback fontset on demand.
24457 (make_fontset): Don't create a fallback fontset here.
24458 (free_face_fontset): Free a fallback fontset (if any) too.
24459 (n_auto_fontsets): Delete this variable.
24460 (auto_fontset_alist): New variable.
24461 (new_fontset_from_font_name): Check auto_fontset_alist.
24462 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24463 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24464 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24465 Defsubr Sfontset_list_all.
24466
24467 2008-02-01 Kenichi Handa <handa@m17n.org>
24468
24469 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24470
24471 2008-02-01 Kenichi Handa <handa@m17n.org>
24472
24473 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24474
24475 2008-02-01 Kenichi Handa <handa@m17n.org>
24476
24477 * editfns.c (Fgoto_char): Fix docstring.
24478
24479 2008-02-01 Kenichi Handa <handa@m17n.org>
24480
24481 * insdel.c (insert_from_gap): Adjust intervals correctly.
24482
24483 2008-02-01 Jason Rumney <jasonr@gnu.org>
24484
24485 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24486 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24487 (w32_initialize): Try to load it.
24488 (x_get_font_repertory): Use it if available.
24489 (w32_encode_char): Add shortcut for unicode output.
24490
24491 * w32fns.c (w32_load_system_font): Default charset to -1.
24492 (x_to_w32_charset): Match all fonts for unicode.
24493 (w32_to_x_charset): New parameter matching. Don't return partial
24494 or wildcard charsets.
24495 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24496 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24497 (w32_to_x_font): Match charset to real charset.
24498 (enum_font_cb2): Always list unicode versions.
24499
24500 * makefile.w32-in (temacs): Increase EMHEAP.
24501
24502 2008-02-01 Jason Rumney <jasonr@gnu.org>
24503
24504 * w32term.c (w32_encode_char): New charset parameter.
24505 font_info.encoding becomes encoding_type.
24506 (x_get_font_repertory): New function. Warning: stub only!
24507 (x_new_font): Return quickly if font already set.
24508 (x_new_fontset): fontsetname parameter is Lisp_Object.
24509 Use new fs_query_fontset. Try new_fontset_from_font_name.
24510 Use fontset_name for return value.
24511
24512 * w32term.h: Declare x_get_font_repertory.
24513
24514 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24515 place of find_charset_in_text. Use encode_coding_object in place
24516 of encode_coding.
24517 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24518 decode_coding.
24519
24520 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24521 of x_new_fontset.
24522 (w32_load_system_font): Initialize charset as unicode.
24523 font_info.encoding becomes encoding_type.
24524 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24525 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24526 (syms_of_w32fns): Set get_font_repertory_func.
24527
24528 * w32console.c: Include character.h. Use terminal_encode_buffer
24529 from term.c.
24530 (write_glyphs): Use new version of encode_terminal_code.
24531 Use encode_coding_object in place of encode_coding.
24532
24533 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24534 encoding becomes encoding_type.
24535
24536 * term.c (terminal_encode_buffer): Make externally visible.
24537
24538 * makefile.w32-in: Add character.h dependancies.
24539 (character.o, chartab.o): New targets.
24540
24541 2008-02-01 Kenichi Handa <handa@m17n.org>
24542
24543 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24544 CODING_ID_EOL_TYPE.
24545
24546 2008-02-01 Andreas Schwab <schwab@suse.de>
24547
24548 * coding.c (produce_chars): Revert last change.
24549
24550 2008-02-01 Kenichi Handa <handa@m17n.org>
24551
24552 * charset.h (charset_unicode): Extern it.
24553
24554 * charset.c (string_xstring_p): Check by (C >= 0x100).
24555 (find_charsets_in_text): Change format of the arc CHARSETS.
24556 New arg MULTIBYTE.
24557 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24558 change of find_charsets_in_text.
24559 (Fsplit_char): Fix doc. Never return unknown.
24560
24561 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24562
24563 * coding.c (Fdefine_coding_system_alias):
24564 Update Vcoding_system_list.
24565
24566 * fontset.c (load_font_get_repertory): Pay attention to the case
24567 that ENCODING of a font is specified by a char-table.
24568
24569 * xterm.c (x_get_font_repertory): Handle the case that the
24570 encoding of font is other than Unicode.
24571
24572 2008-02-01 Kenichi Handa <handa@m17n.org>
24573
24574 * term.c (encode_terminal_code): Don't handle glyph-table.
24575 Check if a character is encodable by the terminal coding system.
24576 If not, produces proper number of `?'s. Update
24577 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24578 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24579
24580 2008-02-01 Kenichi Handa <handa@m17n.org>
24581
24582 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24583 New variables.
24584 (encode_terminal_code): Change argument. Encode multiple
24585 characters at once. Store the result of encoding in
24586 terminal_encode_buffer.
24587 (write_glyphs, insert_glyphs): Adjust for the change of
24588 encode_terminal_code.
24589 (term_init): Initialize terminal_encode_buffer and
24590 terminal_encode_buf_size.
24591
24592 * coding.c (consume_chars): If coding->src_object is nil, don't
24593 check annotation.
24594
24595 2008-02-01 Kenichi Handa <handa@m17n.org>
24596
24597 * character.c (char_string): Use ASCII_CHAR_P instead of
24598 SINGLE_BYTE_CHAR_P.
24599
24600 2008-02-01 Kenichi Handa <handa@m17n.org>
24601
24602 * xdisp.c (handle_auto_composed_prop): Check if the last
24603 characters of auto-composed region is newly composed with the
24604 following characters.
24605 (handle_composition_prop): Fix checking of point being inside
24606 composition.
24607
24608 2008-02-01 Kenichi Handa <handa@m17n.org>
24609
24610 * fns.c (concat): Don't change multibyteness of the result by
24611 concatenating an 8-bit character.
24612
24613 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24614 multibyteness of the result when newelt is an 8-bit character.
24615
24616 2008-02-01 Dave Love <fx@gnu.org>
24617
24618 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24619 EMACS_INT.
24620
24621 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24622
24623 * xfaces.c (face_numeric_value): Declare dim size_t.
24624 (Finternal_lisp_face_equal_p): Remove unused f.
24625
24626 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24627 (MATRIX_ROW): Remove unused vars.
24628 (draw_glyphs, x_insert_glyphs, fast_find_position)
24629 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24630 byte/char counts.
24631
24632 * regex.c (regex_compile): Remove unused var.
24633
24634 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24635
24636 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24637 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24638
24639 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24640
24641 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24642
24643 * fileio.c (Fwrite_region): Remove unused var.
24644
24645 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24646 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24647
24648 * composite.c (Fremove_list_of_text_properties): Declare.
24649
24650 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24651 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24652 (coding_inherit_eol_type): Remove unused attrs.
24653 (detect_coding): Cast arg of detect_eol.
24654
24655 * charset.c (syms_of_charset): Remove unused var p.
24656 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24657 byte/char counts.
24658
24659 * casetab.c (set_case_table): Remove unused var.
24660
24661 * window.c (Fdisplay_buffer, Fframe_selected_window):
24662 Remove unused vars.
24663
24664 2008-02-01 Dave Love <fx@gnu.org>
24665
24666 * xterm.c (x_bitmap_mask): Declare.
24667
24668 2008-02-01 Dave Love <fx@gnu.org>
24669
24670 * xterm.c (x_term_init): Fix type error.
24671
24672 * lisp.h: Add Funibyte_char_to_multibyte.
24673
24674 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24675 (Fset_coding_system_priority): Doc fix.
24676
24677 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24678
24679 * indent.c (check_composition): Make start and end EMACS_INT.
24680
24681 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24682
24683 * xdisp.c (handle_composition_prop, check_point_in_composition):
24684 Make buffer positions EMACS_INT.
24685
24686 * composite.c (find_composition, run_composition_function)
24687 (update_compositions, Ffind_composition_internal): Make buffer
24688 positions EMACS_INT.
24689
24690 * composite.h (find_composition, update_compositions):
24691 Make position args EMACS_INT.
24692
24693 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24694
24695 * intervals.c (get_property_and_range):
24696 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24697
24698 * unexalpha.c: Don't include varargs.h.
24699
24700 2008-02-01 Dave Love <fx@gnu.org>
24701
24702 * coding.h (ENCODE_UTF_8): New.
24703
24704 * Makefile.in (gtkutil.o): Depend on coding.h.
24705
24706 * coding.c (Fset_coding_system_priority): Doc fix.
24707
24708 2008-02-01 Kenichi Handa <handa@m17n.org>
24709
24710 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24711 the case of auto saving.
24712
24713 2008-02-01 Andreas Schwab <schwab@suse.de>
24714
24715 * chartab.c (map_char_table, map_char_table_for_charset):
24716 Protect `range' from GC.
24717
24718 2008-02-01 Kenichi Handa <handa@m17n.org>
24719
24720 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24721
24722 2008-02-01 Kenichi Handa <handa@m17n.org>
24723
24724 * fileio.c (choose_write_coding_system): Return a decided coding system.
24725 (Fwrite_region): Set Vlast_coding_system_used to the return value
24726 of choose_write_coding_system.
24727
24728 2008-02-01 Kenichi Handa <handa@m17n.org>
24729
24730 * charset.c (Fset_charset_priority): Pay attention to duplicated
24731 arguments.
24732
24733 * coding.c (QCcategory): New variable.
24734 (syms_of_coding): Defsym it. Set all elements of
24735 Vcoding_category_table and their symbol values.
24736 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24737 coding-category-XXX, and coding-category-list.
24738 (Fdefine_coding_system_internal): Add category in the plist.
24739
24740 2008-02-01 Kenichi Handa <handa@m17n.org>
24741
24742 * callproc.c (Fcall_process): Handle carryover correctly.
24743
24744 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24745 (raw_text_coding_system): Check NILP (coding_system).
24746 (coding_inherit_eol_type): Check NILP (coding_system) and
24747 NILP (parent).
24748 (consume_chars): Fix for the case of raw-text.
24749
24750 * process.c (read_process_output): Handle carryover correctly.
24751
24752 2008-02-01 Dave Love <fx@gnu.org>
24753
24754 * regex.c (re_search_2): Fix last change.
24755
24756 2008-02-01 Kenichi Handa <handa@m17n.org>
24757
24758 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24759 target_multibyte. Even in a unibyte case, return a converted
24760 multibyte char.
24761 (GET_CHAR_AFTER): New macro.
24762 (PATFETCH): Translate via multibyte char.
24763 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24764 (SETUP_MULTIBYTE_RANGE): New macro.
24765 (regex_compile): Setup compiled code so that its multibyteness
24766 matches that of a target. Fix the handling of "[X-YZ]" using
24767 SETUP_MULTIBYTE_RANGE.
24768 (analyse_first) <charset>: For filling fastmap for all multibyte
24769 characters, don't check by BASE_LEADING_CODE_P.
24770 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24771 the same as RE_MULTIBYTE_P (bufp) now.
24772 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24773 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24774 (TRANSLATE_VIA_MULTIBYTE): New macro.
24775 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24776 It is the same as RE_MULTIBYTE_P (bufp) now.
24777 <exactn>: Translate via multibyte.
24778 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24779 Don't translate it.
24780 <charset, charset_not>: Fetch a character by
24781 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24782 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24783 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24784 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24785 by GET_CHAR_AFTER.
24786 (bcmp_translate): Likewise.
24787
24788 * search.c (compile_pattern): Check the member target_multibyte,
24789 not the member multibyte of buf.
24790
24791 * lread.c (read1): While reading a string, set force_singlebyte
24792 and force_multibyte correctly.
24793
24794 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24795 up of unibyte_to_multibyte_table.
24796
24797 2008-02-01 Kenichi Handa <handa@m17n.org>
24798
24799 * coding.c (setup_coding_system): If coding has
24800 post-read-conversion or pre-write-conversion, set
24801 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24802 respectively.
24803 (decode_coding_gap): Run post-read-conversion if any.
24804
24805 * fileio.c (Finsert_file_contents): Even if we read into a
24806 unibyte buffer, check if we must decode the result or not.
24807
24808 2008-02-01 Kenichi Handa <handa@m17n.org>
24809
24810 * coding.c (make_conversion_work_buffer): Change the work buffer
24811 name to the same one as that of Emacs 21.
24812
24813 2008-02-01 Kenichi Handa <handa@m17n.org>
24814
24815 * coding.h (make_conversion_work_buffer): Adjust prototype.
24816 (code_conversion_restore): Don't extern it.
24817
24818 * coding.c (detected_mask): Delete unused variable.
24819 (decode_coding_iso_2022): Pay attention to the byte sequence of
24820 CTEXT extended segment, and retain those bytes as is.
24821 (decode_coding_ccl): Delete unused variable `valids'.
24822 (setup_coding_system): Delete unused variable `category'.
24823 (consume_chars): Delete unused variable `category'. Make it work
24824 for non-multibyte case.
24825 (make_conversion_work_buffer): Change argument.
24826 (saved_coding): Delete unused variable.
24827 (code_conversion_restore): Don't check saved_coding->destination.
24828 (code_conversion_save): New function.
24829 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24830 instead of record_unwind_protect.
24831 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24832 (detect_coding_system): Delete unused variable `mask'.
24833 (Fdefine_coding_system_internal): Delete unused variable id.
24834
24835 * fileio.c (kill_workbuf_unwind): New function.
24836 (Finsert_file_contents): On replacing, call
24837 make_conversion_work_buffer with correct args, and call
24838 record_unwind_protect with the first arg kill_workbuf_unwind.
24839
24840 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24841
24842 2008-02-01 Kenichi Handa <handa@m17n.org>
24843
24844 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24845 (fontset_add): Fix for the case that TO is less than TO1.
24846 (Ffontset_info): Don't use fallback fontset on checking the
24847 default fontset.
24848 (dump_fontset): New function for debugging.
24849
24850 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24851 coding_type is Qcharset.
24852
24853 2008-02-01 Kenichi Handa <handa@m17n.org>
24854
24855 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24856 (map_char_table): Don't inherit the value from the parent on
24857 initializing VAL. Adjust for the above change.
24858
24859 2008-02-01 Kenichi Handa <handa@m17n.org>
24860
24861 * coding.c (Qsignature, Qendian): Delete these variables.
24862 (syms_of_coding): Don't initialize them.
24863 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24864 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24865 detect_info->found.
24866 (decode_coding_utf_16): Don't detect BOM here.
24867 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24868 is NOT utf_16_without_bom.
24869 (setup_coding_system): For a coding system of type utf-16, check
24870 if the attribute :endian is Qbig or not (not nil or not), and set
24871 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24872 (detect_coding): If coding type is utf-16 and BOM detection is
24873 required, detect it.
24874 (Fdefine_coding_system_internal): For a coding system of type
24875 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24876
24877 2008-02-01 Kenichi Handa <handa@m17n.org>
24878
24879 * coding.c (coding_set_source): Fix for the case that the current
24880 buffer is different from coding->src_object.
24881 (decode_coding_object): Don't use the conversion work buffer if
24882 DST_OBJECT is a buffer.
24883
24884 2008-02-01 Dave Love <fx@gnu.org>
24885
24886 * lread.c (read_emacs_mule_char) [len==2]: Index
24887 emacs_mule_charset correctly.
24888
24889 2008-02-01 Dave Love <fx@gnu.org>
24890
24891 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24892 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24893 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24894 treated specially.)
24895 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24896 (detected_mask): Remove Big5 bits.
24897
24898 2008-02-01 Kenichi Handa <handa@m17n.org>
24899
24900 The following changes are to make the font rescaling facility
24901 compatible with Emacs 21.
24902
24903 * xfaces.c (Vface_font_rescale_alist): Rename from
24904 Vface_resizing_fonts.
24905 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24906 (font_rescale_ratio): Rename from font_resizing_ratio.
24907 (split_font_name): Set font->rescale_ratio.
24908 (better_font_p): Pay attention to font->rescale_ratio.
24909 (build_scalable_font_name): Likewise. Change RESX, and RESY
24910 fields.
24911 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24912
24913 2008-02-01 Kenichi Handa <handa@m17n.org>
24914
24915 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24916 (Qutf_16_le): Remove these variables.
24917 (syms_of_coding): Don't DEFSYM them.
24918 (decode_coding_utf_16): Fix handling of BOM.
24919 (encode_coding_utf_16): Fix handling of BOM.
24920
24921 2008-02-01 Kenichi Handa <handa@m17n.org>
24922
24923 * fileio.c (Finsert_file_contents): On replacing, before decoding
24924 the file into the work buffer, set point of the work buffer to the end.
24925
24926 2008-02-01 Dave Love <fx@gnu.org>
24927
24928 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24929
24930 2008-02-01 Dave Love <fx@gnu.org>
24931
24932 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24933 and fix C types.
24934
24935 2008-02-01 Kenichi Handa <handa@m17n.org>
24936
24937 * xdisp.c (SKIP_GLYPHS): New macro.
24938 (set_cursor_from_row): Pay attention to string display properties.
24939
24940 * category.c (copy_category_entry): Fix for the case that RANGE
24941 is an integer.
24942
24943 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24944
24945 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
24946
24947 2008-02-01 Kenichi Handa <handa@m17n.org>
24948
24949 * charset.c (Fcharset_id_internal): New function.
24950 (syms_of_charset): Defsubr it.
24951
24952 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
24953 with the last arg charset_list acquired from coding.
24954 (Fdefine_coding_system_internal): For ccl-based coding system, fix
24955 the attribute coding_attr_ccl_valids.
24956
24957 * coding.h (enum define_coding_ccl_arg_index): Set the first
24958 member coding_arg_ccl_decoder to coding_arg_max.
24959
24960 * ccl.h (ccl_driver): Adjust prototype.
24961
24962 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
24963 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
24964 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
24965 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
24966 last arg Qnil.
24967
24968 2008-02-01 Kenichi Handa <handa@m17n.org>
24969
24970 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
24971 call encode_char.
24972
24973 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
24974
24975 2008-02-01 Dave Love <fx@gnu.org>
24976
24977 * composite.c (syms_of_composite): Make composition_hash_table weak.
24978
24979 2008-02-01 Kenichi Handa <handa@m17n.org>
24980
24981 * dispextern.h (check_face_attributes, generate_ascii_font_name)
24982 (font_name_registry): Don't extern them.
24983 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
24984
24985 * fontset.h (Qfontset): Don't extern it.
24986 (new_fontset_from_font_name): Extern it.
24987
24988 * fontset.c: Give 8 extra slots to fontset objects.
24989 (Qfontset_info): New variable.
24990 (syms_of_fontset): Defsym it.
24991 (FONTSET_FALLBACK): New macro.
24992 (fontset_face): Try also the default fontset.
24993 (make_fontset): Realize a fallback fontset from the default fontset.
24994 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
24995 using split_font_name_into_vector and build_font_name_from_vector.
24996 (Fset_fontset_font): Access the elements of font_spec by enum
24997 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
24998 name by using split_font_name_into_vector.
24999 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
25000 generate a proper font name from the fontset name.
25001 Update Vfontset_alias_alist.
25002 (n_auto_fontsets): New variable.
25003 (new_fontset_from_font_name): New function.
25004 (Ffont_info): Store the information about fonts generated from the
25005 default fontset in the first extra slot of the returned char-table.
25006
25007 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25008 (font_name_registry): Delete function.
25009 (split_font_name_into_vector): New function.
25010 (build_font_name_from_vector): New function.
25011 (font_list): The argument REGISTRY is now a list of registry names.
25012 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25013 specifies an explicit font name, return the name as is. Make a
25014 list of registy names.
25015
25016 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25017 of x_new_fontset.
25018 (Fx_create_frame): Don't call x_new_fontset here. Just use
25019 x_list_fonts to check the existence of fonts.
25020
25021 * xterm.h (x_new_fontset): Adjust prototype.
25022
25023 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25024 string. Use new_fontset_from_font_name to create a fontset from a
25025 font name.
25026
25027 2008-02-01 Kenichi Handa <handa@m17n.org>
25028
25029 * syntax.c (Vfind_word_boundary_function_table): New name for
25030 Vnext_word_boundary_function_table.
25031 (find-word-boundary-function-table): New name for
25032 next-word-boundary-function-table.
25033
25034 2008-02-01 Dave Love <fx@gnu.org>
25035
25036 * Makefile.in: Fix some dependencies.
25037
25038 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25039 set it to nil before returning.
25040
25041 * composite.c (update_compositions): Fix type error.
25042
25043 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25044
25045 2008-02-01 Kenichi Handa <handa@m17n.org>
25046
25047 * xterm.c (x_new_font): Optimize for the case that the font is
25048 already set for the frame.
25049
25050 2008-02-01 Kenichi Handa <handa@m17n.org>
25051
25052 * chartab.c (char_table_ascii): Check if the char table contents
25053 is sub-char-table or not.
25054 (char_table_set, char_table_set_range): Fix argument to
25055 char_table_ascii.
25056
25057 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25058 (detect_coding_utf_8, detect_coding_utf_16)
25059 (detect_coding_emacs_mule, detect_coding_iso_2022)
25060 (detect_coding_sjis, detect_coding_big5)
25061 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25062 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25063 sequence is valid in this coding system. Change callers.
25064 (MAX_ANNOTATION_LENGTH): New macro.
25065 (ADD_ANNOTATION_DATA): New macro.
25066 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25067 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
25068 (ADD_CHARSET_DATA): New macro.
25069 (emacs_mule_char): New argument ID. Change callers.
25070 (decode_coding_emacs_mule, decode_coding_iso_2022)
25071 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25072 Produce charset annotation data in coding->charbuf.
25073 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25074 to charset annotation data in coding->charbuf.
25075 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25076 coding->common_flags if the coding system is iso-2022 based and
25077 uses designation.
25078 (produce_composition): Adjust for the new annotation data format.
25079 (produce_charset): New function.
25080 (produce_annotation): Handle charset annotation.
25081 (handle_composition_annotation, handle_charset_annotation):
25082 New functions.
25083 (consume_chars): Handle charset annotation. Utilize the above two
25084 functions.
25085 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25086 buffer, get the deleted text as a string and set
25087 coding->src_object to that string.
25088 (detect_coding, detect_coding_system): Use the new struct
25089 coding_detection_info.
25090
25091 * coding.h (struct coding_detection_info): New structure.
25092 (struct coding_system): Adjust prototype of the member `detector'.
25093 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25094
25095 2008-02-01 Kenichi Handa <handa@m17n.org>
25096
25097 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25098
25099 2008-02-01 Dave Love <fx@gnu.org>
25100
25101 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25102 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25103 to new local and nullify apropos_accumulate before returning.
25104 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25105
25106 2008-02-01 Kenichi Handa <handa@m17n.org>
25107
25108 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25109 correctly.
25110
25111 2008-02-01 Dave Love <fx@gnu.org>
25112
25113 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25114
25115 2008-02-01 Kenichi Handa <handa@m17n.org>
25116
25117 The following changes are to make character composition happen
25118 automatically on displaying.
25119
25120 * Makefile.in (lisp, shortlisp): Add composite.elc.
25121
25122 * composite.h (Qauto_composed, Vauto_composition_function)
25123 (Qauto_composition_function): Extern them.
25124
25125 * composite.c (Vcomposition_function_table)
25126 (Qcomposition_function_table): Delete variables.
25127 (Qauto_composed, Vauto_composition_function)
25128 (Qauto_composition_function): New variables.
25129 (run_composition_function): Don't call
25130 compose-chars-after-function.
25131 (update_compositions): Clear `auto-composed' text property.
25132 (compose_chars_in_text): Delete this function.
25133 (syms_of_composite): Staticpro Qauto_composed and
25134 Qauto_composition_function. Declare Vauto_composition_function as
25135 a Lisp variable.
25136
25137 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25138
25139 * xdisp.c (it_props): Add an entry for Qauto_composed.
25140 (handle_auto_composed_prop): New function.
25141
25142 * xselect.c (selection_data_to_lisp_data): Don't call
25143 compose_chars_in_text.
25144
25145 2008-02-01 Dave Love <fx@gnu.org>
25146
25147 * keyboard.c (read_char): Modify checking around use of
25148 Vkeyboard_translate_table.
25149
25150 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25151 and fix C types.
25152
25153 2008-02-01 Kenichi Handa <handa@m17n.org>
25154
25155 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25156 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25157 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25158 the case that the last byte is '\r' correctly.
25159 (decode_coding): Flush out the unprocessed data correctly.
25160 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25161
25162 2008-02-01 Dave Love <fx@gnu.org>
25163
25164 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25165 Add XK_ISO... case.
25166 (xaw_scroll_callback): Revert last change.
25167
25168 2008-02-01 Kenichi Handa <handa@m17n.org>
25169
25170 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25171
25172 2008-02-01 Kenichi Handa <handa@m17n.org>
25173
25174 * xfaces.c (Vface_resizing_fonts): New variable.
25175 (struct font_name): New member `resizing_ratio'.
25176 (font_resizing_ratio): New function.
25177 (split_font_name): Set font->resizing_ratio.
25178 (better_font_p): Pay attention to font->resizing_ratio.
25179 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25180 RESX, and RESY fields.
25181 (try_alternative_families): Try scalable fonts if
25182 Vscalable_fonts_allowed is not Qt.
25183 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25184
25185 2008-02-01 Dave Love <fx@gnu.org>
25186
25187 * xterm.c (xaw_scroll_callback): Cast correctly.
25188
25189 2008-02-01 Dave Love <fx@gnu.org>
25190
25191 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25192 (lispy_kana_keys): Comment out.
25193 (make_lispy_event) [XK_kana_A]: Comment out.
25194
25195 * xterm.c (xaw_scroll_callback): Cast call_data.
25196 (XTread_socket): Deal with ASCII keysyms.
25197 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25198
25199 2008-02-01 Dave Love <fx@gnu.org>
25200
25201 * xterm.c (Vx_keysym_table): New.
25202 (syms_of_xterm): Initialize it.
25203 (XTread_socket): Use it.
25204 From head: Eliminate incorrect optimization that tried to avoid
25205 decoding the output of X*LookupString.
25206 (x_get_font_repertory): Delete charset declaration.
25207
25208 2008-02-01 Kenichi Handa <handa@m17n.org>
25209
25210 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25211 return 0.
25212 (Fdefine_coding_system_internal):
25213 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
25214
25215 2008-02-01 Dave Love <fx@gnu.org>
25216
25217 * coding.c (Fcheck_coding_system): Doc fix.
25218
25219 * editfns.c (Finsert_byte): Return a proper value.
25220
25221 2008-02-01 Kenichi Handa <handa@m17n.org>
25222
25223 * coding.c (decode_coding): Fix args to translate_chars.
25224 Pay attention to Vstandard_translation_table_for_decode.
25225 (encode_coding): Fix args to translate_chars. Pay attention to
25226 Vstandard_translation_table_for_encode.
25227
25228 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25229 SINGLE_BYTE_CHAR_P.
25230
25231 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25232 not by SINGLE_BYTE_CHAR_P.
25233
25234 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25235 SINGLE_BYTE_CHAR_P.
25236
25237 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25238 SINGLE_BYTE_CHAR_P.
25239
25240 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25241 by SINGLE_BYTE_CHAR_P.
25242
25243 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25244 SINGLE_BYTE_CHAR_P.
25245
25246 2008-02-01 Dave Love <fx@gnu.org>
25247
25248 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25249
25250 2008-02-01 Dave Love <fx@gnu.org>
25251
25252 * fns.c (Flanginfo): Fix typo.
25253
25254 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25255
25256 2008-02-01 Kenichi Handa <handa@m17n.org>
25257
25258 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25259 (detect_coding_emacs_mule, detect_coding_iso_2022)
25260 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25261 incomplete byte sequence. Don't update *mask when correctly detected.
25262 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25263 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25264 (detect_coding, detect_coding_system): Adjust for the changes above.
25265
25266 2008-02-01 Kenichi Handa <handa@m17n.org>
25267
25268 * character.c (char_string): Rename from
25269 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25270 (string_char): Rename from string_char.
25271
25272 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25273 if C is greater than MAX_3_BYTE_CHAR.
25274 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25275 Call string_char instead of string_char_with_unification.
25276
25277 2008-02-01 Dave Love <fx@gnu.org>
25278
25279 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25280
25281 2008-02-01 Kenichi Handa <handa@m17n.org>
25282
25283 * keymap.c (push_key_description): Pay attention to force_multibyte.
25284
25285 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25286
25287 2008-02-01 Dave Love <fx@gnu.org>
25288
25289 * charset.c (define_charset_internal): Rename `supprementary'.
25290
25291 * Makefile.in (lisp, shortlisp): Remove latin-N.
25292
25293 2008-02-01 Dave Love <fx@gnu.org>
25294
25295 * xfns.c (x_window, x_window): Use use_xim.
25296
25297 * xterm.c (use_xim): Initialize.
25298 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25299 (x_term_init): Maybe set use_xim.
25300
25301 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25302
25303 2008-02-01 Kenichi Handa <handa@m17n.org>
25304
25305 * search.c (search_buffer): Fix case-fold-search of multibyte
25306 characters.
25307 (boyer_moore): Rename the last argument to char_high_bits.
25308
25309 2008-02-01 Kenichi Handa <handa@m17n.org>
25310
25311 * xdisp.c (display_string): Fix for the case of zero width glyph.
25312
25313 * xfns.c (x_set_font): Change the error message of the case that
25314 x_new_fontset returns Qt.
25315
25316 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25317 (Finternal_set_lisp_face_attribute): Use signal_error for the
25318 error of invalid fontset.
25319
25320 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25321 fontset, return Qt.
25322
25323 2008-02-01 Dave Love <fx@gnu.org>
25324
25325 * unexelf.c (unexec): Make .got handling not SGI-specific.
25326
25327 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25328
25329 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25330
25331 * keyboard.c (read_key_sequence): Fix type error.
25332
25333 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25334 Fix type error.
25335
25336 * fontset.c (fontset_add): Return Lisp_Object.
25337
25338 2008-02-01 Dave Love <fx@gnu.org>
25339
25340 * charset.h (charset_ordered_list_tick): Declare extern.
25341
25342 2008-02-01 Kenichi Handa <handa@m17n.org>
25343
25344 The following changes (and some of 2008-02-01 changes of mine) are
25345 for handling syntax, category, and case conversion for unibyte
25346 characters by converting them to multibyte on the fly. With these
25347 changes, we don't have to setup syntax and case tables for unibyte
25348 characters in each language environment.
25349
25350 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25351 multibyte if necessary.
25352
25353 * bytecode.c (Fbyte_code): Likewise.
25354
25355 * character.h (LEADING_CODE_LATIN_1_MIN)
25356 (LEADING_CODE_LATIN_1_MAX): New macros.
25357 (unibyte_to_multibyte_table): Extern it.
25358 (unibyte_char_to_multibyte): New macro.
25359 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25360 (CHAR_LEADING_CODE): New macro.
25361 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25362
25363 * character.c (unibyte_to_multibyte_table): New variable.
25364 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25365 (multibyte_char_to_unibyte): If C is an eight-bit character,
25366 convert it to the corresponding byte value.
25367
25368 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25369 not 1, signals an error. Update the elements of
25370 unibyte_to_multibyte_table.
25371 (init_charset_once): Initialize unibyte_to_multibyte_table.
25372 (syms_of_charset): Define the charset `iso-8859-1'.
25373
25374 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25375 as is without converting it to unibyte. In a unibyte buffer,
25376 convert C to multibyte before checking the syntax.
25377
25378 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25379
25380 * minibuf.c (Fminibuffer_complete_word): Use the macro
25381 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25382
25383 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25384
25385 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
25386 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25387 If that is zero, convert an eight-bit char to multibyte.
25388 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25389 non-emacs case.
25390 (PATFETCH): Convert an eight-bit char to multibyte.
25391 (HANDLE_UNIBYTE_RANGE): New macro.
25392 (regex_compile): Setup the compiled pattern for multibyte chars
25393 even if the given regex string is unibyte. Use PATFETCH_RAW
25394 instead of PATFETCH in many places. To handle `charset'
25395 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25396 only for ASCII chars.
25397 (analyse_first) <exactn>: Simplify because the compiled pattern
25398 is multibyte.
25399 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25400 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25401 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25402 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25403 multibyte always 1.
25404 (re_search_2): In emacs, set the locale variable multibyte to 1,
25405 otherwise to 0. New local variable target_multibyte. Check it
25406 to decide the multibyteness of STR1 and STR2.
25407 If target_multibyte is zero, convert unibyte chars to multibyte
25408 before translating and checking fastmap.
25409 (TARGET_CHAR_AND_LENGTH): New macro.
25410 (re_match_2_internal): In emacs, set the locale variable multibyte
25411 to 1, otherwise to 0. New local variable target_multibyte.
25412 Check it to decide the multibyteness of STR1 and STR2.
25413 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
25414 <charset, charset_not>: If multibyte is nonzero, check fastmap
25415 only for ASCII chars. Call bcmp_translate with
25416 target_multibyte, not with multibyte.
25417 <begline>: Declare the local variable C as `unsigned'.
25418 (bcmp_translate): Change the last arg name to target_multibyte.
25419
25420 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25421 the regexp pattern and the matching target. Set cp->buf.multibyte
25422 to the multibyteness of the regexp pattern. Set
25423 cp->but.target_multibyte to the multibyteness of the matching target.
25424 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25425 FETCH_STRING_CHAR_ADVANCE.
25426 (Freplace_match): Convert unibyte chars to multibyte.
25427
25428 * syntax.c (char_quoted, back_comment, scan_words)
25429 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25430 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25431 unibyte chars to multibyte.
25432 (skip_chars): Delete the arg syntaxp, and move the code for
25433 handling syntaxes to skip_syntaxes. Change callers.
25434 Fix the case that the multibyteness of STRING and the current
25435 buffer doesn't match.
25436 (skip_syntaxes): New function.
25437 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25438 SINGLE_BYTE_CHAR_P.
25439
25440 2008-02-01 Kenichi Handa <handa@m17n.org>
25441
25442 * xfaces.c (QCfontset): New variable.
25443 (LFACE_FONTSET): New macro.
25444 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25445 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25446 (Finternal_set_lisp_face_attribute)
25447 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25448 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25449 check also LFACE_FONTSET_INDEX.
25450 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25451 attrs[LFACE_FONT_INDEX].
25452 (syms_of_xfaces): Intern and staticpro QCfontset.
25453
25454 * dispextern.h (enum lface_attribute_index): New member
25455 LFACE_FONTSET_INDEX.
25456
25457 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25458
25459 2008-02-01 Kenichi Handa <handa@m17n.org>
25460
25461 * coding.c (coding_set_destination): Fix coding->destination for
25462 the case converting a region.
25463 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25464 (encode_coding_object): Fix coding->dst_pos and
25465 coding->dst_pos_byte for the case converting a region.
25466
25467 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25468
25469 * character.h (BYTE8_STRING): New macro.
25470
25471 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25472
25473 2008-02-01 Kenichi Handa <handa@m17n.org>
25474
25475 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25476 characters by octal form.
25477
25478 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25479
25480 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25481 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25482 _fetch_multibyte_char_len.
25483 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25484
25485 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25486
25487 * casefiddle.c (casify_object): Simplify. Handle the case that
25488 the case conversion change the byte length.
25489 (casify_region): Likewise.
25490
25491 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25492
25493 * character.c (_fetch_multibyte_char_len): Delete this variable.
25494 (syms_of_character): Setup Vprintable_chars.
25495
25496 * editfns.c (Fchar_equal): Fix for the unibyte case.
25497 (Finsert_byte): New function.
25498 (syms_of_editfns): Defsubr it.
25499
25500 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25501 of direct code 0x3ffff.
25502
25503 * search.c (Freplace_match): Fix for the unibyte case.
25504
25505 2008-02-01 Kenichi Handa <handa@m17n.org>
25506
25507 * lread.c (safe_to_load_p): Fix the logic.
25508
25509 * syntax.c (scan_words): Don't treat characters belonging to
25510 different scripts as constituting a word.
25511
25512 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25513
25514 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25515
25516 * emacs.c (main): In the case of --unibyte, instead of aborting on
25517 finding non-empty buffer, make it unibyte.
25518
25519 2008-02-01 Kenichi Handa <handa@m17n.org>
25520
25521 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25522 to create a fontset.
25523
25524 2008-02-01 Dave Love <fx@gnu.org>
25525
25526 * character.c (Funibyte_char_to_multibyte): Doc fix.
25527
25528 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25529
25530 2008-02-01 Kenichi Handa <handa@m17n.org>
25531
25532 * fontset.c (fontset_add): Make the type `int'.
25533 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25534
25535 * character.c (unibyte_char_to_multibyte)
25536 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25537 charset_unibyte, not charset_primary.
25538
25539 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25540
25541 * charset.c (charset_unibyte): Rename from charset_primary.
25542 (Funibyte_charset): Rename from Fprimary_charset.
25543 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25544 (syms_of_charset): Adjust for the above changes.
25545
25546 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25547 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25548 it->multibyte_p is zero.
25549
25550 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25551 Delete extern.
25552
25553 2008-02-01 Kenichi Handa <handa@m17n.org>
25554
25555 * coding.c (Fdefine_coding_system_internal): Fix category setting
25556 for a coding system of type iso-2022.
25557
25558 2008-02-01 Kenichi Handa <handa@m17n.org>
25559
25560 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25561
25562 2008-02-01 Kenichi Handa <handa@m17n.org>
25563
25564 * syntax.c (Vnext_word_boundary_function_table): New variable.
25565 (next-word-boundary-function-table): Declare it as a Lisp variable
25566 in syms_of_syntax.
25567 (scan_words): Call functions in Vnext_word_boundary_function_table
25568 if any.
25569
25570 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25571
25572 * fontset.c (fs_load_font): If fontp->charset is not negative,
25573 return fontp without setting its members.
25574
25575 2008-02-01 Dave Love <fx@gnu.org>
25576
25577 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25578
25579 * m/sparc.h (HAVE_ALLOCA): Delete.
25580
25581 * s/irix6-5.h: Don't include strings.h.
25582 (bcopy, bzero, bcmp): Don't undef.
25583
25584 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25585
25586 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25587 (TIOCSIGSEND): Don't test IRIX6.
25588 (bcopy, bzero, bcmp): Define conditionally.
25589
25590 2008-02-01 Kenichi Handa <handa@m17n.org>
25591
25592 * buffer.c (Qas, Qmake, Qto): New variables.
25593 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25594 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25595
25596 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25597 we are inserting a process output into a multibyte buffer.
25598
25599 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25600 multibyte_char_to_unibyte.
25601
25602 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25603 by the primary charset, make it eight-bit char.
25604 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25605
25606 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25607 (charset_8_bit__control, charset_8_bit_graphic)
25608 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25609 (define_charset_internal): New function.
25610 (syms_of_charset): Call define_charset_internal for pre-defined
25611 charsets.
25612
25613 * charset.h (charset_8_bit): Extern it.
25614
25615 * coding.c (make_conversion_work_buffer): Adjust for the change
25616 of Fset_buffer_multibyte.
25617 (encode_coding_raw_text): Increment p0 in the loop.
25618
25619 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25620
25621 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25622 Adjust for the change of Fset_buffer_multibyte.
25623
25624 * fns.c (Fstring_to_multibyte): New function.
25625 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25626
25627 2008-02-01 Dave Love <fx@gnu.org>
25628
25629 * xfns.c (x_put_x_image): Declare args.
25630
25631 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25632 (try_font_list): Declare an arg.
25633
25634 * xdisp.c (message2_nolog, set_message): Declare an arg.
25635
25636 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25637
25638 * syntax.c (scan_sexps_forward): Declare an arg.
25639
25640 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25641 Declare an arg.
25642
25643 * lisp.h (Fnew_fontset): Declare.
25644
25645 * keymap.c (push_key_description): Call CHARACTERP correctly.
25646
25647 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25648 (face_for_char): Delete unused vars.
25649 (Fset_fontset_font): Doc fix. Delete unused vars.
25650
25651 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25652
25653 * composite.c (update_compositions): Declare arg.
25654
25655 * cm.c (calccost, cmgoto): Declare args.
25656
25657 * charset.c: Remove `emacs' conditional. Doc fixes.
25658 (map_char_table_for_charset): Declare.
25659
25660 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25661
25662 * ccl.c: Remove `emacs' conditional.
25663
25664 2008-02-01 Kenichi Handa <handa@m17n.org>
25665
25666 The following changes are to allow specifying multiple font
25667 patterns for a character range (specified by script or charset).
25668
25669 * Makefile.in (abbrev.o): Depend on syntax.h.
25670 (xfaces.o): Depend on charset.h.
25671
25672 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25673 SINGLE_BYTE_CHAR_P.
25674
25675 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25676
25677 * character.h (Vchar_script_table): Extern it.
25678
25679 * character.c (Vscript_alist): Delete.
25680 (Vchar_script_table, Qchar_script_table): New variable.
25681 (syms_of_character): Declare Vchar_script_table as a lisp variable
25682 and initialize it.
25683
25684 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25685 have property char-table-extra-slots, make no extra slot.
25686
25687 * dispextern.h (struct face): Delete member `charset'.
25688 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25689 SINGLE_BYTE_CHAR_P.
25690 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25691 Add prototypes.
25692 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25693 (generate_ascii_font_name): Rename from generate_ascii_font.
25694
25695 * fontset.h (get_font_repertory_func): New prototype.
25696 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25697 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25698
25699 * fontset.c (Qprepend, Qappend): New variables.
25700 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25701 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25702 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25703 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25704 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25705 (load_font_get_repertory): New functions.
25706 (fontset_set): Delete.
25707 (fontset_face): New arg FACE. Return face ID, not face.
25708 Complete re-write to handle new fontset structure. Change caller.
25709 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25710 (face_for_char): Don't call lookup_face.
25711 (make_fontset_for_ascii_face): New arg FACE.
25712 (fs_load_font): New arg CHARSET_ID. Don't check
25713 Vfont_encoding_alist here.
25714 (find_font_encoding): New function.
25715 (list_fontsets): Use STRINGP, not ! NILP.
25716 (accumulate_script_ranges): New function.
25717 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25718 Completely re-written to handle new fontset structure.
25719 (Ffontset_font): Return a copy of element.
25720 (syms_of_fontset): Define symbols Qprepend and Qappend.
25721 Fix docstring of font-encoding-alist.
25722
25723 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25724 (Fset_fotset_font): Fix arguments to 5.
25725
25726 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25727
25728 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25729 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25730 (highlight_trailing_whitespace): Adjust for the change of
25731 lookup_named_face.
25732
25733 * xfaces.c: Include charset.h.
25734 (load_face_font): Delete argument C. Change caller.
25735 (generate_ascii_font_name): Rename from generate_ascii_font.
25736 (font_name_registry): New function.
25737 (cache_face): Store ascii faces before non-ascii faces in buckets.
25738 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25739 Lookup only ascii faces.
25740 (lookup_non_ascii_face): New function.
25741 (lookup_named_face): Delete argument C. Change caller.
25742 (lookup_derived_face): Delete argument C. Change caller.
25743 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25744 a string, just call font_list with it.
25745 (choose_face_font): Delete arguments FACE and C. New arg
25746 FONT_SPEC. Change caller.
25747 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25748 Change caller.
25749 (realize_non_ascii_face): New function.
25750 (realize_x_face): Call load_face_font here.
25751 (realize_tty_face): Delete argument C. Change caller.
25752 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25753 get a face ID.
25754 (dump_realized_face): Don't print charset of FACE.
25755
25756 * xfns.c (x_set_font): Always call x_new_fontset and
25757 store_frame_parameter.
25758 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25759 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25760
25761 * xterm.h (x_get_font_repertory): Extern it.
25762
25763 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25764 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25765 it->multibyte_p is zero.
25766 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25767 (x_new_fontset): If FONTSETNAME doesn't match any existing
25768 fontsets, create a new one.
25769 (x_get_font_repertory): New function.
25770
25771 2008-02-01 Kenichi Handa <handa@m17n.org>
25772
25773 * coding.c (Ffind_coding_systems_region_internal): Detect an
25774 ASCII only string correctly.
25775
25776 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25777 version is 0.
25778
25779 2008-02-01 Kenichi Handa <handa@m17n.org>
25780
25781 * lread.c: Include "coding.h".
25782 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25783 (load_each_byte, unread_char): New variables.
25784 (readchar_backlog): Delete.
25785 (readchar): Return a character unless load_each_byte is nonzero.
25786 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25787 cons. If unread_char is not -1, simply return it.
25788 (unreadchar): Handle the case that readcharfun is
25789 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25790 (read_multibyte): Delete.
25791 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25792 (read_emacs_mule_char): New functions.
25793 (Fload): Even if the file doesn't have the extension ".elc", if
25794 safe_to_load_p returns a positive version number, assume that the
25795 file contains bytecompiled code. If the version is less than 22,
25796 load the file while decoding multibyte sequences by emacs-mule.
25797 (readevalloop): Don't use readchar_backlog.
25798 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25799 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25800 (read_escape): Delete the arg BYTEREP.
25801 (read1): Set load_each_byte to 1 temporarily while handling
25802 #@NUMBER. Don't call read_multibyte.
25803 (read_vector): Call Fread with a cons. If readcharfun is
25804 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25805 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25806 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25807 and Qload_force_doc_strings.
25808
25809 2008-02-01 Kenichi Handa <handa@m17n.org>
25810
25811 * xdisp.c (face_before_or_after_it_pos):
25812 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
25813
25814 2008-02-01 Kenichi Handa <handa@m17n.org>
25815
25816 * character.h (TRAILING_CODE_P): New macro.
25817 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25818 (string_char_with_unification): Fix prototype.
25819 (Vscript_alist): Extern it.
25820
25821 * character.c (Vscript_alist): New variable.
25822 (string_char_with_unification, str_as_unibyte)
25823 (string_escape_byte8): Add `const' to local variables.
25824 (syms_of_character): Declare script-alist as a Lisp variable.
25825
25826 * charset.h (Vcharset_ordered_list): Extern it.
25827 (charset_ordered_list_tick): Extern it.
25828 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25829 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25830 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25831 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25832 (Funify_charset): Adjust for the change of Funify_charset.
25833
25834 * charset.c (charset_ordered_list_tick): New variable.
25835 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25836 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
25837 deunify instead of unify a charset.
25838 (string_xstring_p): Add `const' to local variables.
25839 (find_charsets_in_text): Add `const' to arguments and local variables.
25840 (encode_char): Adjust for the change of Funify_charset.
25841 Fix detecting of invalid code.
25842 (Fset_charset_priority): Increment charset_ordered_list_tick.
25843 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25844 and TO_CODE.
25845
25846 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25847 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25848 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25849 (decode_coding_ccl, consume_chars)
25850 (Ffind_coding_systems_region_internal)
25851 (Fcheck_coding_systems_region): Add `const' to local variables.
25852
25853 * print.c (print_object): Use octal form for printing the
25854 contents of a bool vector.
25855
25856 2008-02-01 Dave Love <fx@gnu.org>
25857
25858 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25859 <version == 20>: Refuse to load.
25860
25861 2008-02-01 Dave Love <fx@gnu.org>
25862
25863 * fns.c: Move coding.h.
25864 (Qcodeset, Qdays, Qmonths): New.
25865 (concat): Use CHARACTERP instead of INTEGERP.
25866 (Flocale_codeset): Delete.
25867 (Flanginfo): New function.
25868 (syms_of_fns): Change accordingly.
25869
25870 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25871
25872 2008-02-01 Dave Love <fx@gnu.org>
25873
25874 * casetab.c (init_casetab_once, init_casetab_once):
25875 Fix CHAR_TABLE_SET call.
25876
25877 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25878
25879 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25880
25881 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25882 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25883 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25884
25885 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25886
25887 * coding.c (ENCODE_DESIGNATION, decode_eol)
25888 (make_conversion_work_buffer, code_conversion_restore)
25889 (Fdefine_coding_system_internal): Convert Lisp types.
25890 (code_conversion_restore): Use EQ, not ==.
25891 (Fencode_coding_string): Fix code_convert_string call.
25892
25893 * coding.h (code_convert_region): Fix prototype.
25894
25895 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25896
25897 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25898 (Ffontset_info): Convert Lisp types.
25899
25900 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25901
25902 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25903
25904 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25905
25906 * chartab.c: Include "...h", not <...h> in some cases.
25907
25908 * callproc.c (Fcall_process): Remove unused variables.
25909
25910 2008-02-01 Dave Love <fx@gnu.org>
25911
25912 * coding.c (Fset_coding_system_priority): Allow null arg list.
25913
25914 2008-02-01 Dave Love <fx@gnu.org>
25915
25916 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25917 (Fself_insert_and_exit): Use CHARACTERP.
25918
25919 * callproc.c (Fcall_process): Remove unused vars.
25920
25921 * xterm.c (XTread_socket): Add extra dead keysyms.
25922
25923 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25924
25925 * dispextern.h: Remove prototypes for redraw_frame,
25926 redraw_garbaged_frames.
25927
25928 * cmds.c (Fself_insert_command): Use CHARACTERP.
25929
25930 * chartab.c (make_sub_char_table): Remove unused var.
25931 (Fset_char_table_default, Fmap_char_table): Doc fix.
25932
25933 * keymap.c (access_keymap): Remove generic char code.
25934 (push_key_description): Use CHARACTERP.
25935
25936 2008-02-01 Dave Love <fx@gnu.org>
25937
25938 * charset.c: Doc fixes.
25939 (Funify_charset): Extra checking.
25940
25941 2008-02-01 Dave Love <fx@gnu.org>
25942
25943 * lread.c: Remove some unused variables.
25944 (safe_to_load_p): If safe, return the magic number version byte.
25945 (Fload): Maybe use load-with-code-conversion.
25946
25947 2008-02-01 Kenichi Handa <handa@m17n.org>
25948
25949 * category.c (Fmodify_category_entry): Don't modify the contents
25950 of category_set for characters out of the range.
25951 Avoid unnecessary modification.
25952
25953 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
25954 Vchar_unify_table. The default value of the table is now nil.
25955
25956 * character.c (syms_of_character): Setup Vchar_width_table for
25957 eight-bit-control and raw-byte chars.
25958
25959 * charset.h (enum define_charset_arg_index):
25960 Delete charset_arg_parents and add charset_arg_subset and
25961 charset_arg_superset.
25962 (enum charset_attr_index): Delete charset_parents and add
25963 charset_subset and charset_superset.
25964 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
25965 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
25966 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
25967 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
25968 (CHARSET_SUPERSET): New macros.
25969 (charset_work): Extern it.
25970 (ENCODE_CHAR): Use charset_work.
25971 (CHAR_CHARSET_P): Adjust for the change of encoder format.
25972 (map_charset_chars): Extern it.
25973
25974 * charset.c (load_charset_map): Set the default value of encoder
25975 and deunifier char-tables to nil.
25976 (map_charset_chars): Change argument. Change callers.
25977 Use map_char_table_for_charset instead of map_char_table.
25978 (Fmap_charset_chars): New optional args from_code and to_code.
25979 (Fdefine_charset_internal): Adjust for the change of
25980 `define-charset' (:parents -> :subset or :superset).
25981 (charset_work): New variable.
25982 (encode_char, syms_of_charset): Adjust for the change of
25983 Fdefine_charset_internal.
25984 (Ffind_charset_string): Setup the vector `charsets' correctly.
25985
25986 * chartab.c (sub_char_table_ref_and_range): New arg default.
25987 Fix the previous change.
25988 (char_table_ref_and_range): Adjust for the above change.
25989 (map_sub_char_table_for_charset): New function.
25990 (map_char_table_for_charset): New function.
25991
25992 * keymap.c (describe_vector): Handle a char-table directly here.
25993 (describe_char_table): Delete.
25994
25995 * lisp.h (map_charset_chars): Delete.
25996
25997 2008-02-01 Dave Love <fx@gnu.org>
25998
25999 * fns.c (count_combining): Comment out (unused).
26000 (Flocale_codeset): New.
26001 (syms_of_fns): Defsubr it.
26002
26003 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26004 (size_t): Remove.
26005
26006 2008-02-01 Dave Love <fx@gnu.org>
26007
26008 * Makefile.in (chartab.o): Depend on charset.h.
26009
26010 2008-02-01 Kenichi Handa <handa@m17n.org>
26011
26012 * character.c (syms_of_character): Set the default value of
26013 Vprintable_chars to Qnil.
26014
26015 2008-02-01 Dave Love <fx@gnu.org>
26016
26017 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26018
26019 2008-02-01 Kenichi Handa <handa@m17n.org>
26020
26021 * charset.c (load_charset_map): Handle the case that from < to
26022 correctly.
26023
26024 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26025 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26026 Pay attention to raw-8-bit chars.
26027
26028 2008-02-01 Kenichi Handa <handa@m17n.org>
26029
26030 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26031 It is not bytecompiled now.
26032
26033 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26034 (charset_jisx0208): New variables.
26035 (Fdefine_charset_internal): Setup them if appropriate.
26036 (init_charset_once): Initialize them to -1.
26037
26038 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26039 (charset_jisx0208): Extern them.
26040
26041 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26042 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26043 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26044 (setup_iso_safe_charsets): Fix arguments to Fassq.
26045 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26046 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26047 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26048 (encode_coding_iso_2022): Change the 1st arg to
26049 ENCODE_ISO_CHARACTER to a variable.
26050
26051 2008-02-01 Kenichi Handa <handa@m17n.org>
26052
26053 * charset.h (enum define_charset_arg_index): New enums
26054 charset_arg_min_code and charset_arg_max_code.
26055 (struct charset): New member char_index_offset.
26056
26057 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26058 Take charset->char_index_offset into account.
26059 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26060 args[charset_arg_max_code]. Setup charset.char_index_offset.
26061 (syms_of_charset): Fix args to Fdefine_charset_internal.
26062
26063 2008-02-01 Dave Love <fx@gnu.org>
26064
26065 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26066
26067 2008-02-01 Dave Love <fx@gnu.org>
26068
26069 * coding.c: Doc fixes.
26070 (Fcoding_system_aliases): Fix return value.
26071 (Qmac): Remove (duplicated) definition.
26072
26073 2008-02-01 Dave Love <fx@gnu.org>
26074
26075 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26076 New functions.
26077
26078 * character.c (Fstring): Doc fix.
26079
26080 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26081
26082 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
26083 (font-encoding-alist): Doc fix.
26084
26085 2008-02-01 Dave Love <fx@gnu.org>
26086
26087 * term.c (costs_set): Declare static, non-initialized for pcc.
26088 (encode_terminal_code): Remove unused var.
26089
26090 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26091 for K&R.
26092
26093 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26094
26095 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26096 (suffixes): Move out of make_subsidiaries for K&R.
26097
26098 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26099
26100 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26101
26102 2008-02-01 Dave Love <fx@gnu.org>
26103
26104 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26105
26106 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26107
26108 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26109
26110 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26111
26112 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26113
26114 2008-02-01 Kenichi Handa <handa@m17n.org>
26115
26116 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26117 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26118
26119 2008-02-01 Kenichi Handa <handa@m17n.org>
26120
26121 * coding.c (decode_coding_charset): Adjust for the change of
26122 Fdefine_coding_system_internal.
26123 (Fdefine_coding_system_internal): For a coding system of
26124 `charset' type, store a list of charset IDs in
26125 `charset_attr_charset_valids' element of coding attributes.
26126
26127 2008-02-01 Kenichi Handa <handa@m17n.org>
26128
26129 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
26130 (emacs_mule_char): New arg src. Delete arg `composition'.
26131 Change caller. Handle 2-byte and 3-byte charsets correctly.
26132 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26133 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26134 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
26135 (DECODE_EMACS_MULE_21_COMPOSITION):
26136 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
26137 sequence.
26138 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26139 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26140 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26141 and alt&rule composition.
26142 (decode_coding_iso_2022): Handle composition correctly.
26143 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26144
26145 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26146 re-defining a charset. If the charset has :emacs-mule-id, setup
26147 emacs_mule_bytes.
26148 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26149
26150 2008-02-01 Kenichi Handa <handa@m17n.org>
26151
26152 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26153 (encode_coding_big5, encode_coding_charset): If coding requires safe
26154 encoding, produce a character specified by
26155 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26156
26157 2008-02-01 Dave Love <fx@gnu.org>
26158
26159 * xterm.c (XSetIMValues): Declare.
26160
26161 * process.c: Conditionally include sys/wait.h, pty.h.
26162
26163 * print.c (print_object): Fix print format for 64-bit systems.
26164
26165 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26166
26167 * buffer.c (emacs_strerror): Declare.
26168
26169 * fontset.c (Fclear_face_cache): Declare.
26170 (accumulate_font_info): Comment-out (unused).
26171 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26172 variables.
26173
26174 * character.h (string_escape_byte8): Declare.
26175
26176 * charset.c (load_charset_map, load_charset_map_from_file):
26177 Remove unused vars.
26178 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26179 (Fmap_charset_chars): Doc fix.
26180
26181 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26182 (Fset_coding_system_priority, Fset_coding_system_priority)
26183 (Fdefine_coding_system_internal): Doc fix.
26184
26185 2008-02-01 Dave Love <fx@gnu.org>
26186
26187 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26188
26189 2008-02-01 Kenichi Handa <handa@m17n.org>
26190
26191 * character.c (string_escape_byte8): Make multibyte string with
26192 correct size.
26193
26194 * charset.c (Fmake_char): Delete unnecessary code.
26195
26196 2008-02-01 Kenichi Handa <handa@m17n.org>
26197
26198 * xfns.c (x_encode_text): Allocate coding.destination here, and
26199 call encode_coding_object with dst_object Qnil.
26200
26201 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26202 multibyte form correctly.
26203
26204 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26205 against Vfont_encoding_alist.
26206
26207 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26208 handling of charset list.
26209 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26210 (decode_coding_object): Move point to coding->dst_pos before
26211 calling post-read-conversion function.
26212 (encode_coding_object): Give correct arguments to
26213 pre-write-conversion. Ignore the return value of
26214 pre-write-conversion function. Pay attention to the case that
26215 pre-write-conversion changes the current buffer. If dst_object is
26216 Qt, even if coding->src_bytes is zero, allocate at least one byte
26217 to coding->destination.
26218
26219 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26220
26221 * charset.c (Fmake_char): Make it more backward compatible.
26222 (Fmap_charset_chars): Fix docstring.
26223
26224 2008-02-01 Dave Love <fx@gnu.org>
26225
26226 * coding.c: Doc fixes.
26227 (Fdefine_coding_system_alias): Use names, not symbols, in
26228 coding-system-alist.
26229
26230 2008-02-01 Kenichi Handa <handa@m17n.org>
26231
26232 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26233 of calling free_realized_face.
26234
26235 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26236
26237 * charset.c (read_hex): Don't treat SPC as a comment starter.
26238 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26239 (Fdecode_char): Fix typo.
26240
26241 2008-02-01 Kenichi Handa <handa@m17n.org>
26242
26243 * charset.h (struct charset): New member `code_space_mask'.
26244
26245 * coding.c (coding_set_source): Delete the local variable beg_byte.
26246 (encode_coding_charset, Fdefine_coding_system_internal):
26247 Delete the local variable charset.
26248 (Fdefine_coding_system_internal):
26249 Setup attrs[coding_attr_charset_valids] correctly.
26250
26251 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26252 member to check if CODE is valid or not.
26253 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26254 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26255 is within the range of charset->min_code and carset->max_code.
26256
26257 2008-02-01 Dave Love <fx@gnu.org>
26258
26259 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26260
26261 * dispextern.h (generate_ascii_font): Fix return type.
26262
26263 * xfaces.c (generate_ascii_font): Fix arg declaration.
26264
26265 * coding.c (coding_inherit_eol_type)
26266 (Fset_terminal_coding_system_internal)
26267 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26268
26269 2008-02-01 Kenichi Handa <handa@m17n.org>
26270
26271 * coding.c (decode_coding_charset, encode_coding_charset):
26272 Handle multiple charsets correctly.
26273
26274 2008-02-01 Kenichi Handa <handa@m17n.org>
26275
26276 * search.c (boyer_moore): Fix handling of multibyte character
26277 translation.
26278
26279 * xdisp.c (display_mode_element): When the variable `elt' is
26280 changed, update `this' and `lisp_string'.
26281
26282 2008-02-01 Kenichi Handa <handa@m17n.org>
26283
26284 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26285
26286 * callproc.c (Fcall_process): Be sure to give the current buffer
26287 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26288
26289 * charset.c (struct charset_map_entries): New struct.
26290 (load_charset_map): Rename from parse_charset_map. New args
26291 entries and n_entries. Change caller.
26292 (load_charset_map_from_file): Rename from load_charset_map.
26293 Change caller. New arg control_flag. Call load_charset_map at
26294 the tail.
26295 (load_charset_map_from_vector): New function.
26296 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26297 (encode_char): If the charset is compact, change a character index
26298 to a code point.
26299
26300 * coding.c (coding_alloc_by_making_gap): Check the case that the
26301 source and destination are the same correctly.
26302 (decode_coding_raw_text): Set coding->consumed_char and
26303 coding->consumed to 0.
26304 (produce_chars): If coding->chars_at_source is nonzero, update
26305 coding->consumed_char and coding->consumed before calling
26306 alloc_destination.
26307 (Fdefine_coding_system_alias): Register ALIAS in
26308 Vcoding_system_alist.
26309 (syms_of_coding): Define `no-conversion' coding system at the tail.
26310
26311 * fileio.c (Finsert_file_contents): Set coding_system instead of
26312 val. If the current buffer is multibyte, always call
26313 decode_coding_gap.
26314
26315 * xfaces.c (try_font_list): Give higher priority to fontset's
26316 family than face's family.
26317
26318 2008-02-01 Kenichi Handa <handa@m17n.org>
26319
26320 * callproc.c (Fcall_process): Be sure to give the current buffer
26321 to decode_coding_c_string.
26322
26323 * xfaces.c (try_font_list): Give a family specified in a fontset
26324 higher priority than a family specified in a face.
26325
26326 2008-02-01 Kenichi Handa <handa@m17n.org>
26327
26328 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26329 Fix arguments to insert_from_buffer.
26330
26331 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26332
26333 2008-02-01 Kenichi Handa <handa@m17n.org>
26334
26335 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26336 (decode_coding_gap): Set coding->dst_multibyte correctly.
26337
26338 2008-02-01 Kenichi Handa <handa@m17n.org>
26339
26340 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26341 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26342 (encode_coding_utf_16): Substitute coding->default_char for
26343 non-Unicode characters.
26344 (decode_coding): Don't call record_insert here.
26345 (setup_coding_system): Initialize `surrogate' of
26346 coding->spec.utf_16 to 0.
26347 (EMIT_ONE_BYTE): Fix for multibyte case.
26348
26349 * insdel.c (insert_from_gap): Call record_insert.
26350
26351 2008-02-01 Kenichi Handa <handa@m17n.org>
26352
26353 * casefiddle.c (casify_region): Fix multibyte case.
26354
26355 * character.c (c_string_width): Add return type `int'.
26356 (char_string_with_unification): Delete arg ADVANCED.
26357
26358 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26359 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26360 (CHAR_STRING_ADVANCE): Make it do-while statement.
26361
26362 * chartab.c (sub_char_table_set_range): Optimize for the case
26363 DEPTH == 3. Add workaround code for a GCC optimization bug.
26364
26365 * charset.c (parse_charset_map): Remove an unused variable.
26366
26367 * coding.c: Delete unused variables.
26368
26369 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26370 earlier. If inserted is zero and the coding system doesn't
26371 require flushing, don't call decode_coding_gap.
26372
26373 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26374
26375 2008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 The following changes are for using Unicode as an internal
26378 character model, and use UTF-8 format for buffer/string
26379 representation.
26380
26381 * .gdbinit (xchartable): Adjust for the change of char table structure.
26382 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26383
26384 * Makefile.in (obj): Add character.o and chartab.o.
26385 (lisp, shortlisp): Remove utf-8.elc.
26386 (*.o): For many files, change dependency on charset.h to
26387 character.h, and add dependency on character.h.
26388 (character.o, chartab.o): New targets.
26389
26390 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26391 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26392 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26393 of "charset.h".
26394
26395 * dired.c, filelock.c: Include "character.h".
26396
26397 * alloc.c: Include "character.h" instead of "charset.h".
26398 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26399 (syms_of_alloc): Remove defsubr for Smake_char_table.
26400
26401 * buffer.c: Include "character.h" instead of "charset.h", don't
26402 include "coding.h".
26403 (Fset_buffer_multibyte): Adjust for UTF-8.
26404
26405 * buffer.h: EXFUN Fbuffer_live_p.
26406
26407 * callproc.c: Include "character.h" instead of "charset.h".
26408 (Fcall_process): Big change for the new code-conversion APIs.
26409
26410 * casetab.c: Include "character.h" instead of "charset.h".
26411 (set_canon, set_identity, shuffle): Adjust for the new
26412 map_char_table spec.
26413 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26414 accessing the char table structure.
26415
26416 * chartab.c: New file that implements char table.
26417
26418 * category.c: Include "character.h".
26419 (copy_category_entry): New function.
26420 (copy_category_table): Call map_char_table and copy_category_entry.
26421 (Fmake_category_table): Initialize all top-level slots.
26422 (char_category_set): New function.
26423 (modify_lower_category_set): Delete.
26424 (Fmodify_category_entry): Call char_table_ref_and_range.
26425
26426 * category.h (CATEGORY_SET): Just call char_category_set.
26427
26428 * ccl.c: Include "character.h".
26429 (Qccl, Qcclp): New variables.
26430 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26431 it's less than 256.
26432 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26433 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26434 and DST type.
26435 (ccl_driver): Change types of argument, adjust code accordingly.
26436 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26437 ccl_driver.
26438 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26439
26440 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26441 New members src_multibyte, dst_multibyte, consumed, and produced.
26442 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26443 (CODING_SPEC_CCL_PROGRAM): New macro.
26444 (ccl_driver): Update prototype.
26445 (Qccl, Qcclp, Fccl_program_p): Extern them.
26446 (CHECK_CCL_PROGRAM): New macro.
26447
26448 * character.c, character.h, chartab.c: New files.
26449
26450 * charset.c: Mostly re-written. Move character and multibyte sequence
26451 handling codes to character.c.
26452
26453 * charset.h: Mostly re-written. Move character and multibyte sequence
26454 handling codes to character.h.
26455
26456 * coding.c, coding.h: Mostly re-written.
26457
26458 * composite.c: Include "character.h" instead of "charset.h".
26459 (CHAR_WIDTH): Move to character.h.
26460 (HASH_KEY, HASH_VALUE): Delete.
26461
26462 * composite.h (enum composition_method): Change order of enumeration
26463 symbols.
26464
26465 * data.c: Include "character.h" instead of "charset.h".
26466 (Faref): Call CHAR_TABLE_REF for a char table.
26467 (Faset): Call CHAR_TABLE_SET for a char table.
26468
26469 * dispextern.h (free_realized_face, check_face_attribytes)
26470 (generate_ascii_font): Extern them.
26471 (free_realized_multibyte_face): Delete extern.
26472
26473 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26474 table structure.
26475
26476 * editfns.c: Include "character.h" instead of "charset.h".
26477 (Fchar_to_string): Always call CHAR_STRING.
26478
26479 * emacs.c (main): Call init_charset_once, init_charset,
26480 syms_of_chartab, and syms_of_character.
26481
26482 * fileio.c: Include "character.h" instead of "charset.h".
26483 (Finsert_file_contents): Big change for the new code-conversion API.
26484 (choose_write_coding_system, Fwrite_region): Likewise.
26485 (build_annotations_2): Delete.
26486 (e_write): Big change for the new code-conversion API.
26487
26488 * fns.c: Include "character.h" instead of "charset.h".
26489 (copy_sub_char_table): Move to chartab.c.
26490 (Fcopy_sequence): Call copy_char_table for a char table.
26491 (concat): Delete codes calling count_multibyte.
26492 (string_char_to_byte, string_byte_to_char): Adjust for the new
26493 multibyte form.
26494 (internal_equal): Adjust for the change of char table structure.
26495 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26496 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26497 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26498 (char_table_translate, optimize_sub_char_table)
26499 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26500 chartab.c.
26501 (char_table_ref_and_index): Delete.
26502 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26503 (Fmd5): Call preferred_coding_system instead of accessing
26504 Vcoding_category_list. Adjust for the new code-conversion API.
26505 (syms_of_fns): Move defsubr for char table related functions to
26506 chartab.c.
26507
26508 * fontset.c: Mostly re-written.
26509
26510 * fontset.h (struct font_info): Change type of the member encoding_type.
26511 (enum FONT_SPEC_INDEX): New enum.
26512 (fontset_font_pattern, fs_load_font): Update prototype.
26513 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26514
26515 * indent.c: Include "character.h" instead of "charset.h".
26516 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26517
26518 * insdel.c: Include "character.h" instead of "charset.h".
26519 (copy_text): Don't refer to Vnonascii_translation_table.
26520 (insert_from_gap): New function.
26521
26522 * keyboard.c: Include "character.h" instead of "charset.h".
26523 (command_loop_1): Never call direct_output_forward_char before
26524 a non-ASCII character.
26525 (read_char): If Vkeyboard_translate_table is a char table, always
26526 translate a character.
26527
26528 * keymap.c: Include "character.h".
26529 (store_in_keymap): Handle the case that IDX is a cons.
26530 (Fdefine_key): Handle the case that KEY is a cons and the car part
26531 is also a cons (range).
26532 (push_key_description): Adjust for the new character code.
26533 (describe_vector): Call describe_char_table for a char table.
26534 (describe_char_table): New function.
26535
26536 * keymap.h (describe_char_table): Extern it.
26537
26538 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26539 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26540 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26541 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26542 Delete.
26543 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26544 structure.
26545 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26546 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26547 (CHARTAB_SIZE_BITS_3): New macros.
26548 (chartab_size): Extern it.
26549 (struct Lisp_Char_Table): Re-design.
26550 (struct Lisp_Sub_Char_Table): New structure.
26551 (HASH_KEY, HASH_VALUE): Move from fns.c.
26552 (CHARACTERBITS): Define as 22.
26553 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26554 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26555 (GC_SUB_CHAR_TABLE_P): New macro.
26556 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
26557 (code_convert_string_norecord): Delete extern.
26558 (init_character_once, syms_of_character, init_charset)
26559 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26560
26561 * lread.c: Include "character.h".
26562 (read_multibyte): New arg NBYTES.
26563 (read_escape): Change the meaning of returned *BYTEREP.
26564 (to_multibyte): Delete.
26565 (read1): Adjust the handling of char table and string.
26566
26567 * print.c: Include "character.h" instead of "charset.h".
26568 (print_string): Convert 8-bit raw bytes to octal form by
26569 string_escape_byte8.
26570 (print_object): Adjust for the new multibyte form. Print 8-bit
26571 raw bytes always in octal form. Handle sub char table correctly.
26572
26573 * process.c: Include "character.h" instead of "charset.h".
26574 (read_process_output, send_process): Adjust for the new
26575 code-conversion API.
26576
26577 * puresize.h (BASE_PURESIZE): Increase.
26578
26579 * regex.c: Include "character.h" instead of "charset.h".
26580 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26581 (regex_compile): Accept a range whose starting and ending
26582 character have different leading bytes.
26583 (analyse_first): Adjust for the above change.
26584
26585 * search.c: Include "character.h" instead of "charset.h".
26586 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26587 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26588
26589 * syntax.c: Include "character.h" instead of "charset.h".
26590 (syntax_parent_lookup): Delete.
26591 (Fmodify_syntax_entry): Accept a cons as CHAR.
26592 (skip_chars): Adjust for the new multibyte form.
26593 (init_syntax_once): Call char_table_set_range instead of directly
26594 accessing the structure of a char table.
26595
26596 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26597 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26598 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26599 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26600
26601 * term.c: Include "buffer.h" and "character.h".
26602 (encode_terminal_code, write_glyphs): Adjust for the new
26603 code-conversion API.
26604 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26605
26606 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26607
26608 * xdisp.c: Include "character.h".
26609 (get_next_display_element): Adjust for the new multibyte form.
26610 (disp_char_vector): Adjust for the new char table structure.
26611 (decode_mode_spec_coding): Adjust for the new structure of
26612 coding system.
26613 (decode_mode_spec): Adjust for the new code-conversion API.
26614
26615 * xfaces.c: Include "character.h" instead of "charset.h".
26616 (load_face_font): Adjust for the change of choose_face_font and
26617 FS_LOAD_FONT.
26618 (generate_ascii_font): New function.
26619 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26620 (set_font_frame_param): Adjust for the change of choose_face_font.
26621 (free_realized_face): Make it public.
26622 (free_realized_faces_for_fontset): Rename from
26623 free_realized_multibyte_face. Free also faces realized for ASCII.
26624 (choose_face_font): Change arguments. Adjust for the change of
26625 fontset_font_pattern and FS_LOAD_FONT.
26626
26627 * xfns.c: Include "character.h".
26628 (x_encode_text): Adjust for the new code-conversion API.
26629
26630 * xselect.c: Don't include "charset.h".
26631 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26632
26633 * xterm.c: Include "character.h".
26634 (x_encode_char): New argument CHARSET. Change caller.
26635 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26636 Call ENCODE_CHAR instead of SPLIT_CHAR.
26637 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26638 CHAR_WIDTH instead of CHARSET_WIDTH.
26639 (XTread_socket): Adjust for the new code-conversion API.
26640 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26641 (x_load_font): Adjust for the change of struct font.
26642
26643 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26644
26645 * xfaces.c (face_at_buffer_position): Remove unused vars.
26646
26647 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26648
26649 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26650 Fix overflow checking.
26651
26652 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26653
26654 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26655 Cancel previous change.
26656
26657 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26658
26659 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26660 ccl->eight_bit_control. Fix check for buffer overflow.
26661 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26662 (ccl_driver): Initialize extra_bytes to 0.
26663
26664 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26665
26666 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26667 return it ORed with ctrl_modifier.
26668
26669 2008-01-29 Miles Bader <miles@gnu.org>
26670
26671 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26672
26673 2008-01-28 Jason Rumney <jasonr@gnu.org>
26674
26675 * w32.c (stat): Don't double check for networked drive.
26676
26677 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26678
26679 * window.c (run_window_configuration_change_hook): New function.
26680 Code extracted from set_window_buffer. Set the selected frame.
26681 (set_window_buffer): Use it.
26682 * window.h (run_window_configuration_change_hook): Declare.
26683 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26684
26685 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26686
26687 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26688
26689 * Makefile.in: Remove references to unused macros.
26690
26691 2008-01-26 Eli Zaretskii <eliz@gnu.org>
26692
26693 * w32.c (g_b_init_get_sid_sub_authority)
26694 (g_b_init_get_sid_sub_authority_count): New static variables.
26695 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26696 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26697 (init_user_info): Use them to retrieve uid and gid.
26698 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26699 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26700 st_uid and st_gid of the file.
26701
26702 2008-01-26 Jason Rumney <jasonr@gnu.org>
26703
26704 * w32.c (logon_network_drive): New function.
26705 (stat): Use it.
26706
26707 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
26708
26709 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26710 invisible text covered with an ellipsis.
26711
26712 2008-01-25 Richard Stallman <rms@gnu.org>
26713
26714 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26715 jump back to beginning. Move some other initializations after that.
26716 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26717 New variables.
26718 (syms_of_xdisp): Init them.
26719
26720 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26721
26722 * buffer.c (reset_buffer_local_variables):
26723 Implement `permanent-local-hook'.
26724 (Qpermanent_local_hook): New variable.
26725 (syms_of_buffer): Init and staticpro it.
26726
26727 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
26728
26729 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26730
26731 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26732
26733 * fns.c (Fclrhash): Return TABLE.
26734
26735 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26736
26737 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26738 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26739 is set even without positional changes.
26740 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26741
26742 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26743
26744 2008-01-23 Jason Rumney <jasonr@gnu.org>
26745
26746 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26747
26748 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26749 the unicode range available in MULE by locale-coding-system.
26750 Improve dbcs lead byte detection. Set event timestamp and modifiers
26751 earlier.
26752
26753 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26754
26755 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26756 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26757 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26758 when used on child processes.
26759
26760 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
26761
26762 * dbusbind.c (Fdbus_method_return_internal): Rename from
26763 Fdbus_method_return.
26764 (Fdbus_unregister_object): Move to dbus.el.
26765 (Fdbus_call_method, Fdbus_method_return_internal)
26766 (Fdbus_send_signal): Improve debug messages.
26767
26768 2008-01-20 Martin Rudalics <rudalics@gmx.at>
26769
26770 * undo.c (undo_inhibit_record_point): New variable.
26771 (syms_of_undo): Initialize it.
26772 (record_point): Don't record point when undo_inhibit_record_point
26773 is set.
26774
26775 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26776
26777 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26778
26779 * xdisp.c (Qauto_hscroll_mode): New var.
26780 (syms_of_xdisp): Initialize it.
26781 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26782 window's buffer.
26783 (hscroll_windows): Don't check automatic_hscrolling_p here.
26784
26785 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26786 vscroll if we're setting window-buffer to the value it already has.
26787
26788 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26789
26790 * m/intel386.h: Remove references to XENIX.
26791
26792 2008-01-17 Andreas Schwab <schwab@suse.de>
26793
26794 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26795 instead of HAVE_X86_64_LIB64_DIR.
26796 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26797
26798 2008-01-17 Glenn Morris <rgm@gnu.org>
26799
26800 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26801 to HAVE_X86_64_LIB64_DIR.
26802
26803 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26804
26805 * s/irix3-3.h:
26806 * s/irix4-0.h:
26807 * s/386-ix.h:
26808 * s/domain.h:
26809 * s/hpux9-x11r4.h:
26810 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26811
26812 * sysdep.c: Remove code containing references to symbols defined
26813 by unsupported systems.
26814
26815 2008-01-16 Glenn Morris <rgm@gnu.org>
26816
26817 * coding.c (select-safe-coding-system-function): Doc fix.
26818
26819 2008-01-15 Glenn Morris <rgm@gnu.org>
26820
26821 * config.in: Revert 2008-01-13 change: this is a generated file.
26822
26823 2008-01-13 Tom Tromey <tromey@redhat.com>
26824
26825 * lisp.h: Fix typo.
26826
26827 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26828
26829 * m/sequent-ptx.h:
26830 * m/sequent.h:
26831 * s/ptx.h:
26832 * s/ptx4-2.h:
26833 * s/ptx4.h: Remove files for systems no longer supported.
26834
26835 * callproc.c (Fcall_process): Fix previous change.
26836
26837 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26838
26839 * unexsunos4.c: Remove file, system not supported anymore.
26840
26841 * m/mips.h:
26842 * m/intel386.h:
26843 * callproc.c:
26844 * config.in:
26845 * ecrt0.c:
26846 * emacs.c:
26847 * fileio.c:
26848 * frame.c:
26849 * getpagesize.h:
26850 * keyboard.c:
26851 * lread.c:
26852 * process.c:
26853 * puresize.h:
26854 * sysdep.c:
26855 * systty.h:
26856 * syswait.h:
26857 * unexec.c:
26858 * xdisp.c:
26859 * alloc.c: Remove code containing references to symbols defined by
26860 unsupported systems.
26861
26862 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26863
26864 * coding.c (detect_coding_mask): Fix previous change.
26865
26866 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26867
26868 * coding.c (detect_coding_iso2022): New arg
26869 latin_extra_code_state. Allow Latin extra codes only
26870 when *latin_extra_code_state is nonzero.
26871 (detect_coding_mask): If there is a NULL byte, detect the encoding
26872 as UTF-16 or binary. If Latin extra codes exist, detect the
26873 encoding as ISO-2022 only when there's no other proper encoding is
26874 found.
26875
26876 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26877
26878 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26879 #ifdef MAC_OS.
26880
26881 2008-01-08 Richard Stallman <rms@gnu.org>
26882
26883 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26884
26885 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
26886
26887 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26888 menu bar in parentheses.
26889
26890 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26891
26892 * m/7300.h:
26893 * m/acorn.h:
26894 * m/alliant-2800.h:
26895 * m/alliant.h:
26896 * m/alliant1.h:
26897 * m/alliant4.h:
26898 * m/altos.h:
26899 * m/amdahl.h:
26900 * m/apollo.h:
26901 * m/att3b.h:
26902 * m/aviion-intel.h:
26903 * m/aviion.h:
26904 * m/celerity.h:
26905 * m/clipper.h:
26906 * m/cnvrgnt.h:
26907 * m/convex.h:
26908 * m/cydra5.h:
26909 * m/delta88k.h:
26910 * m/dpx2.h:
26911 * m/dual.h:
26912 * m/elxsi.h:
26913 * m/f301.h:
26914 * m/gould-np1.h:
26915 * m/gould.h:
26916 * m/i860.h:
26917 * m/ibmps2-aix.h:
26918 * m/ibmrt-aix.h:
26919 * m/ibmrt.h:
26920 * m/irist.h:
26921 * m/is386.h:
26922 * m/isi-ov.h:
26923 * m/mega68.h:
26924 * m/mg1.h:
26925 * m/news-r6.h:
26926 * m/news-risc.h:
26927 * m/news.h:
26928 * m/nh3000.h:
26929 * m/nh4000.h:
26930 * m/ns16000.h:
26931 * m/ns32000.h:
26932 * m/nu.h:
26933 * m/orion.h:
26934 * m/orion105.h:
26935 * m/paragon.h:
26936 * m/pfa50.h:
26937 * m/plexus.h:
26938 * m/pyramid.h:
26939 * m/pyrmips.h:
26940 * m/sh3el.h:
26941 * m/sps7.h:
26942 * m/sr2k.h:
26943 * m/stride.h:
26944 * m/sun1.h:
26945 * m/sun2.h:
26946 * m/sun3-68881.h:
26947 * m/sun3-fpa.h:
26948 * m/sun3-soft.h:
26949 * m/sun3.h:
26950 * m/sun386.h:
26951 * m/symmetry.h:
26952 * m/tad68k.h:
26953 * m/tahoe.h:
26954 * m/targon31.h:
26955 * m/tek4300.h:
26956 * m/tekxd88.h:
26957 * m/tower32.h:
26958 * m/tower32v3.h:
26959 * m/ustation.h:
26960 * m/wicat.h:
26961 * m/xps100.h:
26962 * s/cxux.h:
26963 * s/cxux7.h:
26964 * s/dgux.h:
26965 * s/dgux4.h:
26966 * s/dgux5-4-3.h:
26967 * s/dgux5-4r2.h:
26968 * s/esix.h:
26969 * s/esix5r4.h:
26970 * s/hiuxmpp.h:
26971 * s/hiuxwe2.h:
26972 * s/iris3-5.h:
26973 * s/iris3-6.h:
26974 * s/isc2-2.h:
26975 * s/isc3-0.h:
26976 * s/isc4-0.h:
26977 * s/isc4-1.h:
26978 * s/newsos5.h:
26979 * s/newsos6.h:
26980 * s/osf1.h:
26981 * s/osf5-0.h:
26982 * s/riscix1-1.h:
26983 * s/riscix12.h:
26984 * s/sco4.h:
26985 * s/sco5.h:
26986 * s/sunos4-0.h:
26987 * s/sunos4-1.h:
26988 * s/sunos413.h:
26989 * s/sunos4shr.h:
26990 * s/umax.h:
26991 * s/unipl5-2.h:
26992 * s/xenix.h:
26993 * cxux-crt0.s:
26994 * unexapollo.c:
26995 * unexconvex.c:
26996 * unexenix.c:
26997 * unexsni.c: Remove files for systems no longer supported.
26998
26999 * m/intel386.h: Remove references to unsupported systems.
27000
27001 * w32.c (get_emacs_configuration): Remove reference to i860.
27002
27003 * sysdep.c: Remove dead code.
27004
27005 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27006
27007 * s/rtu.h:
27008 * m/masscomp.h: Remove files. Platform is obsolete.
27009
27010 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
27011
27012 * dbusbind.c (Fdbus_method_return): New function.
27013 (xd_read_message): Add the serial number to the event.
27014 (Fdbus_register_method): Activate the function.
27015
27016 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27017
27018 * keyboard.c (read_key_sequence): Fix typo.
27019
27020 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
27021
27022 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27023 (xd_signature, xd_append_arg): Handle element type detection for
27024 empty arrays.
27025 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27026 SDATA () calls; this must be solved more general.
27027 (Fdbus_register_signal): Use SBYTES instead of strlen.
27028
27029 2008-01-03 Magnus Henoch <magnus@zemdatav>
27030
27031 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27032 unsigned int for byte values (necessary for big-endian platform).
27033 (Fdbus_call_method): Handle the case of no returned arguments.
27034
27035 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27036
27037 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27038
27039 2007-12-31 Magnus Henoch <mange@freemail.hu>
27040
27041 * dbusbind.c (xd_signature): Signature of variant is just "v".
27042
27043 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
27044
27045 * dbusbind.c: Fix several errors and compiler warnings.
27046 Reported by Tom Tromey <tromey@redhat.com>.
27047 (XD_ERROR, XD_DEBUG_MESSAGE)
27048 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27049 (xd_append_arg): Part for basic D-Bus types rewritten.
27050 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27051 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27052 appropriate.
27053 (xd_read_message): Return Qnil. Don't signal an error; it is not
27054 useful during event reading.
27055 (Fdbus_register_signal): Signal an error if the check for
27056 FUNCTIONP fails.
27057 (Fdbus_register_method): New function. The implementation is not
27058 complete, the call of the function signals an error therefore.
27059 (Fdbus_unregister_object): New function, renamed from
27060 Fdbus_unregister_signal. The initial check signals an error, if
27061 the object is not well formed.
27062
27063 2007-12-30 Richard Stallman <rms@gnu.org>
27064
27065 * textprop.c (get_char_property_and_overlay):
27066 Signal error if POSITION is out of range in a buffer.
27067
27068 2007-12-29 Martin Rudalics <rudalics@gmx.at>
27069
27070 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27071 because the original parameters are in pure storage now.
27072
27073 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27074
27075 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27076
27077 2007-12-22 Eli Zaretskii <eliz@gnu.org>
27078
27079 * callint.c (syms_of_callint) <command-history>: Add reference to
27080 history-length in the doc string.
27081
27082 2007-12-17 Jason Rumney <jasonr@gnu.org>
27083
27084 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27085 before passing as wParam.
27086
27087 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
27088
27089 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27090 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27091 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27092 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27093 as number.
27094 (Fdbus_call_method): Fix docstring.
27095
27096 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
27097
27098 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27099 New macros.
27100 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27101 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27102 Simplify.
27103 (xd_signature): New function.
27104 (xd_append_arg): Compute also signatures. Major rewrite.
27105 (xd_retrieve_arg): Make debug messages friendly.
27106 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27107 Check for signatures of arguments.
27108
27109 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
27110
27111 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27112 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27113 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27114 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27115 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27116 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27117 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27118 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27119 (xd_retrieve_value): Remove. Functionality included in ...
27120 (xd_append_arg): New function.
27121 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27122
27123 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
27124
27125 * dbusbind.c (top): Include <stdio.h>.
27126 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27127 dbus_message_new_method_call and dbus_message_new_signal.
27128 (Fdbus_register_signal): Rename unique_name to uname.
27129 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27130 non-existing unique name. Fix typos in matching rule. Return an
27131 object which is useful in Fdbus_unregister_signal.
27132 (Fdbus_unregister_signal): Reimplementation, in order to remove
27133 only the corresponding entry.
27134 (Vdbus_registered_functions_table): Change the order of entries.
27135 Apply these changes in xd_read_message and Fdbus_register_signal.
27136
27137 2007-12-16 Andreas Schwab <schwab@suse.de>
27138
27139 * fileio.c (Finsert_file_contents): Fix overflow check to not
27140 depend on undefined integer overflow.
27141
27142 2007-12-14 Jason Rumney <jasonr@gnu.org>
27143
27144 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27145 for characters above 127.
27146
27147 2007-12-13 Jason Rumney <jasonr@gnu.org>
27148
27149 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27150 before dereferencing array.
27151 (lookup_vk_code): Remove zero comparison.
27152
27153 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
27154
27155 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27156 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27157 Use `unsigned int' instead of `uint'.
27158 (xd_read_message, Fdbus_register_signal): Split expressions into
27159 multiple lines before operators "&&" and "||", according to the
27160 GNU Coding Standards.
27161
27162 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27163
27164 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27165
27166 2007-12-12 Juri Linkov <juri@jurta.org>
27167
27168 * buffer.c (Frename_buffer): In interactive spec replace
27169 `read-buffer' with `read-string' that uses `buffer-name-history'
27170 as history, and the current buffer's name as default.
27171
27172 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27173
27174 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27175 manipulating the backtrace manually.
27176 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27177 (struct backtrace, backtrace_list): Remove.
27178 (command_loop_1): Remove dead var `no_direct'.
27179
27180 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27181 preserve non-built-in buffer-local variables.
27182 (Fkill_all_local_variables): Don't re-create&re-set permanent
27183 buffer-local variables.
27184
27185 2007-12-09 Juri Linkov <juri@jurta.org>
27186
27187 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27188 Lisp code that uses `read-buffer' with current buffer as default.
27189
27190 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
27191
27192 * dbusbind.c (xd_read_message): Generate an event for every
27193 registered handler. There might be several handlers registered
27194 for the same signal.
27195 (Fdbus_register_signal): Don't overwrite a registration for the
27196 same signal. Add a new registration if handlers are different.
27197 (Vdbus_registered_functions_table): Rework doc string.
27198
27199 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
27200
27201 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27202 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27203 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27204 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27205 Unify argument lists.
27206 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27207 arguments and hash table keys. Use unique name for service.
27208 (Fdbus_unregister_signal): Remove checks.
27209 (Vdbus_registered_functions_table): Fix doc string.
27210
27211 2007-12-05 Magnus Henoch <mange@freemail.hu>
27212
27213 * process.c (make_process): Initialize pty_flag to 0.
27214
27215 2007-12-05 Jason Rumney <jasonr@gnu.org>
27216
27217 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27218 specified XBMs.
27219
27220 2007-12-05 Richard Stallman <rms@gnu.org>
27221
27222 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27223
27224 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27225
27226 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27227 New variable.
27228 (mac_try_close_socket) [MAC_OSX]: New function.
27229 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27230 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27231
27232 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27233 Use mac_try_close_socket.
27234
27235 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27236
27237 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27238 reloc_base.
27239 (copy_dysymtab): Compute relocation base here.
27240 (rebase_reloc_address) [__ppc64__]: New function.
27241 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27242 changed.
27243
27244 2007-12-05 Jason Rumney <jasonr@gnu.org>
27245
27246 * w32proc.c (sys_spawnve): Quote args with wildcards.
27247
27248 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27249
27250 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27251 __objc_* sections.
27252 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27253
27254 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
27255
27256 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27257 Move check for Vdbus_registered_functions_table to
27258 xd_read_queued_messages.
27259 (xd_read_queued_messages): Protect xd_read_message calls by
27260 internal_condition_case_1.
27261
27262 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
27263
27264 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27265 Qdbus_system_bus and Qdbus_session_bus, respectively.
27266 (Vdbus_intern_symbols): Remove.
27267 (Vdbus_registered_functions_table): New hash table.
27268 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27269 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27270 Rewrite in order to manage registered functions by hash table
27271 Vdbus_registered_functions_table.
27272
27273 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27274
27275 * xterm.c: Update URL to Window Manager Specification in comment.
27276
27277 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
27278
27279 * config.in (HAVE_DBUS): Add.
27280
27281 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27282 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27283 (obj): Add $(DBUS_OBJ).
27284 (LIBES): Add $(DBUS_LIBS).
27285 (dbusbind.o): New target.
27286
27287 * dbusbind.c: New file.
27288
27289 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27290
27291 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27292 (Qdbus_event): New Lisp symbol.
27293 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27294 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
27295 (keys_of_keyboard): Define dbus-event.
27296
27297 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27298
27299 2007-12-01 Richard Stallman <rms@gnu.org>
27300
27301 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27302
27303 2007-11-30 Jason Rumney <jasonr@gnu.org>
27304
27305 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27306 (w32con_reset_terminal_modes): Clear screen buffer.
27307 (w32_face_attributes): Don't use color indexes that are out of range.
27308 Only reverse the default colors.
27309
27310 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27311 WINDOWSNT.
27312
27313 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27314
27315 2007-11-29 Jason Rumney <jasonr@gnu.org>
27316
27317 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27318 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27319 if the terminal colors are initialized.
27320 (unspecified_fg, unspecified_bg): Remove unused declarations.
27321
27322 2007-11-29 Andreas Schwab <schwab@suse.de>
27323
27324 * keyboard.c (apply_modifiers): Fix typo.
27325
27326 2007-11-29 Richard Stallman <rms@gnu.org>
27327
27328 * keymap.c (Fcurrent_local_map): Doc fix.
27329
27330 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27331
27332 * s/gnu-kfreebsd.h: New file.
27333
27334 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27335
27336 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27337 Don't cast redundantly.
27338
27339 * keyboard.c (KEY_TO_CHAR): New macro.
27340 (parse_modifiers, apply_modifiers): Accept integer arguments.
27341 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27342 for chars and symbol keys.
27343 After doing such remapping, apply function-key-map again.
27344
27345 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27346
27347 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27348 compiled anymore.
27349
27350 2007-11-26 Andreas Schwab <schwab@suse.de>
27351
27352 * process.c (list_processes_1): Fix indentation level of the
27353 command column.
27354
27355 2007-11-23 Andreas Schwab <schwab@suse.de>
27356
27357 * editfns.c (Fformat): Handle %c specially since it requires the
27358 argument to be of type int.
27359
27360 2007-11-23 Markus Triska <markus.triska@gmx.at>
27361
27362 * emacs.c (main): Call init_editfns before init_process, since
27363 init_process sets Vprocess_connection_type depending on OS release.
27364
27365 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27366
27367 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27368 (find_symbol_value): Use do_symval_forwarding.
27369
27370 * data.c (set_internal): Set the value in the `cons-cell' (for
27371 Buffer_Local_values) not only for frame-local variables.
27372
27373 2007-11-22 Andreas Schwab <schwab@suse.de>
27374
27375 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27376 values to sprintf.
27377 * keymap.c (Fsingle_key_description): Likewise.
27378 * print.c (print_object): Likewise.
27379
27380 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27381
27382 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27383 file for image is nil.
27384
27385 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27386
27387 * term.c: Include stdarg.h.
27388 (fatal): Implement using varargs.
27389 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27390
27391 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27392
27393 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27394 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27395 Update call to buffer_slot_type_mismatch.
27396 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27397 (buffer_slot_type_mismatch): Update.
27398 * buffer.c (buffer_local_types): Remove.
27399 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27400 (defvar_per_buffer): Set the type in the buffer_objfwd.
27401
27402 2007-11-21 Jason Rumney <jasonr@gnu.org>
27403
27404 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27405 CreateFileMapping returns NULL on failure.
27406
27407 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27408
27409 * search.c (Fset_match_data): Remove the `evaporate' feature.
27410 (unwind_set_match_data): Don't use the `evaporate' feature.
27411
27412 2007-11-21 Jason Rumney <jasonr@gnu.org>
27413
27414 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27415
27416 * w32console.c (w32con_write_glyphs): Remove unused variables.
27417
27418 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27419
27420 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27421
27422 * s/darwin.h (MULTI_KBOARD): Remove.
27423
27424 * macfns.c (x_create_tip_frame, Fx_create_frame)
27425 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27426
27427 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27428
27429 * buffer.c (Fbuffer_local_value): Remove redundant test.
27430 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27431 than in `current-buffer' to match the comment.
27432 Do the swap using swap_in_global_binding.
27433
27434 * data.c (store_symval_forwarding, set_internal):
27435 * eval.c (specbind): Remove dead code.
27436
27437 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27438 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27439 Since we do not want to see internal Lisp_*fwd objects here.
27440
27441 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27442
27443 * sysdep.c (init_system_name): Use getaddrinfo if available.
27444
27445 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27446 (x_scroll_bar_note_movement): start, end, with, height in struct
27447 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27448
27449 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27450
27451 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27452
27453 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27454
27455 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27456 This undoes Richard's change of 14-Oct-2002.
27457
27458 * alloc.c (allocate_other_vector):
27459 * lisp.h (allocate_other_vector): Remove.
27460
27461 * window.c (struct save_window_data): Move non-lisp data to the end
27462 and make it `int' rather than Lisp_Object.
27463 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27464 Done wrap/unwrap integer values.
27465 (Fset_window_configuration, compare_window_configurations):
27466 Update use of fields to their new types.
27467
27468 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27469 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27470 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27471 (SET_SCROLL_BAR_X_WINDOW): Remove.
27472 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27473 Access the new x_window field directly.
27474 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27475 Don't wrap/unwrap integers into Lisp_Objects.
27476 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27477 (x_scroll_bar_report_motion):
27478 Don't wrap/unwrap integers into Lisp_Objects.
27479 (x_term_init): Use SDATA.
27480 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27481 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27482 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27483 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27484 * xfns.c (x_set_background_color):
27485 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27486 Access the new x_window field directly.
27487
27488 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27489 (allocate_pseudovector): Make non-static.
27490
27491 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27492 (allocate_pseudovector): Declare.
27493 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27494
27495 2007-11-15 Andreas Schwab <schwab@suse.de>
27496
27497 * editfns.c (Fformat): Correctly format EMACS_INT values.
27498 Also take precision into account when formatting an integer.
27499
27500 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27501
27502 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27503
27504 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27505 (syms_of_keyboard): Defsubr it.
27506
27507 * data.c (swap_in_global_binding): Fix longstanding bug where
27508 store_symval_forwarding was not called with the right second argument,
27509 thus causing objfwd-ing from being dropped.
27510
27511 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27512
27513 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27514 (Fx_display_pixel_height, Fx_display_planes)
27515 (Fx_display_color_cells, Fx_server_max_request_size)
27516 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27517 (Fx_display_visual_class, Fx_display_save_under):
27518 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27519 (Fx_display_pixel_height, Fx_display_planes)
27520 (Fx_display_color_cells, Fx_server_max_request_size)
27521 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27522 (Fx_display_mm_height, Fx_display_mm_width)
27523 (Fx_display_backing_store, Fx_display_visual_class)
27524 (Fw32_select_font, Fx_display_save_under):
27525 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27526 (Fx_display_pixel_height, Fx_display_planes)
27527 (Fx_display_color_cells, Fx_server_max_request_size)
27528 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27529 (Fx_display_save_under): Fix typos in docstrings.
27530
27531 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27532
27533 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27534 corresponding to deleted entries; they are an implementation detail.
27535 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27536 Remove variables.
27537 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27538 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27539 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27540 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27541 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27542 (Fw32_define_rgb_color, Fw32_load_color_file)
27543 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27544 Fix typos in docstrings.
27545 (Fx_server_version): Reflow docstring.
27546 (Fw32_shell_execute): Doc fixes.
27547
27548 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
27549
27550 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27551 if w32_parse_hot_key returned nil.
27552
27553 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27554
27555 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27556
27557 2007-11-09 Jason Rumney <jasonr@gnu.org>
27558
27559 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27560
27561 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27562
27563 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27564 Remove W32_SCROLL_BAR_CLICK_EVENT.
27565
27566 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27567 Add MULTIMEDIA_KEY_EVENT.
27568
27569 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27570 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27571 (make_lispy_event) [WINDOWSNT]: Use it to translate
27572 MULTIMEDIA_KEY_EVENT.
27573
27574 * w32term.h (WM_APPCOMMAND): Define if not already.
27575 (GET_APPCOMMAND_LPARAM): Likewise.
27576
27577 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27578 WM_APPCOMMAND.
27579
27580 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27581 (syms_of_w32fns): Export and initialize it.
27582 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27583
27584 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
27585
27586 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27587 twice.
27588
27589 * xdisp.c (handle_face_prop): Fix last change.
27590
27591 2007-11-09 Richard Stallman <rms@gnu.org>
27592
27593 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27594 not just for after-strings and before-strings.
27595 Call face_for_overlay_string and pass the overlay to it.
27596 (handle_display_prop): Determine whether property came from an overlay.
27597 Pass OVERLAY arg to handle_single_display_spec.
27598 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27599 (load_overlay_strings): Fill in it->string_overlays.
27600 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27601
27602 * xfaces.c (face_for_overlay_string): Function renamed from
27603 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27604
27605 * dispextern.h (struct it): New elt string_overlays.
27606 New elt from_overlay, also in stack.
27607 Rearrange a few elements.
27608 (face_for_overlay_string): Decl renamed from
27609 face_at_buffer_position_no_overlays, and add argument.
27610
27611 2007-11-09 Richard Stallman <rms@gnu.org>
27612
27613 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27614 to get the base face for an overlay string.
27615
27616 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27617
27618 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27619
27620 * xdisp.c (handle_stop): Move some code out of loop.
27621
27622 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27623
27624 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27625 Fix conversion from Lisp object to ATSUFontID.
27626
27627 2007-11-09 Jason Rumney <jasonr@gnu.org>
27628
27629 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27630
27631 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27632
27633 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27634 Don't assume regions are aligned to page boundary.
27635 (print_load_command_name): Add LC_UUID if defined.
27636
27637 2007-11-09 Richard Stallman <rms@gnu.org>
27638
27639 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27640
27641 2007-11-07 Jason Rumney <jasonr@gnu.org>
27642
27643 * s/windows95.h: Remove.
27644
27645 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27646
27647 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27648 abort with a message on unhandled store_type values.
27649
27650 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27651
27652 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27653 Remove HAVE_X11R5 and HAVE_X11R4.
27654
27655 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27656
27657 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27658
27659 2007-11-01 Johan Bockgård <bojohan@gnu.org>
27660
27661 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27662 Don't set s->stippled_p here, since it has already been set by
27663 x_set_glyph_string_gc from x_draw_glyph_string.
27664
27665 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27666
27667 * sunfns.c: Remove file.
27668
27669 * m/sun386.h:
27670 * m/sun2.h:
27671 * m/sparc.h: Remove Sun windows code.
27672
27673 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27674
27675 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27676 (init_keyboard): Set current_kboard's window-system to nil.
27677 (tty_read_avail_input): Typo.
27678 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27679
27680 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27681
27682 * s/usg5-4.h:
27683 * s/usg5-3.h:
27684 * s/ptx.h:
27685 * m/is386.h:
27686 * m/ibmps2-aix.h:
27687 * Makefile.in: Remove all mentions of X10.
27688
27689 * dispnew.c (syms_of_display): Don't mention version 10.
27690
27691 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
27692
27693 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27694 ($(BLD)/abbrev.$(O)): Remove.
27695
27696 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27697
27698 Rewrite abbrev.c in Elisp.
27699 * image.c (Qcount): Don't declare as extern.
27700 (syms_of_image): Initialize and staticpro `Qcount'.
27701 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27702 * emacs.c (main): Don't call syms_of_abbrev.
27703 * Makefile.in (obj): Remove abbrev.o.
27704 (abbrev.o): Remove.
27705 * abbrev.c: Remove.
27706
27707 2007-10-26 Martin Rudalics <rudalics@gmx.at>
27708
27709 * window.c (window_min_size_2): Don't count header-line.
27710
27711 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27712
27713 * frame.h (struct frame): Move all bit fields after the first bit
27714 field to take advantage of the available space. Group all the
27715 chars together to reduce wasted space due to padding.
27716
27717 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
27718
27719 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27720
27721 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27722 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27723 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27724 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27725 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27726 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27727 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27728 (last_marked, mark_object_loop_halt): Make static.
27729
27730 * frame.c (syms_of_frame) <delete-frame-functions>:
27731 Fix typo in docstring.
27732
27733 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
27734
27735 * w32.c (init_environment): Fix tiny memory leak.
27736 (w32_get_resource): Remove unused variable `ok'.
27737
27738 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27739
27740 Make `window-system' into a keyboard-local variable (rather than
27741 frame-local as done originally by multi-tty).
27742
27743 * keyboard.h (struct kboard): Add Vwindow_system.
27744 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27745 (mark_kboards): Mark Vwindow_system.
27746
27747 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27748 (init_display): Don't set the obsolete `window-system' frame-param.
27749
27750 * xterm.c (x_term_init):
27751 * w32term.c (w32_create_terminal):
27752 * term.c (init_tty): Set Vwindow_system.
27753 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27754 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27755
27756 * xfns.c (Fx_create_frame, x_create_tip_frame):
27757 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27758 * macfns.c (Fx_create_frame):
27759 Don't set the obsolete `window-system' frame-param.
27760
27761 * frame.h (Qwindow_system): Remove.
27762 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27763 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27764
27765 2007-10-24 Richard Stallman <rms@gnu.org>
27766
27767 * frame.c (x_figure_window_size): For fullscreen case,
27768 set USPosition | PPosition without clobbering rest of window_prompting.
27769
27770 * keyboard.c (Fcurrent_idle_time): Doc fix.
27771
27772 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27773
27774 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27775
27776 * process.c (unwind_request_sigio): Only define if __ultrix__.
27777
27778 * callproc.c (child_setup): Remove spurious *.
27779
27780 * lisp.h (Fget_text_property): Declare.
27781 (have_menus_p): Declare it here rather than in sys-dep header files.
27782 * macterm.h (have_menus_p):
27783 * msdos.h (have_menus_p):
27784 * xterm.h (have_menus_p): Remove.
27785
27786 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27787 (Fmake_variable_frame_local): Just check the variable's const-ness
27788 rather than checking nil or t.
27789
27790 2007-10-22 Jason Rumney <jasonr@gnu.org>
27791
27792 * w32fns.c: Include math.h.
27793 (w32_abort): Declaration moved to nt/config.nt.
27794
27795 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27796 (abort): Redefinition moved to nt/config.nt.
27797
27798 * m/windowsnt.h: Remove.
27799
27800 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
27801
27802 * emacs.c (Fdump_emacs): Fix typo in message.
27803 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27804 <installation-directory>: Reflow docstring.
27805
27806 2007-10-22 Juri Linkov <juri@jurta.org>
27807
27808 * minibuf.c: Allow minibuffer default to be a list of default values.
27809 With empty input use the first element of this list as returned default.
27810 (string_to_object)
27811 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27812 (read_minibuf): If defalt is cons, set histstring to its car.
27813 (Fread_string): If default_value is cons, set val to its car.
27814 (Fread_buffer): If def is cons, use its car.
27815 (Fcompleting_read): If defalt is cons, set val to its car.
27816
27817 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
27818
27819 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27820
27821 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
27822
27823 * doc.c (Fdocumentation): Check for advice in all cases.
27824
27825 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
27826
27827 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27828
27829 2007-10-19 Richard Stallman <rms@gnu.org>
27830
27831 * doc.c (Fdocumentation): Check for and handle an advised function.
27832
27833 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
27834
27835 * process.c (Fset_process_filter): Doc fix.
27836
27837 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27838
27839 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27840 which caused key-translation-map to applied repeatedly (thus breaking
27841 double-mode).
27842
27843 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27844
27845 * xselect.c (x_own_selection, x_handle_selection_clear)
27846 (x_clear_frame_selections):
27847 * w32menu.c (list_of_panes, list_of_items):
27848 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27849 * textprop.c (validate_plist, interval_has_all_properties)
27850 (interval_has_some_properties, interval_has_some_properties_list)
27851 (add_properties, text_property_list):
27852 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27853 * minibuf.c (Fassoc_string):
27854 * macselect.c (x_own_selection, x_clear_frame_selections)
27855 (Fx_disown_selection_internal):
27856 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27857 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27858
27859 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
27860
27861 * process.c: Link to libs for calling res_init() if available.
27862 (Fmake_network_process): Call res_init() before getaddrinfo or
27863 gethostbyname, if possible.
27864
27865 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27866
27867 * lread.c (read1): Set pvectype for char_tables.
27868
27869 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27870 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27871 Add type checks.
27872 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27873
27874 * alloc.c (free_misc): Use XMISCTYPE.
27875 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27876
27877 2007-10-17 Glenn Morris <rgm@gnu.org>
27878
27879 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27880 (syms_of_minibuf): Add Qcompletion_ignore_case.
27881 * dired.c (Qcompletion_ignore_case): Change to external.
27882 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27883 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27884 (Fread_file_name): Use it rather than intern'ing.
27885
27886 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27887 (Fread_coding_system): Ignore case of user input.
27888
27889 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27890
27891 * xdisp.c (handle_display_prop): Ignore display specs after
27892 replacing one when string text is being replaced.
27893 (handle_single_display_spec): Pretend as if characters with display
27894 property haven't been consumed only when buffer text is being replaced.
27895
27896 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27897
27898 * xfns.c (Fx_create_frame, Fx_display_list):
27899 * window.c (window_fixed_size_p, enlarge_window)
27900 (shrink_window_lowest_first):
27901 * macterm.c (init_font_name_table):
27902 * macfns.c (Fx_create_frame, Fx_display_list):
27903 * lread.c (close_load_descs):
27904 * keyboard.c (read_char_x_menu_prompt):
27905 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27906 * coding.c (code_convert_region_unwind): Test the type of an object
27907 rather than just !NILP before extracting data from it.
27908
27909 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27910
27911 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27912 (XMISCANY): New macro.
27913 (XMISCTYPE): Use it.
27914 (struct Lisp_Misc_Any): New type.
27915 (union Lisp_Misc): Use it.
27916 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27917 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27918 (find_symbol_value, set_internal, default_value, Fset_default)
27919 (Fmake_variable_buffer_local, Fmake_local_variable)
27920 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27921 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27922 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27923 * alloc.c (allocate_buffer): Set the size and tag.
27924 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27925 Use XMISCANY.
27926 (die): Follow the GNU convention for error messages.
27927 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27928 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27929 tag any more.
27930 (set_buffer_internal_1):
27931 * frame.c (store_frame_param):
27932 * eval.c (specbind):
27933 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27934
27935 * doc.c (Fsnarf_documentation): Simplify.
27936
27937 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
27938
27939 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27940 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27941
27942 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
27943
27944 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27945
27946 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
27947
27948 * eval.c (do_autoload): Don't save autoloads.
27949
27950 * data.c (Ffset): Save autoload of the function being set.
27951
27952 2007-10-07 John Paul Wallington <jpw@pobox.com>
27953
27954 * xfns.c (x_create_tip_frame): Set the `display-type' frame
27955 parameter before setting up faces.
27956
27957 2007-10-13 Eli Zaretskii <eliz@gnu.org>
27958
27959 * ccl.c (Fregister_code_conversion_map):
27960 * keyboard.c (append_tool_bar_item): Reformat last change.
27961
27962 * lisp.h (eabs): Rename from `abs'. All callers changed.
27963
27964 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
27965
27966 * buffer.c (add_overlay_mod_hooklist):
27967 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
27968 * fontset.c (make_fontset):
27969 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
27970 (append_tool_bar_item):
27971 * macmenu.c (grow_menu_items):
27972 * w32menu.c (grow_menu_items):
27973 * xmenu.c (grow_menu_items): Use larger_vector.
27974
27975 2007-10-13 Eli Zaretskii <eliz@gnu.org>
27976
27977 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
27978 selected frame'' on MSDOS).
27979
27980 2007-10-12 Martin Rudalics <rudalics@gmx.at>
27981
27982 * frame.c (Qexplicit_name): New variable.
27983 (x_report_frame_params): Report it in parameter alist.
27984 (syms_of_frame): Intern and staticpro it.
27985
27986 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
27987
27988 * macfns.c (x_create_tip_frame): Set terminal for frame.
27989
27990 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
27991
27992 * frame.c (Qenvironment): Remove.
27993 (syms_of_frame) <Qenvironment>: Don't initialize.
27994 (Fdelete_frame): Don't treat the `environment' param specially.
27995 * frame.h (Qenvironment): Don't declare.
27996 * callproc.c (set_initial_environment): Don't set unused frame param.
27997
27998 * frame.c (Fframe_with_environment): Remove.
27999 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28000
28001 * lisp.h (Fframe_with_environment): Don't declare.
28002
28003 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
28004
28005 * indent.c (indent_tabs_mode, last_known_column)
28006 (last_known_column_modified): Make static.
28007 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28008
28009 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28010
28011 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28012
28013 2007-10-09 Jason Rumney <jasonr@gnu.org>
28014
28015 * w32term.c (x_set_window_size): Disable code that attempts to tell
28016 Lisp code about a size change before it actually happens.
28017
28018 2007-10-09 Richard Stallman <rms@gnu.org>
28019
28020 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28021 return HANDLED_RETURN.
28022
28023 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28024
28025 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28026 when there's an unread command event.
28027
28028 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28029 window autoselection act appropriately when leaving selected frame.
28030 (syms_of_frame): Initialize focus_follows_mouse.
28031 * frame.h (focus_follows_mouse): Extern it.
28032 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28033 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28034 * msdos.c (dos_rawgetc): Likewise.
28035 * w32term.c (w32_read_socket): Likewise.
28036 * xterm.c (handle_one_xevent): Likewise.
28037 * xdisp.c (syms_of_xdisp): In doc-string of
28038 mouse-autoselect-window mention focus-follows-mouse.
28039
28040 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28041
28042 * macterm.c (mac_load_query_font): Fix missing return value.
28043 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28044 Add BLOCK_INPUT.
28045
28046 2007-10-08 Richard Stallman <rms@gnu.org>
28047
28048 * xdisp.c (get_window_cursor_type): Implement documented behavior
28049 for cursor-in-non-selected-windows = t.
28050
28051 2007-10-08 Jason Rumney <jasonr@gnu.org>
28052
28053 * w32.c (w32_get_resource): Always close registry keys.
28054
28055 2007-10-08 Jason Rumney <jasonr@gnu.org>
28056
28057 * makefile.w32-in (LIBS): Add COMCTL32.
28058
28059 * w32fns.c (globals_of_w32fns): Init common controls.
28060
28061 2007-10-08 Richard Stallman <rms@gnu.org>
28062
28063 * image.c (our_memory_buffer): Rename from omfib_buffer.
28064
28065 2007-10-08 Richard Stallman <rms@gnu.org>
28066
28067 * buffer.c (Foverlays_at): Doc fix.
28068
28069 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28070
28071 * fns.c (Fplist_put): Preserve uneven tail data.
28072
28073 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28074
28075 * termhooks.h (enum event_kind): Remove trailing comma.
28076
28077 * frame.h (enum): Remove trailing comma.
28078
28079 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28080
28081 * w32proc.c (delete_child): Don't terminate threads of zombies.
28082
28083 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28084
28085 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28086
28087 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28088 last-repeatable-command.
28089 (init_kboard): Initialize Vlast_repeatable_command.
28090 (command_loop_1): Set it to real_this_command unless that was
28091 bound to an input event.
28092 (mark_kboards): Mark it.
28093
28094 2007-10-08 Richard Stallman <rms@gnu.org>
28095
28096 * eval.c (condition-case): Doc fix.
28097
28098 2007-10-08 Masatake YAMATO <jet@gyve.org>
28099
28100 * xfaces.c (tty_supports_face_attributes_p): Fix code
28101 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28102 was copied and not edited.
28103
28104 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28105
28106 Add new `input-decode-map' keymap and use it for terminal
28107 escape sequences.
28108 * keyboard.h (struct kboard): Add Vinput_decode_map.
28109 Remove Vlocal_key_translation_map.
28110 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28111 (init_kboard): Init input-decode-map.
28112 Replace local-key-translation-map back with key-translation-map.
28113 (syms_of_keyboard): Declare input-decode-map.
28114 Remove local-key-translation-map. Update docstrings.
28115 (mark_kboards): Mark Vinput_decode_map.
28116 Don't mark Vlocal_key_translation_map.
28117 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28118 Replace local-key-translation-map back with key-translation-map.
28119 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28120 Bind in input-decode-map rather than function-key-map.
28121
28122 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28123 This was made redundant by the previous introduction of XSETPVECTYPE.
28124
28125 2007-10-09 Richard Stallman <rms@gnu.org>
28126
28127 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28128
28129 2007-09-29 Richard Stallman <rms@gnu.org>
28130
28131 * eval.c (internal_condition_case_2, internal_condition_case_1)
28132 (internal_condition_case): Reenable abort if x_catching_errors ()
28133 to see if that really happens and why.
28134
28135 2007-10-06 Andreas Schwab <schwab@suse.de>
28136
28137 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28138
28139 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
28140
28141 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28142
28143 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28144
28145 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28146
28147 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28148
28149 * window.h (struct window):
28150 * window.c (struct save_window_data, struct saved_window):
28151 * termhooks.h (struct terminal):
28152 * process.h (struct Lisp_Process):
28153 * frame.h (struct frame):
28154 * buffer.h (struct buffer):
28155 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28156 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28157 The size field of (pseudo)vectors is now unsigned.
28158 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28159
28160 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28161 Turn `count' into an integer.
28162
28163 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28164 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28165 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28166 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28167 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28168
28169 * alloc.c (allocate_pseudovector): New fun.
28170 (ALLOCATE_PSEUDOVECTOR): New macro.
28171 (allocate_window, allocate_terminal, allocate_frame)
28172 (allocate_process): Use it.
28173 (mark_vectorlike): New function.
28174 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28175 (mark_terminals): Use it.
28176 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28177 (Fmake_byte_code): Use XSETPVECTYPE.
28178
28179 * frame.c (Fframe_parameters): Minor simplification.
28180
28181 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28182
28183 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28184
28185 * buffer.c (Fget_buffer_create, init_buffer_once):
28186 * lread.c (defsubr):
28187 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28188
28189 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28190 defined differently in the m/*.h files.
28191 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28192 (XSETPVECTYPE): New macro.
28193 (XSETPSEUDOVECTOR): Use it.
28194
28195 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28196 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28197
28198 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28199 * lread.c (defvar_per_buffer):
28200 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28201
28202 * window.c (candidate_window_p): Only consider as visible frames that
28203 are on the same terminal.
28204
28205 * m/ibms390x.h (MARKBIT): Remove unused macro.
28206
28207 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
28208
28209 * lread.c (Fload): Fix typo in docstring.
28210
28211 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28212
28213 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28214 of a non-zero value can't yield zero.
28215
28216 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28217
28218 * term.c (term_clear_mouse_face, term_mouse_highlight)
28219 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28220
28221 * print.c (safe_debug_print): Use XHASH.
28222
28223 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28224 Lisp elements such as tags.
28225 (XHASH): New macro.
28226 (EQ): Use it.
28227 (SREF, SSET, STRING_COPYIN): Use SDATA.
28228 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28229
28230 * alloc.c (mark_terminal): Remove left-over declaration.
28231 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28232 (allocate_vectorlike): Remove type argument. Adjust callers.
28233 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28234 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28235
28236 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28237 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28238 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28239 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28240 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28241 Use them.
28242
28243 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28244 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28245 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28246
28247 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28248
28249 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28250 loaded by default.
28251
28252 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28253
28254 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28255 on this tty.
28256 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28257
28258 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28259 Update all users.
28260 (handle_one_term_event): Use Gpm_DrawPointer.
28261 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28262 Signal errors instead of returning nil. Always return nil.
28263 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28264 Make it a noop if gpm-mouse was not activated.
28265 (syms_of_term): Update names.
28266
28267 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28268
28269 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28270 (init_sys_modes): Check that gpm_tty is the current tty.
28271
28272 * alloc.c (allocate_terminal): Set the vector size to only count the
28273 lisp fields. Initialize those to nil.
28274 (mark_object): Don't treat terminals specially.
28275 (mark_terminal): Remove.
28276 (mark_terminals): Use mark_object instead.
28277
28278 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28279 the GC to the beginning.
28280
28281 * indent.h:
28282 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28283
28284 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28285
28286 2007-09-25 Jason Rumney <jasonr@gnu.org>
28287
28288 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28289
28290 * w32console.c (create_w32cons_output): Remove.
28291
28292 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28293
28294 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28295 (reset_sys_modes): Use reset_terminal_modes_hook.
28296
28297 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28298
28299 * eval.c (do_autoload): Don't output any message.
28300
28301 2007-09-24 Juri Linkov <juri@jurta.org>
28302
28303 * emacs.c (standard_args): Change priority of "--no-splash"
28304 from 40 to 3. Add "--no-desktop" with the same priority.
28305
28306 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28307
28308 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28309 and optimize the case where they are all 1.
28310
28311 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
28312
28313 * lisp.h (abs): Define if not defined.
28314 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28315 Don't define `abs', since it's defined in lisp.h.
28316
28317 2007-09-22 Eli Zaretskii <eliz@gnu.org>
28318
28319 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28320 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28321 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28322 (init_tty): Use DEV_TTY instead of "/dev/tty".
28323 [WINDOWSNT]: No need to protect from NAME arg being null.
28324
28325 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28326
28327 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28328 up the tty state.
28329
28330 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28331
28332 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28333 (gpm_tty): Change its type.
28334 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28335 (gpm_tty): Change its type and initialize it.
28336 (Fterm_open_connection): Check the frame is indeed a tty.
28337 Use the new gpm_tty.
28338 (Fterm_close_connection): Use the new gpm_tty.
28339 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28340 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28341
28342 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
28343
28344 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28345 underline_color, to draw strike-through.
28346
28347 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28348
28349 * lisp.h (allocate_terminal): Declare.
28350
28351 * window.c (candidate_window_p): Consider frames that are being placed
28352 by the user as somewhere between visible and iconified.
28353 (window_loop): Prefer windows on the current frame.
28354 (Fselect_window): Move the use of select-frame to the beginning so we
28355 can just delegate all the work (it'll call us back anyway).
28356
28357 * frame.c (Qdisplay_environment_variable):
28358 * frame.h (Qdisplay_environment_variable): Delete.
28359
28360 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28361 of the first arg, since that value may be a union.
28362
28363 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28364 parameter rather than Qdisplay_environment_variable. If all else
28365 fails, look for DISPLAY in initial-environment.
28366
28367 2007-09-21 Glenn Morris <rgm@gnu.org>
28368
28369 * Makefile.in (emacstool): Remove target.
28370 (lisp, shortlisp): Remove termdev.elc.
28371
28372 2007-09-21 Markus Triska <markus.triska@gmx.at>
28373
28374 * xterm.c (x_delete_display): Compile session management conditionally.
28375
28376 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28377
28378 * callproc.c (getenv_internal_1): New function.
28379 (getenv_internal): Use it.
28380 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28381
28382 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28383 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28384 (Fset_terminal_parameter): Work with dead terminals as well.
28385 (Fmodify_terminal_parameters): Remove.
28386
28387 * terminal.c (get_terminal): Handle terminals.
28388 Make sure the terminal returned is live.
28389 (create_terminal): Use allocate_terminal.
28390 (mark_terminals): Move to alloc.c.
28391 (delete_terminal): Use terminal->name as liveness status.
28392 NULL out fields after freeing their contents.
28393 Don't deallocate the object.
28394 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28395 rather than an int.
28396 (Fterminal_live_p): Accept non-integer arguments.
28397 (Fterminal_list): Return terminal objects rather than an ints.
28398
28399 * alloc.c (enum mem_type): New member for `terminal' objects.
28400 (allocate_terminal): New function.
28401 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28402 Handle terminals.
28403 (mark_terminal): New fun.
28404 (mark_terminals): Move from terminal.c.
28405
28406 * term.c (get_tty_terminal): Don't treat output_initial specially.
28407 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28408 (delete_tty): Use terminal->name as liveness status.
28409
28410 * termhooks.h (struct terminal): Make it into a pseudovector.
28411 Remove `deleted' replaced by checking `name's nullness.
28412
28413 * print.c (print_object): Handle terminals.
28414
28415 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28416 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28417
28418 * frame.c (make_terminal_frame):
28419 * keyboard.c (tty_read_avail_input):
28420 * w32term.c (x_delete_terminal):
28421 * xfns.c (Fx_create_frame, x_create_tip_frame):
28422 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28423
28424 2007-09-20 Glenn Morris <rgm@gnu.org>
28425
28426 * process.c (Fmake_network_process): Doc fix.
28427
28428 2007-09-19 Jason Rumney <jasonr@gnu.org>
28429
28430 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28431
28432 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28433
28434 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28435 Fix a C warning regarding variable constness.
28436
28437 * xterm.c (handle_one_xevent): Fix a C warning.
28438
28439 2007-09-18 Jason Rumney <jasonr@gnu.org>
28440
28441 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28442
28443 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28444
28445 * gtkutil.c (gdpy_def): New variable.
28446 (xg_initialize): Initialize gdpy_def.
28447 (xg_display_close): If no other display exists, set gdpy_def to a
28448 new connection.
28449
28450 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28451
28452 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28453 when we have no file name for the icon.
28454 (xg_tool_bar_expose_callback): Remove.
28455 (xg_create_tool_bar): Don't connect expose signal to
28456 xg_tool_bar_expose_callback.
28457 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28458
28459 2007-09-16 Andreas Schwab <schwab@suse.de>
28460
28461 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28462 values instead of zapping them.
28463
28464 2007-09-14 Glenn Morris <rgm@gnu.org>
28465
28466 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28467 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28468 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28469 scope and rename to omfib_buffer for clarity.
28470 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28471
28472 2007-09-14 Kenichi Handa <handa@m17n.org>
28473
28474 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28475
28476 2007-09-13 Jason Rumney <jasonr@gnu.org>
28477
28478 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28479
28480 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28481
28482 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28483 (mac_term_init): Call here instead, passing rif.
28484
28485 2007-09-13 Glenn Morris <rgm@gnu.org>
28486
28487 * s/hpux.h: No longer define `static' as nothing.
28488
28489 2007-09-13 Johan Bockgård <bojohan@gnu.org>
28490
28491 * callint.c (Fcall_interactively): Remove unused var `fun'.
28492
28493 2007-09-12 Romain Francoise <romain@orebokech.com>
28494
28495 * window.c (prefer_window_split_horizontally, display_buffer):
28496 Revert 2007-09-08 change.
28497
28498 2007-09-12 Glenn Morris <rgm@gnu.org>
28499
28500 * alloca.c: Remove file.
28501 * Makefile.in (alloca): Do not undef.
28502 (allocaobj, alloca.o): Remove.
28503 (otherobj): Remove allocaobj.
28504 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28505 * regex.c (C_ALLOCA): Remove all references and code that was only
28506 used when this was defined.
28507 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28508 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28509 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28510
28511 * Makefile.in (SOURCES, unlock, relock): Delete.
28512
28513 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28514 (menu_grab_callback): All uses changed.
28515
28516 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28517 (x_reply_selection_request): All uses changed.
28518
28519 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28520
28521 * lread.c (load_warn_old_style_backquotes): Change message to look
28522 better when it appears in the middle of byte-compiler messages.
28523
28524 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28525
28526 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28527
28528 * xterm.c (x_create_terminal): Add comment.
28529
28530 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28531
28532 2007-09-10 Richard Stallman <rms@gnu.org>
28533
28534 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28535
28536 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28537
28538 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28539 (DEFUN): Document `intspec', use it instead of `prompt'.
28540
28541 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28542
28543 * data.c (Finteractive_form): If the interactive specification starts
28544 with a `(', use it as a Lisp form.
28545
28546 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28547 name and file modes.
28548
28549 * callint.c (Fcall_interactively): Comment fixes.
28550
28551 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28552
28553 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28554 and compiled functions.
28555
28556 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28557
28558 * window.c (prefer_window_split_horizontally): New variable.
28559 (display_buffer): Consider splitting window horizontally depending
28560 on prefer_window_split_horizontally.
28561
28562 2007-09-08 Eli Zaretskii <eliz@gnu.org>
28563
28564 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28565
28566 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28567
28568 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28569
28570 * frame.c (x_set_frame_parameters): Check number is positive before
28571 using XFASTINT.
28572
28573 * window.c (freeze_window_start): Don't presume selected_window holds
28574 a window object.
28575 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28576
28577 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28578
28579 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28580
28581 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28582
28583 * window.c (Vsplit_window_preferred_function): New var.
28584 (Fdisplay_buffer): Use it.
28585 (syms_of_window): Export, and initialize it.
28586
28587 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28588
28589 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28590
28591 2007-09-06 Glenn Morris <rgm@gnu.org>
28592
28593 * gtkutil.c (menu_grab_callback) <cnt>:
28594 * xselect.c (x_reply_selection_request) <cnt>: Move static
28595 variable to file scope.
28596
28597 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28598
28599 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28600 consistent values of selected_frame and selected_window.
28601
28602 2007-09-04 Jason Rumney <jasonr@gnu.org>
28603
28604 * w32console.c (initialize_w32_display): Zero unused hooks.
28605
28606 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28607
28608 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28609 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28610
28611 2007-09-04 Jason Rumney <jasonr@gnu.org>
28612
28613 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28614 in w32console.c. Set up input. Remove XXX comments that have been
28615 confirmed as correct.
28616
28617 * s/ms-w32.h (MULTI_KBOARD): Define.
28618
28619 * w32console.c (one_and_only_w32cons): Remove.
28620 (initialize_w32_display): Take terminal argument.
28621
28622 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28623 initialize_w32_display.
28624 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28625
28626 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28627
28628 * keyboard.c (discard_mouse_events): Discard it.
28629 (make_lispy_event): Translate it to a lisp event.
28630 (lispy_wheel_names): Add wheel-left and right events.
28631 (syms_of_keyboard): Enlarge wheel_syms.
28632
28633 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28634 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28635
28636 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28637
28638 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28639 from WM_MOUSEHWHEEL.
28640 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28641
28642 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28643 terminal.
28644
28645 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28646 keyboard for the terminal.
28647
28648 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28649
28650 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28651 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28652 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28653 and resume-tty-function to resume-tty-hook.
28654 (Fsuspend_tty, Fresume_tty): Use new names.
28655
28656 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28657
28658 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28659 if it starts with "n:".
28660
28661 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28662
28663 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28664
28665 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28666
28667 * frame.h:
28668 * frame.c (Qterm_environment_variable): Remove.
28669 (syms_of_frame): Don't init and staticpro it.
28670
28671 * callproc.c (getenv_internal): Remove special case for $TERM.
28672
28673 * callproc.c (Vinitial_environment): New variable.
28674 (set_initial_environment): Initialize it.
28675 (syms_of_callproc): Declare it.
28676 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28677 TERM under which a process runs is never related to the TERM in which
28678 Emacs is running.
28679
28680 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28681
28682 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28683 * s/darwin.h: ... do it here.
28684
28685 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28686
28687 * lisp.h (set_initial_environment): Rename from set_global_environment.
28688
28689 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28690 removed by mistake on the multi-tty branch.
28691
28692 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28693 (Fmodify_frame_parameters): Return a value.
28694
28695 * image.c (png_load): Comment-out var only used in commented-out code.
28696
28697 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28698 before passing it to mark_object.
28699
28700 * xfaces.c (internal_resolve_face_name): Return a value.
28701 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28702
28703 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28704 (x_icon): Comment-out var only used in commented-out code.
28705
28706 2007-08-29 Romain Francoise <romain@orebokech.com>
28707
28708 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28709 QUIT hasn't been provided.
28710
28711 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28712
28713 * callproc.c (child_setup, getenv_internal): Use the
28714 display-environment-variable and term-environment-variable frame params.
28715 (set_initial_environment): Initialise Vprocess_environment.
28716
28717 * config.in: Disable multi-keyboard support on a mac.
28718
28719 * frame.c (Qterm_environment_variable)
28720 (Qdisplay_environment_variable): New variables.
28721 (syms_of_frame): Intern and staticpro them.
28722 (Fmake_terminal_frame): Disable output method test.
28723
28724 * frame.h: Declare them here.
28725
28726 * macfns.c (x_set_mouse_color): Get rif from the frame.
28727 (x_set_tool_bar_lines): Don't use updating_frame.
28728 (mac_window): Add 2 new parameters for consistency with other systems.
28729 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28730 frame parameters following what is done in X11 and w32. Don't use
28731 FRAME_MAC_DISPLAY_INFO.
28732 (Fx_open_connection, start_hourglass): Remove window-system check.
28733 (x_create_tip_frame): Get the keyboard from the terminal.
28734
28735 * macmenu.c: Reorder includes.
28736 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28737
28738 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28739 terminal parameter.
28740 (x_clear_frame): Add a frame parameter.
28741 (note_mouse_movement): Get rif from the frame.
28742 (mac_term_init): Initialize the terminal.
28743 (mac_initialize): Make static and move terminal initialization ...
28744 (mac_create_terminal): ... to this new function.
28745
28746 * macterm.h (struct mac_display_info): Add terminal.
28747 (mac_initialize): Delete declaration.
28748
28749 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28750
28751 * sysdep.c: Comment out text after #endif.
28752
28753 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28754 is defined. Better initialize ttys in windows. Use terminal
28755 specific mouse_position_hook.
28756
28757 * termhooks.h (union display_info): Add mac_display_info.
28758
28759 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28760 Set the default minibuffer frame, window_system and the rest of the
28761 frame parameters following what is done in X11.
28762
28763 * w32term.c (w32_initialize): Make static.
28764
28765 * xselect.c (x_handle_selection_clear): Only access
28766 terminal->kboard when MULTI_KBOARD is defined.
28767
28768 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28769 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28770
28771 2007-08-29 Jason Rumney <jasonr@gnu.org>
28772
28773 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28774 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28775
28776 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28777 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28778
28779 * keyboard.c (restore_kboard_configuration): Only define when
28780 MULTI_KBOARD defined.
28781
28782 * makefile.w32-in: Update dependancies from Makefile.in.
28783 (OBJ1): Add terminal.$(O)
28784
28785 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28786 Don't define function body.
28787 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28788
28789 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28790
28791 * w32.c (request_sigio, unrequest_sigio): Remove.
28792
28793 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28794 (w32con_clear_frame, w32con_clear_end_of_line)
28795 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28796 (w32con_delete_glyphs, w32con_set_terminal_window)
28797 (scroll_line, w32_sys_ring_bell): Add frame arg.
28798 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28799 Add terminal arg.
28800 (PICK_FRAME): Remove.
28801 (w32con_write_glyphs): Use frame specific terminal coding.
28802 (one_and_only_w32cons): New global variable.
28803 (initialize_w32_display): Use it for storing hooks.
28804 (create_w32cons_output): New function.
28805
28806 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28807 arg a frame.
28808
28809 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28810 Set window_system.
28811 (x_set_tool_bar_lines): Don't use updating_frame.
28812 (Fx_create_frame): Set terminal and ref count.
28813 (Fx_open_connection): Remove window-system check.
28814
28815 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28816
28817 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28818 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28819 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28820 Add frame arg.
28821 (x_delete_terminal, w32_create_terminal): New functions.
28822 (w32_term_init): Create a terminal.
28823 (w32_initialize): Move terminal specific initialization to
28824 w32_create_terminal.
28825
28826 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28827 (w32_clear_rect, w32_clear_area): Use background from frame.
28828 (w32_display_info): Add terminal.
28829 (w32_sys_ring_bell, x_delete_display): Declare here.
28830
28831 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28832
28833 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28834
28835 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28836
28837 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28838 Fix get_named_tty calls for the controlling tty.
28839
28840 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28841
28842 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
28843
28844 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28845
28846 * term.c (tty_insert_glyphs): Add missing first parameter.
28847
28848 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28849
28850 * buffer.c (Fbuffer_list, Fbury_buffer):
28851 Take frame->buried_buffer_list into account.
28852
28853 * cm.c (current_tty): New variable, for cmputc().
28854 (cmputc): Use it.
28855 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28856 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28857 (cmgoto): Add tty parameter. Pass it on to calccost().
28858 Use emacs_tputs() instead of tputs().
28859
28860 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28861 tputs().
28862 (current_tty): New variable, for cmputc().
28863 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28864
28865 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28866 (internal_condition_case, internal_condition_case_1)
28867 (internal_condition_case_2): Don't abort when x_catching_errors.
28868
28869 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28870 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28871 prevent crashes caused by bogus longjmps in read_char.
28872
28873 * keymap.h (Fset_keymap_parent): Add EXFUN.
28874
28875 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28876 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28877 Remove redundant definition.
28878
28879 * macfns.c (x_set_mouse_color, x_make_gc):
28880 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28881
28882 * w32term.c (x_free_frame_resources):
28883 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28884 (w32_initialize): Use the accessor macros for terminal characteristics.
28885
28886 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28887 Use the accessor macros for terminal characteristics.
28888 * msdos.c (internal_terminal_init): Use the accessor macros for
28889 terminal characteristics.
28890 (ScreenVisualBell, internal_terminal_init):
28891 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28892
28893 * termopts.h (no_redraw_on_reenter): Declare.
28894
28895 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28896 (mark_terminals, mark_ttys): Declare.
28897 (Fgarbage_collect): Call them.
28898 (mark_object): Mark buried_buffer_list.
28899
28900 * prefix-args.c: Include stdlib.h for exit.
28901
28902 * syssignal.h: Add comment.
28903
28904 * indent.c: Include stdio.h.
28905
28906 * window.h (Vinitial_window_system): Declare.
28907 (Vwindow_system): Delete declaration.
28908
28909 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28910
28911 * image.c (lookup_image): Don't initialize `c' until the xasserts
28912 have been run.
28913
28914 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28915 FRAME_FOREGROUND_PIXEL.
28916
28917 * print.c (print_preprocess): Don't lose print_depth levels while
28918 iterating.
28919
28920 * widget.c (update_from_various_frame_slots):
28921 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28922
28923 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28924 frames.
28925 (window_internal_height): Remove bogus make_number call.
28926 (init_window_once): Call make_terminal_frame with two zero parameters.
28927
28928 * fileio.c (Fread_file_name): Update comment.
28929
28930 * callint.c (Fcall_interactively):
28931 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28932 Make sure it is correctly unwound.
28933
28934 * xsmfns.c (x_session_close): New function.
28935
28936 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28937 Delete declarations.
28938
28939 * xterm.h: Remove declaration for x_fully_uncatch_errors.
28940 (x_output): Remove background_pixel and foreground_pixel fields.
28941 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
28942 (x_delete_device, x_session_close): Declare.
28943
28944 * lread.c: Include setjmp.h. Update declaration of `read_char'.
28945 (read_filtered_event): Call `read_char' with a local
28946 `wrong_kboard_jmpbuf'.
28947
28948 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
28949 Don't call single_kboard_state. Use FRAME_RIF.
28950
28951 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
28952 systems.
28953
28954 * lisp.h (set_process_environment): Rename to `set_global_environment'.
28955 (Fframe_with_environment, Fset_input_meta_mode)
28956 (Fset_quit_char): EXFUN.
28957 (x_create_device, tty_output, terminal, tty_display_info): Declare.
28958 (init_sys_modes, reset_sys_modes): Update prototypes.
28959 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
28960
28961 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
28962 Vlocal_key_translation_map, and Vkeyboard_translate_table.
28963 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
28964 Delete declarations.
28965 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
28966 (temporarily_switch_to_single_kboard, tty_read_avail_input):
28967 New declarations.
28968
28969 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
28970 already does that during init_display(). Call syms_of_keymap
28971 before syms_of_keyboard. Call `syms_of_terminal'.
28972 Call set_initial_environment, not set_process_environment.
28973 (shut_down_emacs): Call reset_all_sys_modes() instead of
28974 reset_sys_modes().
28975
28976 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
28977 (internal_resolve_face_name, resolve_face_name_error): New functions.
28978 (resolve_face_name): Protect against loops and errors thrown by Fget.
28979 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
28980 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
28981
28982 * scroll.c: Replace CURTTY() with local variables throughout the
28983 file (where applicable).
28984 (calculate_scrolling, calculate_direct_scrolling)
28985 (scrolling_1, scroll_cost): Use the accessor macros for terminal
28986 characteristics.
28987
28988 * keymap.c (Vfunction_key_map): Remove.
28989 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
28990 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
28991 (Vkey_translation_map): Remove.
28992 (syms_of_keymap): Remove DEFVAR for key-translation-map.
28993 (Fdescribe_buffer_bindings)
28994 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
28995 Update for terminal-local key-translation-map.
28996
28997 * Makefile.in (callproc.o): Update dependencies.
28998 (lisp, shortlisp): Add termdev.elc.
28999 (obj): Add terminal.o.
29000 (terminal.o): Add dependencies.
29001 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29002 (data.o, fns.o): Add termhooks.h dependency.
29003 (SOME_MACHINE_LISP): Add dnd.elc.
29004 (minibuf.o): Fix typo.
29005 Update dependencies.
29006
29007 * data.c (do_symval_forwarding, store_symval_forwarding)
29008 (find_symbol_value): Use the selected frame's keyboard, not
29009 current_kboard.
29010
29011 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29012 Vwindow_system.
29013
29014 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29015 Fmenu_bar_open.
29016 (syms_of_xmenu): Update defsubr.
29017 (mouse_position_for_popup, Fx_popup_menu)
29018 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29019 (set_frame_menubar, free_frame_menubar)
29020 (create_and_show_popup_menu, xmenu_show)
29021 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29022 an X frame.
29023
29024 * xselect.c (x_own_selection): Abort if not an X frame.
29025 (some_frame_on_display): Check if it is an X frame.
29026 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29027
29028 * coding.c: Include frame.h and termhooks.h.
29029 (terminal_coding, keyboard_coding): Delete.
29030 (Fset_terminal_coding_system_internal)
29031 (Fset_keyboard_coding_system_internal)
29032 (Fkeyboard_coding_system)
29033 (Fterminal_coding_system): Add a terminal parameter.
29034 Get terminal_coding from the terminal.
29035 (init_coding_once): Don't call setup_coding_system here.
29036
29037 * dispextern.h (set_scroll_region, turn_off_insert)
29038 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29039 (tty_clear_end_of_line, tty_setup_colors)
29040 (delete_tty, updating_frame)
29041 (produce_special_glyphs, produce_glyphs, write_glyphs)
29042 (insert_glyphs): Remove.
29043 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29044 (tty_turn_off_highlight, get_tty_size): Add declaration.
29045 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29046
29047 * frame.h (enum output_method): Add output_initial.
29048 (struct x_output): Delete.
29049 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29050 Access foreground_pixel and background_pixel directly from the frame.
29051 (tty_display): Delete.
29052 (struct frame): Add buried_buffer_list, foreground_pixel,
29053 background_pixel and terminal. Delete kboard.
29054 (union output_data): Add tty.
29055 (FRAME_KBOARD): Get the kboard from the terminal.
29056 (FRAME_INITIAL_P): New macro.
29057 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29058 (Qterm_environment_variable, Qdisplay_environment_variable)
29059 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29060 New declarations.
29061
29062 * termchar.h (tty_output, tty_display_info): New structures.
29063 (tty_list): Declare.
29064 (FRAME_TTY, CURTTY): New macros.
29065 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29066 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29067 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29068 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29069
29070 * callproc.c: Include frame.h and termhooks.h, for terminal
29071 parameters.
29072 (add_env): New function.
29073 (child_setup): Use it.
29074 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29075 (getenv_internal): Fix get_terminal_param call.
29076 (Fgetenv_internal, egetenv): Update doc.
29077 (syms_of_callproc): Initialize Vprocess_environment to nil.
29078 Register and initialize them. Remove obsolete defvars. Update doc
29079 strings.
29080 (child_setup): Handle Vlocal_environment_variables.
29081 (getenv_internal): Add terminal parameter.
29082 Handle Vlocal_environment_variables.
29083 (Fgetenv_internal): Add terminal parameter.
29084 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29085 environment in a frame (not terminal) parameter. Update doc strings.
29086 (set_initial_environment): Rename from set_global_environment.
29087 Store Emacs environment in initial frame parameter.
29088
29089 * xdisp.c (redisplay_internal): Update references to
29090 `previous_terminal_frame'.
29091 (display_mode_line, Fformat_mode_line): Replace calls to
29092 `push_frame_kboard' with `push_kboard'.
29093 (get_glyph_string_clip_rects): Add extra parentheses and
29094 braces to prevent compiler warnings.
29095 (calc_pixel_width_or_height): Add xassert to check that the
29096 frame is alive. Don't call `lookup_image' on a termcap frame.
29097 (message2_nolog, message3_nolog, redisplay_internal)
29098 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29099 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29100 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29101 (Fx_display_pixel_width, Fx_display_pixel_height)
29102 (Fx_display_planes, Fx_display_color_cells)
29103 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29104 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29105 (Fx_display_backing_store, Fx_display_visual_class)
29106 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29107 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29108
29109 * xfns.c (x_set_foreground_color x_set_background_color)
29110 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29111 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29112 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29113 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29114 terminal that is being deleted.
29115 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29116 frame parameter, and make sure it overrides any user-supplied setting.
29117 (Fx_close_connection, Fx_synchronize): Unify argument names with
29118 the rest of the DEFUNs.
29119
29120 * dispnew.c (Fsend_string_to_terminal): Update call to
29121 `get_tty_terminal'.
29122 (Fredraw_frame, Fsend_string_to_terminal)
29123 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29124 FRAME_TERMCAP_P and FRAME_TTY.
29125 (window_change_signal): Don't believe width/height values that are
29126 impossibly small.
29127 (Vinitial_window_system): Rename from Vwindow_system.
29128 (termscript, Wcm, rif): Delete.
29129
29130 * termhooks.h (struct terminal): New struct containing the
29131 previously global text display hooks and new members NAME,
29132 DELETED and PARAM_ALIST.
29133 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29134 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29135 (FRAME_RIF): New macros.
29136 (get_terminal_param, get_device): New declarations.
29137 (termscript): Delete declaration.
29138
29139 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29140 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29141 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29142 FRAME_FOREGROUND_PIXEL.
29143 (x_fully_uncatch_errors): Disable definition.
29144 (x_scroll_bar_expose): Fix reference to foreground pixel.
29145 (XTread_socket): Disable loop on all X displays.
29146 (x_delete_terminal): Don't set terminal->deleted and let
29147 delete_terminal delete the frames on the terminal.
29148 (x_delete_display): Doc update to reflect changes in
29149 delete_terminal.
29150 (x_display_info) <terminal>: Move member earlier in the struct.
29151 (deleting_tty): Remove old variable.
29152 (Fsuspend_tty): Call clear_tty_hooks.
29153 (Fresume_tty, init_tty): Call set_tty_hooks.
29154 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29155 errors on X frames.
29156 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29157 (handle_one_xevent): Initialize `f' to NULL.
29158 (x_delete_terminal, x_create_terminal): New functions.
29159 (XTset_terminal_modes, XTreset_terminal_modes)
29160 (XTread_socket, x_connection_closed, x_term_init)
29161 (x_term_init, x_delete_display): Add terminal parameter.
29162 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29163 X connections.
29164
29165 * frame.c: Include termchar.h.
29166 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29167 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29168 (Qdisplay_environment_variable): New vars.
29169 (Fframep): Deal with output_initial.
29170 (Fframe-live-p): Doc fix.
29171 (Fwindow-system): New function.
29172 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29173 (make_terminal_frame): Don't create frames on a terminal that is
29174 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29175 (store_frame_param): Check for found_for_frame before calling XFRAME.
29176 (Fmake_terminal_frame): Handle NULL tty names correctly.
29177 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29178 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29179 frames to refer to a deleted frame in their 'environment parameter.
29180 (Fframe_with_environment): New function.
29181 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29182 (get_future_frame_param): New function.
29183 (Fmake_terminal_frame): Use it.
29184 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29185
29186 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29187 * sysdep.c (reset_sys_modes): Update for renames.
29188
29189 * keyboard.c (tty_read_avail_input): New function.
29190 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29191 (syms_of_keyboard): Defsubr them.
29192 (Fset_input_meta_mode, Fset_quit_char): New functions.
29193 (Fset_input_mode): Split to above functions.
29194 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29195 parameter. Use it in call to `read_char'.
29196 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29197 Set wrong_kboard_jmpbuf correctly in recursive calls.
29198 Use current_kboard to access Vkeyboard_translate_table.
29199 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29200 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29201 Update longjmp invocations. Remember the original current_kboard,
29202 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29203 changes it. Comment out unnecessary calls to
29204 `record_single_kboard_state' and `any_kboard_state'.
29205 Update recursive calls.
29206 (wrong_kboard_jmpbuf): Remove global variable.
29207 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29208 Handle deleted interrupted_kboards correctly; that is a legal
29209 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29210 and read_char calls. Abort if interrupted_kboard died in read_char.
29211 (any_kboard_state, single_kboard_state)
29212 (push_frame_kboard): Remove function.
29213 (pop_kboard): Switch out of single_kboard mode if the kboard has
29214 been deleted. Remove unused variable. Help debugging by not
29215 changing current_kboard unnecessarily. Set current_kboard to the
29216 kboard of the selected frame when the stored kboard object has
29217 been deleted before pop_kboard.
29218 (temporarily_switch_to_single_kboard): Change first parameter to a
29219 frame pointer. Throw an error when caller wants to change kboards
29220 while in single_kboard mode. Don't push_kboard if we weren't in
29221 single kboard state. Don't pop_kboard if we popped into any
29222 kboard state.
29223 (restore_kboard_configuration): Abort if pop_kboard changed the
29224 kboard in single_kboard mode. Call pop_kboard only after setting
29225 up single_kboard mode.
29226 (Frecursive_edit): Switch to single_kboard mode only in nested
29227 command loops.
29228 (cmd_error, command_loop, command_loop_1, timer_check):
29229 Comment out unnecessary call to `any_kboard_state' and
29230 `record_single_kboard_state'.
29231 (delete_kboard): Exit single_kboard mode if we have just deleted
29232 that kboard. Use FRAME_KBOARD.
29233 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29234 `fatal_error_signal'.
29235 (record_single_kboard_state): Don't push_kboard if we weren't in
29236 single kboard state. Don't pop_kboard if we popped into any
29237 kboard state.
29238 (push_frame_kboard): Rename to push_kboard.
29239 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29240 (read_avail_input): Read input from all terminals.
29241 (mark_kboards): Also mark Vkeyboard_translate_table.
29242 (kbd_buffer_store_event_hold): Simplify condition.
29243 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29244 (Vkeyboard_translate_table): Move to struct kboard.
29245 (init_kboard): Initialize Vkeyboard_translate_table.
29246 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29247 Vkeyboard_translate_table. Update doc strings. Update docs of
29248 local-function-key-map and function-key-map.
29249
29250 * terminal.c: New file.
29251
29252 * term.c: Include errno.h.
29253 (Vring_bell_function, device_list, initial_device)
29254 (next_device_id, ring_bell, update_begin, update_end)
29255 (set_terminal_window, cursor_to, raw_cursor_to)
29256 (clear_to_end, clear_frame, clear_end_of_line)
29257 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29258 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29259 (syms_of_term): Move their initialization to terminal.c.
29260 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29261 (Ftty_display_color_cells)
29262 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29263 (clear_tty_hooks, set_tty_hooks)
29264 (init_tty, maybe_fatal): New functions.
29265 (Ftty_type): Return nil if terminal is not on a tty instead of
29266 throwing an error. Doc update.
29267 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29268 Doc update. Initialize new subrs and variables.
29269 (delete_tty): Use terminal->deleted.
29270 (tty_set_terminal_modes): Rename from set_terminal_modes.
29271 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29272 (set_scroll_region): Rename to `tty_set_scroll_region'.
29273 (turn_on_insert): Rename to `tty_turn_on_insert'.
29274 (turn_off_insert): Rename to `tty_turn_off_insert'.
29275 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29276 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29277 (toggle_highligh): Rename to `tty_toggle_highlight'.
29278 (background_highlight): Rename to `tty_background_highlight'.
29279 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29280 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29281 (tty_set_scroll_region, tty_background_highlight)
29282 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29283 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29284 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29285 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29286 Add static modifier.
29287 (tty_reset_terminal_modes, tty_set_terminal_window)
29288 (tty_set_scroll_region, tty_background_highlight)
29289 (tty_highlight_if_desired, tty_cursor_to)
29290 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29291 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29292 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29293 renames.
29294
29295 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29296
29297 * keyboard.c: Qrtl is new.
29298 (parse_tool_bar_item): Handle :rtl keyword.
29299 (syms_of_keyboard): Intern :rtl keyword.
29300
29301 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29302
29303 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29304 so no Lisp code is executed.
29305 (file_for_image, find_rtl_image): New functions.
29306 (xg_get_image_for_pixmap): Use file_for_image.
29307 (update_frame_tool_bar): If direction is RTL, use RTL image if
29308 defined. Use Gtk stock images if defined.
29309
29310 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29311
29312 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29313 for nonexistent or zero-width glyph in composition glyph.
29314
29315 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29316
29317 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29318
29319 * xdisp.c (Finvisible_p): New function.
29320 (syms_of_xdisp): defsubr it.
29321
29322 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
29323
29324 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29325 Doc fixes.
29326
29327 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29328
29329 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29330
29331 2007-08-24 Martin Rudalics <rudalics@gmx.at>
29332
29333 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29334 whether decoding has modified buffer contents.
29335
29336 2007-08-24 Jason Rumney <jasonr@gnu.org>
29337
29338 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29339 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29340 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29341 (init_svg_functions) [HAVE_NTGUI]: New function.
29342 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29343 (svg_load_image): Use them.
29344 (svg_load_image) [HAVE_NTGUI]: Implement background.
29345
29346 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29347
29348 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29349 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29350 (LIBX): Remove @RSVG_LIBS@.
29351 (LIBES): Add $(RSVG_LIBS).
29352
29353 * image.c (svg_load_image): Blend with specified background if exists.
29354 Use IMAGE_BACKGROUND. Add Mac OS Support.
29355
29356 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29357 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29358 Remove macros.
29359 [MAC_OSX] (socket_callback): Do nothing.
29360 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29361 ReceiveNextEvent.
29362 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29363 socket_callback.
29364 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29365
29366 2007-08-22 Glenn Morris <rgm@gnu.org>
29367
29368 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29369
29370 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29371
29372 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29373
29374 * image.c: Add support for SVG images. Some additional comments
29375 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29376 (svg_image_p): New function to test for SVG image.
29377 (svg_load): New function to load SVG image.
29378 (svg_load_image): New function, helper for svg_load.
29379 (Qsvg): New Lisp_object.
29380 (svg_keyword_index): New enum.
29381 (svg_format): New static `image_keyword' struct.
29382 (svg_type): New static `image_type' struct.
29383 (librsvg/rsvg.h): Include it.
29384
29385 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29386
29387 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29388
29389 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29390
29391 * lread.c (Qold_style_backquotes): New var.
29392 (syms_of_lread): Init and staticpro it.
29393 (load_warn_old_style_backquotes): New fun.
29394 (Fload): Use them to warn about old style backquotes.
29395 (end_of_file_error, Fload): Remove unused vars.
29396
29397 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29398
29399 * lread.c (Vold_style_backquotes): New var.
29400 (syms_of_lread): Init and export it to Elisp.
29401 (read1): Set it when we find an old-style (back)quote.
29402
29403 2007-08-22 Jason Rumney <jasonr@gnu.org>
29404
29405 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29406
29407 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29408
29409 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29410
29411 2007-08-19 Richard Stallman <rms@gnu.org>
29412
29413 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29414
29415 2007-08-19 Andreas Schwab <schwab@suse.de>
29416
29417 * alloc.c (pure): Round PURESIZE up.
29418
29419 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29420
29421 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29422 active frame.
29423
29424 2007-08-16 Richard Stallman <rms@gnu.org>
29425
29426 * eval.c (Fcommandp): Add parens to clarify.
29427
29428 * minibuf.c (Fall_completions): Use enum for type of table.
29429
29430 * emacs.c (USAGE2): Improve text.
29431
29432 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29433
29434 * term.c (tty_default_color_capabilities): Declare static
29435 variables in file scope, to avoid HPUX compiler problem.
29436
29437 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29438
29439 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29440 to gtk_toolbar_insert.
29441
29442 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29443
29444 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29445
29446 * insdel.c (reset_var_on_error): New fun.
29447 (signal_before_change, signal_after_change):
29448 Use it to reset (after|before)-change-functions to nil in case of error.
29449 Bind inhibit-modification-hooks to t.
29450 Don't bind (after|before)-change-functions to nil while they run.
29451
29452 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29453
29454 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29455 filling pixmap with stippled background.
29456
29457 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29458
29459 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29460 Don't use invisible frame as parent window for repositioning.
29461
29462 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29463
29464 * print.c (new_backquote_output): Rename from old_backquote_output.
29465 (print): Inverse its logic (according to its name) so as to match the
29466 behavior of new_backquote_flag in lread.c.
29467
29468 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29469
29470 * gmalloc.c (posix_memalign): New function.
29471
29472 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29473 ActivateControl/DeactivateControl here.
29474 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29475 frame-notice-user-settings is non-nil.
29476 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29477 for kEventParamFMFontStyle.
29478 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29479 mac_pass_command_to_system and mac_pass_control_to_system here.
29480 (XTread_socket): Call ActivateControl/DeactivateControl here.
29481 (XTread_socket) [TARGET_API_MAC_CARBON]:
29482 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29483 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29484 for window repositioning.
29485
29486 2007-08-08 Glenn Morris <rgm@gnu.org>
29487
29488 * Replace `iff' in doc-strings and comments.
29489
29490 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
29491
29492 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29493
29494 2007-08-07 Martin Rudalics <rudalics@gmx.at>
29495
29496 * fileio.c (Finsert_file_contents): Run format-decode and
29497 after_insert_file_functions on entire buffer when REPLACE is
29498 non-nil and inhibit modification_hooks and point_motion_hooks.
29499 For consistency, run after_insert_file_functions iff something
29500 got inserted. Move signal_after_change and update_compositions
29501 after code running after_insert_file_functions. Make sure that
29502 undo_list doesn't record intermediate steps of the decoding process.
29503
29504 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29505
29506 * emacs.c (main)
29507 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29508 Call malloc_enable_thread on interactive startup.
29509
29510 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29511 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29512 [USE_PTHREAD]: Conditionalize with it.
29513 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29514 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29515 New functions.
29516
29517 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
29518
29519 * xdisp.c (redisplay_window): When restoring original buffer
29520 position, make sure it is still valid.
29521
29522 * image.c (png_load): Ignore png-supplied background color.
29523
29524 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29525
29526 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29527 Use kCFAbsoluteTimeIntervalSince1970.
29528
29529 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29530 New variable.
29531 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29532 event loop should be quit.
29533 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29534 Quit dialog event loop if quit_dialog_event_loop is set.
29535
29536 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29537 (Selection): New typedef. Use instead of ScrapRef.
29538 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29539 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29540 (mac_clear_selection): Rename from clear_scrap.
29541 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29542 scrap_has_target_type. All uses changed.
29543 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29544 (mac_selection_has_target_p): New functions.
29545 (mac_put_selection_value): Rename from put_scrap_string.
29546 (mac_get_selection_value): Rename from get_scrap_string.
29547 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29548 (put_scrap_private_timestamp, scrap_has_target_type)
29549 (get_scrap_private_timestamp): Remove functions.
29550 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29551 (x_own_selection, x_get_local_selection):
29552 Use mac_valid_selection_value_p.
29553 (x_own_selection): Don't use put_scrap_private_timestamp.
29554 Record OWNERSHIP-INFO into Vselection_alist instead.
29555 (x_get_local_selection): Don't check type if request is local.
29556 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29557 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29558
29559 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29560
29561 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29562 add comment explaining why.
29563
29564 2007-08-03 Richard Stallman <rms@gnu.org>
29565
29566 * fileio.c (Fvisited_file_modtime): Use make_time.
29567
29568 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29569
29570 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29571 build.
29572
29573 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29574
29575 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29576
29577 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29578
29579 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29580
29581 2007-07-30 Richard Stallman <rms@gnu.org>
29582
29583 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29584
29585 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29586
29587 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29588
29589 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
29590
29591 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29592 remote default-directory.
29593
29594 * buffer.c (mode-line-format): Update doc string.
29595
29596 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29597
29598 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29599 scroll bar gap.
29600 (x_scroll_bar_create): Set bar->fringe_extended_p.
29601 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29602 on frame edge. Check fringe background extension. Don't clear
29603 extended fringe background area.
29604
29605 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29606 (w32_fill_area): Enclose multiple statements with do ... while (0).
29607
29608 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29609 Extend fringe background to scroll bar gap.
29610 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29611 Set bar->fringe_extended_p.
29612 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29613 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29614 background extension. Don't clear extended fringe background area.
29615
29616 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29617 New member fringe_extended_p.
29618
29619 2007-07-25 Glenn Morris <rgm@gnu.org>
29620
29621 * Relicense all FSF files to GPLv3 or later.
29622
29623 * COPYING: Switch to GPLv3.
29624
29625 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29626
29627 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29628
29629 * data.c (Finteractive_form): Check for the presence of an
29630 `interactive-form' symbol property more thoroughly.
29631
29632 * data.c (Finteractive_form): Use an `interactive-form' property if
29633 present, analogous to the function-documentation property.
29634
29635 2007-07-24 Jason Rumney <jasonr@gnu.org>
29636
29637 * w32fns.c (x_real_positions): Get real position from OS instead of
29638 calculating it.
29639
29640 2007-07-23 Jason Rumney <jasonr@gnu.org>
29641
29642 * filelock.c (current_lock_owner): Allow for @ sign in username.
29643
29644 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
29645
29646 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29647 remote default-directory.
29648
29649 * buffer.c (mode-line-format): Describe above case in doc string.
29650
29651 2007-07-20 Eli Zaretskii <eliz@gnu.org>
29652
29653 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29654 Define if not defined.
29655
29656 2007-07-18 Jason Rumney <jasonr@gnu.org>
29657
29658 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29659
29660 2007-07-18 Richard Stallman <rms@gnu.org>
29661
29662 * data.c (Fsetq_default): Doc fix.
29663
29664 * eval.c (Fsetq): Doc fix.
29665
29666 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
29667
29668 * coding.c (Ffind_operation_coding_system):
29669 * eval.c (For, Fand): Doc fixes.
29670 Reported by Johan Bockgård.
29671
29672 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29673
29674 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29675
29676 * xterm.h: Declare x_ewmh_activate_frame.
29677
29678 * xterm.c (x_ewmh_activate_frame): New function.
29679 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29680
29681 2007-07-17 Martin Rudalics <rudalics@gmx.at>
29682
29683 * window.c (Fdisplay_buffer): If largest or LRU window is the
29684 only window, split it even if it is not eligible for splitting.
29685 This restores the original behavior broken by the 2007-07-15
29686 change.
29687
29688 2007-07-17 Glenn Morris <rgm@gnu.org>
29689
29690 * abbrev.c (abbrev_check_chars): New function.
29691 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29692 Call abbrev_check_chars to check abbrev characters are word
29693 constituents. Doc fix.
29694
29695 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29696
29697 * process.c (Fstart_process, Fmake_network_process)
29698 (read_process_output): Fix up last changes.
29699
29700 2007-07-16 Eli Zaretskii <eliz@gnu.org>
29701
29702 * makefile.w32-in (clean): Don't delete *~.
29703
29704 2007-07-16 Andreas Schwab <schwab@suse.de>
29705
29706 * window.c (Fdisplay_buffer): Use NILP.
29707 (Fset_window_scroll_bars): Likewise.
29708
29709 2007-07-15 Martin Rudalics <rudalics@gmx.at>
29710
29711 * window.c (window_min_size_2): New function.
29712 (window_min_size_1, size_window, Fdisplay_buffer)
29713 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29714 windows without mode- or header-lines when window-min-height is
29715 too small.
29716 (size_window): Reset nodelete_p after testing it, following an
29717 earlier note by Kim F. Storm.
29718 (display_buffer): Do not set split_height_threshold to twice the
29719 value of window_min_height to avoid changing the value of a
29720 customizable variable. Rather explicitly check whether the
29721 height of the window that shall be splitted is at least as large
29722 as split_height_threshold.
29723 (Fwindow_full_width_p): New defun.
29724 (syms_of_window): Defsubr it.
29725
29726 * window.h: Add EXFUN for Fwindow_full_width_p.
29727
29728 2007-07-14 Jason Rumney <jasonr@gnu.org>
29729
29730 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29731
29732 2007-07-14 Richard Stallman <rms@gnu.org>
29733
29734 * eval.c (maybe_call_debugger): New function.
29735 (find_handler_clause): Use maybe_call_debugger.
29736 Call it when the handler says `debug'.
29737 Eliminate DEBUGGER_VALUE_PTR.
29738 (Fsignal): Eliminate debugger_value.
29739 (Qdebug): New variable.
29740 (syms_of_eval): Initialize it.
29741
29742 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
29743
29744 * eval.c (Fprogn):
29745 * keyboard.c (Ftrack_mouse):
29746 * print.c (Fwith_output_to_temp_buffer):
29747 * window.c (Fsave_window_excursion): Doc fix.
29748
29749 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29750
29751 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29752
29753 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29754
29755 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29756 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29757 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29758 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29759 Remove unused encoding_carryover.
29760 * process.c: Adjust all functions accordingly.
29761
29762 2007-07-12 Richard Stallman <rms@gnu.org>
29763
29764 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29765
29766 2007-07-11 Jason Rumney <jasonr@gnu.org>
29767
29768 * makefile.w32-in (LIBS): Include OLE32.
29769
29770 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29771 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29772
29773 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29774
29775 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29776 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29777 from a Lisp_Object into a bare pointer.
29778 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29779 Adjust the code correspondingly.
29780
29781 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29782
29783 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29784 (term_show_mouse_face): Remove unused var `j'.
29785 (handle_one_term_event): Remove unused vars `i' and `j'.
29786 Don't cast return value of ttyname since it's not necessary.
29787
29788 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29789
29790 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29791 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29792
29793 * fns.c (map_char_table): Use an array of int for `indices' rather than
29794 an array of Lisp_Objects (which are only ever integers anyway).
29795 (Fmap_char_table): Update caller.
29796 * lisp.h: Update prototype.
29797 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29798 * fontset.c (Ffontset_info):
29799 * casetab.c (set_case_table): Update callers.
29800
29801 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29802
29803 * keymap.c (struct accessible_keymaps_data)
29804 (struct where_is_internal_data): New structures.
29805 (accessible_keymaps_1, where_is_internal_1): Use them to change
29806 interface to adhere to the one used by map_keymap.
29807 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29808 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29809
29810 * keymap.h (map_keymap_function_t): More informative prototype.
29811
29812 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29813
29814 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29815 (looking_at_1): Don't change search_regs and last_thing_searched
29816 if `inhibit-changing-match-data' is non-nil.
29817 (string_match_1, search_buffer, set_search_regs): Likewise.
29818 (syms_of_search): Add Lisp level definition for
29819 `inhibit-changing-match-data' and set it to nil.
29820 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29821 start and end of the match, instead of using values in search_regs.
29822
29823 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29824
29825 * minibuf.c (Fcompleting_read): New value `confirm-only'
29826 for `require-match'.
29827
29828 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29829
29830 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29831 part of the 2007-06-27 change to syms_of_fileio.
29832
29833 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29834
29835 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29836 Check WINDOWP before using XWINDOW. Consolidate return statements.
29837
29838 2007-06-27 Richard Stallman <rms@gnu.org>
29839
29840 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29841
29842 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
29843
29844 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29845
29846 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29847
29848 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29849 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29850 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29851 (_free_internal, memalign): Use them.
29852 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29853 Initialize to PTHREAD_MUTEX_INITIALIZER.
29854 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29855 (morecore_nolock): Rename from morecore. All uses changed.
29856 Use only nolock versions of internal allocation functions.
29857 (_malloc_internal_nolock, _realloc_internal_nolock)
29858 (_free_internal_nolock): New functions created from
29859 _malloc_internal, _realloc_internal, and _free_internal.
29860 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29861 Copy hook value to automatic variable before its use.
29862 (memalign): Copy hook value to automatic variable before its use.
29863
29864 2007-06-26 Kenichi Handa <handa@m17n.org>
29865
29866 * coding.c (Ffind_operation_coding_system): Docstring improved.
29867 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29868
29869 2007-06-25 David Kastrup <dak@gnu.org>
29870
29871 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29872 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29873 cater for additional parameter.
29874
29875 * keymap.h: Adjust number of parameters to `current-active-maps'.
29876
29877 * doc.c (Fsubstitute_command_keys): Adjust call of
29878 `current-active-maps'.
29879
29880 2007-06-25 David Kastrup <dak@gnu.org>
29881
29882 * callint.c (Fcall_interactively): Make the parsing of interactive
29883 specs somewhat more readable.
29884
29885 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29886
29887 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29888 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29889 if extended background has already been filled.
29890
29891 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29892
29893 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29894 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29895
29896 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29897 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29898 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29899 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29900 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29901 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29902 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29903 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29904 Run timers during dialog popup.
29905 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29906
29907 2007-06-21 Jason Rumney <jasonr@gnu.org>
29908
29909 * image.c (convert_mono_to_color_image): Swap fore and background.
29910
29911 2007-06-20 Jason Rumney <jasonr@gnu.org>
29912
29913 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29914 (w32_free_bdf_font): Unmap memory not handle.
29915
29916 2007-06-20 Sam Steingold <sds@gnu.org>
29917
29918 * gmalloc.c (__morecore): Fix the declaration to comply with the
29919 definition.
29920
29921 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
29922
29923 * w32term.c (w32_delete_display): Remove leftover declaration.
29924 (w32_define_cursor, w32_initialize): Make static.
29925
29926 * w32.c (_wsa_errlist): Fix typo in error message.
29927 (init_environment): Ignore any environment variable from the
29928 registry having a null value.
29929
29930 2007-06-20 Glenn Morris <rgm@gnu.org>
29931
29932 * Makefile.in (LIBGIF): Default to -lgif.
29933
29934 2007-06-17 Jason Rumney <jasonr@gnu.org>
29935
29936 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29937 unicode strings.
29938
29939 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
29940
29941 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29942 Fix typo in docstring.
29943
29944 2007-06-16 Eli Zaretskii <eliz@gnu.org>
29945
29946 * w32menu.c (add_menu_item): Escape `&' characters in menu items
29947 and their keybindings.
29948
29949 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
29950
29951 * composite.c (update_compositions): Fix last fix.
29952
29953 2007-06-14 Jason Rumney <jasonr@gnu.org>
29954
29955 * w32.c (get_process_times_fn): New function pointer.
29956 (globals_of_w32): Intialize it if present in kernel32.dll.
29957 (w32_get_internal_run_time): New function.
29958
29959 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
29960
29961 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
29962
29963 * composite.c (update_compositions): Check the validness of
29964 compositions.
29965
29966 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29967
29968 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
29969 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
29970
29971 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
29972 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
29973
29974 * macgui.h (USE_MAC_TOOLBAR): New define.
29975
29976 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29977 Return immediately unless popup is activated.
29978
29979 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
29980 background to scroll bar gap.
29981 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
29982 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
29983 scroll bars on frame edge. Check fringe background extension.
29984 Don't clear extended fringe background area.
29985 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
29986 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
29987 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
29988 [USE_MAC_TOOLBAR]: New macros.
29989 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
29990 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
29991 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
29992 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
29993 [USE_MAC_TOOLBAR]: New functions.
29994 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
29995 manually if previous repositioning has failed.
29996 (mac_handle_keyboard_event): Use precomputed event kind.
29997 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
29998 as tool bar item click. Handle mouse movement over tool bar items.
29999
30000 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30001 toolbar_win_gravity.
30002 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30003 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30004 Add externs.
30005
30006 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30007 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30008
30009 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
30010
30011 * image.c (search_image_cache): Remove unused variable.
30012
30013 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
30014
30015 * xfns.c, xmenu.c: Link to xaw3d if available.
30016
30017 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30018
30019 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30020 frame_foreground and frame_background.
30021
30022 * image.c (lookup_image): Save frame foreground and background colors.
30023 (search_image_cache): Check if saved and current frame colors match.
30024
30025 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30026
30027 * regex.c (regex_compile): Remove the `regnum' counter.
30028 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30029
30030 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30031
30032 * term.c: Include intervals.h to declare Fget_text_property.
30033
30034 2007-06-10 Jason Rumney <jasonr@gnu.org>
30035
30036 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30037
30038 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
30039
30040 * callint.c (Fcall_interactively):
30041 * editfns.c (Fdelete_and_extract_region):
30042 * fileio.c (Fread_file_name):
30043 * fns.c (Fmapconcat):
30044 * keyboard.c (cmd_error_internal):
30045 * keymap.c (Fkey_description):
30046 * lread.c (openp):
30047 * minibuf.c (read_minibuf):
30048 * search.c (wordify):
30049 * sunfns.c (sel_read):
30050 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30051 * xfns.c (x_default_scroll_bar_color_parameter):
30052 * xmenu.c (menu_help_callback):
30053 * xselect.c (Fx_get_atom_name):
30054 * xterm.c (x_term_init): Use empty_unibyte_string.
30055
30056 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30057
30058 * alloc.c (init_strings): Initialize canonical empty strings.
30059 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30060 canonical empty string when the requested size is 0.
30061
30062 * emacs.c (empty_unibyte_string): Rename from empty_string.
30063 (empty_multibyte_string): New canonical empty string.
30064 (syms_of_emacs): Don't initialize empty_string.
30065
30066 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30067 string, if appropriate.
30068 (empty_unibyte_string, empty_multibyte_string): New externs.
30069 (empty_string): Remove extern.
30070
30071 * lread.c (syms_of_lread): Use empty_unibyte_string.
30072
30073 2007-06-07 Jason Rumney <jasonr@gnu.org>
30074
30075 * s/ms-w32.h: Don't define HAVE_TZNAME.
30076
30077 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30078
30079 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30080
30081 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30082
30083 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30084 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30085
30086 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30087 Don't call next handler.
30088 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30089 Remove argument. Install handler to application.
30090 (set_frame_menubar): Don't change deep_p.
30091 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30092 FRAME_OUTER_TO_INNER_DIFF_Y.
30093 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30094 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30095 [HAVE_DIALOGS]: New macros.
30096 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30097 Use them.
30098 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30099
30100 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30101 init_service_handler. All callers changed. Return OSStatus value.
30102
30103 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30104 All callers changed so as not to call SetPortWindowPort.
30105 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30106 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30107 mac_draw_string_common.
30108 (mac_draw_image_string_qd): Likewise.
30109 (mac_draw_string_common): Use them. Add INLINE.
30110 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30111 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30112 GetGlobalMouse.
30113 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30114 and FRAME_OUTER_TO_INNER_DIFF_Y.
30115 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30116 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30117 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30118 repositioning window to mac_handle_window_event.
30119 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30120 saving window location to mac_handle_window_event
30121 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30122 (install_menu_target_item_handler): Remove argument in extern.
30123 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30124 Also accept command events.
30125 (do_keystroke): New function created from XTread_socket.
30126 (init_command_handler): Remove functions.
30127 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30128 and save window location by kEventWindowShowing and kEventWindowHiding
30129 handlers here. Don't call next handler for window state change and
30130 focus events.
30131 (mac_handle_application_event, mac_handle_keyboard_event)
30132 [TARGET_API_MAC_CARBON]: New functions.
30133 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30134 kEventWindowShowing and kEventWindowHiding events. Move installation
30135 of mouse, font, text input and menu target item handlers to
30136 install_application_handler.
30137 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30138 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30139 New function.
30140 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30141 Register it.
30142 (XTread_socket) [TARGET_API_MAC_CARBON]:
30143 Consolidate SendEventToEventTarget calls.
30144 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30145 Move application activation handler to mac_handle_application_event.
30146 Move keyboard handler to mac_handle_keyboard_event.
30147 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30148 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30149 init_command_handler. Call install_application_handler.
30150
30151 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30152 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30153
30154 2007-06-07 Glenn Morris <rgm@gnu.org>
30155
30156 * emacs.c (main): Use `emacs-copyright' in --version output.
30157
30158 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
30159
30160 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30161
30162 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30163
30164 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30165
30166 * macgui.h: Replace WindowPtr with WindowRef.
30167
30168 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30169 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30170 Replace ControlHandle with ControlRef.
30171 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30172
30173 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30174 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30175 Replace ControlHandle with ControlRef.
30176 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30177 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30178
30179 * macterm.h (struct scroll_bar): Rename member control_handle_low
30180 and control_handle_high to control_ref_low and control_ref_high.
30181 All uses changed.
30182 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30183 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30184 respectively. All uses changed.
30185 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30186 (install_window_handler, remove_window_handler): Replace WindowPtr
30187 with WindowRef in externs.
30188
30189 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
30190
30191 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30192
30193 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
30194
30195 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30196
30197 * frame.c (Fmouse_position, Fmouse_pixel_position):
30198 Condition on HAVE_GPM too.
30199
30200 * term.c (term_mouse_highlight): Remove unused variables.
30201 (Fterm_open_connection): Set gpm_zerobased to 1.
30202 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30203 Use zero based co-ordinates.
30204 (handle_one_term_event): Report a drag as mouse movement too.
30205
30206 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30207
30208 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
30209
30210 * image.c (search_image_cache): New function. Require background
30211 color match if background color is unspecified in the image spec.
30212 (uncache_image, lookup_image): Use it.
30213
30214 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
30215
30216 * window.c (Fshrink_window): Reflow docstring.
30217
30218 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
30219
30220 * Version 22.1 released.
30221
30222 2007-06-01 Richard Stallman <rms@gnu.org>
30223
30224 * xfns.c (x_encode_text): Add GCPRO.
30225
30226 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30227
30228 * xfns.c (x_set_name_internal): Save encoded name before
30229 x_encode_text in case string data is relocated.
30230
30231 2007-05-31 Richard Stallman <rms@gnu.org>
30232
30233 * buffer.c (syms_of_buffer): Doc fix.
30234
30235 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
30236
30237 * sysdep.c (init_sys_modes): Add rather than replace with
30238 O_NONBLOCK.
30239
30240 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30241 term_mouse_moveto.
30242
30243 * termhooks.h (term_mouse_moveto): New extern.
30244
30245 * term.c (mouse_face_window): Rename...
30246 (Qmouse_face_window): ...to this.
30247 (term_show_mouse_face, term_clear_mouse_face)
30248 (term_mouse_highlight): Use Qmouse_face_window.
30249 (term_mouse_moveto): New function.
30250 (term_mouse_position): Make it work.
30251 (syms_of_term): Uncomment assignment to mouse_position_hook.
30252 Staticpro Qmouse_face_window.
30253
30254 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30255
30256 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30257 around current_column call.
30258
30259 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30260
30261 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30262 * xdisp.c (next_element_from_buffer):
30263 * window.c (delete_window):
30264 * term.c (term_mouse_highlight):
30265 * msdos.c (getdefdir):
30266 * macterm.c (mac_create_bitmap_from_bitmap_data)
30267 (init_font_name_table):
30268 * fns.c (Fsxhash):
30269 * data.c (Fmake_local_variable):
30270 * ccl.c (ccl_driver): Likewise.
30271
30272 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30273
30274 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30275 Call mac_wakeup_from_rne on window size change.
30276
30277 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
30278
30279 * image.c (uncache_image): Fix typo.
30280
30281 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30282
30283 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30284
30285 2007-05-22 Richard Stallman <rms@gnu.org>
30286
30287 * xterm.c (x_connection_closed): Remove NO_RETURN.
30288
30289 2007-05-22 Martin Rudalics <rudalics@gmx.at>
30290
30291 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30292
30293 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
30294
30295 * image.c (uncache_image): New function.
30296 (Fimage_refresh): New function.
30297
30298 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30299
30300 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30301
30302 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30303
30304 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30305 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30306
30307 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30308
30309 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30310 conditional on [HAVE_GPM_H].
30311
30312 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30313
30314 * syntax.c (skip_chars): Update syntax-table only after we checked that
30315 the new location is valid.
30316
30317 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30318
30319 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30320 mac_get_window_bounds.
30321
30322 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30323
30324 * Makefile.in (LIBGPM): Allow it to be set from configure.
30325 If set then link Emacs with it.
30326
30327 * config.in: Regenerate.
30328
30329 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30330 New externs.
30331
30332 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30333 Include gpm.h.
30334 (handle_one_term_event, term_gpm): New externs.
30335
30336 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30337 and allow it to be interrupted by SIGIO.
30338
30339 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30340 (wait_reading_process_output): Wait on gpm_fd too.
30341 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30342 (add_gpm_wait_descriptor_called_flag): New variable.
30343 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30344
30345 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30346 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30347 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30348 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30349 (make_lispy_event): Add case GPM_CLICK_EVENT.
30350 (read_avail_input): Handle mouse input.
30351
30352 * term.c (write_glyphs_with_face): New function.
30353 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30354 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30355 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30356 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30357 (last_mouse_x, last_mouse_y): New variables.
30358 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30359 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30360 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30361 (Fterm_close_connection): New functions.
30362 (term_init): Initialise mouse_face_window.
30363
30364 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
30365
30366 * xdisp.c (redisplay_window): If first window line is a
30367 continuation line, recompute the new window start instead of
30368 recentering.
30369
30370 2007-05-18 Glenn Morris <rgm@gnu.org>
30371
30372 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30373 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30374
30375 2007-05-17 Glenn Morris <rgm@gnu.org>
30376
30377 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30378
30379 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30380
30381 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30382 dead key repeat and up events.
30383
30384 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
30385
30386 * image.c (pbm_load): Check image size for monochrome pbm.
30387
30388 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
30389
30390 * xterm.c (XTread_socket): Revert last change.
30391
30392 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
30393
30394 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30395
30396 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30397
30398 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30399
30400 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30401 mixup (YAILOM).
30402
30403 2007-05-07 Andreas Schwab <schwab@suse.de>
30404
30405 * keymap.c (Flookup_key): Fix typo in last change.
30406
30407 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30408
30409 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30410 mapping for unibyte strings.
30411
30412 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30413
30414 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30415 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30416
30417 2007-04-29 Richard Stallman <rms@gnu.org>
30418
30419 * insdel.c (replace_range): For undo, record insertion first.
30420
30421 2007-04-29 Andreas Schwab <schwab@suse.de>
30422
30423 * lisp.h (VECSIZE): Use OFFSETOF.
30424
30425 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30426
30427 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30428 disabled lines.
30429
30430 2007-04-28 Richard Stallman <rms@gnu.org>
30431
30432 * lread.c (read_escape): In a string, \s is always space.
30433
30434 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30435
30436 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30437
30438 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30439 submenu for menu bar items.
30440
30441 See ChangeLog.10 for earlier changes.
30442
30443 ;; Local Variables:
30444 ;; coding: utf-8
30445 ;; End:
30446
30447 Copyright (C) 2007-2011 Free Software Foundation, Inc.
30448
30449 This file is part of GNU Emacs.
30450
30451 GNU Emacs is free software: you can redistribute it and/or modify
30452 it under the terms of the GNU General Public License as published by
30453 the Free Software Foundation, either version 3 of the License, or
30454 (at your option) any later version.
30455
30456 GNU Emacs is distributed in the hope that it will be useful,
30457 but WITHOUT ANY WARRANTY; without even the implied warranty of
30458 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30459 GNU General Public License for more details.
30460
30461 You should have received a copy of the GNU General Public License
30462 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.